diff --git a/lib/google/readme_moodle.txt b/lib/google/readme_moodle.txt index 60986b22392a6..c9253a229ab61 100644 --- a/lib/google/readme_moodle.txt +++ b/lib/google/readme_moodle.txt @@ -44,4 +44,4 @@ Repository: https://github.com/google/google-api-php-client Documentation: https://developers.google.com/api-client-library/php/ Global documentation: https://developers.google.com -Downloaded version: 1.1.5 +Downloaded version: 1.1.7 diff --git a/lib/google/src/Google/Auth/OAuth2.php b/lib/google/src/Google/Auth/OAuth2.php index a6041515ca6aa..40f2076ba1e42 100644 --- a/lib/google/src/Google/Auth/OAuth2.php +++ b/lib/google/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(",", (array) $issuer)."]", $json_body ) ); diff --git a/lib/google/src/Google/Cache/File.php b/lib/google/src/Google/Cache/File.php index 30cbeab83733e..47256b89dd267 100644 --- a/lib/google/src/Google/Cache/File.php +++ b/lib/google/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. diff --git a/lib/google/src/Google/Client.php b/lib/google/src/Google/Client.php index fc12a7c8b65d7..b28abf8c4af39 100644 --- a/lib/google/src/Google/Client.php +++ b/lib/google/src/Google/Client.php @@ -21,7 +21,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 { diff --git a/lib/google/src/Google/Config.php b/lib/google/src/Google/Config.php index d582d8316b993..2f52405cf8694 100644 --- a/lib/google/src/Google/Config.php +++ b/lib/google/src/Google/Config.php @@ -58,6 +58,10 @@ public function __construct($ini_file_location = null) 'Google_IO_Abstract' => array( 'request_timeout_seconds' => 100, ), + 'Google_IO_Curl' => array( + 'disable_proxy_workaround' => false, + 'options' => null, + ), 'Google_Logger_Abstract' => array( 'level' => 'debug', 'log_format' => "[%datetime%] %level%: %message% %context%\n", diff --git a/lib/google/src/Google/Http/MediaFileUpload.php b/lib/google/src/Google/Http/MediaFileUpload.php index e0192ae7417ab..02a2f451078b4 100644 --- a/lib/google/src/Google/Http/MediaFileUpload.php +++ b/lib/google/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(); diff --git a/lib/google/src/Google/IO/Curl.php b/lib/google/src/Google/IO/Curl.php index 7eb681e9f11b5..b0e8adb66c130 100644 --- a/lib/google/src/Google/IO/Curl.php +++ b/lib/google/src/Google/IO/Curl.php @@ -32,6 +32,9 @@ class Google_IO_Curl extends Google_IO_Abstract private $options = array(); + /** @var bool $disableProxyWorkaround */ + private $disableProxyWorkaround; + public function __construct(Google_Client $client) { if (!extension_loaded('curl')) { @@ -41,6 +44,11 @@ public function __construct(Google_Client $client) } parent::__construct($client); + + $this->disableProxyWorkaround = $this->client->getClassConfig( + 'Google_IO_Curl', + 'disable_proxy_workaround' + ); } /** @@ -73,8 +81,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); @@ -172,6 +183,10 @@ public function getTimeout() */ protected function needsQuirk() { + if ($this->disableProxyWorkaround) { + return false; + } + $ver = curl_version(); $versionNum = $ver['version_number']; return $versionNum < Google_IO_Curl::NO_QUIRK_VERSION; diff --git a/lib/google/src/Google/IO/Stream.php b/lib/google/src/Google/IO/Stream.php index e79da102afe1d..2c5178fdd6a0f 100644 --- a/lib/google/src/Google/IO/Stream.php +++ b/lib/google/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'; } diff --git a/lib/google/src/Google/Service/AdExchangeBuyer.php b/lib/google/src/Google/Service/AdExchangeBuyer.php index 8a607f8b1ab54..84d401cb5af94 100644 --- a/lib/google/src/Google/Service/AdExchangeBuyer.php +++ b/lib/google/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/lib/google/src/Google/Service/AdSense.php b/lib/google/src/Google/Service/AdSense.php index 8e36a132f389b..3979ff3c60c79 100644 --- a/lib/google/src/Google/Service/AdSense.php +++ b/lib/google/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/lib/google/src/Google/Service/AndroidEnterprise.php b/lib/google/src/Google/Service/AndroidEnterprise.php index 541b765de1668..849961970db9f 100644 --- a/lib/google/src/Google/Service/AndroidEnterprise.php +++ b/lib/google/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/lib/google/src/Google/Service/Appengine.php b/lib/google/src/Google/Service/Appengine.php new file mode 100644 index 0000000000000..e990eb4d52ae4 --- /dev/null +++ b/lib/google/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/lib/google/src/Google/Service/Books.php b/lib/google/src/Google/Service/Books.php index 6f2c1675f57ee..c8c4c63003f0d 100644 --- a/lib/google/src/Google/Service/Books.php +++ b/lib/google/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/lib/google/src/Google/Service/Calendar.php b/lib/google/src/Google/Service/Calendar.php index 377357f28c08a..5105c787de3a5 100644 --- a/lib/google/src/Google/Service/Calendar.php +++ b/lib/google/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/lib/google/src/Google/Service/CivicInfo.php b/lib/google/src/Google/Service/CivicInfo.php index 5d69642627a4d..683cefe26e637 100644 --- a/lib/google/src/Google/Service/CivicInfo.php +++ b/lib/google/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/lib/google/src/Google/Service/Classroom.php b/lib/google/src/Google/Service/Classroom.php index 109fb83bd07eb..96771d51dc8a4 100644 --- a/lib/google/src/Google/Service/Classroom.php +++ b/lib/google/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 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. @@ -464,11 +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. * `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 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. * @param array $optParams Optional parameters. * @return Google_Service_Classroom_Empty */ @@ -482,11 +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. * `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 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. * @param array $optParams Optional parameters. * @return Google_Service_Classroom_Course */ @@ -500,27 +502,24 @@ 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. - * (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. * * @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. + * 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 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, 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 +533,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 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 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. * @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 +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. * `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 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. * @param Google_Course $postBody * @param array $optParams Optional parameters. * @return Google_Service_Classroom_Course @@ -591,14 +594,13 @@ 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 access 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 - * [alias][google.classroom.v1.CourseAlias]. + * @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 @@ -613,13 +615,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 access 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. + * @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,21 +634,19 @@ 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. - * (aliases.listCoursesAliases) + * 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 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. * @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 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. @@ -672,19 +673,22 @@ 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 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 may either be the Classroom-assigned identifier or an alias. + * 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 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 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 +701,16 @@ 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 - * 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 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. + * @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 +724,16 @@ 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 - * 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 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. + * @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 +746,18 @@ 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. + * 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 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. * @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 identical to - * the one which 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 @@ -778,12 +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. * `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 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 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. * @param Google_Teacher $postBody * @param array $optParams Optional parameters. * @return Google_Service_Classroom_Teacher @@ -798,16 +806,17 @@ 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 - * 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 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. + * @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 +830,16 @@ 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 - * 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 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. + * @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 +852,18 @@ 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. + * 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 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. * @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 identical to - * the one which 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 @@ -883,7 +892,10 @@ 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 + * 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. @@ -898,12 +910,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 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. @@ -917,10 +932,10 @@ 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 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. @@ -934,10 +949,10 @@ 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 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. @@ -952,25 +967,24 @@ 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 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.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 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. 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 +1010,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 access + * 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/lib/google/src/Google/Service/CloudMonitoring.php b/lib/google/src/Google/Service/CloudMonitoring.php index ddc65a6078824..cd07aa65bd4ec 100644 --- a/lib/google/src/Google/Service/CloudMonitoring.php +++ b/lib/google/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/lib/google/src/Google/Service/CloudUserAccounts.php b/lib/google/src/Google/Service/CloudUserAccounts.php index 4bc63e9c32ae2..d310a30c3a2e1 100644 --- a/lib/google/src/Google/Service/CloudUserAccounts.php +++ b/lib/google/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/lib/google/src/Google/Service/Cloudbilling.php b/lib/google/src/Google/Service/Cloudbilling.php new file mode 100644 index 0000000000000..bdaa04f3e5345 --- /dev/null +++ b/lib/google/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/lib/google/src/Google/Service/Clouddebugger.php b/lib/google/src/Google/Service/Clouddebugger.php new file mode 100644 index 0000000000000..e9cda4495a3b1 --- /dev/null +++ b/lib/google/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/lib/google/src/Google/Service/Cloudresourcemanager.php b/lib/google/src/Google/Service/Cloudresourcemanager.php index edb58e90e8662..9d26a1d696a21 100644 --- a/lib/google/src/Google/Service/Cloudresourcemanager.php +++ b/lib/google/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/lib/google/src/Google/Service/Cloudtrace.php b/lib/google/src/Google/Service/Cloudtrace.php new file mode 100644 index 0000000000000..fe4857f8f4ec9 --- /dev/null +++ b/lib/google/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/lib/google/src/Google/Service/Compute.php b/lib/google/src/Google/Service/Compute.php index 6cc848b160851..301948dd36f7e 100644 --- a/lib/google/src/Google/Service/Compute.php +++ b/lib/google/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; @@ -59,7 +60,10 @@ class Google_Service_Compute extends Google_Service public $globalForwardingRules; public $globalOperations; public $httpHealthChecks; + public $httpsHealthChecks; public $images; + public $instanceGroupManagers; + public $instanceGroups; public $instanceTemplates; public $instances; public $licenses; @@ -70,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; @@ -207,6 +213,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, @@ -1122,14 +1281,14 @@ public function __construct(Google_Client $client) ) ) ); - $this->images = new Google_Service_Compute_Images_Resource( + $this->httpsHealthChecks = new Google_Service_Compute_HttpsHealthChecks_Resource( $this, $this->serviceName, - 'images', + 'httpsHealthChecks', array( 'methods' => array( 'delete' => array( - 'path' => '{project}/global/images/{image}', + 'path' => '{project}/global/httpsHealthChecks/{httpsHealthCheck}', 'httpMethod' => 'DELETE', 'parameters' => array( 'project' => array( @@ -1137,29 +1296,14 @@ public function __construct(Google_Client $client) '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( + 'httpsHealthCheck' => array( 'location' => 'path', 'type' => 'string', 'required' => true, ), ), ),'get' => array( - 'path' => '{project}/global/images/{image}', + 'path' => '{project}/global/httpsHealthChecks/{httpsHealthCheck}', 'httpMethod' => 'GET', 'parameters' => array( 'project' => array( @@ -1167,14 +1311,14 @@ public function __construct(Google_Client $client) 'type' => 'string', 'required' => true, ), - 'image' => array( + 'httpsHealthCheck' => array( 'location' => 'path', 'type' => 'string', 'required' => true, ), ), ),'insert' => array( - 'path' => '{project}/global/images', + 'path' => '{project}/global/httpsHealthChecks', 'httpMethod' => 'POST', 'parameters' => array( 'project' => array( @@ -1184,7 +1328,7 @@ public function __construct(Google_Client $client) ), ), ),'list' => array( - 'path' => '{project}/global/images', + 'path' => '{project}/global/httpsHealthChecks', 'httpMethod' => 'GET', 'parameters' => array( 'project' => array( @@ -1205,18 +1349,48 @@ public function __construct(Google_Client $client) '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->instanceTemplates = new Google_Service_Compute_InstanceTemplates_Resource( + $this->images = new Google_Service_Compute_Images_Resource( $this, $this->serviceName, - 'instanceTemplates', + 'images', array( 'methods' => array( 'delete' => array( - 'path' => '{project}/global/instanceTemplates/{instanceTemplate}', + 'path' => '{project}/global/images/{image}', 'httpMethod' => 'DELETE', 'parameters' => array( 'project' => array( @@ -1224,14 +1398,29 @@ public function __construct(Google_Client $client) 'type' => 'string', 'required' => true, ), - 'instanceTemplate' => array( + '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/instanceTemplates/{instanceTemplate}', + 'path' => '{project}/global/images/{image}', 'httpMethod' => 'GET', 'parameters' => array( 'project' => array( @@ -1239,14 +1428,14 @@ public function __construct(Google_Client $client) 'type' => 'string', 'required' => true, ), - 'instanceTemplate' => array( + 'image' => array( 'location' => 'path', 'type' => 'string', 'required' => true, ), ), ),'insert' => array( - 'path' => '{project}/global/instanceTemplates', + 'path' => '{project}/global/images', 'httpMethod' => 'POST', 'parameters' => array( 'project' => array( @@ -1256,7 +1445,7 @@ public function __construct(Google_Client $client) ), ), ),'list' => array( - 'path' => '{project}/global/instanceTemplates', + 'path' => '{project}/global/images', 'httpMethod' => 'GET', 'parameters' => array( 'project' => array( @@ -1281,14 +1470,14 @@ public function __construct(Google_Client $client) ) ) ); - $this->instances = new Google_Service_Compute_Instances_Resource( + $this->instanceGroupManagers = new Google_Service_Compute_InstanceGroupManagers_Resource( $this, $this->serviceName, - 'instances', + 'instanceGroupManagers', array( 'methods' => array( - 'addAccessConfig' => array( - 'path' => '{project}/zones/{zone}/instances/{instance}/addAccessConfig', + 'abandonInstances' => array( + 'path' => '{project}/zones/{zone}/instanceGroupManagers/{instanceGroupManager}/abandonInstances', 'httpMethod' => 'POST', 'parameters' => array( 'project' => array( @@ -1301,19 +1490,14 @@ 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', + 'path' => '{project}/aggregated/instanceGroupManagers', 'httpMethod' => 'GET', 'parameters' => array( 'project' => array( @@ -1334,9 +1518,9 @@ public function __construct(Google_Client $client) 'type' => 'integer', ), ), - ),'attachDisk' => array( - 'path' => '{project}/zones/{zone}/instances/{instance}/attachDisk', - 'httpMethod' => 'POST', + ),'delete' => array( + 'path' => '{project}/zones/{zone}/instanceGroupManagers/{instanceGroupManager}', + 'httpMethod' => 'DELETE', 'parameters' => array( 'project' => array( 'location' => 'path', @@ -1348,15 +1532,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', + ),'deleteInstances' => array( + 'path' => '{project}/zones/{zone}/instanceGroupManagers/{instanceGroupManager}/deleteInstances', + 'httpMethod' => 'POST', 'parameters' => array( 'project' => array( 'location' => 'path', @@ -1368,15 +1552,15 @@ public function __construct(Google_Client $client) 'type' => 'string', 'required' => true, ), - 'instance' => array( + 'instanceGroupManager' => array( 'location' => 'path', 'type' => 'string', 'required' => true, ), ), - ),'deleteAccessConfig' => array( - 'path' => '{project}/zones/{zone}/instances/{instance}/deleteAccessConfig', - 'httpMethod' => 'POST', + ),'get' => array( + 'path' => '{project}/zones/{zone}/instanceGroupManagers/{instanceGroupManager}', + 'httpMethod' => 'GET', 'parameters' => array( 'project' => array( 'location' => 'path', @@ -1388,25 +1572,30 @@ public function __construct(Google_Client $client) 'type' => 'string', 'required' => true, ), - 'instance' => array( + 'instanceGroupManager' => array( 'location' => 'path', 'type' => 'string', 'required' => true, ), - 'accessConfig' => array( - 'location' => 'query', + ), + ),'insert' => array( + 'path' => '{project}/zones/{zone}/instanceGroupManagers', + 'httpMethod' => 'POST', + 'parameters' => array( + 'project' => array( + 'location' => 'path', 'type' => 'string', 'required' => true, ), - 'networkInterface' => array( - 'location' => 'query', + 'zone' => array( + 'location' => 'path', 'type' => 'string', 'required' => true, ), ), - ),'detachDisk' => array( - 'path' => '{project}/zones/{zone}/instances/{instance}/detachDisk', - 'httpMethod' => 'POST', + ),'list' => array( + 'path' => '{project}/zones/{zone}/instanceGroupManagers', + 'httpMethod' => 'GET', 'parameters' => array( 'project' => array( 'location' => 'path', @@ -1418,20 +1607,22 @@ public function __construct(Google_Client $client) 'type' => 'string', 'required' => true, ), - 'instance' => array( - 'location' => 'path', + 'filter' => array( + 'location' => 'query', 'type' => 'string', - 'required' => true, ), - 'deviceName' => array( + 'pageToken' => array( 'location' => 'query', 'type' => 'string', - 'required' => true, + ), + 'maxResults' => array( + 'location' => 'query', + 'type' => 'integer', ), ), - ),'get' => array( - 'path' => '{project}/zones/{zone}/instances/{instance}', - 'httpMethod' => 'GET', + ),'listManagedInstances' => array( + 'path' => '{project}/zones/{zone}/instanceGroupManagers/{instanceGroupManager}/listManagedInstances', + 'httpMethod' => 'POST', 'parameters' => array( 'project' => array( 'location' => 'path', @@ -1443,15 +1634,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', + ),'recreateInstances' => array( + 'path' => '{project}/zones/{zone}/instanceGroupManagers/{instanceGroupManager}/recreateInstances', + 'httpMethod' => 'POST', 'parameters' => array( 'project' => array( 'location' => 'path', @@ -1463,18 +1654,14 @@ public function __construct(Google_Client $client) 'type' => 'string', 'required' => true, ), - 'instance' => array( + 'instanceGroupManager' => array( 'location' => 'path', 'type' => 'string', 'required' => true, ), - 'port' => array( - 'location' => 'query', - 'type' => 'integer', - ), ), - ),'insert' => array( - 'path' => '{project}/zones/{zone}/instances', + ),'resize' => array( + 'path' => '{project}/zones/{zone}/instanceGroupManagers/{instanceGroupManager}/resize', 'httpMethod' => 'POST', 'parameters' => array( 'project' => array( @@ -1487,36 +1674,19 @@ 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( + 'size' => array( 'location' => 'query', 'type' => 'integer', + 'required' => true, ), ), - ),'reset' => array( - 'path' => '{project}/zones/{zone}/instances/{instance}/reset', + ),'setInstanceTemplate' => array( + 'path' => '{project}/zones/{zone}/instanceGroupManagers/{instanceGroupManager}/setInstanceTemplate', 'httpMethod' => 'POST', 'parameters' => array( 'project' => array( @@ -1529,14 +1699,14 @@ 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', + ),'setTargetPools' => array( + 'path' => '{project}/zones/{zone}/instanceGroupManagers/{instanceGroupManager}/setTargetPools', 'httpMethod' => 'POST', 'parameters' => array( 'project' => array( @@ -1549,24 +1719,24 @@ public function __construct(Google_Client $client) 'type' => 'string', 'required' => true, ), - 'instance' => array( + 'instanceGroupManager' => 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', + ), + ) + ) + ); + $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( @@ -1579,35 +1749,37 @@ public function __construct(Google_Client $client) 'type' => 'string', 'required' => true, ), - 'instance' => array( + 'instanceGroup' => array( 'location' => 'path', 'type' => 'string', 'required' => true, ), ), - ),'setScheduling' => array( - 'path' => '{project}/zones/{zone}/instances/{instance}/setScheduling', - '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', ), ), - ),'setTags' => array( - 'path' => '{project}/zones/{zone}/instances/{instance}/setTags', - 'httpMethod' => 'POST', + ),'delete' => array( + 'path' => '{project}/zones/{zone}/instanceGroups/{instanceGroup}', + 'httpMethod' => 'DELETE', 'parameters' => array( 'project' => array( 'location' => 'path', @@ -1619,15 +1791,15 @@ 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', - 'httpMethod' => 'POST', + ),'get' => array( + 'path' => '{project}/zones/{zone}/instanceGroups/{instanceGroup}', + 'httpMethod' => 'GET', 'parameters' => array( 'project' => array( 'location' => 'path', @@ -1639,14 +1811,14 @@ public function __construct(Google_Client $client) 'type' => 'string', 'required' => true, ), - 'instance' => array( + 'instanceGroup' => array( 'location' => 'path', 'type' => 'string', 'required' => true, ), ), - ),'stop' => array( - 'path' => '{project}/zones/{zone}/instances/{instance}/stop', + ),'insert' => array( + 'path' => '{project}/zones/{zone}/instanceGroups', 'httpMethod' => 'POST', 'parameters' => array( 'project' => array( @@ -1659,24 +1831,9 @@ public function __construct(Google_Client $client) '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}', + ),'list' => array( + 'path' => '{project}/zones/{zone}/instanceGroups', 'httpMethod' => 'GET', 'parameters' => array( 'project' => array( @@ -1684,27 +1841,7 @@ public function __construct(Google_Client $client) '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( + 'zone' => array( 'location' => 'path', 'type' => 'string', 'required' => true, @@ -1722,9 +1859,9 @@ public function __construct(Google_Client $client) 'type' => 'integer', ), ), - ),'get' => array( - 'path' => '{project}/zones/{zone}/machineTypes/{machineType}', - 'httpMethod' => 'GET', + ),'listInstances' => array( + 'path' => '{project}/zones/{zone}/instanceGroups/{instanceGroup}/listInstances', + 'httpMethod' => 'POST', 'parameters' => array( 'project' => array( 'location' => 'path', @@ -1736,15 +1873,27 @@ public function __construct(Google_Client $client) 'type' => 'string', 'required' => true, ), - 'machineType' => array( + 'instanceGroup' => array( 'location' => 'path', 'type' => 'string', 'required' => true, ), + 'maxResults' => array( + 'location' => 'query', + 'type' => 'integer', + ), + 'filter' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'pageToken' => array( + 'location' => 'query', + 'type' => 'string', + ), ), - ),'list' => array( - 'path' => '{project}/zones/{zone}/machineTypes', - 'httpMethod' => 'GET', + ),'removeInstances' => array( + 'path' => '{project}/zones/{zone}/instanceGroups/{instanceGroup}/removeInstances', + 'httpMethod' => 'POST', 'parameters' => array( 'project' => array( 'location' => 'path', @@ -1756,31 +1905,44 @@ public function __construct(Google_Client $client) 'type' => 'string', 'required' => true, ), - 'filter' => array( - 'location' => 'query', + 'instanceGroup' => array( + 'location' => 'path', 'type' => 'string', + 'required' => true, ), - 'pageToken' => array( - 'location' => 'query', + ), + ),'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, ), - 'maxResults' => array( - 'location' => 'query', - 'type' => 'integer', + 'instanceGroup' => array( + 'location' => 'path', + 'type' => 'string', + '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 +1950,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 +1965,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 +1982,7 @@ public function __construct(Google_Client $client) ), ), ),'list' => array( - 'path' => '{project}/global/networks', + 'path' => '{project}/global/instanceTemplates', 'httpMethod' => 'GET', 'parameters' => array( 'project' => array( @@ -1845,213 +2007,176 @@ 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, ), - ), - ),'moveInstance' => array( - 'path' => '{project}/moveInstance', - 'httpMethod' => 'POST', - 'parameters' => array( - 'project' => array( + 'instance' => array( 'location' => 'path', 'type' => 'string', 'required' => true, ), + 'networkInterface' => array( + 'location' => 'query', + 'type' => 'string', + 'required' => true, + ), ), - ),'setCommonInstanceMetadata' => array( - 'path' => '{project}/setCommonInstanceMetadata', - 'httpMethod' => 'POST', + ),'aggregatedList' => array( + 'path' => '{project}/aggregated/instances', + 'httpMethod' => 'GET', 'parameters' => array( 'project' => array( 'location' => 'path', 'type' => 'string', 'required' => true, ), - ), - ),'setUsageExportBucket' => array( - 'path' => '{project}/setUsageExportBucket', - 'httpMethod' => 'POST', - 'parameters' => array( - 'project' => array( - 'location' => 'path', + 'filter' => array( + 'location' => 'query', 'type' => 'string', - 'required' => true, + ), + 'pageToken' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'maxResults' => array( + 'location' => 'query', + 'type' => 'integer', ), ), - ), - ) - ) - ); - $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', + ),'attachDisk' => array( + 'path' => '{project}/zones/{zone}/instances/{instance}/attachDisk', + '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, ), ), - ),'get' => array( - 'path' => '{project}/regions/{region}/operations/{operation}', - 'httpMethod' => 'GET', + ),'delete' => array( + 'path' => '{project}/zones/{zone}/instances/{instance}', + '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, ), ), - ),'list' => array( - 'path' => '{project}/regions/{region}/operations', - '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, ), - 'filter' => array( - 'location' => 'query', + 'instance' => array( + 'location' => 'path', 'type' => 'string', + 'required' => true, ), - 'pageToken' => array( + 'accessConfig' => array( 'location' => 'query', 'type' => 'string', + 'required' => true, ), - 'maxResults' => array( + 'networkInterface' => array( 'location' => 'query', - 'type' => 'integer', + 'type' => 'string', + 'required' => true, ), ), - ), - ) - ) - ); - $this->regions = new Google_Service_Compute_Regions_Resource( - $this, - $this->serviceName, - 'regions', - array( - 'methods' => array( - 'get' => array( - 'path' => '{project}/regions/{region}', - '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, ), - ), - ),'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( + 'deviceName' => array( 'location' => 'query', 'type' => 'string', - ), - 'maxResults' => array( - 'location' => 'query', - 'type' => 'integer', + 'required' => true, ), ), - ), - ) - ) - ); - $this->routes = new Google_Service_Compute_Routes_Resource( - $this, - $this->serviceName, - 'routes', - array( - 'methods' => array( - 'delete' => array( - 'path' => '{project}/global/routes/{route}', - 'httpMethod' => 'DELETE', + ),'get' => array( + 'path' => '{project}/zones/{zone}/instances/{instance}', + 'httpMethod' => 'GET', 'parameters' => array( 'project' => array( 'location' => 'path', 'type' => 'string', 'required' => true, ), - 'route' => array( + 'zone' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'instance' => array( 'location' => 'path', 'type' => 'string', 'required' => true, ), ), - ),'get' => array( - 'path' => '{project}/global/routes/{route}', + ),'getSerialPortOutput' => array( + 'path' => '{project}/zones/{zone}/instances/{instance}/serialPort', 'httpMethod' => 'GET', 'parameters' => array( 'project' => array( @@ -2059,14 +2184,23 @@ public function __construct(Google_Client $client) 'type' => 'string', 'required' => true, ), - 'route' => array( + '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}/global/routes', + 'path' => '{project}/zones/{zone}/instances', 'httpMethod' => 'POST', 'parameters' => array( 'project' => array( @@ -2074,9 +2208,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 +2223,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,142 +2241,118 @@ 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( + 'zone' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'instance' => array( 'location' => 'path', 'type' => 'string', 'required' => true, ), ), - ),'get' => array( - 'path' => '{project}/global/targetHttpProxies/{targetHttpProxy}', - 'httpMethod' => 'GET', + ),'setScheduling' => array( + 'path' => '{project}/zones/{zone}/instances/{instance}/setScheduling', + 'httpMethod' => 'POST', 'parameters' => array( 'project' => array( 'location' => 'path', 'type' => 'string', 'required' => true, ), - 'targetHttpProxy' => array( + 'zone' => array( 'location' => 'path', 'type' => 'string', 'required' => true, ), - ), - ),'insert' => array( - 'path' => '{project}/global/targetHttpProxies', - 'httpMethod' => 'POST', - 'parameters' => array( - 'project' => array( + 'instance' => array( 'location' => 'path', 'type' => 'string', 'required' => true, ), ), - ),'list' => array( - 'path' => '{project}/global/targetHttpProxies', - 'httpMethod' => 'GET', + ),'setTags' => array( + 'path' => '{project}/zones/{zone}/instances/{instance}/setTags', + '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, ), ), - ),'setUrlMap' => array( - 'path' => '{project}/targetHttpProxies/{targetHttpProxy}/setUrlMap', + ),'start' => array( + 'path' => '{project}/zones/{zone}/instances/{instance}/start', 'httpMethod' => 'POST', 'parameters' => array( 'project' => array( @@ -2240,47 +2360,20 @@ 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', - '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', - ), ), - ),'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 +2385,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 +2410,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 +2462,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 +2499,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 +2567,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 +2651,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 +2671,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 +2704,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,90 +2728,41 @@ 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', - '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', + 'pageToken' => array( + 'location' => 'query', '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', - '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}', + 'delete' => array( + 'path' => '{project}/global/routes/{route}', 'httpMethod' => 'DELETE', 'parameters' => array( 'project' => array( @@ -2639,19 +2770,14 @@ public function __construct(Google_Client $client) 'type' => 'string', 'required' => true, ), - 'region' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'targetVpnGateway' => array( + 'route' => array( 'location' => 'path', 'type' => 'string', 'required' => true, ), ), ),'get' => array( - 'path' => '{project}/regions/{region}/targetVpnGateways/{targetVpnGateway}', + 'path' => '{project}/global/routes/{route}', 'httpMethod' => 'GET', 'parameters' => array( 'project' => array( @@ -2659,19 +2785,14 @@ public function __construct(Google_Client $client) 'type' => 'string', 'required' => true, ), - 'region' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'targetVpnGateway' => array( + 'route' => array( 'location' => 'path', 'type' => 'string', 'required' => true, ), ), ),'insert' => array( - 'path' => '{project}/regions/{region}/targetVpnGateways', + 'path' => '{project}/global/routes', 'httpMethod' => 'POST', 'parameters' => array( 'project' => array( @@ -2679,14 +2800,9 @@ public function __construct(Google_Client $client) 'type' => 'string', 'required' => true, ), - 'region' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), ), ),'list' => array( - 'path' => '{project}/regions/{region}/targetVpnGateways', + 'path' => '{project}/global/routes', 'httpMethod' => 'GET', 'parameters' => array( 'project' => array( @@ -2694,11 +2810,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 +2827,14 @@ public function __construct(Google_Client $client) ) ) ); - $this->urlMaps = new Google_Service_Compute_UrlMaps_Resource( + $this->snapshots = new Google_Service_Compute_Snapshots_Resource( $this, $this->serviceName, - 'urlMaps', + 'snapshots', array( 'methods' => array( 'delete' => array( - 'path' => '{project}/global/urlMaps/{urlMap}', + 'path' => '{project}/global/snapshots/{snapshot}', 'httpMethod' => 'DELETE', 'parameters' => array( 'project' => array( @@ -2731,14 +2842,14 @@ public function __construct(Google_Client $client) 'type' => 'string', 'required' => true, ), - 'urlMap' => array( + 'snapshot' => array( 'location' => 'path', 'type' => 'string', 'required' => true, ), ), ),'get' => array( - 'path' => '{project}/global/urlMaps/{urlMap}', + 'path' => '{project}/global/snapshots/{snapshot}', 'httpMethod' => 'GET', 'parameters' => array( 'project' => array( @@ -2746,24 +2857,14 @@ public function __construct(Google_Client $client) 'type' => 'string', 'required' => true, ), - 'urlMap' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'insert' => array( - 'path' => '{project}/global/urlMaps', - 'httpMethod' => 'POST', - 'parameters' => array( - 'project' => array( + 'snapshot' => array( 'location' => 'path', 'type' => 'string', 'required' => true, ), ), ),'list' => array( - 'path' => '{project}/global/urlMaps', + 'path' => '{project}/global/snapshots', 'httpMethod' => 'GET', 'parameters' => array( 'project' => array( @@ -2784,38 +2885,48 @@ public function __construct(Google_Client $client) 'type' => 'integer', ), ), - ),'patch' => array( - 'path' => '{project}/global/urlMaps/{urlMap}', - 'httpMethod' => 'PATCH', + ), + ) + ) + ); + $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, ), - 'urlMap' => array( + 'sslCertificate' => array( 'location' => 'path', 'type' => 'string', 'required' => true, ), ), - ),'update' => array( - 'path' => '{project}/global/urlMaps/{urlMap}', - 'httpMethod' => 'PUT', + ),'get' => array( + 'path' => '{project}/global/sslCertificates/{sslCertificate}', + 'httpMethod' => 'GET', 'parameters' => array( 'project' => array( 'location' => 'path', 'type' => 'string', 'required' => true, ), - 'urlMap' => array( + 'sslCertificate' => array( 'location' => 'path', 'type' => 'string', 'required' => true, ), ), - ),'validate' => array( - 'path' => '{project}/global/urlMaps/{urlMap}/validate', + ),'insert' => array( + 'path' => '{project}/global/sslCertificates', 'httpMethod' => 'POST', 'parameters' => array( 'project' => array( @@ -2823,24 +2934,9 @@ public function __construct(Google_Client $client) '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', + ),'list' => array( + 'path' => '{project}/global/sslCertificates', 'httpMethod' => 'GET', 'parameters' => array( 'project' => array( @@ -2861,8 +2957,18 @@ public function __construct(Google_Client $client) 'type' => 'integer', ), ), - ),'delete' => array( - 'path' => '{project}/regions/{region}/vpnTunnels/{vpnTunnel}', + ), + ) + ) + ); + $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( @@ -2870,19 +2976,14 @@ public function __construct(Google_Client $client) 'type' => 'string', 'required' => true, ), - 'region' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'vpnTunnel' => array( + 'targetHttpProxy' => array( 'location' => 'path', 'type' => 'string', 'required' => true, ), ), ),'get' => array( - 'path' => '{project}/regions/{region}/vpnTunnels/{vpnTunnel}', + 'path' => '{project}/global/targetHttpProxies/{targetHttpProxy}', 'httpMethod' => 'GET', 'parameters' => array( 'project' => array( @@ -2890,19 +2991,14 @@ public function __construct(Google_Client $client) 'type' => 'string', 'required' => true, ), - 'region' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'vpnTunnel' => array( + 'targetHttpProxy' => array( 'location' => 'path', 'type' => 'string', 'required' => true, ), ), ),'insert' => array( - 'path' => '{project}/regions/{region}/vpnTunnels', + 'path' => '{project}/global/targetHttpProxies', 'httpMethod' => 'POST', 'parameters' => array( 'project' => array( @@ -2910,14 +3006,9 @@ public function __construct(Google_Client $client) 'type' => 'string', 'required' => true, ), - 'region' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), ), ),'list' => array( - 'path' => '{project}/regions/{region}/vpnTunnels', + 'path' => '{project}/global/targetHttpProxies', 'httpMethod' => 'GET', 'parameters' => array( 'project' => array( @@ -2925,11 +3016,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', @@ -2943,18 +3029,33 @@ public function __construct(Google_Client $client) '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->zoneOperations = new Google_Service_Compute_ZoneOperations_Resource( + $this->targetHttpsProxies = new Google_Service_Compute_TargetHttpsProxies_Resource( $this, $this->serviceName, - 'zoneOperations', + 'targetHttpsProxies', array( 'methods' => array( 'delete' => array( - 'path' => '{project}/zones/{zone}/operations/{operation}', + 'path' => '{project}/global/targetHttpsProxies/{targetHttpsProxy}', 'httpMethod' => 'DELETE', 'parameters' => array( 'project' => array( @@ -2962,19 +3063,14 @@ public function __construct(Google_Client $client) 'type' => 'string', 'required' => true, ), - 'zone' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'operation' => array( + 'targetHttpsProxy' => array( 'location' => 'path', 'type' => 'string', 'required' => true, ), ), ),'get' => array( - 'path' => '{project}/zones/{zone}/operations/{operation}', + 'path' => '{project}/global/targetHttpsProxies/{targetHttpsProxy}', 'httpMethod' => 'GET', 'parameters' => array( 'project' => array( @@ -2982,19 +3078,24 @@ public function __construct(Google_Client $client) 'type' => 'string', 'required' => true, ), - 'zone' => array( + 'targetHttpsProxy' => array( 'location' => 'path', 'type' => 'string', 'required' => true, ), - 'operation' => array( + ), + ),'insert' => array( + 'path' => '{project}/global/targetHttpsProxies', + 'httpMethod' => 'POST', + 'parameters' => array( + 'project' => array( 'location' => 'path', 'type' => 'string', 'required' => true, ), ), ),'list' => array( - 'path' => '{project}/zones/{zone}/operations', + 'path' => '{project}/global/targetHttpsProxies', 'httpMethod' => 'GET', 'parameters' => array( 'project' => array( @@ -3002,11 +3103,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,41 +3116,138 @@ 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', + ),'setSslCertificates' => array( + 'path' => '{project}/targetHttpsProxies/{targetHttpsProxy}/setSslCertificates', + 'httpMethod' => 'POST', 'parameters' => array( 'project' => array( 'location' => 'path', 'type' => 'string', 'required' => true, ), - 'zone' => array( + 'targetHttpsProxy' => array( 'location' => 'path', 'type' => 'string', 'required' => true, ), ), - ),'list' => array( - 'path' => '{project}/zones', - 'httpMethod' => 'GET', + ),'setUrlMap' => array( + 'path' => '{project}/targetHttpsProxies/{targetHttpsProxy}/setUrlMap', + 'httpMethod' => 'POST', 'parameters' => array( 'project' => array( 'location' => 'path', 'type' => 'string', 'required' => true, ), - 'filter' => array( + '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', + ), + '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', ), @@ -3071,481 +3264,4190 @@ public function __construct(Google_Client $client) ) ) ); + $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 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 "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 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, $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. (httpsHealthChecks.get) + * + * @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. + * @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. + * (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"); + } + + /** + * Retrieves aggregated list of instance resources. (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 "addresses" collection of methods. + * The "regionOperations" collection of methods. * Typical usage is: * * $computeService = new Google_Service_Compute(...); - * $addresses = $computeService->addresses; + * $regionOperations = $computeService->regionOperations; * */ -class Google_Service_Compute_Addresses_Resource extends Google_Service_Resource +class Google_Service_Compute_RegionOperations_Resource extends Google_Service_Resource { /** - * Retrieves the list of addresses grouped by scope. (addresses.aggregatedList) + * 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. - * - * @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 delete($project, $region, $operation, $optParams = array()) { - $params = array('project' => $project); + $params = array('project' => $project, 'region' => $region, 'operation' => $operation); $params = array_merge($params, $optParams); - return $this->call('aggregatedList', array($params), "Google_Service_Compute_AddressAggregatedList"); + return $this->call('delete', array($params)); } /** - * Deletes the specified address resource. (addresses.delete) + * Retrieves the specified region-specific Operations resource. + * (regionOperations.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 delete. + * @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 delete($project, $region, $address, $optParams = array()) + public function get($project, $region, $operation, $optParams = array()) { - $params = array('project' => $project, 'region' => $region, 'address' => $address); + $params = array('project' => $project, 'region' => $region, 'operation' => $operation); $params = array_merge($params, $optParams); - return $this->call('delete', array($params), "Google_Service_Compute_Operation"); + return $this->call('get', array($params), "Google_Service_Compute_Operation"); } /** - * Returns the specified address resource. (addresses.get) + * Retrieves the list of Operation resources contained within the specified + * region. (regionOperations.listRegionOperations) * * @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 string $region Name of the region scoping this request. * @param array $optParams Optional parameters. - * @return Google_Service_Compute_Address + * + * @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 get($project, $region, $address, $optParams = array()) + public function listRegionOperations($project, $region, $optParams = array()) { - $params = array('project' => $project, 'region' => $region, 'address' => $address); + $params = array('project' => $project, 'region' => $region); $params = array_merge($params, $optParams); - return $this->call('get', array($params), "Google_Service_Compute_Address"); + 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 +{ /** - * Creates an address resource in the specified project using the data included - * in the request. (addresses.insert) + * Returns the specified region resource. (regions.get) * * @param string $project Project ID for this request. - * @param string $region The name of the region for this request. - * @param Google_Address $postBody + * @param string $region Name of the region resource to return. * @param array $optParams Optional parameters. - * @return Google_Service_Compute_Operation + * @return Google_Service_Compute_Region */ - public function insert($project, $region, Google_Service_Compute_Address $postBody, $optParams = array()) + public function get($project, $region, $optParams = array()) { - $params = array('project' => $project, 'region' => $region, 'postBody' => $postBody); + $params = array('project' => $project, 'region' => $region); $params = array_merge($params, $optParams); - return $this->call('insert', array($params), "Google_Service_Compute_Operation"); + return $this->call('get', array($params), "Google_Service_Compute_Region"); } /** - * Retrieves the list of address resources contained within the specified - * region. (addresses.listAddresses) + * Retrieves the list of region resources available to the specified project. + * (regions.listRegions) * * @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 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 + * @return Google_Service_Compute_RegionList */ - public function listAddresses($project, $region, $optParams = array()) + public function listRegions($project, $optParams = array()) { - $params = array('project' => $project, 'region' => $region); + $params = array('project' => $project); $params = array_merge($params, $optParams); - return $this->call('list', array($params), "Google_Service_Compute_AddressList"); + return $this->call('list', array($params), "Google_Service_Compute_RegionList"); } } /** - * The "backendServices" collection of methods. + * The "routes" collection of methods. * Typical usage is: * * $computeService = new Google_Service_Compute(...); - * $backendServices = $computeService->backendServices; + * $routes = $computeService->routes; * */ -class Google_Service_Compute_BackendServices_Resource extends Google_Service_Resource +class Google_Service_Compute_Routes_Resource extends Google_Service_Resource { /** - * Deletes the specified BackendService resource. (backendServices.delete) + * Deletes the specified route resource. (routes.delete) * * @param string $project Name of the project scoping this request. - * @param string $backendService Name of the BackendService resource to delete. + * @param string $route Name of the route resource to delete. * @param array $optParams Optional parameters. * @return Google_Service_Compute_Operation */ - public function delete($project, $backendService, $optParams = array()) + public function delete($project, $route, $optParams = array()) { - $params = array('project' => $project, 'backendService' => $backendService); + $params = array('project' => $project, 'route' => $route); $params = array_merge($params, $optParams); return $this->call('delete', array($params), "Google_Service_Compute_Operation"); } /** - * Returns the specified BackendService resource. (backendServices.get) + * Returns the specified route resource. (routes.get) * * @param string $project Name of the project scoping this request. - * @param string $backendService Name of the BackendService resource to return. + * @param string $route Name of the route resource to return. * @param array $optParams Optional parameters. - * @return Google_Service_Compute_BackendService + * @return Google_Service_Compute_Route */ - public function get($project, $backendService, $optParams = array()) + public function get($project, $route, $optParams = array()) { - $params = array('project' => $project, 'backendService' => $backendService); + $params = array('project' => $project, 'route' => $route); $params = array_merge($params, $optParams); - return $this->call('get', array($params), "Google_Service_Compute_BackendService"); + return $this->call('get', array($params), "Google_Service_Compute_Route"); } /** - * Gets the most recent health check results for this BackendService. - * (backendServices.getHealth) + * Creates a route resource in the specified project using the data included in + * the request. (routes.insert) * - * @param string $project - * @param string $backendService Name of the BackendService resource to which - * the queried instance belongs. - * @param Google_ResourceGroupReference $postBody + * @param string $project Name of the project scoping this request. + * @param Google_Route $postBody * @param array $optParams Optional parameters. - * @return Google_Service_Compute_BackendServiceGroupHealth + * @return Google_Service_Compute_Operation */ - public function getHealth($project, $backendService, Google_Service_Compute_ResourceGroupReference $postBody, $optParams = array()) + public function insert($project, Google_Service_Compute_Route $postBody, $optParams = array()) { - $params = array('project' => $project, 'backendService' => $backendService, 'postBody' => $postBody); + $params = array('project' => $project, 'postBody' => $postBody); $params = array_merge($params, $optParams); - return $this->call('getHealth', array($params), "Google_Service_Compute_BackendServiceGroupHealth"); + return $this->call('insert', array($params), "Google_Service_Compute_Operation"); } /** - * Creates a BackendService resource in the specified project using the data - * included in the request. (backendServices.insert) + * Retrieves the list of route resources available to the specified project. + * (routes.listRoutes) * * @param string $project Name of the project scoping this request. - * @param Google_BackendService $postBody * @param array $optParams Optional parameters. - * @return Google_Service_Compute_Operation + * + * @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 insert($project, Google_Service_Compute_BackendService $postBody, $optParams = array()) + public function listRoutes($project, $optParams = array()) { - $params = array('project' => $project, 'postBody' => $postBody); + $params = array('project' => $project); $params = array_merge($params, $optParams); - return $this->call('insert', array($params), "Google_Service_Compute_Operation"); + 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 +{ /** - * Retrieves the list of BackendService resources available to the specified - * project. (backendServices.listBackendServices) + * 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. - * - * @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 + * @return Google_Service_Compute_Operation */ - public function listBackendServices($project, $optParams = array()) + public function delete($project, $snapshot, $optParams = array()) { - $params = array('project' => $project); + $params = array('project' => $project, 'snapshot' => $snapshot); $params = array_merge($params, $optParams); - return $this->call('list', array($params), "Google_Service_Compute_BackendServiceList"); + return $this->call('delete', array($params), "Google_Service_Compute_Operation"); } /** - * Update the entire content of the BackendService resource. This method - * supports patch semantics. (backendServices.patch) + * Returns the specified Snapshot resource. (snapshots.get) * * @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 string $snapshot Name of the Snapshot resource to return. * @param array $optParams Optional parameters. - * @return Google_Service_Compute_Operation + * @return Google_Service_Compute_Snapshot */ - public function patch($project, $backendService, Google_Service_Compute_BackendService $postBody, $optParams = array()) + public function get($project, $snapshot, $optParams = array()) { - $params = array('project' => $project, 'backendService' => $backendService, 'postBody' => $postBody); + $params = array('project' => $project, 'snapshot' => $snapshot); $params = array_merge($params, $optParams); - return $this->call('patch', array($params), "Google_Service_Compute_Operation"); + return $this->call('get', array($params), "Google_Service_Compute_Snapshot"); } /** - * Update the entire content of the BackendService resource. - * (backendServices.update) + * 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 $backendService Name of the BackendService resource to update. - * @param Google_BackendService $postBody * @param array $optParams Optional parameters. - * @return Google_Service_Compute_Operation + * + * @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 update($project, $backendService, Google_Service_Compute_BackendService $postBody, $optParams = array()) + public function listSnapshots($project, $optParams = array()) { - $params = array('project' => $project, 'backendService' => $backendService, 'postBody' => $postBody); + $params = array('project' => $project); $params = array_merge($params, $optParams); - return $this->call('update', array($params), "Google_Service_Compute_Operation"); + return $this->call('list', array($params), "Google_Service_Compute_SnapshotList"); } } /** - * The "diskTypes" collection of methods. + * The "sslCertificates" collection of methods. * Typical usage is: * * $computeService = new Google_Service_Compute(...); - * $diskTypes = $computeService->diskTypes; + * $sslCertificates = $computeService->sslCertificates; * */ -class Google_Service_Compute_DiskTypes_Resource extends Google_Service_Resource +class Google_Service_Compute_SslCertificates_Resource extends Google_Service_Resource { /** - * Retrieves the list of disk type resources grouped by scope. - * (diskTypes.aggregatedList) + * Deletes the specified SslCertificate resource. (sslCertificates.delete) * - * @param string $project Project ID for this request. + * @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) * - * @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 + * @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 aggregatedList($project, $optParams = array()) + public function get($project, $sslCertificate, $optParams = array()) { - $params = array('project' => $project); + $params = array('project' => $project, 'sslCertificate' => $sslCertificate); $params = array_merge($params, $optParams); - return $this->call('aggregatedList', array($params), "Google_Service_Compute_DiskTypeAggregatedList"); + return $this->call('get', array($params), "Google_Service_Compute_SslCertificate"); } /** - * Returns the specified disk type resource. (diskTypes.get) + * 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 string $zone The name of the zone for this request. - * @param string $diskType Name of the disk type resource to return. + * @param string $project Name of the project scoping this request. + * @param Google_SslCertificate $postBody * @param array $optParams Optional parameters. - * @return Google_Service_Compute_DiskType + * @return Google_Service_Compute_Operation */ - public function get($project, $zone, $diskType, $optParams = array()) + public function insert($project, Google_Service_Compute_SslCertificate $postBody, $optParams = array()) { - $params = array('project' => $project, 'zone' => $zone, 'diskType' => $diskType); + $params = array('project' => $project, 'postBody' => $postBody); $params = array_merge($params, $optParams); - return $this->call('get', array($params), "Google_Service_Compute_DiskType"); + return $this->call('insert', array($params), "Google_Service_Compute_Operation"); } /** - * Retrieves the list of disk type resources available to the specified project. - * (diskTypes.listDiskTypes) + * Retrieves the list of SslCertificate resources available to the specified + * project. (sslCertificates.listSslCertificates) * - * @param string $project Project ID for this request. - * @param string $zone The name of the zone for this request. + * @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 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 + * @return Google_Service_Compute_SslCertificateList */ - public function listDiskTypes($project, $zone, $optParams = array()) + public function listSslCertificates($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_DiskTypeList"); + return $this->call('list', array($params), "Google_Service_Compute_SslCertificateList"); } } /** - * The "disks" collection of methods. + * The "targetHttpProxies" collection of methods. * Typical usage is: * * $computeService = new Google_Service_Compute(...); - * $disks = $computeService->disks; + * $targetHttpProxies = $computeService->targetHttpProxies; * */ -class Google_Service_Compute_Disks_Resource extends Google_Service_Resource +class Google_Service_Compute_TargetHttpProxies_Resource extends Google_Service_Resource { /** - * Retrieves the list of disks grouped by scope. (disks.aggregatedList) + * Deletes the specified TargetHttpProxy resource. (targetHttpProxies.delete) * - * @param string $project Project ID for this request. + * @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 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 + * @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_DiskAggregatedList"); + return $this->call('delete', array($params), "Google_Service_Compute_Operation"); } /** - * Creates a snapshot of this disk. (disks.createSnapshot) + * Returns the specified TargetHttpProxy resource. (targetHttpProxies.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 snapshot. - * @param Google_Snapshot $postBody + * @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_Operation + * @return Google_Service_Compute_TargetHttpProxy */ - public function createSnapshot($project, $zone, $disk, Google_Service_Compute_Snapshot $postBody, $optParams = array()) + public function get($project, $targetHttpProxy, $optParams = array()) { - $params = array('project' => $project, 'zone' => $zone, 'disk' => $disk, 'postBody' => $postBody); + $params = array('project' => $project, 'targetHttpProxy' => $targetHttpProxy); $params = array_merge($params, $optParams); - return $this->call('createSnapshot', array($params), "Google_Service_Compute_Operation"); + return $this->call('get', array($params), "Google_Service_Compute_TargetHttpProxy"); } /** - * Deletes the specified persistent disk. (disks.delete) + * 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 string $zone The name of the zone for this request. - * @param string $disk Name of the persistent disk to delete. + * @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 delete($project, $zone, $disk, $optParams = array()) + public function insert($project, Google_Service_Compute_TargetHttpProxy $postBody, $optParams = array()) { - $params = array('project' => $project, 'zone' => $zone, 'disk' => $disk); + $params = array('project' => $project, 'postBody' => $postBody); $params = array_merge($params, $optParams); - return $this->call('delete', array($params), "Google_Service_Compute_Operation"); + return $this->call('insert', array($params), "Google_Service_Compute_Operation"); } /** - * Returns a specified persistent disk. (disks.get) + * Retrieves the list of TargetHttpProxy resources available to the specified + * project. (targetHttpProxies.listTargetHttpProxies) * - * @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 string $project Name of the project scoping this request. * @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 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. * - * @opt_param string sourceImage Optional. Source image to restore onto a disk. - * @return Google_Service_Compute_Operation + * 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 insert($project, $zone, Google_Service_Compute_Disk $postBody, $optParams = array()) + public function listTargetHttpProxies($project, $optParams = array()) { - $params = array('project' => $project, 'zone' => $zone, 'postBody' => $postBody); + $params = array('project' => $project); $params = array_merge($params, $optParams); - return $this->call('insert', array($params), "Google_Service_Compute_Operation"); + return $this->call('list', array($params), "Google_Service_Compute_TargetHttpProxyList"); } /** - * Retrieves the list of persistent disks contained within the specified zone. - * (disks.listDisks) + * Changes the URL map for TargetHttpProxy. (targetHttpProxies.setUrlMap) * - * @param string $project Project ID for this request. - * @param string $zone The name of the zone for this request. + * @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. - * - * @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 + * @return Google_Service_Compute_Operation */ - public function listDisks($project, $zone, $optParams = array()) + public function setUrlMap($project, $targetHttpProxy, Google_Service_Compute_UrlMapReference $postBody, $optParams = array()) { - $params = array('project' => $project, 'zone' => $zone); + $params = array('project' => $project, 'targetHttpProxy' => $targetHttpProxy, 'postBody' => $postBody); $params = array_merge($params, $optParams); - return $this->call('list', array($params), "Google_Service_Compute_DiskList"); + return $this->call('setUrlMap', array($params), "Google_Service_Compute_Operation"); } } /** - * The "firewalls" collection of methods. + * The "targetHttpsProxies" collection of methods. * Typical usage is: * * $computeService = new Google_Service_Compute(...); - * $firewalls = $computeService->firewalls; + * $targetHttpsProxies = $computeService->targetHttpsProxies; * */ -class Google_Service_Compute_Firewalls_Resource extends Google_Service_Resource +class Google_Service_Compute_TargetHttpsProxies_Resource extends Google_Service_Resource { /** - * Deletes the specified firewall resource. (firewalls.delete) + * Deletes the specified TargetHttpsProxy resource. (targetHttpsProxies.delete) * - * @param string $project Project ID for this request. - * @param string $firewall Name of the firewall resource to delete. + * @param string $project Name of the project scoping 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, $firewall, $optParams = array()) + public function delete($project, $targetHttpsProxy, $optParams = array()) { - $params = array('project' => $project, 'firewall' => $firewall); + $params = array('project' => $project, 'targetHttpsProxy' => $targetHttpsProxy); $params = array_merge($params, $optParams); return $this->call('delete', array($params), "Google_Service_Compute_Operation"); } /** - * Returns the specified firewall resource. (firewalls.get) + * Returns the specified TargetHttpsProxy resource. (targetHttpsProxies.get) * - * @param string $project Project ID for this request. - * @param string $firewall Name of the firewall resource to return. + * @param string $project Name of the project scoping this request. + * @param string $targetHttpsProxy Name of the TargetHttpsProxy resource to + * return. * @param array $optParams Optional parameters. - * @return Google_Service_Compute_Firewall + * @return Google_Service_Compute_TargetHttpsProxy */ - public function get($project, $firewall, $optParams = array()) + public function get($project, $targetHttpsProxy, $optParams = array()) { - $params = array('project' => $project, 'firewall' => $firewall); + $params = array('project' => $project, 'targetHttpsProxy' => $targetHttpsProxy); $params = array_merge($params, $optParams); - return $this->call('get', array($params), "Google_Service_Compute_Firewall"); + return $this->call('get', array($params), "Google_Service_Compute_TargetHttpsProxy"); } /** - * Creates a firewall resource in the specified project using the data included - * in the request. (firewalls.insert) + * 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_Firewall $postBody + * @param string $project Name of the project scoping this request. + * @param Google_TargetHttpsProxy $postBody * @param array $optParams Optional parameters. * @return Google_Service_Compute_Operation */ - public function insert($project, Google_Service_Compute_Firewall $postBody, $optParams = array()) + public function insert($project, Google_Service_Compute_TargetHttpsProxy $postBody, $optParams = array()) { $params = array('project' => $project, 'postBody' => $postBody); $params = array_merge($params, $optParams); @@ -3553,487 +7455,623 @@ public function insert($project, Google_Service_Compute_Firewall $postBody, $opt } /** - * Retrieves the list of firewall resources available to the specified project. - * (firewalls.listFirewalls) + * Retrieves the list of TargetHttpsProxy resources available to the specified + * project. (targetHttpsProxies.listTargetHttpsProxies) * - * @param string $project Project ID for this request. + * @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 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 + * @return Google_Service_Compute_TargetHttpsProxyList */ - public function listFirewalls($project, $optParams = array()) + public function listTargetHttpsProxies($project, $optParams = array()) { $params = array('project' => $project); $params = array_merge($params, $optParams); - return $this->call('list', array($params), "Google_Service_Compute_FirewallList"); + return $this->call('list', array($params), "Google_Service_Compute_TargetHttpsProxyList"); } /** - * Updates the specified firewall resource with the data included in the - * request. This method supports patch semantics. (firewalls.patch) + * Replaces SslCertificates for TargetHttpsProxy. + * (targetHttpsProxies.setSslCertificates) * - * @param string $project Project ID for this request. - * @param string $firewall Name of the firewall resource to update. - * @param Google_Firewall $postBody + * @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 patch($project, $firewall, Google_Service_Compute_Firewall $postBody, $optParams = array()) + public function setSslCertificates($project, $targetHttpsProxy, Google_Service_Compute_TargetHttpsProxiesSetSslCertificatesRequest $postBody, $optParams = array()) { - $params = array('project' => $project, 'firewall' => $firewall, 'postBody' => $postBody); + $params = array('project' => $project, 'targetHttpsProxy' => $targetHttpsProxy, 'postBody' => $postBody); $params = array_merge($params, $optParams); - return $this->call('patch', array($params), "Google_Service_Compute_Operation"); + return $this->call('setSslCertificates', array($params), "Google_Service_Compute_Operation"); } /** - * Updates the specified firewall resource with the data included in the - * request. (firewalls.update) + * Changes the URL map for TargetHttpsProxy. (targetHttpsProxies.setUrlMap) * - * @param string $project Project ID for this request. - * @param string $firewall Name of the firewall resource to update. - * @param Google_Firewall $postBody + * @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 update($project, $firewall, Google_Service_Compute_Firewall $postBody, $optParams = array()) + public function setUrlMap($project, $targetHttpsProxy, Google_Service_Compute_UrlMapReference $postBody, $optParams = array()) { - $params = array('project' => $project, 'firewall' => $firewall, 'postBody' => $postBody); + $params = array('project' => $project, 'targetHttpsProxy' => $targetHttpsProxy, 'postBody' => $postBody); $params = array_merge($params, $optParams); - return $this->call('update', array($params), "Google_Service_Compute_Operation"); + return $this->call('setUrlMap', array($params), "Google_Service_Compute_Operation"); } } /** - * The "forwardingRules" collection of methods. + * The "targetInstances" collection of methods. * Typical usage is: * * $computeService = new Google_Service_Compute(...); - * $forwardingRules = $computeService->forwardingRules; + * $targetInstances = $computeService->targetInstances; * */ -class Google_Service_Compute_ForwardingRules_Resource extends Google_Service_Resource +class Google_Service_Compute_TargetInstances_Resource extends Google_Service_Resource { /** - * Retrieves the list of forwarding rules grouped by scope. - * (forwardingRules.aggregatedList) + * 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 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 + * @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_ForwardingRuleAggregatedList"); + return $this->call('aggregatedList', array($params), "Google_Service_Compute_TargetInstanceAggregatedList"); } /** - * Deletes the specified ForwardingRule resource. (forwardingRules.delete) + * Deletes the specified TargetInstance resource. (targetInstances.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 $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, $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()) + public function delete($project, $zone, $targetInstance, $optParams = array()) { - $params = array('project' => $project, 'region' => $region, 'forwardingRule' => $forwardingRule); + $params = array('project' => $project, 'zone' => $zone, 'targetInstance' => $targetInstance); $params = array_merge($params, $optParams); - return $this->call('get', array($params), "Google_Service_Compute_ForwardingRule"); + return $this->call('delete', array($params), "Google_Service_Compute_Operation"); } /** - * Creates a ForwardingRule resource in the specified project and region using - * the data included in the request. (forwardingRules.insert) + * Returns the specified TargetInstance resource. (targetInstances.get) * * @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 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_Operation + * @return Google_Service_Compute_TargetInstance */ - public function insert($project, $region, Google_Service_Compute_ForwardingRule $postBody, $optParams = array()) + public function get($project, $zone, $targetInstance, $optParams = array()) { - $params = array('project' => $project, 'region' => $region, 'postBody' => $postBody); + $params = array('project' => $project, 'zone' => $zone, 'targetInstance' => $targetInstance); $params = array_merge($params, $optParams); - return $this->call('insert', array($params), "Google_Service_Compute_Operation"); + return $this->call('get', array($params), "Google_Service_Compute_TargetInstance"); } /** - * Retrieves the list of ForwardingRule resources available to the specified - * project and region. (forwardingRules.listForwardingRules) + * 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 $region Name of the region scoping this request. + * @param string $zone Name of the zone scoping this request. + * @param Google_TargetInstance $postBody * @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 + * @return Google_Service_Compute_Operation */ - public function listForwardingRules($project, $region, $optParams = array()) + public function insert($project, $zone, Google_Service_Compute_TargetInstance $postBody, $optParams = array()) { - $params = array('project' => $project, 'region' => $region); + $params = array('project' => $project, 'zone' => $zone, 'postBody' => $postBody); $params = array_merge($params, $optParams); - return $this->call('list', array($params), "Google_Service_Compute_ForwardingRuleList"); + return $this->call('insert', array($params), "Google_Service_Compute_Operation"); } /** - * Changes target url for forwarding rule. (forwardingRules.setTarget) + * 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 $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 string $zone Name of the zone scoping this request. * @param array $optParams Optional parameters. - * @return Google_Service_Compute_Operation + * + * @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 setTarget($project, $region, $forwardingRule, Google_Service_Compute_TargetReference $postBody, $optParams = array()) + public function listTargetInstances($project, $zone, $optParams = array()) { - $params = array('project' => $project, 'region' => $region, 'forwardingRule' => $forwardingRule, 'postBody' => $postBody); + $params = array('project' => $project, 'zone' => $zone); $params = array_merge($params, $optParams); - return $this->call('setTarget', array($params), "Google_Service_Compute_Operation"); + return $this->call('list', array($params), "Google_Service_Compute_TargetInstanceList"); } } /** - * The "globalAddresses" collection of methods. + * The "targetPools" collection of methods. * Typical usage is: * * $computeService = new Google_Service_Compute(...); - * $globalAddresses = $computeService->globalAddresses; + * $targetPools = $computeService->targetPools; * */ -class Google_Service_Compute_GlobalAddresses_Resource extends Google_Service_Resource +class Google_Service_Compute_TargetPools_Resource extends Google_Service_Resource { /** - * Deletes the specified address resource. (globalAddresses.delete) + * Adds health check URL to targetPool. (targetPools.addHealthCheck) * - * @param string $project Project ID for this request. - * @param string $address Name of the address resource to delete. + * @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 delete($project, $address, $optParams = array()) + public function addHealthCheck($project, $region, $targetPool, Google_Service_Compute_TargetPoolsAddHealthCheckRequest $postBody, $optParams = array()) { - $params = array('project' => $project, 'address' => $address); + $params = array('project' => $project, 'region' => $region, 'targetPool' => $targetPool, 'postBody' => $postBody); $params = array_merge($params, $optParams); - return $this->call('delete', array($params), "Google_Service_Compute_Operation"); + return $this->call('addHealthCheck', array($params), "Google_Service_Compute_Operation"); } /** - * Returns the specified address resource. (globalAddresses.get) + * Adds instance url to targetPool. (targetPools.addInstance) * - * @param string $project Project ID for this request. - * @param string $address Name of the address resource to return. + * @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_Address + * @return Google_Service_Compute_Operation */ - public function get($project, $address, $optParams = array()) + public function addInstance($project, $region, $targetPool, Google_Service_Compute_TargetPoolsAddInstanceRequest $postBody, $optParams = array()) { - $params = array('project' => $project, 'address' => $address); + $params = array('project' => $project, 'region' => $region, 'targetPool' => $targetPool, 'postBody' => $postBody); $params = array_merge($params, $optParams); - return $this->call('get', array($params), "Google_Service_Compute_Address"); + return $this->call('addInstance', array($params), "Google_Service_Compute_Operation"); } /** - * Creates an address resource in the specified project using the data included - * in the request. (globalAddresses.insert) + * Retrieves the list of target pools grouped by scope. + * (targetPools.aggregatedList) * - * @param string $project Project ID for this request. - * @param Google_Address $postBody + * @param string $project Name of the project scoping this request. * @param array $optParams Optional parameters. - * @return Google_Service_Compute_Operation + * + * @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 insert($project, Google_Service_Compute_Address $postBody, $optParams = array()) + public function aggregatedList($project, $optParams = array()) { - $params = array('project' => $project, 'postBody' => $postBody); + $params = array('project' => $project); $params = array_merge($params, $optParams); - return $this->call('insert', array($params), "Google_Service_Compute_Operation"); + return $this->call('aggregatedList', array($params), "Google_Service_Compute_TargetPoolAggregatedList"); } /** - * Retrieves the list of global address resources. - * (globalAddresses.listGlobalAddresses) + * Deletes the specified TargetPool resource. (targetPools.delete) * - * @param string $project Project ID for this request. + * @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. - * - * @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 + * @return Google_Service_Compute_Operation */ - public function listGlobalAddresses($project, $optParams = array()) + public function delete($project, $region, $targetPool, $optParams = array()) { - $params = array('project' => $project); + $params = array('project' => $project, 'region' => $region, 'targetPool' => $targetPool); $params = array_merge($params, $optParams); - return $this->call('list', array($params), "Google_Service_Compute_AddressList"); + return $this->call('delete', array($params), "Google_Service_Compute_Operation"); } -} - -/** - * 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) + * Returns the specified TargetPool resource. (targetPools.get) * * @param string $project Name of the project scoping this request. - * @param string $forwardingRule Name of the ForwardingRule resource to delete. + * @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_Operation + * @return Google_Service_Compute_TargetPool */ - public function delete($project, $forwardingRule, $optParams = array()) + public function get($project, $region, $targetPool, $optParams = array()) { - $params = array('project' => $project, 'forwardingRule' => $forwardingRule); + $params = array('project' => $project, 'region' => $region, 'targetPool' => $targetPool); $params = array_merge($params, $optParams); - return $this->call('delete', array($params), "Google_Service_Compute_Operation"); + return $this->call('get', array($params), "Google_Service_Compute_TargetPool"); } /** - * Returns the specified ForwardingRule resource. (globalForwardingRules.get) + * 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 Name of the project scoping this request. - * @param string $forwardingRule Name of the ForwardingRule resource to return. + * @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_ForwardingRule + * @return Google_Service_Compute_TargetPoolInstanceHealth */ - public function get($project, $forwardingRule, $optParams = array()) + public function getHealth($project, $region, $targetPool, Google_Service_Compute_InstanceReference $postBody, $optParams = array()) { - $params = array('project' => $project, 'forwardingRule' => $forwardingRule); + $params = array('project' => $project, 'region' => $region, 'targetPool' => $targetPool, 'postBody' => $postBody); $params = array_merge($params, $optParams); - return $this->call('get', array($params), "Google_Service_Compute_ForwardingRule"); + return $this->call('getHealth', array($params), "Google_Service_Compute_TargetPoolInstanceHealth"); } /** - * Creates a ForwardingRule resource in the specified project and region using - * the data included in the request. (globalForwardingRules.insert) + * 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 Google_ForwardingRule $postBody + * @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, Google_Service_Compute_ForwardingRule $postBody, $optParams = array()) + public function insert($project, $region, Google_Service_Compute_TargetPool $postBody, $optParams = array()) { - $params = array('project' => $project, 'postBody' => $postBody); + $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. (globalForwardingRules.listGlobalForwardingRules) + * 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 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 + * @return Google_Service_Compute_TargetPoolList */ - public function listGlobalForwardingRules($project, $optParams = array()) + public function listTargetPools($project, $region, $optParams = array()) { - $params = array('project' => $project); + $params = array('project' => $project, 'region' => $region); $params = array_merge($params, $optParams); - return $this->call('list', array($params), "Google_Service_Compute_ForwardingRuleList"); + return $this->call('list', array($params), "Google_Service_Compute_TargetPoolList"); } /** - * Changes target url for forwarding rule. (globalForwardingRules.setTarget) + * 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 $forwardingRule Name of the ForwardingRule resource in which - * target is to be set. + * @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 setTarget($project, $forwardingRule, Google_Service_Compute_TargetReference $postBody, $optParams = array()) + public function setBackup($project, $region, $targetPool, Google_Service_Compute_TargetReference $postBody, $optParams = array()) { - $params = array('project' => $project, 'forwardingRule' => $forwardingRule, 'postBody' => $postBody); + $params = array('project' => $project, 'region' => $region, 'targetPool' => $targetPool, 'postBody' => $postBody); $params = array_merge($params, $optParams); - return $this->call('setTarget', array($params), "Google_Service_Compute_Operation"); + return $this->call('setBackup', array($params), "Google_Service_Compute_Operation"); } } /** - * The "globalOperations" collection of methods. + * The "targetVpnGateways" collection of methods. * Typical usage is: * * $computeService = new Google_Service_Compute(...); - * $globalOperations = $computeService->globalOperations; + * $targetVpnGateways = $computeService->targetVpnGateways; * */ -class Google_Service_Compute_GlobalOperations_Resource extends Google_Service_Resource +class Google_Service_Compute_TargetVpnGateways_Resource extends Google_Service_Resource { /** - * Retrieves the list of all operations grouped by scope. - * (globalOperations.aggregatedList) + * 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 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 + * @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_OperationAggregatedList"); + return $this->call('aggregatedList', array($params), "Google_Service_Compute_TargetVpnGatewayAggregatedList"); } /** - * Deletes the specified operation resource. (globalOperations.delete) + * Deletes the specified TargetVpnGateway resource. (targetVpnGateways.delete) * * @param string $project Project ID for this request. - * @param string $operation Name of the operation resource to delete. + * @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, $operation, $optParams = array()) + public function delete($project, $region, $targetVpnGateway, $optParams = array()) { - $params = array('project' => $project, 'operation' => $operation); + $params = array('project' => $project, 'region' => $region, 'targetVpnGateway' => $targetVpnGateway); $params = array_merge($params, $optParams); - return $this->call('delete', array($params)); + 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"); } /** - * Retrieves the specified operation resource. (globalOperations.get) + * 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 $operation Name of the operation resource to return. + * @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 get($project, $operation, $optParams = array()) + public function insert($project, $region, Google_Service_Compute_TargetVpnGateway $postBody, $optParams = array()) { - $params = array('project' => $project, 'operation' => $operation); + $params = array('project' => $project, 'region' => $region, '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 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 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 + * @return Google_Service_Compute_TargetVpnGatewayList */ - public function listGlobalOperations($project, $optParams = array()) + public function listTargetVpnGateways($project, $region, $optParams = array()) { - $params = array('project' => $project); + $params = array('project' => $project, 'region' => $region); $params = array_merge($params, $optParams); - return $this->call('list', array($params), "Google_Service_Compute_OperationList"); + return $this->call('list', array($params), "Google_Service_Compute_TargetVpnGatewayList"); } } /** - * The "httpHealthChecks" collection of methods. + * The "urlMaps" collection of methods. * Typical usage is: * * $computeService = new Google_Service_Compute(...); - * $httpHealthChecks = $computeService->httpHealthChecks; + * $urlMaps = $computeService->urlMaps; * */ -class Google_Service_Compute_HttpHealthChecks_Resource extends Google_Service_Resource +class Google_Service_Compute_UrlMaps_Resource extends Google_Service_Resource { /** - * Deletes the specified HttpHealthCheck resource. (httpHealthChecks.delete) + * Deletes the specified UrlMap resource. (urlMaps.delete) * * @param string $project Name of the project scoping this request. - * @param string $httpHealthCheck Name of the HttpHealthCheck resource to - * delete. + * @param string $urlMap Name of the UrlMap resource to delete. * @param array $optParams Optional parameters. * @return Google_Service_Compute_Operation */ - public function delete($project, $httpHealthCheck, $optParams = array()) + public function delete($project, $urlMap, $optParams = array()) { - $params = array('project' => $project, 'httpHealthCheck' => $httpHealthCheck); + $params = array('project' => $project, 'urlMap' => $urlMap); $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 UrlMap resource. (urlMaps.get) * * @param string $project Name of the project scoping this request. - * @param string $httpHealthCheck Name of the HttpHealthCheck resource to - * return. + * @param string $urlMap Name of the UrlMap resource to return. * @param array $optParams Optional parameters. - * @return Google_Service_Compute_HttpHealthCheck + * @return Google_Service_Compute_UrlMap */ - public function get($project, $httpHealthCheck, $optParams = array()) + public function get($project, $urlMap, $optParams = array()) { - $params = array('project' => $project, 'httpHealthCheck' => $httpHealthCheck); + $params = array('project' => $project, 'urlMap' => $urlMap); $params = array_merge($params, $optParams); - return $this->call('get', array($params), "Google_Service_Compute_HttpHealthCheck"); + return $this->call('get', array($params), "Google_Service_Compute_UrlMap"); } /** - * Creates a HttpHealthCheck resource in the specified project using the data - * included in the request. (httpHealthChecks.insert) + * 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_HttpHealthCheck $postBody + * @param Google_UrlMap $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_UrlMap $postBody, $optParams = array()) { $params = array('project' => $project, 'postBody' => $postBody); $params = array_merge($params, $optParams); @@ -4041,2011 +8079,1390 @@ public function insert($project, Google_Service_Compute_HttpHealthCheck $postBod } /** - * Retrieves the list of HttpHealthCheck resources available to the specified - * project. (httpHealthChecks.listHttpHealthChecks) + * 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 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 + * @return Google_Service_Compute_UrlMapList */ - public function listHttpHealthChecks($project, $optParams = array()) + public function listUrlMaps($project, $optParams = array()) { $params = array('project' => $project); $params = array_merge($params, $optParams); - return $this->call('list', array($params), "Google_Service_Compute_HttpHealthCheckList"); + return $this->call('list', array($params), "Google_Service_Compute_UrlMapList"); } /** - * Updates a HttpHealthCheck resource in the specified project using the data - * included in the request. This method supports patch semantics. - * (httpHealthChecks.patch) + * 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 $httpHealthCheck Name of the HttpHealthCheck resource to - * update. - * @param Google_HttpHealthCheck $postBody + * @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, $httpHealthCheck, Google_Service_Compute_HttpHealthCheck $postBody, $optParams = array()) + public function patch($project, $urlMap, Google_Service_Compute_UrlMap $postBody, $optParams = array()) { - $params = array('project' => $project, 'httpHealthCheck' => $httpHealthCheck, 'postBody' => $postBody); + $params = array('project' => $project, 'urlMap' => $urlMap, '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) + * Update the entire content of the UrlMap resource. (urlMaps.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 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, $httpHealthCheck, Google_Service_Compute_HttpHealthCheck $postBody, $optParams = array()) + public function update($project, $urlMap, Google_Service_Compute_UrlMap $postBody, $optParams = array()) { - $params = array('project' => $project, 'httpHealthCheck' => $httpHealthCheck, 'postBody' => $postBody); + $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 "images" collection of methods. + * The "vpnTunnels" collection of methods. * Typical usage is: * * $computeService = new Google_Service_Compute(...); - * $images = $computeService->images; + * $vpnTunnels = $computeService->vpnTunnels; * */ -class Google_Service_Compute_Images_Resource extends Google_Service_Resource +class Google_Service_Compute_VpnTunnels_Resource extends Google_Service_Resource { /** - * Deletes the specified image resource. (images.delete) + * Retrieves the list of VPN tunnels grouped by scope. + * (vpnTunnels.aggregatedList) * * @param string $project Project ID for this request. - * @param string $image Name of the image resource to delete. + * @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, $image, $optParams = array()) + public function delete($project, $region, $vpnTunnel, $optParams = array()) { - $params = array('project' => $project, 'image' => $image); + $params = array('project' => $project, 'region' => $region, 'vpnTunnel' => $vpnTunnel); $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 VpnTunnel resource. (vpnTunnels.get) * - * If an empty request body is given, clears the deprecation status instead. - * (images.deprecate) + * @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 $image Image name. - * @param Google_DeprecationStatus $postBody + * @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 deprecate($project, $image, Google_Service_Compute_DeprecationStatus $postBody, $optParams = array()) + public function insert($project, $region, Google_Service_Compute_VpnTunnel $postBody, $optParams = array()) { - $params = array('project' => $project, 'image' => $image, 'postBody' => $postBody); + $params = array('project' => $project, 'region' => $region, 'postBody' => $postBody); $params = array_merge($params, $optParams); - return $this->call('deprecate', array($params), "Google_Service_Compute_Operation"); + return $this->call('insert', array($params), "Google_Service_Compute_Operation"); } /** - * Returns the specified image resource. (images.get) + * 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 $image Name of the image resource to return. + * @param string $region The name of the region for this request. * @param array $optParams Optional parameters. - * @return Google_Service_Compute_Image + * + * @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 get($project, $image, $optParams = array()) + 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, 'image' => $image); + $params = array('project' => $project, 'zone' => $zone, 'operation' => $operation); $params = array_merge($params, $optParams); - return $this->call('get', array($params), "Google_Service_Compute_Image"); + return $this->call('delete', array($params)); } /** - * Creates an image resource in the specified project using the data included in - * the request. (images.insert) + * Retrieves the specified zone-specific Operations resource. + * (zoneOperations.get) * * @param string $project Project ID for this request. - * @param Google_Image $postBody + * @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 insert($project, Google_Service_Compute_Image $postBody, $optParams = array()) + public function get($project, $zone, $operation, $optParams = array()) { - $params = array('project' => $project, 'postBody' => $postBody); + $params = array('project' => $project, 'zone' => $zone, 'operation' => $operation); $params = array_merge($params, $optParams); - return $this->call('insert', array($params), "Google_Service_Compute_Operation"); + return $this->call('get', array($params), "Google_Service_Compute_Operation"); } /** - * Retrieves the list of image resources available to the specified project. - * (images.listImages) + * 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 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 + * @return Google_Service_Compute_OperationList */ - public function listImages($project, $optParams = array()) + public function listZoneOperations($project, $zone, $optParams = array()) { - $params = array('project' => $project); + $params = array('project' => $project, 'zone' => $zone); $params = array_merge($params, $optParams); - return $this->call('list', array($params), "Google_Service_Compute_ImageList"); + return $this->call('list', array($params), "Google_Service_Compute_OperationList"); } } /** - * The "instanceTemplates" collection of methods. + * The "zones" collection of methods. * Typical usage is: * * $computeService = new Google_Service_Compute(...); - * $instanceTemplates = $computeService->instanceTemplates; + * $zones = $computeService->zones; * */ -class Google_Service_Compute_InstanceTemplates_Resource extends Google_Service_Resource +class Google_Service_Compute_Zones_Resource extends Google_Service_Resource { /** - * Deletes the specified instance template. (instanceTemplates.delete) + * Returns the specified zone resource. (zones.get) * - * @param string $project The project ID for this request. - * @param string $instanceTemplate The name of the instance template to delete. + * @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_Operation + * @return Google_Service_Compute_Zone */ - public function delete($project, $instanceTemplate, $optParams = array()) + public function get($project, $zone, $optParams = array()) { - $params = array('project' => $project, 'instanceTemplate' => $instanceTemplate); + $params = array('project' => $project, 'zone' => $zone); $params = array_merge($params, $optParams); - return $this->call('delete', array($params), "Google_Service_Compute_Operation"); + return $this->call('get', array($params), "Google_Service_Compute_Zone"); } /** - * Returns the specified instance template resource. (instanceTemplates.get) + * Retrieves the list of zone resources available to the specified project. + * (zones.listZones) * - * @param string $project The project ID for this request. - * @param string $instanceTemplate The name of the instance template. + * @param string $project Project ID for this request. * @param array $optParams Optional parameters. - * @return Google_Service_Compute_InstanceTemplate + * + * @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 get($project, $instanceTemplate, $optParams = array()) + public function listZones($project, $optParams = array()) { - $params = array('project' => $project, 'instanceTemplate' => $instanceTemplate); + $params = array('project' => $project); $params = array_merge($params, $optParams); - return $this->call('get', array($params), "Google_Service_Compute_InstanceTemplate"); + 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; } - - /** - * 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 setSelfLink($selfLink) { - $params = array('project' => $project, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('insert', array($params), "Google_Service_Compute_Operation"); + $this->selfLink = $selfLink; } - - /** - * 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 getSelfLink() { - $params = array('project' => $project); - $params = array_merge($params, $optParams); - return $this->call('list', array($params), "Google_Service_Compute_InstanceTemplateList"); + return $this->selfLink; } } -/** - * 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_AddressAggregatedListItems extends Google_Model { +} - /** - * 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()) +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) { - $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->id = $id; } - - /** - * (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 getId() { - $params = array('project' => $project); - $params = array_merge($params, $optParams); - return $this->call('aggregatedList', array($params), "Google_Service_Compute_InstanceAggregatedList"); + return $this->id; } - - /** - * 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()) + public function setItems($items) { - $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->items = $items; } - - /** - * 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 getItems() { - $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->items; } - - /** - * 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 setKind($kind) { - $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->kind = $kind; } - - /** - * 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 getKind() { - $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->kind; } - - /** - * 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()) + public function setNextPageToken($nextPageToken) { - $params = array('project' => $project, 'zone' => $zone, 'instance' => $instance); - $params = array_merge($params, $optParams); - return $this->call('get', array($params), "Google_Service_Compute_Instance"); + $this->nextPageToken = $nextPageToken; } - - /** - * 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()) + public function getNextPageToken() { - $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->nextPageToken; } - - /** - * 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 setSelfLink($selfLink) { - $params = array('project' => $project, 'zone' => $zone, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('insert', array($params), "Google_Service_Compute_Operation"); + $this->selfLink = $selfLink; } - - /** - * 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 getSelfLink() { - $params = array('project' => $project, 'zone' => $zone); - $params = array_merge($params, $optParams); - return $this->call('list', array($params), "Google_Service_Compute_InstanceList"); + return $this->selfLink; } +} - /** - * 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()) +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() { - $params = array('project' => $project, 'zone' => $zone, 'instance' => $instance); - $params = array_merge($params, $optParams); - return $this->call('reset', array($params), "Google_Service_Compute_Operation"); + return $this->addresses; } - - /** - * 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 setWarning(Google_Service_Compute_AddressesScopedListWarning $warning) { - $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"); + $this->warning = $warning; } - - /** - * 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 getWarning() { - $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"); + return $this->warning; } +} - /** - * 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()) +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, 'zone' => $zone, 'instance' => $instance, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('setScheduling', array($params), "Google_Service_Compute_Operation"); + $this->code = $code; } - - /** - * 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 getCode() { - $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"); + return $this->code; } - - /** - * 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 setData($data) { - $params = array('project' => $project, 'zone' => $zone, 'instance' => $instance); - $params = array_merge($params, $optParams); - return $this->call('start', array($params), "Google_Service_Compute_Operation"); + $this->data = $data; } - - /** - * 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 getData() { - $params = array('project' => $project, 'zone' => $zone, 'instance' => $instance); - $params = array_merge($params, $optParams); - return $this->call('stop', array($params), "Google_Service_Compute_Operation"); + return $this->data; + } + public function setMessage($message) + { + $this->message = $message; + } + public function getMessage() + { + return $this->message; } } -/** - * 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 +class Google_Service_Compute_AddressesScopedListWarningData extends Google_Model { + protected $internal_gapi_mappings = array( + ); + public $key; + public $value; - /** - * 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 setKey($key) { - $params = array('project' => $project, 'license' => $license); - $params = array_merge($params, $optParams); - return $this->call('get', array($params), "Google_Service_Compute_License"); + $this->key = $key; + } + public function getKey() + { + return $this->key; + } + public function setValue($value) + { + $this->value = $value; + } + public function getValue() + { + return $this->value; } } -/** - * 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_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; - /** - * 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 setAutoDelete($autoDelete) { - $params = array('project' => $project); - $params = array_merge($params, $optParams); - return $this->call('aggregatedList', array($params), "Google_Service_Compute_MachineTypeAggregatedList"); + $this->autoDelete = $autoDelete; } - - /** - * 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 getAutoDelete() { - $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->autoDelete; } - - /** - * 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 setBoot($boot) + { + $this->boot = $boot; + } + public function getBoot() + { + return $this->boot; + } + public function setDeviceName($deviceName) { - $params = array('project' => $project, 'zone' => $zone); - $params = array_merge($params, $optParams); - return $this->call('list', array($params), "Google_Service_Compute_MachineTypeList"); + $this->deviceName = $deviceName; } -} - -/** - * 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 getDeviceName() { - $params = array('project' => $project, 'network' => $network); - $params = array_merge($params, $optParams); - return $this->call('delete', array($params), "Google_Service_Compute_Operation"); + return $this->deviceName; } - - /** - * 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 setIndex($index) { - $params = array('project' => $project, 'network' => $network); - $params = array_merge($params, $optParams); - return $this->call('get', array($params), "Google_Service_Compute_Network"); + $this->index = $index; } - - /** - * 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 getIndex() { - $params = array('project' => $project, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('insert', array($params), "Google_Service_Compute_Operation"); + return $this->index; } - - /** - * 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 setInitializeParams(Google_Service_Compute_AttachedDiskInitializeParams $initializeParams) { - $params = array('project' => $project); - $params = array_merge($params, $optParams); - return $this->call('list', array($params), "Google_Service_Compute_NetworkList"); + $this->initializeParams = $initializeParams; } -} - -/** - * 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 getInitializeParams() { - $params = array('project' => $project); - $params = array_merge($params, $optParams); - return $this->call('get', array($params), "Google_Service_Compute_Project"); + return $this->initializeParams; } - - /** - * 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 setInterface($interface) { - $params = array('project' => $project, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('moveDisk', array($params), "Google_Service_Compute_Operation"); + $this->interface = $interface; } - - /** - * 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 getInterface() { - $params = array('project' => $project, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('moveInstance', array($params), "Google_Service_Compute_Operation"); + return $this->interface; } - - /** - * 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 setKind($kind) { - $params = array('project' => $project, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('setCommonInstanceMetadata', array($params), "Google_Service_Compute_Operation"); + $this->kind = $kind; } - - /** - * 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 getKind() { - $params = array('project' => $project, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('setUsageExportBucket', array($params), "Google_Service_Compute_Operation"); + return $this->kind; } -} - -/** - * 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 setLicenses($licenses) { - $params = array('project' => $project, 'region' => $region, 'operation' => $operation); - $params = array_merge($params, $optParams); - return $this->call('delete', array($params)); + $this->licenses = $licenses; } - - /** - * 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 getLicenses() { - $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->licenses; } - - /** - * 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 setMode($mode) { - $params = array('project' => $project, 'region' => $region); - $params = array_merge($params, $optParams); - return $this->call('list', array($params), "Google_Service_Compute_OperationList"); + $this->mode = $mode; } -} - -/** - * 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 getMode() + { + return $this->mode; + } + public function setSource($source) { - $params = array('project' => $project, 'region' => $region); - $params = array_merge($params, $optParams); - return $this->call('get', array($params), "Google_Service_Compute_Region"); + $this->source = $source; } - - /** - * 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 getSource() { - $params = array('project' => $project); - $params = array_merge($params, $optParams); - return $this->call('list', array($params), "Google_Service_Compute_RegionList"); + return $this->source; + } + public function setType($type) + { + $this->type = $type; + } + public function getType() + { + return $this->type; } } -/** - * 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_AttachedDiskInitializeParams extends Google_Model { + protected $internal_gapi_mappings = array( + ); + public $diskName; + public $diskSizeGb; + public $diskType; + public $sourceImage; - /** - * 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 setDiskName($diskName) { - $params = array('project' => $project, 'route' => $route); - $params = array_merge($params, $optParams); - return $this->call('delete', array($params), "Google_Service_Compute_Operation"); + $this->diskName = $diskName; } - - /** - * 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 getDiskName() { - $params = array('project' => $project, 'route' => $route); - $params = array_merge($params, $optParams); - return $this->call('get', array($params), "Google_Service_Compute_Route"); + return $this->diskName; } - - /** - * 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 setDiskSizeGb($diskSizeGb) { - $params = array('project' => $project, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('insert', array($params), "Google_Service_Compute_Operation"); + $this->diskSizeGb = $diskSizeGb; } - - /** - * 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 getDiskSizeGb() { - $params = array('project' => $project); - $params = array_merge($params, $optParams); - return $this->call('list', array($params), "Google_Service_Compute_RouteList"); + return $this->diskSizeGb; } -} - -/** - * 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()) + public function setDiskType($diskType) { - $params = array('project' => $project, 'snapshot' => $snapshot); - $params = array_merge($params, $optParams); - return $this->call('delete', array($params), "Google_Service_Compute_Operation"); + $this->diskType = $diskType; } - - /** - * 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 getDiskType() { - $params = array('project' => $project, 'snapshot' => $snapshot); - $params = array_merge($params, $optParams); - return $this->call('get', array($params), "Google_Service_Compute_Snapshot"); + return $this->diskType; } - - /** - * 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 setSourceImage($sourceImage) { - $params = array('project' => $project); - $params = array_merge($params, $optParams); - return $this->call('list', array($params), "Google_Service_Compute_SnapshotList"); + $this->sourceImage = $sourceImage; + } + public function getSourceImage() + { + return $this->sourceImage; } } -/** - * 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 +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 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 setAutoscalingPolicy(Google_Service_Compute_AutoscalingPolicy $autoscalingPolicy) { - $params = array('project' => $project, 'targetHttpProxy' => $targetHttpProxy); - $params = array_merge($params, $optParams); - return $this->call('delete', array($params), "Google_Service_Compute_Operation"); + $this->autoscalingPolicy = $autoscalingPolicy; } - - /** - * 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 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() { - $params = array('project' => $project, 'targetHttpProxy' => $targetHttpProxy); - $params = array_merge($params, $optParams); - return $this->call('get', array($params), "Google_Service_Compute_TargetHttpProxy"); + return $this->selfLink; } - - /** - * 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 setTarget($target) { - $params = array('project' => $project, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('insert', array($params), "Google_Service_Compute_Operation"); + $this->target = $target; } - - /** - * 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 getTarget() { - $params = array('project' => $project); - $params = array_merge($params, $optParams); - return $this->call('list', array($params), "Google_Service_Compute_TargetHttpProxyList"); + return $this->target; } - - /** - * 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 setZone($zone) { - $params = array('project' => $project, 'targetHttpProxy' => $targetHttpProxy, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('setUrlMap', array($params), "Google_Service_Compute_Operation"); + $this->zone = $zone; + } + public function getZone() + { + return $this->zone; } } -/** - * 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_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; - /** - * 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 setId($id) { - $params = array('project' => $project); - $params = array_merge($params, $optParams); - return $this->call('aggregatedList', array($params), "Google_Service_Compute_TargetInstanceAggregatedList"); + $this->id = $id; } - - /** - * 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 getId() { - $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->id; } - - /** - * 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 setItems($items) { - $params = array('project' => $project, 'zone' => $zone, 'targetInstance' => $targetInstance); - $params = array_merge($params, $optParams); - return $this->call('get', array($params), "Google_Service_Compute_TargetInstance"); + $this->items = $items; } - - /** - * 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 getItems() { - $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->items; } - - /** - * 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 setKind($kind) { - $params = array('project' => $project, 'zone' => $zone); - $params = array_merge($params, $optParams); - return $this->call('list', array($params), "Google_Service_Compute_TargetInstanceList"); + $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 "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_AutoscalerAggregatedListItems extends Google_Model { +} - /** - * 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()) +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) { - $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->id = $id; } - - /** - * 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 getId() { - $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->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 setItems($items) + { + $this->items = $items; + } + public function getItems() + { + return $this->items; + } + public function setKind($kind) { - $params = array('project' => $project); - $params = array_merge($params, $optParams); - return $this->call('aggregatedList', array($params), "Google_Service_Compute_TargetPoolAggregatedList"); + $this->kind = $kind; } - - /** - * 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 getKind() { - $params = array('project' => $project, 'region' => $region, 'targetPool' => $targetPool); - $params = array_merge($params, $optParams); - return $this->call('delete', array($params), "Google_Service_Compute_Operation"); + return $this->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 setNextPageToken($nextPageToken) { - $params = array('project' => $project, 'region' => $region, 'targetPool' => $targetPool); - $params = array_merge($params, $optParams); - return $this->call('get', array($params), "Google_Service_Compute_TargetPool"); + $this->nextPageToken = $nextPageToken; } - - /** - * 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 getNextPageToken() { - $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"); + return $this->nextPageToken; } - - /** - * 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 setSelfLink($selfLink) { - $params = array('project' => $project, 'region' => $region, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('insert', array($params), "Google_Service_Compute_Operation"); + $this->selfLink = $selfLink; } - - /** - * 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 getSelfLink() { - $params = array('project' => $project, 'region' => $region); - $params = array_merge($params, $optParams); - return $this->call('list', array($params), "Google_Service_Compute_TargetPoolList"); + return $this->selfLink; } +} - /** - * 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()) +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, 'region' => $region, 'targetPool' => $targetPool, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('removeHealthCheck', array($params), "Google_Service_Compute_Operation"); + $this->autoscalers = $autoscalers; } - - /** - * 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 getAutoscalers() { - $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"); + return $this->autoscalers; } - - /** - * 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 setWarning(Google_Service_Compute_AutoscalersScopedListWarning $warning) { - $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"); + $this->warning = $warning; + } + public function getWarning() + { + return $this->warning; } } -/** - * 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 +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; - /** - * 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 setCode($code) { - $params = array('project' => $project); - $params = array_merge($params, $optParams); - return $this->call('aggregatedList', array($params), "Google_Service_Compute_TargetVpnGatewayAggregatedList"); + $this->code = $code; } - - /** - * 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 getCode() { - $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->code; } - - /** - * 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 setData($data) { - $params = array('project' => $project, 'region' => $region, 'targetVpnGateway' => $targetVpnGateway); - $params = array_merge($params, $optParams); - return $this->call('get', array($params), "Google_Service_Compute_TargetVpnGateway"); + $this->data = $data; + } + public function getData() + { + return $this->data; + } + public function setMessage($message) + { + $this->message = $message; + } + public function getMessage() + { + return $this->message; } +} - /** - * 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()) +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) { - $params = array('project' => $project, 'region' => $region, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('insert', array($params), "Google_Service_Compute_Operation"); + $this->value = $value; } - - /** - * 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 getValue() { - $params = array('project' => $project, 'region' => $region); - $params = array_merge($params, $optParams); - return $this->call('list', array($params), "Google_Service_Compute_TargetVpnGatewayList"); + return $this->value; } } -/** - * 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 +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 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 setCoolDownPeriodSec($coolDownPeriodSec) { - $params = array('project' => $project, 'urlMap' => $urlMap); - $params = array_merge($params, $optParams); - return $this->call('delete', array($params), "Google_Service_Compute_Operation"); + $this->coolDownPeriodSec = $coolDownPeriodSec; } - - /** - * 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 getCoolDownPeriodSec() { - $params = array('project' => $project, 'urlMap' => $urlMap); - $params = array_merge($params, $optParams); - return $this->call('get', array($params), "Google_Service_Compute_UrlMap"); + return $this->coolDownPeriodSec; } - - /** - * 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 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 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 getCpuUtilization() { - $params = array('project' => $project); - $params = array_merge($params, $optParams); - return $this->call('list', array($params), "Google_Service_Compute_UrlMapList"); + return $this->cpuUtilization; } - - /** - * 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 setCustomMetricUtilizations($customMetricUtilizations) { - $params = array('project' => $project, 'urlMap' => $urlMap, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('patch', array($params), "Google_Service_Compute_Operation"); + $this->customMetricUtilizations = $customMetricUtilizations; } - - /** - * 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 getCustomMetricUtilizations() { - $params = array('project' => $project, 'urlMap' => $urlMap, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('update', array($params), "Google_Service_Compute_Operation"); + return $this->customMetricUtilizations; } - - /** - * 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 setLoadBalancingUtilization(Google_Service_Compute_AutoscalingPolicyLoadBalancingUtilization $loadBalancingUtilization) { - $params = array('project' => $project, 'urlMap' => $urlMap, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('validate', array($params), "Google_Service_Compute_UrlMapsValidateResponse"); + $this->loadBalancingUtilization = $loadBalancingUtilization; } -} - -/** - * 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 getLoadBalancingUtilization() { - $params = array('project' => $project); - $params = array_merge($params, $optParams); - return $this->call('aggregatedList', array($params), "Google_Service_Compute_VpnTunnelAggregatedList"); + return $this->loadBalancingUtilization; } - - /** - * 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 setMaxNumReplicas($maxNumReplicas) { - $params = array('project' => $project, 'region' => $region, 'vpnTunnel' => $vpnTunnel); - $params = array_merge($params, $optParams); - return $this->call('delete', array($params), "Google_Service_Compute_Operation"); + $this->maxNumReplicas = $maxNumReplicas; } - - /** - * 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 getMaxNumReplicas() { - $params = array('project' => $project, 'region' => $region, 'vpnTunnel' => $vpnTunnel); - $params = array_merge($params, $optParams); - return $this->call('get', array($params), "Google_Service_Compute_VpnTunnel"); + return $this->maxNumReplicas; } - - /** - * 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 setMinNumReplicas($minNumReplicas) { - $params = array('project' => $project, 'region' => $region, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('insert', array($params), "Google_Service_Compute_Operation"); + $this->minNumReplicas = $minNumReplicas; } - - /** - * 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 getMinNumReplicas() { - $params = array('project' => $project, 'region' => $region); - $params = array_merge($params, $optParams); - return $this->call('list', array($params), "Google_Service_Compute_VpnTunnelList"); + return $this->minNumReplicas; } } -/** - * 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 +class Google_Service_Compute_AutoscalingPolicyCpuUtilization extends Google_Model { - - /** - * 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()) + protected $internal_gapi_mappings = array( + ); + public $utilizationTarget; + + + public function setUtilizationTarget($utilizationTarget) { - $params = array('project' => $project, 'zone' => $zone, 'operation' => $operation); - $params = array_merge($params, $optParams); - return $this->call('get', array($params), "Google_Service_Compute_Operation"); + $this->utilizationTarget = $utilizationTarget; } - - /** - * 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 getUtilizationTarget() { - $params = array('project' => $project, 'zone' => $zone); - $params = array_merge($params, $optParams); - return $this->call('list', array($params), "Google_Service_Compute_OperationList"); + return $this->utilizationTarget; } } -/** - * 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_AutoscalingPolicyCustomMetricUtilization extends Google_Model { + protected $internal_gapi_mappings = array( + ); + public $metric; + public $utilizationTarget; + public $utilizationTargetType; - /** - * 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 setMetric($metric) { - $params = array('project' => $project, 'zone' => $zone); - $params = array_merge($params, $optParams); - return $this->call('get', array($params), "Google_Service_Compute_Zone"); + $this->metric = $metric; } - - /** - * 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 getMetric() { - $params = array('project' => $project); - $params = array_merge($params, $optParams); - return $this->call('list', array($params), "Google_Service_Compute_ZoneList"); + 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_AccessConfig extends Google_Model +class Google_Service_Compute_Backend extends Google_Model { protected $internal_gapi_mappings = array( ); - public $kind; - public $name; - public $natIP; - public $type; + public $balancingMode; + public $capacityScaler; + public $description; + public $group; + public $maxRate; + public $maxRatePerInstance; + public $maxUtilization; - public function setKind($kind) + public function setBalancingMode($balancingMode) { - $this->kind = $kind; + $this->balancingMode = $balancingMode; } - public function getKind() + public function getBalancingMode() { - return $this->kind; + return $this->balancingMode; } - public function setName($name) + public function setCapacityScaler($capacityScaler) { - $this->name = $name; + $this->capacityScaler = $capacityScaler; } - public function getName() + public function getCapacityScaler() { - return $this->name; + return $this->capacityScaler; } - public function setNatIP($natIP) + public function setDescription($description) { - $this->natIP = $natIP; + $this->description = $description; } - public function getNatIP() + public function getDescription() { - return $this->natIP; + return $this->description; } - public function setType($type) + public function setGroup($group) { - $this->type = $type; + $this->group = $group; } - public function getType() + public function getGroup() { - return $this->type; + 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_Address extends Google_Collection +class Google_Service_Compute_BackendService extends Google_Collection { - protected $collection_key = 'users'; + protected $collection_key = 'healthChecks'; protected $internal_gapi_mappings = array( ); - public $address; + protected $backendsType = 'Google_Service_Compute_Backend'; + protected $backendsDataType = 'array'; public $creationTimestamp; public $description; + public $fingerprint; + public $healthChecks; public $id; public $kind; public $name; - public $region; + public $port; + public $portName; + public $protocol; public $selfLink; - public $status; - public $users; + public $timeoutSec; - public function setAddress($address) + public function setBackends($backends) { - $this->address = $address; + $this->backends = $backends; } - public function getAddress() + public function getBackends() { - return $this->address; + return $this->backends; } public function setCreationTimestamp($creationTimestamp) { @@ -6063,6 +9480,22 @@ 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; @@ -6087,67 +9520,65 @@ public function getName() { return $this->name; } - public function setRegion($region) + public function setPort($port) { - $this->region = $region; + $this->port = $port; } - public function getRegion() + public function getPort() { - return $this->region; + return $this->port; } - public function setSelfLink($selfLink) + public function setPortName($portName) { - $this->selfLink = $selfLink; + $this->portName = $portName; } - public function getSelfLink() + public function getPortName() { - return $this->selfLink; + return $this->portName; } - public function setStatus($status) + public function setProtocol($protocol) { - $this->status = $status; + $this->protocol = $protocol; } - public function getStatus() + public function getProtocol() { - return $this->status; + return $this->protocol; } - 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 setTimeoutSec($timeoutSec) + { + $this->timeoutSec = $timeoutSec; + } + public function getTimeoutSec() + { + return $this->timeoutSec; } } -class Google_Service_Compute_AddressAggregatedList extends Google_Model +class Google_Service_Compute_BackendServiceGroupHealth extends Google_Collection { + protected $collection_key = 'healthStatus'; protected $internal_gapi_mappings = array( ); - public $id; - protected $itemsType = 'Google_Service_Compute_AddressesScopedList'; - protected $itemsDataType = 'map'; + protected $healthStatusType = 'Google_Service_Compute_HealthStatus'; + protected $healthStatusDataType = 'array'; public $kind; - public $nextPageToken; - public $selfLink; - public function setId($id) - { - $this->id = $id; - } - public function getId() - { - return $this->id; - } - public function setItems($items) + public function setHealthStatus($healthStatus) { - $this->items = $items; + $this->healthStatus = $healthStatus; } - public function getItems() + public function getHealthStatus() { - return $this->items; + return $this->healthStatus; } public function setKind($kind) { @@ -6157,35 +9588,15 @@ 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 +class Google_Service_Compute_BackendServiceList 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_BackendService'; protected $itemsDataType = 'array'; public $kind; public $nextPageToken; @@ -6234,196 +9645,212 @@ public function getSelfLink() } } -class Google_Service_Compute_AddressesScopedList extends Google_Collection +class Google_Service_Compute_DeprecationStatus extends Google_Model { - 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 $deleted; + public $deprecated; + public $obsolete; + public $replacement; + public $state; - public function setAddresses($addresses) + public function setDeleted($deleted) { - $this->addresses = $addresses; + $this->deleted = $deleted; } - public function getAddresses() + public function getDeleted() { - return $this->addresses; + return $this->deleted; } - public function setWarning(Google_Service_Compute_AddressesScopedListWarning $warning) + public function setDeprecated($deprecated) { - $this->warning = $warning; + $this->deprecated = $deprecated; } - public function getWarning() + public function getDeprecated() { - return $this->warning; + return $this->deprecated; } -} - -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) + public function setObsolete($obsolete) { - $this->code = $code; + $this->obsolete = $obsolete; } - public function getCode() + public function getObsolete() { - return $this->code; + return $this->obsolete; } - public function setData($data) + public function setReplacement($replacement) { - $this->data = $data; + $this->replacement = $replacement; } - public function getData() + public function getReplacement() { - return $this->data; + return $this->replacement; } - public function setMessage($message) + public function setState($state) { - $this->message = $message; + $this->state = $state; } - public function getMessage() + public function getState() { - return $this->message; + return $this->state; } } -class Google_Service_Compute_AddressesScopedListWarningData extends Google_Model +class Google_Service_Compute_Disk extends Google_Collection { + protected $collection_key = 'users'; protected $internal_gapi_mappings = array( ); - public $key; - public $value; + 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 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 setDescription($description) { - $this->value = $value; + $this->description = $description; } - public function getValue() + public function getDescription() { - return $this->value; + return $this->description; } -} - -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) + public function setId($id) { - $this->autoDelete = $autoDelete; + $this->id = $id; } - public function getAutoDelete() + public function getId() { - return $this->autoDelete; + return $this->id; } - public function setBoot($boot) + public function setKind($kind) { - $this->boot = $boot; + $this->kind = $kind; } - public function getBoot() + public function getKind() { - return $this->boot; + return $this->kind; } - public function setDeviceName($deviceName) + public function setLastAttachTimestamp($lastAttachTimestamp) { - $this->deviceName = $deviceName; + $this->lastAttachTimestamp = $lastAttachTimestamp; } - public function getDeviceName() + public function getLastAttachTimestamp() { - return $this->deviceName; + return $this->lastAttachTimestamp; } - public function setIndex($index) + public function setLastDetachTimestamp($lastDetachTimestamp) { - $this->index = $index; + $this->lastDetachTimestamp = $lastDetachTimestamp; } - public function getIndex() + public function getLastDetachTimestamp() { - return $this->index; + return $this->lastDetachTimestamp; } - public function setInitializeParams(Google_Service_Compute_AttachedDiskInitializeParams $initializeParams) + public function setLicenses($licenses) { - $this->initializeParams = $initializeParams; + $this->licenses = $licenses; } - public function getInitializeParams() + public function getLicenses() { - return $this->initializeParams; + return $this->licenses; } - public function setInterface($interface) + public function setName($name) { - $this->interface = $interface; + $this->name = $name; } - public function getInterface() + public function getName() { - return $this->interface; + return $this->name; } - public function setKind($kind) + public function setOptions($options) { - $this->kind = $kind; + $this->options = $options; } - public function getKind() + public function getOptions() { - return $this->kind; + return $this->options; } - public function setLicenses($licenses) + public function setSelfLink($selfLink) { - $this->licenses = $licenses; + $this->selfLink = $selfLink; } - public function getLicenses() + public function getSelfLink() { - return $this->licenses; + return $this->selfLink; } - public function setMode($mode) + public function setSizeGb($sizeGb) { - $this->mode = $mode; + $this->sizeGb = $sizeGb; } - public function getMode() + public function getSizeGb() { - return $this->mode; + return $this->sizeGb; } - public function setSource($source) + 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->source = $source; + $this->status = $status; } - public function getSource() + public function getStatus() { - return $this->source; + return $this->status; } public function setType($type) { @@ -6433,152 +9860,180 @@ 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_AttachedDiskInitializeParams extends Google_Model +class Google_Service_Compute_DiskAggregatedList extends Google_Model { protected $internal_gapi_mappings = array( ); - public $diskName; - public $diskSizeGb; - public $diskType; - public $sourceImage; + public $id; + protected $itemsType = 'Google_Service_Compute_DisksScopedList'; + protected $itemsDataType = 'map'; + public $kind; + public $nextPageToken; + public $selfLink; - public function setDiskName($diskName) + public function setId($id) { - $this->diskName = $diskName; + $this->id = $id; } - public function getDiskName() + public function getId() { - return $this->diskName; + return $this->id; } - public function setDiskSizeGb($diskSizeGb) + public function setItems($items) { - $this->diskSizeGb = $diskSizeGb; + $this->items = $items; } - public function getDiskSizeGb() + public function getItems() { - return $this->diskSizeGb; + return $this->items; } - public function setDiskType($diskType) + public function setKind($kind) { - $this->diskType = $diskType; + $this->kind = $kind; } - public function getDiskType() + public function getKind() { - return $this->diskType; + return $this->kind; } - public function setSourceImage($sourceImage) + public function setNextPageToken($nextPageToken) { - $this->sourceImage = $sourceImage; + $this->nextPageToken = $nextPageToken; } - public function getSourceImage() + public function getNextPageToken() { - return $this->sourceImage; + return $this->nextPageToken; + } + public function setSelfLink($selfLink) + { + $this->selfLink = $selfLink; + } + public function getSelfLink() + { + return $this->selfLink; } } -class Google_Service_Compute_Backend extends Google_Model +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 $balancingMode; - public $capacityScaler; - public $description; - public $group; - public $maxRate; - public $maxRatePerInstance; - public $maxUtilization; + public $id; + protected $itemsType = 'Google_Service_Compute_Disk'; + protected $itemsDataType = 'array'; + public $kind; + public $nextPageToken; + public $selfLink; - public function setBalancingMode($balancingMode) + public function setId($id) { - $this->balancingMode = $balancingMode; + $this->id = $id; } - public function getBalancingMode() + public function getId() { - return $this->balancingMode; + return $this->id; } - public function setCapacityScaler($capacityScaler) + public function setItems($items) { - $this->capacityScaler = $capacityScaler; + $this->items = $items; } - public function getCapacityScaler() + public function getItems() { - return $this->capacityScaler; + 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 setGroup($group) + public function setNextPageToken($nextPageToken) { - $this->group = $group; + $this->nextPageToken = $nextPageToken; } - public function getGroup() + public function getNextPageToken() { - return $this->group; + return $this->nextPageToken; } - public function setMaxRate($maxRate) + public function setSelfLink($selfLink) { - $this->maxRate = $maxRate; + $this->selfLink = $selfLink; } - public function getMaxRate() + public function getSelfLink() { - return $this->maxRate; + return $this->selfLink; } - public function setMaxRatePerInstance($maxRatePerInstance) +} + +class Google_Service_Compute_DiskMoveRequest extends Google_Model +{ + protected $internal_gapi_mappings = array( + ); + public $destinationZone; + public $targetDisk; + + + public function setDestinationZone($destinationZone) { - $this->maxRatePerInstance = $maxRatePerInstance; + $this->destinationZone = $destinationZone; } - public function getMaxRatePerInstance() + public function getDestinationZone() { - return $this->maxRatePerInstance; + return $this->destinationZone; } - public function setMaxUtilization($maxUtilization) + public function setTargetDisk($targetDisk) { - $this->maxUtilization = $maxUtilization; + $this->targetDisk = $targetDisk; } - public function getMaxUtilization() + public function getTargetDisk() { - return $this->maxUtilization; + return $this->targetDisk; } } -class Google_Service_Compute_BackendService extends Google_Collection +class Google_Service_Compute_DiskType extends Google_Model { - protected $collection_key = 'healthChecks'; protected $internal_gapi_mappings = array( ); - protected $backendsType = 'Google_Service_Compute_Backend'; - protected $backendsDataType = 'array'; public $creationTimestamp; + public $defaultDiskSizeGb; + protected $deprecatedType = 'Google_Service_Compute_DeprecationStatus'; + protected $deprecatedDataType = ''; public $description; - public $fingerprint; - public $healthChecks; public $id; public $kind; public $name; - public $port; - public $portName; - public $protocol; public $selfLink; - public $timeoutSec; + public $validDiskSize; + public $zone; - public function setBackends($backends) - { - $this->backends = $backends; - } - public function getBackends() - { - return $this->backends; - } public function setCreationTimestamp($creationTimestamp) { $this->creationTimestamp = $creationTimestamp; @@ -6587,29 +10042,29 @@ public function getCreationTimestamp() { return $this->creationTimestamp; } - public function setDescription($description) + public function setDefaultDiskSizeGb($defaultDiskSizeGb) { - $this->description = $description; + $this->defaultDiskSizeGb = $defaultDiskSizeGb; } - public function getDescription() + public function getDefaultDiskSizeGb() { - return $this->description; + return $this->defaultDiskSizeGb; } - public function setFingerprint($fingerprint) + public function setDeprecated(Google_Service_Compute_DeprecationStatus $deprecated) { - $this->fingerprint = $fingerprint; + $this->deprecated = $deprecated; } - public function getFingerprint() + public function getDeprecated() { - return $this->fingerprint; + return $this->deprecated; } - 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; } public function setId($id) { @@ -6635,30 +10090,6 @@ 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; @@ -6667,33 +10098,51 @@ public function getSelfLink() { return $this->selfLink; } - public function setTimeoutSec($timeoutSec) + public function setValidDiskSize($validDiskSize) { - $this->timeoutSec = $timeoutSec; + $this->validDiskSize = $validDiskSize; } - public function getTimeoutSec() + public function getValidDiskSize() { - return $this->timeoutSec; + return $this->validDiskSize; + } + public function setZone($zone) + { + $this->zone = $zone; + } + public function getZone() + { + return $this->zone; } } -class Google_Service_Compute_BackendServiceGroupHealth extends Google_Collection +class Google_Service_Compute_DiskTypeAggregatedList extends Google_Model { - protected $collection_key = 'healthStatus'; protected $internal_gapi_mappings = array( ); - protected $healthStatusType = 'Google_Service_Compute_HealthStatus'; - protected $healthStatusDataType = 'array'; + public $id; + protected $itemsType = 'Google_Service_Compute_DiskTypesScopedList'; + protected $itemsDataType = 'map'; public $kind; + public $nextPageToken; + public $selfLink; - public function setHealthStatus($healthStatus) + public function setId($id) { - $this->healthStatus = $healthStatus; + $this->id = $id; } - public function getHealthStatus() + public function getId() { - return $this->healthStatus; + return $this->id; + } + public function setItems($items) + { + $this->items = $items; + } + public function getItems() + { + return $this->items; } public function setKind($kind) { @@ -6703,15 +10152,35 @@ 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_BackendServiceList extends Google_Collection +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_BackendService'; + protected $itemsType = 'Google_Service_Compute_DiskType'; protected $itemsDataType = 'array'; public $kind; public $nextPageToken; @@ -6760,85 +10229,217 @@ public function getSelfLink() } } -class Google_Service_Compute_DeprecationStatus extends Google_Model +class Google_Service_Compute_DiskTypesScopedList extends Google_Collection { + protected $collection_key = 'diskTypes'; protected $internal_gapi_mappings = array( ); - public $deleted; - public $deprecated; - public $obsolete; - public $replacement; - public $state; + protected $diskTypesType = 'Google_Service_Compute_DiskType'; + protected $diskTypesDataType = 'array'; + protected $warningType = 'Google_Service_Compute_DiskTypesScopedListWarning'; + protected $warningDataType = ''; - public function setDeleted($deleted) + public function setDiskTypes($diskTypes) { - $this->deleted = $deleted; + $this->diskTypes = $diskTypes; } - public function getDeleted() + public function getDiskTypes() { - return $this->deleted; + return $this->diskTypes; } - public function setDeprecated($deprecated) + public function setWarning(Google_Service_Compute_DiskTypesScopedListWarning $warning) { - $this->deprecated = $deprecated; + $this->warning = $warning; } - public function getDeprecated() + public function getWarning() { - return $this->deprecated; + return $this->warning; } - public function setObsolete($obsolete) +} + +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->obsolete = $obsolete; + $this->code = $code; } - public function getObsolete() + public function getCode() { - return $this->obsolete; + return $this->code; } - public function setReplacement($replacement) + public function setData($data) { - $this->replacement = $replacement; + $this->data = $data; } - public function getReplacement() + public function getData() { - return $this->replacement; + return $this->data; } - public function setState($state) + public function setMessage($message) { - $this->state = $state; + $this->message = $message; } - public function getState() + public function getMessage() { - return $this->state; + return $this->message; } } -class Google_Service_Compute_Disk extends Google_Collection +class Google_Service_Compute_DiskTypesScopedListWarningData extends Google_Model { - protected $collection_key = 'users'; 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 $lastAttachTimestamp; - public $lastDetachTimestamp; - public $licenses; public $name; - public $options; + public $network; public $selfLink; - public $sizeGb; - public $sourceImage; - public $sourceImageId; - public $sourceSnapshot; - public $sourceSnapshotId; - public $status; - public $type; - public $users; - public $zone; + 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; @@ -6871,30 +10472,6 @@ 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; @@ -6903,13 +10480,13 @@ public function getName() { return $this->name; } - public function setOptions($options) + public function setNetwork($network) { - $this->options = $options; + $this->network = $network; } - public function getOptions() + public function getNetwork() { - return $this->options; + return $this->network; } public function setSelfLink($selfLink) { @@ -6919,145 +10496,67 @@ 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) + public function setSourceRanges($sourceRanges) { - $this->type = $type; + $this->sourceRanges = $sourceRanges; } - public function getType() + public function getSourceRanges() { - return $this->type; + return $this->sourceRanges; } - public function setUsers($users) + public function setSourceTags($sourceTags) { - $this->users = $users; + $this->sourceTags = $sourceTags; } - public function getUsers() + public function getSourceTags() { - return $this->users; + return $this->sourceTags; } - public function setZone($zone) + public function setTargetTags($targetTags) { - $this->zone = $zone; + $this->targetTags = $targetTags; } - public function getZone() + public function getTargetTags() { - return $this->zone; + return $this->targetTags; } } -class Google_Service_Compute_DiskAggregatedList extends Google_Model +class Google_Service_Compute_FirewallAllowed extends Google_Collection { + protected $collection_key = 'ports'; protected $internal_gapi_mappings = array( + "iPProtocol" => "IPProtocol", ); - public $id; - protected $itemsType = 'Google_Service_Compute_DisksScopedList'; - protected $itemsDataType = 'map'; - public $kind; - public $nextPageToken; - public $selfLink; + public $iPProtocol; + public $ports; - 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) + public function setIPProtocol($iPProtocol) { - $this->nextPageToken = $nextPageToken; + $this->iPProtocol = $iPProtocol; } - public function getNextPageToken() + public function getIPProtocol() { - return $this->nextPageToken; + return $this->iPProtocol; } - public function setSelfLink($selfLink) + public function setPorts($ports) { - $this->selfLink = $selfLink; + $this->ports = $ports; } - public function getSelfLink() + public function getPorts() { - return $this->selfLink; + return $this->ports; } } -class Google_Service_Compute_DiskAggregatedListItems extends Google_Model -{ -} - -class Google_Service_Compute_DiskList 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_Disk'; + protected $itemsType = 'Google_Service_Compute_Firewall'; protected $itemsDataType = 'array'; public $kind; public $nextPageToken; @@ -7106,72 +10605,48 @@ 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 +class Google_Service_Compute_ForwardingRule extends Google_Model { protected $internal_gapi_mappings = array( + "iPAddress" => "IPAddress", + "iPProtocol" => "IPProtocol", ); + public $iPAddress; + public $iPProtocol; public $creationTimestamp; - public $defaultDiskSizeGb; - protected $deprecatedType = 'Google_Service_Compute_DeprecationStatus'; - protected $deprecatedDataType = ''; public $description; public $id; public $kind; public $name; + public $portRange; + public $region; public $selfLink; - public $validDiskSize; - public $zone; + public $target; - public function setCreationTimestamp($creationTimestamp) + public function setIPAddress($iPAddress) { - $this->creationTimestamp = $creationTimestamp; + $this->iPAddress = $iPAddress; } - public function getCreationTimestamp() + public function getIPAddress() { - return $this->creationTimestamp; + return $this->iPAddress; } - public function setDefaultDiskSizeGb($defaultDiskSizeGb) + public function setIPProtocol($iPProtocol) { - $this->defaultDiskSizeGb = $defaultDiskSizeGb; + $this->iPProtocol = $iPProtocol; } - public function getDefaultDiskSizeGb() + public function getIPProtocol() { - return $this->defaultDiskSizeGb; + return $this->iPProtocol; } - 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) { @@ -7205,38 +10680,46 @@ public function getName() { return $this->name; } - public function setSelfLink($selfLink) + public function setPortRange($portRange) { - $this->selfLink = $selfLink; + $this->portRange = $portRange; } - public function getSelfLink() + public function getPortRange() { - return $this->selfLink; + return $this->portRange; } - public function setValidDiskSize($validDiskSize) + public function setRegion($region) { - $this->validDiskSize = $validDiskSize; + $this->region = $region; } - public function getValidDiskSize() + public function getRegion() { - return $this->validDiskSize; + return $this->region; } - public function setZone($zone) + public function setSelfLink($selfLink) { - $this->zone = $zone; + $this->selfLink = $selfLink; + } + public function getSelfLink() + { + return $this->selfLink; + } + public function setTarget($target) + { + $this->target = $target; } - public function getZone() + public function getTarget() { - return $this->zone; + return $this->target; } } -class Google_Service_Compute_DiskTypeAggregatedList extends Google_Model +class Google_Service_Compute_ForwardingRuleAggregatedList extends Google_Model { protected $internal_gapi_mappings = array( ); public $id; - protected $itemsType = 'Google_Service_Compute_DiskTypesScopedList'; + protected $itemsType = 'Google_Service_Compute_ForwardingRulesScopedList'; protected $itemsDataType = 'map'; public $kind; public $nextPageToken; @@ -7285,17 +10768,17 @@ public function getSelfLink() } } -class Google_Service_Compute_DiskTypeAggregatedListItems extends Google_Model +class Google_Service_Compute_ForwardingRuleAggregatedListItems extends Google_Model { } -class Google_Service_Compute_DiskTypeList 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_DiskType'; + protected $itemsType = 'Google_Service_Compute_ForwardingRule'; protected $itemsDataType = 'array'; public $kind; public $nextPageToken; @@ -7340,220 +10823,405 @@ public function setSelfLink($selfLink) } public function getSelfLink() { - return $this->selfLink; + 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; } -} - -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 setHost($host) { - $this->diskTypes = $diskTypes; + $this->host = $host; } - public function getDiskTypes() + public function getHost() { - return $this->diskTypes; + return $this->host; } - public function setWarning(Google_Service_Compute_DiskTypesScopedListWarning $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_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 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 setPort($port) { - $this->message = $message; + $this->port = $port; } - public function getMessage() + public function getPort() { - return $this->message; + return $this->port; } -} - -class Google_Service_Compute_DiskTypesScopedListWarningData extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $key; - public $value; - - - public function setKey($key) + public function setRequestPath($requestPath) { - $this->key = $key; + $this->requestPath = $requestPath; } - public function getKey() + public function getRequestPath() { - return $this->key; + return $this->requestPath; } - 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_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) + public function setTimeoutSec($timeoutSec) { - $this->disks = $disks; + $this->timeoutSec = $timeoutSec; } - public function getDisks() + public function getTimeoutSec() { - return $this->disks; + return $this->timeoutSec; } - public function setWarning(Google_Service_Compute_DisksScopedListWarning $warning) + public function setUnhealthyThreshold($unhealthyThreshold) { - $this->warning = $warning; + $this->unhealthyThreshold = $unhealthyThreshold; } - public function getWarning() + public function getUnhealthyThreshold() { - return $this->warning; + return $this->unhealthyThreshold; } } -class Google_Service_Compute_DisksScopedListWarning extends Google_Collection +class Google_Service_Compute_HttpHealthCheckList extends Google_Collection { - protected $collection_key = 'data'; + protected $collection_key = 'items'; protected $internal_gapi_mappings = array( ); - public $code; - protected $dataType = 'Google_Service_Compute_DisksScopedListWarningData'; - protected $dataDataType = 'array'; - public $message; + public $id; + protected $itemsType = 'Google_Service_Compute_HttpHealthCheck'; + protected $itemsDataType = 'array'; + public $kind; + public $nextPageToken; + public $selfLink; - public function setCode($code) + public function setId($id) { - $this->code = $code; + $this->id = $id; } - public function getCode() + public function getId() { - return $this->code; + return $this->id; } - 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) + public function setKind($kind) { - $this->message = $message; + $this->kind = $kind; } - public function getMessage() + public function getKind() { - return $this->message; + return $this->kind; } -} - -class Google_Service_Compute_DisksScopedListWarningData extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $key; - public $value; - - - public function setKey($key) + public function setNextPageToken($nextPageToken) { - $this->key = $key; + $this->nextPageToken = $nextPageToken; } - public function getKey() + public function getNextPageToken() { - return $this->key; + return $this->nextPageToken; } - 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_Compute_Firewall extends Google_Collection +class Google_Service_Compute_HttpsHealthCheck extends Google_Model { - protected $collection_key = 'targetTags'; protected $internal_gapi_mappings = array( ); - protected $allowedType = 'Google_Service_Compute_FirewallAllowed'; - protected $allowedDataType = 'array'; + public $checkIntervalSec; public $creationTimestamp; public $description; + public $healthyThreshold; + public $host; public $id; public $kind; public $name; - public $network; + public $port; + public $requestPath; public $selfLink; - public $sourceRanges; - public $sourceTags; - public $targetTags; + public $timeoutSec; + public $unhealthyThreshold; - public function setAllowed($allowed) + public function setCheckIntervalSec($checkIntervalSec) { - $this->allowed = $allowed; + $this->checkIntervalSec = $checkIntervalSec; } - public function getAllowed() + public function getCheckIntervalSec() { - return $this->allowed; + return $this->checkIntervalSec; } public function setCreationTimestamp($creationTimestamp) { @@ -7571,6 +11239,22 @@ 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; @@ -7595,83 +11279,55 @@ 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) + public function setPort($port) { - $this->sourceRanges = $sourceRanges; + $this->port = $port; } - public function getSourceRanges() + public function getPort() { - return $this->sourceRanges; + return $this->port; } - public function setSourceTags($sourceTags) + public function setRequestPath($requestPath) { - $this->sourceTags = $sourceTags; + $this->requestPath = $requestPath; } - public function getSourceTags() + public function getRequestPath() { - return $this->sourceTags; + return $this->requestPath; } - public function setTargetTags($targetTags) + public function setSelfLink($selfLink) { - $this->targetTags = $targetTags; + $this->selfLink = $selfLink; } - public function getTargetTags() + public function getSelfLink() { - return $this->targetTags; + return $this->selfLink; } -} - -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 setTimeoutSec($timeoutSec) { - $this->iPProtocol = $iPProtocol; + $this->timeoutSec = $timeoutSec; } - public function getIPProtocol() + public function getTimeoutSec() { - return $this->iPProtocol; + return $this->timeoutSec; } - public function setPorts($ports) + public function setUnhealthyThreshold($unhealthyThreshold) { - $this->ports = $ports; + $this->unhealthyThreshold = $unhealthyThreshold; } - public function getPorts() + public function getUnhealthyThreshold() { - return $this->ports; + return $this->unhealthyThreshold; } } -class Google_Service_Compute_FirewallList extends Google_Collection +class Google_Service_Compute_HttpsHealthCheckList extends Google_Collection { protected $collection_key = 'items'; protected $internal_gapi_mappings = array( ); public $id; - protected $itemsType = 'Google_Service_Compute_Firewall'; + protected $itemsType = 'Google_Service_Compute_HttpsHealthCheck'; protected $itemsDataType = 'array'; public $kind; public $nextPageToken; @@ -7720,40 +11376,37 @@ public function getSelfLink() } } -class Google_Service_Compute_ForwardingRule extends Google_Model +class Google_Service_Compute_Image extends Google_Collection { + protected $collection_key = 'licenses'; protected $internal_gapi_mappings = array( - "iPAddress" => "IPAddress", - "iPProtocol" => "IPProtocol", ); - public $iPAddress; - public $iPProtocol; + public $archiveSizeBytes; public $creationTimestamp; + protected $deprecatedType = 'Google_Service_Compute_DeprecationStatus'; + protected $deprecatedDataType = ''; public $description; + public $diskSizeGb; public $id; public $kind; + public $licenses; public $name; - public $portRange; - public $region; + protected $rawDiskType = 'Google_Service_Compute_ImageRawDisk'; + protected $rawDiskDataType = ''; public $selfLink; - public $target; + public $sourceDisk; + public $sourceDiskId; + public $sourceType; + public $status; - public function setIPAddress($iPAddress) - { - $this->iPAddress = $iPAddress; - } - public function getIPAddress() - { - return $this->iPAddress; - } - public function setIPProtocol($iPProtocol) + public function setArchiveSizeBytes($archiveSizeBytes) { - $this->iPProtocol = $iPProtocol; + $this->archiveSizeBytes = $archiveSizeBytes; } - public function getIPProtocol() + public function getArchiveSizeBytes() { - return $this->iPProtocol; + return $this->archiveSizeBytes; } public function setCreationTimestamp($creationTimestamp) { @@ -7763,6 +11416,14 @@ 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; @@ -7771,6 +11432,14 @@ 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; @@ -7787,29 +11456,29 @@ public function getKind() { return $this->kind; } - public function setName($name) + public function setLicenses($licenses) { - $this->name = $name; + $this->licenses = $licenses; } - public function getName() + public function getLicenses() { - return $this->name; + return $this->licenses; } - public function setPortRange($portRange) + public function setName($name) { - $this->portRange = $portRange; + $this->name = $name; } - public function getPortRange() + public function getName() { - return $this->portRange; + return $this->name; } - public function setRegion($region) + public function setRawDisk(Google_Service_Compute_ImageRawDisk $rawDisk) { - $this->region = $region; + $this->rawDisk = $rawDisk; } - public function getRegion() + public function getRawDisk() { - return $this->region; + return $this->rawDisk; } public function setSelfLink($selfLink) { @@ -7819,23 +11488,48 @@ public function getSelfLink() { return $this->selfLink; } - public function setTarget($target) + public function setSourceDisk($sourceDisk) { - $this->target = $target; + $this->sourceDisk = $sourceDisk; } - public function getTarget() + public function getSourceDisk() { - return $this->target; + 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_ForwardingRuleAggregatedList extends Google_Model +class Google_Service_Compute_ImageList extends Google_Collection { + protected $collection_key = 'items'; protected $internal_gapi_mappings = array( ); public $id; - protected $itemsType = 'Google_Service_Compute_ForwardingRulesScopedList'; - protected $itemsDataType = 'map'; + protected $itemsType = 'Google_Service_Compute_Image'; + protected $itemsDataType = 'array'; public $kind; public $nextPageToken; public $selfLink; @@ -7883,23 +11577,112 @@ public function getSelfLink() } } -class Google_Service_Compute_ForwardingRuleAggregatedListItems extends Google_Model +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_ForwardingRuleList extends Google_Collection +class Google_Service_Compute_Instance extends Google_Collection { - protected $collection_key = 'items'; + 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; - protected $itemsType = 'Google_Service_Compute_ForwardingRule'; - protected $itemsDataType = 'array'; public $kind; - public $nextPageToken; + 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; @@ -7908,14 +11691,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; @@ -7924,240 +11699,173 @@ public function getKind() { return $this->kind; } - public function setNextPageToken($nextPageToken) + public function setMachineType($machineType) { - $this->nextPageToken = $nextPageToken; + $this->machineType = $machineType; } - public function getNextPageToken() + public function getMachineType() { - return $this->nextPageToken; + return $this->machineType; } - public function setSelfLink($selfLink) + public function setMetadata(Google_Service_Compute_Metadata $metadata) { - $this->selfLink = $selfLink; + $this->metadata = $metadata; } - public function getSelfLink() + public function getMetadata() { - return $this->selfLink; + return $this->metadata; } -} - -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) + public function setName($name) { - $this->forwardingRules = $forwardingRules; + $this->name = $name; } - public function getForwardingRules() + public function getName() { - return $this->forwardingRules; + return $this->name; } - public function setWarning(Google_Service_Compute_ForwardingRulesScopedListWarning $warning) + public function setNetworkInterfaces($networkInterfaces) { - $this->warning = $warning; + $this->networkInterfaces = $networkInterfaces; } - public function getWarning() + public function getNetworkInterfaces() { - return $this->warning; + return $this->networkInterfaces; } -} - -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 setScheduling(Google_Service_Compute_Scheduling $scheduling) { - $this->code = $code; + $this->scheduling = $scheduling; } - public function getCode() + public function getScheduling() { - return $this->code; + return $this->scheduling; } - public function setData($data) + public function setSelfLink($selfLink) { - $this->data = $data; + $this->selfLink = $selfLink; } - public function getData() + public function getSelfLink() { - return $this->data; + return $this->selfLink; } - public function setMessage($message) + public function setServiceAccounts($serviceAccounts) { - $this->message = $message; + $this->serviceAccounts = $serviceAccounts; } - public function getMessage() + public function getServiceAccounts() { - return $this->message; + return $this->serviceAccounts; } -} - -class Google_Service_Compute_ForwardingRulesScopedListWarningData extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - 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 setStatusMessage($statusMessage) { - $this->value = $value; + $this->statusMessage = $statusMessage; } - public function getValue() + public function getStatusMessage() { - return $this->value; + return $this->statusMessage; } -} - -class Google_Service_Compute_HealthCheckReference extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $healthCheck; - - - public function setHealthCheck($healthCheck) + public function setTags(Google_Service_Compute_Tags $tags) { - $this->healthCheck = $healthCheck; + $this->tags = $tags; } - public function getHealthCheck() + public function getTags() { - return $this->healthCheck; + return $this->tags; + } + public function setZone($zone) + { + $this->zone = $zone; + } + public function getZone() + { + return $this->zone; } } -class Google_Service_Compute_HealthStatus extends Google_Model +class Google_Service_Compute_InstanceAggregatedList extends Google_Model { protected $internal_gapi_mappings = array( ); - public $healthState; - public $instance; - public $ipAddress; - public $port; + public $id; + protected $itemsType = 'Google_Service_Compute_InstancesScopedList'; + protected $itemsDataType = 'map'; + public $kind; + public $nextPageToken; + public $selfLink; - 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) + public function setId($id) { - $this->ipAddress = $ipAddress; + $this->id = $id; } - public function getIpAddress() + public function getId() { - return $this->ipAddress; + return $this->id; } - public function setPort($port) + public function setItems($items) { - $this->port = $port; + $this->items = $items; } - public function getPort() + public function getItems() { - return $this->port; + return $this->items; } -} - -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 setKind($kind) { - $this->description = $description; + $this->kind = $kind; } - public function getDescription() + public function getKind() { - return $this->description; + return $this->kind; } - public function setHosts($hosts) + public function setNextPageToken($nextPageToken) { - $this->hosts = $hosts; + $this->nextPageToken = $nextPageToken; } - public function getHosts() + public function getNextPageToken() { - return $this->hosts; + return $this->nextPageToken; } - public function setPathMatcher($pathMatcher) + public function setSelfLink($selfLink) { - $this->pathMatcher = $pathMatcher; + $this->selfLink = $selfLink; } - public function getPathMatcher() + public function getSelfLink() { - return $this->pathMatcher; + return $this->selfLink; } } -class Google_Service_Compute_HttpHealthCheck 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( ); - public $checkIntervalSec; public $creationTimestamp; public $description; - public $healthyThreshold; - public $host; + public $fingerprint; public $id; public $kind; public $name; - public $port; - public $requestPath; + protected $namedPortsType = 'Google_Service_Compute_NamedPort'; + protected $namedPortsDataType = 'array'; + public $network; public $selfLink; - public $timeoutSec; - public $unhealthyThreshold; + public $size; + public $zone; - public function setCheckIntervalSec($checkIntervalSec) - { - $this->checkIntervalSec = $checkIntervalSec; - } - public function getCheckIntervalSec() - { - return $this->checkIntervalSec; - } public function setCreationTimestamp($creationTimestamp) { $this->creationTimestamp = $creationTimestamp; @@ -8174,21 +11882,13 @@ public function getDescription() { return $this->description; } - public function setHealthyThreshold($healthyThreshold) - { - $this->healthyThreshold = $healthyThreshold; - } - public function getHealthyThreshold() - { - return $this->healthyThreshold; - } - public function setHost($host) + public function setFingerprint($fingerprint) { - $this->host = $host; + $this->fingerprint = $fingerprint; } - public function getHost() + public function getFingerprint() { - return $this->host; + return $this->fingerprint; } public function setId($id) { @@ -8214,21 +11914,21 @@ public function getName() { return $this->name; } - public function setPort($port) + public function setNamedPorts($namedPorts) { - $this->port = $port; + $this->namedPorts = $namedPorts; } - public function getPort() + public function getNamedPorts() { - return $this->port; + return $this->namedPorts; } - public function setRequestPath($requestPath) + public function setNetwork($network) { - $this->requestPath = $requestPath; + $this->network = $network; } - public function getRequestPath() + public function getNetwork() { - return $this->requestPath; + return $this->network; } public function setSelfLink($selfLink) { @@ -8238,31 +11938,89 @@ public function getSelfLink() { return $this->selfLink; } - public function setTimeoutSec($timeoutSec) + public function setSize($size) { - $this->timeoutSec = $timeoutSec; + $this->size = $size; } - public function getTimeoutSec() + public function getSize() { - return $this->timeoutSec; + return $this->size; } - public function setUnhealthyThreshold($unhealthyThreshold) + public function setZone($zone) { - $this->unhealthyThreshold = $unhealthyThreshold; + $this->zone = $zone; } - public function getUnhealthyThreshold() + public function getZone() { - return $this->unhealthyThreshold; + return $this->zone; } } -class Google_Service_Compute_HttpHealthCheckList extends Google_Collection +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_InstanceGroupAggregatedListItems extends Google_Model +{ +} + +class Google_Service_Compute_InstanceGroupList 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_InstanceGroup'; protected $itemsDataType = 'array'; public $kind; public $nextPageToken; @@ -8311,37 +12069,35 @@ public function getSelfLink() } } -class Google_Service_Compute_Image extends Google_Collection +class Google_Service_Compute_InstanceGroupManager extends Google_Collection { - protected $collection_key = 'licenses'; + protected $collection_key = 'targetPools'; protected $internal_gapi_mappings = array( ); - public $archiveSizeBytes; + public $baseInstanceName; public $creationTimestamp; - protected $deprecatedType = 'Google_Service_Compute_DeprecationStatus'; - protected $deprecatedDataType = ''; + protected $currentActionsType = 'Google_Service_Compute_InstanceGroupManagerActionsSummary'; + protected $currentActionsDataType = ''; public $description; - public $diskSizeGb; + public $fingerprint; public $id; + public $instanceGroup; + public $instanceTemplate; 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 $targetPools; + public $targetSize; + public $zone; - public function setArchiveSizeBytes($archiveSizeBytes) + public function setBaseInstanceName($baseInstanceName) { - $this->archiveSizeBytes = $archiveSizeBytes; + $this->baseInstanceName = $baseInstanceName; } - public function getArchiveSizeBytes() + public function getBaseInstanceName() { - return $this->archiveSizeBytes; + return $this->baseInstanceName; } public function setCreationTimestamp($creationTimestamp) { @@ -8351,13 +12107,13 @@ public function getCreationTimestamp() { return $this->creationTimestamp; } - public function setDeprecated(Google_Service_Compute_DeprecationStatus $deprecated) + public function setCurrentActions(Google_Service_Compute_InstanceGroupManagerActionsSummary $currentActions) { - $this->deprecated = $deprecated; + $this->currentActions = $currentActions; } - public function getDeprecated() + public function getCurrentActions() { - return $this->deprecated; + return $this->currentActions; } public function setDescription($description) { @@ -8367,13 +12123,13 @@ public function getDescription() { return $this->description; } - public function setDiskSizeGb($diskSizeGb) + public function setFingerprint($fingerprint) { - $this->diskSizeGb = $diskSizeGb; + $this->fingerprint = $fingerprint; } - public function getDiskSizeGb() + public function getFingerprint() { - return $this->diskSizeGb; + return $this->fingerprint; } public function setId($id) { @@ -8383,37 +12139,37 @@ public function getId() { return $this->id; } - public function setKind($kind) + public function setInstanceGroup($instanceGroup) { - $this->kind = $kind; + $this->instanceGroup = $instanceGroup; } - public function getKind() + public function getInstanceGroup() { - return $this->kind; + return $this->instanceGroup; } - public function setLicenses($licenses) + public function setInstanceTemplate($instanceTemplate) { - $this->licenses = $licenses; + $this->instanceTemplate = $instanceTemplate; } - public function getLicenses() + public function getInstanceTemplate() { - return $this->licenses; + return $this->instanceTemplate; } - public function setName($name) + public function setKind($kind) { - $this->name = $name; + $this->kind = $kind; } - public function getName() + public function getKind() { - return $this->name; + return $this->kind; } - public function setRawDisk(Google_Service_Compute_ImageRawDisk $rawDisk) + public function setName($name) { - $this->rawDisk = $rawDisk; + $this->name = $name; } - public function getRawDisk() + public function getName() { - return $this->rawDisk; + return $this->name; } public function setSelfLink($selfLink) { @@ -8423,48 +12179,110 @@ public function getSelfLink() { return $this->selfLink; } - public function setSourceDisk($sourceDisk) + public function setTargetPools($targetPools) { - $this->sourceDisk = $sourceDisk; + $this->targetPools = $targetPools; } - public function getSourceDisk() + public function getTargetPools() { - return $this->sourceDisk; + return $this->targetPools; } - public function setSourceDiskId($sourceDiskId) + public function setTargetSize($targetSize) { - $this->sourceDiskId = $sourceDiskId; + $this->targetSize = $targetSize; } - public function getSourceDiskId() + public function getTargetSize() { - return $this->sourceDiskId; + return $this->targetSize; } - public function setSourceType($sourceType) + public function setZone($zone) { - $this->sourceType = $sourceType; + $this->zone = $zone; } - public function getSourceType() + public function getZone() { - return $this->sourceType; + return $this->zone; } - public function setStatus($status) +} + +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->status = $status; + $this->abandoning = $abandoning; } - public function getStatus() + public function getAbandoning() { - return $this->status; + 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_ImageList extends Google_Collection +class Google_Service_Compute_InstanceGroupManagerAggregatedList extends Google_Model { - protected $collection_key = 'items'; protected $internal_gapi_mappings = array( ); public $id; - protected $itemsType = 'Google_Service_Compute_Image'; - protected $itemsDataType = 'array'; + protected $itemsType = 'Google_Service_Compute_InstanceGroupManagersScopedList'; + protected $itemsDataType = 'map'; public $kind; public $nextPageToken; public $selfLink; @@ -8512,225 +12330,301 @@ public function getSelfLink() } } -class Google_Service_Compute_ImageRawDisk extends Google_Model +class Google_Service_Compute_InstanceGroupManagerAggregatedListItems 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 = ''; +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; - 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) + public function setId($id) { - $this->canIpForward = $canIpForward; + $this->id = $id; } - public function getCanIpForward() + public function getId() { - return $this->canIpForward; + return $this->id; } - public function setCpuPlatform($cpuPlatform) + public function setItems($items) { - $this->cpuPlatform = $cpuPlatform; + $this->items = $items; } - public function getCpuPlatform() + public function getItems() { - return $this->cpuPlatform; + return $this->items; } - public function setCreationTimestamp($creationTimestamp) + public function setKind($kind) { - $this->creationTimestamp = $creationTimestamp; + $this->kind = $kind; } - public function getCreationTimestamp() + public function getKind() { - return $this->creationTimestamp; + return $this->kind; } - public function setDescription($description) + public function setNextPageToken($nextPageToken) { - $this->description = $description; + $this->nextPageToken = $nextPageToken; } - public function getDescription() + public function getNextPageToken() { - return $this->description; + return $this->nextPageToken; } - public function setDisks($disks) + public function setSelfLink($selfLink) { - $this->disks = $disks; + $this->selfLink = $selfLink; } - public function getDisks() + public function getSelfLink() { - return $this->disks; + return $this->selfLink; } - public function setId($id) +} + +class Google_Service_Compute_InstanceGroupManagersAbandonInstancesRequest extends Google_Collection +{ + protected $collection_key = 'instances'; + protected $internal_gapi_mappings = array( + ); + public $instances; + + + public function setInstances($instances) { - $this->id = $id; + $this->instances = $instances; } - public function getId() + public function getInstances() { - return $this->id; + return $this->instances; } - public function setKind($kind) +} + +class Google_Service_Compute_InstanceGroupManagersDeleteInstancesRequest extends Google_Collection +{ + protected $collection_key = 'instances'; + protected $internal_gapi_mappings = array( + ); + public $instances; + + + public function setInstances($instances) { - $this->kind = $kind; + $this->instances = $instances; } - public function getKind() + public function getInstances() { - return $this->kind; + return $this->instances; } - public function setMachineType($machineType) +} + +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->machineType = $machineType; + $this->managedInstances = $managedInstances; } - public function getMachineType() + public function getManagedInstances() { - return $this->machineType; + return $this->managedInstances; } - public function setMetadata(Google_Service_Compute_Metadata $metadata) +} + +class Google_Service_Compute_InstanceGroupManagersRecreateInstancesRequest extends Google_Collection +{ + protected $collection_key = 'instances'; + protected $internal_gapi_mappings = array( + ); + public $instances; + + + public function setInstances($instances) { - $this->metadata = $metadata; + $this->instances = $instances; } - public function getMetadata() + public function getInstances() { - return $this->metadata; + return $this->instances; } - public function setName($name) +} + +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->name = $name; + $this->instanceGroupManagers = $instanceGroupManagers; } - public function getName() + public function getInstanceGroupManagers() { - return $this->name; + return $this->instanceGroupManagers; } - public function setNetworkInterfaces($networkInterfaces) + public function setWarning(Google_Service_Compute_InstanceGroupManagersScopedListWarning $warning) { - $this->networkInterfaces = $networkInterfaces; + $this->warning = $warning; } - public function getNetworkInterfaces() + public function getWarning() { - return $this->networkInterfaces; + return $this->warning; } - public function setScheduling(Google_Service_Compute_Scheduling $scheduling) +} + +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->scheduling = $scheduling; + $this->code = $code; } - public function getScheduling() + public function getCode() { - return $this->scheduling; + return $this->code; } - public function setSelfLink($selfLink) + public function setData($data) { - $this->selfLink = $selfLink; + $this->data = $data; } - public function getSelfLink() + public function getData() { - return $this->selfLink; + return $this->data; } - public function setServiceAccounts($serviceAccounts) + public function setMessage($message) { - $this->serviceAccounts = $serviceAccounts; + $this->message = $message; } - public function getServiceAccounts() + public function getMessage() { - return $this->serviceAccounts; + return $this->message; } - public function setStatus($status) +} + +class Google_Service_Compute_InstanceGroupManagersScopedListWarningData extends Google_Model +{ + protected $internal_gapi_mappings = array( + ); + public $key; + public $value; + + + public function setKey($key) { - $this->status = $status; + $this->key = $key; } - public function getStatus() + public function getKey() { - return $this->status; + return $this->key; } - public function setStatusMessage($statusMessage) + public function setValue($value) { - $this->statusMessage = $statusMessage; + $this->value = $value; } - public function getStatusMessage() + public function getValue() { - return $this->statusMessage; + return $this->value; } - public function setTags(Google_Service_Compute_Tags $tags) +} + +class Google_Service_Compute_InstanceGroupManagersSetInstanceTemplateRequest extends Google_Model +{ + protected $internal_gapi_mappings = array( + ); + public $instanceTemplate; + + + public function setInstanceTemplate($instanceTemplate) { - $this->tags = $tags; + $this->instanceTemplate = $instanceTemplate; } - public function getTags() + public function getInstanceTemplate() { - return $this->tags; + return $this->instanceTemplate; } - public function setZone($zone) +} + +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->zone = $zone; + $this->fingerprint = $fingerprint; } - public function getZone() + public function getFingerprint() { - return $this->zone; + return $this->fingerprint; + } + public function setTargetPools($targetPools) + { + $this->targetPools = $targetPools; + } + public function getTargetPools() + { + return $this->targetPools; } } -class Google_Service_Compute_InstanceAggregatedList extends Google_Model +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_InstancesScopedList'; - protected $itemsDataType = 'map'; + protected $itemsType = 'Google_Service_Compute_InstanceWithNamedPorts'; + protected $itemsDataType = 'array'; public $kind; public $nextPageToken; public $selfLink; @@ -8778,8 +12672,160 @@ public function getSelfLink() } } -class Google_Service_Compute_InstanceAggregatedListItems extends Google_Model +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 @@ -9103,6 +13149,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 +13681,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 +13870,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( @@ -9966,17 +14201,248 @@ public function setProgress($progress) { $this->progress = $progress; } - public function getProgress() + 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->progress; + return $this->kind; } - public function setRegion($region) + public function setNextPageToken($nextPageToken) { - $this->region = $region; + $this->nextPageToken = $nextPageToken; } - public function getRegion() + public function getNextPageToken() { - return $this->region; + return $this->nextPageToken; } public function setSelfLink($selfLink) { @@ -9986,212 +14452,295 @@ public function getSelfLink() { return $this->selfLink; } - public function setStartTime($startTime) +} + +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->startTime = $startTime; + $this->code = $code; } - public function getStartTime() + public function getCode() { - return $this->startTime; + return $this->code; } - public function setStatus($status) + public function setData($data) { - $this->status = $status; + $this->data = $data; } - public function getStatus() + public function getData() { - return $this->status; + return $this->data; } - public function setStatusMessage($statusMessage) + public function setMessage($message) { - $this->statusMessage = $statusMessage; + $this->message = $message; } - public function getStatusMessage() + public function getMessage() { - return $this->statusMessage; + return $this->message; } - public function setTargetId($targetId) +} + +class Google_Service_Compute_OperationWarningsData extends Google_Model +{ + protected $internal_gapi_mappings = array( + ); + public $key; + public $value; + + + public function setKey($key) { - $this->targetId = $targetId; + $this->key = $key; } - public function getTargetId() + public function getKey() { - return $this->targetId; + return $this->key; } - public function setTargetLink($targetLink) + public function setValue($value) { - $this->targetLink = $targetLink; + $this->value = $value; } - public function getTargetLink() + public function getValue() { - return $this->targetLink; + return $this->value; } - public function setUser($user) +} + +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->user = $user; + $this->operations = $operations; } - public function getUser() + public function getOperations() { - return $this->user; + return $this->operations; } - public function setWarnings($warnings) + public function setWarning(Google_Service_Compute_OperationsScopedListWarning $warning) { - $this->warnings = $warnings; + $this->warning = $warning; } - public function getWarnings() + public function getWarning() { - return $this->warnings; + return $this->warning; } - public function setZone($zone) +} + +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->zone = $zone; + $this->code = $code; } - public function getZone() + public function getCode() { - return $this->zone; + 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_OperationAggregatedList extends Google_Model +class Google_Service_Compute_OperationsScopedListWarningData 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 $key; + public $value; - public function setId($id) + public function setKey($key) { - $this->id = $id; + $this->key = $key; } - public function getId() + public function getKey() { - return $this->id; + 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; } - public function setKind($kind) +} + +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->kind = $kind; + $this->defaultService = $defaultService; } - public function getKind() + public function getDefaultService() { - return $this->kind; + return $this->defaultService; } - 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 setName($name) { - $this->selfLink = $selfLink; + $this->name = $name; } - public function getSelfLink() + public function getName() { - return $this->selfLink; + return $this->name; + } + public function setPathRules($pathRules) + { + $this->pathRules = $pathRules; + } + public function getPathRules() + { + return $this->pathRules; } } -class Google_Service_Compute_OperationAggregatedListItems extends Google_Model -{ -} - -class Google_Service_Compute_OperationError extends Google_Collection +class Google_Service_Compute_PathRule extends Google_Collection { - protected $collection_key = 'errors'; + protected $collection_key = 'paths'; protected $internal_gapi_mappings = array( ); - protected $errorsType = 'Google_Service_Compute_OperationErrorErrors'; - protected $errorsDataType = 'array'; + public $paths; + public $service; - public function setErrors($errors) + public function setPaths($paths) { - $this->errors = $errors; + $this->paths = $paths; } - public function getErrors() + public function getPaths() { - return $this->errors; + return $this->paths; + } + public function setService($service) + { + $this->service = $service; + } + public function getService() + { + return $this->service; } } -class Google_Service_Compute_OperationErrorErrors extends Google_Model +class Google_Service_Compute_Project extends Google_Collection { + protected $collection_key = 'quotas'; protected $internal_gapi_mappings = array( ); - public $code; - public $location; - public $message; + 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 setCode($code) + public function setCommonInstanceMetadata(Google_Service_Compute_Metadata $commonInstanceMetadata) { - $this->code = $code; + $this->commonInstanceMetadata = $commonInstanceMetadata; } - public function getCode() + public function getCommonInstanceMetadata() { - return $this->code; + return $this->commonInstanceMetadata; } - public function setLocation($location) + public function setCreationTimestamp($creationTimestamp) { - $this->location = $location; + $this->creationTimestamp = $creationTimestamp; } - public function getLocation() + public function getCreationTimestamp() { - return $this->location; + return $this->creationTimestamp; } - 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_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) + public function setEnabledFeatures($enabledFeatures) { - $this->id = $id; + $this->enabledFeatures = $enabledFeatures; } - public function getId() + public function getEnabledFeatures() { - return $this->id; + return $this->enabledFeatures; } - 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) { @@ -10201,13 +14750,21 @@ 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 setQuotas($quotas) + { + $this->quotas = $quotas; + } + public function getQuotas() + { + return $this->quotas; } public function setSelfLink($selfLink) { @@ -10217,263 +14774,248 @@ 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_OperationWarnings extends Google_Collection +class Google_Service_Compute_Quota extends Google_Model { - protected $collection_key = 'data'; protected $internal_gapi_mappings = array( ); - public $code; - protected $dataType = 'Google_Service_Compute_OperationWarningsData'; - protected $dataDataType = 'array'; - 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 setData($data) + public function setMetric($metric) { - $this->data = $data; + $this->metric = $metric; } - public function getData() + public function getMetric() { - return $this->data; + 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_OperationWarningsData extends Google_Model +class Google_Service_Compute_Region extends Google_Collection { + protected $collection_key = 'zones'; protected $internal_gapi_mappings = array( ); - public $key; - public $value; + 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 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_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) + public function setDescription($description) { - $this->operations = $operations; + $this->description = $description; } - public function getOperations() + public function getDescription() { - return $this->operations; + return $this->description; } - 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 -{ - 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) + 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 setQuotas($quotas) { - $this->message = $message; + $this->quotas = $quotas; } - public function getMessage() + public function getQuotas() { - return $this->message; + return $this->quotas; } -} - -class Google_Service_Compute_OperationsScopedListWarningData extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - 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) + public function setStatus($status) { - $this->value = $value; + $this->status = $status; } - public function getValue() + public function getStatus() { - return $this->value; + return $this->status; + } + public function setZones($zones) + { + $this->zones = $zones; + } + public function getZones() + { + return $this->zones; } } -class Google_Service_Compute_PathMatcher extends Google_Collection +class Google_Service_Compute_RegionList 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'; + 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 setDefaultService($defaultService) + public function setId($id) { - $this->defaultService = $defaultService; + $this->id = $id; } - public function getDefaultService() + public function getId() { - return $this->defaultService; + 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 setName($name) + public function setKind($kind) { - $this->name = $name; + $this->kind = $kind; } - public function getName() + public function getKind() { - return $this->name; + return $this->kind; } - public function setPathRules($pathRules) + public function setNextPageToken($nextPageToken) { - $this->pathRules = $pathRules; + $this->nextPageToken = $nextPageToken; } - public function getPathRules() + public function getNextPageToken() { - return $this->pathRules; + return $this->nextPageToken; + } + public function setSelfLink($selfLink) + { + $this->selfLink = $selfLink; + } + public function getSelfLink() + { + return $this->selfLink; } } -class Google_Service_Compute_PathRule extends Google_Collection +class Google_Service_Compute_ResourceGroupReference extends Google_Model { - protected $collection_key = 'paths'; protected $internal_gapi_mappings = array( ); - public $paths; - public $service; + public $group; - public function setPaths($paths) - { - $this->paths = $paths; - } - public function getPaths() - { - return $this->paths; - } - public function setService($service) + public function setGroup($group) { - $this->service = $service; + $this->group = $group; } - public function getService() + public function getGroup() { - return $this->service; + return $this->group; } } -class Google_Service_Compute_Project extends Google_Collection +class Google_Service_Compute_Route extends Google_Collection { - protected $collection_key = 'quotas'; + protected $collection_key = 'warnings'; protected $internal_gapi_mappings = array( ); - 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 $nextHopVpnTunnel; + public $priority; public $selfLink; - protected $usageExportLocationType = 'Google_Service_Compute_UsageExportLocation'; - protected $usageExportLocationDataType = ''; + public $tags; + protected $warningsType = 'Google_Service_Compute_RouteWarnings'; + protected $warningsDataType = 'array'; - public function setCommonInstanceMetadata(Google_Service_Compute_Metadata $commonInstanceMetadata) - { - $this->commonInstanceMetadata = $commonInstanceMetadata; - } - public function getCommonInstanceMetadata() - { - return $this->commonInstanceMetadata; - } public function setCreationTimestamp($creationTimestamp) { $this->creationTimestamp = $creationTimestamp; @@ -10490,6 +15032,14 @@ 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; @@ -10514,13 +15064,61 @@ 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 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) { @@ -10530,180 +15128,193 @@ public function getSelfLink() { return $this->selfLink; } - public function setUsageExportLocation(Google_Service_Compute_UsageExportLocation $usageExportLocation) + public function setTags($tags) { - $this->usageExportLocation = $usageExportLocation; + $this->tags = $tags; } - public function getUsageExportLocation() + public function getTags() { - return $this->usageExportLocation; + return $this->tags; + } + public function setWarnings($warnings) + { + $this->warnings = $warnings; + } + public function getWarnings() + { + return $this->warnings; } } -class Google_Service_Compute_Quota extends Google_Model +class Google_Service_Compute_RouteList extends Google_Collection { + protected $collection_key = 'items'; protected $internal_gapi_mappings = array( ); - public $limit; - public $metric; - public $usage; + public $id; + protected $itemsType = 'Google_Service_Compute_Route'; + protected $itemsDataType = 'array'; + public $kind; + public $nextPageToken; + public $selfLink; - public function setLimit($limit) + public function setId($id) { - $this->limit = $limit; + $this->id = $id; } - public function getLimit() + public function getId() { - return $this->limit; + return $this->id; } - public function setMetric($metric) + public function setItems($items) { - $this->metric = $metric; + $this->items = $items; } - public function getMetric() + public function getItems() { - return $this->metric; + return $this->items; } - public function setUsage($usage) + public function setKind($kind) { - $this->usage = $usage; + $this->kind = $kind; } - public function getUsage() + public function getKind() { - return $this->usage; + return $this->kind; } -} - -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) + public function setNextPageToken($nextPageToken) { - $this->creationTimestamp = $creationTimestamp; + $this->nextPageToken = $nextPageToken; } - public function getCreationTimestamp() + public function getNextPageToken() { - return $this->creationTimestamp; + return $this->nextPageToken; } - public function setDeprecated(Google_Service_Compute_DeprecationStatus $deprecated) + public function setSelfLink($selfLink) { - $this->deprecated = $deprecated; + $this->selfLink = $selfLink; } - public function getDeprecated() + public function getSelfLink() { - return $this->deprecated; + return $this->selfLink; } - public function setDescription($description) +} + +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->description = $description; + $this->code = $code; } - public function getDescription() + public function getCode() { - return $this->description; + return $this->code; } - public function setId($id) + public function setData($data) { - $this->id = $id; + $this->data = $data; } - public function getId() + public function getData() { - return $this->id; + 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 setName($name) +} + +class Google_Service_Compute_RouteWarningsData extends Google_Model +{ + protected $internal_gapi_mappings = array( + ); + public $key; + public $value; + + + public function setKey($key) { - $this->name = $name; + $this->key = $key; } - public function getName() + public function getKey() { - return $this->name; + return $this->key; } - public function setQuotas($quotas) + public function setValue($value) { - $this->quotas = $quotas; + $this->value = $value; } - public function getQuotas() + public function getValue() { - return $this->quotas; + return $this->value; } - public function setSelfLink($selfLink) +} + +class Google_Service_Compute_Scheduling extends Google_Model +{ + protected $internal_gapi_mappings = array( + ); + public $automaticRestart; + public $onHostMaintenance; + public $preemptible; + + + public function setAutomaticRestart($automaticRestart) { - $this->selfLink = $selfLink; + $this->automaticRestart = $automaticRestart; } - public function getSelfLink() + public function getAutomaticRestart() { - return $this->selfLink; + return $this->automaticRestart; } - public function setStatus($status) + public function setOnHostMaintenance($onHostMaintenance) { - $this->status = $status; + $this->onHostMaintenance = $onHostMaintenance; } - public function getStatus() + public function getOnHostMaintenance() { - return $this->status; + return $this->onHostMaintenance; } - public function setZones($zones) + public function setPreemptible($preemptible) { - $this->zones = $zones; + $this->preemptible = $preemptible; } - public function getZones() + public function getPreemptible() { - return $this->zones; + return $this->preemptible; } } -class Google_Service_Compute_RegionList extends Google_Collection +class Google_Service_Compute_SerialPortOutput extends Google_Model { - protected $collection_key = 'items'; protected $internal_gapi_mappings = array( ); - public $id; - protected $itemsType = 'Google_Service_Compute_Region'; - protected $itemsDataType = 'array'; + public $contents; public $kind; - public $nextPageToken; public $selfLink; - public function setId($id) - { - $this->id = $id; - } - public function getId() - { - return $this->id; - } - public function setItems($items) + public function setContents($contents) { - $this->items = $items; + $this->contents = $contents; } - public function getItems() + public function getContents() { - return $this->items; + return $this->contents; } public function setKind($kind) { @@ -10713,14 +15324,6 @@ 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; @@ -10731,45 +15334,51 @@ public function getSelfLink() } } -class Google_Service_Compute_ResourceGroupReference extends Google_Model +class Google_Service_Compute_ServiceAccount extends Google_Collection { + protected $collection_key = 'scopes'; protected $internal_gapi_mappings = array( ); - public $group; + public $email; + public $scopes; - public function setGroup($group) + public function setEmail($email) { - $this->group = $group; + $this->email = $email; } - public function getGroup() + public function getEmail() { - return $this->group; + return $this->email; + } + public function setScopes($scopes) + { + $this->scopes = $scopes; + } + public function getScopes() + { + return $this->scopes; } } -class Google_Service_Compute_Route extends Google_Collection +class Google_Service_Compute_Snapshot extends Google_Collection { - protected $collection_key = 'warnings'; + protected $collection_key = 'licenses'; protected $internal_gapi_mappings = array( ); public $creationTimestamp; public $description; - public $destRange; + public $diskSizeGb; public $id; public $kind; + public $licenses; 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 $sourceDisk; + public $sourceDiskId; + public $status; + public $storageBytes; + public $storageBytesStatus; public function setCreationTimestamp($creationTimestamp) @@ -10788,13 +15397,13 @@ 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) { @@ -10812,103 +15421,79 @@ 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) + public function setLicenses($licenses) { - $this->nextHopInstance = $nextHopInstance; + $this->licenses = $licenses; } - public function getNextHopInstance() + public function getLicenses() { - return $this->nextHopInstance; + return $this->licenses; } - public function setNextHopIp($nextHopIp) + public function setName($name) { - $this->nextHopIp = $nextHopIp; + $this->name = $name; } - public function getNextHopIp() + public function getName() { - return $this->nextHopIp; + return $this->name; } - public function setNextHopNetwork($nextHopNetwork) + public function setSelfLink($selfLink) { - $this->nextHopNetwork = $nextHopNetwork; + $this->selfLink = $selfLink; } - public function getNextHopNetwork() + public function getSelfLink() { - return $this->nextHopNetwork; + return $this->selfLink; } - public function setNextHopVpnTunnel($nextHopVpnTunnel) + public function setSourceDisk($sourceDisk) { - $this->nextHopVpnTunnel = $nextHopVpnTunnel; + $this->sourceDisk = $sourceDisk; } - public function getNextHopVpnTunnel() + public function getSourceDisk() { - return $this->nextHopVpnTunnel; + 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 { protected $collection_key = 'items'; protected $internal_gapi_mappings = array( ); public $id; - protected $itemsType = 'Google_Service_Compute_Route'; + protected $itemsType = 'Google_Service_Compute_Snapshot'; protected $itemsDataType = 'array'; public $kind; public $nextPageToken; @@ -10957,120 +15542,114 @@ public function getSelfLink() } } -class Google_Service_Compute_RouteWarnings extends Google_Collection +class Google_Service_Compute_SslCertificate extends Google_Model { - protected $collection_key = 'data'; protected $internal_gapi_mappings = array( ); - public $code; - protected $dataType = 'Google_Service_Compute_RouteWarningsData'; - protected $dataDataType = 'array'; - public $message; + public $certificate; + public $creationTimestamp; + public $description; + public $id; + public $kind; + public $name; + public $privateKey; + public $selfLink; - public function setCode($code) + public function setCertificate($certificate) { - $this->code = $code; + $this->certificate = $certificate; } - public function getCode() + public function getCertificate() { - return $this->code; + return $this->certificate; } - public function setData($data) + public function setCreationTimestamp($creationTimestamp) { - $this->data = $data; + $this->creationTimestamp = $creationTimestamp; } - public function getData() + public function getCreationTimestamp() { - return $this->data; + return $this->creationTimestamp; } - 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_RouteWarningsData extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $key; - public $value; - - - public function setKey($key) + public function setId($id) { - $this->key = $key; + $this->id = $id; } - public function getKey() + public function getId() { - return $this->key; + 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; } -} - -class Google_Service_Compute_Scheduling extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $automaticRestart; - public $onHostMaintenance; - public $preemptible; - - - public function setAutomaticRestart($automaticRestart) + public function setName($name) { - $this->automaticRestart = $automaticRestart; + $this->name = $name; } - public function getAutomaticRestart() + public function getName() { - return $this->automaticRestart; + return $this->name; } - public function setOnHostMaintenance($onHostMaintenance) + public function setPrivateKey($privateKey) { - $this->onHostMaintenance = $onHostMaintenance; + $this->privateKey = $privateKey; } - public function getOnHostMaintenance() + public function getPrivateKey() { - return $this->onHostMaintenance; + return $this->privateKey; } - public function setPreemptible($preemptible) + public function setSelfLink($selfLink) { - $this->preemptible = $preemptible; + $this->selfLink = $selfLink; } - public function getPreemptible() + public function getSelfLink() { - return $this->preemptible; + return $this->selfLink; } } -class Google_Service_Compute_SerialPortOutput extends Google_Model +class Google_Service_Compute_SslCertificateList extends Google_Collection { + protected $collection_key = 'items'; protected $internal_gapi_mappings = array( ); - public $contents; + public $id; + protected $itemsType = 'Google_Service_Compute_SslCertificate'; + 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 setItems($items) + { + $this->items = $items; + } + public function getItems() + { + return $this->items; } public function setKind($kind) { @@ -11080,6 +15659,14 @@ 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; @@ -11090,51 +15677,44 @@ public function getSelfLink() } } -class Google_Service_Compute_ServiceAccount extends Google_Collection +class Google_Service_Compute_Tags extends Google_Collection { - protected $collection_key = 'scopes'; + protected $collection_key = 'items'; protected $internal_gapi_mappings = array( ); - public $email; - public $scopes; + public $fingerprint; + public $items; - public function setEmail($email) + public function setFingerprint($fingerprint) { - $this->email = $email; + $this->fingerprint = $fingerprint; } - public function getEmail() + public function getFingerprint() { - return $this->email; + return $this->fingerprint; } - public function setScopes($scopes) + public function setItems($items) { - $this->scopes = $scopes; + $this->items = $items; } - public function getScopes() + public function getItems() { - return $this->scopes; + return $this->items; } } -class Google_Service_Compute_Snapshot extends Google_Collection +class Google_Service_Compute_TargetHttpProxy extends Google_Model { - 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 $urlMap; public function setCreationTimestamp($creationTimestamp) @@ -11153,14 +15733,6 @@ 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; @@ -11177,14 +15749,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; @@ -11201,55 +15765,23 @@ 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) + public function setUrlMap($urlMap) { - $this->storageBytesStatus = $storageBytesStatus; + $this->urlMap = $urlMap; } - public function getStorageBytesStatus() + public function getUrlMap() { - return $this->storageBytesStatus; + return $this->urlMap; } } -class Google_Service_Compute_SnapshotList extends Google_Collection +class Google_Service_Compute_TargetHttpProxyList 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_TargetHttpProxy'; protected $itemsDataType = 'array'; public $kind; public $nextPageToken; @@ -11298,35 +15830,27 @@ public function getSelfLink() } } -class Google_Service_Compute_Tags extends Google_Collection +class Google_Service_Compute_TargetHttpsProxiesSetSslCertificatesRequest extends Google_Collection { - protected $collection_key = 'items'; + protected $collection_key = 'sslCertificates'; protected $internal_gapi_mappings = array( ); - public $fingerprint; - public $items; + public $sslCertificates; - public function setFingerprint($fingerprint) - { - $this->fingerprint = $fingerprint; - } - public function getFingerprint() - { - return $this->fingerprint; - } - public function setItems($items) + public function setSslCertificates($sslCertificates) { - $this->items = $items; + $this->sslCertificates = $sslCertificates; } - public function getItems() + public function getSslCertificates() { - return $this->items; + return $this->sslCertificates; } } -class Google_Service_Compute_TargetHttpProxy extends Google_Model +class Google_Service_Compute_TargetHttpsProxy extends Google_Collection { + protected $collection_key = 'sslCertificates'; protected $internal_gapi_mappings = array( ); public $creationTimestamp; @@ -11335,6 +15859,7 @@ class Google_Service_Compute_TargetHttpProxy extends Google_Model public $kind; public $name; public $selfLink; + public $sslCertificates; public $urlMap; @@ -11386,6 +15911,14 @@ 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; @@ -11396,13 +15929,13 @@ public function getUrlMap() } } -class Google_Service_Compute_TargetHttpProxyList extends Google_Collection +class Google_Service_Compute_TargetHttpsProxyList extends Google_Collection { protected $collection_key = 'items'; protected $internal_gapi_mappings = array( ); public $id; - protected $itemsType = 'Google_Service_Compute_TargetHttpProxy'; + protected $itemsType = 'Google_Service_Compute_TargetHttpsProxy'; protected $itemsDataType = 'array'; public $kind; public $nextPageToken; @@ -12880,16 +17413,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 +17465,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/lib/google/src/Google/Service/Container.php b/lib/google/src/Google/Service/Container.php index 5b48a0353c28a..2849bf494ffa2 100644 --- a/lib/google/src/Google/Service/Container.php +++ b/lib/google/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/lib/google/src/Google/Service/Coordinate.php b/lib/google/src/Google/Service/Coordinate.php index 80b5ebbd2e17b..eadd3b862582e 100644 --- a/lib/google/src/Google/Service/Coordinate.php +++ b/lib/google/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/lib/google/src/Google/Service/DataTransfer.php b/lib/google/src/Google/Service/DataTransfer.php new file mode 100644 index 0000000000000..ceec9517df1bd --- /dev/null +++ b/lib/google/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/lib/google/src/Google/Service/Dataflow.php b/lib/google/src/Google/Service/Dataflow.php index 92148cfeb5dda..423afcaf04eff 100644 --- a/lib/google/src/Google/Service/Dataflow.php +++ b/lib/google/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/lib/google/src/Google/Service/DeploymentManager.php b/lib/google/src/Google/Service/DeploymentManager.php index 30d74421bdce1..59e8f3137824c 100644 --- a/lib/google/src/Google/Service/DeploymentManager.php +++ b/lib/google/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/lib/google/src/Google/Service/Directory.php b/lib/google/src/Google/Service/Directory.php index 9d8629454cec7..4675de5bc3e9c 100644 --- a/lib/google/src/Google/Service/Directory.php +++ b/lib/google/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"; @@ -47,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"; @@ -68,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"; @@ -93,12 +111,18 @@ 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; public $mobiledevices; public $notifications; public $orgunits; + public $privileges; + public $roleAssignments; + public $roles; public $schemas; public $tokens; public $users; @@ -285,6 +309,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, @@ -798,176 +986,370 @@ public function __construct(Google_Client $client) ) ) ); - $this->schemas = new Google_Service_Directory_Schemas_Resource( + $this->privileges = new Google_Service_Directory_Privileges_Resource( $this, $this->serviceName, - 'schemas', + '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/{customerId}/schemas/{schemaKey}', + 'path' => 'customer/{customer}/roleassignments/{roleAssignmentId}', 'httpMethod' => 'DELETE', 'parameters' => array( - 'customerId' => array( + 'customer' => array( 'location' => 'path', 'type' => 'string', 'required' => true, ), - 'schemaKey' => array( + 'roleAssignmentId' => array( 'location' => 'path', 'type' => 'string', 'required' => true, ), ), ),'get' => array( - 'path' => 'customer/{customerId}/schemas/{schemaKey}', + 'path' => 'customer/{customer}/roleassignments/{roleAssignmentId}', 'httpMethod' => 'GET', 'parameters' => array( - 'customerId' => array( + 'customer' => array( 'location' => 'path', 'type' => 'string', 'required' => true, ), - 'schemaKey' => array( + 'roleAssignmentId' => array( 'location' => 'path', 'type' => 'string', 'required' => true, ), ), ),'insert' => array( - 'path' => 'customer/{customerId}/schemas', + 'path' => 'customer/{customer}/roleassignments', 'httpMethod' => 'POST', 'parameters' => array( - 'customerId' => array( + 'customer' => array( 'location' => 'path', 'type' => 'string', 'required' => true, ), ), ),'list' => array( - 'path' => 'customer/{customerId}/schemas', + 'path' => 'customer/{customer}/roleassignments', 'httpMethod' => 'GET', 'parameters' => array( - 'customerId' => array( + 'customer' => array( 'location' => 'path', 'type' => 'string', 'required' => true, ), - ), - ),'patch' => array( - 'path' => 'customer/{customerId}/schemas/{schemaKey}', - 'httpMethod' => 'PATCH', - 'parameters' => array( - 'customerId' => array( - 'location' => 'path', + 'pageToken' => array( + 'location' => 'query', 'type' => 'string', - 'required' => true, ), - 'schemaKey' => array( - 'location' => 'path', + 'userKey' => array( + 'location' => 'query', 'type' => 'string', - 'required' => true, ), - ), - ),'update' => array( - 'path' => 'customer/{customerId}/schemas/{schemaKey}', - 'httpMethod' => 'PUT', - 'parameters' => array( - 'customerId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, + 'maxResults' => array( + 'location' => 'query', + 'type' => 'integer', ), - 'schemaKey' => array( - 'location' => 'path', + 'roleId' => array( + 'location' => 'query', 'type' => 'string', - 'required' => true, ), ), ), ) ) ); - $this->tokens = new Google_Service_Directory_Tokens_Resource( + $this->roles = new Google_Service_Directory_Roles_Resource( $this, $this->serviceName, - 'tokens', + 'roles', array( 'methods' => array( 'delete' => array( - 'path' => 'users/{userKey}/tokens/{clientId}', + 'path' => 'customer/{customer}/roles/{roleId}', 'httpMethod' => 'DELETE', 'parameters' => array( - 'userKey' => array( + 'customer' => array( 'location' => 'path', 'type' => 'string', 'required' => true, ), - 'clientId' => array( + 'roleId' => array( 'location' => 'path', 'type' => 'string', 'required' => true, ), ), ),'get' => array( - 'path' => 'users/{userKey}/tokens/{clientId}', + 'path' => 'customer/{customer}/roles/{roleId}', 'httpMethod' => 'GET', 'parameters' => array( - 'userKey' => array( + 'customer' => array( 'location' => 'path', 'type' => 'string', 'required' => true, ), - 'clientId' => array( + 'roleId' => array( 'location' => 'path', 'type' => 'string', 'required' => true, ), ), - ),'list' => array( - 'path' => 'users/{userKey}/tokens', - 'httpMethod' => 'GET', + ),'insert' => array( + 'path' => 'customer/{customer}/roles', + 'httpMethod' => 'POST', 'parameters' => array( - 'userKey' => array( + 'customer' => 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', + ),'list' => array( + 'path' => 'customer/{customer}/roles', + 'httpMethod' => 'GET', 'parameters' => array( - 'userKey' => array( + 'customer' => array( 'location' => 'path', 'type' => 'string', 'required' => true, ), + 'pageToken' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'maxResults' => array( + 'location' => 'query', + 'type' => 'integer', + ), ), - ),'get' => array( - 'path' => 'users/{userKey}', - 'httpMethod' => 'GET', + ),'patch' => array( + 'path' => 'customer/{customer}/roles/{roleId}', + 'httpMethod' => 'PATCH', 'parameters' => array( - 'userKey' => array( + 'customer' => array( 'location' => 'path', 'type' => 'string', 'required' => true, ), - 'viewType' => array( - 'location' => 'query', + 'roleId' => array( + 'location' => 'path', 'type' => 'string', + 'required' => true, ), - 'customFieldMask' => array( + ), + ),'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, + ), + 'viewType' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'customFieldMask' => array( 'location' => 'query', 'type' => 'string', ), @@ -1465,119 +1847,318 @@ 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. - * - * @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()) + public function delete($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('delete', array($params)); } /** - * Update Group. This method supports patch semantics. (groups.patch) + * Retrieves a domain alias of the customer. (domainAliases.get) * - * @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 string $domainAliasName Name of domain alias to be retrieved. * @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 get($customer, $domainAliasName, $optParams = array()) { - $params = array('groupKey' => $groupKey, 'postBody' => $postBody); + $params = array('customer' => $customer, 'domainAliasName' => $domainAliasName); $params = array_merge($params, $optParams); - return $this->call('patch', array($params), "Google_Service_Directory_Group"); + return $this->call('get', array($params), "Google_Service_Directory_DomainAlias"); } /** - * Update Group (groups.update) + * 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 update($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('update', array($params), "Google_Service_Directory_Group"); + return $this->call('insert', array($params), "Google_Service_Directory_DomainAlias"); } -} -/** - * The "aliases" collection of methods. - * Typical usage is: - * + /** + * 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 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; * @@ -2031,159 +2612,370 @@ 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 - * be the user's primary email address, alias email address, or unique user ID. + * @param string $customer Immutable ID of the Google Apps account. + * @param Google_Role $postBody * @param array $optParams Optional parameters. - * @return Google_Service_Directory_Tokens + * @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 */ public function listTokens($userKey, $optParams = array()) { @@ -3231,62 +4023,45 @@ public function getNextPageToken() } } -class Google_Service_Directory_Group extends Google_Collection +class Google_Service_Directory_Customer extends Google_Model { - protected $collection_key = 'nonEditableAliases'; protected $internal_gapi_mappings = array( ); - public $adminCreated; - public $aliases; - public $description; - public $directMembersCount; - public $email; + public $alternateEmail; + public $customerCreationTime; + public $customerDomain; public $etag; public $id; public $kind; - public $name; - public $nonEditableAliases; + public $language; + public $phoneNumber; + protected $postalAddressType = 'Google_Service_Directory_CustomerPostalAddress'; + protected $postalAddressDataType = ''; - public function setAdminCreated($adminCreated) - { - $this->adminCreated = $adminCreated; - } - public function getAdminCreated() - { - return $this->adminCreated; - } - public function setAliases($aliases) - { - $this->aliases = $aliases; - } - public function getAliases() + public function setAlternateEmail($alternateEmail) { - return $this->aliases; - } - public function setDescription($description) - { - $this->description = $description; + $this->alternateEmail = $alternateEmail; } - public function getDescription() + public function getAlternateEmail() { - return $this->description; + return $this->alternateEmail; } - public function setDirectMembersCount($directMembersCount) + public function setCustomerCreationTime($customerCreationTime) { - $this->directMembersCount = $directMembersCount; + $this->customerCreationTime = $customerCreationTime; } - public function getDirectMembersCount() + public function getCustomerCreationTime() { - return $this->directMembersCount; + return $this->customerCreationTime; } - public function setEmail($email) + public function setCustomerDomain($customerDomain) { - $this->email = $email; + $this->customerDomain = $customerDomain; } - public function getEmail() + public function getCustomerDomain() { - return $this->email; + return $this->customerDomain; } public function setEtag($etag) { @@ -3312,105 +4087,156 @@ public function getKind() { return $this->kind; } - public function setName($name) + public function setLanguage($language) { - $this->name = $name; + $this->language = $language; } - public function getName() + public function getLanguage() { - return $this->name; + return $this->language; } - public function setNonEditableAliases($nonEditableAliases) + public function setPhoneNumber($phoneNumber) { - $this->nonEditableAliases = $nonEditableAliases; + $this->phoneNumber = $phoneNumber; } - public function getNonEditableAliases() + public function getPhoneNumber() { - return $this->nonEditableAliases; + return $this->phoneNumber; + } + public function setPostalAddress(Google_Service_Directory_CustomerPostalAddress $postalAddress) + { + $this->postalAddress = $postalAddress; + } + public function getPostalAddress() + { + return $this->postalAddress; } } -class Google_Service_Directory_Groups extends Google_Collection +class Google_Service_Directory_CustomerPostalAddress extends Google_Model { - 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 $addressLine1; + public $addressLine2; + public $addressLine3; + public $contactName; + public $countryCode; + public $locality; + public $organizationName; + public $postalCode; + public $region; - public function setEtag($etag) + public function setAddressLine1($addressLine1) { - $this->etag = $etag; + $this->addressLine1 = $addressLine1; } - public function getEtag() + public function getAddressLine1() { - return $this->etag; + return $this->addressLine1; } - public function setGroups($groups) + public function setAddressLine2($addressLine2) { - $this->groups = $groups; + $this->addressLine2 = $addressLine2; } - public function getGroups() + public function getAddressLine2() { - return $this->groups; + return $this->addressLine2; } - public function setKind($kind) + public function setAddressLine3($addressLine3) { - $this->kind = $kind; + $this->addressLine3 = $addressLine3; } - public function getKind() + public function getAddressLine3() { - return $this->kind; + return $this->addressLine3; } - public function setNextPageToken($nextPageToken) + public function setContactName($contactName) { - $this->nextPageToken = $nextPageToken; + $this->contactName = $contactName; } - public function getNextPageToken() + public function getContactName() { - return $this->nextPageToken; + 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_Member extends Google_Model +class Google_Service_Directory_DomainAlias extends Google_Model { protected $internal_gapi_mappings = array( ); - public $email; + public $creationTime; + public $domainAliasName; public $etag; - public $id; public $kind; - public $role; - public $type; + public $parentDomainName; + public $verified; - public function setEmail($email) + public function setCreationTime($creationTime) { - $this->email = $email; + $this->creationTime = $creationTime; } - public function getEmail() + public function getCreationTime() { - return $this->email; + return $this->creationTime; } - public function setEtag($etag) + public function setDomainAliasName($domainAliasName) { - $this->etag = $etag; + $this->domainAliasName = $domainAliasName; } - public function getEtag() + public function getDomainAliasName() { - return $this->etag; + return $this->domainAliasName; } - public function setId($id) + public function setEtag($etag) { - $this->id = $id; + $this->etag = $etag; } - public function getId() + public function getEtag() { - return $this->id; + return $this->etag; } public function setKind($kind) { @@ -3420,36 +4246,43 @@ public function getKind() { return $this->kind; } - public function setRole($role) + public function setParentDomainName($parentDomainName) { - $this->role = $role; + $this->parentDomainName = $parentDomainName; } - public function getRole() + public function getParentDomainName() { - return $this->role; + return $this->parentDomainName; } - public function setType($type) + public function setVerified($verified) { - $this->type = $type; + $this->verified = $verified; } - public function getType() + public function getVerified() { - return $this->type; + return $this->verified; } } -class Google_Service_Directory_Members extends Google_Collection +class Google_Service_Directory_DomainAliases extends Google_Collection { - protected $collection_key = 'members'; + protected $collection_key = 'domainAliases'; protected $internal_gapi_mappings = array( ); + protected $domainAliasesType = 'Google_Service_Directory_DomainAlias'; + protected $domainAliasesDataType = 'array'; public $etag; public $kind; - protected $membersType = 'Google_Service_Directory_Member'; - protected $membersDataType = 'array'; - public $nextPageToken; + public function setDomainAliases($domainAliases) + { + $this->domainAliases = $domainAliases; + } + public function getDomainAliases() + { + return $this->domainAliases; + } public function setEtag($etag) { $this->etag = $etag; @@ -3466,113 +4299,99 @@ 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 +class Google_Service_Directory_Domains extends Google_Collection { - protected $collection_key = 'name'; + protected $collection_key = 'domainAliases'; protected $internal_gapi_mappings = array( ); - protected $applicationsType = 'Google_Service_Directory_MobileDeviceApplications'; - protected $applicationsDataType = 'array'; - public $basebandVersion; - public $buildNumber; - public $defaultLanguage; - public $deviceCompromisedStatus; - public $deviceId; - public $email; + public $creationTime; + protected $domainAliasesType = 'Google_Service_Directory_DomainAlias'; + protected $domainAliasesDataType = 'array'; + public $domainName; public $etag; - public $firstSync; - public $hardwareId; - public $imei; - public $kernelVersion; + public $isPrimary; 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 $verified; - public function setApplications($applications) + public function setCreationTime($creationTime) { - $this->applications = $applications; + $this->creationTime = $creationTime; } - public function getApplications() + public function getCreationTime() { - return $this->applications; + return $this->creationTime; } - public function setBasebandVersion($basebandVersion) + public function setDomainAliases($domainAliases) { - $this->basebandVersion = $basebandVersion; + $this->domainAliases = $domainAliases; } - public function getBasebandVersion() + public function getDomainAliases() { - return $this->basebandVersion; + return $this->domainAliases; } - public function setBuildNumber($buildNumber) + public function setDomainName($domainName) { - $this->buildNumber = $buildNumber; + $this->domainName = $domainName; } - public function getBuildNumber() + public function getDomainName() { - return $this->buildNumber; + return $this->domainName; } - public function setDefaultLanguage($defaultLanguage) + public function setEtag($etag) { - $this->defaultLanguage = $defaultLanguage; + $this->etag = $etag; } - public function getDefaultLanguage() + public function getEtag() { - return $this->defaultLanguage; + return $this->etag; } - public function setDeviceCompromisedStatus($deviceCompromisedStatus) + public function setIsPrimary($isPrimary) { - $this->deviceCompromisedStatus = $deviceCompromisedStatus; + $this->isPrimary = $isPrimary; } - public function getDeviceCompromisedStatus() + public function getIsPrimary() { - return $this->deviceCompromisedStatus; + return $this->isPrimary; } - public function setDeviceId($deviceId) + public function setKind($kind) { - $this->deviceId = $deviceId; + $this->kind = $kind; } - public function getDeviceId() + public function getKind() { - return $this->deviceId; + return $this->kind; } - public function setEmail($email) + public function setVerified($verified) { - $this->email = $email; + $this->verified = $verified; } - public function getEmail() + public function getVerified() { - return $this->email; + 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) { @@ -3582,77 +4401,96 @@ public function getEtag() { return $this->etag; } - public function setFirstSync($firstSync) + public function setKind($kind) { - $this->firstSync = $firstSync; + $this->kind = $kind; } - public function getFirstSync() + public function getKind() { - return $this->firstSync; + return $this->kind; } - public function setHardwareId($hardwareId) +} + +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->hardwareId = $hardwareId; + $this->adminCreated = $adminCreated; } - public function getHardwareId() + public function getAdminCreated() { - return $this->hardwareId; + return $this->adminCreated; } - public function setImei($imei) + public function setAliases($aliases) { - $this->imei = $imei; + $this->aliases = $aliases; } - public function getImei() + public function getAliases() { - return $this->imei; + return $this->aliases; } - public function setKernelVersion($kernelVersion) + public function setDescription($description) { - $this->kernelVersion = $kernelVersion; + $this->description = $description; } - public function getKernelVersion() + public function getDescription() { - return $this->kernelVersion; + return $this->description; } - public function setKind($kind) + public function setDirectMembersCount($directMembersCount) { - $this->kind = $kind; + $this->directMembersCount = $directMembersCount; } - public function getKind() + public function getDirectMembersCount() { - return $this->kind; + return $this->directMembersCount; } - public function setLastSync($lastSync) + public function setEmail($email) { - $this->lastSync = $lastSync; + $this->email = $email; } - public function getLastSync() + public function getEmail() { - return $this->lastSync; + return $this->email; } - public function setManagedAccountIsOnOwnerProfile($managedAccountIsOnOwnerProfile) + public function setEtag($etag) { - $this->managedAccountIsOnOwnerProfile = $managedAccountIsOnOwnerProfile; + $this->etag = $etag; } - public function getManagedAccountIsOnOwnerProfile() + public function getEtag() { - return $this->managedAccountIsOnOwnerProfile; + return $this->etag; } - public function setMeid($meid) + public function setId($id) { - $this->meid = $meid; + $this->id = $id; } - public function getMeid() + public function getId() { - return $this->meid; + return $this->id; } - public function setModel($model) + public function setKind($kind) { - $this->model = $model; + $this->kind = $kind; } - public function getModel() + public function getKind() { - return $this->model; + return $this->kind; } public function setName($name) { @@ -3662,153 +4500,809 @@ public function getName() { return $this->name; } - public function setNetworkOperator($networkOperator) + public function setNonEditableAliases($nonEditableAliases) { - $this->networkOperator = $networkOperator; + $this->nonEditableAliases = $nonEditableAliases; } - public function getNetworkOperator() + public function getNonEditableAliases() { - return $this->networkOperator; + return $this->nonEditableAliases; } - public function setOs($os) +} + +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->os = $os; + $this->etag = $etag; } - public function getOs() + public function getEtag() { - return $this->os; + return $this->etag; } - public function setResourceId($resourceId) + public function setGroups($groups) { - $this->resourceId = $resourceId; + $this->groups = $groups; } - public function getResourceId() + public function getGroups() { - return $this->resourceId; + return $this->groups; } - public function setSerialNumber($serialNumber) + public function setKind($kind) { - $this->serialNumber = $serialNumber; + $this->kind = $kind; } - public function getSerialNumber() + public function getKind() { - return $this->serialNumber; + return $this->kind; } - 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; } - public function setType($type) +} + +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->type = $type; + $this->email = $email; } - public function getType() + public function getEmail() { - return $this->type; + return $this->email; } - public function setUserAgent($userAgent) + public function setEtag($etag) { - $this->userAgent = $userAgent; + $this->etag = $etag; } - public function getUserAgent() + public function getEtag() { - return $this->userAgent; + return $this->etag; } - public function setWifiMacAddress($wifiMacAddress) + public function setId($id) { - $this->wifiMacAddress = $wifiMacAddress; + $this->id = $id; } - public function getWifiMacAddress() + public function getId() { - return $this->wifiMacAddress; + 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_MobileDeviceAction extends Google_Model +class Google_Service_Directory_Members extends Google_Collection { + protected $collection_key = 'members'; protected $internal_gapi_mappings = array( ); - public $action; + public $etag; + public $kind; + protected $membersType = 'Google_Service_Directory_Member'; + protected $membersDataType = 'array'; + public $nextPageToken; - public function setAction($action) + public function setEtag($etag) { - $this->action = $action; + $this->etag = $etag; } - public function getAction() + public function getEtag() { - return $this->action; + 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_MobileDeviceApplications extends Google_Collection +class Google_Service_Directory_MobileDevice extends Google_Collection { - protected $collection_key = 'permission'; + protected $collection_key = 'otherAccountsInfo'; protected $internal_gapi_mappings = array( ); - public $displayName; - public $packageName; - public $permission; - public $versionCode; - public $versionName; + 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 setDisplayName($displayName) + public function setAdbStatus($adbStatus) { - $this->displayName = $displayName; + $this->adbStatus = $adbStatus; } - public function getDisplayName() + public function getAdbStatus() { - return $this->displayName; + return $this->adbStatus; } - public function setPackageName($packageName) + public function setApplications($applications) { - $this->packageName = $packageName; + $this->applications = $applications; } - public function getPackageName() + public function getApplications() { - return $this->packageName; + return $this->applications; } - public function setPermission($permission) + 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->permission = $permission; + $this->orgUnitPath = $orgUnitPath; } - public function getPermission() + public function getOrgUnitPath() { - return $this->permission; + return $this->orgUnitPath; } - public function setVersionCode($versionCode) + public function setParentOrgUnitId($parentOrgUnitId) { - $this->versionCode = $versionCode; + $this->parentOrgUnitId = $parentOrgUnitId; } - public function getVersionCode() + public function getParentOrgUnitId() { - return $this->versionCode; + return $this->parentOrgUnitId; } - public function setVersionName($versionName) + public function setParentOrgUnitPath($parentOrgUnitPath) { - $this->versionName = $versionName; + $this->parentOrgUnitPath = $parentOrgUnitPath; } - public function getVersionName() + public function getParentOrgUnitPath() { - return $this->versionName; + return $this->parentOrgUnitPath; } } -class Google_Service_Directory_MobileDevices extends Google_Collection +class Google_Service_Directory_OrgUnits extends Google_Collection { - protected $collection_key = 'mobiledevices'; + protected $collection_key = 'organizationUnits'; protected $internal_gapi_mappings = array( ); public $etag; public $kind; - protected $mobiledevicesType = 'Google_Service_Directory_MobileDevice'; - protected $mobiledevicesDataType = 'array'; - public $nextPageToken; + protected $organizationUnitsType = 'Google_Service_Directory_OrgUnit'; + protected $organizationUnitsDataType = 'array'; public function setEtag($etag) @@ -3827,45 +5321,38 @@ public function getKind() { return $this->kind; } - public function setMobiledevices($mobiledevices) - { - $this->mobiledevices = $mobiledevices; - } - public function getMobiledevices() - { - return $this->mobiledevices; - } - public function setNextPageToken($nextPageToken) + public function setOrganizationUnits($organizationUnits) { - $this->nextPageToken = $nextPageToken; + $this->organizationUnits = $organizationUnits; } - public function getNextPageToken() + public function getOrganizationUnits() { - return $this->nextPageToken; + return $this->organizationUnits; } } -class Google_Service_Directory_Notification extends Google_Model +class Google_Service_Directory_Privilege extends Google_Collection { + protected $collection_key = 'childPrivileges'; protected $internal_gapi_mappings = array( ); - public $body; + protected $childPrivilegesType = 'Google_Service_Directory_Privilege'; + protected $childPrivilegesDataType = 'array'; public $etag; - public $fromAddress; - public $isUnread; + public $isOuScopable; public $kind; - public $notificationId; - public $sendTime; - public $subject; + public $privilegeName; + public $serviceId; + public $serviceName; - public function setBody($body) + public function setChildPrivileges($childPrivileges) { - $this->body = $body; + $this->childPrivileges = $childPrivileges; } - public function getBody() + public function getChildPrivileges() { - return $this->body; + return $this->childPrivileges; } public function setEtag($etag) { @@ -3875,21 +5362,13 @@ public function getEtag() { return $this->etag; } - public function setFromAddress($fromAddress) - { - $this->fromAddress = $fromAddress; - } - public function getFromAddress() - { - return $this->fromAddress; - } - public function setIsUnread($isUnread) + public function setIsOuScopable($isOuScopable) { - $this->isUnread = $isUnread; + $this->isOuScopable = $isOuScopable; } - public function getIsUnread() + public function getIsOuScopable() { - return $this->isUnread; + return $this->isOuScopable; } public function setKind($kind) { @@ -3899,43 +5378,41 @@ public function getKind() { return $this->kind; } - public function setNotificationId($notificationId) + public function setPrivilegeName($privilegeName) { - $this->notificationId = $notificationId; + $this->privilegeName = $privilegeName; } - public function getNotificationId() + public function getPrivilegeName() { - return $this->notificationId; + return $this->privilegeName; } - public function setSendTime($sendTime) + public function setServiceId($serviceId) { - $this->sendTime = $sendTime; + $this->serviceId = $serviceId; } - public function getSendTime() + public function getServiceId() { - return $this->sendTime; + return $this->serviceId; } - public function setSubject($subject) + public function setServiceName($serviceName) { - $this->subject = $subject; + $this->serviceName = $serviceName; } - public function getSubject() + public function getServiceName() { - return $this->subject; + return $this->serviceName; } } -class Google_Service_Directory_Notifications extends Google_Collection +class Google_Service_Directory_Privileges extends Google_Collection { protected $collection_key = 'items'; protected $internal_gapi_mappings = array( ); public $etag; - protected $itemsType = 'Google_Service_Directory_Notification'; + protected $itemsType = 'Google_Service_Directory_Privilege'; protected $itemsDataType = 'array'; public $kind; - public $nextPageToken; - public $unreadNotificationsCount; public function setEtag($etag) @@ -3962,54 +5439,110 @@ public function getKind() { return $this->kind; } - public function setNextPageToken($nextPageToken) +} + +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->nextPageToken = $nextPageToken; + $this->etag = $etag; } - public function getNextPageToken() + public function getEtag() { - return $this->nextPageToken; + return $this->etag; } - public function setUnreadNotificationsCount($unreadNotificationsCount) + public function setIsSuperAdminRole($isSuperAdminRole) { - $this->unreadNotificationsCount = $unreadNotificationsCount; + $this->isSuperAdminRole = $isSuperAdminRole; } - public function getUnreadNotificationsCount() + public function getIsSuperAdminRole() { - return $this->unreadNotificationsCount; + 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_OrgUnit extends Google_Model +class Google_Service_Directory_RoleAssignment extends Google_Model { protected $internal_gapi_mappings = array( ); - public $blockInheritance; - public $description; + public $assignedTo; public $etag; public $kind; - public $name; public $orgUnitId; - public $orgUnitPath; - public $parentOrgUnitId; - public $parentOrgUnitPath; + public $roleAssignmentId; + public $roleId; + public $scopeType; - public function setBlockInheritance($blockInheritance) - { - $this->blockInheritance = $blockInheritance; - } - public function getBlockInheritance() - { - return $this->blockInheritance; - } - public function setDescription($description) + public function setAssignedTo($assignedTo) { - $this->description = $description; + $this->assignedTo = $assignedTo; } - public function getDescription() + public function getAssignedTo() { - return $this->description; + return $this->assignedTo; } public function setEtag($etag) { @@ -4027,14 +5560,6 @@ 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; @@ -4043,41 +5568,42 @@ public function getOrgUnitId() { return $this->orgUnitId; } - public function setOrgUnitPath($orgUnitPath) + public function setRoleAssignmentId($roleAssignmentId) { - $this->orgUnitPath = $orgUnitPath; + $this->roleAssignmentId = $roleAssignmentId; } - public function getOrgUnitPath() + public function getRoleAssignmentId() { - return $this->orgUnitPath; + return $this->roleAssignmentId; } - public function setParentOrgUnitId($parentOrgUnitId) + public function setRoleId($roleId) { - $this->parentOrgUnitId = $parentOrgUnitId; + $this->roleId = $roleId; } - public function getParentOrgUnitId() + public function getRoleId() { - return $this->parentOrgUnitId; + return $this->roleId; } - public function setParentOrgUnitPath($parentOrgUnitPath) + public function setScopeType($scopeType) { - $this->parentOrgUnitPath = $parentOrgUnitPath; + $this->scopeType = $scopeType; } - public function getParentOrgUnitPath() + public function getScopeType() { - return $this->parentOrgUnitPath; + return $this->scopeType; } } -class Google_Service_Directory_OrgUnits extends Google_Collection +class Google_Service_Directory_RoleAssignments extends Google_Collection { - protected $collection_key = 'organizationUnits'; + protected $collection_key = 'items'; protected $internal_gapi_mappings = array( ); public $etag; + protected $itemsType = 'Google_Service_Directory_RoleAssignment'; + protected $itemsDataType = 'array'; public $kind; - protected $organizationUnitsType = 'Google_Service_Directory_OrgUnit'; - protected $organizationUnitsDataType = 'array'; + public $nextPageToken; public function setEtag($etag) @@ -4088,6 +5614,14 @@ 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; @@ -4096,13 +5630,85 @@ public function getKind() { return $this->kind; } - public function setOrganizationUnits($organizationUnits) + public function setNextPageToken($nextPageToken) { - $this->organizationUnits = $organizationUnits; + $this->nextPageToken = $nextPageToken; } - public function getOrganizationUnits() + public function getNextPageToken() { - return $this->organizationUnits; + 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; } } diff --git a/lib/google/src/Google/Service/Dns.php b/lib/google/src/Google/Service/Dns.php index 5c62e189d2b1b..e94410b52a838 100644 --- a/lib/google/src/Google/Service/Dns.php +++ b/lib/google/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/lib/google/src/Google/Service/DoubleClickBidManager.php b/lib/google/src/Google/Service/DoubleClickBidManager.php index 4191ef6e150f9..f17ef6b20285d 100644 --- a/lib/google/src/Google/Service/DoubleClickBidManager.php +++ b/lib/google/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/lib/google/src/Google/Service/Doubleclicksearch.php b/lib/google/src/Google/Service/Doubleclicksearch.php index a0bf15d7f9a1e..9279c0e96b333 100644 --- a/lib/google/src/Google/Service/Doubleclicksearch.php +++ b/lib/google/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/lib/google/src/Google/Service/Drive.php b/lib/google/src/Google/Service/Drive.php index e30a33128ede7..ab06a05cfbb92 100644 --- a/lib/google/src/Google/Service/Drive.php +++ b/lib/google/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/lib/google/src/Google/Service/Fitness.php b/lib/google/src/Google/Service/Fitness.php index 5135284787315..2e7fa29e49099 100644 --- a/lib/google/src/Google/Service/Fitness.php +++ b/lib/google/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/lib/google/src/Google/Service/Games.php b/lib/google/src/Google/Service/Games.php index a41082e4b4291..fb45179ffd04d 100644 --- a/lib/google/src/Google/Service/Games.php +++ b/lib/google/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/lib/google/src/Google/Service/GamesManagement.php b/lib/google/src/Google/Service/GamesManagement.php index 1d6853e4b776a..71126cf97e420 100644 --- a/lib/google/src/Google/Service/GamesManagement.php +++ b/lib/google/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/lib/google/src/Google/Service/Genomics.php b/lib/google/src/Google/Service/Genomics.php index c92482ec0a2f6..ffe7b4d89f16f 100644 --- a/lib/google/src/Google/Service/Genomics.php +++ b/lib/google/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/lib/google/src/Google/Service/Gmail.php b/lib/google/src/Google/Service/Gmail.php index bd38677dec3db..8c15bab13ce9d 100644 --- a/lib/google/src/Google/Service/Gmail.php +++ b/lib/google/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/lib/google/src/Google/Service/IdentityToolkit.php b/lib/google/src/Google/Service/IdentityToolkit.php index 32cf66f2951b3..3d1d5da55058a 100644 --- a/lib/google/src/Google/Service/IdentityToolkit.php +++ b/lib/google/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; @@ -1446,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; @@ -1611,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; @@ -1710,6 +1728,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 +1775,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/lib/google/src/Google/Service/Logging.php b/lib/google/src/Google/Service/Logging.php index 7eeaa8f39ccc5..598e00bc218ca 100644 --- a/lib/google/src/Google/Service/Logging.php +++ b/lib/google/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/lib/google/src/Google/Service/Manager.php b/lib/google/src/Google/Service/Manager.php index 5e4edb2c27951..a2064002e33d3 100644 --- a/lib/google/src/Google/Service/Manager.php +++ b/lib/google/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/lib/google/src/Google/Service/Partners.php b/lib/google/src/Google/Service/Partners.php new file mode 100644 index 0000000000000..4fc08fd11d0bb --- /dev/null +++ b/lib/google/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/lib/google/src/Google/Service/Playmoviespartner.php b/lib/google/src/Google/Service/Playmoviespartner.php index fb2a33bd81fab..d3c11bc76146b 100644 --- a/lib/google/src/Google/Service/Playmoviespartner.php +++ b/lib/google/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/lib/google/src/Google/Service/Plus.php b/lib/google/src/Google/Service/Plus.php index 9aa65c43929b3..9ff6a8ae103a2 100644 --- a/lib/google/src/Google/Service/Plus.php +++ b/lib/google/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/lib/google/src/Google/Service/PlusDomains.php b/lib/google/src/Google/Service/PlusDomains.php index 90b19940312b5..9053c9881da04 100644 --- a/lib/google/src/Google/Service/PlusDomains.php +++ b/lib/google/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/lib/google/src/Google/Service/Proximitybeacon.php b/lib/google/src/Google/Service/Proximitybeacon.php new file mode 100644 index 0000000000000..f9a8d0f074a9e --- /dev/null +++ b/lib/google/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/lib/google/src/Google/Service/Pubsub.php b/lib/google/src/Google/Service/Pubsub.php index 9d38e36803986..e4fc97c33a8eb 100644 --- a/lib/google/src/Google/Service/Pubsub.php +++ b/lib/google/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/lib/google/src/Google/Service/Replicapool.php b/lib/google/src/Google/Service/Replicapool.php index a4ba6d8a5e02c..a8cd25356a329 100644 --- a/lib/google/src/Google/Service/Replicapool.php +++ b/lib/google/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/lib/google/src/Google/Service/Replicapoolupdater.php b/lib/google/src/Google/Service/Replicapoolupdater.php index 44cf2df3c5597..a5649402eb1a0 100644 --- a/lib/google/src/Google/Service/Replicapoolupdater.php +++ b/lib/google/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/lib/google/src/Google/Service/Reseller.php b/lib/google/src/Google/Service/Reseller.php index e95a737d3bbdb..2ffffba097d12 100644 --- a/lib/google/src/Google/Service/Reseller.php +++ b/lib/google/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/lib/google/src/Google/Service/Resource.php b/lib/google/src/Google/Service/Resource.php index b0514d722b5d8..b3b4d85f689e9 100644 --- a/lib/google/src/Google/Service/Resource.php +++ b/lib/google/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']); } @@ -131,8 +134,8 @@ 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])) { diff --git a/lib/google/src/Google/Service/Resourceviews.php b/lib/google/src/Google/Service/Resourceviews.php index 4420a7525fe10..58e3b89135f5e 100644 --- a/lib/google/src/Google/Service/Resourceviews.php +++ b/lib/google/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/lib/google/src/Google/Service/SQLAdmin.php b/lib/google/src/Google/Service/SQLAdmin.php index 12882d3560772..04229379d47e8 100644 --- a/lib/google/src/Google/Service/SQLAdmin.php +++ b/lib/google/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; @@ -3011,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; @@ -3057,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; @@ -3247,6 +3423,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/lib/google/src/Google/Service/ShoppingContent.php b/lib/google/src/Google/Service/ShoppingContent.php index 44840eef881b9..1930011db474c 100644 --- a/lib/google/src/Google/Service/ShoppingContent.php +++ b/lib/google/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/lib/google/src/Google/Service/Storage.php b/lib/google/src/Google/Service/Storage.php index ca6ccb2630940..01d93007e2c74 100644 --- a/lib/google/src/Google/Service/Storage.php +++ b/lib/google/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/lib/google/src/Google/Service/Storagetransfer.php b/lib/google/src/Google/Service/Storagetransfer.php new file mode 100644 index 0000000000000..9141d5c04fde2 --- /dev/null +++ b/lib/google/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/lib/google/src/Google/Service/TagManager.php b/lib/google/src/Google/Service/TagManager.php index ebc9228eacc84..2f85d7fd51398 100644 --- a/lib/google/src/Google/Service/TagManager.php +++ b/lib/google/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)); } } /** @@ -1676,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. @@ -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/lib/google/src/Google/Service/Webmasters.php b/lib/google/src/Google/Service/Webmasters.php index 8f332cad21467..30f9fd7f39506 100644 --- a/lib/google/src/Google/Service/Webmasters.php +++ b/lib/google/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/lib/google/src/Google/Service/YouTube.php b/lib/google/src/Google/Service/YouTube.php index 386936097b216..651088390df66 100644 --- a/lib/google/src/Google/Service/YouTube.php +++ b/lib/google/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/lib/google/src/Google/Service/YouTubeAnalytics.php b/lib/google/src/Google/Service/YouTubeAnalytics.php index 2f6a80aa30e43..acf448e03ee23 100644 --- a/lib/google/src/Google/Service/YouTubeAnalytics.php +++ b/lib/google/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/lib/google/src/Google/Service/YouTubeReporting.php b/lib/google/src/Google/Service/YouTubeReporting.php new file mode 100644 index 0000000000000..805438f99ba36 --- /dev/null +++ b/lib/google/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; + } +} diff --git a/lib/google/src/Google/autoload.php b/lib/google/src/Google/autoload.php index 89e2a185fef88..35bb91ae59bd9 100644 --- a/lib/google/src/Google/autoload.php +++ b/lib/google/src/Google/autoload.php @@ -15,18 +15,17 @@ * 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); - - $filePath = dirname(__FILE__) . '/' . implode('/', $classPath) . '.php'; - if (file_exists($filePath)) { - require_once($filePath); - } - } -); +function google_api_php_client_autoload($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); + } +} +spl_autoload_register('google_api_php_client_autoload'); diff --git a/lib/thirdpartylibs.xml b/lib/thirdpartylibs.xml index 072f39873dd75..bed50b789bd19 100644 --- a/lib/thirdpartylibs.xml +++ b/lib/thirdpartylibs.xml @@ -53,7 +53,7 @@ google Google APIs Client Library Apache - 1.1.5 + 1.1.7 2.0 diff --git a/lib/upgrade.txt b/lib/upgrade.txt index 5135ad3bfcf35..3df2fbafb026d 100644 --- a/lib/upgrade.txt +++ b/lib/upgrade.txt @@ -3,6 +3,9 @@ information provided here is intended especially for developers. === 3.1 === +* The google api library has been updated to version 1.1.7. There was some important changes + on the SSL handling. Now the SSL version will be determined by the underlying library. + For more information see https://github.com/google/google-api-php-client/pull/644 * The get_role_users() function will now add the $sort fields that are not part of the requested fields to the query result and will throw a debugging message with the added fields when that happens.