diff --git a/lib/google/README.md b/lib/google/README.md index 7508aeb52e8..d9797b82874 100644 --- a/lib/google/README.md +++ b/lib/google/README.md @@ -26,7 +26,7 @@ See the examples/ directory for examples of the key client features. ```PHP setApplicationName("Client_Library_Examples"); @@ -42,6 +42,10 @@ See the examples/ directory for examples of the key client features. ``` +### Service Specific Examples ### + +YouTube: https://github.com/youtube/api-samples/tree/master/php + ## Frequently Asked Questions ## ### What do I do if something isn't working? ### @@ -54,6 +58,10 @@ If there is a specific bug with the library, please file a issue in the Github i We accept contributions via Github Pull Requests, but all contributors need to be covered by the standard Google Contributor License Agreement. You can find links, and more instructions, in the documentation: https://developers.google.com/api-client-library/php/contribute +### I want an example of X! ### + +If X is a feature of the library, file away! If X is an example of using a specific service, the best place to go is to the teams for those specific APIs - our preference is to link to their examples rather than add them to the library, as they can then pin to specific versions of the library. If you have any examples for other APIs, let us know and we will happily add a link to the README above! + ### Why do you still support 5.2? ### When we started working on the 1.0.0 branch we knew there were several fundamental issues to fix with the 0.6 releases of the library. At that time we looked at the usage of the library, and other related projects, and determined that there was still a large and active base of PHP 5.2 installs. You can see this in statistics such as the PHP versions chart in the WordPress stats: http://wordpress.org/about/stats/. We will keep looking at the types of usage we see, and try to take advantage of newer PHP features where possible. @@ -72,10 +80,26 @@ $opt_params = array( ); ``` +### How do I set a field to null? ### + +The library strips out nulls from the objects sent to the Google APIs as its the default value of all of the uninitialised properties. To work around this, set the field you want to null to Google_Model::NULL_VALUE. This is a placeholder that will be replaced with a true null when sent over the wire. + ## Code Quality ## -Copy the ruleset.xml in style/ into a new directory named GAPI/ in your -/usr/share/php/PHP/CodeSniffer/Standards (or appropriate equivalent directory), -and run code sniffs with: +Run the PHPUnit tests with PHPUnit. You can configure an API key and token in BaseTest.php to run all calls, but this will require some setup on the Google Developer Console. - phpcs --standard=GAPI src/ + phpunit tests/ + +### Coding Style + +To check for coding style violations, run + +``` +vendor/bin/phpcs src --standard=style/ruleset.xml -np +``` + +To automatically fix (fixable) coding style violations, run + +``` +vendor/bin/phpcbf src --standard=style/ruleset.xml +``` diff --git a/lib/google/autoload.php b/lib/google/autoload.php index 3815c5262e1..4e50f135fb9 100644 --- a/lib/google/autoload.php +++ b/lib/google/autoload.php @@ -15,19 +15,12 @@ * limitations under the License. */ -function google_api_php_client_autoload($className) { - $classPath = explode('_', $className); - if ($classPath[0] != 'Google') { - return; - } - if (count($classPath) > 3) { - // Maximum class file path depth in this project is 3. - $classPath = array_slice($classPath, 0, 3); - } - $filePath = dirname(__FILE__) . '/src/' . implode('/', $classPath) . '.php'; - if (file_exists($filePath)) { - require_once($filePath); - } +// PHP 5.2 compatibility: E_USER_DEPRECATED was added in 5.3 +if (!defined('E_USER_DEPRECATED')) { + define('E_USER_DEPRECATED', E_USER_WARNING); } -spl_autoload_register('google_api_php_client_autoload'); +$error = "google-api-php-client's autoloader was moved to src/Google/autoload.php in 1.1.3. This "; +$error .= "redirect will be removed in 1.2. Please adjust your code to use the new location."; +trigger_error($error, E_USER_DEPRECATED); +require_once dirname(__FILE__) . '/src/Google/autoload.php'; diff --git a/lib/google/lib.php b/lib/google/lib.php index 94fa2fe84a1..5e698dc0973 100644 --- a/lib/google/lib.php +++ b/lib/google/lib.php @@ -25,7 +25,7 @@ defined('MOODLE_INTERNAL') || die(); // All Google API classes support autoload with this. -require_once($CFG->libdir . '/google/autoload.php'); +require_once($CFG->libdir . '/google/src/Google/autoload.php'); // To be able to use our custom IO class. require_once($CFG->libdir . '/google/curlio.php'); diff --git a/lib/google/readme_moodle.txt b/lib/google/readme_moodle.txt index cdf5ae4e834..60986b22392 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.2 +Downloaded version: 1.1.5 diff --git a/lib/google/src/Google/Auth/Abstract.php b/lib/google/src/Google/Auth/Abstract.php index c1e36dc4ce6..4cd7b551a5c 100644 --- a/lib/google/src/Google/Auth/Abstract.php +++ b/lib/google/src/Google/Auth/Abstract.php @@ -15,7 +15,9 @@ * limitations under the License. */ -require_once realpath(dirname(__FILE__) . '/../../../autoload.php'); +if (!class_exists('Google_Client')) { + require_once dirname(__FILE__) . '/../autoload.php'; +} /** * Abstract class for the Authentication in the API client diff --git a/lib/google/src/Google/Auth/AppIdentity.php b/lib/google/src/Google/Auth/AppIdentity.php index ff96a9d4aab..5fb66999d8d 100644 --- a/lib/google/src/Google/Auth/AppIdentity.php +++ b/lib/google/src/Google/Auth/AppIdentity.php @@ -22,7 +22,9 @@ */ use google\appengine\api\app_identity\AppIdentityService; -require_once realpath(dirname(__FILE__) . '/../../../autoload.php'); +if (!class_exists('Google_Client')) { + require_once dirname(__FILE__) . '/../autoload.php'; +} /** * Authentication via the Google App Engine App Identity service. @@ -30,7 +32,6 @@ require_once realpath(dirname(__FILE__) . '/../../../autoload.php'); class Google_Auth_AppIdentity extends Google_Auth_Abstract { const CACHE_PREFIX = "Google_Auth_AppIdentity::"; - private $key = null; private $client; private $token = false; private $tokenScopes = false; @@ -58,18 +59,32 @@ class Google_Auth_AppIdentity extends Google_Auth_Abstract $this->token = $this->client->getCache()->get($cacheKey); if (!$this->token) { - $this->token = AppIdentityService::getAccessToken($scopes); - if ($this->token) { - $this->client->getCache()->set( - $cacheKey, - $this->token - ); - } + $this->retrieveToken($scopes, $cacheKey); + } else if ($this->token['expiration_time'] < time()) { + $this->client->getCache()->delete($cacheKey); + $this->retrieveToken($scopes, $cacheKey); } + $this->tokenScopes = $scopes; return $this->token; } + /** + * Retrieve a new access token and store it in cache + * @param mixed $scopes + * @param string $cacheKey + */ + private function retrieveToken($scopes, $cacheKey) + { + $this->token = AppIdentityService::getAccessToken($scopes); + if ($this->token) { + $this->client->getCache()->set( + $cacheKey, + $this->token + ); + } + } + /** * Perform an authenticated / signed apiHttpRequest. * This function takes the apiHttpRequest, calls apiAuth->sign on it diff --git a/lib/google/src/Google/Auth/AssertionCredentials.php b/lib/google/src/Google/Auth/AssertionCredentials.php index 2b92c5731d5..831d374eb4b 100644 --- a/lib/google/src/Google/Auth/AssertionCredentials.php +++ b/lib/google/src/Google/Auth/AssertionCredentials.php @@ -15,12 +15,12 @@ * limitations under the License. */ -require_once realpath(dirname(__FILE__) . '/../../../autoload.php'); +if (!class_exists('Google_Client')) { + require_once dirname(__FILE__) . '/../autoload.php'; +} /** * Credentials object used for OAuth 2.0 Signed JWT assertion grants. - * - * @author Chirag Shah */ class Google_Auth_AssertionCredentials { diff --git a/lib/google/src/Google/Auth/ComputeEngine.php b/lib/google/src/Google/Auth/ComputeEngine.php new file mode 100644 index 00000000000..88ff6ff8964 --- /dev/null +++ b/lib/google/src/Google/Auth/ComputeEngine.php @@ -0,0 +1,146 @@ + + */ +class Google_Auth_ComputeEngine extends Google_Auth_Abstract +{ + const METADATA_AUTH_URL = + 'http://metadata/computeMetadata/v1/instance/service-accounts/default/token'; + private $client; + private $token; + + public function __construct(Google_Client $client, $config = null) + { + $this->client = $client; + } + + /** + * Perform an authenticated / signed apiHttpRequest. + * This function takes the apiHttpRequest, calls apiAuth->sign on it + * (which can modify the request in what ever way fits the auth mechanism) + * and then calls apiCurlIO::makeRequest on the signed request + * + * @param Google_Http_Request $request + * @return Google_Http_Request The resulting HTTP response including the + * responseHttpCode, responseHeaders and responseBody. + */ + public function authenticatedRequest(Google_Http_Request $request) + { + $request = $this->sign($request); + return $this->client->getIo()->makeRequest($request); + } + + /** + * @param string $token + * @throws Google_Auth_Exception + */ + public function setAccessToken($token) + { + $token = json_decode($token, true); + if ($token == null) { + throw new Google_Auth_Exception('Could not json decode the token'); + } + if (! isset($token['access_token'])) { + throw new Google_Auth_Exception("Invalid token format"); + } + $token['created'] = time(); + $this->token = $token; + } + + public function getAccessToken() + { + return json_encode($this->token); + } + + /** + * Acquires a new access token from the compute engine metadata server. + * @throws Google_Auth_Exception + */ + public function acquireAccessToken() + { + $request = new Google_Http_Request( + self::METADATA_AUTH_URL, + 'GET', + array( + 'Metadata-Flavor' => 'Google' + ) + ); + $request->disableGzip(); + $response = $this->client->getIo()->makeRequest($request); + + if ($response->getResponseHttpCode() == 200) { + $this->setAccessToken($response->getResponseBody()); + $this->token['created'] = time(); + return $this->getAccessToken(); + } else { + throw new Google_Auth_Exception( + sprintf( + "Error fetching service account access token, message: '%s'", + $response->getResponseBody() + ), + $response->getResponseHttpCode() + ); + } + } + + /** + * Include an accessToken in a given apiHttpRequest. + * @param Google_Http_Request $request + * @return Google_Http_Request + * @throws Google_Auth_Exception + */ + public function sign(Google_Http_Request $request) + { + if ($this->isAccessTokenExpired()) { + $this->acquireAccessToken(); + } + + $this->client->getLogger()->debug('Compute engine service account authentication'); + + $request->setRequestHeaders( + array('Authorization' => 'Bearer ' . $this->token['access_token']) + ); + + return $request; + } + + /** + * Returns if the access_token is expired. + * @return bool Returns True if the access_token is expired. + */ + public function isAccessTokenExpired() + { + if (!$this->token || !isset($this->token['created'])) { + return true; + } + + // If the token is set to expire in the next 30 seconds. + $expired = ($this->token['created'] + + ($this->token['expires_in'] - 30)) < time(); + + return $expired; + } +} diff --git a/lib/google/src/Google/Auth/Exception.php b/lib/google/src/Google/Auth/Exception.php index 81c795aecd2..e4b75c14baf 100644 --- a/lib/google/src/Google/Auth/Exception.php +++ b/lib/google/src/Google/Auth/Exception.php @@ -15,7 +15,9 @@ * limitations under the License. */ -require_once realpath(dirname(__FILE__) . '/../../../autoload.php'); +if (!class_exists('Google_Client')) { + require_once dirname(__FILE__) . '/../autoload.php'; +} class Google_Auth_Exception extends Google_Exception { diff --git a/lib/google/src/Google/Auth/LoginTicket.php b/lib/google/src/Google/Auth/LoginTicket.php index b29abdffdd7..371b3ce1834 100644 --- a/lib/google/src/Google/Auth/LoginTicket.php +++ b/lib/google/src/Google/Auth/LoginTicket.php @@ -15,7 +15,9 @@ * limitations under the License. */ -require_once realpath(dirname(__FILE__) . '/../../../autoload.php'); +if (!class_exists('Google_Client')) { + require_once dirname(__FILE__) . '/../autoload.php'; +} /** * Class to hold information about an authenticated login. diff --git a/lib/google/src/Google/Auth/OAuth2.php b/lib/google/src/Google/Auth/OAuth2.php index 58e86e5fbb6..a6041515ca6 100644 --- a/lib/google/src/Google/Auth/OAuth2.php +++ b/lib/google/src/Google/Auth/OAuth2.php @@ -15,14 +15,13 @@ * limitations under the License. */ -require_once realpath(dirname(__FILE__) . '/../../../autoload.php'); +if (!class_exists('Google_Client')) { + require_once dirname(__FILE__) . '/../autoload.php'; +} /** * Authentication class that deals with the OAuth 2 web-server authentication flow * - * @author Chris Chabot - * @author Chirag Shah - * */ class Google_Auth_OAuth2 extends Google_Auth_Abstract { @@ -79,28 +78,34 @@ class Google_Auth_OAuth2 extends Google_Auth_Abstract /** * @param string $code + * @param boolean $crossClient * @throws Google_Auth_Exception * @return string */ - public function authenticate($code) + public function authenticate($code, $crossClient = false) { if (strlen($code) == 0) { throw new Google_Auth_Exception("Invalid code"); } + $arguments = array( + 'code' => $code, + 'grant_type' => 'authorization_code', + 'client_id' => $this->client->getClassConfig($this, 'client_id'), + 'client_secret' => $this->client->getClassConfig($this, 'client_secret') + ); + + if ($crossClient !== true) { + $arguments['redirect_uri'] = $this->client->getClassConfig($this, 'redirect_uri'); + } + // We got here from the redirect from a successful authorization grant, // fetch the access token $request = new Google_Http_Request( self::OAUTH2_TOKEN_URI, 'POST', array(), - array( - 'code' => $code, - 'grant_type' => 'authorization_code', - 'redirect_uri' => $this->client->getClassConfig($this, 'redirect_uri'), - 'client_id' => $this->client->getClassConfig($this, 'client_id'), - 'client_secret' => $this->client->getClassConfig($this, 'client_secret') - ) + $arguments ); $request->disableGzip(); $response = $this->client->getIo()->makeRequest($request); diff --git a/lib/google/src/Google/Auth/Simple.php b/lib/google/src/Google/Auth/Simple.php index 3c85ae33cc0..9a8e58c0511 100644 --- a/lib/google/src/Google/Auth/Simple.php +++ b/lib/google/src/Google/Auth/Simple.php @@ -15,18 +15,17 @@ * limitations under the License. */ -require_once realpath(dirname(__FILE__) . '/../../../autoload.php'); +if (!class_exists('Google_Client')) { + require_once dirname(__FILE__) . '/../autoload.php'; +} /** * Simple API access implementation. Can either be used to make requests * completely unauthenticated, or by using a Simple API Access developer * key. - * @author Chris Chabot - * @author Chirag Shah */ class Google_Auth_Simple extends Google_Auth_Abstract { - private $key = null; private $client; public function __construct(Google_Client $client, $config = null) diff --git a/lib/google/src/Google/Cache/Apc.php b/lib/google/src/Google/Cache/Apc.php index 7c9a0754d02..67a64ddb0e2 100644 --- a/lib/google/src/Google/Cache/Apc.php +++ b/lib/google/src/Google/Cache/Apc.php @@ -15,7 +15,9 @@ * limitations under the License. */ -require_once realpath(dirname(__FILE__) . '/../../../autoload.php'); +if (!class_exists('Google_Client')) { + require_once dirname(__FILE__) . '/../autoload.php'; +} /** * A persistent storage class based on the APC cache, which is not diff --git a/lib/google/src/Google/Cache/Exception.php b/lib/google/src/Google/Cache/Exception.php index a1d2d7adcd2..2d751d58364 100644 --- a/lib/google/src/Google/Cache/Exception.php +++ b/lib/google/src/Google/Cache/Exception.php @@ -15,7 +15,9 @@ * limitations under the License. */ -require_once realpath(dirname(__FILE__) . '/../../../autoload.php'); +if (!class_exists('Google_Client')) { + require_once dirname(__FILE__) . '/../autoload.php'; +} class Google_Cache_Exception extends Google_Exception { diff --git a/lib/google/src/Google/Cache/File.php b/lib/google/src/Google/Cache/File.php index e4c99ad0c07..30cbeab8373 100644 --- a/lib/google/src/Google/Cache/File.php +++ b/lib/google/src/Google/Cache/File.php @@ -15,7 +15,9 @@ * limitations under the License. */ -require_once realpath(dirname(__FILE__) . '/../../../autoload.php'); +if (!class_exists('Google_Client')) { + require_once dirname(__FILE__) . '/../autoload.php'; +} /* * This class implements a basic on disk storage. While that does @@ -68,8 +70,15 @@ class Google_Cache_File extends Google_Cache_Abstract } if ($this->acquireReadLock($storageFile)) { - $data = fread($this->fh, filesize($storageFile)); - $data = unserialize($data); + if (filesize($storageFile) > 0) { + $data = fread($this->fh, filesize($storageFile)); + $data = unserialize($data); + } else { + $this->client->getLogger()->debug( + 'Cache file was empty', + array('file' => $storageFile) + ); + } $this->unlock($storageFile); } @@ -170,6 +179,13 @@ class Google_Cache_File extends Google_Cache_Abstract { $mode = $type == LOCK_EX ? "w" : "r"; $this->fh = fopen($storageFile, $mode); + if (!$this->fh) { + $this->client->getLogger()->error( + 'Failed to open file during lock acquisition', + array('file' => $storageFile) + ); + return false; + } $count = 0; while (!flock($this->fh, $type | LOCK_NB)) { // Sleep for 10ms. diff --git a/lib/google/src/Google/Cache/Memcache.php b/lib/google/src/Google/Cache/Memcache.php index c9fb4bc758d..4a415afa743 100644 --- a/lib/google/src/Google/Cache/Memcache.php +++ b/lib/google/src/Google/Cache/Memcache.php @@ -15,7 +15,9 @@ * limitations under the License. */ -require_once realpath(dirname(__FILE__) . '/../../../autoload.php'); +if (!class_exists('Google_Client')) { + require_once dirname(__FILE__) . '/../autoload.php'; +} /** * A persistent storage class based on the memcache, which is not diff --git a/lib/google/src/Google/Cache/Null.php b/lib/google/src/Google/Cache/Null.php index 0cd24c578e2..21b6a1cb389 100644 --- a/lib/google/src/Google/Cache/Null.php +++ b/lib/google/src/Google/Cache/Null.php @@ -15,7 +15,9 @@ * limitations under the License. */ -require_once realpath(dirname(__FILE__) . '/../../../autoload.php'); +if (!class_exists('Google_Client')) { + require_once dirname(__FILE__) . '/../autoload.php'; +} /** * A blank storage class, for cases where caching is not diff --git a/lib/google/src/Google/Client.php b/lib/google/src/Google/Client.php index 1de6c59be86..fc12a7c8b65 100644 --- a/lib/google/src/Google/Client.php +++ b/lib/google/src/Google/Client.php @@ -15,18 +15,17 @@ * limitations under the License. */ -require_once realpath(dirname(__FILE__) . '/../../autoload.php'); +if (!class_exists('Google_Client')) { + require_once dirname(__FILE__) . '/autoload.php'; +} /** * The Google API Client * http://code.google.com/p/google-api-php-client/ - * - * @author Chris Chabot - * @author Chirag Shah */ class Google_Client { - const LIBVER = "1.1.2"; + const LIBVER = "1.1.5"; const USER_AGENT_SUFFIX = "google-api-php-client/"; /** * @var Google_Auth_Abstract $auth @@ -115,15 +114,45 @@ class Google_Client /** * Attempt to exchange a code for an valid authentication token. + * If $crossClient is set to true, the request body will not include + * the request_uri argument * Helper wrapped around the OAuth 2.0 implementation. * * @param $code string code from accounts.google.com + * @param $crossClient boolean, whether this is a cross-client authentication * @return string token */ - public function authenticate($code) + public function authenticate($code, $crossClient = false) { $this->authenticated = true; - return $this->getAuth()->authenticate($code); + return $this->getAuth()->authenticate($code, $crossClient); + } + + /** + * Loads a service account key and parameters from a JSON + * file from the Google Developer Console. Uses that and the + * given array of scopes to return an assertion credential for + * use with refreshTokenWithAssertionCredential. + * + * @param string $jsonLocation File location of the project-key.json. + * @param array $scopes The scopes to assert. + * @return Google_Auth_AssertionCredentials. + * @ + */ + public function loadServiceAccountJson($jsonLocation, $scopes) + { + $data = json_decode(file_get_contents($jsonLocation)); + if (isset($data->type) && $data->type == 'service_account') { + // Service Account format. + $cred = new Google_Auth_AssertionCredentials( + $data->client_email, + $scopes, + $data->private_key + ); + return $cred; + } else { + throw new Google_Exception("Invalid service account JSON file."); + } } /** diff --git a/lib/google/src/Google/Collection.php b/lib/google/src/Google/Collection.php index dbb2855e971..b26e9e51d0e 100644 --- a/lib/google/src/Google/Collection.php +++ b/lib/google/src/Google/Collection.php @@ -1,6 +1,8 @@ modelData[$this->collection_key])) { + return 0; + } return count($this->modelData[$this->collection_key]); } - public function offsetExists ($offset) + public function offsetExists($offset) { if (!is_numeric($offset)) { return parent::offsetExists($offset); diff --git a/lib/google/src/Google/Config.php b/lib/google/src/Google/Config.php index 555f9ce1ec5..d582d8316b9 100644 --- a/lib/google/src/Google/Config.php +++ b/lib/google/src/Google/Config.php @@ -25,6 +25,9 @@ class Google_Config const GZIP_UPLOADS_ENABLED = true; const GZIP_UPLOADS_DISABLED = false; const USE_AUTO_IO_SELECTION = "auto"; + const TASK_RETRY_NEVER = 0; + const TASK_RETRY_ONCE = 1; + const TASK_RETRY_ALWAYS = -1; protected $configuration; /** @@ -101,6 +104,36 @@ class Google_Config 'federated_signon_certs_url' => 'https://www.googleapis.com/oauth2/v1/certs', ), + 'Google_Task_Runner' => array( + // Delays are specified in seconds + 'initial_delay' => 1, + 'max_delay' => 60, + // Base number for exponential backoff + 'factor' => 2, + // A random number between -jitter and jitter will be added to the + // factor on each iteration to allow for better distribution of + // retries. + 'jitter' => .5, + // Maximum number of retries allowed + 'retries' => 0 + ), + 'Google_Service_Exception' => array( + 'retry_map' => array( + '500' => self::TASK_RETRY_ALWAYS, + '503' => self::TASK_RETRY_ALWAYS, + 'rateLimitExceeded' => self::TASK_RETRY_ALWAYS, + 'userRateLimitExceeded' => self::TASK_RETRY_ALWAYS + ) + ), + 'Google_IO_Exception' => array( + 'retry_map' => !extension_loaded('curl') ? array() : array( + CURLE_COULDNT_RESOLVE_HOST => self::TASK_RETRY_ALWAYS, + CURLE_COULDNT_CONNECT => self::TASK_RETRY_ALWAYS, + CURLE_OPERATION_TIMEOUTED => self::TASK_RETRY_ALWAYS, + CURLE_SSL_CONNECT_ERROR => self::TASK_RETRY_ALWAYS, + CURLE_GOT_NOTHING => self::TASK_RETRY_ALWAYS + ) + ), // Set a default directory for the file cache. 'Google_Cache_File' => array( 'directory' => sys_get_temp_dir() . '/Google_Client' @@ -348,6 +381,11 @@ class Google_Config * Set the hd (hosted domain) parameter streamlines the login process for * Google Apps hosted accounts. By including the domain of the user, you * restrict sign-in to accounts at that domain. + * + * This should not be used to ensure security on your application - check + * the hd values within an id token (@see Google_Auth_LoginTicket) after sign + * in to ensure that the user is from the domain you were expecting. + * * @param $hd string - the domain to use. */ public function setHostedDomain($hd) diff --git a/lib/google/src/Google/Http/Batch.php b/lib/google/src/Google/Http/Batch.php index 543ac579b48..039b4dd32cd 100644 --- a/lib/google/src/Google/Http/Batch.php +++ b/lib/google/src/Google/Http/Batch.php @@ -15,10 +15,12 @@ * limitations under the License. */ -require_once realpath(dirname(__FILE__) . '/../../../autoload.php'); +if (!class_exists('Google_Client')) { + require_once dirname(__FILE__) . '/../autoload.php'; +} /** - * @author Chirag Shah + * Class to handle batched requests to the Google API service. */ class Google_Http_Batch { @@ -33,12 +35,15 @@ class Google_Http_Batch private $expected_classes = array(); - private $base_path; + private $root_url; - public function __construct(Google_Client $client, $boundary = false) + private $batch_path; + + public function __construct(Google_Client $client, $boundary = false, $rootUrl = '', $batchPath = '') { $this->client = $client; - $this->base_path = $this->client->getBasePath(); + $this->root_url = rtrim($rootUrl ? $rootUrl : $this->client->getBasePath(), '/'); + $this->batch_path = $batchPath ? $batchPath : 'batch'; $this->expected_classes = array(); $boundary = (false == $boundary) ? mt_rand() : $boundary; $this->boundary = str_replace('"', '', $boundary); @@ -60,14 +65,13 @@ class Google_Http_Batch /** @var Google_Http_Request $req */ foreach ($this->requests as $key => $req) { $body .= "--{$this->boundary}\n"; - $body .= $req->toBatchString($key) . "\n"; + $body .= $req->toBatchString($key) . "\n\n"; $this->expected_classes["response-" . $key] = $req->getExpectedClass(); } - $body = rtrim($body); - $body .= "\n--{$this->boundary}--"; + $body .= "--{$this->boundary}--"; - $url = $this->base_path . '/batch'; + $url = $this->root_url . '/' . $this->batch_path; $httpRequest = new Google_Http_Request($url, 'POST'); $httpRequest->setRequestHeaders( array('Content-Type' => 'multipart/mixed; boundary=' . $this->boundary) diff --git a/lib/google/src/Google/Http/CacheParser.php b/lib/google/src/Google/Http/CacheParser.php index 298317c8205..a6167adc8f5 100644 --- a/lib/google/src/Google/Http/CacheParser.php +++ b/lib/google/src/Google/Http/CacheParser.php @@ -15,12 +15,13 @@ * limitations under the License. */ -require_once realpath(dirname(__FILE__) . '/../../../autoload.php'); +if (!class_exists('Google_Client')) { + require_once dirname(__FILE__) . '/../autoload.php'; +} /** * Implement the caching directives specified in rfc2616. This * implementation is guided by the guidance offered in rfc2616-sec13. - * @author Chirag Shah */ class Google_Http_CacheParser { diff --git a/lib/google/src/Google/Http/MediaFileUpload.php b/lib/google/src/Google/Http/MediaFileUpload.php index 87f37629341..e0192ae7417 100644 --- a/lib/google/src/Google/Http/MediaFileUpload.php +++ b/lib/google/src/Google/Http/MediaFileUpload.php @@ -15,11 +15,13 @@ * limitations under the License. */ -require_once realpath(dirname(__FILE__) . '/../../../autoload.php'); +if (!class_exists('Google_Client')) { + require_once dirname(__FILE__) . '/../autoload.php'; +} /** - * @author Chirag Shah - * + * Manage large file uploads, which may be media but can be any type + * of sizable data. */ class Google_Http_MediaFileUpload { @@ -285,7 +287,7 @@ class Google_Http_MediaFileUpload } $message = $code; $body = @json_decode($response->getResponseBody()); - if (!empty( $body->error->errors ) ) { + if (!empty($body->error->errors) ) { $message .= ': '; foreach ($body->error->errors as $error) { $message .= "{$error->domain}, {$error->message};"; @@ -297,4 +299,9 @@ class Google_Http_MediaFileUpload $this->client->getLogger()->error($error); throw new Google_Exception($error); } + + public function setChunkSize($chunkSize) + { + $this->chunkSize = $chunkSize; + } } diff --git a/lib/google/src/Google/Http/REST.php b/lib/google/src/Google/Http/REST.php index 6ac9f078eed..491c06846e6 100644 --- a/lib/google/src/Google/Http/REST.php +++ b/lib/google/src/Google/Http/REST.php @@ -15,16 +15,37 @@ * limitations under the License. */ -require_once realpath(dirname(__FILE__) . '/../../../autoload.php'); +if (!class_exists('Google_Client')) { + require_once dirname(__FILE__) . '/../autoload.php'; +} /** * This class implements the RESTful transport of apiServiceRequest()'s - * - * @author Chris Chabot - * @author Chirag Shah */ class Google_Http_REST { + /** + * Executes a Google_Http_Request and (if applicable) automatically retries + * when errors occur. + * + * @param Google_Client $client + * @param Google_Http_Request $req + * @return array decoded result + * @throws Google_Service_Exception on server side error (ie: not authenticated, + * invalid or malformed post body, invalid url) + */ + public static function execute(Google_Client $client, Google_Http_Request $req) + { + $runner = new Google_Task_Runner( + $client, + sprintf('%s %s', $req->getRequestMethod(), $req->getUrl()), + array(get_class(), 'doExecute'), + array($client, $req) + ); + + return $runner->run(); + } + /** * Executes a Google_Http_Request * @@ -34,7 +55,7 @@ class Google_Http_REST * @throws Google_Service_Exception on server side error (ie: not authenticated, * invalid or malformed post body, invalid url) */ - public static function execute(Google_Client $client, Google_Http_Request $req) + public static function doExecute(Google_Client $client, Google_Http_Request $req) { $httpRequest = $client->getIo()->makeRequest($req); $httpRequest->setExpectedClass($req->getExpectedClass()); @@ -74,17 +95,27 @@ class Google_Http_REST $errors = $decoded['error']['errors']; } + $map = null; if ($client) { $client->getLogger()->error( $err, array('code' => $code, 'errors' => $errors) ); + + $map = $client->getClassConfig( + 'Google_Service_Exception', + 'retry_map' + ); } - throw new Google_Service_Exception($err, $code, null, $errors); + throw new Google_Service_Exception($err, $code, null, $errors, $map); } // Only attempt to decode the response, if the response code wasn't (204) 'no content' if ($code != '204') { + if ($response->getExpectedRaw()) { + return $body; + } + $decoded = json_decode($body, true); if ($decoded === null || $decoded === "") { $error = "Invalid json in service response: $body"; @@ -125,10 +156,10 @@ class Google_Http_REST } else if ($paramSpec['location'] == 'query') { if (isset($paramSpec['repeated']) && is_array($paramSpec['value'])) { foreach ($paramSpec['value'] as $value) { - $queryVars[] = $paramName . '=' . rawurlencode($value); + $queryVars[] = $paramName . '=' . rawurlencode(rawurldecode($value)); } } else { - $queryVars[] = $paramName . '=' . rawurlencode($paramSpec['value']); + $queryVars[] = $paramName . '=' . rawurlencode(rawurldecode($paramSpec['value'])); } } } diff --git a/lib/google/src/Google/Http/Request.php b/lib/google/src/Google/Http/Request.php index 9811c146aff..c09a9d9cbcd 100644 --- a/lib/google/src/Google/Http/Request.php +++ b/lib/google/src/Google/Http/Request.php @@ -15,7 +15,9 @@ * limitations under the License. */ -require_once realpath(dirname(__FILE__) . '/../../../autoload.php'); +if (!class_exists('Google_Client')) { + require_once dirname(__FILE__) . '/../autoload.php'; +} /** * HTTP Request to be executed by IO classes. Upon execution, the @@ -49,6 +51,7 @@ class Google_Http_Request protected $responseBody; protected $expectedClass; + protected $expectedRaw = false; public $accessKey; @@ -80,7 +83,7 @@ class Google_Http_Request */ public function setBaseComponent($baseComponent) { - $this->baseComponent = $baseComponent; + $this->baseComponent = rtrim($baseComponent, '/'); } /** @@ -127,7 +130,7 @@ class Google_Http_Request return $this->queryParams; } - /** + /** * Set a new query parameter. * @param $key - string to set, does not need to be URL encoded * @param $value - string to set, does not need to be URL encoded @@ -188,6 +191,31 @@ class Google_Http_Request return $this->expectedClass; } + /** + * Enable expected raw response + */ + public function enableExpectedRaw() + { + $this->expectedRaw = true; + } + + /** + * Disable expected raw response + */ + public function disableExpectedRaw() + { + $this->expectedRaw = false; + } + + /** + * Expected raw response or not. + * @return boolean expected raw response + */ + public function getExpectedRaw() + { + return $this->expectedRaw; + } + /** * @param array $headers The HTTP response headers * to be normalized. @@ -413,7 +441,7 @@ class Google_Http_Request /** * Our own version of parse_str that allows for multiple variables - * with the same name. + * with the same name. * @param $string - the query string to parse */ private function parseQuery($string) @@ -437,7 +465,7 @@ class Google_Http_Request /** * A version of build query that allows for multiple - * duplicate keys. + * duplicate keys. * @param $parts array of key value pairs */ private function buildQuery($parts) @@ -455,7 +483,7 @@ class Google_Http_Request return implode('&', $return); } - /** + /** * If we're POSTing and have no body to send, we can send the query * parameters in there, which avoids length issues with longer query * params. diff --git a/lib/google/src/Google/IO/Abstract.php b/lib/google/src/Google/IO/Abstract.php index fc8edbe8782..34a3fc5cdf3 100644 --- a/lib/google/src/Google/IO/Abstract.php +++ b/lib/google/src/Google/IO/Abstract.php @@ -19,7 +19,9 @@ * Abstract IO base class */ -require_once realpath(dirname(__FILE__) . '/../../../autoload.php'); +if (!class_exists('Google_Client')) { + require_once dirname(__FILE__) . '/../autoload.php'; +} abstract class Google_IO_Abstract { @@ -30,6 +32,17 @@ abstract class Google_IO_Abstract "HTTP/1.1 200 Connection established\r\n\r\n", ); private static $ENTITY_HTTP_METHODS = array("POST" => null, "PUT" => null); + private static $HOP_BY_HOP = array( + 'connection' => true, + 'keep-alive' => true, + 'proxy-authenticate' => true, + 'proxy-authorization' => true, + 'te' => true, + 'trailers' => true, + 'transfer-encoding' => true, + 'upgrade' => true + ); + /** @var Google_Client */ protected $client; @@ -44,9 +57,10 @@ abstract class Google_IO_Abstract } /** - * Executes a Google_Http_Request and returns the resulting populated Google_Http_Request - * @param Google_Http_Request $request - * @return Google_Http_Request $request + * Executes a Google_Http_Request + * @param Google_Http_Request $request the http request to be executed + * @return array containing response headers, body, and http code + * @throws Google_IO_Exception on curl or IO error */ abstract public function executeRequest(Google_Http_Request $request); @@ -55,13 +69,13 @@ abstract class Google_IO_Abstract * @param $options */ abstract public function setOptions($options); - + /** * Set the maximum request time in seconds. * @param $timeout in seconds */ abstract public function setTimeout($timeout); - + /** * Get the maximum request time in seconds. * @return timeout in seconds @@ -96,12 +110,12 @@ abstract class Google_IO_Abstract return false; } - + /** * Execute an HTTP Request * - * @param Google_HttpRequest $request the http request to be executed - * @return Google_HttpRequest http request with the response http code, + * @param Google_Http_Request $request the http request to be executed + * @return Google_Http_Request http request with the response http code, * response headers and response body filled in * @throws Google_IO_Exception on curl or IO error */ @@ -128,7 +142,7 @@ abstract class Google_IO_Abstract } if (!isset($responseHeaders['Date']) && !isset($responseHeaders['date'])) { - $responseHeaders['Date'] = date("r"); + $responseHeaders['date'] = date("r"); } $request->setResponseHttpCode($respHttpCode); @@ -216,28 +230,24 @@ abstract class Google_IO_Abstract /** * Update a cached request, using the headers from the last response. - * @param Google_HttpRequest $cached A previously cached response. + * @param Google_Http_Request $cached A previously cached response. * @param mixed Associative array of response headers from the last request. */ protected function updateCachedRequest($cached, $responseHeaders) { - if (isset($responseHeaders['connection'])) { - $hopByHop = array_merge( - self::$HOP_BY_HOP, - explode( - ',', - $responseHeaders['connection'] + $hopByHop = self::$HOP_BY_HOP; + if (!empty($responseHeaders['connection'])) { + $connectionHeaders = array_map( + 'strtolower', + array_filter( + array_map('trim', explode(',', $responseHeaders['connection'])) ) ); - - $endToEnd = array(); - foreach ($hopByHop as $key) { - if (isset($responseHeaders[$key])) { - $endToEnd[$key] = $responseHeaders[$key]; - } - } - $cached->setResponseHeaders($endToEnd); + $hopByHop += array_fill_keys($connectionHeaders, true); } + + $endToEnd = array_diff_key($responseHeaders, $hopByHop); + $cached->setResponseHeaders($endToEnd); } /** @@ -320,7 +330,7 @@ abstract class Google_IO_Abstract // Times will have colons in - so we just want the first match. $header_parts = explode(': ', $header, 2); if (count($header_parts) == 2) { - $headers[$header_parts[0]] = $header_parts[1]; + $headers[strtolower($header_parts[0])] = $header_parts[1]; } } diff --git a/lib/google/src/Google/IO/Curl.php b/lib/google/src/Google/IO/Curl.php index 8bd67386946..7eb681e9f11 100644 --- a/lib/google/src/Google/IO/Curl.php +++ b/lib/google/src/Google/IO/Curl.php @@ -21,7 +21,9 @@ * @author Stuart Langley */ -require_once realpath(dirname(__FILE__) . '/../../../autoload.php'); +if (!class_exists('Google_Client')) { + require_once dirname(__FILE__) . '/../autoload.php'; +} class Google_IO_Curl extends Google_IO_Abstract { @@ -29,12 +31,23 @@ class Google_IO_Curl extends Google_IO_Abstract const NO_QUIRK_VERSION = 0x071E00; private $options = array(); + + public function __construct(Google_Client $client) + { + if (!extension_loaded('curl')) { + $error = 'The cURL IO handler requires the cURL extension to be enabled'; + $client->getLogger()->critical($error); + throw new Google_IO_Exception($error); + } + + parent::__construct($client); + } + /** * Execute an HTTP Request * - * @param Google_HttpRequest $request the http request to be executed - * @return Google_HttpRequest http request with the response http code, - * response headers and response body filled in + * @param Google_Http_Request $request the http request to be executed + * @return array containing response headers, body, and http code * @throws Google_IO_Exception on curl or IO error */ public function executeRequest(Google_Http_Request $request) @@ -68,7 +81,12 @@ class Google_IO_Curl extends Google_IO_Abstract if ($request->canGzip()) { curl_setopt($curl, CURLOPT_ENCODING, 'gzip,deflate'); } - + + $options = $this->client->getClassConfig('Google_IO_Curl', 'options'); + if (is_array($options)) { + $this->setOptions($options); + } + foreach ($this->options as $key => $var) { curl_setopt($curl, $key, $var); } @@ -90,9 +108,11 @@ class Google_IO_Curl extends Google_IO_Abstract $response = curl_exec($curl); if ($response === false) { $error = curl_error($curl); + $code = curl_errno($curl); + $map = $this->client->getClassConfig('Google_IO_Exception', 'retry_map'); $this->client->getLogger()->error('cURL ' . $error); - throw new Google_IO_Exception($error); + throw new Google_IO_Exception($error, $code, null, $map); } $headerSize = curl_getinfo($curl, CURLINFO_HEADER_SIZE); @@ -128,7 +148,7 @@ class Google_IO_Curl extends Google_IO_Abstract { // Since this timeout is really for putting a bound on the time // we'll set them both to the same. If you need to specify a longer - // CURLOPT_TIMEOUT, or a tigher CONNECTTIMEOUT, the best thing to + // CURLOPT_TIMEOUT, or a higher CONNECTTIMEOUT, the best thing to // do is use the setOptions method for the values individually. $this->options[CURLOPT_CONNECTTIMEOUT] = $timeout; $this->options[CURLOPT_TIMEOUT] = $timeout; diff --git a/lib/google/src/Google/IO/Exception.php b/lib/google/src/Google/IO/Exception.php index 98e9d255d26..da9342df389 100644 --- a/lib/google/src/Google/IO/Exception.php +++ b/lib/google/src/Google/IO/Exception.php @@ -15,8 +15,55 @@ * limitations under the License. */ -require_once realpath(dirname(__FILE__) . '/../../../autoload.php'); +if (!class_exists('Google_Client')) { + require_once dirname(__FILE__) . '/../autoload.php'; +} -class Google_IO_Exception extends Google_Exception +class Google_IO_Exception extends Google_Exception implements Google_Task_Retryable { + /** + * @var array $retryMap Map of errors with retry counts. + */ + private $retryMap = array(); + + /** + * Creates a new IO exception with an optional retry map. + * + * @param string $message + * @param int $code + * @param Exception|null $previous + * @param array|null $retryMap Map of errors with retry counts. + */ + public function __construct( + $message, + $code = 0, + Exception $previous = null, + array $retryMap = null + ) { + if (version_compare(PHP_VERSION, '5.3.0') >= 0) { + parent::__construct($message, $code, $previous); + } else { + parent::__construct($message, $code); + } + + if (is_array($retryMap)) { + $this->retryMap = $retryMap; + } + } + + /** + * Gets the number of times the associated task can be retried. + * + * NOTE: -1 is returned if the task can be retried indefinitely + * + * @return integer + */ + public function allowedRetries() + { + if (isset($this->retryMap[$this->code])) { + return $this->retryMap[$this->code]; + } + + return 0; + } } diff --git a/lib/google/src/Google/IO/Stream.php b/lib/google/src/Google/IO/Stream.php index 35f9d903cf6..e79da102afe 100644 --- a/lib/google/src/Google/IO/Stream.php +++ b/lib/google/src/Google/IO/Stream.php @@ -21,7 +21,9 @@ * @author Stuart Langley */ -require_once realpath(dirname(__FILE__) . '/../../../autoload.php'); +if (!class_exists('Google_Client')) { + require_once dirname(__FILE__) . '/../autoload.php'; +} class Google_IO_Stream extends Google_IO_Abstract { @@ -40,12 +42,23 @@ class Google_IO_Stream extends Google_IO_Abstract "verify_peer" => true, ); + public function __construct(Google_Client $client) + { + if (!ini_get('allow_url_fopen')) { + $error = 'The stream IO handler requires the allow_url_fopen runtime ' . + 'configuration to be enabled'; + $client->getLogger()->critical($error); + throw new Google_IO_Exception($error); + } + + parent::__construct($client); + } + /** * Execute an HTTP Request * - * @param Google_HttpRequest $request the http request to be executed - * @return Google_HttpRequest http request with the response http code, - * response headers and response body filled in + * @param Google_Http_Request $request the http request to be executed + * @return array containing response headers, body, and http code * @throws Google_IO_Exception on curl or IO error */ public function executeRequest(Google_Http_Request $request) diff --git a/lib/google/src/Google/Logger/Abstract.php b/lib/google/src/Google/Logger/Abstract.php index 571918c582f..d759b95792a 100644 --- a/lib/google/src/Google/Logger/Abstract.php +++ b/lib/google/src/Google/Logger/Abstract.php @@ -15,7 +15,9 @@ * limitations under the License. */ -require_once realpath(dirname(__FILE__) . '/../../../autoload.php'); +if (!class_exists('Google_Client')) { + require_once dirname(__FILE__) . '/../autoload.php'; +} /** * Abstract logging class based on the PSR-3 standard. diff --git a/lib/google/src/Google/Logger/Exception.php b/lib/google/src/Google/Logger/Exception.php index 7c828e65a21..6b0e8737030 100644 --- a/lib/google/src/Google/Logger/Exception.php +++ b/lib/google/src/Google/Logger/Exception.php @@ -15,7 +15,9 @@ * limitations under the License. */ -require_once realpath(dirname(__FILE__) . '/../../../autoload.php'); +if (!class_exists('Google_Client')) { + require_once dirname(__FILE__) . '/../autoload.php'; +} class Google_Logger_Exception extends Google_Exception { diff --git a/lib/google/src/Google/Logger/File.php b/lib/google/src/Google/Logger/File.php index f337471a57c..78d7619356e 100644 --- a/lib/google/src/Google/Logger/File.php +++ b/lib/google/src/Google/Logger/File.php @@ -15,7 +15,9 @@ * limitations under the License. */ -require_once realpath(dirname(__FILE__) . '/../../../autoload.php'); +if (!class_exists('Google_Client')) { + require_once dirname(__FILE__) . '/../autoload.php'; +} /** * File logging class based on the PSR-3 standard. diff --git a/lib/google/src/Google/Logger/Null.php b/lib/google/src/Google/Logger/Null.php index 9c5f64a23e3..62fa890c06f 100644 --- a/lib/google/src/Google/Logger/Null.php +++ b/lib/google/src/Google/Logger/Null.php @@ -15,7 +15,9 @@ * limitations under the License. */ -require_once realpath(dirname(__FILE__) . '/../../../autoload.php'); +if (!class_exists('Google_Client')) { + require_once dirname(__FILE__) . '/../autoload.php'; +} /** * Null logger based on the PSR-3 standard. diff --git a/lib/google/src/Google/Logger/Psr.php b/lib/google/src/Google/Logger/Psr.php index d5772440d6d..20104e47fd2 100644 --- a/lib/google/src/Google/Logger/Psr.php +++ b/lib/google/src/Google/Logger/Psr.php @@ -15,7 +15,9 @@ * limitations under the License. */ -require_once realpath(dirname(__FILE__) . '/../../../autoload.php'); +if (!class_exists('Google_Client')) { + require_once dirname(__FILE__) . '/../autoload.php'; +} /** * Psr logging class based on the PSR-3 standard. diff --git a/lib/google/src/Google/Model.php b/lib/google/src/Google/Model.php index 52e30d67c78..df8216a80ed 100644 --- a/lib/google/src/Google/Model.php +++ b/lib/google/src/Google/Model.php @@ -20,11 +20,14 @@ * from a given json schema. * http://tools.ietf.org/html/draft-zyp-json-schema-03#section-5 * - * @author Chirag Shah - * */ class Google_Model implements ArrayAccess { + /** + * If you need to specify a NULL JSON value, use Google_Model::NULL_VALUE + * instead - it will be replaced when converting to JSON with a real null. + */ + const NULL_VALUE = "{}gapi-php-null"; protected $internal_gapi_mappings = array(); protected $modelData = array(); protected $processed = array(); @@ -93,7 +96,7 @@ class Google_Model implements ArrayAccess */ protected function mapTypes($array) { - // Hard initilise simple types, lazy load more complex ones. + // Hard initialise simple types, lazy load more complex ones. foreach ($array as $key => $val) { if ( !property_exists($this, $this->keyType($key)) && property_exists($this, $key)) { @@ -132,7 +135,7 @@ class Google_Model implements ArrayAccess foreach ($this->modelData as $key => $val) { $result = $this->getSimpleValue($val); if ($result !== null) { - $object->$key = $result; + $object->$key = $this->nullPlaceholderCheck($result); } } @@ -144,7 +147,7 @@ class Google_Model implements ArrayAccess $result = $this->getSimpleValue($this->$name); if ($result !== null) { $name = $this->getMappedName($name); - $object->$name = $result; + $object->$name = $this->nullPlaceholderCheck($result); } } @@ -165,13 +168,24 @@ class Google_Model implements ArrayAccess $a_value = $this->getSimpleValue($a_value); if ($a_value !== null) { $key = $this->getMappedName($key); - $return[$key] = $a_value; + $return[$key] = $this->nullPlaceholderCheck($a_value); } } return $return; } return $value; } + + /** + * Check whether the value is the null placeholder and return true null. + */ + private function nullPlaceholderCheck($value) + { + if ($value === self::NULL_VALUE) { + return null; + } + return $value; + } /** * If there is an internal name mapping, use that. diff --git a/lib/google/src/Google/Service.php b/lib/google/src/Google/Service.php index 2e0b6c52282..d3fd3b49d1c 100644 --- a/lib/google/src/Google/Service.php +++ b/lib/google/src/Google/Service.php @@ -17,6 +17,8 @@ class Google_Service { + public $batchPath; + public $rootUrl; public $version; public $servicePath; public $availableScopes; @@ -36,4 +38,19 @@ class Google_Service { return $this->client; } + + /** + * Create a new HTTP Batch handler for this service + * + * @return Google_Http_Batch + */ + public function createBatch() + { + return new Google_Http_Batch( + $this->client, + false, + $this->rootUrl, + $this->batchPath + ); + } } diff --git a/lib/google/src/Google/Service/AdExchangeBuyer.php b/lib/google/src/Google/Service/AdExchangeBuyer.php index 115e3082534..8a607f8b1ab 100644 --- a/lib/google/src/Google/Service/AdExchangeBuyer.php +++ b/lib/google/src/Google/Service/AdExchangeBuyer.php @@ -37,6 +37,7 @@ class Google_Service_AdExchangeBuyer extends Google_Service public $accounts; public $billingInfo; + public $budget; public $creatives; public $directDeals; public $performanceReport; @@ -51,6 +52,7 @@ class Google_Service_AdExchangeBuyer extends Google_Service public function __construct(Google_Client $client) { parent::__construct($client); + $this->rootUrl = 'https://www.googleapis.com/'; $this->servicePath = 'adexchangebuyer/v1.3/'; $this->version = 'v1.3'; $this->serviceName = 'adexchangebuyer'; @@ -123,6 +125,61 @@ class Google_Service_AdExchangeBuyer extends Google_Service ) ) ); + $this->budget = new Google_Service_AdExchangeBuyer_Budget_Resource( + $this, + $this->serviceName, + 'budget', + array( + 'methods' => array( + 'get' => array( + 'path' => 'billinginfo/{accountId}/{billingId}', + 'httpMethod' => 'GET', + 'parameters' => array( + 'accountId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'billingId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ),'patch' => array( + 'path' => 'billinginfo/{accountId}/{billingId}', + 'httpMethod' => 'PATCH', + 'parameters' => array( + 'accountId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'billingId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ),'update' => array( + 'path' => 'billinginfo/{accountId}/{billingId}', + 'httpMethod' => 'PUT', + 'parameters' => array( + 'accountId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'billingId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ), + ) + ) + ); $this->creatives = new Google_Service_AdExchangeBuyer_Creatives_Resource( $this, $this->serviceName, @@ -446,6 +503,74 @@ class Google_Service_AdExchangeBuyer_BillingInfo_Resource extends Google_Service } } +/** + * The "budget" collection of methods. + * Typical usage is: + * + * $adexchangebuyerService = new Google_Service_AdExchangeBuyer(...); + * $budget = $adexchangebuyerService->budget; + * + */ +class Google_Service_AdExchangeBuyer_Budget_Resource extends Google_Service_Resource +{ + + /** + * Returns the budget information for the adgroup specified by the accountId and + * billingId. (budget.get) + * + * @param string $accountId The account id to get the budget information for. + * @param string $billingId The billing id to get the budget information for. + * @param array $optParams Optional parameters. + * @return Google_Service_AdExchangeBuyer_Budget + */ + public function get($accountId, $billingId, $optParams = array()) + { + $params = array('accountId' => $accountId, 'billingId' => $billingId); + $params = array_merge($params, $optParams); + return $this->call('get', array($params), "Google_Service_AdExchangeBuyer_Budget"); + } + + /** + * Updates the budget amount for the budget of the adgroup specified by the + * accountId and billingId, with the budget amount in the request. This method + * supports patch semantics. (budget.patch) + * + * @param string $accountId The account id associated with the budget being + * updated. + * @param string $billingId The billing id associated with the budget being + * updated. + * @param Google_Budget $postBody + * @param array $optParams Optional parameters. + * @return Google_Service_AdExchangeBuyer_Budget + */ + public function patch($accountId, $billingId, Google_Service_AdExchangeBuyer_Budget $postBody, $optParams = array()) + { + $params = array('accountId' => $accountId, 'billingId' => $billingId, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('patch', array($params), "Google_Service_AdExchangeBuyer_Budget"); + } + + /** + * Updates the budget amount for the budget of the adgroup specified by the + * accountId and billingId, with the budget amount in the request. + * (budget.update) + * + * @param string $accountId The account id associated with the budget being + * updated. + * @param string $billingId The billing id associated with the budget being + * updated. + * @param Google_Budget $postBody + * @param array $optParams Optional parameters. + * @return Google_Service_AdExchangeBuyer_Budget + */ + public function update($accountId, $billingId, Google_Service_AdExchangeBuyer_Budget $postBody, $optParams = array()) + { + $params = array('accountId' => $accountId, 'billingId' => $billingId, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('update', array($params), "Google_Service_AdExchangeBuyer_Budget"); + } +} + /** * The "creatives" collection of methods. * Typical usage is: @@ -920,6 +1045,68 @@ class Google_Service_AdExchangeBuyer_BillingInfoList extends Google_Collection } } +class Google_Service_AdExchangeBuyer_Budget extends Google_Model +{ + protected $internal_gapi_mappings = array( + ); + public $accountId; + public $billingId; + public $budgetAmount; + public $currencyCode; + public $id; + public $kind; + + + public function setAccountId($accountId) + { + $this->accountId = $accountId; + } + public function getAccountId() + { + return $this->accountId; + } + public function setBillingId($billingId) + { + $this->billingId = $billingId; + } + public function getBillingId() + { + return $this->billingId; + } + public function setBudgetAmount($budgetAmount) + { + $this->budgetAmount = $budgetAmount; + } + public function getBudgetAmount() + { + return $this->budgetAmount; + } + public function setCurrencyCode($currencyCode) + { + $this->currencyCode = $currencyCode; + } + public function getCurrencyCode() + { + return $this->currencyCode; + } + public function setId($id) + { + $this->id = $id; + } + public function getId() + { + return $this->id; + } + public function setKind($kind) + { + $this->kind = $kind; + } + public function getKind() + { + return $this->kind; + } +} + class Google_Service_AdExchangeBuyer_Creative extends Google_Collection { protected $collection_key = 'vendorType'; @@ -1407,10 +1594,14 @@ class Google_Service_AdExchangeBuyer_PerformanceReport extends Google_Collection protected $collection_key = 'hostedMatchStatusRate'; protected $internal_gapi_mappings = array( ); + public $bidRate; + public $bidRequestRate; public $calloutStatusRate; public $cookieMatcherStatusRate; public $creativeStatusRate; + public $filteredBidRate; public $hostedMatchStatusRate; + public $inventoryMatchRate; public $kind; public $latency50thPercentile; public $latency85thPercentile; @@ -1422,9 +1613,27 @@ class Google_Service_AdExchangeBuyer_PerformanceReport extends Google_Collection public $quotaConfiguredLimit; public $quotaThrottledLimit; public $region; + public $successfulRequestRate; public $timestamp; + public $unsuccessfulRequestRate; + public function setBidRate($bidRate) + { + $this->bidRate = $bidRate; + } + public function getBidRate() + { + return $this->bidRate; + } + public function setBidRequestRate($bidRequestRate) + { + $this->bidRequestRate = $bidRequestRate; + } + public function getBidRequestRate() + { + return $this->bidRequestRate; + } public function setCalloutStatusRate($calloutStatusRate) { $this->calloutStatusRate = $calloutStatusRate; @@ -1449,6 +1658,14 @@ class Google_Service_AdExchangeBuyer_PerformanceReport extends Google_Collection { return $this->creativeStatusRate; } + public function setFilteredBidRate($filteredBidRate) + { + $this->filteredBidRate = $filteredBidRate; + } + public function getFilteredBidRate() + { + return $this->filteredBidRate; + } public function setHostedMatchStatusRate($hostedMatchStatusRate) { $this->hostedMatchStatusRate = $hostedMatchStatusRate; @@ -1457,6 +1674,14 @@ class Google_Service_AdExchangeBuyer_PerformanceReport extends Google_Collection { return $this->hostedMatchStatusRate; } + public function setInventoryMatchRate($inventoryMatchRate) + { + $this->inventoryMatchRate = $inventoryMatchRate; + } + public function getInventoryMatchRate() + { + return $this->inventoryMatchRate; + } public function setKind($kind) { $this->kind = $kind; @@ -1545,6 +1770,14 @@ class Google_Service_AdExchangeBuyer_PerformanceReport extends Google_Collection { return $this->region; } + public function setSuccessfulRequestRate($successfulRequestRate) + { + $this->successfulRequestRate = $successfulRequestRate; + } + public function getSuccessfulRequestRate() + { + return $this->successfulRequestRate; + } public function setTimestamp($timestamp) { $this->timestamp = $timestamp; @@ -1553,6 +1786,14 @@ class Google_Service_AdExchangeBuyer_PerformanceReport extends Google_Collection { return $this->timestamp; } + public function setUnsuccessfulRequestRate($unsuccessfulRequestRate) + { + $this->unsuccessfulRequestRate = $unsuccessfulRequestRate; + } + public function getUnsuccessfulRequestRate() + { + return $this->unsuccessfulRequestRate; + } } class Google_Service_AdExchangeBuyer_PerformanceReportList extends Google_Collection diff --git a/lib/google/src/Google/Service/AdExchangeSeller.php b/lib/google/src/Google/Service/AdExchangeSeller.php index 2be68865c01..d48dbaf6cd1 100644 --- a/lib/google/src/Google/Service/AdExchangeSeller.php +++ b/lib/google/src/Google/Service/AdExchangeSeller.php @@ -58,6 +58,7 @@ class Google_Service_AdExchangeSeller extends Google_Service public function __construct(Google_Client $client) { parent::__construct($client); + $this->rootUrl = 'https://www.googleapis.com/'; $this->servicePath = 'adexchangeseller/v2.0/'; $this->version = 'v2.0'; $this->serviceName = 'adexchangeseller'; diff --git a/lib/google/src/Google/Service/AdSense.php b/lib/google/src/Google/Service/AdSense.php index 04b4d366866..8e36a132f38 100644 --- a/lib/google/src/Google/Service/AdSense.php +++ b/lib/google/src/Google/Service/AdSense.php @@ -73,6 +73,7 @@ class Google_Service_AdSense extends Google_Service public function __construct(Google_Client $client) { parent::__construct($client); + $this->rootUrl = 'https://www.googleapis.com/'; $this->servicePath = 'adsense/v1.4/'; $this->version = 'v1.4'; $this->serviceName = 'adsense'; diff --git a/lib/google/src/Google/Service/AdSenseHost.php b/lib/google/src/Google/Service/AdSenseHost.php index cf9e353c1b9..101eab2255c 100644 --- a/lib/google/src/Google/Service/AdSenseHost.php +++ b/lib/google/src/Google/Service/AdSenseHost.php @@ -54,6 +54,7 @@ class Google_Service_AdSenseHost extends Google_Service public function __construct(Google_Client $client) { parent::__construct($client); + $this->rootUrl = 'https://www.googleapis.com/'; $this->servicePath = 'adsensehost/v4.1/'; $this->version = 'v4.1'; $this->serviceName = 'adsensehost'; diff --git a/lib/google/src/Google/Service/Admin.php b/lib/google/src/Google/Service/Admin.php index 05807f2a1bd..3ed74997392 100644 --- a/lib/google/src/Google/Service/Admin.php +++ b/lib/google/src/Google/Service/Admin.php @@ -45,6 +45,7 @@ class Google_Service_Admin extends Google_Service public function __construct(Google_Client $client) { parent::__construct($client); + $this->rootUrl = 'https://www.googleapis.com/'; $this->servicePath = 'email/v2/users/'; $this->version = 'email_migration_v2'; $this->serviceName = 'admin'; diff --git a/lib/google/src/Google/Service/Analytics.php b/lib/google/src/Google/Service/Analytics.php index 8e6307c8287..954ca0f08f3 100644 --- a/lib/google/src/Google/Service/Analytics.php +++ b/lib/google/src/Google/Service/Analytics.php @@ -56,7 +56,8 @@ class Google_Service_Analytics extends Google_Service public $management_accountUserLinks; public $management_accounts; public $management_customDataSources; - public $management_dailyUploads; + public $management_customDimensions; + public $management_customMetrics; public $management_experiments; public $management_filters; public $management_goals; @@ -81,6 +82,7 @@ class Google_Service_Analytics extends Google_Service public function __construct(Google_Client $client) { parent::__construct($client); + $this->rootUrl = 'https://www.googleapis.com/'; $this->servicePath = 'analytics/v3/'; $this->version = 'v3'; $this->serviceName = 'analytics'; @@ -399,44 +401,14 @@ class Google_Service_Analytics extends Google_Service ) ) ); - $this->management_dailyUploads = new Google_Service_Analytics_ManagementDailyUploads_Resource( + $this->management_customDimensions = new Google_Service_Analytics_ManagementCustomDimensions_Resource( $this, $this->serviceName, - 'dailyUploads', + 'customDimensions', array( 'methods' => array( - 'delete' => array( - 'path' => 'management/accounts/{accountId}/webproperties/{webPropertyId}/customDataSources/{customDataSourceId}/dailyUploads/{date}', - 'httpMethod' => 'DELETE', - 'parameters' => array( - 'accountId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'webPropertyId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'customDataSourceId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'date' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'type' => array( - 'location' => 'query', - 'type' => 'string', - 'required' => true, - ), - ), - ),'list' => array( - 'path' => 'management/accounts/{accountId}/webproperties/{webPropertyId}/customDataSources/{customDataSourceId}/dailyUploads', + 'get' => array( + 'path' => 'management/accounts/{accountId}/webproperties/{webPropertyId}/customDimensions/{customDimensionId}', 'httpMethod' => 'GET', 'parameters' => array( 'accountId' => array( @@ -449,32 +421,14 @@ class Google_Service_Analytics extends Google_Service 'type' => 'string', 'required' => true, ), - 'customDataSourceId' => array( + 'customDimensionId' => array( 'location' => 'path', 'type' => 'string', 'required' => true, ), - 'start-date' => array( - 'location' => 'query', - 'type' => 'string', - 'required' => true, - ), - 'end-date' => array( - 'location' => 'query', - 'type' => 'string', - 'required' => true, - ), - 'max-results' => array( - 'location' => 'query', - 'type' => 'integer', - ), - 'start-index' => array( - 'location' => 'query', - 'type' => 'integer', - ), ), - ),'upload' => array( - 'path' => 'management/accounts/{accountId}/webproperties/{webPropertyId}/customDataSources/{customDataSourceId}/dailyUploads/{date}/uploads', + ),'insert' => array( + 'path' => 'management/accounts/{accountId}/webproperties/{webPropertyId}/customDimensions', 'httpMethod' => 'POST', 'parameters' => array( 'accountId' => array( @@ -487,27 +441,190 @@ class Google_Service_Analytics extends Google_Service 'type' => 'string', 'required' => true, ), - 'customDataSourceId' => array( + ), + ),'list' => array( + 'path' => 'management/accounts/{accountId}/webproperties/{webPropertyId}/customDimensions', + 'httpMethod' => 'GET', + 'parameters' => array( + 'accountId' => array( 'location' => 'path', 'type' => 'string', 'required' => true, ), - 'date' => array( + 'webPropertyId' => array( 'location' => 'path', 'type' => 'string', 'required' => true, ), - 'appendNumber' => array( + 'max-results' => array( 'location' => 'query', 'type' => 'integer', - 'required' => true, ), - 'type' => array( + 'start-index' => array( 'location' => 'query', + 'type' => 'integer', + ), + ), + ),'patch' => array( + 'path' => 'management/accounts/{accountId}/webproperties/{webPropertyId}/customDimensions/{customDimensionId}', + 'httpMethod' => 'PATCH', + 'parameters' => array( + 'accountId' => array( + 'location' => 'path', 'type' => 'string', 'required' => true, ), - 'reset' => array( + 'webPropertyId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'customDimensionId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'ignoreCustomDataSourceLinks' => array( + 'location' => 'query', + 'type' => 'boolean', + ), + ), + ),'update' => array( + 'path' => 'management/accounts/{accountId}/webproperties/{webPropertyId}/customDimensions/{customDimensionId}', + 'httpMethod' => 'PUT', + 'parameters' => array( + 'accountId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'webPropertyId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'customDimensionId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'ignoreCustomDataSourceLinks' => array( + 'location' => 'query', + 'type' => 'boolean', + ), + ), + ), + ) + ) + ); + $this->management_customMetrics = new Google_Service_Analytics_ManagementCustomMetrics_Resource( + $this, + $this->serviceName, + 'customMetrics', + array( + 'methods' => array( + 'get' => array( + 'path' => 'management/accounts/{accountId}/webproperties/{webPropertyId}/customMetrics/{customMetricId}', + 'httpMethod' => 'GET', + 'parameters' => array( + 'accountId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'webPropertyId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'customMetricId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ),'insert' => array( + 'path' => 'management/accounts/{accountId}/webproperties/{webPropertyId}/customMetrics', + 'httpMethod' => 'POST', + 'parameters' => array( + 'accountId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'webPropertyId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ),'list' => array( + 'path' => 'management/accounts/{accountId}/webproperties/{webPropertyId}/customMetrics', + 'httpMethod' => 'GET', + 'parameters' => array( + 'accountId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'webPropertyId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'max-results' => array( + 'location' => 'query', + 'type' => 'integer', + ), + 'start-index' => array( + 'location' => 'query', + 'type' => 'integer', + ), + ), + ),'patch' => array( + 'path' => 'management/accounts/{accountId}/webproperties/{webPropertyId}/customMetrics/{customMetricId}', + 'httpMethod' => 'PATCH', + 'parameters' => array( + 'accountId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'webPropertyId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'customMetricId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'ignoreCustomDataSourceLinks' => array( + 'location' => 'query', + 'type' => 'boolean', + ), + ), + ),'update' => array( + 'path' => 'management/accounts/{accountId}/webproperties/{webPropertyId}/customMetrics/{customMetricId}', + 'httpMethod' => 'PUT', + 'parameters' => array( + 'accountId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'webPropertyId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'customMetricId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'ignoreCustomDataSourceLinks' => array( 'location' => 'query', 'type' => 'boolean', ), @@ -1484,26 +1601,6 @@ class Google_Service_Analytics extends Google_Service 'type' => 'integer', ), ), - ),'migrateDataImport' => array( - 'path' => 'management/accounts/{accountId}/webproperties/{webPropertyId}/customDataSources/{customDataSourceId}/migrateDataImport', - 'httpMethod' => 'POST', - 'parameters' => array( - 'accountId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'webPropertyId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'customDataSourceId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), ),'uploadData' => array( 'path' => 'management/accounts/{accountId}/webproperties/{webPropertyId}/customDataSources/{customDataSourceId}/uploads', 'httpMethod' => 'POST', @@ -2198,85 +2295,229 @@ class Google_Service_Analytics_ManagementCustomDataSources_Resource extends Goog } } /** - * The "dailyUploads" collection of methods. + * The "customDimensions" collection of methods. * Typical usage is: * * $analyticsService = new Google_Service_Analytics(...); - * $dailyUploads = $analyticsService->dailyUploads; + * $customDimensions = $analyticsService->customDimensions; * */ -class Google_Service_Analytics_ManagementDailyUploads_Resource extends Google_Service_Resource +class Google_Service_Analytics_ManagementCustomDimensions_Resource extends Google_Service_Resource { /** - * Delete uploaded data for the given date. (dailyUploads.delete) + * Get a custom dimension to which the user has access. (customDimensions.get) * - * @param string $accountId Account Id associated with daily upload delete. - * @param string $webPropertyId Web property Id associated with daily upload - * delete. - * @param string $customDataSourceId Custom data source Id associated with daily - * upload delete. - * @param string $date Date for which data is to be deleted. Date should be - * formatted as YYYY-MM-DD. - * @param string $type Type of data for this delete. + * @param string $accountId Account ID for the custom dimension to retrieve. + * @param string $webPropertyId Web property ID for the custom dimension to + * retrieve. + * @param string $customDimensionId The ID of the custom dimension to retrieve. * @param array $optParams Optional parameters. + * @return Google_Service_Analytics_CustomDimension */ - public function delete($accountId, $webPropertyId, $customDataSourceId, $date, $type, $optParams = array()) + public function get($accountId, $webPropertyId, $customDimensionId, $optParams = array()) { - $params = array('accountId' => $accountId, 'webPropertyId' => $webPropertyId, 'customDataSourceId' => $customDataSourceId, 'date' => $date, 'type' => $type); + $params = array('accountId' => $accountId, 'webPropertyId' => $webPropertyId, 'customDimensionId' => $customDimensionId); $params = array_merge($params, $optParams); - return $this->call('delete', array($params)); + return $this->call('get', array($params), "Google_Service_Analytics_CustomDimension"); } /** - * List daily uploads to which the user has access. - * (dailyUploads.listManagementDailyUploads) + * Create a new custom dimension. (customDimensions.insert) * - * @param string $accountId Account Id for the daily uploads to retrieve. - * @param string $webPropertyId Web property Id for the daily uploads to - * retrieve. - * @param string $customDataSourceId Custom data source Id for daily uploads to - * retrieve. - * @param string $startDate Start date of the form YYYY-MM-DD. - * @param string $endDate End date of the form YYYY-MM-DD. + * @param string $accountId Account ID for the custom dimension to create. + * @param string $webPropertyId Web property ID for the custom dimension to + * create. + * @param Google_CustomDimension $postBody * @param array $optParams Optional parameters. - * - * @opt_param int max-results The maximum number of custom data sources to - * include in this response. - * @opt_param int start-index A 1-based index of the first daily upload to - * retrieve. Use this parameter as a pagination mechanism along with the max- - * results parameter. - * @return Google_Service_Analytics_DailyUploads + * @return Google_Service_Analytics_CustomDimension */ - public function listManagementDailyUploads($accountId, $webPropertyId, $customDataSourceId, $startDate, $endDate, $optParams = array()) + public function insert($accountId, $webPropertyId, Google_Service_Analytics_CustomDimension $postBody, $optParams = array()) { - $params = array('accountId' => $accountId, 'webPropertyId' => $webPropertyId, 'customDataSourceId' => $customDataSourceId, 'start-date' => $startDate, 'end-date' => $endDate); + $params = array('accountId' => $accountId, 'webPropertyId' => $webPropertyId, 'postBody' => $postBody); $params = array_merge($params, $optParams); - return $this->call('list', array($params), "Google_Service_Analytics_DailyUploads"); + return $this->call('insert', array($params), "Google_Service_Analytics_CustomDimension"); } /** - * Update/Overwrite data for a custom data source. (dailyUploads.upload) + * Lists custom dimensions to which the user has access. + * (customDimensions.listManagementCustomDimensions) * - * @param string $accountId Account Id associated with daily upload. - * @param string $webPropertyId Web property Id associated with daily upload. - * @param string $customDataSourceId Custom data source Id to which the data - * being uploaded belongs. - * @param string $date Date for which data is uploaded. Date should be formatted - * as YYYY-MM-DD. - * @param int $appendNumber Append number for this upload indexed from 1. - * @param string $type Type of data for this upload. + * @param string $accountId Account ID for the custom dimensions to retrieve. + * @param string $webPropertyId Web property ID for the custom dimensions to + * retrieve. * @param array $optParams Optional parameters. * - * @opt_param bool reset Reset/Overwrite all previous appends for this date and - * start over with this file as the first upload. - * @return Google_Service_Analytics_DailyUploadAppend + * @opt_param int max-results The maximum number of custom dimensions to include + * in this response. + * @opt_param int start-index An index of the first entity to retrieve. Use this + * parameter as a pagination mechanism along with the max-results parameter. + * @return Google_Service_Analytics_CustomDimensions */ - public function upload($accountId, $webPropertyId, $customDataSourceId, $date, $appendNumber, $type, $optParams = array()) + public function listManagementCustomDimensions($accountId, $webPropertyId, $optParams = array()) { - $params = array('accountId' => $accountId, 'webPropertyId' => $webPropertyId, 'customDataSourceId' => $customDataSourceId, 'date' => $date, 'appendNumber' => $appendNumber, 'type' => $type); + $params = array('accountId' => $accountId, 'webPropertyId' => $webPropertyId); $params = array_merge($params, $optParams); - return $this->call('upload', array($params), "Google_Service_Analytics_DailyUploadAppend"); + return $this->call('list', array($params), "Google_Service_Analytics_CustomDimensions"); + } + + /** + * Updates an existing custom dimension. This method supports patch semantics. + * (customDimensions.patch) + * + * @param string $accountId Account ID for the custom dimension to update. + * @param string $webPropertyId Web property ID for the custom dimension to + * update. + * @param string $customDimensionId Custom dimension ID for the custom dimension + * to update. + * @param Google_CustomDimension $postBody + * @param array $optParams Optional parameters. + * + * @opt_param bool ignoreCustomDataSourceLinks Force the update and ignore any + * warnings related to the custom dimension being linked to a custom data source + * / data set. + * @return Google_Service_Analytics_CustomDimension + */ + public function patch($accountId, $webPropertyId, $customDimensionId, Google_Service_Analytics_CustomDimension $postBody, $optParams = array()) + { + $params = array('accountId' => $accountId, 'webPropertyId' => $webPropertyId, 'customDimensionId' => $customDimensionId, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('patch', array($params), "Google_Service_Analytics_CustomDimension"); + } + + /** + * Updates an existing custom dimension. (customDimensions.update) + * + * @param string $accountId Account ID for the custom dimension to update. + * @param string $webPropertyId Web property ID for the custom dimension to + * update. + * @param string $customDimensionId Custom dimension ID for the custom dimension + * to update. + * @param Google_CustomDimension $postBody + * @param array $optParams Optional parameters. + * + * @opt_param bool ignoreCustomDataSourceLinks Force the update and ignore any + * warnings related to the custom dimension being linked to a custom data source + * / data set. + * @return Google_Service_Analytics_CustomDimension + */ + public function update($accountId, $webPropertyId, $customDimensionId, Google_Service_Analytics_CustomDimension $postBody, $optParams = array()) + { + $params = array('accountId' => $accountId, 'webPropertyId' => $webPropertyId, 'customDimensionId' => $customDimensionId, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('update', array($params), "Google_Service_Analytics_CustomDimension"); + } +} +/** + * The "customMetrics" collection of methods. + * Typical usage is: + * + * $analyticsService = new Google_Service_Analytics(...); + * $customMetrics = $analyticsService->customMetrics; + * + */ +class Google_Service_Analytics_ManagementCustomMetrics_Resource extends Google_Service_Resource +{ + + /** + * Get a custom metric to which the user has access. (customMetrics.get) + * + * @param string $accountId Account ID for the custom metric to retrieve. + * @param string $webPropertyId Web property ID for the custom metric to + * retrieve. + * @param string $customMetricId The ID of the custom metric to retrieve. + * @param array $optParams Optional parameters. + * @return Google_Service_Analytics_CustomMetric + */ + public function get($accountId, $webPropertyId, $customMetricId, $optParams = array()) + { + $params = array('accountId' => $accountId, 'webPropertyId' => $webPropertyId, 'customMetricId' => $customMetricId); + $params = array_merge($params, $optParams); + return $this->call('get', array($params), "Google_Service_Analytics_CustomMetric"); + } + + /** + * Create a new custom metric. (customMetrics.insert) + * + * @param string $accountId Account ID for the custom metric to create. + * @param string $webPropertyId Web property ID for the custom dimension to + * create. + * @param Google_CustomMetric $postBody + * @param array $optParams Optional parameters. + * @return Google_Service_Analytics_CustomMetric + */ + public function insert($accountId, $webPropertyId, Google_Service_Analytics_CustomMetric $postBody, $optParams = array()) + { + $params = array('accountId' => $accountId, 'webPropertyId' => $webPropertyId, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('insert', array($params), "Google_Service_Analytics_CustomMetric"); + } + + /** + * Lists custom metrics to which the user has access. + * (customMetrics.listManagementCustomMetrics) + * + * @param string $accountId Account ID for the custom metrics to retrieve. + * @param string $webPropertyId Web property ID for the custom metrics to + * retrieve. + * @param array $optParams Optional parameters. + * + * @opt_param int max-results The maximum number of custom metrics to include in + * this response. + * @opt_param int start-index An index of the first entity to retrieve. Use this + * parameter as a pagination mechanism along with the max-results parameter. + * @return Google_Service_Analytics_CustomMetrics + */ + public function listManagementCustomMetrics($accountId, $webPropertyId, $optParams = array()) + { + $params = array('accountId' => $accountId, 'webPropertyId' => $webPropertyId); + $params = array_merge($params, $optParams); + return $this->call('list', array($params), "Google_Service_Analytics_CustomMetrics"); + } + + /** + * Updates an existing custom metric. This method supports patch semantics. + * (customMetrics.patch) + * + * @param string $accountId Account ID for the custom metric to update. + * @param string $webPropertyId Web property ID for the custom metric to update. + * @param string $customMetricId Custom metric ID for the custom metric to + * update. + * @param Google_CustomMetric $postBody + * @param array $optParams Optional parameters. + * + * @opt_param bool ignoreCustomDataSourceLinks Force the update and ignore any + * warnings related to the custom metric being linked to a custom data source / + * data set. + * @return Google_Service_Analytics_CustomMetric + */ + public function patch($accountId, $webPropertyId, $customMetricId, Google_Service_Analytics_CustomMetric $postBody, $optParams = array()) + { + $params = array('accountId' => $accountId, 'webPropertyId' => $webPropertyId, 'customMetricId' => $customMetricId, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('patch', array($params), "Google_Service_Analytics_CustomMetric"); + } + + /** + * Updates an existing custom metric. (customMetrics.update) + * + * @param string $accountId Account ID for the custom metric to update. + * @param string $webPropertyId Web property ID for the custom metric to update. + * @param string $customMetricId Custom metric ID for the custom metric to + * update. + * @param Google_CustomMetric $postBody + * @param array $optParams Optional parameters. + * + * @opt_param bool ignoreCustomDataSourceLinks Force the update and ignore any + * warnings related to the custom metric being linked to a custom data source / + * data set. + * @return Google_Service_Analytics_CustomMetric + */ + public function update($accountId, $webPropertyId, $customMetricId, Google_Service_Analytics_CustomMetric $postBody, $optParams = array()) + { + $params = array('accountId' => $accountId, 'webPropertyId' => $webPropertyId, 'customMetricId' => $customMetricId, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('update', array($params), "Google_Service_Analytics_CustomMetric"); } } /** @@ -3133,22 +3374,6 @@ class Google_Service_Analytics_ManagementUploads_Resource extends Google_Service return $this->call('list', array($params), "Google_Service_Analytics_Uploads"); } - /** - * Migrate custom data source and data imports to latest version. - * (uploads.migrateDataImport) - * - * @param string $accountId Account Id for migration. - * @param string $webPropertyId Web property Id for migration. - * @param string $customDataSourceId Custom data source Id for migration. - * @param array $optParams Optional parameters. - */ - public function migrateDataImport($accountId, $webPropertyId, $customDataSourceId, $optParams = array()) - { - $params = array('accountId' => $accountId, 'webPropertyId' => $webPropertyId, 'customDataSourceId' => $customDataSourceId); - $params = array_merge($params, $optParams); - return $this->call('migrateDataImport', array($params)); - } - /** * Upload data for a custom data source. (uploads.uploadData) * @@ -4418,23 +4643,22 @@ class Google_Service_Analytics_CustomDataSources extends Google_Collection } } -class Google_Service_Analytics_DailyUpload extends Google_Collection +class Google_Service_Analytics_CustomDimension extends Google_Model { - protected $collection_key = 'recentChanges'; protected $internal_gapi_mappings = array( ); public $accountId; - public $appendCount; - public $createdTime; - public $customDataSourceId; - public $date; + public $active; + public $created; + public $id; + public $index; public $kind; - public $modifiedTime; - protected $parentLinkType = 'Google_Service_Analytics_DailyUploadParentLink'; + public $name; + protected $parentLinkType = 'Google_Service_Analytics_CustomDimensionParentLink'; protected $parentLinkDataType = ''; - protected $recentChangesType = 'Google_Service_Analytics_DailyUploadRecentChanges'; - protected $recentChangesDataType = 'array'; + public $scope; public $selfLink; + public $updated; public $webPropertyId; @@ -4446,37 +4670,37 @@ class Google_Service_Analytics_DailyUpload extends Google_Collection { return $this->accountId; } - public function setAppendCount($appendCount) + public function setActive($active) { - $this->appendCount = $appendCount; + $this->active = $active; } - public function getAppendCount() + public function getActive() { - return $this->appendCount; + return $this->active; } - public function setCreatedTime($createdTime) + public function setCreated($created) { - $this->createdTime = $createdTime; + $this->created = $created; } - public function getCreatedTime() + public function getCreated() { - return $this->createdTime; + return $this->created; } - public function setCustomDataSourceId($customDataSourceId) + public function setId($id) { - $this->customDataSourceId = $customDataSourceId; + $this->id = $id; } - public function getCustomDataSourceId() + public function getId() { - return $this->customDataSourceId; + return $this->id; } - public function setDate($date) + public function setIndex($index) { - $this->date = $date; + $this->index = $index; } - public function getDate() + public function getIndex() { - return $this->date; + return $this->index; } public function setKind($kind) { @@ -4486,15 +4710,15 @@ class Google_Service_Analytics_DailyUpload extends Google_Collection { return $this->kind; } - public function setModifiedTime($modifiedTime) + public function setName($name) { - $this->modifiedTime = $modifiedTime; + $this->name = $name; } - public function getModifiedTime() + public function getName() { - return $this->modifiedTime; + return $this->name; } - public function setParentLink(Google_Service_Analytics_DailyUploadParentLink $parentLink) + public function setParentLink(Google_Service_Analytics_CustomDimensionParentLink $parentLink) { $this->parentLink = $parentLink; } @@ -4502,13 +4726,13 @@ class Google_Service_Analytics_DailyUpload extends Google_Collection { return $this->parentLink; } - public function setRecentChanges($recentChanges) + public function setScope($scope) { - $this->recentChanges = $recentChanges; + $this->scope = $scope; } - public function getRecentChanges() + public function getScope() { - return $this->recentChanges; + return $this->scope; } public function setSelfLink($selfLink) { @@ -4518,76 +4742,13 @@ class Google_Service_Analytics_DailyUpload extends Google_Collection { return $this->selfLink; } - public function setWebPropertyId($webPropertyId) + public function setUpdated($updated) { - $this->webPropertyId = $webPropertyId; + $this->updated = $updated; } - public function getWebPropertyId() + public function getUpdated() { - return $this->webPropertyId; - } -} - -class Google_Service_Analytics_DailyUploadAppend extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $accountId; - public $appendNumber; - public $customDataSourceId; - public $date; - public $kind; - public $nextAppendLink; - public $webPropertyId; - - - public function setAccountId($accountId) - { - $this->accountId = $accountId; - } - public function getAccountId() - { - return $this->accountId; - } - public function setAppendNumber($appendNumber) - { - $this->appendNumber = $appendNumber; - } - public function getAppendNumber() - { - return $this->appendNumber; - } - public function setCustomDataSourceId($customDataSourceId) - { - $this->customDataSourceId = $customDataSourceId; - } - public function getCustomDataSourceId() - { - return $this->customDataSourceId; - } - public function setDate($date) - { - $this->date = $date; - } - public function getDate() - { - return $this->date; - } - public function setKind($kind) - { - $this->kind = $kind; - } - public function getKind() - { - return $this->kind; - } - public function setNextAppendLink($nextAppendLink) - { - $this->nextAppendLink = $nextAppendLink; - } - public function getNextAppendLink() - { - return $this->nextAppendLink; + return $this->updated; } public function setWebPropertyId($webPropertyId) { @@ -4599,7 +4760,7 @@ class Google_Service_Analytics_DailyUploadAppend extends Google_Model } } -class Google_Service_Analytics_DailyUploadParentLink extends Google_Model +class Google_Service_Analytics_CustomDimensionParentLink extends Google_Model { protected $internal_gapi_mappings = array( ); @@ -4625,38 +4786,266 @@ class Google_Service_Analytics_DailyUploadParentLink extends Google_Model } } -class Google_Service_Analytics_DailyUploadRecentChanges extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $change; - public $time; - - - public function setChange($change) - { - $this->change = $change; - } - public function getChange() - { - return $this->change; - } - public function setTime($time) - { - $this->time = $time; - } - public function getTime() - { - return $this->time; - } -} - -class Google_Service_Analytics_DailyUploads extends Google_Collection +class Google_Service_Analytics_CustomDimensions extends Google_Collection { protected $collection_key = 'items'; protected $internal_gapi_mappings = array( ); - protected $itemsType = 'Google_Service_Analytics_DailyUpload'; + protected $itemsType = 'Google_Service_Analytics_CustomDimension'; + protected $itemsDataType = 'array'; + public $itemsPerPage; + public $kind; + public $nextLink; + public $previousLink; + public $startIndex; + public $totalResults; + public $username; + + + public function setItems($items) + { + $this->items = $items; + } + public function getItems() + { + return $this->items; + } + public function setItemsPerPage($itemsPerPage) + { + $this->itemsPerPage = $itemsPerPage; + } + public function getItemsPerPage() + { + return $this->itemsPerPage; + } + public function setKind($kind) + { + $this->kind = $kind; + } + public function getKind() + { + return $this->kind; + } + public function setNextLink($nextLink) + { + $this->nextLink = $nextLink; + } + public function getNextLink() + { + return $this->nextLink; + } + public function setPreviousLink($previousLink) + { + $this->previousLink = $previousLink; + } + public function getPreviousLink() + { + return $this->previousLink; + } + public function setStartIndex($startIndex) + { + $this->startIndex = $startIndex; + } + public function getStartIndex() + { + return $this->startIndex; + } + public function setTotalResults($totalResults) + { + $this->totalResults = $totalResults; + } + public function getTotalResults() + { + return $this->totalResults; + } + public function setUsername($username) + { + $this->username = $username; + } + public function getUsername() + { + return $this->username; + } +} + +class Google_Service_Analytics_CustomMetric extends Google_Model +{ + protected $internal_gapi_mappings = array( + "maxValue" => "max_value", + "minValue" => "min_value", + ); + public $accountId; + public $active; + public $created; + public $id; + public $index; + public $kind; + public $maxValue; + public $minValue; + public $name; + protected $parentLinkType = 'Google_Service_Analytics_CustomMetricParentLink'; + protected $parentLinkDataType = ''; + public $scope; + public $selfLink; + public $type; + public $updated; + public $webPropertyId; + + + public function setAccountId($accountId) + { + $this->accountId = $accountId; + } + public function getAccountId() + { + return $this->accountId; + } + public function setActive($active) + { + $this->active = $active; + } + public function getActive() + { + return $this->active; + } + public function setCreated($created) + { + $this->created = $created; + } + public function getCreated() + { + return $this->created; + } + public function setId($id) + { + $this->id = $id; + } + public function getId() + { + return $this->id; + } + public function setIndex($index) + { + $this->index = $index; + } + public function getIndex() + { + return $this->index; + } + public function setKind($kind) + { + $this->kind = $kind; + } + public function getKind() + { + return $this->kind; + } + public function setMaxValue($maxValue) + { + $this->maxValue = $maxValue; + } + public function getMaxValue() + { + return $this->maxValue; + } + public function setMinValue($minValue) + { + $this->minValue = $minValue; + } + public function getMinValue() + { + return $this->minValue; + } + public function setName($name) + { + $this->name = $name; + } + public function getName() + { + return $this->name; + } + public function setParentLink(Google_Service_Analytics_CustomMetricParentLink $parentLink) + { + $this->parentLink = $parentLink; + } + public function getParentLink() + { + return $this->parentLink; + } + public function setScope($scope) + { + $this->scope = $scope; + } + public function getScope() + { + return $this->scope; + } + public function setSelfLink($selfLink) + { + $this->selfLink = $selfLink; + } + public function getSelfLink() + { + return $this->selfLink; + } + public function setType($type) + { + $this->type = $type; + } + public function getType() + { + return $this->type; + } + public function setUpdated($updated) + { + $this->updated = $updated; + } + public function getUpdated() + { + return $this->updated; + } + public function setWebPropertyId($webPropertyId) + { + $this->webPropertyId = $webPropertyId; + } + public function getWebPropertyId() + { + return $this->webPropertyId; + } +} + +class Google_Service_Analytics_CustomMetricParentLink extends Google_Model +{ + protected $internal_gapi_mappings = array( + ); + public $href; + public $type; + + + public function setHref($href) + { + $this->href = $href; + } + public function getHref() + { + return $this->href; + } + public function setType($type) + { + $this->type = $type; + } + public function getType() + { + return $this->type; + } +} + +class Google_Service_Analytics_CustomMetrics extends Google_Collection +{ + protected $collection_key = 'items'; + protected $internal_gapi_mappings = array( + ); + protected $itemsType = 'Google_Service_Analytics_CustomMetric'; protected $itemsDataType = 'array'; public $itemsPerPage; public $kind; @@ -5683,11 +6072,14 @@ class Google_Service_Analytics_FilterAdvancedDetails extends Google_Model public $extractA; public $extractB; public $fieldA; + public $fieldAIndex; public $fieldARequired; public $fieldB; + public $fieldBIndex; public $fieldBRequired; public $outputConstructor; public $outputToField; + public $outputToFieldIndex; public $overrideOutputField; @@ -5723,6 +6115,14 @@ class Google_Service_Analytics_FilterAdvancedDetails extends Google_Model { return $this->fieldA; } + public function setFieldAIndex($fieldAIndex) + { + $this->fieldAIndex = $fieldAIndex; + } + public function getFieldAIndex() + { + return $this->fieldAIndex; + } public function setFieldARequired($fieldARequired) { $this->fieldARequired = $fieldARequired; @@ -5739,6 +6139,14 @@ class Google_Service_Analytics_FilterAdvancedDetails extends Google_Model { return $this->fieldB; } + public function setFieldBIndex($fieldBIndex) + { + $this->fieldBIndex = $fieldBIndex; + } + public function getFieldBIndex() + { + return $this->fieldBIndex; + } public function setFieldBRequired($fieldBRequired) { $this->fieldBRequired = $fieldBRequired; @@ -5763,6 +6171,14 @@ class Google_Service_Analytics_FilterAdvancedDetails extends Google_Model { return $this->outputToField; } + public function setOutputToFieldIndex($outputToFieldIndex) + { + $this->outputToFieldIndex = $outputToFieldIndex; + } + public function getOutputToFieldIndex() + { + return $this->outputToFieldIndex; + } public function setOverrideOutputField($overrideOutputField) { $this->overrideOutputField = $overrideOutputField; @@ -5780,6 +6196,7 @@ class Google_Service_Analytics_FilterExpression extends Google_Model public $caseSensitive; public $expressionValue; public $field; + public $fieldIndex; public $kind; public $matchType; @@ -5808,6 +6225,14 @@ class Google_Service_Analytics_FilterExpression extends Google_Model { return $this->field; } + public function setFieldIndex($fieldIndex) + { + $this->fieldIndex = $fieldIndex; + } + public function getFieldIndex() + { + return $this->fieldIndex; + } public function setKind($kind) { $this->kind = $kind; @@ -5831,6 +6256,7 @@ class Google_Service_Analytics_FilterLowercaseDetails extends Google_Model protected $internal_gapi_mappings = array( ); public $field; + public $fieldIndex; public function setField($field) @@ -5841,6 +6267,14 @@ class Google_Service_Analytics_FilterLowercaseDetails extends Google_Model { return $this->field; } + public function setFieldIndex($fieldIndex) + { + $this->fieldIndex = $fieldIndex; + } + public function getFieldIndex() + { + return $this->fieldIndex; + } } class Google_Service_Analytics_FilterParentLink extends Google_Model @@ -5928,6 +6362,7 @@ class Google_Service_Analytics_FilterSearchAndReplaceDetails extends Google_Mode ); public $caseSensitive; public $field; + public $fieldIndex; public $replaceString; public $searchString; @@ -5948,6 +6383,14 @@ class Google_Service_Analytics_FilterSearchAndReplaceDetails extends Google_Mode { return $this->field; } + public function setFieldIndex($fieldIndex) + { + $this->fieldIndex = $fieldIndex; + } + public function getFieldIndex() + { + return $this->fieldIndex; + } public function setReplaceString($replaceString) { $this->replaceString = $replaceString; @@ -5971,6 +6414,7 @@ class Google_Service_Analytics_FilterUppercaseDetails extends Google_Model protected $internal_gapi_mappings = array( ); public $field; + public $fieldIndex; public function setField($field) @@ -5981,6 +6425,14 @@ class Google_Service_Analytics_FilterUppercaseDetails extends Google_Model { return $this->field; } + public function setFieldIndex($fieldIndex) + { + $this->fieldIndex = $fieldIndex; + } + public function getFieldIndex() + { + return $this->fieldIndex; + } } class Google_Service_Analytics_Filters extends Google_Collection diff --git a/lib/google/src/Google/Service/AndroidEnterprise.php b/lib/google/src/Google/Service/AndroidEnterprise.php new file mode 100644 index 00000000000..541b765de16 --- /dev/null +++ b/lib/google/src/Google/Service/AndroidEnterprise.php @@ -0,0 +1,2953 @@ + + * Allows MDMs/EMMs and enterprises to manage the deployment of apps to Android + * for Work users.

+ * + *

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

+ * + * @author Google, Inc. + */ +class Google_Service_AndroidEnterprise extends Google_Service +{ + /** Manage corporate Android devices. */ + const ANDROIDENTERPRISE = + "https://www.googleapis.com/auth/androidenterprise"; + + public $collections; + public $collectionviewers; + public $devices; + public $enterprises; + public $entitlements; + public $grouplicenses; + public $grouplicenseusers; + public $installs; + public $permissions; + public $products; + public $users; + + + /** + * Constructs the internal representation of the AndroidEnterprise service. + * + * @param Google_Client $client + */ + public function __construct(Google_Client $client) + { + parent::__construct($client); + $this->rootUrl = 'https://www.googleapis.com/'; + $this->servicePath = 'androidenterprise/v1/'; + $this->version = 'v1'; + $this->serviceName = 'androidenterprise'; + + $this->collections = new Google_Service_AndroidEnterprise_Collections_Resource( + $this, + $this->serviceName, + 'collections', + array( + 'methods' => array( + 'delete' => array( + 'path' => 'enterprises/{enterpriseId}/collections/{collectionId}', + 'httpMethod' => 'DELETE', + 'parameters' => array( + 'enterpriseId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'collectionId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ),'get' => array( + 'path' => 'enterprises/{enterpriseId}/collections/{collectionId}', + 'httpMethod' => 'GET', + 'parameters' => array( + 'enterpriseId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'collectionId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ),'insert' => array( + 'path' => 'enterprises/{enterpriseId}/collections', + 'httpMethod' => 'POST', + 'parameters' => array( + 'enterpriseId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ),'list' => array( + 'path' => 'enterprises/{enterpriseId}/collections', + 'httpMethod' => 'GET', + 'parameters' => array( + 'enterpriseId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ),'patch' => array( + 'path' => 'enterprises/{enterpriseId}/collections/{collectionId}', + 'httpMethod' => 'PATCH', + 'parameters' => array( + 'enterpriseId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'collectionId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ),'update' => array( + 'path' => 'enterprises/{enterpriseId}/collections/{collectionId}', + 'httpMethod' => 'PUT', + 'parameters' => array( + 'enterpriseId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'collectionId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ), + ) + ) + ); + $this->collectionviewers = new Google_Service_AndroidEnterprise_Collectionviewers_Resource( + $this, + $this->serviceName, + 'collectionviewers', + array( + 'methods' => array( + 'delete' => array( + 'path' => 'enterprises/{enterpriseId}/collections/{collectionId}/users/{userId}', + 'httpMethod' => 'DELETE', + 'parameters' => array( + 'enterpriseId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'collectionId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'userId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ),'get' => array( + 'path' => 'enterprises/{enterpriseId}/collections/{collectionId}/users/{userId}', + 'httpMethod' => 'GET', + 'parameters' => array( + 'enterpriseId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'collectionId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'userId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ),'list' => array( + 'path' => 'enterprises/{enterpriseId}/collections/{collectionId}/users', + 'httpMethod' => 'GET', + 'parameters' => array( + 'enterpriseId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'collectionId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ),'patch' => array( + 'path' => 'enterprises/{enterpriseId}/collections/{collectionId}/users/{userId}', + 'httpMethod' => 'PATCH', + 'parameters' => array( + 'enterpriseId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'collectionId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'userId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ),'update' => array( + 'path' => 'enterprises/{enterpriseId}/collections/{collectionId}/users/{userId}', + 'httpMethod' => 'PUT', + 'parameters' => array( + 'enterpriseId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'collectionId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'userId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ), + ) + ) + ); + $this->devices = new Google_Service_AndroidEnterprise_Devices_Resource( + $this, + $this->serviceName, + 'devices', + array( + 'methods' => array( + 'get' => array( + 'path' => 'enterprises/{enterpriseId}/users/{userId}/devices/{deviceId}', + 'httpMethod' => 'GET', + 'parameters' => array( + 'enterpriseId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'userId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'deviceId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ),'getState' => array( + 'path' => 'enterprises/{enterpriseId}/users/{userId}/devices/{deviceId}/state', + 'httpMethod' => 'GET', + 'parameters' => array( + 'enterpriseId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'userId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'deviceId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ),'list' => array( + 'path' => 'enterprises/{enterpriseId}/users/{userId}/devices', + 'httpMethod' => 'GET', + 'parameters' => array( + 'enterpriseId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'userId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ),'setState' => array( + 'path' => 'enterprises/{enterpriseId}/users/{userId}/devices/{deviceId}/state', + 'httpMethod' => 'PUT', + 'parameters' => array( + 'enterpriseId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'userId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'deviceId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ), + ) + ) + ); + $this->enterprises = new Google_Service_AndroidEnterprise_Enterprises_Resource( + $this, + $this->serviceName, + 'enterprises', + array( + 'methods' => array( + 'delete' => array( + 'path' => 'enterprises/{enterpriseId}', + 'httpMethod' => 'DELETE', + 'parameters' => array( + 'enterpriseId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ),'enroll' => array( + 'path' => 'enterprises/enroll', + 'httpMethod' => 'POST', + 'parameters' => array( + 'token' => array( + 'location' => 'query', + 'type' => 'string', + 'required' => true, + ), + ), + ),'get' => array( + 'path' => 'enterprises/{enterpriseId}', + 'httpMethod' => 'GET', + 'parameters' => array( + 'enterpriseId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ),'insert' => array( + 'path' => 'enterprises', + 'httpMethod' => 'POST', + 'parameters' => array( + 'token' => array( + 'location' => 'query', + 'type' => 'string', + 'required' => true, + ), + ), + ),'list' => array( + 'path' => 'enterprises', + 'httpMethod' => 'GET', + 'parameters' => array( + 'domain' => array( + 'location' => 'query', + 'type' => 'string', + 'required' => true, + ), + ), + ),'setAccount' => array( + 'path' => 'enterprises/{enterpriseId}/account', + 'httpMethod' => 'PUT', + 'parameters' => array( + 'enterpriseId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ),'unenroll' => array( + 'path' => 'enterprises/{enterpriseId}/unenroll', + 'httpMethod' => 'POST', + 'parameters' => array( + 'enterpriseId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ), + ) + ) + ); + $this->entitlements = new Google_Service_AndroidEnterprise_Entitlements_Resource( + $this, + $this->serviceName, + 'entitlements', + array( + 'methods' => array( + 'delete' => array( + 'path' => 'enterprises/{enterpriseId}/users/{userId}/entitlements/{entitlementId}', + 'httpMethod' => 'DELETE', + 'parameters' => array( + 'enterpriseId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'userId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'entitlementId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ),'get' => array( + 'path' => 'enterprises/{enterpriseId}/users/{userId}/entitlements/{entitlementId}', + 'httpMethod' => 'GET', + 'parameters' => array( + 'enterpriseId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'userId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'entitlementId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ),'list' => array( + 'path' => 'enterprises/{enterpriseId}/users/{userId}/entitlements', + 'httpMethod' => 'GET', + 'parameters' => array( + 'enterpriseId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'userId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ),'patch' => array( + 'path' => 'enterprises/{enterpriseId}/users/{userId}/entitlements/{entitlementId}', + 'httpMethod' => 'PATCH', + 'parameters' => array( + 'enterpriseId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'userId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'entitlementId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'install' => array( + 'location' => 'query', + 'type' => 'boolean', + ), + ), + ),'update' => array( + 'path' => 'enterprises/{enterpriseId}/users/{userId}/entitlements/{entitlementId}', + 'httpMethod' => 'PUT', + 'parameters' => array( + 'enterpriseId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'userId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'entitlementId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'install' => array( + 'location' => 'query', + 'type' => 'boolean', + ), + ), + ), + ) + ) + ); + $this->grouplicenses = new Google_Service_AndroidEnterprise_Grouplicenses_Resource( + $this, + $this->serviceName, + 'grouplicenses', + array( + 'methods' => array( + 'get' => array( + 'path' => 'enterprises/{enterpriseId}/groupLicenses/{groupLicenseId}', + 'httpMethod' => 'GET', + 'parameters' => array( + 'enterpriseId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'groupLicenseId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ),'list' => array( + 'path' => 'enterprises/{enterpriseId}/groupLicenses', + 'httpMethod' => 'GET', + 'parameters' => array( + 'enterpriseId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ), + ) + ) + ); + $this->grouplicenseusers = new Google_Service_AndroidEnterprise_Grouplicenseusers_Resource( + $this, + $this->serviceName, + 'grouplicenseusers', + array( + 'methods' => array( + 'list' => array( + 'path' => 'enterprises/{enterpriseId}/groupLicenses/{groupLicenseId}/users', + 'httpMethod' => 'GET', + 'parameters' => array( + 'enterpriseId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'groupLicenseId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ), + ) + ) + ); + $this->installs = new Google_Service_AndroidEnterprise_Installs_Resource( + $this, + $this->serviceName, + 'installs', + array( + 'methods' => array( + 'delete' => array( + 'path' => 'enterprises/{enterpriseId}/users/{userId}/devices/{deviceId}/installs/{installId}', + 'httpMethod' => 'DELETE', + 'parameters' => array( + 'enterpriseId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'userId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'deviceId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'installId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ),'get' => array( + 'path' => 'enterprises/{enterpriseId}/users/{userId}/devices/{deviceId}/installs/{installId}', + 'httpMethod' => 'GET', + 'parameters' => array( + 'enterpriseId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'userId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'deviceId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'installId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ),'list' => array( + 'path' => 'enterprises/{enterpriseId}/users/{userId}/devices/{deviceId}/installs', + 'httpMethod' => 'GET', + 'parameters' => array( + 'enterpriseId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'userId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'deviceId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ),'patch' => array( + 'path' => 'enterprises/{enterpriseId}/users/{userId}/devices/{deviceId}/installs/{installId}', + 'httpMethod' => 'PATCH', + 'parameters' => array( + 'enterpriseId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'userId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'deviceId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'installId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ),'update' => array( + 'path' => 'enterprises/{enterpriseId}/users/{userId}/devices/{deviceId}/installs/{installId}', + 'httpMethod' => 'PUT', + 'parameters' => array( + 'enterpriseId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'userId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'deviceId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'installId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ), + ) + ) + ); + $this->permissions = new Google_Service_AndroidEnterprise_Permissions_Resource( + $this, + $this->serviceName, + 'permissions', + array( + 'methods' => array( + 'get' => array( + 'path' => 'permissions/{permissionId}', + 'httpMethod' => 'GET', + 'parameters' => array( + 'permissionId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'language' => array( + 'location' => 'query', + 'type' => 'string', + ), + ), + ), + ) + ) + ); + $this->products = new Google_Service_AndroidEnterprise_Products_Resource( + $this, + $this->serviceName, + 'products', + array( + 'methods' => array( + 'approve' => array( + 'path' => 'enterprises/{enterpriseId}/products/{productId}/approve', + 'httpMethod' => 'POST', + 'parameters' => array( + 'enterpriseId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'productId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ),'generateApprovalUrl' => array( + 'path' => 'enterprises/{enterpriseId}/products/{productId}/generateApprovalUrl', + 'httpMethod' => 'POST', + 'parameters' => array( + 'enterpriseId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'productId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'languageCode' => array( + 'location' => 'query', + 'type' => 'string', + ), + ), + ),'get' => array( + 'path' => 'enterprises/{enterpriseId}/products/{productId}', + 'httpMethod' => 'GET', + 'parameters' => array( + 'enterpriseId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'productId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'language' => array( + 'location' => 'query', + 'type' => 'string', + ), + ), + ),'getAppRestrictionsSchema' => array( + 'path' => 'enterprises/{enterpriseId}/products/{productId}/appRestrictionsSchema', + 'httpMethod' => 'GET', + 'parameters' => array( + 'enterpriseId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'productId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'language' => array( + 'location' => 'query', + 'type' => 'string', + ), + ), + ),'getPermissions' => array( + 'path' => 'enterprises/{enterpriseId}/products/{productId}/permissions', + 'httpMethod' => 'GET', + 'parameters' => array( + 'enterpriseId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'productId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ),'updatePermissions' => array( + 'path' => 'enterprises/{enterpriseId}/products/{productId}/permissions', + 'httpMethod' => 'PUT', + 'parameters' => array( + 'enterpriseId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'productId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ), + ) + ) + ); + $this->users = new Google_Service_AndroidEnterprise_Users_Resource( + $this, + $this->serviceName, + 'users', + array( + 'methods' => array( + 'generateToken' => array( + 'path' => 'enterprises/{enterpriseId}/users/{userId}/token', + 'httpMethod' => 'POST', + 'parameters' => array( + 'enterpriseId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'userId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ),'get' => array( + 'path' => 'enterprises/{enterpriseId}/users/{userId}', + 'httpMethod' => 'GET', + 'parameters' => array( + 'enterpriseId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'userId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ),'list' => array( + 'path' => 'enterprises/{enterpriseId}/users', + 'httpMethod' => 'GET', + 'parameters' => array( + 'enterpriseId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'email' => array( + 'location' => 'query', + 'type' => 'string', + 'required' => true, + ), + ), + ),'revokeToken' => array( + 'path' => 'enterprises/{enterpriseId}/users/{userId}/token', + 'httpMethod' => 'DELETE', + 'parameters' => array( + 'enterpriseId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'userId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ), + ) + ) + ); + } +} + + +/** + * The "collections" collection of methods. + * Typical usage is: + * + * $androidenterpriseService = new Google_Service_AndroidEnterprise(...); + * $collections = $androidenterpriseService->collections; + * + */ +class Google_Service_AndroidEnterprise_Collections_Resource extends Google_Service_Resource +{ + + /** + * Deletes a collection. (collections.delete) + * + * @param string $enterpriseId The ID of the enterprise. + * @param string $collectionId The ID of the collection. + * @param array $optParams Optional parameters. + */ + public function delete($enterpriseId, $collectionId, $optParams = array()) + { + $params = array('enterpriseId' => $enterpriseId, 'collectionId' => $collectionId); + $params = array_merge($params, $optParams); + return $this->call('delete', array($params)); + } + + /** + * Retrieves the details of a collection. (collections.get) + * + * @param string $enterpriseId The ID of the enterprise. + * @param string $collectionId The ID of the collection. + * @param array $optParams Optional parameters. + * @return Google_Service_AndroidEnterprise_Collection + */ + public function get($enterpriseId, $collectionId, $optParams = array()) + { + $params = array('enterpriseId' => $enterpriseId, 'collectionId' => $collectionId); + $params = array_merge($params, $optParams); + return $this->call('get', array($params), "Google_Service_AndroidEnterprise_Collection"); + } + + /** + * Creates a new collection. (collections.insert) + * + * @param string $enterpriseId The ID of the enterprise. + * @param Google_Collection $postBody + * @param array $optParams Optional parameters. + * @return Google_Service_AndroidEnterprise_Collection + */ + public function insert($enterpriseId, Google_Service_AndroidEnterprise_Collection $postBody, $optParams = array()) + { + $params = array('enterpriseId' => $enterpriseId, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('insert', array($params), "Google_Service_AndroidEnterprise_Collection"); + } + + /** + * Retrieves the IDs of all the collections for an enterprise. + * (collections.listCollections) + * + * @param string $enterpriseId The ID of the enterprise. + * @param array $optParams Optional parameters. + * @return Google_Service_AndroidEnterprise_CollectionsListResponse + */ + public function listCollections($enterpriseId, $optParams = array()) + { + $params = array('enterpriseId' => $enterpriseId); + $params = array_merge($params, $optParams); + return $this->call('list', array($params), "Google_Service_AndroidEnterprise_CollectionsListResponse"); + } + + /** + * Updates a collection. This method supports patch semantics. + * (collections.patch) + * + * @param string $enterpriseId The ID of the enterprise. + * @param string $collectionId The ID of the collection. + * @param Google_Collection $postBody + * @param array $optParams Optional parameters. + * @return Google_Service_AndroidEnterprise_Collection + */ + public function patch($enterpriseId, $collectionId, Google_Service_AndroidEnterprise_Collection $postBody, $optParams = array()) + { + $params = array('enterpriseId' => $enterpriseId, 'collectionId' => $collectionId, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('patch', array($params), "Google_Service_AndroidEnterprise_Collection"); + } + + /** + * Updates a collection. (collections.update) + * + * @param string $enterpriseId The ID of the enterprise. + * @param string $collectionId The ID of the collection. + * @param Google_Collection $postBody + * @param array $optParams Optional parameters. + * @return Google_Service_AndroidEnterprise_Collection + */ + public function update($enterpriseId, $collectionId, Google_Service_AndroidEnterprise_Collection $postBody, $optParams = array()) + { + $params = array('enterpriseId' => $enterpriseId, 'collectionId' => $collectionId, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('update', array($params), "Google_Service_AndroidEnterprise_Collection"); + } +} + +/** + * The "collectionviewers" collection of methods. + * Typical usage is: + * + * $androidenterpriseService = new Google_Service_AndroidEnterprise(...); + * $collectionviewers = $androidenterpriseService->collectionviewers; + * + */ +class Google_Service_AndroidEnterprise_Collectionviewers_Resource extends Google_Service_Resource +{ + + /** + * Removes the user from the list of those specifically allowed to see the + * collection. If the collection's visibility is set to viewersOnly then only + * such users will see the collection. (collectionviewers.delete) + * + * @param string $enterpriseId The ID of the enterprise. + * @param string $collectionId The ID of the collection. + * @param string $userId The ID of the user. + * @param array $optParams Optional parameters. + */ + public function delete($enterpriseId, $collectionId, $userId, $optParams = array()) + { + $params = array('enterpriseId' => $enterpriseId, 'collectionId' => $collectionId, 'userId' => $userId); + $params = array_merge($params, $optParams); + return $this->call('delete', array($params)); + } + + /** + * Retrieves the ID of the user if they have been specifically allowed to see + * the collection. If the collection's visibility is set to viewersOnly then + * only these users will see the collection. (collectionviewers.get) + * + * @param string $enterpriseId The ID of the enterprise. + * @param string $collectionId The ID of the collection. + * @param string $userId The ID of the user. + * @param array $optParams Optional parameters. + * @return Google_Service_AndroidEnterprise_User + */ + public function get($enterpriseId, $collectionId, $userId, $optParams = array()) + { + $params = array('enterpriseId' => $enterpriseId, 'collectionId' => $collectionId, 'userId' => $userId); + $params = array_merge($params, $optParams); + return $this->call('get', array($params), "Google_Service_AndroidEnterprise_User"); + } + + /** + * Retrieves the IDs of the users who have been specifically allowed to see the + * collection. If the collection's visibility is set to viewersOnly then only + * these users will see the collection. + * (collectionviewers.listCollectionviewers) + * + * @param string $enterpriseId The ID of the enterprise. + * @param string $collectionId The ID of the collection. + * @param array $optParams Optional parameters. + * @return Google_Service_AndroidEnterprise_CollectionViewersListResponse + */ + public function listCollectionviewers($enterpriseId, $collectionId, $optParams = array()) + { + $params = array('enterpriseId' => $enterpriseId, 'collectionId' => $collectionId); + $params = array_merge($params, $optParams); + return $this->call('list', array($params), "Google_Service_AndroidEnterprise_CollectionViewersListResponse"); + } + + /** + * Adds the user to the list of those specifically allowed to see the + * collection. If the collection's visibility is set to viewersOnly then only + * such users will see the collection. This method supports patch semantics. + * (collectionviewers.patch) + * + * @param string $enterpriseId The ID of the enterprise. + * @param string $collectionId The ID of the collection. + * @param string $userId The ID of the user. + * @param Google_User $postBody + * @param array $optParams Optional parameters. + * @return Google_Service_AndroidEnterprise_User + */ + public function patch($enterpriseId, $collectionId, $userId, Google_Service_AndroidEnterprise_User $postBody, $optParams = array()) + { + $params = array('enterpriseId' => $enterpriseId, 'collectionId' => $collectionId, 'userId' => $userId, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('patch', array($params), "Google_Service_AndroidEnterprise_User"); + } + + /** + * Adds the user to the list of those specifically allowed to see the + * collection. If the collection's visibility is set to viewersOnly then only + * such users will see the collection. (collectionviewers.update) + * + * @param string $enterpriseId The ID of the enterprise. + * @param string $collectionId The ID of the collection. + * @param string $userId The ID of the user. + * @param Google_User $postBody + * @param array $optParams Optional parameters. + * @return Google_Service_AndroidEnterprise_User + */ + public function update($enterpriseId, $collectionId, $userId, Google_Service_AndroidEnterprise_User $postBody, $optParams = array()) + { + $params = array('enterpriseId' => $enterpriseId, 'collectionId' => $collectionId, 'userId' => $userId, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('update', array($params), "Google_Service_AndroidEnterprise_User"); + } +} + +/** + * The "devices" collection of methods. + * Typical usage is: + * + * $androidenterpriseService = new Google_Service_AndroidEnterprise(...); + * $devices = $androidenterpriseService->devices; + * + */ +class Google_Service_AndroidEnterprise_Devices_Resource extends Google_Service_Resource +{ + + /** + * Retrieves the details of a device. (devices.get) + * + * @param string $enterpriseId The ID of the enterprise. + * @param string $userId The ID of the user. + * @param string $deviceId The ID of the device. + * @param array $optParams Optional parameters. + * @return Google_Service_AndroidEnterprise_Device + */ + public function get($enterpriseId, $userId, $deviceId, $optParams = array()) + { + $params = array('enterpriseId' => $enterpriseId, 'userId' => $userId, 'deviceId' => $deviceId); + $params = array_merge($params, $optParams); + return $this->call('get', array($params), "Google_Service_AndroidEnterprise_Device"); + } + + /** + * Retrieves whether a device is enabled or disabled for access by the user to + * Google services. The device state takes effect only if enforcing EMM policies + * on Android devices is enabled in the Google Admin Console. Otherwise, the + * device state is ignored and all devices are allowed access to Google + * services. (devices.getState) + * + * @param string $enterpriseId The ID of the enterprise. + * @param string $userId The ID of the user. + * @param string $deviceId The ID of the device. + * @param array $optParams Optional parameters. + * @return Google_Service_AndroidEnterprise_DeviceState + */ + public function getState($enterpriseId, $userId, $deviceId, $optParams = array()) + { + $params = array('enterpriseId' => $enterpriseId, 'userId' => $userId, 'deviceId' => $deviceId); + $params = array_merge($params, $optParams); + return $this->call('getState', array($params), "Google_Service_AndroidEnterprise_DeviceState"); + } + + /** + * Retrieves the IDs of all of a user's devices. (devices.listDevices) + * + * @param string $enterpriseId The ID of the enterprise. + * @param string $userId The ID of the user. + * @param array $optParams Optional parameters. + * @return Google_Service_AndroidEnterprise_DevicesListResponse + */ + public function listDevices($enterpriseId, $userId, $optParams = array()) + { + $params = array('enterpriseId' => $enterpriseId, 'userId' => $userId); + $params = array_merge($params, $optParams); + return $this->call('list', array($params), "Google_Service_AndroidEnterprise_DevicesListResponse"); + } + + /** + * Sets whether a device is enabled or disabled for access by the user to Google + * services. The device state takes effect only if enforcing EMM policies on + * Android devices is enabled in the Google Admin Console. Otherwise, the device + * state is ignored and all devices are allowed access to Google services. + * (devices.setState) + * + * @param string $enterpriseId The ID of the enterprise. + * @param string $userId The ID of the user. + * @param string $deviceId The ID of the device. + * @param Google_DeviceState $postBody + * @param array $optParams Optional parameters. + * @return Google_Service_AndroidEnterprise_DeviceState + */ + public function setState($enterpriseId, $userId, $deviceId, Google_Service_AndroidEnterprise_DeviceState $postBody, $optParams = array()) + { + $params = array('enterpriseId' => $enterpriseId, 'userId' => $userId, 'deviceId' => $deviceId, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('setState', array($params), "Google_Service_AndroidEnterprise_DeviceState"); + } +} + +/** + * The "enterprises" collection of methods. + * Typical usage is: + * + * $androidenterpriseService = new Google_Service_AndroidEnterprise(...); + * $enterprises = $androidenterpriseService->enterprises; + * + */ +class Google_Service_AndroidEnterprise_Enterprises_Resource extends Google_Service_Resource +{ + + /** + * Deletes the binding between the MDM and enterprise. This is now deprecated; + * use this to unenroll customers that were previously enrolled with the + * 'insert' call, then enroll them again with the 'enroll' call. + * (enterprises.delete) + * + * @param string $enterpriseId The ID of the enterprise. + * @param array $optParams Optional parameters. + */ + public function delete($enterpriseId, $optParams = array()) + { + $params = array('enterpriseId' => $enterpriseId); + $params = array_merge($params, $optParams); + return $this->call('delete', array($params)); + } + + /** + * Enrolls an enterprise with the calling MDM. (enterprises.enroll) + * + * @param string $token The token provided by the enterprise to register the + * MDM. + * @param Google_Enterprise $postBody + * @param array $optParams Optional parameters. + * @return Google_Service_AndroidEnterprise_Enterprise + */ + public function enroll($token, Google_Service_AndroidEnterprise_Enterprise $postBody, $optParams = array()) + { + $params = array('token' => $token, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('enroll', array($params), "Google_Service_AndroidEnterprise_Enterprise"); + } + + /** + * Retrieves the name and domain of an enterprise. (enterprises.get) + * + * @param string $enterpriseId The ID of the enterprise. + * @param array $optParams Optional parameters. + * @return Google_Service_AndroidEnterprise_Enterprise + */ + public function get($enterpriseId, $optParams = array()) + { + $params = array('enterpriseId' => $enterpriseId); + $params = array_merge($params, $optParams); + return $this->call('get', array($params), "Google_Service_AndroidEnterprise_Enterprise"); + } + + /** + * Establishes the binding between the MDM and an enterprise. This is now + * deprecated; use enroll instead. (enterprises.insert) + * + * @param string $token The token provided by the enterprise to register the + * MDM. + * @param Google_Enterprise $postBody + * @param array $optParams Optional parameters. + * @return Google_Service_AndroidEnterprise_Enterprise + */ + public function insert($token, Google_Service_AndroidEnterprise_Enterprise $postBody, $optParams = array()) + { + $params = array('token' => $token, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('insert', array($params), "Google_Service_AndroidEnterprise_Enterprise"); + } + + /** + * Looks up an enterprise by domain name. (enterprises.listEnterprises) + * + * @param string $domain The exact primary domain name of the enterprise to look + * up. + * @param array $optParams Optional parameters. + * @return Google_Service_AndroidEnterprise_EnterprisesListResponse + */ + public function listEnterprises($domain, $optParams = array()) + { + $params = array('domain' => $domain); + $params = array_merge($params, $optParams); + return $this->call('list', array($params), "Google_Service_AndroidEnterprise_EnterprisesListResponse"); + } + + /** + * Set the account that will be used to authenticate to the API as the + * enterprise. (enterprises.setAccount) + * + * @param string $enterpriseId The ID of the enterprise. + * @param Google_EnterpriseAccount $postBody + * @param array $optParams Optional parameters. + * @return Google_Service_AndroidEnterprise_EnterpriseAccount + */ + public function setAccount($enterpriseId, Google_Service_AndroidEnterprise_EnterpriseAccount $postBody, $optParams = array()) + { + $params = array('enterpriseId' => $enterpriseId, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('setAccount', array($params), "Google_Service_AndroidEnterprise_EnterpriseAccount"); + } + + /** + * Unenrolls an enterprise from the calling MDM. (enterprises.unenroll) + * + * @param string $enterpriseId The ID of the enterprise. + * @param array $optParams Optional parameters. + */ + public function unenroll($enterpriseId, $optParams = array()) + { + $params = array('enterpriseId' => $enterpriseId); + $params = array_merge($params, $optParams); + return $this->call('unenroll', array($params)); + } +} + +/** + * The "entitlements" collection of methods. + * Typical usage is: + * + * $androidenterpriseService = new Google_Service_AndroidEnterprise(...); + * $entitlements = $androidenterpriseService->entitlements; + * + */ +class Google_Service_AndroidEnterprise_Entitlements_Resource extends Google_Service_Resource +{ + + /** + * Removes an entitlement to an app for a user and uninstalls it. + * (entitlements.delete) + * + * @param string $enterpriseId The ID of the enterprise. + * @param string $userId The ID of the user. + * @param string $entitlementId The ID of the entitlement, e.g. + * "app:com.google.android.gm". + * @param array $optParams Optional parameters. + */ + public function delete($enterpriseId, $userId, $entitlementId, $optParams = array()) + { + $params = array('enterpriseId' => $enterpriseId, 'userId' => $userId, 'entitlementId' => $entitlementId); + $params = array_merge($params, $optParams); + return $this->call('delete', array($params)); + } + + /** + * Retrieves details of an entitlement. (entitlements.get) + * + * @param string $enterpriseId The ID of the enterprise. + * @param string $userId The ID of the user. + * @param string $entitlementId The ID of the entitlement, e.g. + * "app:com.google.android.gm". + * @param array $optParams Optional parameters. + * @return Google_Service_AndroidEnterprise_Entitlement + */ + public function get($enterpriseId, $userId, $entitlementId, $optParams = array()) + { + $params = array('enterpriseId' => $enterpriseId, 'userId' => $userId, 'entitlementId' => $entitlementId); + $params = array_merge($params, $optParams); + return $this->call('get', array($params), "Google_Service_AndroidEnterprise_Entitlement"); + } + + /** + * List of all entitlements for the specified user. Only the ID is set. + * (entitlements.listEntitlements) + * + * @param string $enterpriseId The ID of the enterprise. + * @param string $userId The ID of the user. + * @param array $optParams Optional parameters. + * @return Google_Service_AndroidEnterprise_EntitlementsListResponse + */ + public function listEntitlements($enterpriseId, $userId, $optParams = array()) + { + $params = array('enterpriseId' => $enterpriseId, 'userId' => $userId); + $params = array_merge($params, $optParams); + return $this->call('list', array($params), "Google_Service_AndroidEnterprise_EntitlementsListResponse"); + } + + /** + * Adds or updates an entitlement to an app for a user. This method supports + * patch semantics. (entitlements.patch) + * + * @param string $enterpriseId The ID of the enterprise. + * @param string $userId The ID of the user. + * @param string $entitlementId The ID of the entitlement, e.g. + * "app:com.google.android.gm". + * @param Google_Entitlement $postBody + * @param array $optParams Optional parameters. + * + * @opt_param bool install Set to true to also install the product on all the + * user's devices where possible. Failure to install on one or more devices will + * not prevent this operation from returning successfully, as long as the + * entitlement was successfully assigned to the user. + * @return Google_Service_AndroidEnterprise_Entitlement + */ + public function patch($enterpriseId, $userId, $entitlementId, Google_Service_AndroidEnterprise_Entitlement $postBody, $optParams = array()) + { + $params = array('enterpriseId' => $enterpriseId, 'userId' => $userId, 'entitlementId' => $entitlementId, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('patch', array($params), "Google_Service_AndroidEnterprise_Entitlement"); + } + + /** + * Adds or updates an entitlement to an app for a user. (entitlements.update) + * + * @param string $enterpriseId The ID of the enterprise. + * @param string $userId The ID of the user. + * @param string $entitlementId The ID of the entitlement, e.g. + * "app:com.google.android.gm". + * @param Google_Entitlement $postBody + * @param array $optParams Optional parameters. + * + * @opt_param bool install Set to true to also install the product on all the + * user's devices where possible. Failure to install on one or more devices will + * not prevent this operation from returning successfully, as long as the + * entitlement was successfully assigned to the user. + * @return Google_Service_AndroidEnterprise_Entitlement + */ + public function update($enterpriseId, $userId, $entitlementId, Google_Service_AndroidEnterprise_Entitlement $postBody, $optParams = array()) + { + $params = array('enterpriseId' => $enterpriseId, 'userId' => $userId, 'entitlementId' => $entitlementId, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('update', array($params), "Google_Service_AndroidEnterprise_Entitlement"); + } +} + +/** + * The "grouplicenses" collection of methods. + * Typical usage is: + * + * $androidenterpriseService = new Google_Service_AndroidEnterprise(...); + * $grouplicenses = $androidenterpriseService->grouplicenses; + * + */ +class Google_Service_AndroidEnterprise_Grouplicenses_Resource extends Google_Service_Resource +{ + + /** + * Retrieves details of an enterprise's group license for a product. + * (grouplicenses.get) + * + * @param string $enterpriseId The ID of the enterprise. + * @param string $groupLicenseId The ID of the product the group license is for, + * e.g. "app:com.google.android.gm". + * @param array $optParams Optional parameters. + * @return Google_Service_AndroidEnterprise_GroupLicense + */ + public function get($enterpriseId, $groupLicenseId, $optParams = array()) + { + $params = array('enterpriseId' => $enterpriseId, 'groupLicenseId' => $groupLicenseId); + $params = array_merge($params, $optParams); + return $this->call('get', array($params), "Google_Service_AndroidEnterprise_GroupLicense"); + } + + /** + * Retrieves IDs of all products for which the enterprise has a group license. + * (grouplicenses.listGrouplicenses) + * + * @param string $enterpriseId The ID of the enterprise. + * @param array $optParams Optional parameters. + * @return Google_Service_AndroidEnterprise_GroupLicensesListResponse + */ + public function listGrouplicenses($enterpriseId, $optParams = array()) + { + $params = array('enterpriseId' => $enterpriseId); + $params = array_merge($params, $optParams); + return $this->call('list', array($params), "Google_Service_AndroidEnterprise_GroupLicensesListResponse"); + } +} + +/** + * The "grouplicenseusers" collection of methods. + * Typical usage is: + * + * $androidenterpriseService = new Google_Service_AndroidEnterprise(...); + * $grouplicenseusers = $androidenterpriseService->grouplicenseusers; + * + */ +class Google_Service_AndroidEnterprise_Grouplicenseusers_Resource extends Google_Service_Resource +{ + + /** + * Retrieves the IDs of the users who have been granted entitlements under the + * license. (grouplicenseusers.listGrouplicenseusers) + * + * @param string $enterpriseId The ID of the enterprise. + * @param string $groupLicenseId The ID of the product the group license is for, + * e.g. "app:com.google.android.gm". + * @param array $optParams Optional parameters. + * @return Google_Service_AndroidEnterprise_GroupLicenseUsersListResponse + */ + public function listGrouplicenseusers($enterpriseId, $groupLicenseId, $optParams = array()) + { + $params = array('enterpriseId' => $enterpriseId, 'groupLicenseId' => $groupLicenseId); + $params = array_merge($params, $optParams); + return $this->call('list', array($params), "Google_Service_AndroidEnterprise_GroupLicenseUsersListResponse"); + } +} + +/** + * The "installs" collection of methods. + * Typical usage is: + * + * $androidenterpriseService = new Google_Service_AndroidEnterprise(...); + * $installs = $androidenterpriseService->installs; + * + */ +class Google_Service_AndroidEnterprise_Installs_Resource extends Google_Service_Resource +{ + + /** + * Requests to remove an app from a device. A call to get or list will still + * show the app as installed on the device until it is actually removed. + * (installs.delete) + * + * @param string $enterpriseId The ID of the enterprise. + * @param string $userId The ID of the user. + * @param string $deviceId The Android ID of the device. + * @param string $installId The ID of the product represented by the install, + * e.g. "app:com.google.android.gm". + * @param array $optParams Optional parameters. + */ + public function delete($enterpriseId, $userId, $deviceId, $installId, $optParams = array()) + { + $params = array('enterpriseId' => $enterpriseId, 'userId' => $userId, 'deviceId' => $deviceId, 'installId' => $installId); + $params = array_merge($params, $optParams); + return $this->call('delete', array($params)); + } + + /** + * Retrieves details of an installation of an app on a device. (installs.get) + * + * @param string $enterpriseId The ID of the enterprise. + * @param string $userId The ID of the user. + * @param string $deviceId The Android ID of the device. + * @param string $installId The ID of the product represented by the install, + * e.g. "app:com.google.android.gm". + * @param array $optParams Optional parameters. + * @return Google_Service_AndroidEnterprise_Install + */ + public function get($enterpriseId, $userId, $deviceId, $installId, $optParams = array()) + { + $params = array('enterpriseId' => $enterpriseId, 'userId' => $userId, 'deviceId' => $deviceId, 'installId' => $installId); + $params = array_merge($params, $optParams); + return $this->call('get', array($params), "Google_Service_AndroidEnterprise_Install"); + } + + /** + * Retrieves the details of all apps installed on the specified device. + * (installs.listInstalls) + * + * @param string $enterpriseId The ID of the enterprise. + * @param string $userId The ID of the user. + * @param string $deviceId The Android ID of the device. + * @param array $optParams Optional parameters. + * @return Google_Service_AndroidEnterprise_InstallsListResponse + */ + public function listInstalls($enterpriseId, $userId, $deviceId, $optParams = array()) + { + $params = array('enterpriseId' => $enterpriseId, 'userId' => $userId, 'deviceId' => $deviceId); + $params = array_merge($params, $optParams); + return $this->call('list', array($params), "Google_Service_AndroidEnterprise_InstallsListResponse"); + } + + /** + * Requests to install the latest version of an app to a device. If the app is + * already installed then it is updated to the latest version if necessary. This + * method supports patch semantics. (installs.patch) + * + * @param string $enterpriseId The ID of the enterprise. + * @param string $userId The ID of the user. + * @param string $deviceId The Android ID of the device. + * @param string $installId The ID of the product represented by the install, + * e.g. "app:com.google.android.gm". + * @param Google_Install $postBody + * @param array $optParams Optional parameters. + * @return Google_Service_AndroidEnterprise_Install + */ + public function patch($enterpriseId, $userId, $deviceId, $installId, Google_Service_AndroidEnterprise_Install $postBody, $optParams = array()) + { + $params = array('enterpriseId' => $enterpriseId, 'userId' => $userId, 'deviceId' => $deviceId, 'installId' => $installId, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('patch', array($params), "Google_Service_AndroidEnterprise_Install"); + } + + /** + * Requests to install the latest version of an app to a device. If the app is + * already installed then it is updated to the latest version if necessary. + * (installs.update) + * + * @param string $enterpriseId The ID of the enterprise. + * @param string $userId The ID of the user. + * @param string $deviceId The Android ID of the device. + * @param string $installId The ID of the product represented by the install, + * e.g. "app:com.google.android.gm". + * @param Google_Install $postBody + * @param array $optParams Optional parameters. + * @return Google_Service_AndroidEnterprise_Install + */ + public function update($enterpriseId, $userId, $deviceId, $installId, Google_Service_AndroidEnterprise_Install $postBody, $optParams = array()) + { + $params = array('enterpriseId' => $enterpriseId, 'userId' => $userId, 'deviceId' => $deviceId, 'installId' => $installId, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('update', array($params), "Google_Service_AndroidEnterprise_Install"); + } +} + +/** + * The "permissions" collection of methods. + * Typical usage is: + * + * $androidenterpriseService = new Google_Service_AndroidEnterprise(...); + * $permissions = $androidenterpriseService->permissions; + * + */ +class Google_Service_AndroidEnterprise_Permissions_Resource extends Google_Service_Resource +{ + + /** + * Retrieves details of an Android app permission for display to an enterprise + * admin. (permissions.get) + * + * @param string $permissionId The ID of the permission. + * @param array $optParams Optional parameters. + * + * @opt_param string language The BCP47 tag for the user's preferred language + * (e.g. "en-US", "de") + * @return Google_Service_AndroidEnterprise_Permission + */ + public function get($permissionId, $optParams = array()) + { + $params = array('permissionId' => $permissionId); + $params = array_merge($params, $optParams); + return $this->call('get', array($params), "Google_Service_AndroidEnterprise_Permission"); + } +} + +/** + * The "products" collection of methods. + * Typical usage is: + * + * $androidenterpriseService = new Google_Service_AndroidEnterprise(...); + * $products = $androidenterpriseService->products; + * + */ +class Google_Service_AndroidEnterprise_Products_Resource extends Google_Service_Resource +{ + + /** + * Approves the specified product (and the relevant app permissions, if any). + * (products.approve) + * + * @param string $enterpriseId The ID of the enterprise. + * @param string $productId The ID of the product. + * @param Google_ProductsApproveRequest $postBody + * @param array $optParams Optional parameters. + */ + public function approve($enterpriseId, $productId, Google_Service_AndroidEnterprise_ProductsApproveRequest $postBody, $optParams = array()) + { + $params = array('enterpriseId' => $enterpriseId, 'productId' => $productId, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('approve', array($params)); + } + + /** + * Generates a URL that can be used to display an iframe to view the product's + * permissions (if any) and approve the product. This URL can be used to approve + * the product for a limited time (currently 1 hour) using the Products.approve + * call. (products.generateApprovalUrl) + * + * @param string $enterpriseId The ID of the enterprise. + * @param string $productId The ID of the product. + * @param array $optParams Optional parameters. + * + * @opt_param string languageCode The language code that will be used for + * permission names and descriptions in the returned iframe. + * @return Google_Service_AndroidEnterprise_ProductsGenerateApprovalUrlResponse + */ + public function generateApprovalUrl($enterpriseId, $productId, $optParams = array()) + { + $params = array('enterpriseId' => $enterpriseId, 'productId' => $productId); + $params = array_merge($params, $optParams); + return $this->call('generateApprovalUrl', array($params), "Google_Service_AndroidEnterprise_ProductsGenerateApprovalUrlResponse"); + } + + /** + * Retrieves details of a product for display to an enterprise admin. + * (products.get) + * + * @param string $enterpriseId The ID of the enterprise. + * @param string $productId The ID of the product, e.g. + * "app:com.google.android.gm". + * @param array $optParams Optional parameters. + * + * @opt_param string language The BCP47 tag for the user's preferred language + * (e.g. "en-US", "de"). + * @return Google_Service_AndroidEnterprise_Product + */ + public function get($enterpriseId, $productId, $optParams = array()) + { + $params = array('enterpriseId' => $enterpriseId, 'productId' => $productId); + $params = array_merge($params, $optParams); + return $this->call('get', array($params), "Google_Service_AndroidEnterprise_Product"); + } + + /** + * Retrieves the schema defining app restrictions configurable for this product. + * All products have a schema, but this may be empty if no app restrictions are + * defined. (products.getAppRestrictionsSchema) + * + * @param string $enterpriseId The ID of the enterprise. + * @param string $productId The ID of the product. + * @param array $optParams Optional parameters. + * + * @opt_param string language The BCP47 tag for the user's preferred language + * (e.g. "en-US", "de"). + * @return Google_Service_AndroidEnterprise_AppRestrictionsSchema + */ + public function getAppRestrictionsSchema($enterpriseId, $productId, $optParams = array()) + { + $params = array('enterpriseId' => $enterpriseId, 'productId' => $productId); + $params = array_merge($params, $optParams); + return $this->call('getAppRestrictionsSchema', array($params), "Google_Service_AndroidEnterprise_AppRestrictionsSchema"); + } + + /** + * Retrieves the Android app permissions required by this app. + * (products.getPermissions) + * + * @param string $enterpriseId The ID of the enterprise. + * @param string $productId The ID of the product. + * @param array $optParams Optional parameters. + * @return Google_Service_AndroidEnterprise_ProductPermissions + */ + public function getPermissions($enterpriseId, $productId, $optParams = array()) + { + $params = array('enterpriseId' => $enterpriseId, 'productId' => $productId); + $params = array_merge($params, $optParams); + return $this->call('getPermissions', array($params), "Google_Service_AndroidEnterprise_ProductPermissions"); + } + + /** + * Updates the set of Android app permissions for this app that have been + * accepted by the enterprise. (products.updatePermissions) + * + * @param string $enterpriseId The ID of the enterprise. + * @param string $productId The ID of the product. + * @param Google_ProductPermissions $postBody + * @param array $optParams Optional parameters. + * @return Google_Service_AndroidEnterprise_ProductPermissions + */ + public function updatePermissions($enterpriseId, $productId, Google_Service_AndroidEnterprise_ProductPermissions $postBody, $optParams = array()) + { + $params = array('enterpriseId' => $enterpriseId, 'productId' => $productId, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('updatePermissions', array($params), "Google_Service_AndroidEnterprise_ProductPermissions"); + } +} + +/** + * The "users" collection of methods. + * Typical usage is: + * + * $androidenterpriseService = new Google_Service_AndroidEnterprise(...); + * $users = $androidenterpriseService->users; + * + */ +class Google_Service_AndroidEnterprise_Users_Resource extends Google_Service_Resource +{ + + /** + * Generates a token (activation code) to allow this user to configure their + * work account in the Android Setup Wizard. Revokes any previously generated + * token. (users.generateToken) + * + * @param string $enterpriseId The ID of the enterprise. + * @param string $userId The ID of the user. + * @param array $optParams Optional parameters. + * @return Google_Service_AndroidEnterprise_UserToken + */ + public function generateToken($enterpriseId, $userId, $optParams = array()) + { + $params = array('enterpriseId' => $enterpriseId, 'userId' => $userId); + $params = array_merge($params, $optParams); + return $this->call('generateToken', array($params), "Google_Service_AndroidEnterprise_UserToken"); + } + + /** + * Retrieves a user's details. (users.get) + * + * @param string $enterpriseId The ID of the enterprise. + * @param string $userId The ID of the user. + * @param array $optParams Optional parameters. + * @return Google_Service_AndroidEnterprise_User + */ + public function get($enterpriseId, $userId, $optParams = array()) + { + $params = array('enterpriseId' => $enterpriseId, 'userId' => $userId); + $params = array_merge($params, $optParams); + return $this->call('get', array($params), "Google_Service_AndroidEnterprise_User"); + } + + /** + * Looks up a user by email address. (users.listUsers) + * + * @param string $enterpriseId The ID of the enterprise. + * @param string $email The exact primary email address of the user to look up. + * @param array $optParams Optional parameters. + * @return Google_Service_AndroidEnterprise_UsersListResponse + */ + public function listUsers($enterpriseId, $email, $optParams = array()) + { + $params = array('enterpriseId' => $enterpriseId, 'email' => $email); + $params = array_merge($params, $optParams); + return $this->call('list', array($params), "Google_Service_AndroidEnterprise_UsersListResponse"); + } + + /** + * Revokes a previously generated token (activation code) for the user. + * (users.revokeToken) + * + * @param string $enterpriseId The ID of the enterprise. + * @param string $userId The ID of the user. + * @param array $optParams Optional parameters. + */ + public function revokeToken($enterpriseId, $userId, $optParams = array()) + { + $params = array('enterpriseId' => $enterpriseId, 'userId' => $userId); + $params = array_merge($params, $optParams); + return $this->call('revokeToken', array($params)); + } +} + + + + +class Google_Service_AndroidEnterprise_AppRestrictionsSchema extends Google_Collection +{ + protected $collection_key = 'restrictions'; + protected $internal_gapi_mappings = array( + ); + protected $restrictionsType = 'Google_Service_AndroidEnterprise_AppRestrictionsSchemaRestriction'; + protected $restrictionsDataType = 'array'; + + + public function setRestrictions($restrictions) + { + $this->restrictions = $restrictions; + } + public function getRestrictions() + { + return $this->restrictions; + } +} + +class Google_Service_AndroidEnterprise_AppRestrictionsSchemaRestriction extends Google_Collection +{ + protected $collection_key = 'entryValue'; + protected $internal_gapi_mappings = array( + ); + protected $defaultValueType = 'Google_Service_AndroidEnterprise_AppRestrictionsSchemaRestrictionRestrictionValue'; + protected $defaultValueDataType = ''; + public $description; + public $entry; + public $entryValue; + public $key; + public $restrictionType; + public $title; + + + public function setDefaultValue(Google_Service_AndroidEnterprise_AppRestrictionsSchemaRestrictionRestrictionValue $defaultValue) + { + $this->defaultValue = $defaultValue; + } + public function getDefaultValue() + { + return $this->defaultValue; + } + public function setDescription($description) + { + $this->description = $description; + } + public function getDescription() + { + return $this->description; + } + public function setEntry($entry) + { + $this->entry = $entry; + } + public function getEntry() + { + return $this->entry; + } + public function setEntryValue($entryValue) + { + $this->entryValue = $entryValue; + } + public function getEntryValue() + { + return $this->entryValue; + } + public function setKey($key) + { + $this->key = $key; + } + public function getKey() + { + return $this->key; + } + public function setRestrictionType($restrictionType) + { + $this->restrictionType = $restrictionType; + } + public function getRestrictionType() + { + return $this->restrictionType; + } + public function setTitle($title) + { + $this->title = $title; + } + public function getTitle() + { + return $this->title; + } +} + +class Google_Service_AndroidEnterprise_AppRestrictionsSchemaRestrictionRestrictionValue extends Google_Collection +{ + protected $collection_key = 'valueMultiselect'; + protected $internal_gapi_mappings = array( + ); + public $type; + public $valueBool; + public $valueInteger; + public $valueMultiselect; + public $valueString; + + + public function setType($type) + { + $this->type = $type; + } + public function getType() + { + return $this->type; + } + public function setValueBool($valueBool) + { + $this->valueBool = $valueBool; + } + public function getValueBool() + { + return $this->valueBool; + } + public function setValueInteger($valueInteger) + { + $this->valueInteger = $valueInteger; + } + public function getValueInteger() + { + return $this->valueInteger; + } + public function setValueMultiselect($valueMultiselect) + { + $this->valueMultiselect = $valueMultiselect; + } + public function getValueMultiselect() + { + return $this->valueMultiselect; + } + public function setValueString($valueString) + { + $this->valueString = $valueString; + } + public function getValueString() + { + return $this->valueString; + } +} + +class Google_Service_AndroidEnterprise_AppVersion extends Google_Model +{ + protected $internal_gapi_mappings = array( + ); + public $versionCode; + public $versionString; + + + public function setVersionCode($versionCode) + { + $this->versionCode = $versionCode; + } + public function getVersionCode() + { + return $this->versionCode; + } + public function setVersionString($versionString) + { + $this->versionString = $versionString; + } + public function getVersionString() + { + return $this->versionString; + } +} + +class Google_Service_AndroidEnterprise_ApprovalUrlInfo extends Google_Model +{ + protected $internal_gapi_mappings = array( + ); + public $approvalUrl; + public $kind; + + + public function setApprovalUrl($approvalUrl) + { + $this->approvalUrl = $approvalUrl; + } + public function getApprovalUrl() + { + return $this->approvalUrl; + } + public function setKind($kind) + { + $this->kind = $kind; + } + public function getKind() + { + return $this->kind; + } +} + +class Google_Service_AndroidEnterprise_Collection extends Google_Collection +{ + protected $collection_key = 'productId'; + protected $internal_gapi_mappings = array( + ); + public $collectionId; + public $kind; + public $name; + public $productId; + public $visibility; + + + public function setCollectionId($collectionId) + { + $this->collectionId = $collectionId; + } + public function getCollectionId() + { + return $this->collectionId; + } + public function setKind($kind) + { + $this->kind = $kind; + } + public function getKind() + { + return $this->kind; + } + public function setName($name) + { + $this->name = $name; + } + public function getName() + { + return $this->name; + } + public function setProductId($productId) + { + $this->productId = $productId; + } + public function getProductId() + { + return $this->productId; + } + public function setVisibility($visibility) + { + $this->visibility = $visibility; + } + public function getVisibility() + { + return $this->visibility; + } +} + +class Google_Service_AndroidEnterprise_CollectionViewersListResponse extends Google_Collection +{ + protected $collection_key = 'user'; + protected $internal_gapi_mappings = array( + ); + public $kind; + protected $userType = 'Google_Service_AndroidEnterprise_User'; + protected $userDataType = 'array'; + + + public function setKind($kind) + { + $this->kind = $kind; + } + public function getKind() + { + return $this->kind; + } + public function setUser($user) + { + $this->user = $user; + } + public function getUser() + { + return $this->user; + } +} + +class Google_Service_AndroidEnterprise_CollectionsListResponse extends Google_Collection +{ + protected $collection_key = 'collection'; + protected $internal_gapi_mappings = array( + ); + protected $collectionType = 'Google_Service_AndroidEnterprise_Collection'; + protected $collectionDataType = 'array'; + public $kind; + + + public function setCollection($collection) + { + $this->collection = $collection; + } + public function getCollection() + { + return $this->collection; + } + public function setKind($kind) + { + $this->kind = $kind; + } + public function getKind() + { + return $this->kind; + } +} + +class Google_Service_AndroidEnterprise_Device extends Google_Model +{ + protected $internal_gapi_mappings = array( + ); + public $androidId; + public $kind; + public $managementType; + + + public function setAndroidId($androidId) + { + $this->androidId = $androidId; + } + public function getAndroidId() + { + return $this->androidId; + } + public function setKind($kind) + { + $this->kind = $kind; + } + public function getKind() + { + return $this->kind; + } + public function setManagementType($managementType) + { + $this->managementType = $managementType; + } + public function getManagementType() + { + return $this->managementType; + } +} + +class Google_Service_AndroidEnterprise_DeviceState extends Google_Model +{ + protected $internal_gapi_mappings = array( + ); + public $accountState; + public $kind; + + + public function setAccountState($accountState) + { + $this->accountState = $accountState; + } + public function getAccountState() + { + return $this->accountState; + } + public function setKind($kind) + { + $this->kind = $kind; + } + public function getKind() + { + return $this->kind; + } +} + +class Google_Service_AndroidEnterprise_DevicesListResponse extends Google_Collection +{ + protected $collection_key = 'device'; + protected $internal_gapi_mappings = array( + ); + protected $deviceType = 'Google_Service_AndroidEnterprise_Device'; + protected $deviceDataType = 'array'; + public $kind; + + + public function setDevice($device) + { + $this->device = $device; + } + public function getDevice() + { + return $this->device; + } + public function setKind($kind) + { + $this->kind = $kind; + } + public function getKind() + { + return $this->kind; + } +} + +class Google_Service_AndroidEnterprise_Enterprise extends Google_Model +{ + protected $internal_gapi_mappings = array( + ); + public $id; + public $kind; + public $name; + public $primaryDomain; + + + public function setId($id) + { + $this->id = $id; + } + public function getId() + { + return $this->id; + } + public function setKind($kind) + { + $this->kind = $kind; + } + public function getKind() + { + return $this->kind; + } + public function setName($name) + { + $this->name = $name; + } + public function getName() + { + return $this->name; + } + public function setPrimaryDomain($primaryDomain) + { + $this->primaryDomain = $primaryDomain; + } + public function getPrimaryDomain() + { + return $this->primaryDomain; + } +} + +class Google_Service_AndroidEnterprise_EnterpriseAccount extends Google_Model +{ + protected $internal_gapi_mappings = array( + ); + public $accountEmail; + public $kind; + + + public function setAccountEmail($accountEmail) + { + $this->accountEmail = $accountEmail; + } + public function getAccountEmail() + { + return $this->accountEmail; + } + public function setKind($kind) + { + $this->kind = $kind; + } + public function getKind() + { + return $this->kind; + } +} + +class Google_Service_AndroidEnterprise_EnterprisesListResponse extends Google_Collection +{ + protected $collection_key = 'enterprise'; + protected $internal_gapi_mappings = array( + ); + protected $enterpriseType = 'Google_Service_AndroidEnterprise_Enterprise'; + protected $enterpriseDataType = 'array'; + public $kind; + + + public function setEnterprise($enterprise) + { + $this->enterprise = $enterprise; + } + public function getEnterprise() + { + return $this->enterprise; + } + public function setKind($kind) + { + $this->kind = $kind; + } + public function getKind() + { + return $this->kind; + } +} + +class Google_Service_AndroidEnterprise_Entitlement extends Google_Model +{ + protected $internal_gapi_mappings = array( + ); + public $kind; + public $productId; + public $reason; + + + public function setKind($kind) + { + $this->kind = $kind; + } + public function getKind() + { + return $this->kind; + } + public function setProductId($productId) + { + $this->productId = $productId; + } + public function getProductId() + { + return $this->productId; + } + public function setReason($reason) + { + $this->reason = $reason; + } + public function getReason() + { + return $this->reason; + } +} + +class Google_Service_AndroidEnterprise_EntitlementsListResponse extends Google_Collection +{ + protected $collection_key = 'entitlement'; + protected $internal_gapi_mappings = array( + ); + protected $entitlementType = 'Google_Service_AndroidEnterprise_Entitlement'; + protected $entitlementDataType = 'array'; + public $kind; + + + public function setEntitlement($entitlement) + { + $this->entitlement = $entitlement; + } + public function getEntitlement() + { + return $this->entitlement; + } + public function setKind($kind) + { + $this->kind = $kind; + } + public function getKind() + { + return $this->kind; + } +} + +class Google_Service_AndroidEnterprise_GroupLicense extends Google_Model +{ + protected $internal_gapi_mappings = array( + ); + public $acquisitionKind; + public $approval; + public $kind; + public $numProvisioned; + public $numPurchased; + public $productId; + + + public function setAcquisitionKind($acquisitionKind) + { + $this->acquisitionKind = $acquisitionKind; + } + public function getAcquisitionKind() + { + return $this->acquisitionKind; + } + public function setApproval($approval) + { + $this->approval = $approval; + } + public function getApproval() + { + return $this->approval; + } + public function setKind($kind) + { + $this->kind = $kind; + } + public function getKind() + { + return $this->kind; + } + public function setNumProvisioned($numProvisioned) + { + $this->numProvisioned = $numProvisioned; + } + public function getNumProvisioned() + { + return $this->numProvisioned; + } + public function setNumPurchased($numPurchased) + { + $this->numPurchased = $numPurchased; + } + public function getNumPurchased() + { + return $this->numPurchased; + } + public function setProductId($productId) + { + $this->productId = $productId; + } + public function getProductId() + { + return $this->productId; + } +} + +class Google_Service_AndroidEnterprise_GroupLicenseUsersListResponse extends Google_Collection +{ + protected $collection_key = 'user'; + protected $internal_gapi_mappings = array( + ); + public $kind; + protected $userType = 'Google_Service_AndroidEnterprise_User'; + protected $userDataType = 'array'; + + + public function setKind($kind) + { + $this->kind = $kind; + } + public function getKind() + { + return $this->kind; + } + public function setUser($user) + { + $this->user = $user; + } + public function getUser() + { + return $this->user; + } +} + +class Google_Service_AndroidEnterprise_GroupLicensesListResponse extends Google_Collection +{ + protected $collection_key = 'groupLicense'; + protected $internal_gapi_mappings = array( + ); + protected $groupLicenseType = 'Google_Service_AndroidEnterprise_GroupLicense'; + protected $groupLicenseDataType = 'array'; + public $kind; + + + public function setGroupLicense($groupLicense) + { + $this->groupLicense = $groupLicense; + } + public function getGroupLicense() + { + return $this->groupLicense; + } + public function setKind($kind) + { + $this->kind = $kind; + } + public function getKind() + { + return $this->kind; + } +} + +class Google_Service_AndroidEnterprise_Install extends Google_Model +{ + protected $internal_gapi_mappings = array( + ); + public $installState; + public $kind; + public $productId; + public $versionCode; + + + public function setInstallState($installState) + { + $this->installState = $installState; + } + public function getInstallState() + { + return $this->installState; + } + public function setKind($kind) + { + $this->kind = $kind; + } + public function getKind() + { + return $this->kind; + } + public function setProductId($productId) + { + $this->productId = $productId; + } + public function getProductId() + { + return $this->productId; + } + public function setVersionCode($versionCode) + { + $this->versionCode = $versionCode; + } + public function getVersionCode() + { + return $this->versionCode; + } +} + +class Google_Service_AndroidEnterprise_InstallsListResponse extends Google_Collection +{ + protected $collection_key = 'install'; + protected $internal_gapi_mappings = array( + ); + protected $installType = 'Google_Service_AndroidEnterprise_Install'; + protected $installDataType = 'array'; + public $kind; + + + public function setInstall($install) + { + $this->install = $install; + } + public function getInstall() + { + return $this->install; + } + public function setKind($kind) + { + $this->kind = $kind; + } + public function getKind() + { + return $this->kind; + } +} + +class Google_Service_AndroidEnterprise_Permission extends Google_Model +{ + protected $internal_gapi_mappings = array( + ); + public $description; + public $kind; + public $name; + public $permissionId; + + + public function setDescription($description) + { + $this->description = $description; + } + public function getDescription() + { + return $this->description; + } + public function setKind($kind) + { + $this->kind = $kind; + } + public function getKind() + { + return $this->kind; + } + public function setName($name) + { + $this->name = $name; + } + public function getName() + { + return $this->name; + } + public function setPermissionId($permissionId) + { + $this->permissionId = $permissionId; + } + public function getPermissionId() + { + return $this->permissionId; + } +} + +class Google_Service_AndroidEnterprise_Product extends Google_Collection +{ + protected $collection_key = 'appVersion'; + protected $internal_gapi_mappings = array( + ); + protected $appVersionType = 'Google_Service_AndroidEnterprise_AppVersion'; + protected $appVersionDataType = 'array'; + public $authorName; + public $detailsUrl; + public $distributionChannel; + public $iconUrl; + public $kind; + public $productId; + public $requiresContainerApp; + public $title; + public $workDetailsUrl; + + + public function setAppVersion($appVersion) + { + $this->appVersion = $appVersion; + } + public function getAppVersion() + { + return $this->appVersion; + } + public function setAuthorName($authorName) + { + $this->authorName = $authorName; + } + public function getAuthorName() + { + return $this->authorName; + } + public function setDetailsUrl($detailsUrl) + { + $this->detailsUrl = $detailsUrl; + } + public function getDetailsUrl() + { + return $this->detailsUrl; + } + public function setDistributionChannel($distributionChannel) + { + $this->distributionChannel = $distributionChannel; + } + public function getDistributionChannel() + { + return $this->distributionChannel; + } + public function setIconUrl($iconUrl) + { + $this->iconUrl = $iconUrl; + } + public function getIconUrl() + { + return $this->iconUrl; + } + public function setKind($kind) + { + $this->kind = $kind; + } + public function getKind() + { + return $this->kind; + } + public function setProductId($productId) + { + $this->productId = $productId; + } + public function getProductId() + { + return $this->productId; + } + public function setRequiresContainerApp($requiresContainerApp) + { + $this->requiresContainerApp = $requiresContainerApp; + } + public function getRequiresContainerApp() + { + return $this->requiresContainerApp; + } + public function setTitle($title) + { + $this->title = $title; + } + public function getTitle() + { + return $this->title; + } + public function setWorkDetailsUrl($workDetailsUrl) + { + $this->workDetailsUrl = $workDetailsUrl; + } + public function getWorkDetailsUrl() + { + return $this->workDetailsUrl; + } +} + +class Google_Service_AndroidEnterprise_ProductPermission extends Google_Model +{ + protected $internal_gapi_mappings = array( + ); + public $permissionId; + public $state; + + + public function setPermissionId($permissionId) + { + $this->permissionId = $permissionId; + } + public function getPermissionId() + { + return $this->permissionId; + } + public function setState($state) + { + $this->state = $state; + } + public function getState() + { + return $this->state; + } +} + +class Google_Service_AndroidEnterprise_ProductPermissions extends Google_Collection +{ + protected $collection_key = 'permission'; + protected $internal_gapi_mappings = array( + ); + public $kind; + protected $permissionType = 'Google_Service_AndroidEnterprise_ProductPermission'; + protected $permissionDataType = 'array'; + public $productId; + + + public function setKind($kind) + { + $this->kind = $kind; + } + public function getKind() + { + return $this->kind; + } + public function setPermission($permission) + { + $this->permission = $permission; + } + public function getPermission() + { + return $this->permission; + } + public function setProductId($productId) + { + $this->productId = $productId; + } + public function getProductId() + { + return $this->productId; + } +} + +class Google_Service_AndroidEnterprise_ProductsApproveRequest extends Google_Model +{ + protected $internal_gapi_mappings = array( + ); + protected $approvalUrlInfoType = 'Google_Service_AndroidEnterprise_ApprovalUrlInfo'; + protected $approvalUrlInfoDataType = ''; + + + public function setApprovalUrlInfo(Google_Service_AndroidEnterprise_ApprovalUrlInfo $approvalUrlInfo) + { + $this->approvalUrlInfo = $approvalUrlInfo; + } + public function getApprovalUrlInfo() + { + return $this->approvalUrlInfo; + } +} + +class Google_Service_AndroidEnterprise_ProductsGenerateApprovalUrlResponse extends Google_Model +{ + protected $internal_gapi_mappings = array( + ); + public $url; + + + public function setUrl($url) + { + $this->url = $url; + } + public function getUrl() + { + return $this->url; + } +} + +class Google_Service_AndroidEnterprise_User extends Google_Model +{ + protected $internal_gapi_mappings = array( + ); + public $id; + public $kind; + public $primaryEmail; + + + public function setId($id) + { + $this->id = $id; + } + public function getId() + { + return $this->id; + } + public function setKind($kind) + { + $this->kind = $kind; + } + public function getKind() + { + return $this->kind; + } + public function setPrimaryEmail($primaryEmail) + { + $this->primaryEmail = $primaryEmail; + } + public function getPrimaryEmail() + { + return $this->primaryEmail; + } +} + +class Google_Service_AndroidEnterprise_UserToken extends Google_Model +{ + protected $internal_gapi_mappings = array( + ); + public $kind; + public $token; + public $userId; + + + public function setKind($kind) + { + $this->kind = $kind; + } + public function getKind() + { + return $this->kind; + } + public function setToken($token) + { + $this->token = $token; + } + public function getToken() + { + return $this->token; + } + public function setUserId($userId) + { + $this->userId = $userId; + } + public function getUserId() + { + return $this->userId; + } +} + +class Google_Service_AndroidEnterprise_UsersListResponse extends Google_Collection +{ + protected $collection_key = 'user'; + protected $internal_gapi_mappings = array( + ); + public $kind; + protected $userType = 'Google_Service_AndroidEnterprise_User'; + protected $userDataType = 'array'; + + + public function setKind($kind) + { + $this->kind = $kind; + } + public function getKind() + { + return $this->kind; + } + public function setUser($user) + { + $this->user = $user; + } + public function getUser() + { + return $this->user; + } +} diff --git a/lib/google/src/Google/Service/AndroidPublisher.php b/lib/google/src/Google/Service/AndroidPublisher.php index c3e4a588792..8b211a2777b 100644 --- a/lib/google/src/Google/Service/AndroidPublisher.php +++ b/lib/google/src/Google/Service/AndroidPublisher.php @@ -30,7 +30,7 @@ */ class Google_Service_AndroidPublisher extends Google_Service { - /** View and manage your Google Play Android Developer account. */ + /** View and manage your Google Play Developer account. */ const ANDROIDPUBLISHER = "https://www.googleapis.com/auth/androidpublisher"; @@ -43,6 +43,7 @@ class Google_Service_AndroidPublisher extends Google_Service public $edits_listings; public $edits_testers; public $edits_tracks; + public $entitlements; public $inappproducts; public $purchases_products; public $purchases_subscriptions; @@ -56,6 +57,7 @@ class Google_Service_AndroidPublisher extends Google_Service public function __construct(Google_Client $client) { parent::__construct($client); + $this->rootUrl = 'https://www.googleapis.com/'; $this->servicePath = 'androidpublisher/v2/applications/'; $this->version = 'v2'; $this->serviceName = 'androidpublisher'; @@ -296,7 +298,22 @@ class Google_Service_AndroidPublisher extends Google_Service 'apks', array( 'methods' => array( - 'list' => array( + 'addexternallyhosted' => array( + 'path' => '{packageName}/edits/{editId}/apks/externallyHosted', + 'httpMethod' => 'POST', + 'parameters' => array( + 'packageName' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'editId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ),'list' => array( 'path' => '{packageName}/edits/{editId}/apks', 'httpMethod' => 'GET', 'parameters' => array( @@ -885,6 +902,42 @@ class Google_Service_AndroidPublisher extends Google_Service ) ) ); + $this->entitlements = new Google_Service_AndroidPublisher_Entitlements_Resource( + $this, + $this->serviceName, + 'entitlements', + array( + 'methods' => array( + 'list' => array( + 'path' => '{packageName}/entitlements', + 'httpMethod' => 'GET', + 'parameters' => array( + 'packageName' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'token' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'startIndex' => array( + 'location' => 'query', + 'type' => 'integer', + ), + 'maxResults' => array( + 'location' => 'query', + 'type' => 'integer', + ), + 'productId' => array( + 'location' => 'query', + 'type' => 'string', + ), + ), + ), + ) + ) + ); $this->inappproducts = new Google_Service_AndroidPublisher_Inappproducts_Resource( $this, $this->serviceName, @@ -1391,6 +1444,26 @@ class Google_Service_AndroidPublisher_EditsApklistings_Resource extends Google_S class Google_Service_AndroidPublisher_EditsApks_Resource extends Google_Service_Resource { + /** + * Creates a new APK without uploading the APK itself to Google Play, instead + * hosting the APK at a specified URL. This function is only available to + * enterprises using Google Play for Work whose application is configured to + * restrict distribution to the enterprise domain. (apks.addexternallyhosted) + * + * @param string $packageName Unique identifier for the Android app that is + * being updated; for example, "com.spiffygame". + * @param string $editId Unique identifier for this edit. + * @param Google_ApksAddExternallyHostedRequest $postBody + * @param array $optParams Optional parameters. + * @return Google_Service_AndroidPublisher_ApksAddExternallyHostedResponse + */ + public function addexternallyhosted($packageName, $editId, Google_Service_AndroidPublisher_ApksAddExternallyHostedRequest $postBody, $optParams = array()) + { + $params = array('packageName' => $packageName, 'editId' => $editId, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('addexternallyhosted', array($params), "Google_Service_AndroidPublisher_ApksAddExternallyHostedResponse"); + } + /** * (apks.listEditsApks) * @@ -1907,8 +1980,10 @@ class Google_Service_AndroidPublisher_EditsTracks_Resource extends Google_Servic } /** - * Updates the track configuration for the specified track type. This method - * supports patch semantics. (tracks.patch) + * Updates the track configuration for the specified track type. When halted, + * the rollout track cannot be updated without adding new APKs, and adding new + * APKs will cause it to resume. This method supports patch semantics. + * (tracks.patch) * * @param string $packageName Unique identifier for the Android app that is * being updated; for example, "com.spiffygame". @@ -1926,7 +2001,9 @@ class Google_Service_AndroidPublisher_EditsTracks_Resource extends Google_Servic } /** - * Updates the track configuration for the specified track type. (tracks.update) + * Updates the track configuration for the specified track type. When halted, + * the rollout track cannot be updated without adding new APKs, and adding new + * APKs will cause it to resume. (tracks.update) * * @param string $packageName Unique identifier for the Android app that is * being updated; for example, "com.spiffygame". @@ -1944,6 +2021,40 @@ class Google_Service_AndroidPublisher_EditsTracks_Resource extends Google_Servic } } +/** + * The "entitlements" collection of methods. + * Typical usage is: + * + * $androidpublisherService = new Google_Service_AndroidPublisher(...); + * $entitlements = $androidpublisherService->entitlements; + * + */ +class Google_Service_AndroidPublisher_Entitlements_Resource extends Google_Service_Resource +{ + + /** + * Lists the user's current inapp item or subscription entitlements + * (entitlements.listEntitlements) + * + * @param string $packageName The package name of the application the inapp + * product was sold in (for example, 'com.some.thing'). + * @param array $optParams Optional parameters. + * + * @opt_param string token + * @opt_param string startIndex + * @opt_param string maxResults + * @opt_param string productId The product id of the inapp product (for example, + * 'sku1'). This can be used to restrict the result set. + * @return Google_Service_AndroidPublisher_EntitlementsListResponse + */ + public function listEntitlements($packageName, $optParams = array()) + { + $params = array('packageName' => $packageName); + $params = array_merge($params, $optParams); + return $this->call('list', array($params), "Google_Service_AndroidPublisher_EntitlementsListResponse"); + } +} + /** * The "inappproducts" collection of methods. * Typical usage is: @@ -2341,6 +2452,42 @@ class Google_Service_AndroidPublisher_ApkListingsListResponse extends Google_Col } } +class Google_Service_AndroidPublisher_ApksAddExternallyHostedRequest extends Google_Model +{ + protected $internal_gapi_mappings = array( + ); + protected $externallyHostedApkType = 'Google_Service_AndroidPublisher_ExternallyHostedApk'; + protected $externallyHostedApkDataType = ''; + + + public function setExternallyHostedApk(Google_Service_AndroidPublisher_ExternallyHostedApk $externallyHostedApk) + { + $this->externallyHostedApk = $externallyHostedApk; + } + public function getExternallyHostedApk() + { + return $this->externallyHostedApk; + } +} + +class Google_Service_AndroidPublisher_ApksAddExternallyHostedResponse extends Google_Model +{ + protected $internal_gapi_mappings = array( + ); + protected $externallyHostedApkType = 'Google_Service_AndroidPublisher_ExternallyHostedApk'; + protected $externallyHostedApkDataType = ''; + + + public function setExternallyHostedApk(Google_Service_AndroidPublisher_ExternallyHostedApk $externallyHostedApk) + { + $this->externallyHostedApk = $externallyHostedApk; + } + public function getExternallyHostedApk() + { + return $this->externallyHostedApk; + } +} + class Google_Service_AndroidPublisher_ApksListResponse extends Google_Collection { protected $collection_key = 'apks'; @@ -2439,6 +2586,89 @@ class Google_Service_AndroidPublisher_AppEdit extends Google_Model } } +class Google_Service_AndroidPublisher_Entitlement extends Google_Model +{ + protected $internal_gapi_mappings = array( + ); + public $kind; + public $productId; + public $productType; + public $token; + + + public function setKind($kind) + { + $this->kind = $kind; + } + public function getKind() + { + return $this->kind; + } + public function setProductId($productId) + { + $this->productId = $productId; + } + public function getProductId() + { + return $this->productId; + } + public function setProductType($productType) + { + $this->productType = $productType; + } + public function getProductType() + { + return $this->productType; + } + public function setToken($token) + { + $this->token = $token; + } + public function getToken() + { + return $this->token; + } +} + +class Google_Service_AndroidPublisher_EntitlementsListResponse extends Google_Collection +{ + protected $collection_key = 'resources'; + protected $internal_gapi_mappings = array( + ); + protected $pageInfoType = 'Google_Service_AndroidPublisher_PageInfo'; + protected $pageInfoDataType = ''; + protected $resourcesType = 'Google_Service_AndroidPublisher_Entitlement'; + protected $resourcesDataType = 'array'; + protected $tokenPaginationType = 'Google_Service_AndroidPublisher_TokenPagination'; + protected $tokenPaginationDataType = ''; + + + public function setPageInfo(Google_Service_AndroidPublisher_PageInfo $pageInfo) + { + $this->pageInfo = $pageInfo; + } + public function getPageInfo() + { + return $this->pageInfo; + } + public function setResources($resources) + { + $this->resources = $resources; + } + public function getResources() + { + return $this->resources; + } + public function setTokenPagination(Google_Service_AndroidPublisher_TokenPagination $tokenPagination) + { + $this->tokenPagination = $tokenPagination; + } + public function getTokenPagination() + { + return $this->tokenPagination; + } +} + class Google_Service_AndroidPublisher_ExpansionFile extends Google_Model { protected $internal_gapi_mappings = array( @@ -2483,6 +2713,177 @@ class Google_Service_AndroidPublisher_ExpansionFilesUploadResponse extends Googl } } +class Google_Service_AndroidPublisher_ExternallyHostedApk extends Google_Collection +{ + protected $collection_key = 'usesPermissions'; + protected $internal_gapi_mappings = array( + ); + public $applicationLabel; + public $certificateBase64s; + public $externallyHostedUrl; + public $fileSha1Base64; + public $fileSha256Base64; + public $fileSize; + public $iconBase64; + public $maximumSdk; + public $minimumSdk; + public $nativeCodes; + public $packageName; + public $usesFeatures; + protected $usesPermissionsType = 'Google_Service_AndroidPublisher_ExternallyHostedApkUsesPermission'; + protected $usesPermissionsDataType = 'array'; + public $versionCode; + public $versionName; + + + public function setApplicationLabel($applicationLabel) + { + $this->applicationLabel = $applicationLabel; + } + public function getApplicationLabel() + { + return $this->applicationLabel; + } + public function setCertificateBase64s($certificateBase64s) + { + $this->certificateBase64s = $certificateBase64s; + } + public function getCertificateBase64s() + { + return $this->certificateBase64s; + } + public function setExternallyHostedUrl($externallyHostedUrl) + { + $this->externallyHostedUrl = $externallyHostedUrl; + } + public function getExternallyHostedUrl() + { + return $this->externallyHostedUrl; + } + public function setFileSha1Base64($fileSha1Base64) + { + $this->fileSha1Base64 = $fileSha1Base64; + } + public function getFileSha1Base64() + { + return $this->fileSha1Base64; + } + public function setFileSha256Base64($fileSha256Base64) + { + $this->fileSha256Base64 = $fileSha256Base64; + } + public function getFileSha256Base64() + { + return $this->fileSha256Base64; + } + public function setFileSize($fileSize) + { + $this->fileSize = $fileSize; + } + public function getFileSize() + { + return $this->fileSize; + } + public function setIconBase64($iconBase64) + { + $this->iconBase64 = $iconBase64; + } + public function getIconBase64() + { + return $this->iconBase64; + } + public function setMaximumSdk($maximumSdk) + { + $this->maximumSdk = $maximumSdk; + } + public function getMaximumSdk() + { + return $this->maximumSdk; + } + public function setMinimumSdk($minimumSdk) + { + $this->minimumSdk = $minimumSdk; + } + public function getMinimumSdk() + { + return $this->minimumSdk; + } + public function setNativeCodes($nativeCodes) + { + $this->nativeCodes = $nativeCodes; + } + public function getNativeCodes() + { + return $this->nativeCodes; + } + public function setPackageName($packageName) + { + $this->packageName = $packageName; + } + public function getPackageName() + { + return $this->packageName; + } + public function setUsesFeatures($usesFeatures) + { + $this->usesFeatures = $usesFeatures; + } + public function getUsesFeatures() + { + return $this->usesFeatures; + } + public function setUsesPermissions($usesPermissions) + { + $this->usesPermissions = $usesPermissions; + } + public function getUsesPermissions() + { + return $this->usesPermissions; + } + public function setVersionCode($versionCode) + { + $this->versionCode = $versionCode; + } + public function getVersionCode() + { + return $this->versionCode; + } + public function setVersionName($versionName) + { + $this->versionName = $versionName; + } + public function getVersionName() + { + return $this->versionName; + } +} + +class Google_Service_AndroidPublisher_ExternallyHostedApkUsesPermission extends Google_Model +{ + protected $internal_gapi_mappings = array( + ); + public $maxSdkVersion; + public $name; + + + public function setMaxSdkVersion($maxSdkVersion) + { + $this->maxSdkVersion = $maxSdkVersion; + } + public function getMaxSdkVersion() + { + return $this->maxSdkVersion; + } + public function setName($name) + { + $this->name = $name; + } + public function getName() + { + return $this->name; + } +} + class Google_Service_AndroidPublisher_Image extends Google_Model { protected $internal_gapi_mappings = array( diff --git a/lib/google/src/Google/Service/AppState.php b/lib/google/src/Google/Service/AppState.php index 7f3da5d6537..33edce5def5 100644 --- a/lib/google/src/Google/Service/AppState.php +++ b/lib/google/src/Google/Service/AppState.php @@ -45,6 +45,7 @@ class Google_Service_AppState extends Google_Service public function __construct(Google_Client $client) { parent::__construct($client); + $this->rootUrl = 'https://www.googleapis.com/'; $this->servicePath = 'appstate/v1/'; $this->version = 'v1'; $this->serviceName = 'appstate'; diff --git a/lib/google/src/Google/Service/Appsactivity.php b/lib/google/src/Google/Service/Appsactivity.php index 18713213a98..9a7de2ac63e 100644 --- a/lib/google/src/Google/Service/Appsactivity.php +++ b/lib/google/src/Google/Service/Appsactivity.php @@ -33,13 +33,16 @@ class Google_Service_Appsactivity extends Google_Service /** View the activity history of your Google Apps. */ const ACTIVITY = "https://www.googleapis.com/auth/activity"; - /** View and manage the files and documents in your Google Drive. */ + /** View and manage the files in your Google Drive. */ const DRIVE = "https://www.googleapis.com/auth/drive"; - /** View metadata for files and documents in your Google Drive. */ + /** View and manage metadata of files in your Google Drive. */ + const DRIVE_METADATA = + "https://www.googleapis.com/auth/drive.metadata"; + /** View metadata for files in your Google Drive. */ const DRIVE_METADATA_READONLY = "https://www.googleapis.com/auth/drive.metadata.readonly"; - /** View the files and documents in your Google Drive. */ + /** View the files in your Google Drive. */ const DRIVE_READONLY = "https://www.googleapis.com/auth/drive.readonly"; @@ -54,6 +57,7 @@ class Google_Service_Appsactivity extends Google_Service public function __construct(Google_Client $client) { parent::__construct($client); + $this->rootUrl = 'https://www.googleapis.com/'; $this->servicePath = 'appsactivity/v1/'; $this->version = 'v1'; $this->serviceName = 'appsactivity'; diff --git a/lib/google/src/Google/Service/Autoscaler.php b/lib/google/src/Google/Service/Autoscaler.php index 8d483329e29..c3d1c1938fc 100644 --- a/lib/google/src/Google/Service/Autoscaler.php +++ b/lib/google/src/Google/Service/Autoscaler.php @@ -51,6 +51,7 @@ class Google_Service_Autoscaler extends Google_Service public function __construct(Google_Client $client) { parent::__construct($client); + $this->rootUrl = 'https://www.googleapis.com/'; $this->servicePath = 'autoscaler/v1beta2/'; $this->version = 'v1beta2'; $this->serviceName = 'autoscaler'; diff --git a/lib/google/src/Google/Service/Bigquery.php b/lib/google/src/Google/Service/Bigquery.php index 71692fd53ad..00836164ef3 100644 --- a/lib/google/src/Google/Service/Bigquery.php +++ b/lib/google/src/Google/Service/Bigquery.php @@ -23,7 +23,7 @@ * *

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

* * @author Google, Inc. @@ -39,6 +39,9 @@ class Google_Service_Bigquery extends Google_Service /** View and manage your data across Google Cloud Platform services. */ const CLOUD_PLATFORM = "https://www.googleapis.com/auth/cloud-platform"; + /** View your data across Google Cloud Platform services. */ + const CLOUD_PLATFORM_READ_ONLY = + "https://www.googleapis.com/auth/cloud-platform.read-only"; /** Manage your data and permissions in Google Cloud Storage. */ const DEVSTORAGE_FULL_CONTROL = "https://www.googleapis.com/auth/devstorage.full_control"; @@ -64,6 +67,7 @@ class Google_Service_Bigquery extends Google_Service public function __construct(Google_Client $client) { parent::__construct($client); + $this->rootUrl = 'https://www.googleapis.com/'; $this->servicePath = 'bigquery/v2/'; $this->version = 'v2'; $this->serviceName = 'bigquery'; @@ -180,7 +184,22 @@ class Google_Service_Bigquery extends Google_Service 'jobs', array( 'methods' => array( - 'get' => array( + 'cancel' => array( + 'path' => 'project/{projectId}/jobs/{jobId}/cancel', + 'httpMethod' => 'POST', + 'parameters' => array( + 'projectId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'jobId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ),'get' => array( 'path' => 'projects/{projectId}/jobs/{jobId}', 'httpMethod' => 'GET', 'parameters' => array( @@ -561,9 +580,8 @@ class Google_Service_Bigquery_Datasets_Resource extends Google_Service_Resource } /** - * Lists all the datasets in the specified project to which the caller has read - * access; however, a project owner can list (but not necessarily get) all - * datasets in his project. (datasets.listDatasets) + * Lists all datasets in the specified project to which you have been granted + * the READER dataset role. (datasets.listDatasets) * * @param string $projectId Project ID of the datasets to be listed * @param array $optParams Optional parameters. @@ -631,7 +649,26 @@ class Google_Service_Bigquery_Jobs_Resource extends Google_Service_Resource { /** - * Retrieves the specified job by ID. (jobs.get) + * Requests that a job be cancelled. This call will return immediately, and the + * client will need to poll for the job status to see if the cancel completed + * successfully. Cancelled jobs may still incur costs. (jobs.cancel) + * + * @param string $projectId Project ID of the job to cancel + * @param string $jobId Job ID of the job to cancel + * @param array $optParams Optional parameters. + * @return Google_Service_Bigquery_JobCancelResponse + */ + public function cancel($projectId, $jobId, $optParams = array()) + { + $params = array('projectId' => $projectId, 'jobId' => $jobId); + $params = array_merge($params, $optParams); + return $this->call('cancel', array($params), "Google_Service_Bigquery_JobCancelResponse"); + } + + /** + * Returns information about a specific job. Job information is available for a + * six month period after creation. Requires that you're the person who ran the + * job, or have the Is Owner project role. (jobs.get) * * @param string $projectId Project ID of the requested job * @param string $jobId Job ID of the requested job @@ -653,9 +690,9 @@ class Google_Service_Bigquery_Jobs_Resource extends Google_Service_Resource * @param array $optParams Optional parameters. * * @opt_param string timeoutMs How long to wait for the query to complete, in - * milliseconds, before returning. Default is to return immediately. If the - * timeout passes before the job completes, the request will fail with a TIMEOUT - * error + * milliseconds, before returning. Default is 10 seconds. If the timeout passes + * before the job completes, the 'jobComplete' field in the response will be + * false * @opt_param string maxResults Maximum number of results to read * @opt_param string pageToken Page token, returned by a previous call, to * request the next page of results @@ -670,7 +707,8 @@ class Google_Service_Bigquery_Jobs_Resource extends Google_Service_Resource } /** - * Starts a new asynchronous job. (jobs.insert) + * Starts a new asynchronous job. Requires the Can View project role. + * (jobs.insert) * * @param string $projectId Project ID of the project that will be billed for * the job @@ -686,9 +724,11 @@ class Google_Service_Bigquery_Jobs_Resource extends Google_Service_Resource } /** - * Lists all the Jobs in the specified project that were started by the user. - * The job list returns in reverse chronological order of when the jobs were - * created, starting with the most recent job created. (jobs.listJobs) + * Lists all jobs that you started in the specified project. Job information is + * available for a six month period after creation. The job list is sorted in + * reverse chronological order, by job creation time. Requires the Can View + * project role, or the Is Owner project role if you set the allUsers property. + * (jobs.listJobs) * * @param string $projectId Project ID of the jobs to list * @param array $optParams Optional parameters. @@ -739,7 +779,7 @@ class Google_Service_Bigquery_Projects_Resource extends Google_Service_Resource { /** - * Lists the projects to which you have at least read access. + * Lists all projects to which you have been granted any project role. * (projects.listProjects) * * @param array $optParams Optional parameters. @@ -770,7 +810,7 @@ class Google_Service_Bigquery_Tabledata_Resource extends Google_Service_Resource /** * Streams data into BigQuery one record at a time without needing to run a load - * job. (tabledata.insertAll) + * job. Requires the WRITER dataset role. (tabledata.insertAll) * * @param string $projectId Project ID of the destination table. * @param string $datasetId Dataset ID of the destination table. @@ -787,7 +827,8 @@ class Google_Service_Bigquery_Tabledata_Resource extends Google_Service_Resource } /** - * Retrieves table data from a specified set of rows. (tabledata.listTabledata) + * Retrieves table data from a specified set of rows. Requires the READER + * dataset role. (tabledata.listTabledata) * * @param string $projectId Project ID of the table to read * @param string $datasetId Dataset ID of the table to read @@ -870,7 +911,8 @@ class Google_Service_Bigquery_Tables_Resource extends Google_Service_Resource } /** - * Lists all tables in the specified dataset. (tables.listTables) + * Lists all tables in the specified dataset. Requires the READER dataset role. + * (tables.listTables) * * @param string $projectId Project ID of the tables to list * @param string $datasetId Dataset ID of the tables to list @@ -931,6 +973,68 @@ class Google_Service_Bigquery_Tables_Resource extends Google_Service_Resource +class Google_Service_Bigquery_CsvOptions extends Google_Model +{ + protected $internal_gapi_mappings = array( + ); + public $allowJaggedRows; + public $allowQuotedNewlines; + public $encoding; + public $fieldDelimiter; + public $quote; + public $skipLeadingRows; + + + public function setAllowJaggedRows($allowJaggedRows) + { + $this->allowJaggedRows = $allowJaggedRows; + } + public function getAllowJaggedRows() + { + return $this->allowJaggedRows; + } + public function setAllowQuotedNewlines($allowQuotedNewlines) + { + $this->allowQuotedNewlines = $allowQuotedNewlines; + } + public function getAllowQuotedNewlines() + { + return $this->allowQuotedNewlines; + } + public function setEncoding($encoding) + { + $this->encoding = $encoding; + } + public function getEncoding() + { + return $this->encoding; + } + public function setFieldDelimiter($fieldDelimiter) + { + $this->fieldDelimiter = $fieldDelimiter; + } + public function getFieldDelimiter() + { + return $this->fieldDelimiter; + } + public function setQuote($quote) + { + $this->quote = $quote; + } + public function getQuote() + { + return $this->quote; + } + public function setSkipLeadingRows($skipLeadingRows) + { + $this->skipLeadingRows = $skipLeadingRows; + } + public function getSkipLeadingRows() + { + return $this->skipLeadingRows; + } +} + class Google_Service_Bigquery_Dataset extends Google_Collection { protected $collection_key = 'access'; @@ -941,12 +1045,14 @@ class Google_Service_Bigquery_Dataset extends Google_Collection public $creationTime; protected $datasetReferenceType = 'Google_Service_Bigquery_DatasetReference'; protected $datasetReferenceDataType = ''; + public $defaultTableExpirationMs; public $description; public $etag; public $friendlyName; public $id; public $kind; public $lastModifiedTime; + public $location; public $selfLink; @@ -974,6 +1080,14 @@ class Google_Service_Bigquery_Dataset extends Google_Collection { return $this->datasetReference; } + public function setDefaultTableExpirationMs($defaultTableExpirationMs) + { + $this->defaultTableExpirationMs = $defaultTableExpirationMs; + } + public function getDefaultTableExpirationMs() + { + return $this->defaultTableExpirationMs; + } public function setDescription($description) { $this->description = $description; @@ -1022,6 +1136,14 @@ class Google_Service_Bigquery_Dataset extends Google_Collection { return $this->lastModifiedTime; } + public function setLocation($location) + { + $this->location = $location; + } + public function getLocation() + { + return $this->location; + } public function setSelfLink($selfLink) { $this->selfLink = $selfLink; @@ -1256,12 +1378,88 @@ class Google_Service_Bigquery_ErrorProto extends Google_Model } } +class Google_Service_Bigquery_ExternalDataConfiguration extends Google_Collection +{ + protected $collection_key = 'sourceUris'; + protected $internal_gapi_mappings = array( + ); + public $compression; + protected $csvOptionsType = 'Google_Service_Bigquery_CsvOptions'; + protected $csvOptionsDataType = ''; + public $ignoreUnknownValues; + public $maxBadRecords; + protected $schemaType = 'Google_Service_Bigquery_TableSchema'; + protected $schemaDataType = ''; + public $sourceFormat; + public $sourceUris; + + + public function setCompression($compression) + { + $this->compression = $compression; + } + public function getCompression() + { + return $this->compression; + } + public function setCsvOptions(Google_Service_Bigquery_CsvOptions $csvOptions) + { + $this->csvOptions = $csvOptions; + } + public function getCsvOptions() + { + return $this->csvOptions; + } + public function setIgnoreUnknownValues($ignoreUnknownValues) + { + $this->ignoreUnknownValues = $ignoreUnknownValues; + } + public function getIgnoreUnknownValues() + { + return $this->ignoreUnknownValues; + } + public function setMaxBadRecords($maxBadRecords) + { + $this->maxBadRecords = $maxBadRecords; + } + public function getMaxBadRecords() + { + return $this->maxBadRecords; + } + public function setSchema(Google_Service_Bigquery_TableSchema $schema) + { + $this->schema = $schema; + } + public function getSchema() + { + return $this->schema; + } + public function setSourceFormat($sourceFormat) + { + $this->sourceFormat = $sourceFormat; + } + public function getSourceFormat() + { + return $this->sourceFormat; + } + public function setSourceUris($sourceUris) + { + $this->sourceUris = $sourceUris; + } + public function getSourceUris() + { + return $this->sourceUris; + } +} + class Google_Service_Bigquery_GetQueryResultsResponse extends Google_Collection { protected $collection_key = 'rows'; protected $internal_gapi_mappings = array( ); public $cacheHit; + protected $errorsType = 'Google_Service_Bigquery_ErrorProto'; + protected $errorsDataType = 'array'; public $etag; public $jobComplete; protected $jobReferenceType = 'Google_Service_Bigquery_JobReference'; @@ -1284,6 +1482,14 @@ class Google_Service_Bigquery_GetQueryResultsResponse extends Google_Collection { return $this->cacheHit; } + public function setErrors($errors) + { + $this->errors = $errors; + } + public function getErrors() + { + return $this->errors; + } public function setEtag($etag) { $this->etag = $etag; @@ -1361,6 +1567,7 @@ class Google_Service_Bigquery_GetQueryResultsResponse extends Google_Collection class Google_Service_Bigquery_Job extends Google_Model { protected $internal_gapi_mappings = array( + "userEmail" => "user_email", ); protected $configurationType = 'Google_Service_Bigquery_JobConfiguration'; protected $configurationDataType = ''; @@ -1374,6 +1581,7 @@ class Google_Service_Bigquery_Job extends Google_Model protected $statisticsDataType = ''; protected $statusType = 'Google_Service_Bigquery_JobStatus'; protected $statusDataType = ''; + public $userEmail; public function setConfiguration(Google_Service_Bigquery_JobConfiguration $configuration) @@ -1440,6 +1648,41 @@ class Google_Service_Bigquery_Job extends Google_Model { return $this->status; } + public function setUserEmail($userEmail) + { + $this->userEmail = $userEmail; + } + public function getUserEmail() + { + return $this->userEmail; + } +} + +class Google_Service_Bigquery_JobCancelResponse extends Google_Model +{ + protected $internal_gapi_mappings = array( + ); + protected $jobType = 'Google_Service_Bigquery_Job'; + protected $jobDataType = ''; + public $kind; + + + public function setJob(Google_Service_Bigquery_Job $job) + { + $this->job = $job; + } + public function getJob() + { + return $this->job; + } + public function setKind($kind) + { + $this->kind = $kind; + } + public function getKind() + { + return $this->kind; + } } class Google_Service_Bigquery_JobConfiguration extends Google_Model @@ -1642,6 +1885,7 @@ class Google_Service_Bigquery_JobConfigurationLoad extends Google_Collection public $fieldDelimiter; public $ignoreUnknownValues; public $maxBadRecords; + public $projectionFields; public $quote; protected $schemaType = 'Google_Service_Bigquery_TableSchema'; protected $schemaDataType = ''; @@ -1717,6 +1961,14 @@ class Google_Service_Bigquery_JobConfigurationLoad extends Google_Collection { return $this->maxBadRecords; } + public function setProjectionFields($projectionFields) + { + $this->projectionFields = $projectionFields; + } + public function getProjectionFields() + { + return $this->projectionFields; + } public function setQuote($quote) { $this->quote = $quote; @@ -1783,8 +2035,9 @@ class Google_Service_Bigquery_JobConfigurationLoad extends Google_Collection } } -class Google_Service_Bigquery_JobConfigurationQuery extends Google_Model +class Google_Service_Bigquery_JobConfigurationQuery extends Google_Collection { + protected $collection_key = 'userDefinedFunctionResources'; protected $internal_gapi_mappings = array( ); public $allowLargeResults; @@ -1797,7 +2050,11 @@ class Google_Service_Bigquery_JobConfigurationQuery extends Google_Model public $preserveNulls; public $priority; public $query; + protected $tableDefinitionsType = 'Google_Service_Bigquery_ExternalDataConfiguration'; + protected $tableDefinitionsDataType = 'map'; public $useQueryCache; + protected $userDefinedFunctionResourcesType = 'Google_Service_Bigquery_UserDefinedFunctionResource'; + protected $userDefinedFunctionResourcesDataType = 'array'; public $writeDisposition; @@ -1865,6 +2122,14 @@ class Google_Service_Bigquery_JobConfigurationQuery extends Google_Model { return $this->query; } + public function setTableDefinitions($tableDefinitions) + { + $this->tableDefinitions = $tableDefinitions; + } + public function getTableDefinitions() + { + return $this->tableDefinitions; + } public function setUseQueryCache($useQueryCache) { $this->useQueryCache = $useQueryCache; @@ -1873,6 +2138,14 @@ class Google_Service_Bigquery_JobConfigurationQuery extends Google_Model { return $this->useQueryCache; } + public function setUserDefinedFunctionResources($userDefinedFunctionResources) + { + $this->userDefinedFunctionResources = $userDefinedFunctionResources; + } + public function getUserDefinedFunctionResources() + { + return $this->userDefinedFunctionResources; + } public function setWriteDisposition($writeDisposition) { $this->writeDisposition = $writeDisposition; @@ -1883,6 +2156,10 @@ class Google_Service_Bigquery_JobConfigurationQuery extends Google_Model } } +class Google_Service_Bigquery_JobConfigurationQueryTableDefinitions extends Google_Model +{ +} + class Google_Service_Bigquery_JobConfigurationTableCopy extends Google_Collection { protected $collection_key = 'sourceTables'; @@ -1950,7 +2227,6 @@ class Google_Service_Bigquery_JobList extends Google_Collection protected $jobsDataType = 'array'; public $kind; public $nextPageToken; - public $totalItems; public function setEtag($etag) @@ -1985,14 +2261,6 @@ class Google_Service_Bigquery_JobList extends Google_Collection { return $this->nextPageToken; } - public function setTotalItems($totalItems) - { - $this->totalItems = $totalItems; - } - public function getTotalItems() - { - return $this->totalItems; - } } class Google_Service_Bigquery_JobListJobs extends Google_Model @@ -2194,10 +2462,20 @@ class Google_Service_Bigquery_JobStatistics2 extends Google_Model { protected $internal_gapi_mappings = array( ); + public $billingTier; public $cacheHit; + public $totalBytesBilled; public $totalBytesProcessed; + public function setBillingTier($billingTier) + { + $this->billingTier = $billingTier; + } + public function getBillingTier() + { + return $this->billingTier; + } public function setCacheHit($cacheHit) { $this->cacheHit = $cacheHit; @@ -2206,6 +2484,14 @@ class Google_Service_Bigquery_JobStatistics2 extends Google_Model { return $this->cacheHit; } + public function setTotalBytesBilled($totalBytesBilled) + { + $this->totalBytesBilled = $totalBytesBilled; + } + public function getTotalBytesBilled() + { + return $this->totalBytesBilled; + } public function setTotalBytesProcessed($totalBytesProcessed) { $this->totalBytesProcessed = $totalBytesProcessed; @@ -2533,6 +2819,8 @@ class Google_Service_Bigquery_QueryResponse extends Google_Collection protected $internal_gapi_mappings = array( ); public $cacheHit; + protected $errorsType = 'Google_Service_Bigquery_ErrorProto'; + protected $errorsDataType = 'array'; public $jobComplete; protected $jobReferenceType = 'Google_Service_Bigquery_JobReference'; protected $jobReferenceDataType = ''; @@ -2554,6 +2842,14 @@ class Google_Service_Bigquery_QueryResponse extends Google_Collection { return $this->cacheHit; } + public function setErrors($errors) + { + $this->errors = $errors; + } + public function getErrors() + { + return $this->errors; + } public function setJobComplete($jobComplete) { $this->jobComplete = $jobComplete; @@ -2620,6 +2916,41 @@ class Google_Service_Bigquery_QueryResponse extends Google_Collection } } +class Google_Service_Bigquery_Streamingbuffer extends Google_Model +{ + protected $internal_gapi_mappings = array( + ); + public $estimatedBytes; + public $estimatedRows; + public $oldestEntryTime; + + + public function setEstimatedBytes($estimatedBytes) + { + $this->estimatedBytes = $estimatedBytes; + } + public function getEstimatedBytes() + { + return $this->estimatedBytes; + } + public function setEstimatedRows($estimatedRows) + { + $this->estimatedRows = $estimatedRows; + } + public function getEstimatedRows() + { + return $this->estimatedRows; + } + public function setOldestEntryTime($oldestEntryTime) + { + $this->oldestEntryTime = $oldestEntryTime; + } + public function getOldestEntryTime() + { + return $this->oldestEntryTime; + } +} + class Google_Service_Bigquery_Table extends Google_Model { protected $internal_gapi_mappings = array( @@ -2628,15 +2959,20 @@ class Google_Service_Bigquery_Table extends Google_Model public $description; public $etag; public $expirationTime; + protected $externalDataConfigurationType = 'Google_Service_Bigquery_ExternalDataConfiguration'; + protected $externalDataConfigurationDataType = ''; public $friendlyName; public $id; public $kind; public $lastModifiedTime; + public $location; public $numBytes; public $numRows; protected $schemaType = 'Google_Service_Bigquery_TableSchema'; protected $schemaDataType = ''; public $selfLink; + protected $streamingBufferType = 'Google_Service_Bigquery_Streamingbuffer'; + protected $streamingBufferDataType = ''; protected $tableReferenceType = 'Google_Service_Bigquery_TableReference'; protected $tableReferenceDataType = ''; public $type; @@ -2676,6 +3012,14 @@ class Google_Service_Bigquery_Table extends Google_Model { return $this->expirationTime; } + public function setExternalDataConfiguration(Google_Service_Bigquery_ExternalDataConfiguration $externalDataConfiguration) + { + $this->externalDataConfiguration = $externalDataConfiguration; + } + public function getExternalDataConfiguration() + { + return $this->externalDataConfiguration; + } public function setFriendlyName($friendlyName) { $this->friendlyName = $friendlyName; @@ -2708,6 +3052,14 @@ class Google_Service_Bigquery_Table extends Google_Model { return $this->lastModifiedTime; } + public function setLocation($location) + { + $this->location = $location; + } + public function getLocation() + { + return $this->location; + } public function setNumBytes($numBytes) { $this->numBytes = $numBytes; @@ -2740,6 +3092,14 @@ class Google_Service_Bigquery_Table extends Google_Model { return $this->selfLink; } + public function setStreamingBuffer(Google_Service_Bigquery_Streamingbuffer $streamingBuffer) + { + $this->streamingBuffer = $streamingBuffer; + } + public function getStreamingBuffer() + { + return $this->streamingBuffer; + } public function setTableReference(Google_Service_Bigquery_TableReference $tableReference) { $this->tableReference = $tableReference; @@ -2788,11 +3148,21 @@ class Google_Service_Bigquery_TableDataInsertAllRequest extends Google_Collectio protected $collection_key = 'rows'; protected $internal_gapi_mappings = array( ); + public $ignoreUnknownValues; public $kind; protected $rowsType = 'Google_Service_Bigquery_TableDataInsertAllRequestRows'; protected $rowsDataType = 'array'; + public $skipInvalidRows; + public function setIgnoreUnknownValues($ignoreUnknownValues) + { + $this->ignoreUnknownValues = $ignoreUnknownValues; + } + public function getIgnoreUnknownValues() + { + return $this->ignoreUnknownValues; + } public function setKind($kind) { $this->kind = $kind; @@ -2809,6 +3179,14 @@ class Google_Service_Bigquery_TableDataInsertAllRequest extends Google_Collectio { return $this->rows; } + public function setSkipInvalidRows($skipInvalidRows) + { + $this->skipInvalidRows = $skipInvalidRows; + } + public function getSkipInvalidRows() + { + return $this->skipInvalidRows; + } } class Google_Service_Bigquery_TableDataInsertAllRequestRows extends Google_Model @@ -3185,6 +3563,32 @@ class Google_Service_Bigquery_TableSchema extends Google_Collection } } +class Google_Service_Bigquery_UserDefinedFunctionResource extends Google_Model +{ + protected $internal_gapi_mappings = array( + ); + public $inlineCode; + public $resourceUri; + + + public function setInlineCode($inlineCode) + { + $this->inlineCode = $inlineCode; + } + public function getInlineCode() + { + return $this->inlineCode; + } + public function setResourceUri($resourceUri) + { + $this->resourceUri = $resourceUri; + } + public function getResourceUri() + { + return $this->resourceUri; + } +} + class Google_Service_Bigquery_ViewDefinition extends Google_Model { protected $internal_gapi_mappings = array( diff --git a/lib/google/src/Google/Service/Blogger.php b/lib/google/src/Google/Service/Blogger.php index 61eacf9d3ee..1f86ac3c4c8 100644 --- a/lib/google/src/Google/Service/Blogger.php +++ b/lib/google/src/Google/Service/Blogger.php @@ -55,6 +55,7 @@ class Google_Service_Blogger extends Google_Service public function __construct(Google_Client $client) { parent::__construct($client); + $this->rootUrl = 'https://www.googleapis.com/'; $this->servicePath = 'blogger/v3/'; $this->version = 'v3'; $this->serviceName = 'blogger'; @@ -281,6 +282,11 @@ class Google_Service_Blogger extends Google_Service 'type' => 'string', 'required' => true, ), + 'status' => array( + 'location' => 'query', + 'type' => 'string', + 'repeated' => true, + ), 'startDate' => array( 'location' => 'query', 'type' => 'string', @@ -439,6 +445,14 @@ class Google_Service_Blogger extends Google_Service 'type' => 'string', 'repeated' => true, ), + 'maxResults' => array( + 'location' => 'query', + 'type' => 'integer', + ), + 'pageToken' => array( + 'location' => 'query', + 'type' => 'string', + ), 'fetchBodies' => array( 'location' => 'query', 'type' => 'boolean', @@ -1119,6 +1133,7 @@ class Google_Service_Blogger_Comments_Resource extends Google_Service_Resource * @param string $blogId ID of the blog to fetch comments from. * @param array $optParams Optional parameters. * + * @opt_param string status * @opt_param string startDate Earliest date of comment to fetch, a date-time * with RFC 3339 formatting. * @opt_param string endDate Latest date of comment to fetch, a date-time with @@ -1262,10 +1277,12 @@ class Google_Service_Blogger_Pages_Resource extends Google_Service_Resource * Retrieves the pages for a blog, optionally including non-LIVE statuses. * (pages.listPages) * - * @param string $blogId ID of the blog to fetch pages from. + * @param string $blogId ID of the blog to fetch Pages from. * @param array $optParams Optional parameters. * * @opt_param string status + * @opt_param string maxResults Maximum number of Pages to fetch. + * @opt_param string pageToken Continuation token if the request is paged. * @opt_param bool fetchBodies Whether to retrieve the Page bodies. * @opt_param string view Access level with which to view the returned result. * Note that some fields require elevated access. @@ -2260,6 +2277,7 @@ class Google_Service_Blogger_CommentList extends Google_Collection protected $collection_key = 'items'; protected $internal_gapi_mappings = array( ); + public $etag; protected $itemsType = 'Google_Service_Blogger_Comment'; protected $itemsDataType = 'array'; public $kind; @@ -2267,6 +2285,14 @@ class Google_Service_Blogger_CommentList extends Google_Collection public $prevPageToken; + public function setEtag($etag) + { + $this->etag = $etag; + } + public function getEtag() + { + return $this->etag; + } public function setItems($items) { $this->items = $items; @@ -2520,11 +2546,21 @@ class Google_Service_Blogger_PageList extends Google_Collection protected $collection_key = 'items'; protected $internal_gapi_mappings = array( ); + public $etag; protected $itemsType = 'Google_Service_Blogger_Page'; protected $itemsDataType = 'array'; public $kind; + public $nextPageToken; + public function setEtag($etag) + { + $this->etag = $etag; + } + public function getEtag() + { + return $this->etag; + } public function setItems($items) { $this->items = $items; @@ -2541,6 +2577,14 @@ class Google_Service_Blogger_PageList extends Google_Collection { return $this->kind; } + public function setNextPageToken($nextPageToken) + { + $this->nextPageToken = $nextPageToken; + } + public function getNextPageToken() + { + return $this->nextPageToken; + } } class Google_Service_Blogger_Pageviews extends Google_Collection @@ -2892,12 +2936,21 @@ class Google_Service_Blogger_PostList extends Google_Collection protected $collection_key = 'items'; protected $internal_gapi_mappings = array( ); + public $etag; protected $itemsType = 'Google_Service_Blogger_Post'; protected $itemsDataType = 'array'; public $kind; public $nextPageToken; + public function setEtag($etag) + { + $this->etag = $etag; + } + public function getEtag() + { + return $this->etag; + } public function setItems($items) { $this->items = $items; diff --git a/lib/google/src/Google/Service/Books.php b/lib/google/src/Google/Service/Books.php index d27b6e3c9af..6f2c1675f57 100644 --- a/lib/google/src/Google/Service/Books.php +++ b/lib/google/src/Google/Service/Books.php @@ -46,6 +46,7 @@ class Google_Service_Books extends Google_Service public $mylibrary_bookshelves; public $mylibrary_bookshelves_volumes; public $mylibrary_readingpositions; + public $onboarding; public $promooffer; public $volumes; public $volumes_associated; @@ -62,6 +63,7 @@ class Google_Service_Books extends Google_Service public function __construct(Google_Client $client) { parent::__construct($client); + $this->rootUrl = 'https://www.googleapis.com/'; $this->servicePath = 'books/v1/'; $this->version = 'v1'; $this->serviceName = 'books'; @@ -506,7 +508,11 @@ class Google_Service_Books extends Google_Service 'myconfig', array( 'methods' => array( - 'releaseDownloadAccess' => array( + 'getUserSettings' => array( + 'path' => 'myconfig/getUserSettings', + 'httpMethod' => 'GET', + 'parameters' => array(), + ),'releaseDownloadAccess' => array( 'path' => 'myconfig/releaseDownloadAccess', 'httpMethod' => 'POST', 'parameters' => array( @@ -601,6 +607,10 @@ class Google_Service_Books extends Google_Service 'repeated' => true, ), ), + ),'updateUserSettings' => array( + 'path' => 'myconfig/updateUserSettings', + 'httpMethod' => 'POST', + 'parameters' => array(), ), ) ) @@ -625,20 +635,6 @@ class Google_Service_Books extends Google_Service 'type' => 'string', ), ), - ),'get' => array( - 'path' => 'mylibrary/annotations/{annotationId}', - 'httpMethod' => 'GET', - 'parameters' => array( - 'annotationId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'source' => array( - 'location' => 'query', - 'type' => 'string', - ), - ), ),'insert' => array( 'path' => 'mylibrary/annotations', 'httpMethod' => 'POST', @@ -685,10 +681,9 @@ class Google_Service_Books extends Google_Service 'location' => 'query', 'type' => 'string', ), - 'pageIds' => array( + 'updatedMax' => array( 'location' => 'query', 'type' => 'string', - 'repeated' => true, ), 'contentVersion' => array( 'location' => 'query', @@ -702,10 +697,6 @@ class Google_Service_Books extends Google_Service 'location' => 'query', 'type' => 'string', ), - 'updatedMax' => array( - 'location' => 'query', - 'type' => 'string', - ), ), ),'summary' => array( 'path' => 'mylibrary/annotations/summary', @@ -761,6 +752,10 @@ class Google_Service_Books extends Google_Service 'type' => 'string', 'required' => true, ), + 'reason' => array( + 'location' => 'query', + 'type' => 'string', + ), 'source' => array( 'location' => 'query', 'type' => 'string', @@ -841,6 +836,10 @@ class Google_Service_Books extends Google_Service 'type' => 'string', 'required' => true, ), + 'reason' => array( + 'location' => 'query', + 'type' => 'string', + ), 'source' => array( 'location' => 'query', 'type' => 'string', @@ -962,6 +961,51 @@ class Google_Service_Books extends Google_Service ) ) ); + $this->onboarding = new Google_Service_Books_Onboarding_Resource( + $this, + $this->serviceName, + 'onboarding', + array( + 'methods' => array( + 'listCategories' => array( + 'path' => 'onboarding/listCategories', + 'httpMethod' => 'GET', + 'parameters' => array( + 'locale' => array( + 'location' => 'query', + 'type' => 'string', + ), + ), + ),'listCategoryVolumes' => array( + 'path' => 'onboarding/listCategoryVolumes', + 'httpMethod' => 'GET', + 'parameters' => array( + 'locale' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'pageToken' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'maxAllowedMaturityRating' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'categoryId' => array( + 'location' => 'query', + 'type' => 'string', + 'repeated' => true, + ), + 'pageSize' => array( + 'location' => 'query', + 'type' => 'integer', + ), + ), + ), + ) + ) + ); $this->promooffer = new Google_Service_Books_Promooffer_Resource( $this, $this->serviceName, @@ -1086,7 +1130,11 @@ class Google_Service_Books extends Google_Service 'type' => 'string', 'required' => true, ), - 'source' => array( + 'user_library_consistent_read' => array( + 'location' => 'query', + 'type' => 'boolean', + ), + 'projection' => array( 'location' => 'query', 'type' => 'string', ), @@ -1094,7 +1142,7 @@ class Google_Service_Books extends Google_Service 'location' => 'query', 'type' => 'string', ), - 'projection' => array( + 'source' => array( 'location' => 'query', 'type' => 'string', ), @@ -1188,6 +1236,10 @@ class Google_Service_Books extends Google_Service 'location' => 'query', 'type' => 'string', ), + 'maxAllowedMaturityRating' => array( + 'location' => 'query', + 'type' => 'string', + ), 'association' => array( 'location' => 'query', 'type' => 'string', @@ -1256,6 +1308,10 @@ class Google_Service_Books extends Google_Service 'location' => 'query', 'type' => 'string', ), + 'maxAllowedMaturityRating' => array( + 'location' => 'query', + 'type' => 'string', + ), ), ),'rate' => array( 'path' => 'volumes/recommended/rate', @@ -1705,6 +1761,19 @@ class Google_Service_Books_LayersVolumeAnnotations_Resource extends Google_Servi class Google_Service_Books_Myconfig_Resource extends Google_Service_Resource { + /** + * Gets the current settings for the user. (myconfig.getUserSettings) + * + * @param array $optParams Optional parameters. + * @return Google_Service_Books_Usersettings + */ + public function getUserSettings($optParams = array()) + { + $params = array(); + $params = array_merge($params, $optParams); + return $this->call('getUserSettings', array($params), "Google_Service_Books_Usersettings"); + } + /** * Release downloaded content access restriction. * (myconfig.releaseDownloadAccess) @@ -1776,6 +1845,22 @@ class Google_Service_Books_Myconfig_Resource extends Google_Service_Resource $params = array_merge($params, $optParams); return $this->call('syncVolumeLicenses', array($params), "Google_Service_Books_Volumes"); } + + /** + * Sets the settings for the user. If a sub-object is specified, it will + * overwrite the existing sub-object stored in the server. Unspecified sub- + * objects will retain the existing value. (myconfig.updateUserSettings) + * + * @param Google_Usersettings $postBody + * @param array $optParams Optional parameters. + * @return Google_Service_Books_Usersettings + */ + public function updateUserSettings(Google_Service_Books_Usersettings $postBody, $optParams = array()) + { + $params = array('postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('updateUserSettings', array($params), "Google_Service_Books_Usersettings"); + } } /** @@ -1816,22 +1901,6 @@ class Google_Service_Books_MylibraryAnnotations_Resource extends Google_Service_ return $this->call('delete', array($params)); } - /** - * Gets an annotation by its ID. (annotations.get) - * - * @param string $annotationId The ID for the annotation to retrieve. - * @param array $optParams Optional parameters. - * - * @opt_param string source String to identify the originator of this request. - * @return Google_Service_Books_Annotation - */ - public function get($annotationId, $optParams = array()) - { - $params = array('annotationId' => $annotationId); - $params = array_merge($params, $optParams); - return $this->call('get', array($params), "Google_Service_Books_Annotation"); - } - /** * Inserts a new annotation. (annotations.insert) * @@ -1866,14 +1935,12 @@ class Google_Service_Books_MylibraryAnnotations_Resource extends Google_Service_ * @opt_param string maxResults Maximum number of results to return * @opt_param string pageToken The value of the nextToken from the previous * page. - * @opt_param string pageIds The page ID(s) for the volume that is being - * queried. + * @opt_param string updatedMax RFC 3339 timestamp to restrict to items updated + * prior to this timestamp (exclusive). * @opt_param string contentVersion The content version for the requested * volume. * @opt_param string source String to identify the originator of this request. * @opt_param string layerId The layer ID to limit annotation by. - * @opt_param string updatedMax RFC 3339 timestamp to restrict to items updated - * prior to this timestamp (exclusive). * @return Google_Service_Books_Annotations */ public function listMylibraryAnnotations($optParams = array()) @@ -1933,6 +2000,8 @@ class Google_Service_Books_MylibraryBookshelves_Resource extends Google_Service_ * @param string $volumeId ID of volume to add. * @param array $optParams Optional parameters. * + * @opt_param string reason The reason for which the book is added to the + * library. * @opt_param string source String to identify the originator of this request. */ public function addVolume($shelf, $volumeId, $optParams = array()) @@ -2016,6 +2085,8 @@ class Google_Service_Books_MylibraryBookshelves_Resource extends Google_Service_ * @param string $volumeId ID of volume to remove. * @param array $optParams Optional parameters. * + * @opt_param string reason The reason for which the book is removed from the + * library. * @opt_param string source String to identify the originator of this request. */ public function removeVolume($shelf, $volumeId, $optParams = array()) @@ -2120,6 +2191,59 @@ class Google_Service_Books_MylibraryReadingpositions_Resource extends Google_Ser } } +/** + * The "onboarding" collection of methods. + * Typical usage is: + * + * $booksService = new Google_Service_Books(...); + * $onboarding = $booksService->onboarding; + * + */ +class Google_Service_Books_Onboarding_Resource extends Google_Service_Resource +{ + + /** + * List categories for onboarding experience. (onboarding.listCategories) + * + * @param array $optParams Optional parameters. + * + * @opt_param string locale ISO-639-1 language and ISO-3166-1 country code. + * Default is en-US if unset. + * @return Google_Service_Books_Category + */ + public function listCategories($optParams = array()) + { + $params = array(); + $params = array_merge($params, $optParams); + return $this->call('listCategories', array($params), "Google_Service_Books_Category"); + } + + /** + * List available volumes under categories for onboarding experience. + * (onboarding.listCategoryVolumes) + * + * @param array $optParams Optional parameters. + * + * @opt_param string locale ISO-639-1 language and ISO-3166-1 country code. + * Default is en-US if unset. + * @opt_param string pageToken The value of the nextToken from the previous + * page. + * @opt_param string maxAllowedMaturityRating The maximum allowed maturity + * rating of returned volumes. Books with a higher maturity rating are filtered + * out. + * @opt_param string categoryId List of category ids requested. + * @opt_param string pageSize Number of maximum results per page to be included + * in the response. + * @return Google_Service_Books_Volume2 + */ + public function listCategoryVolumes($optParams = array()) + { + $params = array(); + $params = array_merge($params, $optParams); + return $this->call('listCategoryVolumes', array($params), "Google_Service_Books_Volume2"); + } +} + /** * The "promooffer" collection of methods. * Typical usage is: @@ -2210,10 +2334,11 @@ class Google_Service_Books_Volumes_Resource extends Google_Service_Resource * @param string $volumeId ID of volume to retrieve. * @param array $optParams Optional parameters. * - * @opt_param string source String to identify the originator of this request. - * @opt_param string country ISO-3166-1 code to override the IP-based location. + * @opt_param bool user_library_consistent_read * @opt_param string projection Restrict information returned to a set of * selected fields. + * @opt_param string country ISO-3166-1 code to override the IP-based location. + * @opt_param string source String to identify the originator of this request. * @opt_param string partner Brand results for partner ID. * @return Google_Service_Books_Volume */ @@ -2276,6 +2401,9 @@ class Google_Service_Books_VolumesAssociated_Resource extends Google_Service_Res * @opt_param string locale ISO-639-1 language and ISO-3166-1 country code. Ex: * 'en_US'. Used for generating recommendations. * @opt_param string source String to identify the originator of this request. + * @opt_param string maxAllowedMaturityRating The maximum allowed maturity + * rating of returned recommendations. Books with a higher maturity rating are + * filtered out. * @opt_param string association Association type. * @return Google_Service_Books_Volumes */ @@ -2341,6 +2469,9 @@ class Google_Service_Books_VolumesRecommended_Resource extends Google_Service_Re * @opt_param string locale ISO-639-1 language and ISO-3166-1 country code. Ex: * 'en_US'. Used for generating recommendations. * @opt_param string source String to identify the originator of this request. + * @opt_param string maxAllowedMaturityRating The maximum allowed maturity + * rating of returned recommendations. Books with a higher maturity rating are + * filtered out. * @return Google_Service_Books_Volumes */ public function listVolumesRecommended($optParams = array()) @@ -3218,6 +3349,69 @@ class Google_Service_Books_Bookshelves extends Google_Collection } } +class Google_Service_Books_Category extends Google_Collection +{ + protected $collection_key = 'items'; + protected $internal_gapi_mappings = array( + ); + protected $itemsType = 'Google_Service_Books_CategoryItems'; + protected $itemsDataType = 'array'; + public $kind; + + + public function setItems($items) + { + $this->items = $items; + } + public function getItems() + { + return $this->items; + } + public function setKind($kind) + { + $this->kind = $kind; + } + public function getKind() + { + return $this->kind; + } +} + +class Google_Service_Books_CategoryItems extends Google_Model +{ + protected $internal_gapi_mappings = array( + ); + public $badgeUrl; + public $categoryId; + public $name; + + + public function setBadgeUrl($badgeUrl) + { + $this->badgeUrl = $badgeUrl; + } + public function getBadgeUrl() + { + return $this->badgeUrl; + } + public function setCategoryId($categoryId) + { + $this->categoryId = $categoryId; + } + public function getCategoryId() + { + return $this->categoryId; + } + public function setName($name) + { + $this->name = $name; + } + public function getName() + { + return $this->name; + } +} + class Google_Service_Books_ConcurrentAccessRestriction extends Google_Model { protected $internal_gapi_mappings = array( @@ -4589,6 +4783,7 @@ class Google_Service_Books_OffersItems extends Google_Collection protected $internal_gapi_mappings = array( ); public $artUrl; + public $gservicesKey; public $id; protected $itemsType = 'Google_Service_Books_OffersItemsItems'; protected $itemsDataType = 'array'; @@ -4602,6 +4797,14 @@ class Google_Service_Books_OffersItems extends Google_Collection { return $this->artUrl; } + public function setGservicesKey($gservicesKey) + { + $this->gservicesKey = $gservicesKey; + } + public function getGservicesKey() + { + return $this->gservicesKey; + } public function setId($id) { $this->id = $id; @@ -4942,6 +5145,59 @@ class Google_Service_Books_ReviewSource extends Google_Model } } +class Google_Service_Books_Usersettings extends Google_Model +{ + protected $internal_gapi_mappings = array( + ); + public $kind; + protected $notesExportType = 'Google_Service_Books_UsersettingsNotesExport'; + protected $notesExportDataType = ''; + + + public function setKind($kind) + { + $this->kind = $kind; + } + public function getKind() + { + return $this->kind; + } + public function setNotesExport(Google_Service_Books_UsersettingsNotesExport $notesExport) + { + $this->notesExport = $notesExport; + } + public function getNotesExport() + { + return $this->notesExport; + } +} + +class Google_Service_Books_UsersettingsNotesExport extends Google_Model +{ + protected $internal_gapi_mappings = array( + ); + public $folderName; + public $isEnabled; + + + public function setFolderName($folderName) + { + $this->folderName = $folderName; + } + public function getFolderName() + { + return $this->folderName; + } + public function setIsEnabled($isEnabled) + { + $this->isEnabled = $isEnabled; + } + public function getIsEnabled() + { + return $this->isEnabled; + } +} + class Google_Service_Books_Volume extends Google_Model { protected $internal_gapi_mappings = array( @@ -5056,6 +5312,43 @@ class Google_Service_Books_Volume extends Google_Model } } +class Google_Service_Books_Volume2 extends Google_Collection +{ + protected $collection_key = 'items'; + protected $internal_gapi_mappings = array( + ); + protected $itemsType = 'Google_Service_Books_Volume'; + protected $itemsDataType = 'array'; + public $kind; + public $nextPageToken; + + + public function setItems($items) + { + $this->items = $items; + } + public function getItems() + { + return $this->items; + } + public function setKind($kind) + { + $this->kind = $kind; + } + public function getKind() + { + return $this->kind; + } + public function setNextPageToken($nextPageToken) + { + $this->nextPageToken = $nextPageToken; + } + public function getNextPageToken() + { + return $this->nextPageToken; + } +} + class Google_Service_Books_VolumeAccessInfo extends Google_Model { protected $internal_gapi_mappings = array( @@ -5807,6 +6100,7 @@ class Google_Service_Books_VolumeVolumeInfo extends Google_Collection protected $collection_key = 'industryIdentifiers'; protected $internal_gapi_mappings = array( ); + public $allowAnonLogging; public $authors; public $averageRating; public $canonicalVolumeLink; @@ -5822,6 +6116,7 @@ class Google_Service_Books_VolumeVolumeInfo extends Google_Collection public $infoLink; public $language; public $mainCategory; + public $maturityRating; public $pageCount; public $previewLink; public $printType; @@ -5830,10 +6125,19 @@ class Google_Service_Books_VolumeVolumeInfo extends Google_Collection public $publisher; public $ratingsCount; public $readingModes; + public $samplePageCount; public $subtitle; public $title; + public function setAllowAnonLogging($allowAnonLogging) + { + $this->allowAnonLogging = $allowAnonLogging; + } + public function getAllowAnonLogging() + { + return $this->allowAnonLogging; + } public function setAuthors($authors) { $this->authors = $authors; @@ -5930,6 +6234,14 @@ class Google_Service_Books_VolumeVolumeInfo extends Google_Collection { return $this->mainCategory; } + public function setMaturityRating($maturityRating) + { + $this->maturityRating = $maturityRating; + } + public function getMaturityRating() + { + return $this->maturityRating; + } public function setPageCount($pageCount) { $this->pageCount = $pageCount; @@ -5994,6 +6306,14 @@ class Google_Service_Books_VolumeVolumeInfo extends Google_Collection { return $this->readingModes; } + public function setSamplePageCount($samplePageCount) + { + $this->samplePageCount = $samplePageCount; + } + public function getSamplePageCount() + { + return $this->samplePageCount; + } public function setSubtitle($subtitle) { $this->subtitle = $subtitle; diff --git a/lib/google/src/Google/Service/Calendar.php b/lib/google/src/Google/Service/Calendar.php index 8ad5c0b9e43..377357f28c0 100644 --- a/lib/google/src/Google/Service/Calendar.php +++ b/lib/google/src/Google/Service/Calendar.php @@ -55,6 +55,7 @@ class Google_Service_Calendar extends Google_Service public function __construct(Google_Client $client) { parent::__construct($client); + $this->rootUrl = 'https://www.googleapis.com/'; $this->servicePath = 'calendar/v3/'; $this->version = 'v3'; $this->serviceName = 'calendar'; @@ -469,6 +470,10 @@ class Google_Service_Calendar extends Google_Service 'type' => 'string', 'required' => true, ), + 'supportsAttachments' => array( + 'location' => 'query', + 'type' => 'boolean', + ), ), ),'insert' => array( 'path' => 'calendars/{calendarId}/events', @@ -479,6 +484,10 @@ class Google_Service_Calendar extends Google_Service 'type' => 'string', 'required' => true, ), + 'supportsAttachments' => array( + 'location' => 'query', + 'type' => 'boolean', + ), 'sendNotifications' => array( 'location' => 'query', 'type' => 'boolean', @@ -665,6 +674,10 @@ class Google_Service_Calendar extends Google_Service 'location' => 'query', 'type' => 'boolean', ), + 'supportsAttachments' => array( + 'location' => 'query', + 'type' => 'boolean', + ), 'maxAttendees' => array( 'location' => 'query', 'type' => 'integer', @@ -711,6 +724,10 @@ class Google_Service_Calendar extends Google_Service 'location' => 'query', 'type' => 'boolean', ), + 'supportsAttachments' => array( + 'location' => 'query', + 'type' => 'boolean', + ), 'maxAttendees' => array( 'location' => 'query', 'type' => 'integer', @@ -1103,7 +1120,7 @@ class Google_Service_Calendar_CalendarList_Resource extends Google_Service_Resou * @opt_param bool showDeleted Whether to include deleted calendar list entries * in the result. Optional. The default is False. * @opt_param string minAccessRole The minimum access role for the user in the - * returned entires. Optional. The default is no restriction. + * returned entries. Optional. The default is no restriction. * @opt_param int maxResults Maximum number of entries returned on one result * page. By default the value is 100 entries. The page size can never be larger * than 250 entries. Optional. @@ -1182,7 +1199,7 @@ class Google_Service_Calendar_CalendarList_Resource extends Google_Service_Resou * @opt_param bool showDeleted Whether to include deleted calendar list entries * in the result. Optional. The default is False. * @opt_param string minAccessRole The minimum access role for the user in the - * returned entires. Optional. The default is no restriction. + * returned entries. Optional. The default is no restriction. * @opt_param int maxResults Maximum number of entries returned on one result * page. By default the value is 100 entries. The page size can never be larger * than 250 entries. Optional. @@ -1212,8 +1229,8 @@ class Google_Service_Calendar_Calendars_Resource extends Google_Service_Resource { /** - * Clears a primary calendar. This operation deletes all data associated with - * the primary calendar of an account and cannot be undone. (calendars.clear) + * Clears a primary calendar. This operation deletes all events associated with + * the primary calendar of an account. (calendars.clear) * * @param string $calendarId Calendar identifier. * @param array $optParams Optional parameters. @@ -1226,7 +1243,8 @@ class Google_Service_Calendar_Calendars_Resource extends Google_Service_Resource } /** - * Deletes a secondary calendar. (calendars.delete) + * Deletes a secondary calendar. Use calendars.clear for clearing all events on + * primary calendars. (calendars.delete) * * @param string $calendarId Calendar identifier. * @param array $optParams Optional parameters. @@ -1410,6 +1428,9 @@ class Google_Service_Calendar_Events_Resource extends Google_Service_Resource * @param string $calendarId Calendar identifier. * @param Google_Event $postBody * @param array $optParams Optional parameters. + * + * @opt_param bool supportsAttachments Whether API client performing operation + * supports event attachments. Optional. The default is False. * @return Google_Service_Calendar_Event */ public function import($calendarId, Google_Service_Calendar_Event $postBody, $optParams = array()) @@ -1426,6 +1447,8 @@ class Google_Service_Calendar_Events_Resource extends Google_Service_Resource * @param Google_Event $postBody * @param array $optParams Optional parameters. * + * @opt_param bool supportsAttachments Whether API client performing operation + * supports event attachments. Optional. The default is False. * @opt_param bool sendNotifications Whether to send notifications about the * creation of the new event. Optional. The default is False. * @opt_param int maxAttendees The maximum number of attendees to include in the @@ -1600,6 +1623,8 @@ class Google_Service_Calendar_Events_Resource extends Google_Service_Resource * of this option is discouraged and should only be used by clients which cannot * handle the absence of an email address value in the mentioned places. * Optional. The default is False. + * @opt_param bool supportsAttachments Whether API client performing operation + * supports event attachments. Optional. The default is False. * @opt_param int maxAttendees The maximum number of attendees to include in the * response. If there are more than the specified number of attendees, only the * participant is returned. Optional. @@ -1647,6 +1672,8 @@ class Google_Service_Calendar_Events_Resource extends Google_Service_Resource * of this option is discouraged and should only be used by clients which cannot * handle the absence of an email address value in the mentioned places. * Optional. The default is False. + * @opt_param bool supportsAttachments Whether API client performing operation + * supports event attachments. Optional. The default is False. * @opt_param int maxAttendees The maximum number of attendees to include in the * response. If there are more than the specified number of attendees, only the * participant is returned. Optional. @@ -2541,6 +2568,8 @@ class Google_Service_Calendar_Event extends Google_Collection protected $internal_gapi_mappings = array( ); public $anyoneCanAddSelf; + protected $attachmentsType = 'Google_Service_Calendar_EventAttachment'; + protected $attachmentsDataType = 'array'; protected $attendeesType = 'Google_Service_Calendar_EventAttendee'; protected $attendeesDataType = 'array'; public $attendeesOmitted; @@ -2596,6 +2625,14 @@ class Google_Service_Calendar_Event extends Google_Collection { return $this->anyoneCanAddSelf; } + public function setAttachments($attachments) + { + $this->attachments = $attachments; + } + public function getAttachments() + { + return $this->attachments; + } public function setAttendees($attendees) { $this->attendees = $attendees; @@ -2882,9 +2919,36 @@ class Google_Service_Calendar_EventAttachment extends Google_Model { protected $internal_gapi_mappings = array( ); + public $fileUrl; + public $iconLink; + public $mimeType; public $title; + public function setFileUrl($fileUrl) + { + $this->fileUrl = $fileUrl; + } + public function getFileUrl() + { + return $this->fileUrl; + } + public function setIconLink($iconLink) + { + $this->iconLink = $iconLink; + } + public function getIconLink() + { + return $this->iconLink; + } + public function setMimeType($mimeType) + { + $this->mimeType = $mimeType; + } + public function getMimeType() + { + return $this->mimeType; + } public function setTitle($title) { $this->title = $title; diff --git a/lib/google/src/Google/Service/CivicInfo.php b/lib/google/src/Google/Service/CivicInfo.php index 961fd30c00e..5d69642627a 100644 --- a/lib/google/src/Google/Service/CivicInfo.php +++ b/lib/google/src/Google/Service/CivicInfo.php @@ -45,6 +45,7 @@ class Google_Service_CivicInfo extends Google_Service public function __construct(Google_Client $client) { parent::__construct($client); + $this->rootUrl = 'https://www.googleapis.com/'; $this->servicePath = 'civicinfo/v2/'; $this->version = 'v2'; $this->serviceName = 'civicinfo'; diff --git a/lib/google/src/Google/Service/Classroom.php b/lib/google/src/Google/Service/Classroom.php new file mode 100644 index 00000000000..109fb83bd07 --- /dev/null +++ b/lib/google/src/Google/Service/Classroom.php @@ -0,0 +1,1518 @@ + + * Google Classroom API

+ * + *

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

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

* API for accessing Google Cloud and API monitoring data.

* *

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

* * @author Google, Inc. */ class Google_Service_CloudMonitoring extends Google_Service { - /** View monitoring data for all of your Google Cloud and API projects. */ - const MONITORING_READONLY = - "https://www.googleapis.com/auth/monitoring.readonly"; + /** View and write monitoring data for all of your Google and third-party Cloud and API projects. */ + const MONITORING = + "https://www.googleapis.com/auth/monitoring"; public $metricDescriptors; public $timeseries; @@ -47,8 +47,9 @@ class Google_Service_CloudMonitoring extends Google_Service public function __construct(Google_Client $client) { parent::__construct($client); - $this->servicePath = 'cloudmonitoring/v2beta1/projects/'; - $this->version = 'v2beta1'; + $this->rootUrl = 'https://www.googleapis.com/'; + $this->servicePath = 'cloudmonitoring/v2beta2/projects/'; + $this->version = 'v2beta2'; $this->serviceName = 'cloudmonitoring'; $this->metricDescriptors = new Google_Service_CloudMonitoring_MetricDescriptors_Resource( @@ -57,7 +58,32 @@ class Google_Service_CloudMonitoring extends Google_Service 'metricDescriptors', array( 'methods' => array( - 'list' => array( + 'create' => array( + 'path' => '{project}/metricDescriptors', + 'httpMethod' => 'POST', + 'parameters' => array( + 'project' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ),'delete' => array( + 'path' => '{project}/metricDescriptors/{metric}', + 'httpMethod' => 'DELETE', + 'parameters' => array( + 'project' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'metric' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ),'list' => array( 'path' => '{project}/metricDescriptors', 'httpMethod' => 'GET', 'parameters' => array( @@ -116,6 +142,10 @@ class Google_Service_CloudMonitoring extends Google_Service 'location' => 'query', 'type' => 'string', ), + 'aggregator' => array( + 'location' => 'query', + 'type' => 'string', + ), 'labels' => array( 'location' => 'query', 'type' => 'string', @@ -125,11 +155,25 @@ class Google_Service_CloudMonitoring extends Google_Service 'location' => 'query', 'type' => 'string', ), + 'window' => array( + 'location' => 'query', + 'type' => 'string', + ), 'oldest' => array( 'location' => 'query', 'type' => 'string', ), ), + ),'write' => array( + 'path' => '{project}/timeseries:write', + 'httpMethod' => 'POST', + 'parameters' => array( + 'project' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), ), ) ) @@ -167,6 +211,10 @@ class Google_Service_CloudMonitoring extends Google_Service 'location' => 'query', 'type' => 'string', ), + 'aggregator' => array( + 'location' => 'query', + 'type' => 'string', + ), 'labels' => array( 'location' => 'query', 'type' => 'string', @@ -176,6 +224,10 @@ class Google_Service_CloudMonitoring extends Google_Service 'location' => 'query', 'type' => 'string', ), + 'window' => array( + 'location' => 'query', + 'type' => 'string', + ), 'oldest' => array( 'location' => 'query', 'type' => 'string', @@ -200,6 +252,37 @@ class Google_Service_CloudMonitoring extends Google_Service class Google_Service_CloudMonitoring_MetricDescriptors_Resource extends Google_Service_Resource { + /** + * Create a new metric. (metricDescriptors.create) + * + * @param string $project The project id. The value can be the numeric project + * ID or string-based project name. + * @param Google_MetricDescriptor $postBody + * @param array $optParams Optional parameters. + * @return Google_Service_CloudMonitoring_MetricDescriptor + */ + public function create($project, Google_Service_CloudMonitoring_MetricDescriptor $postBody, $optParams = array()) + { + $params = array('project' => $project, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('create', array($params), "Google_Service_CloudMonitoring_MetricDescriptor"); + } + + /** + * Delete an existing metric. (metricDescriptors.delete) + * + * @param string $project The project ID to which the metric belongs. + * @param string $metric Name of the metric. + * @param array $optParams Optional parameters. + * @return Google_Service_CloudMonitoring_DeleteMetricDescriptorResponse + */ + public function delete($project, $metric, $optParams = array()) + { + $params = array('project' => $project, 'metric' => $metric); + $params = array_merge($params, $optParams); + return $this->call('delete', array($params), "Google_Service_CloudMonitoring_DeleteMetricDescriptorResponse"); + } + /** * List metric descriptors that match the query. If the query is not set, then * all of the metric descriptors will be returned. Large responses will be @@ -269,6 +352,9 @@ class Google_Service_CloudMonitoring_Timeseries_Resource extends Google_Service_ * * If neither oldest nor timespan is specified, the default time interval will * be (youngest - 4 hours, youngest]. + * @opt_param string aggregator The aggregation function that will reduce the + * data points in each window to a single point. This parameter is only valid + * for non-cumulative metrics with a value type of INT64 or DOUBLE. * @opt_param string labels A collection of labels for the matching time series, * which are represented as: - key==value: key equals the value - key=~value: * key regex matches the value - key!=value: key does not equal the value - @@ -278,6 +364,11 @@ class Google_Service_CloudMonitoring_Timeseries_Resource extends Google_Service_ * @opt_param string pageToken The pagination token, which is used to page * through large result sets. Set this value to the value of the nextPageToken * to retrieve the next page of results. + * @opt_param string window The sampling window. At most one data point will be + * returned for each window in the requested time interval. This parameter is + * only valid for non-cumulative metric types. Units: - m: minute - h: hour - + * d: day - w: week Examples: 3m, 4w. Only one unit is allowed, for example: + * 2w3d is not allowed; you should use 17d instead. * @opt_param string oldest Start of the time interval (exclusive), which is * expressed as an RFC 3339 timestamp. If neither oldest nor timespan is * specified, the default time interval will be (youngest - 4 hours, youngest] @@ -289,6 +380,28 @@ class Google_Service_CloudMonitoring_Timeseries_Resource extends Google_Service_ $params = array_merge($params, $optParams); return $this->call('list', array($params), "Google_Service_CloudMonitoring_ListTimeseriesResponse"); } + + /** + * Put data points to one or more time series for one or more metrics. If a time + * series does not exist, a new time series will be created. It is not allowed + * to write a time series point that is older than the existing youngest point + * of that time series. Points that are older than the existing youngest point + * of that time series will be discarded silently. Therefore, users should make + * sure that points of a time series are written sequentially in the order of + * their end time. (timeseries.write) + * + * @param string $project The project ID. The value can be the numeric project + * ID or string-based project name. + * @param Google_WriteTimeseriesRequest $postBody + * @param array $optParams Optional parameters. + * @return Google_Service_CloudMonitoring_WriteTimeseriesResponse + */ + public function write($project, Google_Service_CloudMonitoring_WriteTimeseriesRequest $postBody, $optParams = array()) + { + $params = array('project' => $project, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('write', array($params), "Google_Service_CloudMonitoring_WriteTimeseriesResponse"); + } } /** @@ -329,6 +442,9 @@ class Google_Service_CloudMonitoring_TimeseriesDescriptors_Resource extends Goog * * If neither oldest nor timespan is specified, the default time interval will * be (youngest - 4 hours, youngest]. + * @opt_param string aggregator The aggregation function that will reduce the + * data points in each window to a single point. This parameter is only valid + * for non-cumulative metrics with a value type of INT64 or DOUBLE. * @opt_param string labels A collection of labels for the matching time series, * which are represented as: - key==value: key equals the value - key=~value: * key regex matches the value - key!=value: key does not equal the value - @@ -338,6 +454,11 @@ class Google_Service_CloudMonitoring_TimeseriesDescriptors_Resource extends Goog * @opt_param string pageToken The pagination token, which is used to page * through large result sets. Set this value to the value of the nextPageToken * to retrieve the next page of results. + * @opt_param string window The sampling window. At most one data point will be + * returned for each window in the requested time interval. This parameter is + * only valid for non-cumulative metric types. Units: - m: minute - h: hour - + * d: day - w: week Examples: 3m, 4w. Only one unit is allowed, for example: + * 2w3d is not allowed; you should use 17d instead. * @opt_param string oldest Start of the time interval (exclusive), which is * expressed as an RFC 3339 timestamp. If neither oldest nor timespan is * specified, the default time interval will be (youngest - 4 hours, youngest] @@ -354,6 +475,23 @@ class Google_Service_CloudMonitoring_TimeseriesDescriptors_Resource extends Goog +class Google_Service_CloudMonitoring_DeleteMetricDescriptorResponse extends Google_Model +{ + protected $internal_gapi_mappings = array( + ); + public $kind; + + + public function setKind($kind) + { + $this->kind = $kind; + } + public function getKind() + { + return $this->kind; + } +} + class Google_Service_CloudMonitoring_ListMetricDescriptorsRequest extends Google_Model { protected $internal_gapi_mappings = array( @@ -951,3 +1089,80 @@ class Google_Service_CloudMonitoring_TimeseriesDescriptorLabel extends Google_Mo class Google_Service_CloudMonitoring_TimeseriesDescriptorLabels extends Google_Model { } + +class Google_Service_CloudMonitoring_TimeseriesPoint extends Google_Model +{ + protected $internal_gapi_mappings = array( + ); + protected $pointType = 'Google_Service_CloudMonitoring_Point'; + protected $pointDataType = ''; + protected $timeseriesDescType = 'Google_Service_CloudMonitoring_TimeseriesDescriptor'; + protected $timeseriesDescDataType = ''; + + + public function setPoint(Google_Service_CloudMonitoring_Point $point) + { + $this->point = $point; + } + public function getPoint() + { + return $this->point; + } + public function setTimeseriesDesc(Google_Service_CloudMonitoring_TimeseriesDescriptor $timeseriesDesc) + { + $this->timeseriesDesc = $timeseriesDesc; + } + public function getTimeseriesDesc() + { + return $this->timeseriesDesc; + } +} + +class Google_Service_CloudMonitoring_WriteTimeseriesRequest extends Google_Collection +{ + protected $collection_key = 'timeseries'; + protected $internal_gapi_mappings = array( + ); + public $commonLabels; + protected $timeseriesType = 'Google_Service_CloudMonitoring_TimeseriesPoint'; + protected $timeseriesDataType = 'array'; + + + public function setCommonLabels($commonLabels) + { + $this->commonLabels = $commonLabels; + } + public function getCommonLabels() + { + return $this->commonLabels; + } + public function setTimeseries($timeseries) + { + $this->timeseries = $timeseries; + } + public function getTimeseries() + { + return $this->timeseries; + } +} + +class Google_Service_CloudMonitoring_WriteTimeseriesRequestCommonLabels extends Google_Model +{ +} + +class Google_Service_CloudMonitoring_WriteTimeseriesResponse extends Google_Model +{ + protected $internal_gapi_mappings = array( + ); + public $kind; + + + public function setKind($kind) + { + $this->kind = $kind; + } + public function getKind() + { + return $this->kind; + } +} diff --git a/lib/google/src/Google/Service/CloudUserAccounts.php b/lib/google/src/Google/Service/CloudUserAccounts.php new file mode 100644 index 00000000000..4bc63e9c32a --- /dev/null +++ b/lib/google/src/Google/Service/CloudUserAccounts.php @@ -0,0 +1,1805 @@ + + * API for the Google Cloud User Accounts service.

+ * + *

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

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

+ * + *

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

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

+ * + *

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

+ * + * @author Google, Inc. + */ +class Google_Service_Cloudresourcemanager extends Google_Service +{ + /** View and manage your data across Google Cloud Platform services. */ + const CLOUD_PLATFORM = + "https://www.googleapis.com/auth/cloud-platform"; + + public $projects; + + + /** + * Constructs the internal representation of the Cloudresourcemanager service. + * + * @param Google_Client $client + */ + public function __construct(Google_Client $client) + { + parent::__construct($client); + $this->rootUrl = 'https://cloudresourcemanager.googleapis.com/'; + $this->servicePath = ''; + $this->version = 'v1beta1'; + $this->serviceName = 'cloudresourcemanager'; + + $this->projects = new Google_Service_Cloudresourcemanager_Projects_Resource( + $this, + $this->serviceName, + 'projects', + array( + 'methods' => array( + 'create' => array( + 'path' => 'v1beta1/projects', + 'httpMethod' => 'POST', + 'parameters' => array(), + ),'delete' => array( + 'path' => 'v1beta1/projects/{projectId}', + 'httpMethod' => 'DELETE', + 'parameters' => array( + 'projectId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ),'get' => array( + 'path' => 'v1beta1/projects/{projectId}', + 'httpMethod' => 'GET', + 'parameters' => array( + 'projectId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ),'list' => array( + 'path' => 'v1beta1/projects', + 'httpMethod' => 'GET', + 'parameters' => array( + 'filter' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'pageToken' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'pageSize' => array( + 'location' => 'query', + 'type' => 'integer', + ), + ), + ),'undelete' => array( + 'path' => 'v1beta1/projects/{projectId}:undelete', + 'httpMethod' => 'POST', + 'parameters' => array( + 'projectId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ),'update' => array( + 'path' => 'v1beta1/projects/{projectId}', + 'httpMethod' => 'PUT', + 'parameters' => array( + 'projectId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ), + ) + ) + ); + } +} + + +/** + * The "projects" collection of methods. + * Typical usage is: + * + * $cloudresourcemanagerService = new Google_Service_Cloudresourcemanager(...); + * $projects = $cloudresourcemanagerService->projects; + * + */ +class Google_Service_Cloudresourcemanager_Projects_Resource extends Google_Service_Resource +{ + + /** + * Creates a project resource. Initially, the project resource is owned by its + * creator exclusively. The creator can later grant permission to others to read + * or update the project. Several APIs are activated automatically for the + * project, including Google Cloud Storage. (projects.create) + * + * @param Google_Project $postBody + * @param array $optParams Optional parameters. + * @return Google_Service_Cloudresourcemanager_Project + */ + public function create(Google_Service_Cloudresourcemanager_Project $postBody, $optParams = array()) + { + $params = array('postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('create', array($params), "Google_Service_Cloudresourcemanager_Project"); + } + + /** + * Marks the project identified by the specified `project_id` (for example, `my- + * project-123`) for deletion. This method will only affect the project if it + * has a lifecycle state of + * [ACTIVE][cloudresourcemanager.projects.v1beta2.LifecycleState.ACTIVE] when + * this method is called. Otherwise this method does nothing (since all other + * states are phases of deletion). This method changes the project's lifecycle + * state from + * [ACTIVE][cloudresourcemanager.projects.v1beta2.LifecycleState.ACTIVE] to + * [DELETE_REQUESTED] + * [cloudresourcemanager.projects.v1beta2.LifecycleState.DELETE_REQUESTED]. The + * deletion starts at an unspecified time, at which point the lifecycle state + * changes to [DELETE_IN_PROGRESS] + * [cloudresourcemanager.projects.v1beta2.LifecycleState.DELETE_IN_PROGRESS]. + * Until the deletion completes, you can check the lifecycle state checked by + * retrieving the project with [GetProject] + * [cloudresourcemanager.projects.v1beta2.Projects.GetProject], and the project + * remains visible to [ListProjects] + * [cloudresourcemanager.projects.v1beta2.Projects.ListProjects]. However, you + * cannot update the project. After the deletion completes, the project is not + * retrievable by the [GetProject] + * [cloudresourcemanager.projects.v1beta2.Projects.GetProject] and + * [ListProjects] [cloudresourcemanager.projects.v1beta2.Projects.ListProjects] + * methods. The caller must have modify permissions for this project. + * (projects.delete) + * + * @param string $projectId The project ID (for example, `foo-bar-123`). + * Required. + * @param array $optParams Optional parameters. + * @return Google_Service_Cloudresourcemanager_Empty + */ + public function delete($projectId, $optParams = array()) + { + $params = array('projectId' => $projectId); + $params = array_merge($params, $optParams); + return $this->call('delete', array($params), "Google_Service_Cloudresourcemanager_Empty"); + } + + /** + * Retrieves the project identified by the specified `project_id` (for example, + * `my-project-123`). The caller must have read permissions for this project. + * (projects.get) + * + * @param string $projectId The project ID (for example, `my-project-123`). + * Required. + * @param array $optParams Optional parameters. + * @return Google_Service_Cloudresourcemanager_Project + */ + public function get($projectId, $optParams = array()) + { + $params = array('projectId' => $projectId); + $params = array_merge($params, $optParams); + return $this->call('get', array($params), "Google_Service_Cloudresourcemanager_Project"); + } + + /** + * Lists projects that are visible to the user and satisfy the specified filter. + * This method returns projects in an unspecified order. New projects do not + * necessarily appear at the end of the list. (projects.listProjects) + * + * @param array $optParams Optional parameters. + * + * @opt_param string filter An expression for filtering the results of the + * request. Filter rules are case insensitive. The fields eligible for filtering + * are: name id labels. where is a the name of a label Examples: name:* ==> The + * project has a name. name:Howl ==> The project’s name is `Howl` or 'howl'. + * name:HOWL ==> Equivalent to above. NAME:howl ==> Equivalent to above. + * labels.color:* ==> The project has the label "color". labels.color:red ==> + * The project’s label `color` has the value `red`. labels.color:red + * label.size:big ==> The project's label `color` has the value `red` and its + * label `size` has the value `big`. Optional. + * @opt_param string pageToken A pagination token returned from a previous call + * to ListProject that indicates from where listing should continue. Note: + * pagination is not yet supported; the server ignores this field. Optional. + * @opt_param int pageSize The maximum number of Projects to return in the + * response. The server can return fewer projects than requested. If + * unspecified, server picks an appropriate default. Note: pagination is not yet + * supported; the server ignores this field. Optional. + * @return Google_Service_Cloudresourcemanager_ListProjectsResponse + */ + public function listProjects($optParams = array()) + { + $params = array(); + $params = array_merge($params, $optParams); + return $this->call('list', array($params), "Google_Service_Cloudresourcemanager_ListProjectsResponse"); + } + + /** + * Restores the project identified by the specified `project_id` (for example, + * `my-project-123`). You can only use this method for a project that has a + * lifecycle state of [DELETE_REQUESTED] + * [cloudresourcemanager.projects.v1beta2.LifecycleState.DELETE_REQUESTED]. + * After deletion starts, as indicated by a lifecycle state of + * [DELETE_IN_PROGRESS] + * [cloudresourcemanager.projects.v1beta2.LifecycleState.DELETE_IN_PROGRESS], + * the project cannot be restored. The caller must have modify permissions for + * this project. (projects.undelete) + * + * @param string $projectId The project ID (for example, `foo-bar-123`). + * Required. + * @param array $optParams Optional parameters. + * @return Google_Service_Cloudresourcemanager_Empty + */ + public function undelete($projectId, $optParams = array()) + { + $params = array('projectId' => $projectId); + $params = array_merge($params, $optParams); + return $this->call('undelete', array($params), "Google_Service_Cloudresourcemanager_Empty"); + } + + /** + * Updates the attributes of the project identified by the specified + * `project_id` (for example, `my-project-123`). The caller must have modify + * permissions for this project. (projects.update) + * + * @param string $projectId The project ID (for example, `my-project-123`). + * Required. + * @param Google_Project $postBody + * @param array $optParams Optional parameters. + * @return Google_Service_Cloudresourcemanager_Project + */ + public function update($projectId, Google_Service_Cloudresourcemanager_Project $postBody, $optParams = array()) + { + $params = array('projectId' => $projectId, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('update', array($params), "Google_Service_Cloudresourcemanager_Project"); + } +} + + + + +class Google_Service_Cloudresourcemanager_Empty extends Google_Model +{ +} + +class Google_Service_Cloudresourcemanager_ListProjectsResponse extends Google_Collection +{ + protected $collection_key = 'projects'; + protected $internal_gapi_mappings = array( + ); + public $nextPageToken; + protected $projectsType = 'Google_Service_Cloudresourcemanager_Project'; + protected $projectsDataType = 'array'; + + + public function setNextPageToken($nextPageToken) + { + $this->nextPageToken = $nextPageToken; + } + public function getNextPageToken() + { + return $this->nextPageToken; + } + public function setProjects($projects) + { + $this->projects = $projects; + } + public function getProjects() + { + return $this->projects; + } +} + +class Google_Service_Cloudresourcemanager_Project extends Google_Model +{ + protected $internal_gapi_mappings = array( + ); + public $createTime; + public $labels; + public $lifecycleState; + public $name; + public $projectId; + public $projectNumber; + + + public function setCreateTime($createTime) + { + $this->createTime = $createTime; + } + public function getCreateTime() + { + return $this->createTime; + } + public function setLabels($labels) + { + $this->labels = $labels; + } + public function getLabels() + { + return $this->labels; + } + public function setLifecycleState($lifecycleState) + { + $this->lifecycleState = $lifecycleState; + } + public function getLifecycleState() + { + return $this->lifecycleState; + } + public function setName($name) + { + $this->name = $name; + } + public function getName() + { + return $this->name; + } + public function setProjectId($projectId) + { + $this->projectId = $projectId; + } + public function getProjectId() + { + return $this->projectId; + } + public function setProjectNumber($projectNumber) + { + $this->projectNumber = $projectNumber; + } + public function getProjectNumber() + { + return $this->projectNumber; + } +} + +class Google_Service_Cloudresourcemanager_ProjectLabels extends Google_Model +{ +} diff --git a/lib/google/src/Google/Service/Cloudsearch.php b/lib/google/src/Google/Service/Cloudsearch.php new file mode 100644 index 00000000000..4a72df8fa88 --- /dev/null +++ b/lib/google/src/Google/Service/Cloudsearch.php @@ -0,0 +1,53 @@ + + * The Google Cloud Search API defines an application interface to index + * documents that contain structured data and to search those indexes. It + * supports full text search.

+ * + *

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

+ * + * @author Google, Inc. + */ +class Google_Service_Cloudsearch extends Google_Service +{ + + + + + + /** + * Constructs the internal representation of the Cloudsearch service. + * + * @param Google_Client $client + */ + public function __construct(Google_Client $client) + { + parent::__construct($client); + $this->servicePath = ''; + $this->version = 'v1'; + $this->serviceName = 'cloudsearch'; + + } +} diff --git a/lib/google/src/Google/Service/Compute.php b/lib/google/src/Google/Service/Compute.php index 670d1f89604..6cc848b1608 100644 --- a/lib/google/src/Google/Service/Compute.php +++ b/lib/google/src/Google/Service/Compute.php @@ -30,6 +30,9 @@ */ class Google_Service_Compute extends Google_Service { + /** View and manage your data across Google Cloud Platform services. */ + const CLOUD_PLATFORM = + "https://www.googleapis.com/auth/cloud-platform"; /** View and manage your Google Compute Engine resources. */ const COMPUTE = "https://www.googleapis.com/auth/compute"; @@ -70,7 +73,9 @@ class Google_Service_Compute extends Google_Service public $targetHttpProxies; public $targetInstances; public $targetPools; + public $targetVpnGateways; public $urlMaps; + public $vpnTunnels; public $zoneOperations; public $zones; @@ -83,6 +88,7 @@ class Google_Service_Compute extends Google_Service public function __construct(Google_Client $client) { parent::__construct($client); + $this->rootUrl = 'https://www.googleapis.com/'; $this->servicePath = 'compute/v1/projects/'; $this->version = 'v1'; $this->serviceName = 'compute'; @@ -1462,6 +1468,10 @@ class Google_Service_Compute extends Google_Service 'type' => 'string', 'required' => true, ), + 'port' => array( + 'location' => 'query', + 'type' => 'integer', + ), ), ),'insert' => array( 'path' => '{project}/zones/{zone}/instances', @@ -1615,6 +1625,46 @@ class Google_Service_Compute extends Google_Service 'required' => true, ), ), + ),'start' => array( + 'path' => '{project}/zones/{zone}/instances/{instance}/start', + 'httpMethod' => 'POST', + 'parameters' => array( + 'project' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'zone' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'instance' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ),'stop' => array( + 'path' => '{project}/zones/{zone}/instances/{instance}/stop', + 'httpMethod' => 'POST', + 'parameters' => array( + 'project' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'zone' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'instance' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), ), ) ) @@ -1811,6 +1861,26 @@ class Google_Service_Compute extends Google_Service 'required' => true, ), ), + ),'moveDisk' => array( + 'path' => '{project}/moveDisk', + 'httpMethod' => 'POST', + 'parameters' => array( + 'project' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ),'moveInstance' => array( + 'path' => '{project}/moveInstance', + 'httpMethod' => 'POST', + 'parameters' => array( + 'project' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), ),'setCommonInstanceMetadata' => array( 'path' => '{project}/setCommonInstanceMetadata', 'httpMethod' => 'POST', @@ -2532,6 +2602,120 @@ class Google_Service_Compute extends Google_Service ) ) ); + $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, @@ -2649,6 +2833,120 @@ class Google_Service_Compute extends Google_Service ) ) ); + $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, @@ -2791,15 +3089,13 @@ class Google_Service_Compute_Addresses_Resource extends Google_Service_Resource /** * Retrieves the list of addresses grouped by scope. (addresses.aggregatedList) * - * @param string $project Name of the project scoping this request. + * @param string $project Project ID for this request. * @param array $optParams Optional parameters. * - * @opt_param string filter Optional. Filter expression for filtering listed - * resources. - * @opt_param string pageToken Optional. Tag returned by a previous list request - * truncated by maxResults. Used to continue a previous list request. - * @opt_param string maxResults Optional. Maximum count of results to be - * returned. Maximum value is 500 and default value is 500. + * @opt_param string filter Filter expression for filtering listed resources. + * @opt_param string pageToken Tag returned by a previous list request when that + * list was truncated to maxResults. Used to continue a previous list request. + * @opt_param string maxResults Maximum count of results to be returned. * @return Google_Service_Compute_AddressAggregatedList */ public function aggregatedList($project, $optParams = array()) @@ -2812,8 +3108,8 @@ class Google_Service_Compute_Addresses_Resource extends Google_Service_Resource /** * Deletes the specified address resource. (addresses.delete) * - * @param string $project Name of the project scoping this request. - * @param string $region Name of the region scoping this request. + * @param string $project Project ID for this request. + * @param string $region The name of the region for this request. * @param string $address Name of the address resource to delete. * @param array $optParams Optional parameters. * @return Google_Service_Compute_Operation @@ -2828,8 +3124,8 @@ class Google_Service_Compute_Addresses_Resource extends Google_Service_Resource /** * Returns the specified address resource. (addresses.get) * - * @param string $project Name of the project scoping this request. - * @param string $region Name of the region scoping this request. + * @param string $project Project ID for this request. + * @param string $region The name of the region for this request. * @param string $address Name of the address resource to return. * @param array $optParams Optional parameters. * @return Google_Service_Compute_Address @@ -2845,8 +3141,8 @@ class Google_Service_Compute_Addresses_Resource extends Google_Service_Resource * Creates an address resource in the specified project using the data included * in the request. (addresses.insert) * - * @param string $project Name of the project scoping this request. - * @param string $region Name of the region scoping this request. + * @param string $project Project ID for this request. + * @param string $region The name of the region for this request. * @param Google_Address $postBody * @param array $optParams Optional parameters. * @return Google_Service_Compute_Operation @@ -2862,16 +3158,14 @@ class Google_Service_Compute_Addresses_Resource extends Google_Service_Resource * Retrieves the list of address resources contained within the specified * region. (addresses.listAddresses) * - * @param string $project Name of the project scoping this request. - * @param string $region Name of the region scoping this request. + * @param string $project Project ID for this request. + * @param string $region The name of the region for this request. * @param array $optParams Optional parameters. * - * @opt_param string filter Optional. Filter expression for filtering listed - * resources. - * @opt_param string pageToken Optional. Tag returned by a previous list request - * truncated by maxResults. Used to continue a previous list request. - * @opt_param string maxResults Optional. Maximum count of results to be - * returned. Maximum value is 500 and default value is 500. + * @opt_param string filter Filter expression for filtering listed resources. + * @opt_param string pageToken Tag returned by a previous list request when that + * list was truncated to maxResults. Used to continue a previous list request. + * @opt_param string maxResults Maximum count of results to be returned. * @return Google_Service_Compute_AddressList */ public function listAddresses($project, $region, $optParams = array()) @@ -2964,12 +3258,10 @@ class Google_Service_Compute_BackendServices_Resource extends Google_Service_Res * @param string $project Name of the project scoping this request. * @param array $optParams Optional parameters. * - * @opt_param string filter Optional. Filter expression for filtering listed - * resources. - * @opt_param string pageToken Optional. Tag returned by a previous list request - * truncated by maxResults. Used to continue a previous list request. - * @opt_param string maxResults Optional. Maximum count of results to be - * returned. Maximum value is 500 and default value is 500. + * @opt_param string filter Filter expression for filtering listed resources. + * @opt_param string pageToken Tag returned by a previous list request when that + * list was truncated to maxResults. Used to continue a previous list request. + * @opt_param string maxResults Maximum count of results to be returned. * @return Google_Service_Compute_BackendServiceList */ public function listBackendServices($project, $optParams = array()) @@ -3029,15 +3321,13 @@ class Google_Service_Compute_DiskTypes_Resource extends Google_Service_Resource * Retrieves the list of disk type resources grouped by scope. * (diskTypes.aggregatedList) * - * @param string $project Name of the project scoping this request. + * @param string $project Project ID for this request. * @param array $optParams Optional parameters. * - * @opt_param string filter Optional. Filter expression for filtering listed - * resources. - * @opt_param string pageToken Optional. Tag returned by a previous list request - * truncated by maxResults. Used to continue a previous list request. - * @opt_param string maxResults Optional. Maximum count of results to be - * returned. Maximum value is 500 and default value is 500. + * @opt_param string filter Filter expression for filtering listed resources. + * @opt_param string pageToken Tag returned by a previous list request when that + * list was truncated to maxResults. Used to continue a previous list request. + * @opt_param string maxResults Maximum count of results to be returned. * @return Google_Service_Compute_DiskTypeAggregatedList */ public function aggregatedList($project, $optParams = array()) @@ -3050,8 +3340,8 @@ class Google_Service_Compute_DiskTypes_Resource extends Google_Service_Resource /** * Returns the specified disk type resource. (diskTypes.get) * - * @param string $project Name of the project scoping this request. - * @param string $zone Name of the zone scoping this request. + * @param string $project Project ID for this request. + * @param string $zone The name of the zone for this request. * @param string $diskType Name of the disk type resource to return. * @param array $optParams Optional parameters. * @return Google_Service_Compute_DiskType @@ -3067,16 +3357,14 @@ class Google_Service_Compute_DiskTypes_Resource extends Google_Service_Resource * Retrieves the list of disk type resources available to the specified project. * (diskTypes.listDiskTypes) * - * @param string $project Name of the project scoping this request. - * @param string $zone Name of the zone scoping this request. + * @param string $project Project ID for this request. + * @param string $zone The name of the zone for this request. * @param array $optParams Optional parameters. * - * @opt_param string filter Optional. Filter expression for filtering listed - * resources. - * @opt_param string pageToken Optional. Tag returned by a previous list request - * truncated by maxResults. Used to continue a previous list request. - * @opt_param string maxResults Optional. Maximum count of results to be - * returned. Maximum value is 500 and default value is 500. + * @opt_param string filter Filter expression for filtering listed resources. + * @opt_param string pageToken Tag returned by a previous list request when that + * list was truncated to maxResults. Used to continue a previous list request. + * @opt_param string maxResults Maximum count of results to be returned. * @return Google_Service_Compute_DiskTypeList */ public function listDiskTypes($project, $zone, $optParams = array()) @@ -3101,15 +3389,13 @@ class Google_Service_Compute_Disks_Resource extends Google_Service_Resource /** * Retrieves the list of disks grouped by scope. (disks.aggregatedList) * - * @param string $project Name of the project scoping this request. + * @param string $project Project ID for this request. * @param array $optParams Optional parameters. * - * @opt_param string filter Optional. Filter expression for filtering listed - * resources. - * @opt_param string pageToken Optional. Tag returned by a previous list request - * truncated by maxResults. Used to continue a previous list request. - * @opt_param string maxResults Optional. Maximum count of results to be - * returned. Maximum value is 500 and default value is 500. + * @opt_param string filter Filter expression for filtering listed resources. + * @opt_param string pageToken Tag returned by a previous list request when that + * list was truncated to maxResults. Used to continue a previous list request. + * @opt_param string maxResults Maximum count of results to be returned. * @return Google_Service_Compute_DiskAggregatedList */ public function aggregatedList($project, $optParams = array()) @@ -3120,11 +3406,11 @@ class Google_Service_Compute_Disks_Resource extends Google_Service_Resource } /** - * (disks.createSnapshot) + * Creates a snapshot of this disk. (disks.createSnapshot) * - * @param string $project Name of the project scoping this request. - * @param string $zone Name of the zone scoping this request. - * @param string $disk Name of the persistent disk resource to snapshot. + * @param string $project Project ID for this request. + * @param string $zone The name of the zone for this request. + * @param string $disk Name of the persistent disk to snapshot. * @param Google_Snapshot $postBody * @param array $optParams Optional parameters. * @return Google_Service_Compute_Operation @@ -3137,11 +3423,11 @@ class Google_Service_Compute_Disks_Resource extends Google_Service_Resource } /** - * Deletes the specified persistent disk resource. (disks.delete) + * Deletes the specified persistent disk. (disks.delete) * - * @param string $project Name of the project scoping this request. - * @param string $zone Name of the zone scoping this request. - * @param string $disk Name of the persistent disk resource to delete. + * @param string $project Project ID for this request. + * @param string $zone The name of the zone for this request. + * @param string $disk Name of the persistent disk to delete. * @param array $optParams Optional parameters. * @return Google_Service_Compute_Operation */ @@ -3153,11 +3439,11 @@ class Google_Service_Compute_Disks_Resource extends Google_Service_Resource } /** - * Returns the specified persistent disk resource. (disks.get) + * Returns a specified persistent disk. (disks.get) * - * @param string $project Name of the project scoping this request. - * @param string $zone Name of the zone scoping this request. - * @param string $disk Name of the persistent disk resource to return. + * @param string $project Project ID for this request. + * @param string $zone The name of the zone for this request. + * @param string $disk Name of the persistent disk to return. * @param array $optParams Optional parameters. * @return Google_Service_Compute_Disk */ @@ -3169,11 +3455,11 @@ class Google_Service_Compute_Disks_Resource extends Google_Service_Resource } /** - * Creates a persistent disk resource in the specified project using the data - * included in the request. (disks.insert) + * Creates a persistent disk in the specified project using the data included in + * the request. (disks.insert) * - * @param string $project Name of the project scoping this request. - * @param string $zone Name of the zone scoping this request. + * @param string $project Project ID for this request. + * @param string $zone The name of the zone for this request. * @param Google_Disk $postBody * @param array $optParams Optional parameters. * @@ -3188,19 +3474,17 @@ class Google_Service_Compute_Disks_Resource extends Google_Service_Resource } /** - * Retrieves the list of persistent disk resources contained within the - * specified zone. (disks.listDisks) + * Retrieves the list of persistent disks contained within the specified zone. + * (disks.listDisks) * - * @param string $project Name of the project scoping this request. - * @param string $zone Name of the zone scoping this request. + * @param string $project Project ID for this request. + * @param string $zone The name of the zone for this request. * @param array $optParams Optional parameters. * - * @opt_param string filter Optional. Filter expression for filtering listed - * resources. - * @opt_param string pageToken Optional. Tag returned by a previous list request - * truncated by maxResults. Used to continue a previous list request. - * @opt_param string maxResults Optional. Maximum count of results to be - * returned. Maximum value is 500 and default value is 500. + * @opt_param string filter Filter expression for filtering listed resources. + * @opt_param string pageToken Tag returned by a previous list request when that + * list was truncated to maxResults. Used to continue a previous list request. + * @opt_param string maxResults Maximum count of results to be returned. * @return Google_Service_Compute_DiskList */ public function listDisks($project, $zone, $optParams = array()) @@ -3225,7 +3509,7 @@ class Google_Service_Compute_Firewalls_Resource extends Google_Service_Resource /** * Deletes the specified firewall resource. (firewalls.delete) * - * @param string $project Name of the project scoping this request. + * @param string $project Project ID for this request. * @param string $firewall Name of the firewall resource to delete. * @param array $optParams Optional parameters. * @return Google_Service_Compute_Operation @@ -3240,7 +3524,7 @@ class Google_Service_Compute_Firewalls_Resource extends Google_Service_Resource /** * Returns the specified firewall resource. (firewalls.get) * - * @param string $project Name of the project scoping this request. + * @param string $project Project ID for this request. * @param string $firewall Name of the firewall resource to return. * @param array $optParams Optional parameters. * @return Google_Service_Compute_Firewall @@ -3256,7 +3540,7 @@ class Google_Service_Compute_Firewalls_Resource extends Google_Service_Resource * Creates a firewall resource in the specified project using the data included * in the request. (firewalls.insert) * - * @param string $project Name of the project scoping this request. + * @param string $project Project ID for this request. * @param Google_Firewall $postBody * @param array $optParams Optional parameters. * @return Google_Service_Compute_Operation @@ -3272,15 +3556,13 @@ class Google_Service_Compute_Firewalls_Resource extends Google_Service_Resource * Retrieves the list of firewall resources available to the specified project. * (firewalls.listFirewalls) * - * @param string $project Name of the project scoping this request. + * @param string $project Project ID for this request. * @param array $optParams Optional parameters. * - * @opt_param string filter Optional. Filter expression for filtering listed - * resources. - * @opt_param string pageToken Optional. Tag returned by a previous list request - * truncated by maxResults. Used to continue a previous list request. - * @opt_param string maxResults Optional. Maximum count of results to be - * returned. Maximum value is 500 and default value is 500. + * @opt_param string filter Filter expression for filtering listed resources. + * @opt_param string pageToken Tag returned by a previous list request when that + * list was truncated to maxResults. Used to continue a previous list request. + * @opt_param string maxResults Maximum count of results to be returned. * @return Google_Service_Compute_FirewallList */ public function listFirewalls($project, $optParams = array()) @@ -3294,7 +3576,7 @@ class Google_Service_Compute_Firewalls_Resource extends Google_Service_Resource * Updates the specified firewall resource with the data included in the * request. This method supports patch semantics. (firewalls.patch) * - * @param string $project Name of the project scoping this request. + * @param string $project Project ID for this request. * @param string $firewall Name of the firewall resource to update. * @param Google_Firewall $postBody * @param array $optParams Optional parameters. @@ -3311,7 +3593,7 @@ class Google_Service_Compute_Firewalls_Resource extends Google_Service_Resource * Updates the specified firewall resource with the data included in the * request. (firewalls.update) * - * @param string $project Name of the project scoping this request. + * @param string $project Project ID for this request. * @param string $firewall Name of the firewall resource to update. * @param Google_Firewall $postBody * @param array $optParams Optional parameters. @@ -3343,12 +3625,10 @@ class Google_Service_Compute_ForwardingRules_Resource extends Google_Service_Res * @param string $project Name of the project scoping this request. * @param array $optParams Optional parameters. * - * @opt_param string filter Optional. Filter expression for filtering listed - * resources. - * @opt_param string pageToken Optional. Tag returned by a previous list request - * truncated by maxResults. Used to continue a previous list request. - * @opt_param string maxResults Optional. Maximum count of results to be - * returned. Maximum value is 500 and default value is 500. + * @opt_param string filter Filter expression for filtering listed resources. + * @opt_param string pageToken Tag returned by a previous list request when that + * list was truncated to maxResults. Used to continue a previous list request. + * @opt_param string maxResults Maximum count of results to be returned. * @return Google_Service_Compute_ForwardingRuleAggregatedList */ public function aggregatedList($project, $optParams = array()) @@ -3415,12 +3695,10 @@ class Google_Service_Compute_ForwardingRules_Resource extends Google_Service_Res * @param string $region Name of the region scoping this request. * @param array $optParams Optional parameters. * - * @opt_param string filter Optional. Filter expression for filtering listed - * resources. - * @opt_param string pageToken Optional. Tag returned by a previous list request - * truncated by maxResults. Used to continue a previous list request. - * @opt_param string maxResults Optional. Maximum count of results to be - * returned. Maximum value is 500 and default value is 500. + * @opt_param string filter Filter expression for filtering listed resources. + * @opt_param string pageToken Tag returned by a previous list request when that + * list was truncated to maxResults. Used to continue a previous list request. + * @opt_param string maxResults Maximum count of results to be returned. * @return Google_Service_Compute_ForwardingRuleList */ public function listForwardingRules($project, $region, $optParams = array()) @@ -3463,7 +3741,7 @@ class Google_Service_Compute_GlobalAddresses_Resource extends Google_Service_Res /** * Deletes the specified address resource. (globalAddresses.delete) * - * @param string $project Name of the project scoping this request. + * @param string $project Project ID for this request. * @param string $address Name of the address resource to delete. * @param array $optParams Optional parameters. * @return Google_Service_Compute_Operation @@ -3478,7 +3756,7 @@ class Google_Service_Compute_GlobalAddresses_Resource extends Google_Service_Res /** * Returns the specified address resource. (globalAddresses.get) * - * @param string $project Name of the project scoping this request. + * @param string $project Project ID for this request. * @param string $address Name of the address resource to return. * @param array $optParams Optional parameters. * @return Google_Service_Compute_Address @@ -3494,7 +3772,7 @@ class Google_Service_Compute_GlobalAddresses_Resource extends Google_Service_Res * Creates an address resource in the specified project using the data included * in the request. (globalAddresses.insert) * - * @param string $project Name of the project scoping this request. + * @param string $project Project ID for this request. * @param Google_Address $postBody * @param array $optParams Optional parameters. * @return Google_Service_Compute_Operation @@ -3510,15 +3788,13 @@ class Google_Service_Compute_GlobalAddresses_Resource extends Google_Service_Res * Retrieves the list of global address resources. * (globalAddresses.listGlobalAddresses) * - * @param string $project Name of the project scoping this request. + * @param string $project Project ID for this request. * @param array $optParams Optional parameters. * - * @opt_param string filter Optional. Filter expression for filtering listed - * resources. - * @opt_param string pageToken Optional. Tag returned by a previous list request - * truncated by maxResults. Used to continue a previous list request. - * @opt_param string maxResults Optional. Maximum count of results to be - * returned. Maximum value is 500 and default value is 500. + * @opt_param string filter Filter expression for filtering listed resources. + * @opt_param string pageToken Tag returned by a previous list request when that + * list was truncated to maxResults. Used to continue a previous list request. + * @opt_param string maxResults Maximum count of results to be returned. * @return Google_Service_Compute_AddressList */ public function listGlobalAddresses($project, $optParams = array()) @@ -3593,12 +3869,10 @@ class Google_Service_Compute_GlobalForwardingRules_Resource extends Google_Servi * @param string $project Name of the project scoping this request. * @param array $optParams Optional parameters. * - * @opt_param string filter Optional. Filter expression for filtering listed - * resources. - * @opt_param string pageToken Optional. Tag returned by a previous list request - * truncated by maxResults. Used to continue a previous list request. - * @opt_param string maxResults Optional. Maximum count of results to be - * returned. Maximum value is 500 and default value is 500. + * @opt_param string filter Filter expression for filtering listed resources. + * @opt_param string pageToken Tag returned by a previous list request when that + * list was truncated to maxResults. Used to continue a previous list request. + * @opt_param string maxResults Maximum count of results to be returned. * @return Google_Service_Compute_ForwardingRuleList */ public function listGlobalForwardingRules($project, $optParams = array()) @@ -3641,15 +3915,13 @@ class Google_Service_Compute_GlobalOperations_Resource extends Google_Service_Re * Retrieves the list of all operations grouped by scope. * (globalOperations.aggregatedList) * - * @param string $project Name of the project scoping this request. + * @param string $project Project ID for this request. * @param array $optParams Optional parameters. * - * @opt_param string filter Optional. Filter expression for filtering listed - * resources. - * @opt_param string pageToken Optional. Tag returned by a previous list request - * truncated by maxResults. Used to continue a previous list request. - * @opt_param string maxResults Optional. Maximum count of results to be - * returned. Maximum value is 500 and default value is 500. + * @opt_param string filter Filter expression for filtering listed resources. + * @opt_param string pageToken Tag returned by a previous list request when that + * list was truncated to maxResults. Used to continue a previous list request. + * @opt_param string maxResults Maximum count of results to be returned. * @return Google_Service_Compute_OperationAggregatedList */ public function aggregatedList($project, $optParams = array()) @@ -3662,7 +3934,7 @@ class Google_Service_Compute_GlobalOperations_Resource extends Google_Service_Re /** * Deletes the specified operation resource. (globalOperations.delete) * - * @param string $project Name of the project scoping this request. + * @param string $project Project ID for this request. * @param string $operation Name of the operation resource to delete. * @param array $optParams Optional parameters. */ @@ -3676,7 +3948,7 @@ class Google_Service_Compute_GlobalOperations_Resource extends Google_Service_Re /** * Retrieves the specified operation resource. (globalOperations.get) * - * @param string $project Name of the project scoping this request. + * @param string $project Project ID for this request. * @param string $operation Name of the operation resource to return. * @param array $optParams Optional parameters. * @return Google_Service_Compute_Operation @@ -3692,15 +3964,13 @@ class Google_Service_Compute_GlobalOperations_Resource extends Google_Service_Re * Retrieves the list of operation resources contained within the specified * project. (globalOperations.listGlobalOperations) * - * @param string $project Name of the project scoping this request. + * @param string $project Project ID for this request. * @param array $optParams Optional parameters. * - * @opt_param string filter Optional. Filter expression for filtering listed - * resources. - * @opt_param string pageToken Optional. Tag returned by a previous list request - * truncated by maxResults. Used to continue a previous list request. - * @opt_param string maxResults Optional. Maximum count of results to be - * returned. Maximum value is 500 and default value is 500. + * @opt_param string filter Filter expression for filtering listed resources. + * @opt_param string pageToken Tag returned by a previous list request when that + * list was truncated to maxResults. Used to continue a previous list request. + * @opt_param string maxResults Maximum count of results to be returned. * @return Google_Service_Compute_OperationList */ public function listGlobalOperations($project, $optParams = array()) @@ -3777,12 +4047,10 @@ class Google_Service_Compute_HttpHealthChecks_Resource extends Google_Service_Re * @param string $project Name of the project scoping this request. * @param array $optParams Optional parameters. * - * @opt_param string filter Optional. Filter expression for filtering listed - * resources. - * @opt_param string pageToken Optional. Tag returned by a previous list request - * truncated by maxResults. Used to continue a previous list request. - * @opt_param string maxResults Optional. Maximum count of results to be - * returned. Maximum value is 500 and default value is 500. + * @opt_param string filter Filter expression for filtering listed resources. + * @opt_param string pageToken Tag returned by a previous list request when that + * list was truncated to maxResults. Used to continue a previous list request. + * @opt_param string maxResults Maximum count of results to be returned. * @return Google_Service_Compute_HttpHealthCheckList */ public function listHttpHealthChecks($project, $optParams = array()) @@ -3844,7 +4112,7 @@ class Google_Service_Compute_Images_Resource extends Google_Service_Resource /** * Deletes the specified image resource. (images.delete) * - * @param string $project Name of the project scoping this request. + * @param string $project Project ID for this request. * @param string $image Name of the image resource to delete. * @param array $optParams Optional parameters. * @return Google_Service_Compute_Operation @@ -3857,10 +4125,12 @@ class Google_Service_Compute_Images_Resource extends Google_Service_Resource } /** - * Sets the deprecation status of an image. If no message body is given, clears - * the deprecation status instead. (images.deprecate) + * Sets the deprecation status of an image. * - * @param string $project Name of the project scoping this request. + * If an empty request body is given, clears the deprecation status instead. + * (images.deprecate) + * + * @param string $project Project ID for this request. * @param string $image Image name. * @param Google_DeprecationStatus $postBody * @param array $optParams Optional parameters. @@ -3876,7 +4146,7 @@ class Google_Service_Compute_Images_Resource extends Google_Service_Resource /** * Returns the specified image resource. (images.get) * - * @param string $project Name of the project scoping this request. + * @param string $project Project ID for this request. * @param string $image Name of the image resource to return. * @param array $optParams Optional parameters. * @return Google_Service_Compute_Image @@ -3892,7 +4162,7 @@ class Google_Service_Compute_Images_Resource extends Google_Service_Resource * Creates an image resource in the specified project using the data included in * the request. (images.insert) * - * @param string $project Name of the project scoping this request. + * @param string $project Project ID for this request. * @param Google_Image $postBody * @param array $optParams Optional parameters. * @return Google_Service_Compute_Operation @@ -3908,15 +4178,13 @@ class Google_Service_Compute_Images_Resource extends Google_Service_Resource * Retrieves the list of image resources available to the specified project. * (images.listImages) * - * @param string $project Name of the project scoping this request. + * @param string $project Project ID for this request. * @param array $optParams Optional parameters. * - * @opt_param string filter Optional. Filter expression for filtering listed - * resources. - * @opt_param string pageToken Optional. Tag returned by a previous list request - * truncated by maxResults. Used to continue a previous list request. - * @opt_param string maxResults Optional. Maximum count of results to be - * returned. Maximum value is 500 and default value is 500. + * @opt_param string filter Filter expression for filtering listed resources. + * @opt_param string pageToken Tag returned by a previous list request when that + * list was truncated to maxResults. Used to continue a previous list request. + * @opt_param string maxResults Maximum count of results to be returned. * @return Google_Service_Compute_ImageList */ public function listImages($project, $optParams = array()) @@ -3939,11 +4207,10 @@ class Google_Service_Compute_InstanceTemplates_Resource extends Google_Service_R { /** - * Deletes the specified instance template resource. (instanceTemplates.delete) + * Deletes the specified instance template. (instanceTemplates.delete) * - * @param string $project Name of the project scoping this request. - * @param string $instanceTemplate Name of the instance template resource to - * delete. + * @param string $project The project ID for this request. + * @param string $instanceTemplate The name of the instance template to delete. * @param array $optParams Optional parameters. * @return Google_Service_Compute_Operation */ @@ -3957,9 +4224,8 @@ class Google_Service_Compute_InstanceTemplates_Resource extends Google_Service_R /** * Returns the specified instance template resource. (instanceTemplates.get) * - * @param string $project Name of the project scoping this request. - * @param string $instanceTemplate Name of the instance template resource to - * return. + * @param string $project The project ID for this request. + * @param string $instanceTemplate The name of the instance template. * @param array $optParams Optional parameters. * @return Google_Service_Compute_InstanceTemplate */ @@ -3971,10 +4237,10 @@ class Google_Service_Compute_InstanceTemplates_Resource extends Google_Service_R } /** - * Creates an instance template resource in the specified project using the data + * Creates an instance template in the specified project using the data that is * included in the request. (instanceTemplates.insert) * - * @param string $project Name of the project scoping this request. + * @param string $project The project ID for this request. * @param Google_InstanceTemplate $postBody * @param array $optParams Optional parameters. * @return Google_Service_Compute_Operation @@ -3987,18 +4253,16 @@ class Google_Service_Compute_InstanceTemplates_Resource extends Google_Service_R } /** - * Retrieves the list of instance template resources contained within the - * specified project. (instanceTemplates.listInstanceTemplates) + * Retrieves a list of instance templates that are contained within the + * specified project and zone. (instanceTemplates.listInstanceTemplates) * - * @param string $project Name of the project scoping this request. + * @param string $project The project ID for this request. * @param array $optParams Optional parameters. * - * @opt_param string filter Optional. Filter expression for filtering listed - * resources. - * @opt_param string pageToken Optional. Tag returned by a previous list request - * truncated by maxResults. Used to continue a previous list request. - * @opt_param string maxResults Optional. Maximum count of results to be - * returned. Maximum value is 500 and default value is 500. + * @opt_param string filter Filter expression for filtering listed resources. + * @opt_param string pageToken Tag returned by a previous list request when that + * list was truncated to maxResults. Used to continue a previous list request. + * @opt_param string maxResults Maximum count of results to be returned. * @return Google_Service_Compute_InstanceTemplateList */ public function listInstanceTemplates($project, $optParams = array()) @@ -4024,10 +4288,11 @@ class Google_Service_Compute_Instances_Resource extends Google_Service_Resource * Adds an access config to an instance's network interface. * (instances.addAccessConfig) * - * @param string $project Project name. - * @param string $zone Name of the zone scoping this request. - * @param string $instance Instance name. - * @param string $networkInterface Network interface name. + * @param string $project Project ID for this request. + * @param string $zone The name of the zone for this request. + * @param string $instance The instance name for this request. + * @param string $networkInterface The name of the network interface to add to + * this instance. * @param Google_AccessConfig $postBody * @param array $optParams Optional parameters. * @return Google_Service_Compute_Operation @@ -4042,15 +4307,13 @@ class Google_Service_Compute_Instances_Resource extends Google_Service_Resource /** * (instances.aggregatedList) * - * @param string $project Name of the project scoping this request. + * @param string $project Project ID for this request. * @param array $optParams Optional parameters. * - * @opt_param string filter Optional. Filter expression for filtering listed - * resources. - * @opt_param string pageToken Optional. Tag returned by a previous list request - * truncated by maxResults. Used to continue a previous list request. - * @opt_param string maxResults Optional. Maximum count of results to be - * returned. Maximum value is 500 and default value is 500. + * @opt_param string filter Filter expression for filtering listed resources. + * @opt_param string pageToken Tag returned by a previous list request when that + * list was truncated to maxResults. Used to continue a previous list request. + * @opt_param string maxResults Maximum count of results to be returned. * @return Google_Service_Compute_InstanceAggregatedList */ public function aggregatedList($project, $optParams = array()) @@ -4061,10 +4324,10 @@ class Google_Service_Compute_Instances_Resource extends Google_Service_Resource } /** - * Attaches a disk resource to an instance. (instances.attachDisk) + * Attaches a Disk resource to an instance. (instances.attachDisk) * - * @param string $project Project name. - * @param string $zone Name of the zone scoping this request. + * @param string $project Project ID for this request. + * @param string $zone The name of the zone for this request. * @param string $instance Instance name. * @param Google_AttachedDisk $postBody * @param array $optParams Optional parameters. @@ -4078,10 +4341,11 @@ class Google_Service_Compute_Instances_Resource extends Google_Service_Resource } /** - * Deletes the specified instance resource. (instances.delete) + * Deletes the specified Instance resource. For more information, see Shutting + * down an instance. (instances.delete) * - * @param string $project Name of the project scoping this request. - * @param string $zone Name of the zone scoping this request. + * @param string $project Project ID for this request. + * @param string $zone The name of the zone for this request. * @param string $instance Name of the instance resource to delete. * @param array $optParams Optional parameters. * @return Google_Service_Compute_Operation @@ -4097,11 +4361,11 @@ class Google_Service_Compute_Instances_Resource extends Google_Service_Resource * Deletes an access config from an instance's network interface. * (instances.deleteAccessConfig) * - * @param string $project Project name. - * @param string $zone Name of the zone scoping this request. - * @param string $instance Instance name. - * @param string $accessConfig Access config name. - * @param string $networkInterface Network interface name. + * @param string $project Project ID for this request. + * @param string $zone The name of the zone for this request. + * @param string $instance The instance name for this request. + * @param string $accessConfig The name of the access config to delete. + * @param string $networkInterface The name of the network interface. * @param array $optParams Optional parameters. * @return Google_Service_Compute_Operation */ @@ -4115,8 +4379,8 @@ class Google_Service_Compute_Instances_Resource extends Google_Service_Resource /** * Detaches a disk from an instance. (instances.detachDisk) * - * @param string $project Project name. - * @param string $zone Name of the zone scoping this request. + * @param string $project Project ID for this request. + * @param string $zone The name of the zone for this request. * @param string $instance Instance name. * @param string $deviceName Disk device name to detach. * @param array $optParams Optional parameters. @@ -4132,8 +4396,8 @@ class Google_Service_Compute_Instances_Resource extends Google_Service_Resource /** * Returns the specified instance resource. (instances.get) * - * @param string $project Name of the project scoping this request. - * @param string $zone Name of the zone scoping this request. + * @param string $project Project ID for this request. + * @param string $zone The name of the The name of the zone for this request.. * @param string $instance Name of the instance resource to return. * @param array $optParams Optional parameters. * @return Google_Service_Compute_Instance @@ -4149,10 +4413,12 @@ class Google_Service_Compute_Instances_Resource extends Google_Service_Resource * Returns the specified instance's serial port output. * (instances.getSerialPortOutput) * - * @param string $project Name of the project scoping this request. - * @param string $zone Name of the zone scoping this request. + * @param string $project Project ID for this request. + * @param string $zone The name of the zone for this request. * @param string $instance Name of the instance scoping this request. * @param array $optParams Optional parameters. + * + * @opt_param int port Which COM port to retrieve data from. * @return Google_Service_Compute_SerialPortOutput */ public function getSerialPortOutput($project, $zone, $instance, $optParams = array()) @@ -4166,8 +4432,8 @@ class Google_Service_Compute_Instances_Resource extends Google_Service_Resource * Creates an instance resource in the specified project using the data included * in the request. (instances.insert) * - * @param string $project Name of the project scoping this request. - * @param string $zone Name of the zone scoping this request. + * @param string $project Project ID for this request. + * @param string $zone The name of the zone for this request. * @param Google_Instance $postBody * @param array $optParams Optional parameters. * @return Google_Service_Compute_Operation @@ -4183,16 +4449,14 @@ class Google_Service_Compute_Instances_Resource extends Google_Service_Resource * Retrieves the list of instance resources contained within the specified zone. * (instances.listInstances) * - * @param string $project Name of the project scoping this request. - * @param string $zone Name of the zone scoping this request. + * @param string $project Project ID for this request. + * @param string $zone The name of the zone for this request. * @param array $optParams Optional parameters. * - * @opt_param string filter Optional. Filter expression for filtering listed - * resources. - * @opt_param string pageToken Optional. Tag returned by a previous list request - * truncated by maxResults. Used to continue a previous list request. - * @opt_param string maxResults Optional. Maximum count of results to be - * returned. Maximum value is 500 and default value is 500. + * @opt_param string filter Filter expression for filtering listed resources. + * @opt_param string pageToken Tag returned by a previous list request when that + * list was truncated to maxResults. Used to continue a previous list request. + * @opt_param string maxResults Maximum count of results to be returned. * @return Google_Service_Compute_InstanceList */ public function listInstances($project, $zone, $optParams = array()) @@ -4205,8 +4469,8 @@ class Google_Service_Compute_Instances_Resource extends Google_Service_Resource /** * Performs a hard reset on the instance. (instances.reset) * - * @param string $project Name of the project scoping this request. - * @param string $zone Name of the zone scoping this request. + * @param string $project Project ID for this request. + * @param string $zone The name of the zone for this request. * @param string $instance Name of the instance scoping this request. * @param array $optParams Optional parameters. * @return Google_Service_Compute_Operation @@ -4219,15 +4483,15 @@ class Google_Service_Compute_Instances_Resource extends Google_Service_Resource } /** - * Sets the auto-delete flag for a disk attached to an instance + * Sets the auto-delete flag for a disk attached to an instance. * (instances.setDiskAutoDelete) * - * @param string $project Project name. - * @param string $zone Name of the zone scoping this request. - * @param string $instance Instance name. + * @param string $project Project ID for this request. + * @param string $zone The name of the zone for this request. + * @param string $instance The instance name. * @param bool $autoDelete Whether to auto-delete the disk when the instance is * deleted. - * @param string $deviceName Disk device name to modify. + * @param string $deviceName The device name of the disk to modify. * @param array $optParams Optional parameters. * @return Google_Service_Compute_Operation */ @@ -4242,8 +4506,8 @@ class Google_Service_Compute_Instances_Resource extends Google_Service_Resource * Sets metadata for the specified instance to the data included in the request. * (instances.setMetadata) * - * @param string $project Name of the project scoping this request. - * @param string $zone Name of the zone scoping this request. + * @param string $project Project ID for this request. + * @param string $zone The name of the zone for this request. * @param string $instance Name of the instance scoping this request. * @param Google_Metadata $postBody * @param array $optParams Optional parameters. @@ -4259,8 +4523,8 @@ class Google_Service_Compute_Instances_Resource extends Google_Service_Resource /** * Sets an instance's scheduling options. (instances.setScheduling) * - * @param string $project Project name. - * @param string $zone Name of the zone scoping this request. + * @param string $project Project ID for this request. + * @param string $zone The name of the zone for this request. * @param string $instance Instance name. * @param Google_Scheduling $postBody * @param array $optParams Optional parameters. @@ -4277,8 +4541,8 @@ class Google_Service_Compute_Instances_Resource extends Google_Service_Resource * Sets tags for the specified instance to the data included in the request. * (instances.setTags) * - * @param string $project Name of the project scoping this request. - * @param string $zone Name of the zone scoping this request. + * @param string $project Project ID for this request. + * @param string $zone The name of the zone for this request. * @param string $instance Name of the instance scoping this request. * @param Google_Tags $postBody * @param array $optParams Optional parameters. @@ -4290,6 +4554,45 @@ class Google_Service_Compute_Instances_Resource extends Google_Service_Resource $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"); + } } /** @@ -4306,7 +4609,7 @@ class Google_Service_Compute_Licenses_Resource extends Google_Service_Resource /** * Returns the specified license resource. (licenses.get) * - * @param string $project Name of the project scoping this request. + * @param string $project Project ID for this request. * @param string $license Name of the license resource to return. * @param array $optParams Optional parameters. * @return Google_Service_Compute_License @@ -4337,12 +4640,10 @@ class Google_Service_Compute_MachineTypes_Resource extends Google_Service_Resour * @param string $project Project ID for this request. * @param array $optParams Optional parameters. * - * @opt_param string filter Optional. Filter expression for filtering listed - * resources. - * @opt_param string pageToken Optional. Tag returned by a previous list request - * truncated by maxResults. Used to continue a previous list request. - * @opt_param string maxResults Optional. Maximum count of results to be - * returned. Maximum value is 500 and default value is 500. + * @opt_param string filter Filter expression for filtering listed resources. + * @opt_param string pageToken Tag returned by a previous list request when that + * list was truncated to maxResults. Used to continue a previous list request. + * @opt_param string maxResults Maximum count of results to be returned. * @return Google_Service_Compute_MachineTypeAggregatedList */ public function aggregatedList($project, $optParams = array()) @@ -4356,7 +4657,7 @@ class Google_Service_Compute_MachineTypes_Resource extends Google_Service_Resour * Returns the specified machine type resource. (machineTypes.get) * * @param string $project Project ID for this request. - * @param string $zone Name of the zone scoping this request. + * @param string $zone The name of the zone for this request. * @param string $machineType Name of the machine type resource to return. * @param array $optParams Optional parameters. * @return Google_Service_Compute_MachineType @@ -4373,15 +4674,13 @@ class Google_Service_Compute_MachineTypes_Resource extends Google_Service_Resour * project. (machineTypes.listMachineTypes) * * @param string $project Project ID for this request. - * @param string $zone Name of the zone scoping this request. + * @param string $zone The name of the zone for this request. * @param array $optParams Optional parameters. * - * @opt_param string filter Optional. Filter expression for filtering listed - * resources. - * @opt_param string pageToken Optional. Tag returned by a previous list request - * truncated by maxResults. Used to continue a previous list request. - * @opt_param string maxResults Optional. Maximum count of results to be - * returned. Maximum value is 500 and default value is 500. + * @opt_param string filter Filter expression for filtering listed resources. + * @opt_param string pageToken Tag returned by a previous list request when that + * list was truncated to maxResults. Used to continue a previous list request. + * @opt_param string maxResults Maximum count of results to be returned. * @return Google_Service_Compute_MachineTypeList */ public function listMachineTypes($project, $zone, $optParams = array()) @@ -4406,7 +4705,7 @@ class Google_Service_Compute_Networks_Resource extends Google_Service_Resource /** * Deletes the specified network resource. (networks.delete) * - * @param string $project Name of the project scoping this request. + * @param string $project Project ID for this request. * @param string $network Name of the network resource to delete. * @param array $optParams Optional parameters. * @return Google_Service_Compute_Operation @@ -4421,7 +4720,7 @@ class Google_Service_Compute_Networks_Resource extends Google_Service_Resource /** * Returns the specified network resource. (networks.get) * - * @param string $project Name of the project scoping this request. + * @param string $project Project ID for this request. * @param string $network Name of the network resource to return. * @param array $optParams Optional parameters. * @return Google_Service_Compute_Network @@ -4437,7 +4736,7 @@ class Google_Service_Compute_Networks_Resource extends Google_Service_Resource * Creates a network resource in the specified project using the data included * in the request. (networks.insert) * - * @param string $project Name of the project scoping this request. + * @param string $project Project ID for this request. * @param Google_Network $postBody * @param array $optParams Optional parameters. * @return Google_Service_Compute_Operation @@ -4453,15 +4752,13 @@ class Google_Service_Compute_Networks_Resource extends Google_Service_Resource * Retrieves the list of network resources available to the specified project. * (networks.listNetworks) * - * @param string $project Name of the project scoping this request. + * @param string $project Project ID for this request. * @param array $optParams Optional parameters. * - * @opt_param string filter Optional. Filter expression for filtering listed - * resources. - * @opt_param string pageToken Optional. Tag returned by a previous list request - * truncated by maxResults. Used to continue a previous list request. - * @opt_param string maxResults Optional. Maximum count of results to be - * returned. Maximum value is 500 and default value is 500. + * @opt_param string filter Filter expression for filtering listed resources. + * @opt_param string pageToken Tag returned by a previous list request when that + * list was truncated to maxResults. Used to continue a previous list request. + * @opt_param string maxResults Maximum count of results to be returned. * @return Google_Service_Compute_NetworkList */ public function listNetworks($project, $optParams = array()) @@ -4486,7 +4783,7 @@ class Google_Service_Compute_Projects_Resource extends Google_Service_Resource /** * Returns the specified project resource. (projects.get) * - * @param string $project Name of the project resource to retrieve. + * @param string $project Project ID for this request. * @param array $optParams Optional parameters. * @return Google_Service_Compute_Project */ @@ -4497,11 +4794,42 @@ class Google_Service_Compute_Projects_Resource extends Google_Service_Resource return $this->call('get', array($params), "Google_Service_Compute_Project"); } + /** + * Moves a persistent disk from one zone to another. (projects.moveDisk) + * + * @param string $project Project ID for this request. + * @param Google_DiskMoveRequest $postBody + * @param array $optParams Optional parameters. + * @return Google_Service_Compute_Operation + */ + public function moveDisk($project, Google_Service_Compute_DiskMoveRequest $postBody, $optParams = array()) + { + $params = array('project' => $project, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('moveDisk', array($params), "Google_Service_Compute_Operation"); + } + + /** + * Moves an instance and its attached persistent disks from one zone to another. + * (projects.moveInstance) + * + * @param string $project Project ID for this request. + * @param Google_InstanceMoveRequest $postBody + * @param array $optParams Optional parameters. + * @return Google_Service_Compute_Operation + */ + public function moveInstance($project, Google_Service_Compute_InstanceMoveRequest $postBody, $optParams = array()) + { + $params = array('project' => $project, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('moveInstance', array($params), "Google_Service_Compute_Operation"); + } + /** * Sets metadata common to all instances within the specified project using the * data included in the request. (projects.setCommonInstanceMetadata) * - * @param string $project Name of the project scoping this request. + * @param string $project Project ID for this request. * @param Google_Metadata $postBody * @param array $optParams Optional parameters. * @return Google_Service_Compute_Operation @@ -4514,9 +4842,11 @@ class Google_Service_Compute_Projects_Resource extends Google_Service_Resource } /** - * Sets usage export location (projects.setUsageExportBucket) + * Enables the usage export feature and sets the usage export bucket where + * reports are stored. If you provide an empty request body using this method, + * the usage export feature will be disabled. (projects.setUsageExportBucket) * - * @param string $project Name of the project scoping this request. + * @param string $project Project ID for this request. * @param Google_UsageExportLocation $postBody * @param array $optParams Optional parameters. * @return Google_Service_Compute_Operation @@ -4544,7 +4874,7 @@ class Google_Service_Compute_RegionOperations_Resource extends Google_Service_Re * Deletes the specified region-specific operation resource. * (regionOperations.delete) * - * @param string $project Name of the project scoping this request. + * @param string $project Project ID for this request. * @param string $region Name of the region scoping this request. * @param string $operation Name of the operation resource to delete. * @param array $optParams Optional parameters. @@ -4560,7 +4890,7 @@ class Google_Service_Compute_RegionOperations_Resource extends Google_Service_Re * Retrieves the specified region-specific operation resource. * (regionOperations.get) * - * @param string $project Name of the project scoping this request. + * @param string $project Project ID for this request. * @param string $region Name of the zone scoping this request. * @param string $operation Name of the operation resource to return. * @param array $optParams Optional parameters. @@ -4577,16 +4907,14 @@ class Google_Service_Compute_RegionOperations_Resource extends Google_Service_Re * Retrieves the list of operation resources contained within the specified * region. (regionOperations.listRegionOperations) * - * @param string $project Name of the project scoping this request. + * @param string $project Project ID for this request. * @param string $region Name of the region scoping this request. * @param array $optParams Optional parameters. * - * @opt_param string filter Optional. Filter expression for filtering listed - * resources. - * @opt_param string pageToken Optional. Tag returned by a previous list request - * truncated by maxResults. Used to continue a previous list request. - * @opt_param string maxResults Optional. Maximum count of results to be - * returned. Maximum value is 500 and default value is 500. + * @opt_param string filter Filter expression for filtering listed resources. + * @opt_param string pageToken Tag returned by a previous list request when that + * list was truncated to maxResults. Used to continue a previous list request. + * @opt_param string maxResults Maximum count of results to be returned. * @return Google_Service_Compute_OperationList */ public function listRegionOperations($project, $region, $optParams = array()) @@ -4611,7 +4939,7 @@ class Google_Service_Compute_Regions_Resource extends Google_Service_Resource /** * Returns the specified region resource. (regions.get) * - * @param string $project Name of the project scoping this request. + * @param string $project Project ID for this request. * @param string $region Name of the region resource to return. * @param array $optParams Optional parameters. * @return Google_Service_Compute_Region @@ -4627,15 +4955,13 @@ class Google_Service_Compute_Regions_Resource extends Google_Service_Resource * Retrieves the list of region resources available to the specified project. * (regions.listRegions) * - * @param string $project Name of the project scoping this request. + * @param string $project Project ID for this request. * @param array $optParams Optional parameters. * - * @opt_param string filter Optional. Filter expression for filtering listed - * resources. - * @opt_param string pageToken Optional. Tag returned by a previous list request - * truncated by maxResults. Used to continue a previous list request. - * @opt_param string maxResults Optional. Maximum count of results to be - * returned. Maximum value is 500 and default value is 500. + * @opt_param string filter Filter expression for filtering listed resources. + * @opt_param string pageToken Tag returned by a previous list request when that + * list was truncated to maxResults. Used to continue a previous list request. + * @opt_param string maxResults Maximum count of results to be returned. * @return Google_Service_Compute_RegionList */ public function listRegions($project, $optParams = array()) @@ -4710,12 +5036,10 @@ class Google_Service_Compute_Routes_Resource extends Google_Service_Resource * @param string $project Name of the project scoping this request. * @param array $optParams Optional parameters. * - * @opt_param string filter Optional. Filter expression for filtering listed - * resources. - * @opt_param string pageToken Optional. Tag returned by a previous list request - * truncated by maxResults. Used to continue a previous list request. - * @opt_param string maxResults Optional. Maximum count of results to be - * returned. Maximum value is 500 and default value is 500. + * @opt_param string filter Filter expression for filtering listed resources. + * @opt_param string pageToken Tag returned by a previous list request when that + * list was truncated to maxResults. Used to continue a previous list request. + * @opt_param string maxResults Maximum count of results to be returned. * @return Google_Service_Compute_RouteList */ public function listRoutes($project, $optParams = array()) @@ -4776,12 +5100,10 @@ class Google_Service_Compute_Snapshots_Resource extends Google_Service_Resource * @param string $project Name of the project scoping this request. * @param array $optParams Optional parameters. * - * @opt_param string filter Optional. Filter expression for filtering listed - * resources. - * @opt_param string pageToken Optional. Tag returned by a previous list request - * truncated by maxResults. Used to continue a previous list request. - * @opt_param string maxResults Optional. Maximum count of results to be - * returned. Maximum value is 500 and default value is 500. + * @opt_param string filter Filter expression for filtering listed resources. + * @opt_param string pageToken Tag returned by a previous list request when that + * list was truncated to maxResults. Used to continue a previous list request. + * @opt_param string maxResults Maximum count of results to be returned. * @return Google_Service_Compute_SnapshotList */ public function listSnapshots($project, $optParams = array()) @@ -4858,12 +5180,10 @@ class Google_Service_Compute_TargetHttpProxies_Resource extends Google_Service_R * @param string $project Name of the project scoping this request. * @param array $optParams Optional parameters. * - * @opt_param string filter Optional. Filter expression for filtering listed - * resources. - * @opt_param string pageToken Optional. Tag returned by a previous list request - * truncated by maxResults. Used to continue a previous list request. - * @opt_param string maxResults Optional. Maximum count of results to be - * returned. Maximum value is 500 and default value is 500. + * @opt_param string filter Filter expression for filtering listed resources. + * @opt_param string pageToken Tag returned by a previous list request when that + * list was truncated to maxResults. Used to continue a previous list request. + * @opt_param string maxResults Maximum count of results to be returned. * @return Google_Service_Compute_TargetHttpProxyList */ public function listTargetHttpProxies($project, $optParams = array()) @@ -4909,12 +5229,10 @@ class Google_Service_Compute_TargetInstances_Resource extends Google_Service_Res * @param string $project Name of the project scoping this request. * @param array $optParams Optional parameters. * - * @opt_param string filter Optional. Filter expression for filtering listed - * resources. - * @opt_param string pageToken Optional. Tag returned by a previous list request - * truncated by maxResults. Used to continue a previous list request. - * @opt_param string maxResults Optional. Maximum count of results to be - * returned. Maximum value is 500 and default value is 500. + * @opt_param string filter Filter expression for filtering listed resources. + * @opt_param string pageToken Tag returned by a previous list request when that + * list was truncated to maxResults. Used to continue a previous list request. + * @opt_param string maxResults Maximum count of results to be returned. * @return Google_Service_Compute_TargetInstanceAggregatedList */ public function aggregatedList($project, $optParams = array()) @@ -4981,12 +5299,10 @@ class Google_Service_Compute_TargetInstances_Resource extends Google_Service_Res * @param string $zone Name of the zone scoping this request. * @param array $optParams Optional parameters. * - * @opt_param string filter Optional. Filter expression for filtering listed - * resources. - * @opt_param string pageToken Optional. Tag returned by a previous list request - * truncated by maxResults. Used to continue a previous list request. - * @opt_param string maxResults Optional. Maximum count of results to be - * returned. Maximum value is 500 and default value is 500. + * @opt_param string filter Filter expression for filtering listed resources. + * @opt_param string pageToken Tag returned by a previous list request when that + * list was truncated to maxResults. Used to continue a previous list request. + * @opt_param string maxResults Maximum count of results to be returned. * @return Google_Service_Compute_TargetInstanceList */ public function listTargetInstances($project, $zone, $optParams = array()) @@ -5051,12 +5367,10 @@ class Google_Service_Compute_TargetPools_Resource extends Google_Service_Resourc * @param string $project Name of the project scoping this request. * @param array $optParams Optional parameters. * - * @opt_param string filter Optional. Filter expression for filtering listed - * resources. - * @opt_param string pageToken Optional. Tag returned by a previous list request - * truncated by maxResults. Used to continue a previous list request. - * @opt_param string maxResults Optional. Maximum count of results to be - * returned. Maximum value is 500 and default value is 500. + * @opt_param string filter Filter expression for filtering listed resources. + * @opt_param string pageToken Tag returned by a previous list request when that + * list was truncated to maxResults. Used to continue a previous list request. + * @opt_param string maxResults Maximum count of results to be returned. * @return Google_Service_Compute_TargetPoolAggregatedList */ public function aggregatedList($project, $optParams = array()) @@ -5142,12 +5456,10 @@ class Google_Service_Compute_TargetPools_Resource extends Google_Service_Resourc * @param string $region Name of the region scoping this request. * @param array $optParams Optional parameters. * - * @opt_param string filter Optional. Filter expression for filtering listed - * resources. - * @opt_param string pageToken Optional. Tag returned by a previous list request - * truncated by maxResults. Used to continue a previous list request. - * @opt_param string maxResults Optional. Maximum count of results to be - * returned. Maximum value is 500 and default value is 500. + * @opt_param string filter Filter expression for filtering listed resources. + * @opt_param string pageToken Tag returned by a previous list request when that + * list was truncated to maxResults. Used to continue a previous list request. + * @opt_param string maxResults Maximum count of results to be returned. * @return Google_Service_Compute_TargetPoolList */ public function listTargetPools($project, $region, $optParams = array()) @@ -5215,6 +5527,110 @@ class Google_Service_Compute_TargetPools_Resource extends Google_Service_Resourc } } +/** + * The "targetVpnGateways" collection of methods. + * Typical usage is: + * + * $computeService = new Google_Service_Compute(...); + * $targetVpnGateways = $computeService->targetVpnGateways; + * + */ +class Google_Service_Compute_TargetVpnGateways_Resource extends Google_Service_Resource +{ + + /** + * Retrieves the list of target VPN gateways grouped by scope. + * (targetVpnGateways.aggregatedList) + * + * @param string $project Project ID for this request. + * @param array $optParams Optional parameters. + * + * @opt_param string filter Filter expression for filtering listed resources. + * @opt_param string pageToken Tag returned by a previous list request when that + * list was truncated to maxResults. Used to continue a previous list request. + * @opt_param string maxResults Maximum count of results to be returned. + * @return Google_Service_Compute_TargetVpnGatewayAggregatedList + */ + public function aggregatedList($project, $optParams = array()) + { + $params = array('project' => $project); + $params = array_merge($params, $optParams); + return $this->call('aggregatedList', array($params), "Google_Service_Compute_TargetVpnGatewayAggregatedList"); + } + + /** + * Deletes the specified TargetVpnGateway resource. (targetVpnGateways.delete) + * + * @param string $project Project ID for this request. + * @param string $region The name of the region for this request. + * @param string $targetVpnGateway Name of the TargetVpnGateway resource to + * delete. + * @param array $optParams Optional parameters. + * @return Google_Service_Compute_Operation + */ + public function delete($project, $region, $targetVpnGateway, $optParams = array()) + { + $params = array('project' => $project, 'region' => $region, 'targetVpnGateway' => $targetVpnGateway); + $params = array_merge($params, $optParams); + return $this->call('delete', array($params), "Google_Service_Compute_Operation"); + } + + /** + * Returns the specified TargetVpnGateway resource. (targetVpnGateways.get) + * + * @param string $project Project ID for this request. + * @param string $region The name of the region for this request. + * @param string $targetVpnGateway Name of the TargetVpnGateway resource to + * return. + * @param array $optParams Optional parameters. + * @return Google_Service_Compute_TargetVpnGateway + */ + public function get($project, $region, $targetVpnGateway, $optParams = array()) + { + $params = array('project' => $project, 'region' => $region, 'targetVpnGateway' => $targetVpnGateway); + $params = array_merge($params, $optParams); + return $this->call('get', array($params), "Google_Service_Compute_TargetVpnGateway"); + } + + /** + * Creates a TargetVpnGateway resource in the specified project and region using + * the data included in the request. (targetVpnGateways.insert) + * + * @param string $project Project ID for this request. + * @param string $region The name of the region for this request. + * @param Google_TargetVpnGateway $postBody + * @param array $optParams Optional parameters. + * @return Google_Service_Compute_Operation + */ + public function insert($project, $region, Google_Service_Compute_TargetVpnGateway $postBody, $optParams = array()) + { + $params = array('project' => $project, 'region' => $region, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('insert', array($params), "Google_Service_Compute_Operation"); + } + + /** + * Retrieves the list of TargetVpnGateway resources available to the specified + * project and region. (targetVpnGateways.listTargetVpnGateways) + * + * @param string $project Project ID for this request. + * @param string $region The name of the region for this request. + * @param array $optParams Optional parameters. + * + * @opt_param string filter Filter expression for filtering listed resources. + * @opt_param string pageToken Tag returned by a previous list request when that + * list was truncated to maxResults. Used to continue a previous list request. + * @opt_param string maxResults Maximum count of results to be returned. + * @return Google_Service_Compute_TargetVpnGatewayList + */ + public function listTargetVpnGateways($project, $region, $optParams = array()) + { + $params = array('project' => $project, 'region' => $region); + $params = array_merge($params, $optParams); + return $this->call('list', array($params), "Google_Service_Compute_TargetVpnGatewayList"); + } +} + /** * The "urlMaps" collection of methods. * Typical usage is: @@ -5279,12 +5695,10 @@ class Google_Service_Compute_UrlMaps_Resource extends Google_Service_Resource * @param string $project Name of the project scoping this request. * @param array $optParams Optional parameters. * - * @opt_param string filter Optional. Filter expression for filtering listed - * resources. - * @opt_param string pageToken Optional. Tag returned by a previous list request - * truncated by maxResults. Used to continue a previous list request. - * @opt_param string maxResults Optional. Maximum count of results to be - * returned. Maximum value is 500 and default value is 500. + * @opt_param string filter Filter expression for filtering listed resources. + * @opt_param string pageToken Tag returned by a previous list request when that + * list was truncated to maxResults. Used to continue a previous list request. + * @opt_param string maxResults Maximum count of results to be returned. * @return Google_Service_Compute_UrlMapList */ public function listUrlMaps($project, $optParams = array()) @@ -5346,6 +5760,108 @@ class Google_Service_Compute_UrlMaps_Resource extends Google_Service_Resource } } +/** + * The "vpnTunnels" collection of methods. + * Typical usage is: + * + * $computeService = new Google_Service_Compute(...); + * $vpnTunnels = $computeService->vpnTunnels; + * + */ +class Google_Service_Compute_VpnTunnels_Resource extends Google_Service_Resource +{ + + /** + * Retrieves the list of VPN tunnels grouped by scope. + * (vpnTunnels.aggregatedList) + * + * @param string $project Project ID for this request. + * @param array $optParams Optional parameters. + * + * @opt_param string filter Filter expression for filtering listed resources. + * @opt_param string pageToken Tag returned by a previous list request when that + * list was truncated to maxResults. Used to continue a previous list request. + * @opt_param string maxResults Maximum count of results to be returned. + * @return Google_Service_Compute_VpnTunnelAggregatedList + */ + public function aggregatedList($project, $optParams = array()) + { + $params = array('project' => $project); + $params = array_merge($params, $optParams); + return $this->call('aggregatedList', array($params), "Google_Service_Compute_VpnTunnelAggregatedList"); + } + + /** + * Deletes the specified VpnTunnel resource. (vpnTunnels.delete) + * + * @param string $project Project ID for this request. + * @param string $region The name of the region for this request. + * @param string $vpnTunnel Name of the VpnTunnel resource to delete. + * @param array $optParams Optional parameters. + * @return Google_Service_Compute_Operation + */ + public function delete($project, $region, $vpnTunnel, $optParams = array()) + { + $params = array('project' => $project, 'region' => $region, 'vpnTunnel' => $vpnTunnel); + $params = array_merge($params, $optParams); + return $this->call('delete', array($params), "Google_Service_Compute_Operation"); + } + + /** + * Returns the specified VpnTunnel resource. (vpnTunnels.get) + * + * @param string $project Project ID for this request. + * @param string $region The name of the region for this request. + * @param string $vpnTunnel Name of the VpnTunnel resource to return. + * @param array $optParams Optional parameters. + * @return Google_Service_Compute_VpnTunnel + */ + public function get($project, $region, $vpnTunnel, $optParams = array()) + { + $params = array('project' => $project, 'region' => $region, 'vpnTunnel' => $vpnTunnel); + $params = array_merge($params, $optParams); + return $this->call('get', array($params), "Google_Service_Compute_VpnTunnel"); + } + + /** + * Creates a VpnTunnel resource in the specified project and region using the + * data included in the request. (vpnTunnels.insert) + * + * @param string $project Project ID for this request. + * @param string $region The name of the region for this request. + * @param Google_VpnTunnel $postBody + * @param array $optParams Optional parameters. + * @return Google_Service_Compute_Operation + */ + public function insert($project, $region, Google_Service_Compute_VpnTunnel $postBody, $optParams = array()) + { + $params = array('project' => $project, 'region' => $region, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('insert', array($params), "Google_Service_Compute_Operation"); + } + + /** + * Retrieves the list of VpnTunnel resources contained in the specified project + * and region. (vpnTunnels.listVpnTunnels) + * + * @param string $project Project ID for this request. + * @param string $region The name of the region for this request. + * @param array $optParams Optional parameters. + * + * @opt_param string filter Filter expression for filtering listed resources. + * @opt_param string pageToken Tag returned by a previous list request when that + * list was truncated to maxResults. Used to continue a previous list request. + * @opt_param string maxResults Maximum count of results to be returned. + * @return Google_Service_Compute_VpnTunnelList + */ + public function listVpnTunnels($project, $region, $optParams = array()) + { + $params = array('project' => $project, 'region' => $region); + $params = array_merge($params, $optParams); + return $this->call('list', array($params), "Google_Service_Compute_VpnTunnelList"); + } +} + /** * The "zoneOperations" collection of methods. * Typical usage is: @@ -5361,7 +5877,7 @@ class Google_Service_Compute_ZoneOperations_Resource extends Google_Service_Reso * Deletes the specified zone-specific operation resource. * (zoneOperations.delete) * - * @param string $project Name of the project scoping this request. + * @param string $project Project ID for this request. * @param string $zone Name of the zone scoping this request. * @param string $operation Name of the operation resource to delete. * @param array $optParams Optional parameters. @@ -5377,7 +5893,7 @@ class Google_Service_Compute_ZoneOperations_Resource extends Google_Service_Reso * Retrieves the specified zone-specific operation resource. * (zoneOperations.get) * - * @param string $project Name of the project scoping this request. + * @param string $project Project ID for this request. * @param string $zone Name of the zone scoping this request. * @param string $operation Name of the operation resource to return. * @param array $optParams Optional parameters. @@ -5394,16 +5910,14 @@ class Google_Service_Compute_ZoneOperations_Resource extends Google_Service_Reso * Retrieves the list of operation resources contained within the specified * zone. (zoneOperations.listZoneOperations) * - * @param string $project Name of the project scoping this request. + * @param string $project Project ID for this request. * @param string $zone Name of the zone scoping this request. * @param array $optParams Optional parameters. * - * @opt_param string filter Optional. Filter expression for filtering listed - * resources. - * @opt_param string pageToken Optional. Tag returned by a previous list request - * truncated by maxResults. Used to continue a previous list request. - * @opt_param string maxResults Optional. Maximum count of results to be - * returned. Maximum value is 500 and default value is 500. + * @opt_param string filter Filter expression for filtering listed resources. + * @opt_param string pageToken Tag returned by a previous list request when that + * list was truncated to maxResults. Used to continue a previous list request. + * @opt_param string maxResults Maximum count of results to be returned. * @return Google_Service_Compute_OperationList */ public function listZoneOperations($project, $zone, $optParams = array()) @@ -5428,7 +5942,7 @@ class Google_Service_Compute_Zones_Resource extends Google_Service_Resource /** * Returns the specified zone resource. (zones.get) * - * @param string $project Name of the project scoping this request. + * @param string $project Project ID for this request. * @param string $zone Name of the zone resource to return. * @param array $optParams Optional parameters. * @return Google_Service_Compute_Zone @@ -5444,15 +5958,13 @@ class Google_Service_Compute_Zones_Resource extends Google_Service_Resource * Retrieves the list of zone resources available to the specified project. * (zones.listZones) * - * @param string $project Name of the project scoping this request. + * @param string $project Project ID for this request. * @param array $optParams Optional parameters. * - * @opt_param string filter Optional. Filter expression for filtering listed - * resources. - * @opt_param string pageToken Optional. Tag returned by a previous list request - * truncated by maxResults. Used to continue a previous list request. - * @opt_param string maxResults Optional. Maximum count of results to be - * returned. Maximum value is 500 and default value is 500. + * @opt_param string filter Filter expression for filtering listed resources. + * @opt_param string pageToken Tag returned by a previous list request when that + * list was truncated to maxResults. Used to continue a previous list request. + * @opt_param string maxResults Maximum count of results to be returned. * @return Google_Service_Compute_ZoneList */ public function listZones($project, $optParams = array()) @@ -6303,13 +6815,15 @@ class Google_Service_Compute_DeprecationStatus extends Google_Model class Google_Service_Compute_Disk extends Google_Collection { - protected $collection_key = 'licenses'; + protected $collection_key = 'users'; protected $internal_gapi_mappings = array( ); public $creationTimestamp; public $description; public $id; public $kind; + public $lastAttachTimestamp; + public $lastDetachTimestamp; public $licenses; public $name; public $options; @@ -6321,6 +6835,7 @@ class Google_Service_Compute_Disk extends Google_Collection public $sourceSnapshotId; public $status; public $type; + public $users; public $zone; @@ -6356,6 +6871,22 @@ class Google_Service_Compute_Disk extends Google_Collection { 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; @@ -6444,6 +6975,14 @@ class Google_Service_Compute_Disk extends Google_Collection { return $this->type; } + public function setUsers($users) + { + $this->users = $users; + } + public function getUsers() + { + return $this->users; + } public function setZone($zone) { $this->zone = $zone; @@ -6567,6 +7106,32 @@ class Google_Service_Compute_DiskList extends Google_Collection } } +class Google_Service_Compute_DiskMoveRequest extends Google_Model +{ + protected $internal_gapi_mappings = array( + ); + public $destinationZone; + public $targetDisk; + + + public function setDestinationZone($destinationZone) + { + $this->destinationZone = $destinationZone; + } + public function getDestinationZone() + { + return $this->destinationZone; + } + public function setTargetDisk($targetDisk) + { + $this->targetDisk = $targetDisk; + } + public function getTargetDisk() + { + return $this->targetDisk; + } +} + class Google_Service_Compute_DiskType extends Google_Model { protected $internal_gapi_mappings = array( @@ -7988,6 +8553,7 @@ class Google_Service_Compute_Instance extends Google_Collection protected $internal_gapi_mappings = array( ); public $canIpForward; + public $cpuPlatform; public $creationTimestamp; public $description; protected $disksType = 'Google_Service_Compute_AttachedDisk'; @@ -8020,6 +8586,14 @@ class Google_Service_Compute_Instance extends Google_Collection { return $this->canIpForward; } + public function setCpuPlatform($cpuPlatform) + { + $this->cpuPlatform = $cpuPlatform; + } + public function getCpuPlatform() + { + return $this->cpuPlatform; + } public function setCreationTimestamp($creationTimestamp) { $this->creationTimestamp = $creationTimestamp; @@ -8263,6 +8837,32 @@ class Google_Service_Compute_InstanceList extends Google_Collection } } +class Google_Service_Compute_InstanceMoveRequest extends Google_Model +{ + protected $internal_gapi_mappings = array( + ); + public $destinationZone; + public $targetInstance; + + + public function setDestinationZone($destinationZone) + { + $this->destinationZone = $destinationZone; + } + public function getDestinationZone() + { + return $this->destinationZone; + } + public function setTargetInstance($targetInstance) + { + $this->targetInstance = $targetInstance; + } + public function getTargetInstance() + { + return $this->targetInstance; + } +} + class Google_Service_Compute_InstanceProperties extends Google_Collection { protected $collection_key = 'serviceAccounts'; @@ -10164,6 +10764,7 @@ class Google_Service_Compute_Route extends Google_Collection public $nextHopInstance; public $nextHopIp; public $nextHopNetwork; + public $nextHopVpnTunnel; public $priority; public $selfLink; public $tags; @@ -10259,6 +10860,14 @@ class Google_Service_Compute_Route extends Google_Collection { return $this->nextHopNetwork; } + public function setNextHopVpnTunnel($nextHopVpnTunnel) + { + $this->nextHopVpnTunnel = $nextHopVpnTunnel; + } + public function getNextHopVpnTunnel() + { + return $this->nextHopVpnTunnel; + } public function setPriority($priority) { $this->priority = $priority; @@ -10417,6 +11026,7 @@ class Google_Service_Compute_Scheduling extends Google_Model ); public $automaticRestart; public $onHostMaintenance; + public $preemptible; public function setAutomaticRestart($automaticRestart) @@ -10435,6 +11045,14 @@ class Google_Service_Compute_Scheduling extends Google_Model { return $this->onHostMaintenance; } + public function setPreemptible($preemptible) + { + $this->preemptible = $preemptible; + } + public function getPreemptible() + { + return $this->preemptible; + } } class Google_Service_Compute_SerialPortOutput extends Google_Model @@ -11570,6 +12188,319 @@ class Google_Service_Compute_TargetReference extends Google_Model } } +class Google_Service_Compute_TargetVpnGateway extends Google_Collection +{ + protected $collection_key = 'tunnels'; + protected $internal_gapi_mappings = array( + ); + public $creationTimestamp; + public $description; + public $forwardingRules; + public $id; + public $kind; + public $name; + public $network; + public $region; + public $selfLink; + public $status; + public $tunnels; + + + public function setCreationTimestamp($creationTimestamp) + { + $this->creationTimestamp = $creationTimestamp; + } + public function getCreationTimestamp() + { + return $this->creationTimestamp; + } + public function setDescription($description) + { + $this->description = $description; + } + public function getDescription() + { + return $this->description; + } + public function setForwardingRules($forwardingRules) + { + $this->forwardingRules = $forwardingRules; + } + public function getForwardingRules() + { + return $this->forwardingRules; + } + public function setId($id) + { + $this->id = $id; + } + public function getId() + { + return $this->id; + } + public function setKind($kind) + { + $this->kind = $kind; + } + public function getKind() + { + return $this->kind; + } + public function setName($name) + { + $this->name = $name; + } + public function getName() + { + return $this->name; + } + public function setNetwork($network) + { + $this->network = $network; + } + public function getNetwork() + { + return $this->network; + } + public function setRegion($region) + { + $this->region = $region; + } + public function getRegion() + { + return $this->region; + } + public function setSelfLink($selfLink) + { + $this->selfLink = $selfLink; + } + public function getSelfLink() + { + return $this->selfLink; + } + public function setStatus($status) + { + $this->status = $status; + } + public function getStatus() + { + return $this->status; + } + public function setTunnels($tunnels) + { + $this->tunnels = $tunnels; + } + public function getTunnels() + { + return $this->tunnels; + } +} + +class Google_Service_Compute_TargetVpnGatewayAggregatedList extends Google_Model +{ + protected $internal_gapi_mappings = array( + ); + public $id; + protected $itemsType = 'Google_Service_Compute_TargetVpnGatewaysScopedList'; + protected $itemsDataType = 'map'; + public $kind; + public $nextPageToken; + public $selfLink; + + + public function setId($id) + { + $this->id = $id; + } + public function getId() + { + return $this->id; + } + public function setItems($items) + { + $this->items = $items; + } + public function getItems() + { + return $this->items; + } + public function setKind($kind) + { + $this->kind = $kind; + } + public function getKind() + { + return $this->kind; + } + public function setNextPageToken($nextPageToken) + { + $this->nextPageToken = $nextPageToken; + } + public function getNextPageToken() + { + return $this->nextPageToken; + } + public function setSelfLink($selfLink) + { + $this->selfLink = $selfLink; + } + public function getSelfLink() + { + return $this->selfLink; + } +} + +class Google_Service_Compute_TargetVpnGatewayAggregatedListItems extends Google_Model +{ +} + +class Google_Service_Compute_TargetVpnGatewayList extends Google_Collection +{ + protected $collection_key = 'items'; + protected $internal_gapi_mappings = array( + ); + public $id; + protected $itemsType = 'Google_Service_Compute_TargetVpnGateway'; + protected $itemsDataType = 'array'; + public $kind; + public $nextPageToken; + public $selfLink; + + + public function setId($id) + { + $this->id = $id; + } + public function getId() + { + return $this->id; + } + public function setItems($items) + { + $this->items = $items; + } + public function getItems() + { + return $this->items; + } + public function setKind($kind) + { + $this->kind = $kind; + } + public function getKind() + { + return $this->kind; + } + public function setNextPageToken($nextPageToken) + { + $this->nextPageToken = $nextPageToken; + } + public function getNextPageToken() + { + return $this->nextPageToken; + } + public function setSelfLink($selfLink) + { + $this->selfLink = $selfLink; + } + public function getSelfLink() + { + return $this->selfLink; + } +} + +class Google_Service_Compute_TargetVpnGatewaysScopedList extends Google_Collection +{ + protected $collection_key = 'targetVpnGateways'; + protected $internal_gapi_mappings = array( + ); + protected $targetVpnGatewaysType = 'Google_Service_Compute_TargetVpnGateway'; + protected $targetVpnGatewaysDataType = 'array'; + protected $warningType = 'Google_Service_Compute_TargetVpnGatewaysScopedListWarning'; + protected $warningDataType = ''; + + + public function setTargetVpnGateways($targetVpnGateways) + { + $this->targetVpnGateways = $targetVpnGateways; + } + public function getTargetVpnGateways() + { + return $this->targetVpnGateways; + } + public function setWarning(Google_Service_Compute_TargetVpnGatewaysScopedListWarning $warning) + { + $this->warning = $warning; + } + public function getWarning() + { + return $this->warning; + } +} + +class Google_Service_Compute_TargetVpnGatewaysScopedListWarning extends Google_Collection +{ + protected $collection_key = 'data'; + protected $internal_gapi_mappings = array( + ); + public $code; + protected $dataType = 'Google_Service_Compute_TargetVpnGatewaysScopedListWarningData'; + protected $dataDataType = 'array'; + public $message; + + + public function setCode($code) + { + $this->code = $code; + } + public function getCode() + { + return $this->code; + } + public function setData($data) + { + $this->data = $data; + } + public function getData() + { + return $this->data; + } + public function setMessage($message) + { + $this->message = $message; + } + public function getMessage() + { + return $this->message; + } +} + +class Google_Service_Compute_TargetVpnGatewaysScopedListWarningData extends Google_Model +{ + protected $internal_gapi_mappings = array( + ); + public $key; + public $value; + + + public function setKey($key) + { + $this->key = $key; + } + public function getKey() + { + return $this->key; + } + public function setValue($value) + { + $this->value = $value; + } + public function getValue() + { + return $this->value; + } +} + class Google_Service_Compute_TestFailure extends Google_Model { protected $internal_gapi_mappings = array( @@ -11949,6 +12880,355 @@ class Google_Service_Compute_UsageExportLocation extends Google_Model } } +class Google_Service_Compute_VpnTunnel extends Google_Collection +{ + protected $collection_key = 'ikeNetworks'; + protected $internal_gapi_mappings = array( + ); + public $creationTimestamp; + public $description; + public $detailedStatus; + public $id; + public $ikeNetworks; + public $ikeVersion; + public $kind; + public $name; + public $peerIp; + public $region; + public $selfLink; + public $sharedSecret; + public $sharedSecretHash; + public $status; + public $targetVpnGateway; + + + public function setCreationTimestamp($creationTimestamp) + { + $this->creationTimestamp = $creationTimestamp; + } + public function getCreationTimestamp() + { + return $this->creationTimestamp; + } + public function setDescription($description) + { + $this->description = $description; + } + public function getDescription() + { + return $this->description; + } + public function setDetailedStatus($detailedStatus) + { + $this->detailedStatus = $detailedStatus; + } + public function getDetailedStatus() + { + return $this->detailedStatus; + } + public function setId($id) + { + $this->id = $id; + } + public function getId() + { + return $this->id; + } + public function setIkeNetworks($ikeNetworks) + { + $this->ikeNetworks = $ikeNetworks; + } + public function getIkeNetworks() + { + return $this->ikeNetworks; + } + public function setIkeVersion($ikeVersion) + { + $this->ikeVersion = $ikeVersion; + } + public function getIkeVersion() + { + return $this->ikeVersion; + } + public function setKind($kind) + { + $this->kind = $kind; + } + public function getKind() + { + return $this->kind; + } + public function setName($name) + { + $this->name = $name; + } + public function getName() + { + return $this->name; + } + public function setPeerIp($peerIp) + { + $this->peerIp = $peerIp; + } + public function getPeerIp() + { + return $this->peerIp; + } + public function setRegion($region) + { + $this->region = $region; + } + public function getRegion() + { + return $this->region; + } + public function setSelfLink($selfLink) + { + $this->selfLink = $selfLink; + } + public function getSelfLink() + { + return $this->selfLink; + } + public function setSharedSecret($sharedSecret) + { + $this->sharedSecret = $sharedSecret; + } + public function getSharedSecret() + { + return $this->sharedSecret; + } + public function setSharedSecretHash($sharedSecretHash) + { + $this->sharedSecretHash = $sharedSecretHash; + } + public function getSharedSecretHash() + { + return $this->sharedSecretHash; + } + public function setStatus($status) + { + $this->status = $status; + } + public function getStatus() + { + return $this->status; + } + public function setTargetVpnGateway($targetVpnGateway) + { + $this->targetVpnGateway = $targetVpnGateway; + } + public function getTargetVpnGateway() + { + return $this->targetVpnGateway; + } +} + +class Google_Service_Compute_VpnTunnelAggregatedList extends Google_Model +{ + protected $internal_gapi_mappings = array( + ); + public $id; + protected $itemsType = 'Google_Service_Compute_VpnTunnelsScopedList'; + protected $itemsDataType = 'map'; + public $kind; + public $nextPageToken; + public $selfLink; + + + public function setId($id) + { + $this->id = $id; + } + public function getId() + { + return $this->id; + } + public function setItems($items) + { + $this->items = $items; + } + public function getItems() + { + return $this->items; + } + public function setKind($kind) + { + $this->kind = $kind; + } + public function getKind() + { + return $this->kind; + } + public function setNextPageToken($nextPageToken) + { + $this->nextPageToken = $nextPageToken; + } + public function getNextPageToken() + { + return $this->nextPageToken; + } + public function setSelfLink($selfLink) + { + $this->selfLink = $selfLink; + } + public function getSelfLink() + { + return $this->selfLink; + } +} + +class Google_Service_Compute_VpnTunnelAggregatedListItems extends Google_Model +{ +} + +class Google_Service_Compute_VpnTunnelList extends Google_Collection +{ + protected $collection_key = 'items'; + protected $internal_gapi_mappings = array( + ); + public $id; + protected $itemsType = 'Google_Service_Compute_VpnTunnel'; + protected $itemsDataType = 'array'; + public $kind; + public $nextPageToken; + public $selfLink; + + + public function setId($id) + { + $this->id = $id; + } + public function getId() + { + return $this->id; + } + public function setItems($items) + { + $this->items = $items; + } + public function getItems() + { + return $this->items; + } + public function setKind($kind) + { + $this->kind = $kind; + } + public function getKind() + { + return $this->kind; + } + public function setNextPageToken($nextPageToken) + { + $this->nextPageToken = $nextPageToken; + } + public function getNextPageToken() + { + return $this->nextPageToken; + } + public function setSelfLink($selfLink) + { + $this->selfLink = $selfLink; + } + public function getSelfLink() + { + return $this->selfLink; + } +} + +class Google_Service_Compute_VpnTunnelsScopedList extends Google_Collection +{ + protected $collection_key = 'vpnTunnels'; + protected $internal_gapi_mappings = array( + ); + protected $vpnTunnelsType = 'Google_Service_Compute_VpnTunnel'; + protected $vpnTunnelsDataType = 'array'; + protected $warningType = 'Google_Service_Compute_VpnTunnelsScopedListWarning'; + protected $warningDataType = ''; + + + public function setVpnTunnels($vpnTunnels) + { + $this->vpnTunnels = $vpnTunnels; + } + public function getVpnTunnels() + { + return $this->vpnTunnels; + } + public function setWarning(Google_Service_Compute_VpnTunnelsScopedListWarning $warning) + { + $this->warning = $warning; + } + public function getWarning() + { + return $this->warning; + } +} + +class Google_Service_Compute_VpnTunnelsScopedListWarning extends Google_Collection +{ + protected $collection_key = 'data'; + protected $internal_gapi_mappings = array( + ); + public $code; + protected $dataType = 'Google_Service_Compute_VpnTunnelsScopedListWarningData'; + protected $dataDataType = 'array'; + public $message; + + + public function setCode($code) + { + $this->code = $code; + } + public function getCode() + { + return $this->code; + } + public function setData($data) + { + $this->data = $data; + } + public function getData() + { + return $this->data; + } + public function setMessage($message) + { + $this->message = $message; + } + public function getMessage() + { + return $this->message; + } +} + +class Google_Service_Compute_VpnTunnelsScopedListWarningData extends Google_Model +{ + protected $internal_gapi_mappings = array( + ); + public $key; + public $value; + + + public function setKey($key) + { + $this->key = $key; + } + public function getKey() + { + return $this->key; + } + public function setValue($value) + { + $this->value = $value; + } + public function getValue() + { + return $this->value; + } +} + class Google_Service_Compute_Zone extends Google_Collection { protected $collection_key = 'maintenanceWindows'; diff --git a/lib/google/src/Google/Service/Computeaccounts.php b/lib/google/src/Google/Service/Computeaccounts.php new file mode 100644 index 00000000000..35eacaf4715 --- /dev/null +++ b/lib/google/src/Google/Service/Computeaccounts.php @@ -0,0 +1,1689 @@ + + * API for the Google Compute Accounts service.

+ * + *

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

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

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

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

* * @author Google, Inc. @@ -35,8 +35,6 @@ class Google_Service_Container extends Google_Service const CLOUD_PLATFORM = "https://www.googleapis.com/auth/cloud-platform"; - public $projects_clusters; - public $projects_operations; public $projects_zones_clusters; public $projects_zones_operations; @@ -49,50 +47,11 @@ class Google_Service_Container extends Google_Service public function __construct(Google_Client $client) { parent::__construct($client); - $this->servicePath = 'container/v1beta1/projects/'; - $this->version = 'v1beta1'; + $this->rootUrl = 'https://container.googleapis.com/'; + $this->servicePath = ''; + $this->version = 'v1'; $this->serviceName = 'container'; - $this->projects_clusters = new Google_Service_Container_ProjectsClusters_Resource( - $this, - $this->serviceName, - 'clusters', - array( - 'methods' => array( - 'list' => array( - 'path' => '{projectId}/clusters', - 'httpMethod' => 'GET', - 'parameters' => array( - 'projectId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ), - ) - ) - ); - $this->projects_operations = new Google_Service_Container_ProjectsOperations_Resource( - $this, - $this->serviceName, - 'operations', - array( - 'methods' => array( - 'list' => array( - 'path' => '{projectId}/operations', - 'httpMethod' => 'GET', - 'parameters' => array( - 'projectId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ), - ) - ) - ); $this->projects_zones_clusters = new Google_Service_Container_ProjectsZonesClusters_Resource( $this, $this->serviceName, @@ -100,7 +59,7 @@ class Google_Service_Container extends Google_Service array( 'methods' => array( 'create' => array( - 'path' => '{projectId}/zones/{zoneId}/clusters', + 'path' => 'v1/projects/{projectId}/zones/{zone}/clusters', 'httpMethod' => 'POST', 'parameters' => array( 'projectId' => array( @@ -108,14 +67,14 @@ class Google_Service_Container extends Google_Service 'type' => 'string', 'required' => true, ), - 'zoneId' => array( + 'zone' => array( 'location' => 'path', 'type' => 'string', 'required' => true, ), ), ),'delete' => array( - 'path' => '{projectId}/zones/{zoneId}/clusters/{clusterId}', + 'path' => 'v1/projects/{projectId}/zones/{zone}/clusters/{clusterId}', 'httpMethod' => 'DELETE', 'parameters' => array( 'projectId' => array( @@ -123,7 +82,7 @@ class Google_Service_Container extends Google_Service 'type' => 'string', 'required' => true, ), - 'zoneId' => array( + 'zone' => array( 'location' => 'path', 'type' => 'string', 'required' => true, @@ -135,7 +94,7 @@ class Google_Service_Container extends Google_Service ), ), ),'get' => array( - 'path' => '{projectId}/zones/{zoneId}/clusters/{clusterId}', + 'path' => 'v1/projects/{projectId}/zones/{zone}/clusters/{clusterId}', 'httpMethod' => 'GET', 'parameters' => array( 'projectId' => array( @@ -143,7 +102,7 @@ class Google_Service_Container extends Google_Service 'type' => 'string', 'required' => true, ), - 'zoneId' => array( + 'zone' => array( 'location' => 'path', 'type' => 'string', 'required' => true, @@ -155,7 +114,7 @@ class Google_Service_Container extends Google_Service ), ), ),'list' => array( - 'path' => '{projectId}/zones/{zoneId}/clusters', + 'path' => 'v1/projects/{projectId}/zones/{zone}/clusters', 'httpMethod' => 'GET', 'parameters' => array( 'projectId' => array( @@ -163,7 +122,27 @@ class Google_Service_Container extends Google_Service 'type' => 'string', 'required' => true, ), - 'zoneId' => array( + 'zone' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ),'update' => array( + 'path' => 'v1/projects/{projectId}/zones/{zone}/clusters/{clusterId}', + 'httpMethod' => 'PUT', + 'parameters' => array( + 'projectId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'zone' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'clusterId' => array( 'location' => 'path', 'type' => 'string', 'required' => true, @@ -180,7 +159,7 @@ class Google_Service_Container extends Google_Service array( 'methods' => array( 'get' => array( - 'path' => '{projectId}/zones/{zoneId}/operations/{operationId}', + 'path' => 'v1/projects/{projectId}/zones/{zone}/operations/{operationId}', 'httpMethod' => 'GET', 'parameters' => array( 'projectId' => array( @@ -188,7 +167,7 @@ class Google_Service_Container extends Google_Service 'type' => 'string', 'required' => true, ), - 'zoneId' => array( + 'zone' => array( 'location' => 'path', 'type' => 'string', 'required' => true, @@ -200,7 +179,7 @@ class Google_Service_Container extends Google_Service ), ), ),'list' => array( - 'path' => '{projectId}/zones/{zoneId}/operations', + 'path' => 'v1/projects/{projectId}/zones/{zone}/operations', 'httpMethod' => 'GET', 'parameters' => array( 'projectId' => array( @@ -208,7 +187,7 @@ class Google_Service_Container extends Google_Service 'type' => 'string', 'required' => true, ), - 'zoneId' => array( + 'zone' => array( 'location' => 'path', 'type' => 'string', 'required' => true, @@ -234,60 +213,6 @@ class Google_Service_Container_Projects_Resource extends Google_Service_Resource { } -/** - * The "clusters" collection of methods. - * Typical usage is: - * - * $containerService = new Google_Service_Container(...); - * $clusters = $containerService->clusters; - * - */ -class Google_Service_Container_ProjectsClusters_Resource extends Google_Service_Resource -{ - - /** - * Lists all clusters owned by a project across all zones. - * (clusters.listProjectsClusters) - * - * @param string $projectId The Google Developers Console project ID or project - * number. - * @param array $optParams Optional parameters. - * @return Google_Service_Container_ListAggregatedClustersResponse - */ - public function listProjectsClusters($projectId, $optParams = array()) - { - $params = array('projectId' => $projectId); - $params = array_merge($params, $optParams); - return $this->call('list', array($params), "Google_Service_Container_ListAggregatedClustersResponse"); - } -} -/** - * The "operations" collection of methods. - * Typical usage is: - * - * $containerService = new Google_Service_Container(...); - * $operations = $containerService->operations; - * - */ -class Google_Service_Container_ProjectsOperations_Resource extends Google_Service_Resource -{ - - /** - * Lists all operations in a project, across all zones. - * (operations.listProjectsOperations) - * - * @param string $projectId The Google Developers Console project ID or project - * number. - * @param array $optParams Optional parameters. - * @return Google_Service_Container_ListAggregatedOperationsResponse - */ - public function listProjectsOperations($projectId, $optParams = array()) - { - $params = array('projectId' => $projectId); - $params = array_merge($params, $optParams); - return $this->call('list', array($params), "Google_Service_Container_ListAggregatedOperationsResponse"); - } -} /** * The "zones" collection of methods. * Typical usage is: @@ -313,50 +238,47 @@ class Google_Service_Container_ProjectsZonesClusters_Resource extends Google_Ser /** * Creates a cluster, consisting of the specified number and type of Google - * Compute Engine instances, plus a Kubernetes master instance. + * Compute Engine instances, plus a Kubernetes master endpoint. By default, the + * cluster is created in the project's [default + * network]('/compute/docs/networking#networks_1'). One firewall is added for + * the cluster. After cluster creation, the cluster creates routes for each node + * to allow the containers on that node to communicate with all other instances + * in the cluster. Finally, an entry is added to the project's global metadata + * indicating which CIDR range is being used by the cluster. (clusters.create) * - * The cluster is created in the project's default network. - * - * A firewall is added that allows traffic into port 443 on the master, which - * enables HTTPS. A firewall and a route is added for each node to allow the - * containers on that node to communicate with all other instances in the - * cluster. - * - * Finally, a route named k8s-iproute-10-xx-0-0 is created to track that the - * cluster's 10.xx.0.0/16 CIDR has been assigned. (clusters.create) - * - * @param string $projectId The Google Developers Console project ID or project - * number. - * @param string $zoneId The name of the Google Compute Engine zone in which the - * cluster resides. + * @param string $projectId The Google Developers Console [project + * ID](https://console.developers.google.com/project) or [project + * number](https://developers.google.com/console/help/project-number) + * @param string $zone The name of the Google Compute Engine + * [zone](/compute/docs/zones#available) in which the cluster resides. * @param Google_CreateClusterRequest $postBody * @param array $optParams Optional parameters. * @return Google_Service_Container_Operation */ - public function create($projectId, $zoneId, Google_Service_Container_CreateClusterRequest $postBody, $optParams = array()) + public function create($projectId, $zone, Google_Service_Container_CreateClusterRequest $postBody, $optParams = array()) { - $params = array('projectId' => $projectId, 'zoneId' => $zoneId, 'postBody' => $postBody); + $params = array('projectId' => $projectId, 'zone' => $zone, 'postBody' => $postBody); $params = array_merge($params, $optParams); return $this->call('create', array($params), "Google_Service_Container_Operation"); } /** - * Deletes the cluster, including the Kubernetes master and all worker nodes. - * - * Firewalls and routes that were configured at cluster creation are also + * Deletes the cluster, including the Kubernetes endpoint and all worker nodes. + * Firewalls and routes that were configured during cluster creation are also * deleted. (clusters.delete) * - * @param string $projectId The Google Developers Console project ID or project - * number. - * @param string $zoneId The name of the Google Compute Engine zone in which the - * cluster resides. + * @param string $projectId The Google Developers Console [project + * ID](https://console.developers.google.com/project) or [project + * number](https://developers.google.com/console/help/project-number) + * @param string $zone The name of the Google Compute Engine + * [zone](/compute/docs/zones#available) in which the cluster resides. * @param string $clusterId The name of the cluster to delete. * @param array $optParams Optional parameters. * @return Google_Service_Container_Operation */ - public function delete($projectId, $zoneId, $clusterId, $optParams = array()) + public function delete($projectId, $zone, $clusterId, $optParams = array()) { - $params = array('projectId' => $projectId, 'zoneId' => $zoneId, 'clusterId' => $clusterId); + $params = array('projectId' => $projectId, 'zone' => $zone, 'clusterId' => $clusterId); $params = array_merge($params, $optParams); return $this->call('delete', array($params), "Google_Service_Container_Operation"); } @@ -364,38 +286,61 @@ class Google_Service_Container_ProjectsZonesClusters_Resource extends Google_Ser /** * Gets a specific cluster. (clusters.get) * - * @param string $projectId The Google Developers Console project ID or project - * number. - * @param string $zoneId The name of the Google Compute Engine zone in which the - * cluster resides. + * @param string $projectId The Google Developers Console A [project + * ID](https://console.developers.google.com/project) or [project + * number](https://developers.google.com/console/help/project-number) + * @param string $zone The name of the Google Compute Engine + * [zone](/compute/docs/zones#available) in which the cluster resides. * @param string $clusterId The name of the cluster to retrieve. * @param array $optParams Optional parameters. * @return Google_Service_Container_Cluster */ - public function get($projectId, $zoneId, $clusterId, $optParams = array()) + public function get($projectId, $zone, $clusterId, $optParams = array()) { - $params = array('projectId' => $projectId, 'zoneId' => $zoneId, 'clusterId' => $clusterId); + $params = array('projectId' => $projectId, 'zone' => $zone, 'clusterId' => $clusterId); $params = array_merge($params, $optParams); return $this->call('get', array($params), "Google_Service_Container_Cluster"); } /** - * Lists all clusters owned by a project in the specified zone. - * (clusters.listProjectsZonesClusters) + * Lists all clusters owned by a project in either the specified zone or all + * zones. (clusters.listProjectsZonesClusters) * - * @param string $projectId The Google Developers Console project ID or project - * number. - * @param string $zoneId The name of the Google Compute Engine zone in which the - * cluster resides. + * @param string $projectId The Google Developers Console [project + * ID](https://console.developers.google.com/project) or [project + * number](https://developers.google.com/console/help/project-number) + * @param string $zone The name of the Google Compute Engine + * [zone](/compute/docs/zones#available) in which the cluster resides, or "-" + * for all zones. * @param array $optParams Optional parameters. * @return Google_Service_Container_ListClustersResponse */ - public function listProjectsZonesClusters($projectId, $zoneId, $optParams = array()) + public function listProjectsZonesClusters($projectId, $zone, $optParams = array()) { - $params = array('projectId' => $projectId, 'zoneId' => $zoneId); + $params = array('projectId' => $projectId, 'zone' => $zone); $params = array_merge($params, $optParams); return $this->call('list', array($params), "Google_Service_Container_ListClustersResponse"); } + + /** + * Update settings of a specific cluster. (clusters.update) + * + * @param string $projectId The Google Developers Console [project + * ID](https://console.developers.google.com/project) or [project + * number](https://developers.google.com/console/help/project-number) + * @param string $zone The name of the Google Compute Engine + * [zone](/compute/docs/zones#available) in which the cluster resides. + * @param string $clusterId The name of the cluster to upgrade. + * @param Google_UpdateClusterRequest $postBody + * @param array $optParams Optional parameters. + * @return Google_Service_Container_Operation + */ + public function update($projectId, $zone, $clusterId, Google_Service_Container_UpdateClusterRequest $postBody, $optParams = array()) + { + $params = array('projectId' => $projectId, 'zone' => $zone, 'clusterId' => $clusterId, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('update', array($params), "Google_Service_Container_Operation"); + } } /** * The "operations" collection of methods. @@ -411,36 +356,38 @@ class Google_Service_Container_ProjectsZonesOperations_Resource extends Google_S /** * Gets the specified operation. (operations.get) * - * @param string $projectId The Google Developers Console project ID or project - * number. - * @param string $zoneId The name of the Google Compute Engine zone in which the - * operation resides. This is always the same zone as the cluster with which the - * operation is associated. - * @param string $operationId The server-assigned name of the operation. + * @param string $projectId The Google Developers Console [project + * ID](https://console.developers.google.com/project) or [project + * number](https://developers.google.com/console/help/project-number) + * @param string $zone The name of the Google Compute Engine + * [zone](/compute/docs/zones#available) in which the cluster resides. + * @param string $operationId The server-assigned `name` of the operation. * @param array $optParams Optional parameters. * @return Google_Service_Container_Operation */ - public function get($projectId, $zoneId, $operationId, $optParams = array()) + public function get($projectId, $zone, $operationId, $optParams = array()) { - $params = array('projectId' => $projectId, 'zoneId' => $zoneId, 'operationId' => $operationId); + $params = array('projectId' => $projectId, 'zone' => $zone, 'operationId' => $operationId); $params = array_merge($params, $optParams); return $this->call('get', array($params), "Google_Service_Container_Operation"); } /** - * Lists all operations in a project in a specific zone. + * Lists all operations in a project in a specific zone or all zones. * (operations.listProjectsZonesOperations) * - * @param string $projectId The Google Developers Console project ID or project - * number. - * @param string $zoneId The name of the Google Compute Engine zone to return - * operations for. + * @param string $projectId The Google Developers Console [project + * ID](https://console.developers.google.com/project) or [project + * number](https://developers.google.com/console/help/project-number) + * @param string $zone The name of the Google Compute Engine + * [zone](/compute/docs/zones#available) to return operations for, or "-" for + * all zones. * @param array $optParams Optional parameters. * @return Google_Service_Container_ListOperationsResponse */ - public function listProjectsZonesOperations($projectId, $zoneId, $optParams = array()) + public function listProjectsZonesOperations($projectId, $zone, $optParams = array()) { - $params = array('projectId' => $projectId, 'zoneId' => $zoneId); + $params = array('projectId' => $projectId, 'zone' => $zone); $params = array_merge($params, $optParams); return $this->call('list', array($params), "Google_Service_Container_ListOperationsResponse"); } @@ -449,51 +396,67 @@ class Google_Service_Container_ProjectsZonesOperations_Resource extends Google_S -class Google_Service_Container_Cluster extends Google_Model +class Google_Service_Container_Cluster extends Google_Collection { + protected $collection_key = 'instanceGroupUrls'; protected $internal_gapi_mappings = array( ); - public $clusterApiVersion; - public $containerIpv4Cidr; - public $creationTimestamp; + public $clusterIpv4Cidr; + public $createTime; + public $currentMasterVersion; + public $currentNodeVersion; public $description; public $endpoint; + public $initialClusterVersion; + public $initialNodeCount; + public $instanceGroupUrls; + public $loggingService; protected $masterAuthType = 'Google_Service_Container_MasterAuth'; protected $masterAuthDataType = ''; + public $monitoringService; public $name; + public $network; protected $nodeConfigType = 'Google_Service_Container_NodeConfig'; protected $nodeConfigDataType = ''; - public $nodeRoutingPrefixSize; - public $numNodes; + public $nodeIpv4CidrSize; + public $selfLink; public $servicesIpv4Cidr; public $status; public $statusMessage; public $zone; - public function setClusterApiVersion($clusterApiVersion) + public function setClusterIpv4Cidr($clusterIpv4Cidr) { - $this->clusterApiVersion = $clusterApiVersion; + $this->clusterIpv4Cidr = $clusterIpv4Cidr; } - public function getClusterApiVersion() + public function getClusterIpv4Cidr() { - return $this->clusterApiVersion; + return $this->clusterIpv4Cidr; } - public function setContainerIpv4Cidr($containerIpv4Cidr) + public function setCreateTime($createTime) { - $this->containerIpv4Cidr = $containerIpv4Cidr; + $this->createTime = $createTime; } - public function getContainerIpv4Cidr() + public function getCreateTime() { - return $this->containerIpv4Cidr; + return $this->createTime; } - public function setCreationTimestamp($creationTimestamp) + public function setCurrentMasterVersion($currentMasterVersion) { - $this->creationTimestamp = $creationTimestamp; + $this->currentMasterVersion = $currentMasterVersion; } - public function getCreationTimestamp() + public function getCurrentMasterVersion() { - return $this->creationTimestamp; + return $this->currentMasterVersion; + } + public function setCurrentNodeVersion($currentNodeVersion) + { + $this->currentNodeVersion = $currentNodeVersion; + } + public function getCurrentNodeVersion() + { + return $this->currentNodeVersion; } public function setDescription($description) { @@ -511,6 +474,38 @@ class Google_Service_Container_Cluster extends Google_Model { return $this->endpoint; } + public function setInitialClusterVersion($initialClusterVersion) + { + $this->initialClusterVersion = $initialClusterVersion; + } + public function getInitialClusterVersion() + { + return $this->initialClusterVersion; + } + public function setInitialNodeCount($initialNodeCount) + { + $this->initialNodeCount = $initialNodeCount; + } + public function getInitialNodeCount() + { + return $this->initialNodeCount; + } + public function setInstanceGroupUrls($instanceGroupUrls) + { + $this->instanceGroupUrls = $instanceGroupUrls; + } + public function getInstanceGroupUrls() + { + return $this->instanceGroupUrls; + } + public function setLoggingService($loggingService) + { + $this->loggingService = $loggingService; + } + public function getLoggingService() + { + return $this->loggingService; + } public function setMasterAuth(Google_Service_Container_MasterAuth $masterAuth) { $this->masterAuth = $masterAuth; @@ -519,6 +514,14 @@ class Google_Service_Container_Cluster extends Google_Model { return $this->masterAuth; } + public function setMonitoringService($monitoringService) + { + $this->monitoringService = $monitoringService; + } + public function getMonitoringService() + { + return $this->monitoringService; + } public function setName($name) { $this->name = $name; @@ -527,6 +530,14 @@ class Google_Service_Container_Cluster extends Google_Model { return $this->name; } + public function setNetwork($network) + { + $this->network = $network; + } + public function getNetwork() + { + return $this->network; + } public function setNodeConfig(Google_Service_Container_NodeConfig $nodeConfig) { $this->nodeConfig = $nodeConfig; @@ -535,21 +546,21 @@ class Google_Service_Container_Cluster extends Google_Model { return $this->nodeConfig; } - public function setNodeRoutingPrefixSize($nodeRoutingPrefixSize) + public function setNodeIpv4CidrSize($nodeIpv4CidrSize) { - $this->nodeRoutingPrefixSize = $nodeRoutingPrefixSize; + $this->nodeIpv4CidrSize = $nodeIpv4CidrSize; } - public function getNodeRoutingPrefixSize() + public function getNodeIpv4CidrSize() { - return $this->nodeRoutingPrefixSize; + return $this->nodeIpv4CidrSize; } - public function setNumNodes($numNodes) + public function setSelfLink($selfLink) { - $this->numNodes = $numNodes; + $this->selfLink = $selfLink; } - public function getNumNodes() + public function getSelfLink() { - return $this->numNodes; + return $this->selfLink; } public function setServicesIpv4Cidr($servicesIpv4Cidr) { @@ -585,6 +596,23 @@ class Google_Service_Container_Cluster extends Google_Model } } +class Google_Service_Container_ClusterUpdate extends Google_Model +{ + protected $internal_gapi_mappings = array( + ); + public $desiredNodeVersion; + + + public function setDesiredNodeVersion($desiredNodeVersion) + { + $this->desiredNodeVersion = $desiredNodeVersion; + } + public function getDesiredNodeVersion() + { + return $this->desiredNodeVersion; + } +} + class Google_Service_Container_CreateClusterRequest extends Google_Model { protected $internal_gapi_mappings = array( @@ -603,44 +631,6 @@ class Google_Service_Container_CreateClusterRequest extends Google_Model } } -class Google_Service_Container_ListAggregatedClustersResponse extends Google_Collection -{ - protected $collection_key = 'clusters'; - protected $internal_gapi_mappings = array( - ); - protected $clustersType = 'Google_Service_Container_Cluster'; - protected $clustersDataType = 'array'; - - - public function setClusters($clusters) - { - $this->clusters = $clusters; - } - public function getClusters() - { - return $this->clusters; - } -} - -class Google_Service_Container_ListAggregatedOperationsResponse extends Google_Collection -{ - protected $collection_key = 'operations'; - protected $internal_gapi_mappings = array( - ); - protected $operationsType = 'Google_Service_Container_Operation'; - protected $operationsDataType = 'array'; - - - public function setOperations($operations) - { - $this->operations = $operations; - } - public function getOperations() - { - return $this->operations; - } -} - class Google_Service_Container_ListClustersResponse extends Google_Collection { protected $collection_key = 'clusters'; @@ -683,10 +673,37 @@ class Google_Service_Container_MasterAuth extends Google_Model { protected $internal_gapi_mappings = array( ); + public $clientCertificate; + public $clientKey; + public $clusterCaCertificate; public $password; - public $user; + public $username; + public function setClientCertificate($clientCertificate) + { + $this->clientCertificate = $clientCertificate; + } + public function getClientCertificate() + { + return $this->clientCertificate; + } + public function setClientKey($clientKey) + { + $this->clientKey = $clientKey; + } + public function getClientKey() + { + return $this->clientKey; + } + public function setClusterCaCertificate($clusterCaCertificate) + { + $this->clusterCaCertificate = $clusterCaCertificate; + } + public function getClusterCaCertificate() + { + return $this->clusterCaCertificate; + } public function setPassword($password) { $this->password = $password; @@ -695,24 +712,34 @@ class Google_Service_Container_MasterAuth extends Google_Model { return $this->password; } - public function setUser($user) + public function setUsername($username) { - $this->user = $user; + $this->username = $username; } - public function getUser() + public function getUsername() { - return $this->user; + return $this->username; } } -class Google_Service_Container_NodeConfig extends Google_Model +class Google_Service_Container_NodeConfig extends Google_Collection { + protected $collection_key = 'oauthScopes'; protected $internal_gapi_mappings = array( ); + public $diskSizeGb; public $machineType; - public $sourceImage; + public $oauthScopes; + public function setDiskSizeGb($diskSizeGb) + { + $this->diskSizeGb = $diskSizeGb; + } + public function getDiskSizeGb() + { + return $this->diskSizeGb; + } public function setMachineType($machineType) { $this->machineType = $machineType; @@ -721,13 +748,13 @@ class Google_Service_Container_NodeConfig extends Google_Model { return $this->machineType; } - public function setSourceImage($sourceImage) + public function setOauthScopes($oauthScopes) { - $this->sourceImage = $sourceImage; + $this->oauthScopes = $oauthScopes; } - public function getSourceImage() + public function getOauthScopes() { - return $this->sourceImage; + return $this->oauthScopes; } } @@ -735,22 +762,15 @@ class Google_Service_Container_Operation extends Google_Model { protected $internal_gapi_mappings = array( ); - public $errorMessage; public $name; public $operationType; + public $selfLink; public $status; - public $target; + public $statusMessage; + public $targetLink; public $zone; - public function setErrorMessage($errorMessage) - { - $this->errorMessage = $errorMessage; - } - public function getErrorMessage() - { - return $this->errorMessage; - } public function setName($name) { $this->name = $name; @@ -767,6 +787,14 @@ class Google_Service_Container_Operation extends Google_Model { return $this->operationType; } + public function setSelfLink($selfLink) + { + $this->selfLink = $selfLink; + } + public function getSelfLink() + { + return $this->selfLink; + } public function setStatus($status) { $this->status = $status; @@ -775,13 +803,21 @@ class Google_Service_Container_Operation extends Google_Model { return $this->status; } - public function setTarget($target) + public function setStatusMessage($statusMessage) { - $this->target = $target; + $this->statusMessage = $statusMessage; } - public function getTarget() + public function getStatusMessage() { - return $this->target; + return $this->statusMessage; + } + public function setTargetLink($targetLink) + { + $this->targetLink = $targetLink; + } + public function getTargetLink() + { + return $this->targetLink; } public function setZone($zone) { @@ -792,3 +828,21 @@ class Google_Service_Container_Operation extends Google_Model return $this->zone; } } + +class Google_Service_Container_UpdateClusterRequest extends Google_Model +{ + protected $internal_gapi_mappings = array( + ); + protected $updateType = 'Google_Service_Container_ClusterUpdate'; + protected $updateDataType = ''; + + + public function setUpdate(Google_Service_Container_ClusterUpdate $update) + { + $this->update = $update; + } + public function getUpdate() + { + return $this->update; + } +} diff --git a/lib/google/src/Google/Service/Coordinate.php b/lib/google/src/Google/Service/Coordinate.php index 2dcd1a8ac21..80b5ebbd2e1 100644 --- a/lib/google/src/Google/Service/Coordinate.php +++ b/lib/google/src/Google/Service/Coordinate.php @@ -41,6 +41,7 @@ class Google_Service_Coordinate extends Google_Service public $jobs; public $location; public $schedule; + public $team; public $worker; @@ -52,7 +53,8 @@ class Google_Service_Coordinate extends Google_Service public function __construct(Google_Client $client) { parent::__construct($client); - $this->servicePath = 'coordinate/v1/teams/'; + $this->rootUrl = 'https://www.googleapis.com/'; + $this->servicePath = 'coordinate/v1/'; $this->version = 'v1'; $this->serviceName = 'coordinate'; @@ -63,7 +65,7 @@ class Google_Service_Coordinate extends Google_Service array( 'methods' => array( 'list' => array( - 'path' => '{teamId}/custom_fields', + 'path' => 'teams/{teamId}/custom_fields', 'httpMethod' => 'GET', 'parameters' => array( 'teamId' => array( @@ -83,7 +85,7 @@ class Google_Service_Coordinate extends Google_Service array( 'methods' => array( 'get' => array( - 'path' => '{teamId}/jobs/{jobId}', + 'path' => 'teams/{teamId}/jobs/{jobId}', 'httpMethod' => 'GET', 'parameters' => array( 'teamId' => array( @@ -98,7 +100,7 @@ class Google_Service_Coordinate extends Google_Service ), ), ),'insert' => array( - 'path' => '{teamId}/jobs', + 'path' => 'teams/{teamId}/jobs', 'httpMethod' => 'POST', 'parameters' => array( 'teamId' => array( @@ -149,7 +151,7 @@ class Google_Service_Coordinate extends Google_Service ), ), ),'list' => array( - 'path' => '{teamId}/jobs', + 'path' => 'teams/{teamId}/jobs', 'httpMethod' => 'GET', 'parameters' => array( 'teamId' => array( @@ -171,7 +173,7 @@ class Google_Service_Coordinate extends Google_Service ), ), ),'patch' => array( - 'path' => '{teamId}/jobs/{jobId}', + 'path' => 'teams/{teamId}/jobs/{jobId}', 'httpMethod' => 'PATCH', 'parameters' => array( 'teamId' => array( @@ -227,7 +229,7 @@ class Google_Service_Coordinate extends Google_Service ), ), ),'update' => array( - 'path' => '{teamId}/jobs/{jobId}', + 'path' => 'teams/{teamId}/jobs/{jobId}', 'httpMethod' => 'PUT', 'parameters' => array( 'teamId' => array( @@ -293,7 +295,7 @@ class Google_Service_Coordinate extends Google_Service array( 'methods' => array( 'list' => array( - 'path' => '{teamId}/workers/{workerEmail}/locations', + 'path' => 'teams/{teamId}/workers/{workerEmail}/locations', 'httpMethod' => 'GET', 'parameters' => array( 'teamId' => array( @@ -331,7 +333,7 @@ class Google_Service_Coordinate extends Google_Service array( 'methods' => array( 'get' => array( - 'path' => '{teamId}/jobs/{jobId}/schedule', + 'path' => 'teams/{teamId}/jobs/{jobId}/schedule', 'httpMethod' => 'GET', 'parameters' => array( 'teamId' => array( @@ -346,7 +348,7 @@ class Google_Service_Coordinate extends Google_Service ), ), ),'patch' => array( - 'path' => '{teamId}/jobs/{jobId}/schedule', + 'path' => 'teams/{teamId}/jobs/{jobId}/schedule', 'httpMethod' => 'PATCH', 'parameters' => array( 'teamId' => array( @@ -377,7 +379,7 @@ class Google_Service_Coordinate extends Google_Service ), ), ),'update' => array( - 'path' => '{teamId}/jobs/{jobId}/schedule', + 'path' => 'teams/{teamId}/jobs/{jobId}/schedule', 'httpMethod' => 'PUT', 'parameters' => array( 'teamId' => array( @@ -411,6 +413,33 @@ class Google_Service_Coordinate extends Google_Service ) ) ); + $this->team = new Google_Service_Coordinate_Team_Resource( + $this, + $this->serviceName, + 'team', + array( + 'methods' => array( + 'list' => array( + 'path' => 'teams', + 'httpMethod' => 'GET', + 'parameters' => array( + 'admin' => array( + 'location' => 'query', + 'type' => 'boolean', + ), + 'worker' => array( + 'location' => 'query', + 'type' => 'boolean', + ), + 'dispatcher' => array( + 'location' => 'query', + 'type' => 'boolean', + ), + ), + ), + ) + ) + ); $this->worker = new Google_Service_Coordinate_Worker_Resource( $this, $this->serviceName, @@ -418,7 +447,7 @@ class Google_Service_Coordinate extends Google_Service array( 'methods' => array( 'list' => array( - 'path' => '{teamId}/workers', + 'path' => 'teams/{teamId}/workers', 'httpMethod' => 'GET', 'parameters' => array( 'teamId' => array( @@ -505,8 +534,12 @@ class Google_Service_Coordinate_Jobs_Resource extends Google_Service_Resource * @opt_param string assignee Assignee email address, or empty string to * unassign. * @opt_param string customerPhoneNumber Customer phone number - * @opt_param string customField Map from custom field id (from - * /team//custom_fields) to the field value. For example '123=Alice' + * @opt_param string customField Sets the value of custom fields. To set a + * custom field, pass the field id (from /team/teamId/custom_fields), a URL + * escaped '=' character, and the desired value as a parameter. For example, + * customField=12%3DAlice. Repeat the parameter for each custom field. Note that + * '=' cannot appear in the parameter value. Specifying an invalid, or inactive + * enum field will result in an error 500. * @return Google_Service_Coordinate_Job */ public function insert($teamId, $address, $lat, $lng, $title, Google_Service_Coordinate_Job $postBody, $optParams = array()) @@ -554,8 +587,12 @@ class Google_Service_Coordinate_Jobs_Resource extends Google_Service_Resource * @opt_param double lat The latitude coordinate of this job's location. * @opt_param string progress Job progress * @opt_param double lng The longitude coordinate of this job's location. - * @opt_param string customField Map from custom field id (from - * /team//custom_fields) to the field value. For example '123=Alice' + * @opt_param string customField Sets the value of custom fields. To set a + * custom field, pass the field id (from /team/teamId/custom_fields), a URL + * escaped '=' character, and the desired value as a parameter. For example, + * customField=12%3DAlice. Repeat the parameter for each custom field. Note that + * '=' cannot appear in the parameter value. Specifying an invalid, or inactive + * enum field will result in an error 500. * @return Google_Service_Coordinate_Job */ public function patch($teamId, $jobId, Google_Service_Coordinate_Job $postBody, $optParams = array()) @@ -584,8 +621,12 @@ class Google_Service_Coordinate_Jobs_Resource extends Google_Service_Resource * @opt_param double lat The latitude coordinate of this job's location. * @opt_param string progress Job progress * @opt_param double lng The longitude coordinate of this job's location. - * @opt_param string customField Map from custom field id (from - * /team//custom_fields) to the field value. For example '123=Alice' + * @opt_param string customField Sets the value of custom fields. To set a + * custom field, pass the field id (from /team/teamId/custom_fields), a URL + * escaped '=' character, and the desired value as a parameter. For example, + * customField=12%3DAlice. Repeat the parameter for each custom field. Note that + * '=' cannot appear in the parameter value. Specifying an invalid, or inactive + * enum field will result in an error 500. * @return Google_Service_Coordinate_Job */ public function update($teamId, $jobId, Google_Service_Coordinate_Job $postBody, $optParams = array()) @@ -700,6 +741,38 @@ class Google_Service_Coordinate_Schedule_Resource extends Google_Service_Resourc } } +/** + * The "team" collection of methods. + * Typical usage is: + * + * $coordinateService = new Google_Service_Coordinate(...); + * $team = $coordinateService->team; + * + */ +class Google_Service_Coordinate_Team_Resource extends Google_Service_Resource +{ + + /** + * Retrieves a list of teams for a user. (team.listTeam) + * + * @param array $optParams Optional parameters. + * + * @opt_param bool admin Whether to include teams for which the user has the + * Admin role. + * @opt_param bool worker Whether to include teams for which the user has the + * Worker role. + * @opt_param bool dispatcher Whether to include teams for which the user has + * the Dispatcher role. + * @return Google_Service_Coordinate_TeamListResponse + */ + public function listTeam($optParams = array()) + { + $params = array(); + $params = array_merge($params, $optParams); + return $this->call('list', array($params), "Google_Service_Coordinate_TeamListResponse"); + } +} + /** * The "worker" collection of methods. * Typical usage is: @@ -764,11 +837,14 @@ class Google_Service_Coordinate_CustomField extends Google_Model } } -class Google_Service_Coordinate_CustomFieldDef extends Google_Model +class Google_Service_Coordinate_CustomFieldDef extends Google_Collection { + protected $collection_key = 'enumitems'; protected $internal_gapi_mappings = array( ); public $enabled; + protected $enumitemsType = 'Google_Service_Coordinate_EnumItemDef'; + protected $enumitemsDataType = 'array'; public $id; public $kind; public $name; @@ -784,6 +860,14 @@ class Google_Service_Coordinate_CustomFieldDef extends Google_Model { return $this->enabled; } + public function setEnumitems($enumitems) + { + $this->enumitems = $enumitems; + } + public function getEnumitems() + { + return $this->enumitems; + } public function setId($id) { $this->id = $id; @@ -882,6 +966,41 @@ class Google_Service_Coordinate_CustomFields extends Google_Collection } } +class Google_Service_Coordinate_EnumItemDef extends Google_Model +{ + protected $internal_gapi_mappings = array( + ); + public $active; + public $kind; + public $value; + + + public function setActive($active) + { + $this->active = $active; + } + public function getActive() + { + return $this->active; + } + public function setKind($kind) + { + $this->kind = $kind; + } + public function getKind() + { + return $this->kind; + } + public function setValue($value) + { + $this->value = $value; + } + public function getValue() + { + return $this->value; + } +} + class Google_Service_Coordinate_Job extends Google_Collection { protected $collection_key = 'jobChange'; @@ -1292,6 +1411,69 @@ class Google_Service_Coordinate_Schedule extends Google_Model } } +class Google_Service_Coordinate_Team extends Google_Model +{ + protected $internal_gapi_mappings = array( + ); + public $id; + public $kind; + public $name; + + + public function setId($id) + { + $this->id = $id; + } + public function getId() + { + return $this->id; + } + public function setKind($kind) + { + $this->kind = $kind; + } + public function getKind() + { + return $this->kind; + } + public function setName($name) + { + $this->name = $name; + } + public function getName() + { + return $this->name; + } +} + +class Google_Service_Coordinate_TeamListResponse extends Google_Collection +{ + protected $collection_key = 'items'; + protected $internal_gapi_mappings = array( + ); + protected $itemsType = 'Google_Service_Coordinate_Team'; + protected $itemsDataType = 'array'; + public $kind; + + + public function setItems($items) + { + $this->items = $items; + } + public function getItems() + { + return $this->items; + } + public function setKind($kind) + { + $this->kind = $kind; + } + public function getKind() + { + return $this->kind; + } +} + class Google_Service_Coordinate_TokenPagination extends Google_Model { protected $internal_gapi_mappings = array( diff --git a/lib/google/src/Google/Service/Customsearch.php b/lib/google/src/Google/Service/Customsearch.php index 362330a93a6..0f181af0b4a 100644 --- a/lib/google/src/Google/Service/Customsearch.php +++ b/lib/google/src/Google/Service/Customsearch.php @@ -43,6 +43,7 @@ class Google_Service_Customsearch extends Google_Service public function __construct(Google_Client $client) { parent::__construct($client); + $this->rootUrl = 'https://www.googleapis.com/'; $this->servicePath = 'customsearch/'; $this->version = 'v1'; $this->serviceName = 'customsearch'; diff --git a/lib/google/src/Google/Service/Dataflow.php b/lib/google/src/Google/Service/Dataflow.php new file mode 100644 index 00000000000..92148cfeb5d --- /dev/null +++ b/lib/google/src/Google/Service/Dataflow.php @@ -0,0 +1,3554 @@ + + * Google Dataflow API.

+ * + *

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

+ * + * @author Google, Inc. + */ +class Google_Service_Dataflow extends Google_Service +{ + /** View and manage your data across Google Cloud Platform services. */ + const CLOUD_PLATFORM = + "https://www.googleapis.com/auth/cloud-platform"; + /** View your email address. */ + const USERINFO_EMAIL = + "https://www.googleapis.com/auth/userinfo.email"; + + public $projects_jobs; + public $projects_jobs_messages; + public $projects_jobs_workItems; + + + /** + * Constructs the internal representation of the Dataflow service. + * + * @param Google_Client $client + */ + public function __construct(Google_Client $client) + { + parent::__construct($client); + $this->rootUrl = 'https://dataflow.googleapis.com/'; + $this->servicePath = 'v1b3/projects/'; + $this->version = 'v1b3'; + $this->serviceName = 'dataflow'; + + $this->projects_jobs = new Google_Service_Dataflow_ProjectsJobs_Resource( + $this, + $this->serviceName, + 'jobs', + array( + 'methods' => array( + 'create' => array( + 'path' => '{projectId}/jobs', + 'httpMethod' => 'POST', + 'parameters' => array( + 'projectId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'replaceJobId' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'view' => array( + 'location' => 'query', + 'type' => 'string', + ), + ), + ),'get' => array( + 'path' => '{projectId}/jobs/{jobId}', + 'httpMethod' => 'GET', + 'parameters' => array( + 'projectId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'jobId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'view' => array( + 'location' => 'query', + 'type' => 'string', + ), + ), + ),'getMetrics' => array( + 'path' => '{projectId}/jobs/{jobId}/metrics', + 'httpMethod' => 'GET', + 'parameters' => array( + 'projectId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'jobId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'startTime' => array( + 'location' => 'query', + 'type' => 'string', + ), + ), + ),'list' => array( + 'path' => '{projectId}/jobs', + 'httpMethod' => 'GET', + 'parameters' => array( + 'projectId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'pageToken' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'view' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'pageSize' => array( + 'location' => 'query', + 'type' => 'integer', + ), + ), + ),'patch' => array( + 'path' => '{projectId}/jobs/{jobId}', + 'httpMethod' => 'PATCH', + 'parameters' => array( + 'projectId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'jobId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ),'update' => array( + 'path' => '{projectId}/jobs/{jobId}', + 'httpMethod' => 'PUT', + 'parameters' => array( + 'projectId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'jobId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ), + ) + ) + ); + $this->projects_jobs_messages = new Google_Service_Dataflow_ProjectsJobsMessages_Resource( + $this, + $this->serviceName, + 'messages', + array( + 'methods' => array( + 'list' => array( + 'path' => '{projectId}/jobs/{jobId}/messages', + 'httpMethod' => 'GET', + 'parameters' => array( + 'projectId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'jobId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'pageSize' => array( + 'location' => 'query', + 'type' => 'integer', + ), + 'pageToken' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'startTime' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'endTime' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'minimumImportance' => array( + 'location' => 'query', + 'type' => 'string', + ), + ), + ), + ) + ) + ); + $this->projects_jobs_workItems = new Google_Service_Dataflow_ProjectsJobsWorkItems_Resource( + $this, + $this->serviceName, + 'workItems', + array( + 'methods' => array( + 'lease' => array( + 'path' => '{projectId}/jobs/{jobId}/workItems:lease', + 'httpMethod' => 'POST', + 'parameters' => array( + 'projectId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'jobId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ),'reportStatus' => array( + 'path' => '{projectId}/jobs/{jobId}/workItems:reportStatus', + 'httpMethod' => 'POST', + 'parameters' => array( + 'projectId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'jobId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ), + ) + ) + ); + } +} + + +/** + * The "projects" collection of methods. + * Typical usage is: + * + * $dataflowService = new Google_Service_Dataflow(...); + * $projects = $dataflowService->projects; + * + */ +class Google_Service_Dataflow_Projects_Resource extends Google_Service_Resource +{ +} + +/** + * The "jobs" collection of methods. + * Typical usage is: + * + * $dataflowService = new Google_Service_Dataflow(...); + * $jobs = $dataflowService->jobs; + * + */ +class Google_Service_Dataflow_ProjectsJobs_Resource extends Google_Service_Resource +{ + + /** + * Creates a dataflow job. (jobs.create) + * + * @param string $projectId + * @param Google_Job $postBody + * @param array $optParams Optional parameters. + * + * @opt_param string replaceJobId + * @opt_param string view + * @return Google_Service_Dataflow_Job + */ + public function create($projectId, Google_Service_Dataflow_Job $postBody, $optParams = array()) + { + $params = array('projectId' => $projectId, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('create', array($params), "Google_Service_Dataflow_Job"); + } + + /** + * Gets the state of the specified dataflow job. (jobs.get) + * + * @param string $projectId + * @param string $jobId + * @param array $optParams Optional parameters. + * + * @opt_param string view + * @return Google_Service_Dataflow_Job + */ + public function get($projectId, $jobId, $optParams = array()) + { + $params = array('projectId' => $projectId, 'jobId' => $jobId); + $params = array_merge($params, $optParams); + return $this->call('get', array($params), "Google_Service_Dataflow_Job"); + } + + /** + * Request the job status. (jobs.getMetrics) + * + * @param string $projectId + * @param string $jobId + * @param array $optParams Optional parameters. + * + * @opt_param string startTime + * @return Google_Service_Dataflow_JobMetrics + */ + public function getMetrics($projectId, $jobId, $optParams = array()) + { + $params = array('projectId' => $projectId, 'jobId' => $jobId); + $params = array_merge($params, $optParams); + return $this->call('getMetrics', array($params), "Google_Service_Dataflow_JobMetrics"); + } + + /** + * List the jobs of a project (jobs.listProjectsJobs) + * + * @param string $projectId + * @param array $optParams Optional parameters. + * + * @opt_param string pageToken + * @opt_param string view + * @opt_param int pageSize + * @return Google_Service_Dataflow_ListJobsResponse + */ + public function listProjectsJobs($projectId, $optParams = array()) + { + $params = array('projectId' => $projectId); + $params = array_merge($params, $optParams); + return $this->call('list', array($params), "Google_Service_Dataflow_ListJobsResponse"); + } + + /** + * Updates the state of an existing dataflow job. This method supports patch + * semantics. (jobs.patch) + * + * @param string $projectId + * @param string $jobId + * @param Google_Job $postBody + * @param array $optParams Optional parameters. + * @return Google_Service_Dataflow_Job + */ + public function patch($projectId, $jobId, Google_Service_Dataflow_Job $postBody, $optParams = array()) + { + $params = array('projectId' => $projectId, 'jobId' => $jobId, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('patch', array($params), "Google_Service_Dataflow_Job"); + } + + /** + * Updates the state of an existing dataflow job. (jobs.update) + * + * @param string $projectId + * @param string $jobId + * @param Google_Job $postBody + * @param array $optParams Optional parameters. + * @return Google_Service_Dataflow_Job + */ + public function update($projectId, $jobId, Google_Service_Dataflow_Job $postBody, $optParams = array()) + { + $params = array('projectId' => $projectId, 'jobId' => $jobId, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('update', array($params), "Google_Service_Dataflow_Job"); + } +} + +/** + * The "messages" collection of methods. + * Typical usage is: + * + * $dataflowService = new Google_Service_Dataflow(...); + * $messages = $dataflowService->messages; + * + */ +class Google_Service_Dataflow_ProjectsJobsMessages_Resource extends Google_Service_Resource +{ + + /** + * Request the job status. (messages.listProjectsJobsMessages) + * + * @param string $projectId + * @param string $jobId + * @param array $optParams Optional parameters. + * + * @opt_param int pageSize + * @opt_param string pageToken + * @opt_param string startTime + * @opt_param string endTime + * @opt_param string minimumImportance + * @return Google_Service_Dataflow_ListJobMessagesResponse + */ + public function listProjectsJobsMessages($projectId, $jobId, $optParams = array()) + { + $params = array('projectId' => $projectId, 'jobId' => $jobId); + $params = array_merge($params, $optParams); + return $this->call('list', array($params), "Google_Service_Dataflow_ListJobMessagesResponse"); + } +} +/** + * The "workItems" collection of methods. + * Typical usage is: + * + * $dataflowService = new Google_Service_Dataflow(...); + * $workItems = $dataflowService->workItems; + * + */ +class Google_Service_Dataflow_ProjectsJobsWorkItems_Resource extends Google_Service_Resource +{ + + /** + * Leases a dataflow WorkItem to run. (workItems.lease) + * + * @param string $projectId + * @param string $jobId + * @param Google_LeaseWorkItemRequest $postBody + * @param array $optParams Optional parameters. + * @return Google_Service_Dataflow_LeaseWorkItemResponse + */ + public function lease($projectId, $jobId, Google_Service_Dataflow_LeaseWorkItemRequest $postBody, $optParams = array()) + { + $params = array('projectId' => $projectId, 'jobId' => $jobId, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('lease', array($params), "Google_Service_Dataflow_LeaseWorkItemResponse"); + } + + /** + * Reports the status of dataflow WorkItems leased by a worker. + * (workItems.reportStatus) + * + * @param string $projectId + * @param string $jobId + * @param Google_ReportWorkItemStatusRequest $postBody + * @param array $optParams Optional parameters. + * @return Google_Service_Dataflow_ReportWorkItemStatusResponse + */ + public function reportStatus($projectId, $jobId, Google_Service_Dataflow_ReportWorkItemStatusRequest $postBody, $optParams = array()) + { + $params = array('projectId' => $projectId, 'jobId' => $jobId, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('reportStatus', array($params), "Google_Service_Dataflow_ReportWorkItemStatusResponse"); + } +} + + + + +class Google_Service_Dataflow_ApproximateProgress extends Google_Model +{ + protected $internal_gapi_mappings = array( + ); + public $percentComplete; + protected $positionType = 'Google_Service_Dataflow_Position'; + protected $positionDataType = ''; + public $remainingTime; + + + public function setPercentComplete($percentComplete) + { + $this->percentComplete = $percentComplete; + } + public function getPercentComplete() + { + return $this->percentComplete; + } + public function setPosition(Google_Service_Dataflow_Position $position) + { + $this->position = $position; + } + public function getPosition() + { + return $this->position; + } + public function setRemainingTime($remainingTime) + { + $this->remainingTime = $remainingTime; + } + public function getRemainingTime() + { + return $this->remainingTime; + } +} + +class Google_Service_Dataflow_AutoscalingSettings extends Google_Model +{ + protected $internal_gapi_mappings = array( + ); + public $algorithm; + public $maxNumWorkers; + + + public function setAlgorithm($algorithm) + { + $this->algorithm = $algorithm; + } + public function getAlgorithm() + { + return $this->algorithm; + } + public function setMaxNumWorkers($maxNumWorkers) + { + $this->maxNumWorkers = $maxNumWorkers; + } + public function getMaxNumWorkers() + { + return $this->maxNumWorkers; + } +} + +class Google_Service_Dataflow_ComputationTopology extends Google_Collection +{ + protected $collection_key = 'outputs'; + protected $internal_gapi_mappings = array( + ); + public $computationId; + protected $inputsType = 'Google_Service_Dataflow_StreamLocation'; + protected $inputsDataType = 'array'; + protected $keyRangesType = 'Google_Service_Dataflow_KeyRangeLocation'; + protected $keyRangesDataType = 'array'; + protected $outputsType = 'Google_Service_Dataflow_StreamLocation'; + protected $outputsDataType = 'array'; + + + public function setComputationId($computationId) + { + $this->computationId = $computationId; + } + public function getComputationId() + { + return $this->computationId; + } + public function setInputs($inputs) + { + $this->inputs = $inputs; + } + public function getInputs() + { + return $this->inputs; + } + public function setKeyRanges($keyRanges) + { + $this->keyRanges = $keyRanges; + } + public function getKeyRanges() + { + return $this->keyRanges; + } + public function setOutputs($outputs) + { + $this->outputs = $outputs; + } + public function getOutputs() + { + return $this->outputs; + } +} + +class Google_Service_Dataflow_DataDiskAssignment extends Google_Collection +{ + protected $collection_key = 'dataDisks'; + protected $internal_gapi_mappings = array( + ); + public $dataDisks; + public $vmInstance; + + + public function setDataDisks($dataDisks) + { + $this->dataDisks = $dataDisks; + } + public function getDataDisks() + { + return $this->dataDisks; + } + public function setVmInstance($vmInstance) + { + $this->vmInstance = $vmInstance; + } + public function getVmInstance() + { + return $this->vmInstance; + } +} + +class Google_Service_Dataflow_DerivedSource extends Google_Model +{ + protected $internal_gapi_mappings = array( + ); + public $derivationMode; + protected $sourceType = 'Google_Service_Dataflow_Source'; + protected $sourceDataType = ''; + + + public function setDerivationMode($derivationMode) + { + $this->derivationMode = $derivationMode; + } + public function getDerivationMode() + { + return $this->derivationMode; + } + public function setSource(Google_Service_Dataflow_Source $source) + { + $this->source = $source; + } + public function getSource() + { + return $this->source; + } +} + +class Google_Service_Dataflow_Disk extends Google_Model +{ + protected $internal_gapi_mappings = array( + ); + public $diskType; + public $mountPoint; + public $sizeGb; + + + public function setDiskType($diskType) + { + $this->diskType = $diskType; + } + public function getDiskType() + { + return $this->diskType; + } + public function setMountPoint($mountPoint) + { + $this->mountPoint = $mountPoint; + } + public function getMountPoint() + { + return $this->mountPoint; + } + public function setSizeGb($sizeGb) + { + $this->sizeGb = $sizeGb; + } + public function getSizeGb() + { + return $this->sizeGb; + } +} + +class Google_Service_Dataflow_DynamicSourceSplit extends Google_Model +{ + protected $internal_gapi_mappings = array( + ); + protected $primaryType = 'Google_Service_Dataflow_DerivedSource'; + protected $primaryDataType = ''; + protected $residualType = 'Google_Service_Dataflow_DerivedSource'; + protected $residualDataType = ''; + + + public function setPrimary(Google_Service_Dataflow_DerivedSource $primary) + { + $this->primary = $primary; + } + public function getPrimary() + { + return $this->primary; + } + public function setResidual(Google_Service_Dataflow_DerivedSource $residual) + { + $this->residual = $residual; + } + public function getResidual() + { + return $this->residual; + } +} + +class Google_Service_Dataflow_Environment extends Google_Collection +{ + protected $collection_key = 'workerPools'; + protected $internal_gapi_mappings = array( + ); + public $clusterManagerApiService; + public $dataset; + public $experiments; + public $sdkPipelineOptions; + public $tempStoragePrefix; + public $userAgent; + public $version; + protected $workerPoolsType = 'Google_Service_Dataflow_WorkerPool'; + protected $workerPoolsDataType = 'array'; + + + public function setClusterManagerApiService($clusterManagerApiService) + { + $this->clusterManagerApiService = $clusterManagerApiService; + } + public function getClusterManagerApiService() + { + return $this->clusterManagerApiService; + } + public function setDataset($dataset) + { + $this->dataset = $dataset; + } + public function getDataset() + { + return $this->dataset; + } + public function setExperiments($experiments) + { + $this->experiments = $experiments; + } + public function getExperiments() + { + return $this->experiments; + } + public function setSdkPipelineOptions($sdkPipelineOptions) + { + $this->sdkPipelineOptions = $sdkPipelineOptions; + } + public function getSdkPipelineOptions() + { + return $this->sdkPipelineOptions; + } + public function setTempStoragePrefix($tempStoragePrefix) + { + $this->tempStoragePrefix = $tempStoragePrefix; + } + public function getTempStoragePrefix() + { + return $this->tempStoragePrefix; + } + public function setUserAgent($userAgent) + { + $this->userAgent = $userAgent; + } + public function getUserAgent() + { + return $this->userAgent; + } + public function setVersion($version) + { + $this->version = $version; + } + public function getVersion() + { + return $this->version; + } + public function setWorkerPools($workerPools) + { + $this->workerPools = $workerPools; + } + public function getWorkerPools() + { + return $this->workerPools; + } +} + +class Google_Service_Dataflow_EnvironmentSdkPipelineOptions extends Google_Model +{ +} + +class Google_Service_Dataflow_EnvironmentUserAgent extends Google_Model +{ +} + +class Google_Service_Dataflow_EnvironmentVersion extends Google_Model +{ +} + +class Google_Service_Dataflow_FlattenInstruction extends Google_Collection +{ + protected $collection_key = 'inputs'; + protected $internal_gapi_mappings = array( + ); + protected $inputsType = 'Google_Service_Dataflow_InstructionInput'; + protected $inputsDataType = 'array'; + + + public function setInputs($inputs) + { + $this->inputs = $inputs; + } + public function getInputs() + { + return $this->inputs; + } +} + +class Google_Service_Dataflow_InstructionInput extends Google_Model +{ + protected $internal_gapi_mappings = array( + ); + public $outputNum; + public $producerInstructionIndex; + + + public function setOutputNum($outputNum) + { + $this->outputNum = $outputNum; + } + public function getOutputNum() + { + return $this->outputNum; + } + public function setProducerInstructionIndex($producerInstructionIndex) + { + $this->producerInstructionIndex = $producerInstructionIndex; + } + public function getProducerInstructionIndex() + { + return $this->producerInstructionIndex; + } +} + +class Google_Service_Dataflow_InstructionOutput extends Google_Model +{ + protected $internal_gapi_mappings = array( + ); + public $codec; + public $name; + + + public function setCodec($codec) + { + $this->codec = $codec; + } + public function getCodec() + { + return $this->codec; + } + public function setName($name) + { + $this->name = $name; + } + public function getName() + { + return $this->name; + } +} + +class Google_Service_Dataflow_InstructionOutputCodec extends Google_Model +{ +} + +class Google_Service_Dataflow_Job extends Google_Collection +{ + protected $collection_key = 'steps'; + protected $internal_gapi_mappings = array( + ); + public $clientRequestId; + public $createTime; + public $currentState; + public $currentStateTime; + protected $environmentType = 'Google_Service_Dataflow_Environment'; + protected $environmentDataType = ''; + protected $executionInfoType = 'Google_Service_Dataflow_JobExecutionInfo'; + protected $executionInfoDataType = ''; + public $id; + public $name; + public $projectId; + public $replaceJobId; + public $requestedState; + protected $stepsType = 'Google_Service_Dataflow_Step'; + protected $stepsDataType = 'array'; + public $transformNameMapping; + public $type; + + + public function setClientRequestId($clientRequestId) + { + $this->clientRequestId = $clientRequestId; + } + public function getClientRequestId() + { + return $this->clientRequestId; + } + public function setCreateTime($createTime) + { + $this->createTime = $createTime; + } + public function getCreateTime() + { + return $this->createTime; + } + public function setCurrentState($currentState) + { + $this->currentState = $currentState; + } + public function getCurrentState() + { + return $this->currentState; + } + public function setCurrentStateTime($currentStateTime) + { + $this->currentStateTime = $currentStateTime; + } + public function getCurrentStateTime() + { + return $this->currentStateTime; + } + public function setEnvironment(Google_Service_Dataflow_Environment $environment) + { + $this->environment = $environment; + } + public function getEnvironment() + { + return $this->environment; + } + public function setExecutionInfo(Google_Service_Dataflow_JobExecutionInfo $executionInfo) + { + $this->executionInfo = $executionInfo; + } + public function getExecutionInfo() + { + return $this->executionInfo; + } + public function setId($id) + { + $this->id = $id; + } + public function getId() + { + return $this->id; + } + public function setName($name) + { + $this->name = $name; + } + public function getName() + { + return $this->name; + } + public function setProjectId($projectId) + { + $this->projectId = $projectId; + } + public function getProjectId() + { + return $this->projectId; + } + public function setReplaceJobId($replaceJobId) + { + $this->replaceJobId = $replaceJobId; + } + public function getReplaceJobId() + { + return $this->replaceJobId; + } + public function setRequestedState($requestedState) + { + $this->requestedState = $requestedState; + } + public function getRequestedState() + { + return $this->requestedState; + } + public function setSteps($steps) + { + $this->steps = $steps; + } + public function getSteps() + { + return $this->steps; + } + public function setTransformNameMapping($transformNameMapping) + { + $this->transformNameMapping = $transformNameMapping; + } + public function getTransformNameMapping() + { + return $this->transformNameMapping; + } + public function setType($type) + { + $this->type = $type; + } + public function getType() + { + return $this->type; + } +} + +class Google_Service_Dataflow_JobExecutionInfo extends Google_Model +{ + protected $internal_gapi_mappings = array( + ); + protected $stagesType = 'Google_Service_Dataflow_JobExecutionStageInfo'; + protected $stagesDataType = 'map'; + + + public function setStages($stages) + { + $this->stages = $stages; + } + public function getStages() + { + return $this->stages; + } +} + +class Google_Service_Dataflow_JobExecutionInfoStages extends Google_Model +{ +} + +class Google_Service_Dataflow_JobExecutionStageInfo extends Google_Collection +{ + protected $collection_key = 'stepName'; + protected $internal_gapi_mappings = array( + ); + public $stepName; + + + public function setStepName($stepName) + { + $this->stepName = $stepName; + } + public function getStepName() + { + return $this->stepName; + } +} + +class Google_Service_Dataflow_JobMessage extends Google_Model +{ + protected $internal_gapi_mappings = array( + ); + public $id; + public $messageImportance; + public $messageText; + public $time; + + + public function setId($id) + { + $this->id = $id; + } + public function getId() + { + return $this->id; + } + public function setMessageImportance($messageImportance) + { + $this->messageImportance = $messageImportance; + } + public function getMessageImportance() + { + return $this->messageImportance; + } + public function setMessageText($messageText) + { + $this->messageText = $messageText; + } + public function getMessageText() + { + return $this->messageText; + } + public function setTime($time) + { + $this->time = $time; + } + public function getTime() + { + return $this->time; + } +} + +class Google_Service_Dataflow_JobMetrics extends Google_Collection +{ + protected $collection_key = 'metrics'; + protected $internal_gapi_mappings = array( + ); + public $metricTime; + protected $metricsType = 'Google_Service_Dataflow_MetricUpdate'; + protected $metricsDataType = 'array'; + + + public function setMetricTime($metricTime) + { + $this->metricTime = $metricTime; + } + public function getMetricTime() + { + return $this->metricTime; + } + public function setMetrics($metrics) + { + $this->metrics = $metrics; + } + public function getMetrics() + { + return $this->metrics; + } +} + +class Google_Service_Dataflow_JobTransformNameMapping extends Google_Model +{ +} + +class Google_Service_Dataflow_KeyRangeDataDiskAssignment extends Google_Model +{ + protected $internal_gapi_mappings = array( + ); + public $dataDisk; + public $end; + public $start; + + + public function setDataDisk($dataDisk) + { + $this->dataDisk = $dataDisk; + } + public function getDataDisk() + { + return $this->dataDisk; + } + public function setEnd($end) + { + $this->end = $end; + } + public function getEnd() + { + return $this->end; + } + public function setStart($start) + { + $this->start = $start; + } + public function getStart() + { + return $this->start; + } +} + +class Google_Service_Dataflow_KeyRangeLocation extends Google_Model +{ + protected $internal_gapi_mappings = array( + ); + public $dataDisk; + public $deliveryEndpoint; + public $end; + public $persistentDirectory; + public $start; + + + public function setDataDisk($dataDisk) + { + $this->dataDisk = $dataDisk; + } + public function getDataDisk() + { + return $this->dataDisk; + } + public function setDeliveryEndpoint($deliveryEndpoint) + { + $this->deliveryEndpoint = $deliveryEndpoint; + } + public function getDeliveryEndpoint() + { + return $this->deliveryEndpoint; + } + public function setEnd($end) + { + $this->end = $end; + } + public function getEnd() + { + return $this->end; + } + public function setPersistentDirectory($persistentDirectory) + { + $this->persistentDirectory = $persistentDirectory; + } + public function getPersistentDirectory() + { + return $this->persistentDirectory; + } + public function setStart($start) + { + $this->start = $start; + } + public function getStart() + { + return $this->start; + } +} + +class Google_Service_Dataflow_LeaseWorkItemRequest extends Google_Collection +{ + protected $collection_key = 'workerCapabilities'; + protected $internal_gapi_mappings = array( + ); + public $currentWorkerTime; + public $requestedLeaseDuration; + public $workItemTypes; + public $workerCapabilities; + public $workerId; + + + public function setCurrentWorkerTime($currentWorkerTime) + { + $this->currentWorkerTime = $currentWorkerTime; + } + public function getCurrentWorkerTime() + { + return $this->currentWorkerTime; + } + public function setRequestedLeaseDuration($requestedLeaseDuration) + { + $this->requestedLeaseDuration = $requestedLeaseDuration; + } + public function getRequestedLeaseDuration() + { + return $this->requestedLeaseDuration; + } + public function setWorkItemTypes($workItemTypes) + { + $this->workItemTypes = $workItemTypes; + } + public function getWorkItemTypes() + { + return $this->workItemTypes; + } + public function setWorkerCapabilities($workerCapabilities) + { + $this->workerCapabilities = $workerCapabilities; + } + public function getWorkerCapabilities() + { + return $this->workerCapabilities; + } + public function setWorkerId($workerId) + { + $this->workerId = $workerId; + } + public function getWorkerId() + { + return $this->workerId; + } +} + +class Google_Service_Dataflow_LeaseWorkItemResponse extends Google_Collection +{ + protected $collection_key = 'workItems'; + protected $internal_gapi_mappings = array( + ); + protected $workItemsType = 'Google_Service_Dataflow_WorkItem'; + protected $workItemsDataType = 'array'; + + + public function setWorkItems($workItems) + { + $this->workItems = $workItems; + } + public function getWorkItems() + { + return $this->workItems; + } +} + +class Google_Service_Dataflow_ListJobMessagesResponse extends Google_Collection +{ + protected $collection_key = 'jobMessages'; + protected $internal_gapi_mappings = array( + ); + protected $jobMessagesType = 'Google_Service_Dataflow_JobMessage'; + protected $jobMessagesDataType = 'array'; + public $nextPageToken; + + + public function setJobMessages($jobMessages) + { + $this->jobMessages = $jobMessages; + } + public function getJobMessages() + { + return $this->jobMessages; + } + public function setNextPageToken($nextPageToken) + { + $this->nextPageToken = $nextPageToken; + } + public function getNextPageToken() + { + return $this->nextPageToken; + } +} + +class Google_Service_Dataflow_ListJobsResponse extends Google_Collection +{ + protected $collection_key = 'jobs'; + protected $internal_gapi_mappings = array( + ); + protected $jobsType = 'Google_Service_Dataflow_Job'; + protected $jobsDataType = 'array'; + public $nextPageToken; + + + public function setJobs($jobs) + { + $this->jobs = $jobs; + } + public function getJobs() + { + return $this->jobs; + } + public function setNextPageToken($nextPageToken) + { + $this->nextPageToken = $nextPageToken; + } + public function getNextPageToken() + { + return $this->nextPageToken; + } +} + +class Google_Service_Dataflow_MapTask extends Google_Collection +{ + protected $collection_key = 'instructions'; + protected $internal_gapi_mappings = array( + ); + protected $instructionsType = 'Google_Service_Dataflow_ParallelInstruction'; + protected $instructionsDataType = 'array'; + public $stageName; + public $systemName; + + + public function setInstructions($instructions) + { + $this->instructions = $instructions; + } + public function getInstructions() + { + return $this->instructions; + } + public function setStageName($stageName) + { + $this->stageName = $stageName; + } + public function getStageName() + { + return $this->stageName; + } + public function setSystemName($systemName) + { + $this->systemName = $systemName; + } + public function getSystemName() + { + return $this->systemName; + } +} + +class Google_Service_Dataflow_MetricStructuredName extends Google_Model +{ + protected $internal_gapi_mappings = array( + ); + public $context; + public $name; + public $origin; + + + public function setContext($context) + { + $this->context = $context; + } + public function getContext() + { + return $this->context; + } + public function setName($name) + { + $this->name = $name; + } + public function getName() + { + return $this->name; + } + public function setOrigin($origin) + { + $this->origin = $origin; + } + public function getOrigin() + { + return $this->origin; + } +} + +class Google_Service_Dataflow_MetricStructuredNameContext extends Google_Model +{ +} + +class Google_Service_Dataflow_MetricUpdate extends Google_Model +{ + protected $internal_gapi_mappings = array( + ); + public $cumulative; + public $internal; + public $kind; + public $meanCount; + public $meanSum; + protected $nameType = 'Google_Service_Dataflow_MetricStructuredName'; + protected $nameDataType = ''; + public $scalar; + public $set; + public $updateTime; + + + public function setCumulative($cumulative) + { + $this->cumulative = $cumulative; + } + public function getCumulative() + { + return $this->cumulative; + } + public function setInternal($internal) + { + $this->internal = $internal; + } + public function getInternal() + { + return $this->internal; + } + public function setKind($kind) + { + $this->kind = $kind; + } + public function getKind() + { + return $this->kind; + } + public function setMeanCount($meanCount) + { + $this->meanCount = $meanCount; + } + public function getMeanCount() + { + return $this->meanCount; + } + public function setMeanSum($meanSum) + { + $this->meanSum = $meanSum; + } + public function getMeanSum() + { + return $this->meanSum; + } + public function setName(Google_Service_Dataflow_MetricStructuredName $name) + { + $this->name = $name; + } + public function getName() + { + return $this->name; + } + public function setScalar($scalar) + { + $this->scalar = $scalar; + } + public function getScalar() + { + return $this->scalar; + } + public function setSet($set) + { + $this->set = $set; + } + public function getSet() + { + return $this->set; + } + public function setUpdateTime($updateTime) + { + $this->updateTime = $updateTime; + } + public function getUpdateTime() + { + return $this->updateTime; + } +} + +class Google_Service_Dataflow_MountedDataDisk extends Google_Model +{ + protected $internal_gapi_mappings = array( + ); + public $dataDisk; + + + public function setDataDisk($dataDisk) + { + $this->dataDisk = $dataDisk; + } + public function getDataDisk() + { + return $this->dataDisk; + } +} + +class Google_Service_Dataflow_MultiOutputInfo extends Google_Model +{ + protected $internal_gapi_mappings = array( + ); + public $tag; + + + public function setTag($tag) + { + $this->tag = $tag; + } + public function getTag() + { + return $this->tag; + } +} + +class Google_Service_Dataflow_Package extends Google_Model +{ + protected $internal_gapi_mappings = array( + ); + public $location; + public $name; + + + public function setLocation($location) + { + $this->location = $location; + } + public function getLocation() + { + return $this->location; + } + public function setName($name) + { + $this->name = $name; + } + public function getName() + { + return $this->name; + } +} + +class Google_Service_Dataflow_ParDoInstruction extends Google_Collection +{ + protected $collection_key = 'sideInputs'; + protected $internal_gapi_mappings = array( + ); + protected $inputType = 'Google_Service_Dataflow_InstructionInput'; + protected $inputDataType = ''; + protected $multiOutputInfosType = 'Google_Service_Dataflow_MultiOutputInfo'; + protected $multiOutputInfosDataType = 'array'; + public $numOutputs; + protected $sideInputsType = 'Google_Service_Dataflow_SideInputInfo'; + protected $sideInputsDataType = 'array'; + public $userFn; + + + public function setInput(Google_Service_Dataflow_InstructionInput $input) + { + $this->input = $input; + } + public function getInput() + { + return $this->input; + } + public function setMultiOutputInfos($multiOutputInfos) + { + $this->multiOutputInfos = $multiOutputInfos; + } + public function getMultiOutputInfos() + { + return $this->multiOutputInfos; + } + public function setNumOutputs($numOutputs) + { + $this->numOutputs = $numOutputs; + } + public function getNumOutputs() + { + return $this->numOutputs; + } + public function setSideInputs($sideInputs) + { + $this->sideInputs = $sideInputs; + } + public function getSideInputs() + { + return $this->sideInputs; + } + public function setUserFn($userFn) + { + $this->userFn = $userFn; + } + public function getUserFn() + { + return $this->userFn; + } +} + +class Google_Service_Dataflow_ParDoInstructionUserFn extends Google_Model +{ +} + +class Google_Service_Dataflow_ParallelInstruction extends Google_Collection +{ + protected $collection_key = 'outputs'; + protected $internal_gapi_mappings = array( + ); + protected $flattenType = 'Google_Service_Dataflow_FlattenInstruction'; + protected $flattenDataType = ''; + public $name; + protected $outputsType = 'Google_Service_Dataflow_InstructionOutput'; + protected $outputsDataType = 'array'; + protected $parDoType = 'Google_Service_Dataflow_ParDoInstruction'; + protected $parDoDataType = ''; + protected $partialGroupByKeyType = 'Google_Service_Dataflow_PartialGroupByKeyInstruction'; + protected $partialGroupByKeyDataType = ''; + protected $readType = 'Google_Service_Dataflow_ReadInstruction'; + protected $readDataType = ''; + public $systemName; + protected $writeType = 'Google_Service_Dataflow_WriteInstruction'; + protected $writeDataType = ''; + + + public function setFlatten(Google_Service_Dataflow_FlattenInstruction $flatten) + { + $this->flatten = $flatten; + } + public function getFlatten() + { + return $this->flatten; + } + public function setName($name) + { + $this->name = $name; + } + public function getName() + { + return $this->name; + } + public function setOutputs($outputs) + { + $this->outputs = $outputs; + } + public function getOutputs() + { + return $this->outputs; + } + public function setParDo(Google_Service_Dataflow_ParDoInstruction $parDo) + { + $this->parDo = $parDo; + } + public function getParDo() + { + return $this->parDo; + } + public function setPartialGroupByKey(Google_Service_Dataflow_PartialGroupByKeyInstruction $partialGroupByKey) + { + $this->partialGroupByKey = $partialGroupByKey; + } + public function getPartialGroupByKey() + { + return $this->partialGroupByKey; + } + public function setRead(Google_Service_Dataflow_ReadInstruction $read) + { + $this->read = $read; + } + public function getRead() + { + return $this->read; + } + public function setSystemName($systemName) + { + $this->systemName = $systemName; + } + public function getSystemName() + { + return $this->systemName; + } + public function setWrite(Google_Service_Dataflow_WriteInstruction $write) + { + $this->write = $write; + } + public function getWrite() + { + return $this->write; + } +} + +class Google_Service_Dataflow_PartialGroupByKeyInstruction extends Google_Model +{ + protected $internal_gapi_mappings = array( + ); + protected $inputType = 'Google_Service_Dataflow_InstructionInput'; + protected $inputDataType = ''; + public $inputElementCodec; + public $valueCombiningFn; + + + public function setInput(Google_Service_Dataflow_InstructionInput $input) + { + $this->input = $input; + } + public function getInput() + { + return $this->input; + } + public function setInputElementCodec($inputElementCodec) + { + $this->inputElementCodec = $inputElementCodec; + } + public function getInputElementCodec() + { + return $this->inputElementCodec; + } + public function setValueCombiningFn($valueCombiningFn) + { + $this->valueCombiningFn = $valueCombiningFn; + } + public function getValueCombiningFn() + { + return $this->valueCombiningFn; + } +} + +class Google_Service_Dataflow_PartialGroupByKeyInstructionInputElementCodec extends Google_Model +{ +} + +class Google_Service_Dataflow_PartialGroupByKeyInstructionValueCombiningFn extends Google_Model +{ +} + +class Google_Service_Dataflow_Position extends Google_Model +{ + protected $internal_gapi_mappings = array( + ); + public $byteOffset; + public $end; + public $key; + public $recordIndex; + public $shufflePosition; + + + public function setByteOffset($byteOffset) + { + $this->byteOffset = $byteOffset; + } + public function getByteOffset() + { + return $this->byteOffset; + } + public function setEnd($end) + { + $this->end = $end; + } + public function getEnd() + { + return $this->end; + } + public function setKey($key) + { + $this->key = $key; + } + public function getKey() + { + return $this->key; + } + public function setRecordIndex($recordIndex) + { + $this->recordIndex = $recordIndex; + } + public function getRecordIndex() + { + return $this->recordIndex; + } + public function setShufflePosition($shufflePosition) + { + $this->shufflePosition = $shufflePosition; + } + public function getShufflePosition() + { + return $this->shufflePosition; + } +} + +class Google_Service_Dataflow_PubsubLocation extends Google_Model +{ + protected $internal_gapi_mappings = array( + ); + public $dropLateData; + public $idLabel; + public $subscription; + public $timestampLabel; + public $topic; + public $trackingSubscription; + + + public function setDropLateData($dropLateData) + { + $this->dropLateData = $dropLateData; + } + public function getDropLateData() + { + return $this->dropLateData; + } + public function setIdLabel($idLabel) + { + $this->idLabel = $idLabel; + } + public function getIdLabel() + { + return $this->idLabel; + } + public function setSubscription($subscription) + { + $this->subscription = $subscription; + } + public function getSubscription() + { + return $this->subscription; + } + public function setTimestampLabel($timestampLabel) + { + $this->timestampLabel = $timestampLabel; + } + public function getTimestampLabel() + { + return $this->timestampLabel; + } + public function setTopic($topic) + { + $this->topic = $topic; + } + public function getTopic() + { + return $this->topic; + } + public function setTrackingSubscription($trackingSubscription) + { + $this->trackingSubscription = $trackingSubscription; + } + public function getTrackingSubscription() + { + return $this->trackingSubscription; + } +} + +class Google_Service_Dataflow_ReadInstruction extends Google_Model +{ + protected $internal_gapi_mappings = array( + ); + protected $sourceType = 'Google_Service_Dataflow_Source'; + protected $sourceDataType = ''; + + + public function setSource(Google_Service_Dataflow_Source $source) + { + $this->source = $source; + } + public function getSource() + { + return $this->source; + } +} + +class Google_Service_Dataflow_ReportWorkItemStatusRequest extends Google_Collection +{ + protected $collection_key = 'workItemStatuses'; + protected $internal_gapi_mappings = array( + ); + public $currentWorkerTime; + protected $workItemStatusesType = 'Google_Service_Dataflow_WorkItemStatus'; + protected $workItemStatusesDataType = 'array'; + public $workerId; + + + public function setCurrentWorkerTime($currentWorkerTime) + { + $this->currentWorkerTime = $currentWorkerTime; + } + public function getCurrentWorkerTime() + { + return $this->currentWorkerTime; + } + public function setWorkItemStatuses($workItemStatuses) + { + $this->workItemStatuses = $workItemStatuses; + } + public function getWorkItemStatuses() + { + return $this->workItemStatuses; + } + public function setWorkerId($workerId) + { + $this->workerId = $workerId; + } + public function getWorkerId() + { + return $this->workerId; + } +} + +class Google_Service_Dataflow_ReportWorkItemStatusResponse extends Google_Collection +{ + protected $collection_key = 'workItemServiceStates'; + protected $internal_gapi_mappings = array( + ); + protected $workItemServiceStatesType = 'Google_Service_Dataflow_WorkItemServiceState'; + protected $workItemServiceStatesDataType = 'array'; + + + public function setWorkItemServiceStates($workItemServiceStates) + { + $this->workItemServiceStates = $workItemServiceStates; + } + public function getWorkItemServiceStates() + { + return $this->workItemServiceStates; + } +} + +class Google_Service_Dataflow_SeqMapTask extends Google_Collection +{ + protected $collection_key = 'outputInfos'; + protected $internal_gapi_mappings = array( + ); + protected $inputsType = 'Google_Service_Dataflow_SideInputInfo'; + protected $inputsDataType = 'array'; + public $name; + protected $outputInfosType = 'Google_Service_Dataflow_SeqMapTaskOutputInfo'; + protected $outputInfosDataType = 'array'; + public $stageName; + public $systemName; + public $userFn; + + + public function setInputs($inputs) + { + $this->inputs = $inputs; + } + public function getInputs() + { + return $this->inputs; + } + public function setName($name) + { + $this->name = $name; + } + public function getName() + { + return $this->name; + } + public function setOutputInfos($outputInfos) + { + $this->outputInfos = $outputInfos; + } + public function getOutputInfos() + { + return $this->outputInfos; + } + public function setStageName($stageName) + { + $this->stageName = $stageName; + } + public function getStageName() + { + return $this->stageName; + } + public function setSystemName($systemName) + { + $this->systemName = $systemName; + } + public function getSystemName() + { + return $this->systemName; + } + public function setUserFn($userFn) + { + $this->userFn = $userFn; + } + public function getUserFn() + { + return $this->userFn; + } +} + +class Google_Service_Dataflow_SeqMapTaskOutputInfo extends Google_Model +{ + protected $internal_gapi_mappings = array( + ); + protected $sinkType = 'Google_Service_Dataflow_Sink'; + protected $sinkDataType = ''; + public $tag; + + + public function setSink(Google_Service_Dataflow_Sink $sink) + { + $this->sink = $sink; + } + public function getSink() + { + return $this->sink; + } + public function setTag($tag) + { + $this->tag = $tag; + } + public function getTag() + { + return $this->tag; + } +} + +class Google_Service_Dataflow_SeqMapTaskUserFn extends Google_Model +{ +} + +class Google_Service_Dataflow_ShellTask extends Google_Model +{ + protected $internal_gapi_mappings = array( + ); + public $command; + public $exitCode; + + + public function setCommand($command) + { + $this->command = $command; + } + public function getCommand() + { + return $this->command; + } + public function setExitCode($exitCode) + { + $this->exitCode = $exitCode; + } + public function getExitCode() + { + return $this->exitCode; + } +} + +class Google_Service_Dataflow_SideInputInfo extends Google_Collection +{ + protected $collection_key = 'sources'; + protected $internal_gapi_mappings = array( + ); + public $kind; + protected $sourcesType = 'Google_Service_Dataflow_Source'; + protected $sourcesDataType = 'array'; + public $tag; + + + public function setKind($kind) + { + $this->kind = $kind; + } + public function getKind() + { + return $this->kind; + } + public function setSources($sources) + { + $this->sources = $sources; + } + public function getSources() + { + return $this->sources; + } + public function setTag($tag) + { + $this->tag = $tag; + } + public function getTag() + { + return $this->tag; + } +} + +class Google_Service_Dataflow_SideInputInfoKind extends Google_Model +{ +} + +class Google_Service_Dataflow_Sink extends Google_Model +{ + protected $internal_gapi_mappings = array( + ); + public $codec; + public $spec; + + + public function setCodec($codec) + { + $this->codec = $codec; + } + public function getCodec() + { + return $this->codec; + } + public function setSpec($spec) + { + $this->spec = $spec; + } + public function getSpec() + { + return $this->spec; + } +} + +class Google_Service_Dataflow_SinkCodec extends Google_Model +{ +} + +class Google_Service_Dataflow_SinkSpec extends Google_Model +{ +} + +class Google_Service_Dataflow_Source extends Google_Collection +{ + protected $collection_key = 'baseSpecs'; + protected $internal_gapi_mappings = array( + ); + public $baseSpecs; + public $codec; + public $doesNotNeedSplitting; + protected $metadataType = 'Google_Service_Dataflow_SourceMetadata'; + protected $metadataDataType = ''; + public $spec; + + + public function setBaseSpecs($baseSpecs) + { + $this->baseSpecs = $baseSpecs; + } + public function getBaseSpecs() + { + return $this->baseSpecs; + } + public function setCodec($codec) + { + $this->codec = $codec; + } + public function getCodec() + { + return $this->codec; + } + public function setDoesNotNeedSplitting($doesNotNeedSplitting) + { + $this->doesNotNeedSplitting = $doesNotNeedSplitting; + } + public function getDoesNotNeedSplitting() + { + return $this->doesNotNeedSplitting; + } + public function setMetadata(Google_Service_Dataflow_SourceMetadata $metadata) + { + $this->metadata = $metadata; + } + public function getMetadata() + { + return $this->metadata; + } + public function setSpec($spec) + { + $this->spec = $spec; + } + public function getSpec() + { + return $this->spec; + } +} + +class Google_Service_Dataflow_SourceBaseSpecs extends Google_Model +{ +} + +class Google_Service_Dataflow_SourceCodec extends Google_Model +{ +} + +class Google_Service_Dataflow_SourceFork extends Google_Model +{ + protected $internal_gapi_mappings = array( + ); + protected $primaryType = 'Google_Service_Dataflow_SourceSplitShard'; + protected $primaryDataType = ''; + protected $primarySourceType = 'Google_Service_Dataflow_DerivedSource'; + protected $primarySourceDataType = ''; + protected $residualType = 'Google_Service_Dataflow_SourceSplitShard'; + protected $residualDataType = ''; + protected $residualSourceType = 'Google_Service_Dataflow_DerivedSource'; + protected $residualSourceDataType = ''; + + + public function setPrimary(Google_Service_Dataflow_SourceSplitShard $primary) + { + $this->primary = $primary; + } + public function getPrimary() + { + return $this->primary; + } + public function setPrimarySource(Google_Service_Dataflow_DerivedSource $primarySource) + { + $this->primarySource = $primarySource; + } + public function getPrimarySource() + { + return $this->primarySource; + } + public function setResidual(Google_Service_Dataflow_SourceSplitShard $residual) + { + $this->residual = $residual; + } + public function getResidual() + { + return $this->residual; + } + public function setResidualSource(Google_Service_Dataflow_DerivedSource $residualSource) + { + $this->residualSource = $residualSource; + } + public function getResidualSource() + { + return $this->residualSource; + } +} + +class Google_Service_Dataflow_SourceGetMetadataRequest extends Google_Model +{ + protected $internal_gapi_mappings = array( + ); + protected $sourceType = 'Google_Service_Dataflow_Source'; + protected $sourceDataType = ''; + + + public function setSource(Google_Service_Dataflow_Source $source) + { + $this->source = $source; + } + public function getSource() + { + return $this->source; + } +} + +class Google_Service_Dataflow_SourceGetMetadataResponse extends Google_Model +{ + protected $internal_gapi_mappings = array( + ); + protected $metadataType = 'Google_Service_Dataflow_SourceMetadata'; + protected $metadataDataType = ''; + + + public function setMetadata(Google_Service_Dataflow_SourceMetadata $metadata) + { + $this->metadata = $metadata; + } + public function getMetadata() + { + return $this->metadata; + } +} + +class Google_Service_Dataflow_SourceMetadata extends Google_Model +{ + protected $internal_gapi_mappings = array( + ); + public $estimatedSizeBytes; + public $infinite; + public $producesSortedKeys; + + + public function setEstimatedSizeBytes($estimatedSizeBytes) + { + $this->estimatedSizeBytes = $estimatedSizeBytes; + } + public function getEstimatedSizeBytes() + { + return $this->estimatedSizeBytes; + } + public function setInfinite($infinite) + { + $this->infinite = $infinite; + } + public function getInfinite() + { + return $this->infinite; + } + public function setProducesSortedKeys($producesSortedKeys) + { + $this->producesSortedKeys = $producesSortedKeys; + } + public function getProducesSortedKeys() + { + return $this->producesSortedKeys; + } +} + +class Google_Service_Dataflow_SourceOperationRequest extends Google_Model +{ + protected $internal_gapi_mappings = array( + ); + protected $getMetadataType = 'Google_Service_Dataflow_SourceGetMetadataRequest'; + protected $getMetadataDataType = ''; + protected $splitType = 'Google_Service_Dataflow_SourceSplitRequest'; + protected $splitDataType = ''; + + + public function setGetMetadata(Google_Service_Dataflow_SourceGetMetadataRequest $getMetadata) + { + $this->getMetadata = $getMetadata; + } + public function getGetMetadata() + { + return $this->getMetadata; + } + public function setSplit(Google_Service_Dataflow_SourceSplitRequest $split) + { + $this->split = $split; + } + public function getSplit() + { + return $this->split; + } +} + +class Google_Service_Dataflow_SourceOperationResponse extends Google_Model +{ + protected $internal_gapi_mappings = array( + ); + protected $getMetadataType = 'Google_Service_Dataflow_SourceGetMetadataResponse'; + protected $getMetadataDataType = ''; + protected $splitType = 'Google_Service_Dataflow_SourceSplitResponse'; + protected $splitDataType = ''; + + + public function setGetMetadata(Google_Service_Dataflow_SourceGetMetadataResponse $getMetadata) + { + $this->getMetadata = $getMetadata; + } + public function getGetMetadata() + { + return $this->getMetadata; + } + public function setSplit(Google_Service_Dataflow_SourceSplitResponse $split) + { + $this->split = $split; + } + public function getSplit() + { + return $this->split; + } +} + +class Google_Service_Dataflow_SourceSpec extends Google_Model +{ +} + +class Google_Service_Dataflow_SourceSplitOptions extends Google_Model +{ + protected $internal_gapi_mappings = array( + ); + public $desiredBundleSizeBytes; + public $desiredShardSizeBytes; + + + public function setDesiredBundleSizeBytes($desiredBundleSizeBytes) + { + $this->desiredBundleSizeBytes = $desiredBundleSizeBytes; + } + public function getDesiredBundleSizeBytes() + { + return $this->desiredBundleSizeBytes; + } + public function setDesiredShardSizeBytes($desiredShardSizeBytes) + { + $this->desiredShardSizeBytes = $desiredShardSizeBytes; + } + public function getDesiredShardSizeBytes() + { + return $this->desiredShardSizeBytes; + } +} + +class Google_Service_Dataflow_SourceSplitRequest extends Google_Model +{ + protected $internal_gapi_mappings = array( + ); + protected $optionsType = 'Google_Service_Dataflow_SourceSplitOptions'; + protected $optionsDataType = ''; + protected $sourceType = 'Google_Service_Dataflow_Source'; + protected $sourceDataType = ''; + + + public function setOptions(Google_Service_Dataflow_SourceSplitOptions $options) + { + $this->options = $options; + } + public function getOptions() + { + return $this->options; + } + public function setSource(Google_Service_Dataflow_Source $source) + { + $this->source = $source; + } + public function getSource() + { + return $this->source; + } +} + +class Google_Service_Dataflow_SourceSplitResponse extends Google_Collection +{ + protected $collection_key = 'shards'; + protected $internal_gapi_mappings = array( + ); + protected $bundlesType = 'Google_Service_Dataflow_DerivedSource'; + protected $bundlesDataType = 'array'; + public $outcome; + protected $shardsType = 'Google_Service_Dataflow_SourceSplitShard'; + protected $shardsDataType = 'array'; + + + public function setBundles($bundles) + { + $this->bundles = $bundles; + } + public function getBundles() + { + return $this->bundles; + } + public function setOutcome($outcome) + { + $this->outcome = $outcome; + } + public function getOutcome() + { + return $this->outcome; + } + public function setShards($shards) + { + $this->shards = $shards; + } + public function getShards() + { + return $this->shards; + } +} + +class Google_Service_Dataflow_SourceSplitShard extends Google_Model +{ + protected $internal_gapi_mappings = array( + ); + public $derivationMode; + protected $sourceType = 'Google_Service_Dataflow_Source'; + protected $sourceDataType = ''; + + + public function setDerivationMode($derivationMode) + { + $this->derivationMode = $derivationMode; + } + public function getDerivationMode() + { + return $this->derivationMode; + } + public function setSource(Google_Service_Dataflow_Source $source) + { + $this->source = $source; + } + public function getSource() + { + return $this->source; + } +} + +class Google_Service_Dataflow_Status extends Google_Collection +{ + protected $collection_key = 'details'; + protected $internal_gapi_mappings = array( + ); + public $code; + public $details; + public $message; + + + public function setCode($code) + { + $this->code = $code; + } + public function getCode() + { + return $this->code; + } + public function setDetails($details) + { + $this->details = $details; + } + public function getDetails() + { + return $this->details; + } + public function setMessage($message) + { + $this->message = $message; + } + public function getMessage() + { + return $this->message; + } +} + +class Google_Service_Dataflow_StatusDetails extends Google_Model +{ +} + +class Google_Service_Dataflow_Step extends Google_Model +{ + protected $internal_gapi_mappings = array( + ); + public $kind; + public $name; + public $properties; + + + public function setKind($kind) + { + $this->kind = $kind; + } + public function getKind() + { + return $this->kind; + } + public function setName($name) + { + $this->name = $name; + } + public function getName() + { + return $this->name; + } + public function setProperties($properties) + { + $this->properties = $properties; + } + public function getProperties() + { + return $this->properties; + } +} + +class Google_Service_Dataflow_StepProperties extends Google_Model +{ +} + +class Google_Service_Dataflow_StreamLocation extends Google_Model +{ + protected $internal_gapi_mappings = array( + ); + protected $pubsubLocationType = 'Google_Service_Dataflow_PubsubLocation'; + protected $pubsubLocationDataType = ''; + protected $sideInputLocationType = 'Google_Service_Dataflow_StreamingSideInputLocation'; + protected $sideInputLocationDataType = ''; + protected $streamingStageLocationType = 'Google_Service_Dataflow_StreamingStageLocation'; + protected $streamingStageLocationDataType = ''; + + + public function setPubsubLocation(Google_Service_Dataflow_PubsubLocation $pubsubLocation) + { + $this->pubsubLocation = $pubsubLocation; + } + public function getPubsubLocation() + { + return $this->pubsubLocation; + } + public function setSideInputLocation(Google_Service_Dataflow_StreamingSideInputLocation $sideInputLocation) + { + $this->sideInputLocation = $sideInputLocation; + } + public function getSideInputLocation() + { + return $this->sideInputLocation; + } + public function setStreamingStageLocation(Google_Service_Dataflow_StreamingStageLocation $streamingStageLocation) + { + $this->streamingStageLocation = $streamingStageLocation; + } + public function getStreamingStageLocation() + { + return $this->streamingStageLocation; + } +} + +class Google_Service_Dataflow_StreamingComputationRanges extends Google_Collection +{ + protected $collection_key = 'rangeAssignments'; + protected $internal_gapi_mappings = array( + ); + public $computationId; + protected $rangeAssignmentsType = 'Google_Service_Dataflow_KeyRangeDataDiskAssignment'; + protected $rangeAssignmentsDataType = 'array'; + + + public function setComputationId($computationId) + { + $this->computationId = $computationId; + } + public function getComputationId() + { + return $this->computationId; + } + public function setRangeAssignments($rangeAssignments) + { + $this->rangeAssignments = $rangeAssignments; + } + public function getRangeAssignments() + { + return $this->rangeAssignments; + } +} + +class Google_Service_Dataflow_StreamingComputationTask extends Google_Collection +{ + protected $collection_key = 'dataDisks'; + protected $internal_gapi_mappings = array( + ); + protected $computationRangesType = 'Google_Service_Dataflow_StreamingComputationRanges'; + protected $computationRangesDataType = 'array'; + protected $dataDisksType = 'Google_Service_Dataflow_MountedDataDisk'; + protected $dataDisksDataType = 'array'; + public $taskType; + + + public function setComputationRanges($computationRanges) + { + $this->computationRanges = $computationRanges; + } + public function getComputationRanges() + { + return $this->computationRanges; + } + public function setDataDisks($dataDisks) + { + $this->dataDisks = $dataDisks; + } + public function getDataDisks() + { + return $this->dataDisks; + } + public function setTaskType($taskType) + { + $this->taskType = $taskType; + } + public function getTaskType() + { + return $this->taskType; + } +} + +class Google_Service_Dataflow_StreamingSetupTask extends Google_Model +{ + protected $internal_gapi_mappings = array( + ); + public $receiveWorkPort; + protected $streamingComputationTopologyType = 'Google_Service_Dataflow_TopologyConfig'; + protected $streamingComputationTopologyDataType = ''; + public $workerHarnessPort; + + + public function setReceiveWorkPort($receiveWorkPort) + { + $this->receiveWorkPort = $receiveWorkPort; + } + public function getReceiveWorkPort() + { + return $this->receiveWorkPort; + } + public function setStreamingComputationTopology(Google_Service_Dataflow_TopologyConfig $streamingComputationTopology) + { + $this->streamingComputationTopology = $streamingComputationTopology; + } + public function getStreamingComputationTopology() + { + return $this->streamingComputationTopology; + } + public function setWorkerHarnessPort($workerHarnessPort) + { + $this->workerHarnessPort = $workerHarnessPort; + } + public function getWorkerHarnessPort() + { + return $this->workerHarnessPort; + } +} + +class Google_Service_Dataflow_StreamingSideInputLocation extends Google_Model +{ + protected $internal_gapi_mappings = array( + ); + public $tag; + + + public function setTag($tag) + { + $this->tag = $tag; + } + public function getTag() + { + return $this->tag; + } +} + +class Google_Service_Dataflow_StreamingStageLocation extends Google_Model +{ + protected $internal_gapi_mappings = array( + ); + public $streamId; + + + public function setStreamId($streamId) + { + $this->streamId = $streamId; + } + public function getStreamId() + { + return $this->streamId; + } +} + +class Google_Service_Dataflow_TaskRunnerSettings extends Google_Collection +{ + protected $collection_key = 'oauthScopes'; + protected $internal_gapi_mappings = array( + ); + public $alsologtostderr; + public $baseTaskDir; + public $baseUrl; + public $commandlinesFileName; + public $continueOnException; + public $dataflowApiVersion; + public $harnessCommand; + public $languageHint; + public $logDir; + public $logToSerialconsole; + public $logUploadLocation; + public $oauthScopes; + protected $parallelWorkerSettingsType = 'Google_Service_Dataflow_WorkerSettings'; + protected $parallelWorkerSettingsDataType = ''; + public $streamingWorkerMainClass; + public $taskGroup; + public $taskUser; + public $tempStoragePrefix; + public $vmId; + public $workflowFileName; + + + public function setAlsologtostderr($alsologtostderr) + { + $this->alsologtostderr = $alsologtostderr; + } + public function getAlsologtostderr() + { + return $this->alsologtostderr; + } + public function setBaseTaskDir($baseTaskDir) + { + $this->baseTaskDir = $baseTaskDir; + } + public function getBaseTaskDir() + { + return $this->baseTaskDir; + } + public function setBaseUrl($baseUrl) + { + $this->baseUrl = $baseUrl; + } + public function getBaseUrl() + { + return $this->baseUrl; + } + public function setCommandlinesFileName($commandlinesFileName) + { + $this->commandlinesFileName = $commandlinesFileName; + } + public function getCommandlinesFileName() + { + return $this->commandlinesFileName; + } + public function setContinueOnException($continueOnException) + { + $this->continueOnException = $continueOnException; + } + public function getContinueOnException() + { + return $this->continueOnException; + } + public function setDataflowApiVersion($dataflowApiVersion) + { + $this->dataflowApiVersion = $dataflowApiVersion; + } + public function getDataflowApiVersion() + { + return $this->dataflowApiVersion; + } + public function setHarnessCommand($harnessCommand) + { + $this->harnessCommand = $harnessCommand; + } + public function getHarnessCommand() + { + return $this->harnessCommand; + } + public function setLanguageHint($languageHint) + { + $this->languageHint = $languageHint; + } + public function getLanguageHint() + { + return $this->languageHint; + } + public function setLogDir($logDir) + { + $this->logDir = $logDir; + } + public function getLogDir() + { + return $this->logDir; + } + public function setLogToSerialconsole($logToSerialconsole) + { + $this->logToSerialconsole = $logToSerialconsole; + } + public function getLogToSerialconsole() + { + return $this->logToSerialconsole; + } + public function setLogUploadLocation($logUploadLocation) + { + $this->logUploadLocation = $logUploadLocation; + } + public function getLogUploadLocation() + { + return $this->logUploadLocation; + } + public function setOauthScopes($oauthScopes) + { + $this->oauthScopes = $oauthScopes; + } + public function getOauthScopes() + { + return $this->oauthScopes; + } + public function setParallelWorkerSettings(Google_Service_Dataflow_WorkerSettings $parallelWorkerSettings) + { + $this->parallelWorkerSettings = $parallelWorkerSettings; + } + public function getParallelWorkerSettings() + { + return $this->parallelWorkerSettings; + } + public function setStreamingWorkerMainClass($streamingWorkerMainClass) + { + $this->streamingWorkerMainClass = $streamingWorkerMainClass; + } + public function getStreamingWorkerMainClass() + { + return $this->streamingWorkerMainClass; + } + public function setTaskGroup($taskGroup) + { + $this->taskGroup = $taskGroup; + } + public function getTaskGroup() + { + return $this->taskGroup; + } + public function setTaskUser($taskUser) + { + $this->taskUser = $taskUser; + } + public function getTaskUser() + { + return $this->taskUser; + } + public function setTempStoragePrefix($tempStoragePrefix) + { + $this->tempStoragePrefix = $tempStoragePrefix; + } + public function getTempStoragePrefix() + { + return $this->tempStoragePrefix; + } + public function setVmId($vmId) + { + $this->vmId = $vmId; + } + public function getVmId() + { + return $this->vmId; + } + public function setWorkflowFileName($workflowFileName) + { + $this->workflowFileName = $workflowFileName; + } + public function getWorkflowFileName() + { + return $this->workflowFileName; + } +} + +class Google_Service_Dataflow_TopologyConfig extends Google_Collection +{ + protected $collection_key = 'dataDiskAssignments'; + protected $internal_gapi_mappings = array( + ); + protected $computationsType = 'Google_Service_Dataflow_ComputationTopology'; + protected $computationsDataType = 'array'; + protected $dataDiskAssignmentsType = 'Google_Service_Dataflow_DataDiskAssignment'; + protected $dataDiskAssignmentsDataType = 'array'; + + + public function setComputations($computations) + { + $this->computations = $computations; + } + public function getComputations() + { + return $this->computations; + } + public function setDataDiskAssignments($dataDiskAssignments) + { + $this->dataDiskAssignments = $dataDiskAssignments; + } + public function getDataDiskAssignments() + { + return $this->dataDiskAssignments; + } +} + +class Google_Service_Dataflow_WorkItem extends Google_Collection +{ + protected $collection_key = 'packages'; + protected $internal_gapi_mappings = array( + ); + public $configuration; + public $id; + public $initialReportIndex; + public $jobId; + public $leaseExpireTime; + protected $mapTaskType = 'Google_Service_Dataflow_MapTask'; + protected $mapTaskDataType = ''; + protected $packagesType = 'Google_Service_Dataflow_Package'; + protected $packagesDataType = 'array'; + public $projectId; + public $reportStatusInterval; + protected $seqMapTaskType = 'Google_Service_Dataflow_SeqMapTask'; + protected $seqMapTaskDataType = ''; + protected $shellTaskType = 'Google_Service_Dataflow_ShellTask'; + protected $shellTaskDataType = ''; + protected $sourceOperationTaskType = 'Google_Service_Dataflow_SourceOperationRequest'; + protected $sourceOperationTaskDataType = ''; + protected $streamingComputationTaskType = 'Google_Service_Dataflow_StreamingComputationTask'; + protected $streamingComputationTaskDataType = ''; + protected $streamingSetupTaskType = 'Google_Service_Dataflow_StreamingSetupTask'; + protected $streamingSetupTaskDataType = ''; + + + public function setConfiguration($configuration) + { + $this->configuration = $configuration; + } + public function getConfiguration() + { + return $this->configuration; + } + public function setId($id) + { + $this->id = $id; + } + public function getId() + { + return $this->id; + } + public function setInitialReportIndex($initialReportIndex) + { + $this->initialReportIndex = $initialReportIndex; + } + public function getInitialReportIndex() + { + return $this->initialReportIndex; + } + public function setJobId($jobId) + { + $this->jobId = $jobId; + } + public function getJobId() + { + return $this->jobId; + } + public function setLeaseExpireTime($leaseExpireTime) + { + $this->leaseExpireTime = $leaseExpireTime; + } + public function getLeaseExpireTime() + { + return $this->leaseExpireTime; + } + public function setMapTask(Google_Service_Dataflow_MapTask $mapTask) + { + $this->mapTask = $mapTask; + } + public function getMapTask() + { + return $this->mapTask; + } + public function setPackages($packages) + { + $this->packages = $packages; + } + public function getPackages() + { + return $this->packages; + } + public function setProjectId($projectId) + { + $this->projectId = $projectId; + } + public function getProjectId() + { + return $this->projectId; + } + public function setReportStatusInterval($reportStatusInterval) + { + $this->reportStatusInterval = $reportStatusInterval; + } + public function getReportStatusInterval() + { + return $this->reportStatusInterval; + } + public function setSeqMapTask(Google_Service_Dataflow_SeqMapTask $seqMapTask) + { + $this->seqMapTask = $seqMapTask; + } + public function getSeqMapTask() + { + return $this->seqMapTask; + } + public function setShellTask(Google_Service_Dataflow_ShellTask $shellTask) + { + $this->shellTask = $shellTask; + } + public function getShellTask() + { + return $this->shellTask; + } + public function setSourceOperationTask(Google_Service_Dataflow_SourceOperationRequest $sourceOperationTask) + { + $this->sourceOperationTask = $sourceOperationTask; + } + public function getSourceOperationTask() + { + return $this->sourceOperationTask; + } + public function setStreamingComputationTask(Google_Service_Dataflow_StreamingComputationTask $streamingComputationTask) + { + $this->streamingComputationTask = $streamingComputationTask; + } + public function getStreamingComputationTask() + { + return $this->streamingComputationTask; + } + public function setStreamingSetupTask(Google_Service_Dataflow_StreamingSetupTask $streamingSetupTask) + { + $this->streamingSetupTask = $streamingSetupTask; + } + public function getStreamingSetupTask() + { + return $this->streamingSetupTask; + } +} + +class Google_Service_Dataflow_WorkItemServiceState extends Google_Model +{ + protected $internal_gapi_mappings = array( + ); + public $harnessData; + public $leaseExpireTime; + public $nextReportIndex; + public $reportStatusInterval; + protected $suggestedStopPointType = 'Google_Service_Dataflow_ApproximateProgress'; + protected $suggestedStopPointDataType = ''; + protected $suggestedStopPositionType = 'Google_Service_Dataflow_Position'; + protected $suggestedStopPositionDataType = ''; + + + public function setHarnessData($harnessData) + { + $this->harnessData = $harnessData; + } + public function getHarnessData() + { + return $this->harnessData; + } + public function setLeaseExpireTime($leaseExpireTime) + { + $this->leaseExpireTime = $leaseExpireTime; + } + public function getLeaseExpireTime() + { + return $this->leaseExpireTime; + } + public function setNextReportIndex($nextReportIndex) + { + $this->nextReportIndex = $nextReportIndex; + } + public function getNextReportIndex() + { + return $this->nextReportIndex; + } + public function setReportStatusInterval($reportStatusInterval) + { + $this->reportStatusInterval = $reportStatusInterval; + } + public function getReportStatusInterval() + { + return $this->reportStatusInterval; + } + public function setSuggestedStopPoint(Google_Service_Dataflow_ApproximateProgress $suggestedStopPoint) + { + $this->suggestedStopPoint = $suggestedStopPoint; + } + public function getSuggestedStopPoint() + { + return $this->suggestedStopPoint; + } + public function setSuggestedStopPosition(Google_Service_Dataflow_Position $suggestedStopPosition) + { + $this->suggestedStopPosition = $suggestedStopPosition; + } + public function getSuggestedStopPosition() + { + return $this->suggestedStopPosition; + } +} + +class Google_Service_Dataflow_WorkItemServiceStateHarnessData extends Google_Model +{ +} + +class Google_Service_Dataflow_WorkItemStatus extends Google_Collection +{ + protected $collection_key = 'metricUpdates'; + protected $internal_gapi_mappings = array( + ); + public $completed; + protected $dynamicSourceSplitType = 'Google_Service_Dataflow_DynamicSourceSplit'; + protected $dynamicSourceSplitDataType = ''; + protected $errorsType = 'Google_Service_Dataflow_Status'; + protected $errorsDataType = 'array'; + protected $metricUpdatesType = 'Google_Service_Dataflow_MetricUpdate'; + protected $metricUpdatesDataType = 'array'; + protected $progressType = 'Google_Service_Dataflow_ApproximateProgress'; + protected $progressDataType = ''; + public $reportIndex; + public $requestedLeaseDuration; + protected $sourceForkType = 'Google_Service_Dataflow_SourceFork'; + protected $sourceForkDataType = ''; + protected $sourceOperationResponseType = 'Google_Service_Dataflow_SourceOperationResponse'; + protected $sourceOperationResponseDataType = ''; + protected $stopPositionType = 'Google_Service_Dataflow_Position'; + protected $stopPositionDataType = ''; + public $workItemId; + + + public function setCompleted($completed) + { + $this->completed = $completed; + } + public function getCompleted() + { + return $this->completed; + } + public function setDynamicSourceSplit(Google_Service_Dataflow_DynamicSourceSplit $dynamicSourceSplit) + { + $this->dynamicSourceSplit = $dynamicSourceSplit; + } + public function getDynamicSourceSplit() + { + return $this->dynamicSourceSplit; + } + public function setErrors($errors) + { + $this->errors = $errors; + } + public function getErrors() + { + return $this->errors; + } + public function setMetricUpdates($metricUpdates) + { + $this->metricUpdates = $metricUpdates; + } + public function getMetricUpdates() + { + return $this->metricUpdates; + } + public function setProgress(Google_Service_Dataflow_ApproximateProgress $progress) + { + $this->progress = $progress; + } + public function getProgress() + { + return $this->progress; + } + public function setReportIndex($reportIndex) + { + $this->reportIndex = $reportIndex; + } + public function getReportIndex() + { + return $this->reportIndex; + } + public function setRequestedLeaseDuration($requestedLeaseDuration) + { + $this->requestedLeaseDuration = $requestedLeaseDuration; + } + public function getRequestedLeaseDuration() + { + return $this->requestedLeaseDuration; + } + public function setSourceFork(Google_Service_Dataflow_SourceFork $sourceFork) + { + $this->sourceFork = $sourceFork; + } + public function getSourceFork() + { + return $this->sourceFork; + } + public function setSourceOperationResponse(Google_Service_Dataflow_SourceOperationResponse $sourceOperationResponse) + { + $this->sourceOperationResponse = $sourceOperationResponse; + } + public function getSourceOperationResponse() + { + return $this->sourceOperationResponse; + } + public function setStopPosition(Google_Service_Dataflow_Position $stopPosition) + { + $this->stopPosition = $stopPosition; + } + public function getStopPosition() + { + return $this->stopPosition; + } + public function setWorkItemId($workItemId) + { + $this->workItemId = $workItemId; + } + public function getWorkItemId() + { + return $this->workItemId; + } +} + +class Google_Service_Dataflow_WorkerPool extends Google_Collection +{ + protected $collection_key = 'packages'; + protected $internal_gapi_mappings = array( + ); + protected $autoscalingSettingsType = 'Google_Service_Dataflow_AutoscalingSettings'; + protected $autoscalingSettingsDataType = ''; + protected $dataDisksType = 'Google_Service_Dataflow_Disk'; + protected $dataDisksDataType = 'array'; + public $defaultPackageSet; + public $diskSizeGb; + public $diskSourceImage; + public $diskType; + public $kind; + public $machineType; + public $metadata; + public $network; + public $numWorkers; + public $onHostMaintenance; + protected $packagesType = 'Google_Service_Dataflow_Package'; + protected $packagesDataType = 'array'; + public $poolArgs; + protected $taskrunnerSettingsType = 'Google_Service_Dataflow_TaskRunnerSettings'; + protected $taskrunnerSettingsDataType = ''; + public $teardownPolicy; + public $zone; + + + public function setAutoscalingSettings(Google_Service_Dataflow_AutoscalingSettings $autoscalingSettings) + { + $this->autoscalingSettings = $autoscalingSettings; + } + public function getAutoscalingSettings() + { + return $this->autoscalingSettings; + } + public function setDataDisks($dataDisks) + { + $this->dataDisks = $dataDisks; + } + public function getDataDisks() + { + return $this->dataDisks; + } + public function setDefaultPackageSet($defaultPackageSet) + { + $this->defaultPackageSet = $defaultPackageSet; + } + public function getDefaultPackageSet() + { + return $this->defaultPackageSet; + } + public function setDiskSizeGb($diskSizeGb) + { + $this->diskSizeGb = $diskSizeGb; + } + public function getDiskSizeGb() + { + return $this->diskSizeGb; + } + public function setDiskSourceImage($diskSourceImage) + { + $this->diskSourceImage = $diskSourceImage; + } + public function getDiskSourceImage() + { + return $this->diskSourceImage; + } + public function setDiskType($diskType) + { + $this->diskType = $diskType; + } + public function getDiskType() + { + return $this->diskType; + } + public function setKind($kind) + { + $this->kind = $kind; + } + public function getKind() + { + return $this->kind; + } + public function setMachineType($machineType) + { + $this->machineType = $machineType; + } + public function getMachineType() + { + return $this->machineType; + } + public function setMetadata($metadata) + { + $this->metadata = $metadata; + } + public function getMetadata() + { + return $this->metadata; + } + public function setNetwork($network) + { + $this->network = $network; + } + public function getNetwork() + { + return $this->network; + } + public function setNumWorkers($numWorkers) + { + $this->numWorkers = $numWorkers; + } + public function getNumWorkers() + { + return $this->numWorkers; + } + public function setOnHostMaintenance($onHostMaintenance) + { + $this->onHostMaintenance = $onHostMaintenance; + } + public function getOnHostMaintenance() + { + return $this->onHostMaintenance; + } + public function setPackages($packages) + { + $this->packages = $packages; + } + public function getPackages() + { + return $this->packages; + } + public function setPoolArgs($poolArgs) + { + $this->poolArgs = $poolArgs; + } + public function getPoolArgs() + { + return $this->poolArgs; + } + public function setTaskrunnerSettings(Google_Service_Dataflow_TaskRunnerSettings $taskrunnerSettings) + { + $this->taskrunnerSettings = $taskrunnerSettings; + } + public function getTaskrunnerSettings() + { + return $this->taskrunnerSettings; + } + public function setTeardownPolicy($teardownPolicy) + { + $this->teardownPolicy = $teardownPolicy; + } + public function getTeardownPolicy() + { + return $this->teardownPolicy; + } + public function setZone($zone) + { + $this->zone = $zone; + } + public function getZone() + { + return $this->zone; + } +} + +class Google_Service_Dataflow_WorkerPoolMetadata extends Google_Model +{ +} + +class Google_Service_Dataflow_WorkerPoolPoolArgs extends Google_Model +{ +} + +class Google_Service_Dataflow_WorkerSettings extends Google_Model +{ + protected $internal_gapi_mappings = array( + ); + public $baseUrl; + public $reportingEnabled; + public $servicePath; + public $shuffleServicePath; + public $tempStoragePrefix; + public $workerId; + + + public function setBaseUrl($baseUrl) + { + $this->baseUrl = $baseUrl; + } + public function getBaseUrl() + { + return $this->baseUrl; + } + public function setReportingEnabled($reportingEnabled) + { + $this->reportingEnabled = $reportingEnabled; + } + public function getReportingEnabled() + { + return $this->reportingEnabled; + } + public function setServicePath($servicePath) + { + $this->servicePath = $servicePath; + } + public function getServicePath() + { + return $this->servicePath; + } + public function setShuffleServicePath($shuffleServicePath) + { + $this->shuffleServicePath = $shuffleServicePath; + } + public function getShuffleServicePath() + { + return $this->shuffleServicePath; + } + public function setTempStoragePrefix($tempStoragePrefix) + { + $this->tempStoragePrefix = $tempStoragePrefix; + } + public function getTempStoragePrefix() + { + return $this->tempStoragePrefix; + } + public function setWorkerId($workerId) + { + $this->workerId = $workerId; + } + public function getWorkerId() + { + return $this->workerId; + } +} + +class Google_Service_Dataflow_WriteInstruction extends Google_Model +{ + protected $internal_gapi_mappings = array( + ); + protected $inputType = 'Google_Service_Dataflow_InstructionInput'; + protected $inputDataType = ''; + protected $sinkType = 'Google_Service_Dataflow_Sink'; + protected $sinkDataType = ''; + + + public function setInput(Google_Service_Dataflow_InstructionInput $input) + { + $this->input = $input; + } + public function getInput() + { + return $this->input; + } + public function setSink(Google_Service_Dataflow_Sink $sink) + { + $this->sink = $sink; + } + public function getSink() + { + return $this->sink; + } +} diff --git a/lib/google/src/Google/Service/Datastore.php b/lib/google/src/Google/Service/Datastore.php index e627d9d0e53..a7c58dbc289 100644 --- a/lib/google/src/Google/Service/Datastore.php +++ b/lib/google/src/Google/Service/Datastore.php @@ -51,6 +51,7 @@ class Google_Service_Datastore extends Google_Service public function __construct(Google_Client $client) { parent::__construct($client); + $this->rootUrl = 'https://www.googleapis.com/'; $this->servicePath = 'datastore/v1beta2/datasets/'; $this->version = 'v1beta2'; $this->serviceName = 'datastore'; diff --git a/lib/google/src/Google/Service/DeploymentManager.php b/lib/google/src/Google/Service/DeploymentManager.php new file mode 100644 index 00000000000..30d74421bdc --- /dev/null +++ b/lib/google/src/Google/Service/DeploymentManager.php @@ -0,0 +1,1600 @@ + + * The Deployment Manager API allows users to declaratively configure, deploy + * and run complex solutions on the Google Cloud Platform.

+ * + *

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

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

- * Lets you create, run and download reports.

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

* *

* For more information about this service, see the API @@ -33,13 +33,67 @@ class Google_Service_Dfareporting extends Google_Service /** View and manage DoubleClick for Advertisers reports. */ const DFAREPORTING = "https://www.googleapis.com/auth/dfareporting"; + /** View and manage your DoubleClick Campaign Manager's (DCM) display ad campaigns. */ + const DFATRAFFICKING = + "https://www.googleapis.com/auth/dfatrafficking"; + public $accountActiveAdSummaries; + public $accountPermissionGroups; + public $accountPermissions; + public $accountUserProfiles; + public $accounts; + public $ads; + public $advertiserGroups; + public $advertisers; + public $browsers; + public $campaignCreativeAssociations; + public $campaigns; + public $changeLogs; + public $cities; + public $connectionTypes; + public $contentCategories; + public $countries; + public $creativeAssets; + public $creativeFieldValues; + public $creativeFields; + public $creativeGroups; + public $creatives; public $dimensionValues; + public $directorySiteContacts; + public $directorySites; + public $eventTags; public $files; + public $floodlightActivities; + public $floodlightActivityGroups; + public $floodlightConfigurations; + public $inventoryItems; + public $landingPages; + public $metros; + public $mobileCarriers; + public $operatingSystemVersions; + public $operatingSystems; + public $orderDocuments; + public $orders; + public $placementGroups; + public $placementStrategies; + public $placements; + public $platformTypes; + public $postalCodes; + public $projects; + public $regions; + public $remarketingListShares; + public $remarketingLists; public $reports; public $reports_compatibleFields; public $reports_files; + public $sites; + public $sizes; + public $subaccounts; + public $targetableRemarketingLists; public $userProfiles; + public $userRolePermissionGroups; + public $userRolePermissions; + public $userRoles; /** @@ -50,10 +104,1737 @@ class Google_Service_Dfareporting extends Google_Service public function __construct(Google_Client $client) { parent::__construct($client); - $this->servicePath = 'dfareporting/v1.3/'; - $this->version = 'v1.3'; + $this->servicePath = 'dfareporting/v2.1/'; + $this->version = 'v2.1'; $this->serviceName = 'dfareporting'; + $this->accountActiveAdSummaries = new Google_Service_Dfareporting_AccountActiveAdSummaries_Resource( + $this, + $this->serviceName, + 'accountActiveAdSummaries', + array( + 'methods' => array( + 'get' => array( + 'path' => 'userprofiles/{profileId}/accountActiveAdSummaries/{summaryAccountId}', + 'httpMethod' => 'GET', + 'parameters' => array( + 'profileId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'summaryAccountId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ), + ) + ) + ); + $this->accountPermissionGroups = new Google_Service_Dfareporting_AccountPermissionGroups_Resource( + $this, + $this->serviceName, + 'accountPermissionGroups', + array( + 'methods' => array( + 'get' => array( + 'path' => 'userprofiles/{profileId}/accountPermissionGroups/{id}', + 'httpMethod' => 'GET', + 'parameters' => array( + 'profileId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'id' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ),'list' => array( + 'path' => 'userprofiles/{profileId}/accountPermissionGroups', + 'httpMethod' => 'GET', + 'parameters' => array( + 'profileId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ), + ) + ) + ); + $this->accountPermissions = new Google_Service_Dfareporting_AccountPermissions_Resource( + $this, + $this->serviceName, + 'accountPermissions', + array( + 'methods' => array( + 'get' => array( + 'path' => 'userprofiles/{profileId}/accountPermissions/{id}', + 'httpMethod' => 'GET', + 'parameters' => array( + 'profileId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'id' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ),'list' => array( + 'path' => 'userprofiles/{profileId}/accountPermissions', + 'httpMethod' => 'GET', + 'parameters' => array( + 'profileId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ), + ) + ) + ); + $this->accountUserProfiles = new Google_Service_Dfareporting_AccountUserProfiles_Resource( + $this, + $this->serviceName, + 'accountUserProfiles', + array( + 'methods' => array( + 'get' => array( + 'path' => 'userprofiles/{profileId}/accountUserProfiles/{id}', + 'httpMethod' => 'GET', + 'parameters' => array( + 'profileId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'id' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ),'insert' => array( + 'path' => 'userprofiles/{profileId}/accountUserProfiles', + 'httpMethod' => 'POST', + 'parameters' => array( + 'profileId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ),'list' => array( + 'path' => 'userprofiles/{profileId}/accountUserProfiles', + 'httpMethod' => 'GET', + 'parameters' => array( + 'profileId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'searchString' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'subaccountId' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'sortField' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'ids' => array( + 'location' => 'query', + 'type' => 'string', + 'repeated' => true, + ), + 'maxResults' => array( + 'location' => 'query', + 'type' => 'integer', + ), + 'pageToken' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'userRoleId' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'sortOrder' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'active' => array( + 'location' => 'query', + 'type' => 'boolean', + ), + ), + ),'patch' => array( + 'path' => 'userprofiles/{profileId}/accountUserProfiles', + 'httpMethod' => 'PATCH', + 'parameters' => array( + 'profileId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'id' => array( + 'location' => 'query', + 'type' => 'string', + 'required' => true, + ), + ), + ),'update' => array( + 'path' => 'userprofiles/{profileId}/accountUserProfiles', + 'httpMethod' => 'PUT', + 'parameters' => array( + 'profileId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ), + ) + ) + ); + $this->accounts = new Google_Service_Dfareporting_Accounts_Resource( + $this, + $this->serviceName, + 'accounts', + array( + 'methods' => array( + 'get' => array( + 'path' => 'userprofiles/{profileId}/accounts/{id}', + 'httpMethod' => 'GET', + 'parameters' => array( + 'profileId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'id' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ),'list' => array( + 'path' => 'userprofiles/{profileId}/accounts', + 'httpMethod' => 'GET', + 'parameters' => array( + 'profileId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'searchString' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'sortField' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'ids' => array( + 'location' => 'query', + 'type' => 'string', + 'repeated' => true, + ), + 'maxResults' => array( + 'location' => 'query', + 'type' => 'integer', + ), + 'pageToken' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'sortOrder' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'active' => array( + 'location' => 'query', + 'type' => 'boolean', + ), + ), + ),'patch' => array( + 'path' => 'userprofiles/{profileId}/accounts', + 'httpMethod' => 'PATCH', + 'parameters' => array( + 'profileId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'id' => array( + 'location' => 'query', + 'type' => 'string', + 'required' => true, + ), + ), + ),'update' => array( + 'path' => 'userprofiles/{profileId}/accounts', + 'httpMethod' => 'PUT', + 'parameters' => array( + 'profileId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ), + ) + ) + ); + $this->ads = new Google_Service_Dfareporting_Ads_Resource( + $this, + $this->serviceName, + 'ads', + array( + 'methods' => array( + 'get' => array( + 'path' => 'userprofiles/{profileId}/ads/{id}', + 'httpMethod' => 'GET', + 'parameters' => array( + 'profileId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'id' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ),'insert' => array( + 'path' => 'userprofiles/{profileId}/ads', + 'httpMethod' => 'POST', + 'parameters' => array( + 'profileId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ),'list' => array( + 'path' => 'userprofiles/{profileId}/ads', + 'httpMethod' => 'GET', + 'parameters' => array( + 'profileId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'landingPageIds' => array( + 'location' => 'query', + 'type' => 'string', + 'repeated' => true, + ), + 'overriddenEventTagId' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'campaignIds' => array( + 'location' => 'query', + 'type' => 'string', + 'repeated' => true, + ), + 'archived' => array( + 'location' => 'query', + 'type' => 'boolean', + ), + 'creativeOptimizationConfigurationIds' => array( + 'location' => 'query', + 'type' => 'string', + 'repeated' => true, + ), + 'sslCompliant' => array( + 'location' => 'query', + 'type' => 'boolean', + ), + 'sizeIds' => array( + 'location' => 'query', + 'type' => 'string', + 'repeated' => true, + ), + 'pageToken' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'sortOrder' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'type' => array( + 'location' => 'query', + 'type' => 'string', + 'repeated' => true, + ), + 'sslRequired' => array( + 'location' => 'query', + 'type' => 'boolean', + ), + 'creativeIds' => array( + 'location' => 'query', + 'type' => 'string', + 'repeated' => true, + ), + 'maxResults' => array( + 'location' => 'query', + 'type' => 'integer', + ), + 'creativeType' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'placementIds' => array( + 'location' => 'query', + 'type' => 'string', + 'repeated' => true, + ), + 'active' => array( + 'location' => 'query', + 'type' => 'boolean', + ), + 'compatibility' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'advertiserId' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'searchString' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'sortField' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'audienceSegmentIds' => array( + 'location' => 'query', + 'type' => 'string', + 'repeated' => true, + ), + 'ids' => array( + 'location' => 'query', + 'type' => 'string', + 'repeated' => true, + ), + 'remarketingListIds' => array( + 'location' => 'query', + 'type' => 'string', + 'repeated' => true, + ), + 'dynamicClickTracker' => array( + 'location' => 'query', + 'type' => 'boolean', + ), + ), + ),'patch' => array( + 'path' => 'userprofiles/{profileId}/ads', + 'httpMethod' => 'PATCH', + 'parameters' => array( + 'profileId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'id' => array( + 'location' => 'query', + 'type' => 'string', + 'required' => true, + ), + ), + ),'update' => array( + 'path' => 'userprofiles/{profileId}/ads', + 'httpMethod' => 'PUT', + 'parameters' => array( + 'profileId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ), + ) + ) + ); + $this->advertiserGroups = new Google_Service_Dfareporting_AdvertiserGroups_Resource( + $this, + $this->serviceName, + 'advertiserGroups', + array( + 'methods' => array( + 'delete' => array( + 'path' => 'userprofiles/{profileId}/advertiserGroups/{id}', + 'httpMethod' => 'DELETE', + 'parameters' => array( + 'profileId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'id' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ),'get' => array( + 'path' => 'userprofiles/{profileId}/advertiserGroups/{id}', + 'httpMethod' => 'GET', + 'parameters' => array( + 'profileId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'id' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ),'insert' => array( + 'path' => 'userprofiles/{profileId}/advertiserGroups', + 'httpMethod' => 'POST', + 'parameters' => array( + 'profileId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ),'list' => array( + 'path' => 'userprofiles/{profileId}/advertiserGroups', + 'httpMethod' => 'GET', + 'parameters' => array( + 'profileId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'searchString' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'sortField' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'ids' => array( + 'location' => 'query', + 'type' => 'string', + 'repeated' => true, + ), + 'maxResults' => array( + 'location' => 'query', + 'type' => 'integer', + ), + 'pageToken' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'sortOrder' => array( + 'location' => 'query', + 'type' => 'string', + ), + ), + ),'patch' => array( + 'path' => 'userprofiles/{profileId}/advertiserGroups', + 'httpMethod' => 'PATCH', + 'parameters' => array( + 'profileId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'id' => array( + 'location' => 'query', + 'type' => 'string', + 'required' => true, + ), + ), + ),'update' => array( + 'path' => 'userprofiles/{profileId}/advertiserGroups', + 'httpMethod' => 'PUT', + 'parameters' => array( + 'profileId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ), + ) + ) + ); + $this->advertisers = new Google_Service_Dfareporting_Advertisers_Resource( + $this, + $this->serviceName, + 'advertisers', + array( + 'methods' => array( + 'get' => array( + 'path' => 'userprofiles/{profileId}/advertisers/{id}', + 'httpMethod' => 'GET', + 'parameters' => array( + 'profileId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'id' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ),'insert' => array( + 'path' => 'userprofiles/{profileId}/advertisers', + 'httpMethod' => 'POST', + 'parameters' => array( + 'profileId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ),'list' => array( + 'path' => 'userprofiles/{profileId}/advertisers', + 'httpMethod' => 'GET', + 'parameters' => array( + 'profileId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'status' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'searchString' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'subaccountId' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'includeAdvertisersWithoutGroupsOnly' => array( + 'location' => 'query', + 'type' => 'boolean', + ), + 'sortField' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'ids' => array( + 'location' => 'query', + 'type' => 'string', + 'repeated' => true, + ), + 'maxResults' => array( + 'location' => 'query', + 'type' => 'integer', + ), + 'pageToken' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'onlyParent' => array( + 'location' => 'query', + 'type' => 'boolean', + ), + 'sortOrder' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'floodlightConfigurationIds' => array( + 'location' => 'query', + 'type' => 'string', + 'repeated' => true, + ), + 'advertiserGroupIds' => array( + 'location' => 'query', + 'type' => 'string', + 'repeated' => true, + ), + ), + ),'patch' => array( + 'path' => 'userprofiles/{profileId}/advertisers', + 'httpMethod' => 'PATCH', + 'parameters' => array( + 'profileId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'id' => array( + 'location' => 'query', + 'type' => 'string', + 'required' => true, + ), + ), + ),'update' => array( + 'path' => 'userprofiles/{profileId}/advertisers', + 'httpMethod' => 'PUT', + 'parameters' => array( + 'profileId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ), + ) + ) + ); + $this->browsers = new Google_Service_Dfareporting_Browsers_Resource( + $this, + $this->serviceName, + 'browsers', + array( + 'methods' => array( + 'list' => array( + 'path' => 'userprofiles/{profileId}/browsers', + 'httpMethod' => 'GET', + 'parameters' => array( + 'profileId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ), + ) + ) + ); + $this->campaignCreativeAssociations = new Google_Service_Dfareporting_CampaignCreativeAssociations_Resource( + $this, + $this->serviceName, + 'campaignCreativeAssociations', + array( + 'methods' => array( + 'insert' => array( + 'path' => 'userprofiles/{profileId}/campaigns/{campaignId}/campaignCreativeAssociations', + 'httpMethod' => 'POST', + 'parameters' => array( + 'profileId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'campaignId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ),'list' => array( + 'path' => 'userprofiles/{profileId}/campaigns/{campaignId}/campaignCreativeAssociations', + 'httpMethod' => 'GET', + 'parameters' => array( + 'profileId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'campaignId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'pageToken' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'sortOrder' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'maxResults' => array( + 'location' => 'query', + 'type' => 'integer', + ), + ), + ), + ) + ) + ); + $this->campaigns = new Google_Service_Dfareporting_Campaigns_Resource( + $this, + $this->serviceName, + 'campaigns', + array( + 'methods' => array( + 'get' => array( + 'path' => 'userprofiles/{profileId}/campaigns/{id}', + 'httpMethod' => 'GET', + 'parameters' => array( + 'profileId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'id' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ),'insert' => array( + 'path' => 'userprofiles/{profileId}/campaigns', + 'httpMethod' => 'POST', + 'parameters' => array( + 'profileId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'defaultLandingPageName' => array( + 'location' => 'query', + 'type' => 'string', + 'required' => true, + ), + 'defaultLandingPageUrl' => array( + 'location' => 'query', + 'type' => 'string', + 'required' => true, + ), + ), + ),'list' => array( + 'path' => 'userprofiles/{profileId}/campaigns', + 'httpMethod' => 'GET', + 'parameters' => array( + 'profileId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'archived' => array( + 'location' => 'query', + 'type' => 'boolean', + ), + 'searchString' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'subaccountId' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'sortField' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'advertiserIds' => array( + 'location' => 'query', + 'type' => 'string', + 'repeated' => true, + ), + 'ids' => array( + 'location' => 'query', + 'type' => 'string', + 'repeated' => true, + ), + 'maxResults' => array( + 'location' => 'query', + 'type' => 'integer', + ), + 'excludedIds' => array( + 'location' => 'query', + 'type' => 'string', + 'repeated' => true, + ), + 'pageToken' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'advertiserGroupIds' => array( + 'location' => 'query', + 'type' => 'string', + 'repeated' => true, + ), + 'sortOrder' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'overriddenEventTagId' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'atLeastOneOptimizationActivity' => array( + 'location' => 'query', + 'type' => 'boolean', + ), + ), + ),'patch' => array( + 'path' => 'userprofiles/{profileId}/campaigns', + 'httpMethod' => 'PATCH', + 'parameters' => array( + 'profileId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'id' => array( + 'location' => 'query', + 'type' => 'string', + 'required' => true, + ), + ), + ),'update' => array( + 'path' => 'userprofiles/{profileId}/campaigns', + 'httpMethod' => 'PUT', + 'parameters' => array( + 'profileId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ), + ) + ) + ); + $this->changeLogs = new Google_Service_Dfareporting_ChangeLogs_Resource( + $this, + $this->serviceName, + 'changeLogs', + array( + 'methods' => array( + 'get' => array( + 'path' => 'userprofiles/{profileId}/changeLogs/{id}', + 'httpMethod' => 'GET', + 'parameters' => array( + 'profileId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'id' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ),'list' => array( + 'path' => 'userprofiles/{profileId}/changeLogs', + 'httpMethod' => 'GET', + 'parameters' => array( + 'profileId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'minChangeTime' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'searchString' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'maxChangeTime' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'userProfileIds' => array( + 'location' => 'query', + 'type' => 'string', + 'repeated' => true, + ), + 'ids' => array( + 'location' => 'query', + 'type' => 'string', + 'repeated' => true, + ), + 'maxResults' => array( + 'location' => 'query', + 'type' => 'integer', + ), + 'objectIds' => array( + 'location' => 'query', + 'type' => 'string', + 'repeated' => true, + ), + 'pageToken' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'action' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'objectType' => array( + 'location' => 'query', + 'type' => 'string', + ), + ), + ), + ) + ) + ); + $this->cities = new Google_Service_Dfareporting_Cities_Resource( + $this, + $this->serviceName, + 'cities', + array( + 'methods' => array( + 'list' => array( + 'path' => 'userprofiles/{profileId}/cities', + 'httpMethod' => 'GET', + 'parameters' => array( + 'profileId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'dartIds' => array( + 'location' => 'query', + 'type' => 'string', + 'repeated' => true, + ), + 'namePrefix' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'regionDartIds' => array( + 'location' => 'query', + 'type' => 'string', + 'repeated' => true, + ), + 'countryDartIds' => array( + 'location' => 'query', + 'type' => 'string', + 'repeated' => true, + ), + ), + ), + ) + ) + ); + $this->connectionTypes = new Google_Service_Dfareporting_ConnectionTypes_Resource( + $this, + $this->serviceName, + 'connectionTypes', + array( + 'methods' => array( + 'get' => array( + 'path' => 'userprofiles/{profileId}/connectionTypes/{id}', + 'httpMethod' => 'GET', + 'parameters' => array( + 'profileId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'id' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ),'list' => array( + 'path' => 'userprofiles/{profileId}/connectionTypes', + 'httpMethod' => 'GET', + 'parameters' => array( + 'profileId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ), + ) + ) + ); + $this->contentCategories = new Google_Service_Dfareporting_ContentCategories_Resource( + $this, + $this->serviceName, + 'contentCategories', + array( + 'methods' => array( + 'delete' => array( + 'path' => 'userprofiles/{profileId}/contentCategories/{id}', + 'httpMethod' => 'DELETE', + 'parameters' => array( + 'profileId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'id' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ),'get' => array( + 'path' => 'userprofiles/{profileId}/contentCategories/{id}', + 'httpMethod' => 'GET', + 'parameters' => array( + 'profileId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'id' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ),'insert' => array( + 'path' => 'userprofiles/{profileId}/contentCategories', + 'httpMethod' => 'POST', + 'parameters' => array( + 'profileId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ),'list' => array( + 'path' => 'userprofiles/{profileId}/contentCategories', + 'httpMethod' => 'GET', + 'parameters' => array( + 'profileId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'searchString' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'sortField' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'ids' => array( + 'location' => 'query', + 'type' => 'string', + 'repeated' => true, + ), + 'maxResults' => array( + 'location' => 'query', + 'type' => 'integer', + ), + 'pageToken' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'sortOrder' => array( + 'location' => 'query', + 'type' => 'string', + ), + ), + ),'patch' => array( + 'path' => 'userprofiles/{profileId}/contentCategories', + 'httpMethod' => 'PATCH', + 'parameters' => array( + 'profileId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'id' => array( + 'location' => 'query', + 'type' => 'string', + 'required' => true, + ), + ), + ),'update' => array( + 'path' => 'userprofiles/{profileId}/contentCategories', + 'httpMethod' => 'PUT', + 'parameters' => array( + 'profileId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ), + ) + ) + ); + $this->countries = new Google_Service_Dfareporting_Countries_Resource( + $this, + $this->serviceName, + 'countries', + array( + 'methods' => array( + 'get' => array( + 'path' => 'userprofiles/{profileId}/countries/{dartId}', + 'httpMethod' => 'GET', + 'parameters' => array( + 'profileId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'dartId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ),'list' => array( + 'path' => 'userprofiles/{profileId}/countries', + 'httpMethod' => 'GET', + 'parameters' => array( + 'profileId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ), + ) + ) + ); + $this->creativeAssets = new Google_Service_Dfareporting_CreativeAssets_Resource( + $this, + $this->serviceName, + 'creativeAssets', + array( + 'methods' => array( + 'insert' => array( + 'path' => 'userprofiles/{profileId}/creativeAssets/{advertiserId}/creativeAssets', + 'httpMethod' => 'POST', + 'parameters' => array( + 'profileId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'advertiserId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ), + ) + ) + ); + $this->creativeFieldValues = new Google_Service_Dfareporting_CreativeFieldValues_Resource( + $this, + $this->serviceName, + 'creativeFieldValues', + array( + 'methods' => array( + 'delete' => array( + 'path' => 'userprofiles/{profileId}/creativeFields/{creativeFieldId}/creativeFieldValues/{id}', + 'httpMethod' => 'DELETE', + 'parameters' => array( + 'profileId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'creativeFieldId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'id' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ),'get' => array( + 'path' => 'userprofiles/{profileId}/creativeFields/{creativeFieldId}/creativeFieldValues/{id}', + 'httpMethod' => 'GET', + 'parameters' => array( + 'profileId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'creativeFieldId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'id' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ),'insert' => array( + 'path' => 'userprofiles/{profileId}/creativeFields/{creativeFieldId}/creativeFieldValues', + 'httpMethod' => 'POST', + 'parameters' => array( + 'profileId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'creativeFieldId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ),'list' => array( + 'path' => 'userprofiles/{profileId}/creativeFields/{creativeFieldId}/creativeFieldValues', + 'httpMethod' => 'GET', + 'parameters' => array( + 'profileId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'creativeFieldId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'searchString' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'pageToken' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'sortField' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'ids' => array( + 'location' => 'query', + 'type' => 'string', + 'repeated' => true, + ), + 'maxResults' => array( + 'location' => 'query', + 'type' => 'integer', + ), + 'sortOrder' => array( + 'location' => 'query', + 'type' => 'string', + ), + ), + ),'patch' => array( + 'path' => 'userprofiles/{profileId}/creativeFields/{creativeFieldId}/creativeFieldValues', + 'httpMethod' => 'PATCH', + 'parameters' => array( + 'profileId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'creativeFieldId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'id' => array( + 'location' => 'query', + 'type' => 'string', + 'required' => true, + ), + ), + ),'update' => array( + 'path' => 'userprofiles/{profileId}/creativeFields/{creativeFieldId}/creativeFieldValues', + 'httpMethod' => 'PUT', + 'parameters' => array( + 'profileId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'creativeFieldId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ), + ) + ) + ); + $this->creativeFields = new Google_Service_Dfareporting_CreativeFields_Resource( + $this, + $this->serviceName, + 'creativeFields', + array( + 'methods' => array( + 'delete' => array( + 'path' => 'userprofiles/{profileId}/creativeFields/{id}', + 'httpMethod' => 'DELETE', + 'parameters' => array( + 'profileId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'id' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ),'get' => array( + 'path' => 'userprofiles/{profileId}/creativeFields/{id}', + 'httpMethod' => 'GET', + 'parameters' => array( + 'profileId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'id' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ),'insert' => array( + 'path' => 'userprofiles/{profileId}/creativeFields', + 'httpMethod' => 'POST', + 'parameters' => array( + 'profileId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ),'list' => array( + 'path' => 'userprofiles/{profileId}/creativeFields', + 'httpMethod' => 'GET', + 'parameters' => array( + 'profileId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'searchString' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'sortField' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'advertiserIds' => array( + 'location' => 'query', + 'type' => 'string', + 'repeated' => true, + ), + 'ids' => array( + 'location' => 'query', + 'type' => 'string', + 'repeated' => true, + ), + 'maxResults' => array( + 'location' => 'query', + 'type' => 'integer', + ), + 'pageToken' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'sortOrder' => array( + 'location' => 'query', + 'type' => 'string', + ), + ), + ),'patch' => array( + 'path' => 'userprofiles/{profileId}/creativeFields', + 'httpMethod' => 'PATCH', + 'parameters' => array( + 'profileId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'id' => array( + 'location' => 'query', + 'type' => 'string', + 'required' => true, + ), + ), + ),'update' => array( + 'path' => 'userprofiles/{profileId}/creativeFields', + 'httpMethod' => 'PUT', + 'parameters' => array( + 'profileId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ), + ) + ) + ); + $this->creativeGroups = new Google_Service_Dfareporting_CreativeGroups_Resource( + $this, + $this->serviceName, + 'creativeGroups', + array( + 'methods' => array( + 'get' => array( + 'path' => 'userprofiles/{profileId}/creativeGroups/{id}', + 'httpMethod' => 'GET', + 'parameters' => array( + 'profileId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'id' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ),'insert' => array( + 'path' => 'userprofiles/{profileId}/creativeGroups', + 'httpMethod' => 'POST', + 'parameters' => array( + 'profileId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ),'list' => array( + 'path' => 'userprofiles/{profileId}/creativeGroups', + 'httpMethod' => 'GET', + 'parameters' => array( + 'profileId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'searchString' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'sortField' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'advertiserIds' => array( + 'location' => 'query', + 'type' => 'string', + 'repeated' => true, + ), + 'groupNumber' => array( + 'location' => 'query', + 'type' => 'integer', + ), + 'maxResults' => array( + 'location' => 'query', + 'type' => 'integer', + ), + 'ids' => array( + 'location' => 'query', + 'type' => 'string', + 'repeated' => true, + ), + 'pageToken' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'sortOrder' => array( + 'location' => 'query', + 'type' => 'string', + ), + ), + ),'patch' => array( + 'path' => 'userprofiles/{profileId}/creativeGroups', + 'httpMethod' => 'PATCH', + 'parameters' => array( + 'profileId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'id' => array( + 'location' => 'query', + 'type' => 'string', + 'required' => true, + ), + ), + ),'update' => array( + 'path' => 'userprofiles/{profileId}/creativeGroups', + 'httpMethod' => 'PUT', + 'parameters' => array( + 'profileId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ), + ) + ) + ); + $this->creatives = new Google_Service_Dfareporting_Creatives_Resource( + $this, + $this->serviceName, + 'creatives', + array( + 'methods' => array( + 'get' => array( + 'path' => 'userprofiles/{profileId}/creatives/{id}', + 'httpMethod' => 'GET', + 'parameters' => array( + 'profileId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'id' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ),'insert' => array( + 'path' => 'userprofiles/{profileId}/creatives', + 'httpMethod' => 'POST', + 'parameters' => array( + 'profileId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ),'list' => array( + 'path' => 'userprofiles/{profileId}/creatives', + 'httpMethod' => 'GET', + 'parameters' => array( + 'profileId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'sizeIds' => array( + 'location' => 'query', + 'type' => 'string', + 'repeated' => true, + ), + 'archived' => array( + 'location' => 'query', + 'type' => 'boolean', + ), + 'searchString' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'campaignId' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'sortField' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'renderingIds' => array( + 'location' => 'query', + 'type' => 'string', + 'repeated' => true, + ), + 'ids' => array( + 'location' => 'query', + 'type' => 'string', + 'repeated' => true, + ), + 'maxResults' => array( + 'location' => 'query', + 'type' => 'integer', + ), + 'advertiserId' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'pageToken' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'studioCreativeId' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'sortOrder' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'companionCreativeIds' => array( + 'location' => 'query', + 'type' => 'string', + 'repeated' => true, + ), + 'active' => array( + 'location' => 'query', + 'type' => 'boolean', + ), + 'creativeFieldIds' => array( + 'location' => 'query', + 'type' => 'string', + 'repeated' => true, + ), + 'types' => array( + 'location' => 'query', + 'type' => 'string', + 'repeated' => true, + ), + ), + ),'patch' => array( + 'path' => 'userprofiles/{profileId}/creatives', + 'httpMethod' => 'PATCH', + 'parameters' => array( + 'profileId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'id' => array( + 'location' => 'query', + 'type' => 'string', + 'required' => true, + ), + ), + ),'update' => array( + 'path' => 'userprofiles/{profileId}/creatives', + 'httpMethod' => 'PUT', + 'parameters' => array( + 'profileId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ), + ) + ) + ); $this->dimensionValues = new Google_Service_Dfareporting_DimensionValues_Resource( $this, $this->serviceName, @@ -82,6 +1863,296 @@ class Google_Service_Dfareporting extends Google_Service ) ) ); + $this->directorySiteContacts = new Google_Service_Dfareporting_DirectorySiteContacts_Resource( + $this, + $this->serviceName, + 'directorySiteContacts', + array( + 'methods' => array( + 'get' => array( + 'path' => 'userprofiles/{profileId}/directorySiteContacts/{id}', + 'httpMethod' => 'GET', + 'parameters' => array( + 'profileId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'id' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ),'list' => array( + 'path' => 'userprofiles/{profileId}/directorySiteContacts', + 'httpMethod' => 'GET', + 'parameters' => array( + 'profileId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'searchString' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'directorySiteIds' => array( + 'location' => 'query', + 'type' => 'string', + 'repeated' => true, + ), + 'sortField' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'ids' => array( + 'location' => 'query', + 'type' => 'string', + 'repeated' => true, + ), + 'maxResults' => array( + 'location' => 'query', + 'type' => 'integer', + ), + 'pageToken' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'sortOrder' => array( + 'location' => 'query', + 'type' => 'string', + ), + ), + ), + ) + ) + ); + $this->directorySites = new Google_Service_Dfareporting_DirectorySites_Resource( + $this, + $this->serviceName, + 'directorySites', + array( + 'methods' => array( + 'get' => array( + 'path' => 'userprofiles/{profileId}/directorySites/{id}', + 'httpMethod' => 'GET', + 'parameters' => array( + 'profileId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'id' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ),'insert' => array( + 'path' => 'userprofiles/{profileId}/directorySites', + 'httpMethod' => 'POST', + 'parameters' => array( + 'profileId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ),'list' => array( + 'path' => 'userprofiles/{profileId}/directorySites', + 'httpMethod' => 'GET', + 'parameters' => array( + 'profileId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'acceptsInterstitialPlacements' => array( + 'location' => 'query', + 'type' => 'boolean', + ), + 'sortOrder' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'searchString' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'countryId' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'sortField' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'acceptsInStreamVideoPlacements' => array( + 'location' => 'query', + 'type' => 'boolean', + ), + 'ids' => array( + 'location' => 'query', + 'type' => 'string', + 'repeated' => true, + ), + 'maxResults' => array( + 'location' => 'query', + 'type' => 'integer', + ), + 'pageToken' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'acceptsPublisherPaidPlacements' => array( + 'location' => 'query', + 'type' => 'boolean', + ), + 'parentId' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'active' => array( + 'location' => 'query', + 'type' => 'boolean', + ), + 'dfp_network_code' => array( + 'location' => 'query', + 'type' => 'string', + ), + ), + ), + ) + ) + ); + $this->eventTags = new Google_Service_Dfareporting_EventTags_Resource( + $this, + $this->serviceName, + 'eventTags', + array( + 'methods' => array( + 'delete' => array( + 'path' => 'userprofiles/{profileId}/eventTags/{id}', + 'httpMethod' => 'DELETE', + 'parameters' => array( + 'profileId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'id' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ),'get' => array( + 'path' => 'userprofiles/{profileId}/eventTags/{id}', + 'httpMethod' => 'GET', + 'parameters' => array( + 'profileId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'id' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ),'insert' => array( + 'path' => 'userprofiles/{profileId}/eventTags', + 'httpMethod' => 'POST', + 'parameters' => array( + 'profileId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ),'list' => array( + 'path' => 'userprofiles/{profileId}/eventTags', + 'httpMethod' => 'GET', + 'parameters' => array( + 'profileId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'searchString' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'campaignId' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'sortField' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'enabled' => array( + 'location' => 'query', + 'type' => 'boolean', + ), + 'ids' => array( + 'location' => 'query', + 'type' => 'string', + 'repeated' => true, + ), + 'advertiserId' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'adId' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'sortOrder' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'eventTagTypes' => array( + 'location' => 'query', + 'type' => 'string', + 'repeated' => true, + ), + 'definitionsOnly' => array( + 'location' => 'query', + 'type' => 'boolean', + ), + ), + ),'patch' => array( + 'path' => 'userprofiles/{profileId}/eventTags', + 'httpMethod' => 'PATCH', + 'parameters' => array( + 'profileId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'id' => array( + 'location' => 'query', + 'type' => 'string', + 'required' => true, + ), + ), + ),'update' => array( + 'path' => 'userprofiles/{profileId}/eventTags', + 'httpMethod' => 'PUT', + 'parameters' => array( + 'profileId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ), + ) + ) + ); $this->files = new Google_Service_Dfareporting_Files_Resource( $this, $this->serviceName, @@ -137,6 +2208,1558 @@ class Google_Service_Dfareporting extends Google_Service ) ) ); + $this->floodlightActivities = new Google_Service_Dfareporting_FloodlightActivities_Resource( + $this, + $this->serviceName, + 'floodlightActivities', + array( + 'methods' => array( + 'delete' => array( + 'path' => 'userprofiles/{profileId}/floodlightActivities/{id}', + 'httpMethod' => 'DELETE', + 'parameters' => array( + 'profileId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'id' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ),'generatetag' => array( + 'path' => 'userprofiles/{profileId}/floodlightActivities/generatetag', + 'httpMethod' => 'POST', + 'parameters' => array( + 'profileId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'floodlightActivityId' => array( + 'location' => 'query', + 'type' => 'string', + ), + ), + ),'get' => array( + 'path' => 'userprofiles/{profileId}/floodlightActivities/{id}', + 'httpMethod' => 'GET', + 'parameters' => array( + 'profileId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'id' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ),'insert' => array( + 'path' => 'userprofiles/{profileId}/floodlightActivities', + 'httpMethod' => 'POST', + 'parameters' => array( + 'profileId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ),'list' => array( + 'path' => 'userprofiles/{profileId}/floodlightActivities', + 'httpMethod' => 'GET', + 'parameters' => array( + 'profileId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'floodlightActivityGroupIds' => array( + 'location' => 'query', + 'type' => 'string', + 'repeated' => true, + ), + 'sortOrder' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'searchString' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'sortField' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'floodlightConfigurationId' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'ids' => array( + 'location' => 'query', + 'type' => 'string', + 'repeated' => true, + ), + 'floodlightActivityGroupName' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'advertiserId' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'pageToken' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'maxResults' => array( + 'location' => 'query', + 'type' => 'integer', + ), + 'tagString' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'floodlightActivityGroupTagString' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'floodlightActivityGroupType' => array( + 'location' => 'query', + 'type' => 'string', + ), + ), + ),'patch' => array( + 'path' => 'userprofiles/{profileId}/floodlightActivities', + 'httpMethod' => 'PATCH', + 'parameters' => array( + 'profileId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'id' => array( + 'location' => 'query', + 'type' => 'string', + 'required' => true, + ), + ), + ),'update' => array( + 'path' => 'userprofiles/{profileId}/floodlightActivities', + 'httpMethod' => 'PUT', + 'parameters' => array( + 'profileId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ), + ) + ) + ); + $this->floodlightActivityGroups = new Google_Service_Dfareporting_FloodlightActivityGroups_Resource( + $this, + $this->serviceName, + 'floodlightActivityGroups', + array( + 'methods' => array( + 'delete' => array( + 'path' => 'userprofiles/{profileId}/floodlightActivityGroups/{id}', + 'httpMethod' => 'DELETE', + 'parameters' => array( + 'profileId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'id' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ),'get' => array( + 'path' => 'userprofiles/{profileId}/floodlightActivityGroups/{id}', + 'httpMethod' => 'GET', + 'parameters' => array( + 'profileId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'id' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ),'insert' => array( + 'path' => 'userprofiles/{profileId}/floodlightActivityGroups', + 'httpMethod' => 'POST', + 'parameters' => array( + 'profileId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ),'list' => array( + 'path' => 'userprofiles/{profileId}/floodlightActivityGroups', + 'httpMethod' => 'GET', + 'parameters' => array( + 'profileId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'searchString' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'sortField' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'floodlightConfigurationId' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'ids' => array( + 'location' => 'query', + 'type' => 'string', + 'repeated' => true, + ), + 'maxResults' => array( + 'location' => 'query', + 'type' => 'integer', + ), + 'advertiserId' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'pageToken' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'sortOrder' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'type' => array( + 'location' => 'query', + 'type' => 'string', + ), + ), + ),'patch' => array( + 'path' => 'userprofiles/{profileId}/floodlightActivityGroups', + 'httpMethod' => 'PATCH', + 'parameters' => array( + 'profileId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'id' => array( + 'location' => 'query', + 'type' => 'string', + 'required' => true, + ), + ), + ),'update' => array( + 'path' => 'userprofiles/{profileId}/floodlightActivityGroups', + 'httpMethod' => 'PUT', + 'parameters' => array( + 'profileId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ), + ) + ) + ); + $this->floodlightConfigurations = new Google_Service_Dfareporting_FloodlightConfigurations_Resource( + $this, + $this->serviceName, + 'floodlightConfigurations', + array( + 'methods' => array( + 'get' => array( + 'path' => 'userprofiles/{profileId}/floodlightConfigurations/{id}', + 'httpMethod' => 'GET', + 'parameters' => array( + 'profileId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'id' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ),'list' => array( + 'path' => 'userprofiles/{profileId}/floodlightConfigurations', + 'httpMethod' => 'GET', + 'parameters' => array( + 'profileId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'ids' => array( + 'location' => 'query', + 'type' => 'string', + 'repeated' => true, + ), + ), + ),'patch' => array( + 'path' => 'userprofiles/{profileId}/floodlightConfigurations', + 'httpMethod' => 'PATCH', + 'parameters' => array( + 'profileId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'id' => array( + 'location' => 'query', + 'type' => 'string', + 'required' => true, + ), + ), + ),'update' => array( + 'path' => 'userprofiles/{profileId}/floodlightConfigurations', + 'httpMethod' => 'PUT', + 'parameters' => array( + 'profileId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ), + ) + ) + ); + $this->inventoryItems = new Google_Service_Dfareporting_InventoryItems_Resource( + $this, + $this->serviceName, + 'inventoryItems', + array( + 'methods' => array( + 'get' => array( + 'path' => 'userprofiles/{profileId}/projects/{projectId}/inventoryItems/{id}', + 'httpMethod' => 'GET', + 'parameters' => array( + 'profileId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'projectId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'id' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ),'list' => array( + 'path' => 'userprofiles/{profileId}/projects/{projectId}/inventoryItems', + 'httpMethod' => 'GET', + 'parameters' => array( + 'profileId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'projectId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'orderId' => array( + 'location' => 'query', + 'type' => 'string', + 'repeated' => true, + ), + 'ids' => array( + 'location' => 'query', + 'type' => 'string', + 'repeated' => true, + ), + 'maxResults' => array( + 'location' => 'query', + 'type' => 'integer', + ), + 'pageToken' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'siteId' => array( + 'location' => 'query', + 'type' => 'string', + 'repeated' => true, + ), + 'inPlan' => array( + 'location' => 'query', + 'type' => 'boolean', + ), + 'sortField' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'sortOrder' => array( + 'location' => 'query', + 'type' => 'string', + ), + ), + ), + ) + ) + ); + $this->landingPages = new Google_Service_Dfareporting_LandingPages_Resource( + $this, + $this->serviceName, + 'landingPages', + array( + 'methods' => array( + 'delete' => array( + 'path' => 'userprofiles/{profileId}/campaigns/{campaignId}/landingPages/{id}', + 'httpMethod' => 'DELETE', + 'parameters' => array( + 'profileId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'campaignId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'id' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ),'get' => array( + 'path' => 'userprofiles/{profileId}/campaigns/{campaignId}/landingPages/{id}', + 'httpMethod' => 'GET', + 'parameters' => array( + 'profileId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'campaignId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'id' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ),'insert' => array( + 'path' => 'userprofiles/{profileId}/campaigns/{campaignId}/landingPages', + 'httpMethod' => 'POST', + 'parameters' => array( + 'profileId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'campaignId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ),'list' => array( + 'path' => 'userprofiles/{profileId}/campaigns/{campaignId}/landingPages', + 'httpMethod' => 'GET', + 'parameters' => array( + 'profileId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'campaignId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ),'patch' => array( + 'path' => 'userprofiles/{profileId}/campaigns/{campaignId}/landingPages', + 'httpMethod' => 'PATCH', + 'parameters' => array( + 'profileId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'campaignId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'id' => array( + 'location' => 'query', + 'type' => 'string', + 'required' => true, + ), + ), + ),'update' => array( + 'path' => 'userprofiles/{profileId}/campaigns/{campaignId}/landingPages', + 'httpMethod' => 'PUT', + 'parameters' => array( + 'profileId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'campaignId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ), + ) + ) + ); + $this->metros = new Google_Service_Dfareporting_Metros_Resource( + $this, + $this->serviceName, + 'metros', + array( + 'methods' => array( + 'list' => array( + 'path' => 'userprofiles/{profileId}/metros', + 'httpMethod' => 'GET', + 'parameters' => array( + 'profileId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ), + ) + ) + ); + $this->mobileCarriers = new Google_Service_Dfareporting_MobileCarriers_Resource( + $this, + $this->serviceName, + 'mobileCarriers', + array( + 'methods' => array( + 'get' => array( + 'path' => 'userprofiles/{profileId}/mobileCarriers/{id}', + 'httpMethod' => 'GET', + 'parameters' => array( + 'profileId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'id' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ),'list' => array( + 'path' => 'userprofiles/{profileId}/mobileCarriers', + 'httpMethod' => 'GET', + 'parameters' => array( + 'profileId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ), + ) + ) + ); + $this->operatingSystemVersions = new Google_Service_Dfareporting_OperatingSystemVersions_Resource( + $this, + $this->serviceName, + 'operatingSystemVersions', + array( + 'methods' => array( + 'get' => array( + 'path' => 'userprofiles/{profileId}/operatingSystemVersions/{id}', + 'httpMethod' => 'GET', + 'parameters' => array( + 'profileId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'id' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ),'list' => array( + 'path' => 'userprofiles/{profileId}/operatingSystemVersions', + 'httpMethod' => 'GET', + 'parameters' => array( + 'profileId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ), + ) + ) + ); + $this->operatingSystems = new Google_Service_Dfareporting_OperatingSystems_Resource( + $this, + $this->serviceName, + 'operatingSystems', + array( + 'methods' => array( + 'get' => array( + 'path' => 'userprofiles/{profileId}/operatingSystems/{dartId}', + 'httpMethod' => 'GET', + 'parameters' => array( + 'profileId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'dartId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ),'list' => array( + 'path' => 'userprofiles/{profileId}/operatingSystems', + 'httpMethod' => 'GET', + 'parameters' => array( + 'profileId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ), + ) + ) + ); + $this->orderDocuments = new Google_Service_Dfareporting_OrderDocuments_Resource( + $this, + $this->serviceName, + 'orderDocuments', + array( + 'methods' => array( + 'get' => array( + 'path' => 'userprofiles/{profileId}/projects/{projectId}/orderDocuments/{id}', + 'httpMethod' => 'GET', + 'parameters' => array( + 'profileId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'projectId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'id' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ),'list' => array( + 'path' => 'userprofiles/{profileId}/projects/{projectId}/orderDocuments', + 'httpMethod' => 'GET', + 'parameters' => array( + 'profileId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'projectId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'orderId' => array( + 'location' => 'query', + 'type' => 'string', + 'repeated' => true, + ), + 'searchString' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'ids' => array( + 'location' => 'query', + 'type' => 'string', + 'repeated' => true, + ), + 'maxResults' => array( + 'location' => 'query', + 'type' => 'integer', + ), + 'pageToken' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'siteId' => array( + 'location' => 'query', + 'type' => 'string', + 'repeated' => true, + ), + 'sortOrder' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'sortField' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'approved' => array( + 'location' => 'query', + 'type' => 'boolean', + ), + ), + ), + ) + ) + ); + $this->orders = new Google_Service_Dfareporting_Orders_Resource( + $this, + $this->serviceName, + 'orders', + array( + 'methods' => array( + 'get' => array( + 'path' => 'userprofiles/{profileId}/projects/{projectId}/orders/{id}', + 'httpMethod' => 'GET', + 'parameters' => array( + 'profileId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'projectId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'id' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ),'list' => array( + 'path' => 'userprofiles/{profileId}/projects/{projectId}/orders', + 'httpMethod' => 'GET', + 'parameters' => array( + 'profileId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'projectId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'searchString' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'ids' => array( + 'location' => 'query', + 'type' => 'string', + 'repeated' => true, + ), + 'maxResults' => array( + 'location' => 'query', + 'type' => 'integer', + ), + 'pageToken' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'siteId' => array( + 'location' => 'query', + 'type' => 'string', + 'repeated' => true, + ), + 'sortOrder' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'sortField' => array( + 'location' => 'query', + 'type' => 'string', + ), + ), + ), + ) + ) + ); + $this->placementGroups = new Google_Service_Dfareporting_PlacementGroups_Resource( + $this, + $this->serviceName, + 'placementGroups', + array( + 'methods' => array( + 'get' => array( + 'path' => 'userprofiles/{profileId}/placementGroups/{id}', + 'httpMethod' => 'GET', + 'parameters' => array( + 'profileId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'id' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ),'insert' => array( + 'path' => 'userprofiles/{profileId}/placementGroups', + 'httpMethod' => 'POST', + 'parameters' => array( + 'profileId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ),'list' => array( + 'path' => 'userprofiles/{profileId}/placementGroups', + 'httpMethod' => 'GET', + 'parameters' => array( + 'profileId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'placementStrategyIds' => array( + 'location' => 'query', + 'type' => 'string', + 'repeated' => true, + ), + 'archived' => array( + 'location' => 'query', + 'type' => 'boolean', + ), + 'searchString' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'contentCategoryIds' => array( + 'location' => 'query', + 'type' => 'string', + 'repeated' => true, + ), + 'directorySiteIds' => array( + 'location' => 'query', + 'type' => 'string', + 'repeated' => true, + ), + 'sortField' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'advertiserIds' => array( + 'location' => 'query', + 'type' => 'string', + 'repeated' => true, + ), + 'ids' => array( + 'location' => 'query', + 'type' => 'string', + 'repeated' => true, + ), + 'maxResults' => array( + 'location' => 'query', + 'type' => 'integer', + ), + 'pageToken' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'sortOrder' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'placementGroupType' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'pricingTypes' => array( + 'location' => 'query', + 'type' => 'string', + 'repeated' => true, + ), + 'siteIds' => array( + 'location' => 'query', + 'type' => 'string', + 'repeated' => true, + ), + 'campaignIds' => array( + 'location' => 'query', + 'type' => 'string', + 'repeated' => true, + ), + ), + ),'patch' => array( + 'path' => 'userprofiles/{profileId}/placementGroups', + 'httpMethod' => 'PATCH', + 'parameters' => array( + 'profileId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'id' => array( + 'location' => 'query', + 'type' => 'string', + 'required' => true, + ), + ), + ),'update' => array( + 'path' => 'userprofiles/{profileId}/placementGroups', + 'httpMethod' => 'PUT', + 'parameters' => array( + 'profileId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ), + ) + ) + ); + $this->placementStrategies = new Google_Service_Dfareporting_PlacementStrategies_Resource( + $this, + $this->serviceName, + 'placementStrategies', + array( + 'methods' => array( + 'delete' => array( + 'path' => 'userprofiles/{profileId}/placementStrategies/{id}', + 'httpMethod' => 'DELETE', + 'parameters' => array( + 'profileId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'id' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ),'get' => array( + 'path' => 'userprofiles/{profileId}/placementStrategies/{id}', + 'httpMethod' => 'GET', + 'parameters' => array( + 'profileId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'id' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ),'insert' => array( + 'path' => 'userprofiles/{profileId}/placementStrategies', + 'httpMethod' => 'POST', + 'parameters' => array( + 'profileId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ),'list' => array( + 'path' => 'userprofiles/{profileId}/placementStrategies', + 'httpMethod' => 'GET', + 'parameters' => array( + 'profileId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'searchString' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'sortField' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'ids' => array( + 'location' => 'query', + 'type' => 'string', + 'repeated' => true, + ), + 'maxResults' => array( + 'location' => 'query', + 'type' => 'integer', + ), + 'pageToken' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'sortOrder' => array( + 'location' => 'query', + 'type' => 'string', + ), + ), + ),'patch' => array( + 'path' => 'userprofiles/{profileId}/placementStrategies', + 'httpMethod' => 'PATCH', + 'parameters' => array( + 'profileId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'id' => array( + 'location' => 'query', + 'type' => 'string', + 'required' => true, + ), + ), + ),'update' => array( + 'path' => 'userprofiles/{profileId}/placementStrategies', + 'httpMethod' => 'PUT', + 'parameters' => array( + 'profileId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ), + ) + ) + ); + $this->placements = new Google_Service_Dfareporting_Placements_Resource( + $this, + $this->serviceName, + 'placements', + array( + 'methods' => array( + 'generatetags' => array( + 'path' => 'userprofiles/{profileId}/placements/generatetags', + 'httpMethod' => 'POST', + 'parameters' => array( + 'profileId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'tagFormats' => array( + 'location' => 'query', + 'type' => 'string', + 'repeated' => true, + ), + 'placementIds' => array( + 'location' => 'query', + 'type' => 'string', + 'repeated' => true, + ), + 'campaignId' => array( + 'location' => 'query', + 'type' => 'string', + ), + ), + ),'get' => array( + 'path' => 'userprofiles/{profileId}/placements/{id}', + 'httpMethod' => 'GET', + 'parameters' => array( + 'profileId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'id' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ),'insert' => array( + 'path' => 'userprofiles/{profileId}/placements', + 'httpMethod' => 'POST', + 'parameters' => array( + 'profileId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ),'list' => array( + 'path' => 'userprofiles/{profileId}/placements', + 'httpMethod' => 'GET', + 'parameters' => array( + 'profileId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'placementStrategyIds' => array( + 'location' => 'query', + 'type' => 'string', + 'repeated' => true, + ), + 'sortOrder' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'archived' => array( + 'location' => 'query', + 'type' => 'boolean', + ), + 'searchString' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'contentCategoryIds' => array( + 'location' => 'query', + 'type' => 'string', + 'repeated' => true, + ), + 'directorySiteIds' => array( + 'location' => 'query', + 'type' => 'string', + 'repeated' => true, + ), + 'sortField' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'advertiserIds' => array( + 'location' => 'query', + 'type' => 'string', + 'repeated' => true, + ), + 'paymentSource' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'ids' => array( + 'location' => 'query', + 'type' => 'string', + 'repeated' => true, + ), + 'maxResults' => array( + 'location' => 'query', + 'type' => 'integer', + ), + 'sizeIds' => array( + 'location' => 'query', + 'type' => 'string', + 'repeated' => true, + ), + 'pageToken' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'compatibilities' => array( + 'location' => 'query', + 'type' => 'string', + 'repeated' => true, + ), + 'groupIds' => array( + 'location' => 'query', + 'type' => 'string', + 'repeated' => true, + ), + 'pricingTypes' => array( + 'location' => 'query', + 'type' => 'string', + 'repeated' => true, + ), + 'siteIds' => array( + 'location' => 'query', + 'type' => 'string', + 'repeated' => true, + ), + 'campaignIds' => array( + 'location' => 'query', + 'type' => 'string', + 'repeated' => true, + ), + ), + ),'patch' => array( + 'path' => 'userprofiles/{profileId}/placements', + 'httpMethod' => 'PATCH', + 'parameters' => array( + 'profileId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'id' => array( + 'location' => 'query', + 'type' => 'string', + 'required' => true, + ), + ), + ),'update' => array( + 'path' => 'userprofiles/{profileId}/placements', + 'httpMethod' => 'PUT', + 'parameters' => array( + 'profileId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ), + ) + ) + ); + $this->platformTypes = new Google_Service_Dfareporting_PlatformTypes_Resource( + $this, + $this->serviceName, + 'platformTypes', + array( + 'methods' => array( + 'get' => array( + 'path' => 'userprofiles/{profileId}/platformTypes/{id}', + 'httpMethod' => 'GET', + 'parameters' => array( + 'profileId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'id' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ),'list' => array( + 'path' => 'userprofiles/{profileId}/platformTypes', + 'httpMethod' => 'GET', + 'parameters' => array( + 'profileId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ), + ) + ) + ); + $this->postalCodes = new Google_Service_Dfareporting_PostalCodes_Resource( + $this, + $this->serviceName, + 'postalCodes', + array( + 'methods' => array( + 'get' => array( + 'path' => 'userprofiles/{profileId}/postalCodes/{code}', + 'httpMethod' => 'GET', + 'parameters' => array( + 'profileId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'code' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ),'list' => array( + 'path' => 'userprofiles/{profileId}/postalCodes', + 'httpMethod' => 'GET', + 'parameters' => array( + 'profileId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ), + ) + ) + ); + $this->projects = new Google_Service_Dfareporting_Projects_Resource( + $this, + $this->serviceName, + 'projects', + array( + 'methods' => array( + 'get' => array( + 'path' => 'userprofiles/{profileId}/projects/{id}', + 'httpMethod' => 'GET', + 'parameters' => array( + 'profileId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'id' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ),'list' => array( + 'path' => 'userprofiles/{profileId}/projects', + 'httpMethod' => 'GET', + 'parameters' => array( + 'profileId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'searchString' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'sortField' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'advertiserIds' => array( + 'location' => 'query', + 'type' => 'string', + 'repeated' => true, + ), + 'ids' => array( + 'location' => 'query', + 'type' => 'string', + 'repeated' => true, + ), + 'maxResults' => array( + 'location' => 'query', + 'type' => 'integer', + ), + 'pageToken' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'sortOrder' => array( + 'location' => 'query', + 'type' => 'string', + ), + ), + ), + ) + ) + ); + $this->regions = new Google_Service_Dfareporting_Regions_Resource( + $this, + $this->serviceName, + 'regions', + array( + 'methods' => array( + 'list' => array( + 'path' => 'userprofiles/{profileId}/regions', + 'httpMethod' => 'GET', + 'parameters' => array( + 'profileId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ), + ) + ) + ); + $this->remarketingListShares = new Google_Service_Dfareporting_RemarketingListShares_Resource( + $this, + $this->serviceName, + 'remarketingListShares', + array( + 'methods' => array( + 'get' => array( + 'path' => 'userprofiles/{profileId}/remarketingListShares/{remarketingListId}', + 'httpMethod' => 'GET', + 'parameters' => array( + 'profileId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'remarketingListId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ),'patch' => array( + 'path' => 'userprofiles/{profileId}/remarketingListShares', + 'httpMethod' => 'PATCH', + 'parameters' => array( + 'profileId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'remarketingListId' => array( + 'location' => 'query', + 'type' => 'string', + 'required' => true, + ), + ), + ),'update' => array( + 'path' => 'userprofiles/{profileId}/remarketingListShares', + 'httpMethod' => 'PUT', + 'parameters' => array( + 'profileId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ), + ) + ) + ); + $this->remarketingLists = new Google_Service_Dfareporting_RemarketingLists_Resource( + $this, + $this->serviceName, + 'remarketingLists', + array( + 'methods' => array( + 'get' => array( + 'path' => 'userprofiles/{profileId}/remarketingLists/{id}', + 'httpMethod' => 'GET', + 'parameters' => array( + 'profileId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'id' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ),'insert' => array( + 'path' => 'userprofiles/{profileId}/remarketingLists', + 'httpMethod' => 'POST', + 'parameters' => array( + 'profileId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ),'list' => array( + 'path' => 'userprofiles/{profileId}/remarketingLists', + 'httpMethod' => 'GET', + 'parameters' => array( + 'profileId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'advertiserId' => array( + 'location' => 'query', + 'type' => 'string', + 'required' => true, + ), + 'name' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'sortField' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'maxResults' => array( + 'location' => 'query', + 'type' => 'integer', + ), + 'pageToken' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'sortOrder' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'active' => array( + 'location' => 'query', + 'type' => 'boolean', + ), + 'floodlightActivityId' => array( + 'location' => 'query', + 'type' => 'string', + ), + ), + ),'patch' => array( + 'path' => 'userprofiles/{profileId}/remarketingLists', + 'httpMethod' => 'PATCH', + 'parameters' => array( + 'profileId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'id' => array( + 'location' => 'query', + 'type' => 'string', + 'required' => true, + ), + ), + ),'update' => array( + 'path' => 'userprofiles/{profileId}/remarketingLists', + 'httpMethod' => 'PUT', + 'parameters' => array( + 'profileId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ), + ) + ) + ); $this->reports = new Google_Service_Dfareporting_Reports_Resource( $this, $this->serviceName, @@ -347,6 +3970,360 @@ class Google_Service_Dfareporting extends Google_Service ) ) ); + $this->sites = new Google_Service_Dfareporting_Sites_Resource( + $this, + $this->serviceName, + 'sites', + array( + 'methods' => array( + 'get' => array( + 'path' => 'userprofiles/{profileId}/sites/{id}', + 'httpMethod' => 'GET', + 'parameters' => array( + 'profileId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'id' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ),'insert' => array( + 'path' => 'userprofiles/{profileId}/sites', + 'httpMethod' => 'POST', + 'parameters' => array( + 'profileId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ),'list' => array( + 'path' => 'userprofiles/{profileId}/sites', + 'httpMethod' => 'GET', + 'parameters' => array( + 'profileId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'acceptsInterstitialPlacements' => array( + 'location' => 'query', + 'type' => 'boolean', + ), + 'sortOrder' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'searchString' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'subaccountId' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'directorySiteIds' => array( + 'location' => 'query', + 'type' => 'string', + 'repeated' => true, + ), + 'acceptsInStreamVideoPlacements' => array( + 'location' => 'query', + 'type' => 'boolean', + ), + 'ids' => array( + 'location' => 'query', + 'type' => 'string', + 'repeated' => true, + ), + 'maxResults' => array( + 'location' => 'query', + 'type' => 'integer', + ), + 'pageToken' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'acceptsPublisherPaidPlacements' => array( + 'location' => 'query', + 'type' => 'boolean', + ), + 'sortField' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'adWordsSite' => array( + 'location' => 'query', + 'type' => 'boolean', + ), + 'unmappedSite' => array( + 'location' => 'query', + 'type' => 'boolean', + ), + 'approved' => array( + 'location' => 'query', + 'type' => 'boolean', + ), + 'campaignIds' => array( + 'location' => 'query', + 'type' => 'string', + 'repeated' => true, + ), + ), + ),'patch' => array( + 'path' => 'userprofiles/{profileId}/sites', + 'httpMethod' => 'PATCH', + 'parameters' => array( + 'profileId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'id' => array( + 'location' => 'query', + 'type' => 'string', + 'required' => true, + ), + ), + ),'update' => array( + 'path' => 'userprofiles/{profileId}/sites', + 'httpMethod' => 'PUT', + 'parameters' => array( + 'profileId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ), + ) + ) + ); + $this->sizes = new Google_Service_Dfareporting_Sizes_Resource( + $this, + $this->serviceName, + 'sizes', + array( + 'methods' => array( + 'get' => array( + 'path' => 'userprofiles/{profileId}/sizes/{id}', + 'httpMethod' => 'GET', + 'parameters' => array( + 'profileId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'id' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ),'insert' => array( + 'path' => 'userprofiles/{profileId}/sizes', + 'httpMethod' => 'POST', + 'parameters' => array( + 'profileId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ),'list' => array( + 'path' => 'userprofiles/{profileId}/sizes', + 'httpMethod' => 'GET', + 'parameters' => array( + 'profileId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'iabStandard' => array( + 'location' => 'query', + 'type' => 'boolean', + ), + 'width' => array( + 'location' => 'query', + 'type' => 'integer', + ), + 'ids' => array( + 'location' => 'query', + 'type' => 'string', + 'repeated' => true, + ), + 'height' => array( + 'location' => 'query', + 'type' => 'integer', + ), + ), + ), + ) + ) + ); + $this->subaccounts = new Google_Service_Dfareporting_Subaccounts_Resource( + $this, + $this->serviceName, + 'subaccounts', + array( + 'methods' => array( + 'get' => array( + 'path' => 'userprofiles/{profileId}/subaccounts/{id}', + 'httpMethod' => 'GET', + 'parameters' => array( + 'profileId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'id' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ),'insert' => array( + 'path' => 'userprofiles/{profileId}/subaccounts', + 'httpMethod' => 'POST', + 'parameters' => array( + 'profileId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ),'list' => array( + 'path' => 'userprofiles/{profileId}/subaccounts', + 'httpMethod' => 'GET', + 'parameters' => array( + 'profileId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'searchString' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'sortField' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'ids' => array( + 'location' => 'query', + 'type' => 'string', + 'repeated' => true, + ), + 'maxResults' => array( + 'location' => 'query', + 'type' => 'integer', + ), + 'pageToken' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'sortOrder' => array( + 'location' => 'query', + 'type' => 'string', + ), + ), + ),'patch' => array( + 'path' => 'userprofiles/{profileId}/subaccounts', + 'httpMethod' => 'PATCH', + 'parameters' => array( + 'profileId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'id' => array( + 'location' => 'query', + 'type' => 'string', + 'required' => true, + ), + ), + ),'update' => array( + 'path' => 'userprofiles/{profileId}/subaccounts', + 'httpMethod' => 'PUT', + 'parameters' => array( + 'profileId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ), + ) + ) + ); + $this->targetableRemarketingLists = new Google_Service_Dfareporting_TargetableRemarketingLists_Resource( + $this, + $this->serviceName, + 'targetableRemarketingLists', + array( + 'methods' => array( + 'get' => array( + 'path' => 'userprofiles/{profileId}/targetableRemarketingLists/{id}', + 'httpMethod' => 'GET', + 'parameters' => array( + 'profileId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'id' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ),'list' => array( + 'path' => 'userprofiles/{profileId}/targetableRemarketingLists', + 'httpMethod' => 'GET', + 'parameters' => array( + 'profileId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'advertiserId' => array( + 'location' => 'query', + 'type' => 'string', + 'required' => true, + ), + 'name' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'sortField' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'maxResults' => array( + 'location' => 'query', + 'type' => 'integer', + ), + 'pageToken' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'sortOrder' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'active' => array( + 'location' => 'query', + 'type' => 'boolean', + ), + ), + ), + ) + ) + ); $this->userProfiles = new Google_Service_Dfareporting_UserProfiles_Resource( $this, $this->serviceName, @@ -371,10 +4348,1867 @@ class Google_Service_Dfareporting extends Google_Service ) ) ); + $this->userRolePermissionGroups = new Google_Service_Dfareporting_UserRolePermissionGroups_Resource( + $this, + $this->serviceName, + 'userRolePermissionGroups', + array( + 'methods' => array( + 'get' => array( + 'path' => 'userprofiles/{profileId}/userRolePermissionGroups/{id}', + 'httpMethod' => 'GET', + 'parameters' => array( + 'profileId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'id' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ),'list' => array( + 'path' => 'userprofiles/{profileId}/userRolePermissionGroups', + 'httpMethod' => 'GET', + 'parameters' => array( + 'profileId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ), + ) + ) + ); + $this->userRolePermissions = new Google_Service_Dfareporting_UserRolePermissions_Resource( + $this, + $this->serviceName, + 'userRolePermissions', + array( + 'methods' => array( + 'get' => array( + 'path' => 'userprofiles/{profileId}/userRolePermissions/{id}', + 'httpMethod' => 'GET', + 'parameters' => array( + 'profileId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'id' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ),'list' => array( + 'path' => 'userprofiles/{profileId}/userRolePermissions', + 'httpMethod' => 'GET', + 'parameters' => array( + 'profileId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'ids' => array( + 'location' => 'query', + 'type' => 'string', + 'repeated' => true, + ), + ), + ), + ) + ) + ); + $this->userRoles = new Google_Service_Dfareporting_UserRoles_Resource( + $this, + $this->serviceName, + 'userRoles', + array( + 'methods' => array( + 'delete' => array( + 'path' => 'userprofiles/{profileId}/userRoles/{id}', + 'httpMethod' => 'DELETE', + 'parameters' => array( + 'profileId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'id' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ),'get' => array( + 'path' => 'userprofiles/{profileId}/userRoles/{id}', + 'httpMethod' => 'GET', + 'parameters' => array( + 'profileId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'id' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ),'insert' => array( + 'path' => 'userprofiles/{profileId}/userRoles', + 'httpMethod' => 'POST', + 'parameters' => array( + 'profileId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ),'list' => array( + 'path' => 'userprofiles/{profileId}/userRoles', + 'httpMethod' => 'GET', + 'parameters' => array( + 'profileId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'searchString' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'subaccountId' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'sortField' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'ids' => array( + 'location' => 'query', + 'type' => 'string', + 'repeated' => true, + ), + 'maxResults' => array( + 'location' => 'query', + 'type' => 'integer', + ), + 'pageToken' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'sortOrder' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'accountUserRoleOnly' => array( + 'location' => 'query', + 'type' => 'boolean', + ), + ), + ),'patch' => array( + 'path' => 'userprofiles/{profileId}/userRoles', + 'httpMethod' => 'PATCH', + 'parameters' => array( + 'profileId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'id' => array( + 'location' => 'query', + 'type' => 'string', + 'required' => true, + ), + ), + ),'update' => array( + 'path' => 'userprofiles/{profileId}/userRoles', + 'httpMethod' => 'PUT', + 'parameters' => array( + 'profileId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ), + ) + ) + ); } } +/** + * The "accountActiveAdSummaries" collection of methods. + * Typical usage is: + * + * $dfareportingService = new Google_Service_Dfareporting(...); + * $accountActiveAdSummaries = $dfareportingService->accountActiveAdSummaries; + * + */ +class Google_Service_Dfareporting_AccountActiveAdSummaries_Resource extends Google_Service_Resource +{ + + /** + * Gets the account's active ad summary by account ID. + * (accountActiveAdSummaries.get) + * + * @param string $profileId User profile ID associated with this request. + * @param string $summaryAccountId Account ID. + * @param array $optParams Optional parameters. + * @return Google_Service_Dfareporting_AccountActiveAdSummary + */ + public function get($profileId, $summaryAccountId, $optParams = array()) + { + $params = array('profileId' => $profileId, 'summaryAccountId' => $summaryAccountId); + $params = array_merge($params, $optParams); + return $this->call('get', array($params), "Google_Service_Dfareporting_AccountActiveAdSummary"); + } +} + +/** + * The "accountPermissionGroups" collection of methods. + * Typical usage is: + * + * $dfareportingService = new Google_Service_Dfareporting(...); + * $accountPermissionGroups = $dfareportingService->accountPermissionGroups; + * + */ +class Google_Service_Dfareporting_AccountPermissionGroups_Resource extends Google_Service_Resource +{ + + /** + * Gets one account permission group by ID. (accountPermissionGroups.get) + * + * @param string $profileId User profile ID associated with this request. + * @param string $id Account permission group ID. + * @param array $optParams Optional parameters. + * @return Google_Service_Dfareporting_AccountPermissionGroup + */ + public function get($profileId, $id, $optParams = array()) + { + $params = array('profileId' => $profileId, 'id' => $id); + $params = array_merge($params, $optParams); + return $this->call('get', array($params), "Google_Service_Dfareporting_AccountPermissionGroup"); + } + + /** + * Retrieves the list of account permission groups. + * (accountPermissionGroups.listAccountPermissionGroups) + * + * @param string $profileId User profile ID associated with this request. + * @param array $optParams Optional parameters. + * @return Google_Service_Dfareporting_AccountPermissionGroupsListResponse + */ + public function listAccountPermissionGroups($profileId, $optParams = array()) + { + $params = array('profileId' => $profileId); + $params = array_merge($params, $optParams); + return $this->call('list', array($params), "Google_Service_Dfareporting_AccountPermissionGroupsListResponse"); + } +} + +/** + * The "accountPermissions" collection of methods. + * Typical usage is: + * + * $dfareportingService = new Google_Service_Dfareporting(...); + * $accountPermissions = $dfareportingService->accountPermissions; + * + */ +class Google_Service_Dfareporting_AccountPermissions_Resource extends Google_Service_Resource +{ + + /** + * Gets one account permission by ID. (accountPermissions.get) + * + * @param string $profileId User profile ID associated with this request. + * @param string $id Account permission ID. + * @param array $optParams Optional parameters. + * @return Google_Service_Dfareporting_AccountPermission + */ + public function get($profileId, $id, $optParams = array()) + { + $params = array('profileId' => $profileId, 'id' => $id); + $params = array_merge($params, $optParams); + return $this->call('get', array($params), "Google_Service_Dfareporting_AccountPermission"); + } + + /** + * Retrieves the list of account permissions. + * (accountPermissions.listAccountPermissions) + * + * @param string $profileId User profile ID associated with this request. + * @param array $optParams Optional parameters. + * @return Google_Service_Dfareporting_AccountPermissionsListResponse + */ + public function listAccountPermissions($profileId, $optParams = array()) + { + $params = array('profileId' => $profileId); + $params = array_merge($params, $optParams); + return $this->call('list', array($params), "Google_Service_Dfareporting_AccountPermissionsListResponse"); + } +} + +/** + * The "accountUserProfiles" collection of methods. + * Typical usage is: + * + * $dfareportingService = new Google_Service_Dfareporting(...); + * $accountUserProfiles = $dfareportingService->accountUserProfiles; + * + */ +class Google_Service_Dfareporting_AccountUserProfiles_Resource extends Google_Service_Resource +{ + + /** + * Gets one account user profile by ID. (accountUserProfiles.get) + * + * @param string $profileId User profile ID associated with this request. + * @param string $id User profile ID. + * @param array $optParams Optional parameters. + * @return Google_Service_Dfareporting_AccountUserProfile + */ + public function get($profileId, $id, $optParams = array()) + { + $params = array('profileId' => $profileId, 'id' => $id); + $params = array_merge($params, $optParams); + return $this->call('get', array($params), "Google_Service_Dfareporting_AccountUserProfile"); + } + + /** + * Inserts a new account user profile. (accountUserProfiles.insert) + * + * @param string $profileId User profile ID associated with this request. + * @param Google_AccountUserProfile $postBody + * @param array $optParams Optional parameters. + * @return Google_Service_Dfareporting_AccountUserProfile + */ + public function insert($profileId, Google_Service_Dfareporting_AccountUserProfile $postBody, $optParams = array()) + { + $params = array('profileId' => $profileId, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('insert', array($params), "Google_Service_Dfareporting_AccountUserProfile"); + } + + /** + * Retrieves a list of account user profiles, possibly filtered. + * (accountUserProfiles.listAccountUserProfiles) + * + * @param string $profileId User profile ID associated with this request. + * @param array $optParams Optional parameters. + * + * @opt_param string searchString Allows searching for objects by name, ID or + * email. Wildcards (*) are allowed. For example, "user profile*2015" will + * return objects with names like "user profile June 2015", "user profile April + * 2015", or simply "user profile 2015". Most of the searches also add wildcards + * implicitly at the start and the end of the search string. For example, a + * search string of "user profile" will match objects with name "my user + * profile", "user profile 2015", or simply "user profile". + * @opt_param string subaccountId Select only user profiles with the specified + * subaccount ID. + * @opt_param string sortField Field by which to sort the list. + * @opt_param string ids Select only user profiles with these IDs. + * @opt_param int maxResults Maximum number of results to return. + * @opt_param string pageToken Value of the nextPageToken from the previous + * result page. + * @opt_param string userRoleId Select only user profiles with the specified + * user role ID. + * @opt_param string sortOrder Order of sorted results, default is ASCENDING. + * @opt_param bool active Select only active user profiles. + * @return Google_Service_Dfareporting_AccountUserProfilesListResponse + */ + public function listAccountUserProfiles($profileId, $optParams = array()) + { + $params = array('profileId' => $profileId); + $params = array_merge($params, $optParams); + return $this->call('list', array($params), "Google_Service_Dfareporting_AccountUserProfilesListResponse"); + } + + /** + * Updates an existing account user profile. This method supports patch + * semantics. (accountUserProfiles.patch) + * + * @param string $profileId User profile ID associated with this request. + * @param string $id User profile ID. + * @param Google_AccountUserProfile $postBody + * @param array $optParams Optional parameters. + * @return Google_Service_Dfareporting_AccountUserProfile + */ + public function patch($profileId, $id, Google_Service_Dfareporting_AccountUserProfile $postBody, $optParams = array()) + { + $params = array('profileId' => $profileId, 'id' => $id, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('patch', array($params), "Google_Service_Dfareporting_AccountUserProfile"); + } + + /** + * Updates an existing account user profile. (accountUserProfiles.update) + * + * @param string $profileId User profile ID associated with this request. + * @param Google_AccountUserProfile $postBody + * @param array $optParams Optional parameters. + * @return Google_Service_Dfareporting_AccountUserProfile + */ + public function update($profileId, Google_Service_Dfareporting_AccountUserProfile $postBody, $optParams = array()) + { + $params = array('profileId' => $profileId, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('update', array($params), "Google_Service_Dfareporting_AccountUserProfile"); + } +} + +/** + * The "accounts" collection of methods. + * Typical usage is: + * + * $dfareportingService = new Google_Service_Dfareporting(...); + * $accounts = $dfareportingService->accounts; + * + */ +class Google_Service_Dfareporting_Accounts_Resource extends Google_Service_Resource +{ + + /** + * Gets one account by ID. (accounts.get) + * + * @param string $profileId User profile ID associated with this request. + * @param string $id Account ID. + * @param array $optParams Optional parameters. + * @return Google_Service_Dfareporting_Account + */ + public function get($profileId, $id, $optParams = array()) + { + $params = array('profileId' => $profileId, 'id' => $id); + $params = array_merge($params, $optParams); + return $this->call('get', array($params), "Google_Service_Dfareporting_Account"); + } + + /** + * Retrieves the list of accounts, possibly filtered. (accounts.listAccounts) + * + * @param string $profileId User profile ID associated with this request. + * @param array $optParams Optional parameters. + * + * @opt_param string searchString Allows searching for objects by name or ID. + * Wildcards (*) are allowed. For example, "account*2015" will return objects + * with names like "account June 2015", "account April 2015", or simply "account + * 2015". Most of the searches also add wildcards implicitly at the start and + * the end of the search string. For example, a search string of "account" will + * match objects with name "my account", "account 2015", or simply "account". + * @opt_param string sortField Field by which to sort the list. + * @opt_param string ids Select only accounts with these IDs. + * @opt_param int maxResults Maximum number of results to return. + * @opt_param string pageToken Value of the nextPageToken from the previous + * result page. + * @opt_param string sortOrder Order of sorted results, default is ASCENDING. + * @opt_param bool active Select only active accounts. Don't set this field to + * select both active and non-active accounts. + * @return Google_Service_Dfareporting_AccountsListResponse + */ + public function listAccounts($profileId, $optParams = array()) + { + $params = array('profileId' => $profileId); + $params = array_merge($params, $optParams); + return $this->call('list', array($params), "Google_Service_Dfareporting_AccountsListResponse"); + } + + /** + * Updates an existing account. This method supports patch semantics. + * (accounts.patch) + * + * @param string $profileId User profile ID associated with this request. + * @param string $id Account ID. + * @param Google_Account $postBody + * @param array $optParams Optional parameters. + * @return Google_Service_Dfareporting_Account + */ + public function patch($profileId, $id, Google_Service_Dfareporting_Account $postBody, $optParams = array()) + { + $params = array('profileId' => $profileId, 'id' => $id, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('patch', array($params), "Google_Service_Dfareporting_Account"); + } + + /** + * Updates an existing account. (accounts.update) + * + * @param string $profileId User profile ID associated with this request. + * @param Google_Account $postBody + * @param array $optParams Optional parameters. + * @return Google_Service_Dfareporting_Account + */ + public function update($profileId, Google_Service_Dfareporting_Account $postBody, $optParams = array()) + { + $params = array('profileId' => $profileId, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('update', array($params), "Google_Service_Dfareporting_Account"); + } +} + +/** + * The "ads" collection of methods. + * Typical usage is: + * + * $dfareportingService = new Google_Service_Dfareporting(...); + * $ads = $dfareportingService->ads; + * + */ +class Google_Service_Dfareporting_Ads_Resource extends Google_Service_Resource +{ + + /** + * Gets one ad by ID. (ads.get) + * + * @param string $profileId User profile ID associated with this request. + * @param string $id Ad ID. + * @param array $optParams Optional parameters. + * @return Google_Service_Dfareporting_Ad + */ + public function get($profileId, $id, $optParams = array()) + { + $params = array('profileId' => $profileId, 'id' => $id); + $params = array_merge($params, $optParams); + return $this->call('get', array($params), "Google_Service_Dfareporting_Ad"); + } + + /** + * Inserts a new ad. (ads.insert) + * + * @param string $profileId User profile ID associated with this request. + * @param Google_Ad $postBody + * @param array $optParams Optional parameters. + * @return Google_Service_Dfareporting_Ad + */ + public function insert($profileId, Google_Service_Dfareporting_Ad $postBody, $optParams = array()) + { + $params = array('profileId' => $profileId, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('insert', array($params), "Google_Service_Dfareporting_Ad"); + } + + /** + * Retrieves a list of ads, possibly filtered. (ads.listAds) + * + * @param string $profileId User profile ID associated with this request. + * @param array $optParams Optional parameters. + * + * @opt_param string landingPageIds Select only ads with these landing page IDs. + * @opt_param string overriddenEventTagId Select only ads with this event tag + * override ID. + * @opt_param string campaignIds Select only ads with these campaign IDs. + * @opt_param bool archived Select only archived ads. + * @opt_param string creativeOptimizationConfigurationIds Select only ads with + * these creative optimization configuration IDs. + * @opt_param bool sslCompliant Select only ads that are SSL-compliant. + * @opt_param string sizeIds Select only ads with these size IDs. + * @opt_param string pageToken Value of the nextPageToken from the previous + * result page. + * @opt_param string sortOrder Order of sorted results, default is ASCENDING. + * @opt_param string type Select only ads with these types. + * @opt_param bool sslRequired Select only ads that require SSL. + * @opt_param string creativeIds Select only ads with these creative IDs + * assigned. + * @opt_param int maxResults Maximum number of results to return. + * @opt_param string creativeType Select only ads with the specified + * creativeType. + * @opt_param string placementIds Select only ads with these placement IDs + * assigned. + * @opt_param bool active Select only active ads. + * @opt_param string compatibility Select default ads with the specified + * compatibility. Applicable when type is AD_SERVING_DEFAULT_AD. WEB and + * WEB_INTERSTITIAL refer to rendering either on desktop or on mobile devices + * for regular or interstitial ads, respectively. APP and APP_INTERSTITIAL are + * for rendering in mobile apps. IN_STREAM_VIDEO refers to rendering an in- + * stream video ads developed with the VAST standard. + * @opt_param string advertiserId Select only ads with this advertiser ID. + * @opt_param string searchString Allows searching for objects by name or ID. + * Wildcards (*) are allowed. For example, "ad*2015" will return objects with + * names like "ad June 2015", "ad April 2015", or simply "ad 2015". Most of the + * searches also add wildcards implicitly at the start and the end of the search + * string. For example, a search string of "ad" will match objects with name "my + * ad", "ad 2015", or simply "ad". + * @opt_param string sortField Field by which to sort the list. + * @opt_param string audienceSegmentIds Select only ads with these audience + * segment IDs. + * @opt_param string ids Select only ads with these IDs. + * @opt_param string remarketingListIds Select only ads whose list targeting + * expression use these remarketing list IDs. + * @opt_param bool dynamicClickTracker Select only dynamic click trackers. + * Applicable when type is AD_SERVING_CLICK_TRACKER. If true, select dynamic + * click trackers. If false, select static click trackers. Leave unset to select + * both. + * @return Google_Service_Dfareporting_AdsListResponse + */ + public function listAds($profileId, $optParams = array()) + { + $params = array('profileId' => $profileId); + $params = array_merge($params, $optParams); + return $this->call('list', array($params), "Google_Service_Dfareporting_AdsListResponse"); + } + + /** + * Updates an existing ad. This method supports patch semantics. (ads.patch) + * + * @param string $profileId User profile ID associated with this request. + * @param string $id Ad ID. + * @param Google_Ad $postBody + * @param array $optParams Optional parameters. + * @return Google_Service_Dfareporting_Ad + */ + public function patch($profileId, $id, Google_Service_Dfareporting_Ad $postBody, $optParams = array()) + { + $params = array('profileId' => $profileId, 'id' => $id, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('patch', array($params), "Google_Service_Dfareporting_Ad"); + } + + /** + * Updates an existing ad. (ads.update) + * + * @param string $profileId User profile ID associated with this request. + * @param Google_Ad $postBody + * @param array $optParams Optional parameters. + * @return Google_Service_Dfareporting_Ad + */ + public function update($profileId, Google_Service_Dfareporting_Ad $postBody, $optParams = array()) + { + $params = array('profileId' => $profileId, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('update', array($params), "Google_Service_Dfareporting_Ad"); + } +} + +/** + * The "advertiserGroups" collection of methods. + * Typical usage is: + * + * $dfareportingService = new Google_Service_Dfareporting(...); + * $advertiserGroups = $dfareportingService->advertiserGroups; + * + */ +class Google_Service_Dfareporting_AdvertiserGroups_Resource extends Google_Service_Resource +{ + + /** + * Deletes an existing advertiser group. (advertiserGroups.delete) + * + * @param string $profileId User profile ID associated with this request. + * @param string $id Advertiser group ID. + * @param array $optParams Optional parameters. + */ + public function delete($profileId, $id, $optParams = array()) + { + $params = array('profileId' => $profileId, 'id' => $id); + $params = array_merge($params, $optParams); + return $this->call('delete', array($params)); + } + + /** + * Gets one advertiser group by ID. (advertiserGroups.get) + * + * @param string $profileId User profile ID associated with this request. + * @param string $id Advertiser group ID. + * @param array $optParams Optional parameters. + * @return Google_Service_Dfareporting_AdvertiserGroup + */ + public function get($profileId, $id, $optParams = array()) + { + $params = array('profileId' => $profileId, 'id' => $id); + $params = array_merge($params, $optParams); + return $this->call('get', array($params), "Google_Service_Dfareporting_AdvertiserGroup"); + } + + /** + * Inserts a new advertiser group. (advertiserGroups.insert) + * + * @param string $profileId User profile ID associated with this request. + * @param Google_AdvertiserGroup $postBody + * @param array $optParams Optional parameters. + * @return Google_Service_Dfareporting_AdvertiserGroup + */ + public function insert($profileId, Google_Service_Dfareporting_AdvertiserGroup $postBody, $optParams = array()) + { + $params = array('profileId' => $profileId, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('insert', array($params), "Google_Service_Dfareporting_AdvertiserGroup"); + } + + /** + * Retrieves a list of advertiser groups, possibly filtered. + * (advertiserGroups.listAdvertiserGroups) + * + * @param string $profileId User profile ID associated with this request. + * @param array $optParams Optional parameters. + * + * @opt_param string searchString Allows searching for objects by name or ID. + * Wildcards (*) are allowed. For example, "advertiser*2015" will return objects + * with names like "advertiser group June 2015", "advertiser group April 2015", + * or simply "advertiser group 2015". Most of the searches also add wildcards + * implicitly at the start and the end of the search string. For example, a + * search string of "advertisergroup" will match objects with name "my + * advertisergroup", "advertisergroup 2015", or simply "advertisergroup". + * @opt_param string sortField Field by which to sort the list. + * @opt_param string ids Select only advertiser groups with these IDs. + * @opt_param int maxResults Maximum number of results to return. + * @opt_param string pageToken Value of the nextPageToken from the previous + * result page. + * @opt_param string sortOrder Order of sorted results, default is ASCENDING. + * @return Google_Service_Dfareporting_AdvertiserGroupsListResponse + */ + public function listAdvertiserGroups($profileId, $optParams = array()) + { + $params = array('profileId' => $profileId); + $params = array_merge($params, $optParams); + return $this->call('list', array($params), "Google_Service_Dfareporting_AdvertiserGroupsListResponse"); + } + + /** + * Updates an existing advertiser group. This method supports patch semantics. + * (advertiserGroups.patch) + * + * @param string $profileId User profile ID associated with this request. + * @param string $id Advertiser group ID. + * @param Google_AdvertiserGroup $postBody + * @param array $optParams Optional parameters. + * @return Google_Service_Dfareporting_AdvertiserGroup + */ + public function patch($profileId, $id, Google_Service_Dfareporting_AdvertiserGroup $postBody, $optParams = array()) + { + $params = array('profileId' => $profileId, 'id' => $id, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('patch', array($params), "Google_Service_Dfareporting_AdvertiserGroup"); + } + + /** + * Updates an existing advertiser group. (advertiserGroups.update) + * + * @param string $profileId User profile ID associated with this request. + * @param Google_AdvertiserGroup $postBody + * @param array $optParams Optional parameters. + * @return Google_Service_Dfareporting_AdvertiserGroup + */ + public function update($profileId, Google_Service_Dfareporting_AdvertiserGroup $postBody, $optParams = array()) + { + $params = array('profileId' => $profileId, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('update', array($params), "Google_Service_Dfareporting_AdvertiserGroup"); + } +} + +/** + * The "advertisers" collection of methods. + * Typical usage is: + * + * $dfareportingService = new Google_Service_Dfareporting(...); + * $advertisers = $dfareportingService->advertisers; + * + */ +class Google_Service_Dfareporting_Advertisers_Resource extends Google_Service_Resource +{ + + /** + * Gets one advertiser by ID. (advertisers.get) + * + * @param string $profileId User profile ID associated with this request. + * @param string $id Advertiser ID. + * @param array $optParams Optional parameters. + * @return Google_Service_Dfareporting_Advertiser + */ + public function get($profileId, $id, $optParams = array()) + { + $params = array('profileId' => $profileId, 'id' => $id); + $params = array_merge($params, $optParams); + return $this->call('get', array($params), "Google_Service_Dfareporting_Advertiser"); + } + + /** + * Inserts a new advertiser. (advertisers.insert) + * + * @param string $profileId User profile ID associated with this request. + * @param Google_Advertiser $postBody + * @param array $optParams Optional parameters. + * @return Google_Service_Dfareporting_Advertiser + */ + public function insert($profileId, Google_Service_Dfareporting_Advertiser $postBody, $optParams = array()) + { + $params = array('profileId' => $profileId, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('insert', array($params), "Google_Service_Dfareporting_Advertiser"); + } + + /** + * Retrieves a list of advertisers, possibly filtered. + * (advertisers.listAdvertisers) + * + * @param string $profileId User profile ID associated with this request. + * @param array $optParams Optional parameters. + * + * @opt_param string status Select only advertisers with the specified status. + * @opt_param string searchString Allows searching for objects by name or ID. + * Wildcards (*) are allowed. For example, "advertiser*2015" will return objects + * with names like "advertiser June 2015", "advertiser April 2015", or simply + * "advertiser 2015". Most of the searches also add wildcards implicitly at the + * start and the end of the search string. For example, a search string of + * "advertiser" will match objects with name "my advertiser", "advertiser 2015", + * or simply "advertiser". + * @opt_param string subaccountId Select only advertisers with these subaccount + * IDs. + * @opt_param bool includeAdvertisersWithoutGroupsOnly Select only advertisers + * which do not belong to any advertiser group. + * @opt_param string sortField Field by which to sort the list. + * @opt_param string ids Select only advertisers with these IDs. + * @opt_param int maxResults Maximum number of results to return. + * @opt_param string pageToken Value of the nextPageToken from the previous + * result page. + * @opt_param bool onlyParent Select only advertisers which use another + * advertiser's floodlight configuration. + * @opt_param string sortOrder Order of sorted results, default is ASCENDING. + * @opt_param string floodlightConfigurationIds Select only advertisers with + * these floodlight configuration IDs. + * @opt_param string advertiserGroupIds Select only advertisers with these + * advertiser group IDs. + * @return Google_Service_Dfareporting_AdvertisersListResponse + */ + public function listAdvertisers($profileId, $optParams = array()) + { + $params = array('profileId' => $profileId); + $params = array_merge($params, $optParams); + return $this->call('list', array($params), "Google_Service_Dfareporting_AdvertisersListResponse"); + } + + /** + * Updates an existing advertiser. This method supports patch semantics. + * (advertisers.patch) + * + * @param string $profileId User profile ID associated with this request. + * @param string $id Advertiser ID. + * @param Google_Advertiser $postBody + * @param array $optParams Optional parameters. + * @return Google_Service_Dfareporting_Advertiser + */ + public function patch($profileId, $id, Google_Service_Dfareporting_Advertiser $postBody, $optParams = array()) + { + $params = array('profileId' => $profileId, 'id' => $id, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('patch', array($params), "Google_Service_Dfareporting_Advertiser"); + } + + /** + * Updates an existing advertiser. (advertisers.update) + * + * @param string $profileId User profile ID associated with this request. + * @param Google_Advertiser $postBody + * @param array $optParams Optional parameters. + * @return Google_Service_Dfareporting_Advertiser + */ + public function update($profileId, Google_Service_Dfareporting_Advertiser $postBody, $optParams = array()) + { + $params = array('profileId' => $profileId, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('update', array($params), "Google_Service_Dfareporting_Advertiser"); + } +} + +/** + * The "browsers" collection of methods. + * Typical usage is: + * + * $dfareportingService = new Google_Service_Dfareporting(...); + * $browsers = $dfareportingService->browsers; + * + */ +class Google_Service_Dfareporting_Browsers_Resource extends Google_Service_Resource +{ + + /** + * Retrieves a list of browsers. (browsers.listBrowsers) + * + * @param string $profileId User profile ID associated with this request. + * @param array $optParams Optional parameters. + * @return Google_Service_Dfareporting_BrowsersListResponse + */ + public function listBrowsers($profileId, $optParams = array()) + { + $params = array('profileId' => $profileId); + $params = array_merge($params, $optParams); + return $this->call('list', array($params), "Google_Service_Dfareporting_BrowsersListResponse"); + } +} + +/** + * The "campaignCreativeAssociations" collection of methods. + * Typical usage is: + * + * $dfareportingService = new Google_Service_Dfareporting(...); + * $campaignCreativeAssociations = $dfareportingService->campaignCreativeAssociations; + * + */ +class Google_Service_Dfareporting_CampaignCreativeAssociations_Resource extends Google_Service_Resource +{ + + /** + * Associates a creative with the specified campaign. This method creates a + * default ad with dimensions matching the creative in the campaign if such a + * default ad does not exist already. (campaignCreativeAssociations.insert) + * + * @param string $profileId User profile ID associated with this request. + * @param string $campaignId Campaign ID in this association. + * @param Google_CampaignCreativeAssociation $postBody + * @param array $optParams Optional parameters. + * @return Google_Service_Dfareporting_CampaignCreativeAssociation + */ + public function insert($profileId, $campaignId, Google_Service_Dfareporting_CampaignCreativeAssociation $postBody, $optParams = array()) + { + $params = array('profileId' => $profileId, 'campaignId' => $campaignId, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('insert', array($params), "Google_Service_Dfareporting_CampaignCreativeAssociation"); + } + + /** + * Retrieves the list of creative IDs associated with the specified campaign. + * (campaignCreativeAssociations.listCampaignCreativeAssociations) + * + * @param string $profileId User profile ID associated with this request. + * @param string $campaignId Campaign ID in this association. + * @param array $optParams Optional parameters. + * + * @opt_param string pageToken Value of the nextPageToken from the previous + * result page. + * @opt_param string sortOrder Order of sorted results, default is ASCENDING. + * @opt_param int maxResults Maximum number of results to return. + * @return Google_Service_Dfareporting_CampaignCreativeAssociationsListResponse + */ + public function listCampaignCreativeAssociations($profileId, $campaignId, $optParams = array()) + { + $params = array('profileId' => $profileId, 'campaignId' => $campaignId); + $params = array_merge($params, $optParams); + return $this->call('list', array($params), "Google_Service_Dfareporting_CampaignCreativeAssociationsListResponse"); + } +} + +/** + * The "campaigns" collection of methods. + * Typical usage is: + * + * $dfareportingService = new Google_Service_Dfareporting(...); + * $campaigns = $dfareportingService->campaigns; + * + */ +class Google_Service_Dfareporting_Campaigns_Resource extends Google_Service_Resource +{ + + /** + * Gets one campaign by ID. (campaigns.get) + * + * @param string $profileId User profile ID associated with this request. + * @param string $id Campaign ID. + * @param array $optParams Optional parameters. + * @return Google_Service_Dfareporting_Campaign + */ + public function get($profileId, $id, $optParams = array()) + { + $params = array('profileId' => $profileId, 'id' => $id); + $params = array_merge($params, $optParams); + return $this->call('get', array($params), "Google_Service_Dfareporting_Campaign"); + } + + /** + * Inserts a new campaign. (campaigns.insert) + * + * @param string $profileId User profile ID associated with this request. + * @param string $defaultLandingPageName Default landing page name for this new + * campaign. Must be less than 256 characters long. + * @param string $defaultLandingPageUrl Default landing page URL for this new + * campaign. + * @param Google_Campaign $postBody + * @param array $optParams Optional parameters. + * @return Google_Service_Dfareporting_Campaign + */ + public function insert($profileId, $defaultLandingPageName, $defaultLandingPageUrl, Google_Service_Dfareporting_Campaign $postBody, $optParams = array()) + { + $params = array('profileId' => $profileId, 'defaultLandingPageName' => $defaultLandingPageName, 'defaultLandingPageUrl' => $defaultLandingPageUrl, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('insert', array($params), "Google_Service_Dfareporting_Campaign"); + } + + /** + * Retrieves a list of campaigns, possibly filtered. (campaigns.listCampaigns) + * + * @param string $profileId User profile ID associated with this request. + * @param array $optParams Optional parameters. + * + * @opt_param bool archived Select only archived campaigns. Don't set this field + * to select both archived and non-archived campaigns. + * @opt_param string searchString Allows searching for campaigns by name or ID. + * Wildcards (*) are allowed. For example, "campaign*2015" will return campaigns + * with names like "campaign June 2015", "campaign April 2015", or simply + * "campaign 2015". Most of the searches also add wildcards implicitly at the + * start and the end of the search string. For example, a search string of + * "campaign" will match campaigns with name "my campaign", "campaign 2015", or + * simply "campaign". + * @opt_param string subaccountId Select only campaigns that belong to this + * subaccount. + * @opt_param string sortField Field by which to sort the list. + * @opt_param string advertiserIds Select only campaigns that belong to these + * advertisers. + * @opt_param string ids Select only campaigns with these IDs. + * @opt_param int maxResults Maximum number of results to return. + * @opt_param string excludedIds Exclude campaigns with these IDs. + * @opt_param string pageToken Value of the nextPageToken from the previous + * result page. + * @opt_param string advertiserGroupIds Select only campaigns whose advertisers + * belong to these advertiser groups. + * @opt_param string sortOrder Order of sorted results, default is ASCENDING. + * @opt_param string overriddenEventTagId Select only campaigns that have + * overridden this event tag ID. + * @opt_param bool atLeastOneOptimizationActivity Select only campaigns that + * have at least one optimization activity. + * @return Google_Service_Dfareporting_CampaignsListResponse + */ + public function listCampaigns($profileId, $optParams = array()) + { + $params = array('profileId' => $profileId); + $params = array_merge($params, $optParams); + return $this->call('list', array($params), "Google_Service_Dfareporting_CampaignsListResponse"); + } + + /** + * Updates an existing campaign. This method supports patch semantics. + * (campaigns.patch) + * + * @param string $profileId User profile ID associated with this request. + * @param string $id Campaign ID. + * @param Google_Campaign $postBody + * @param array $optParams Optional parameters. + * @return Google_Service_Dfareporting_Campaign + */ + public function patch($profileId, $id, Google_Service_Dfareporting_Campaign $postBody, $optParams = array()) + { + $params = array('profileId' => $profileId, 'id' => $id, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('patch', array($params), "Google_Service_Dfareporting_Campaign"); + } + + /** + * Updates an existing campaign. (campaigns.update) + * + * @param string $profileId User profile ID associated with this request. + * @param Google_Campaign $postBody + * @param array $optParams Optional parameters. + * @return Google_Service_Dfareporting_Campaign + */ + public function update($profileId, Google_Service_Dfareporting_Campaign $postBody, $optParams = array()) + { + $params = array('profileId' => $profileId, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('update', array($params), "Google_Service_Dfareporting_Campaign"); + } +} + +/** + * The "changeLogs" collection of methods. + * Typical usage is: + * + * $dfareportingService = new Google_Service_Dfareporting(...); + * $changeLogs = $dfareportingService->changeLogs; + * + */ +class Google_Service_Dfareporting_ChangeLogs_Resource extends Google_Service_Resource +{ + + /** + * Gets one change log by ID. (changeLogs.get) + * + * @param string $profileId User profile ID associated with this request. + * @param string $id Change log ID. + * @param array $optParams Optional parameters. + * @return Google_Service_Dfareporting_ChangeLog + */ + public function get($profileId, $id, $optParams = array()) + { + $params = array('profileId' => $profileId, 'id' => $id); + $params = array_merge($params, $optParams); + return $this->call('get', array($params), "Google_Service_Dfareporting_ChangeLog"); + } + + /** + * Retrieves a list of change logs. (changeLogs.listChangeLogs) + * + * @param string $profileId User profile ID associated with this request. + * @param array $optParams Optional parameters. + * + * @opt_param string minChangeTime Select only change logs whose change time is + * before the specified minChangeTime.The time should be formatted as an RFC3339 + * date/time string. For example, for 10:54 PM on July 18th, 2015, in the + * America/New York time zone, the format is "2015-07-18T22:54:00-04:00". In + * other words, the year, month, day, the letter T, the hour (24-hour clock + * system), minute, second, and then the time zone offset. + * @opt_param string searchString Select only change logs whose object ID, user + * name, old or new values match the search string. + * @opt_param string maxChangeTime Select only change logs whose change time is + * before the specified maxChangeTime.The time should be formatted as an RFC3339 + * date/time string. For example, for 10:54 PM on July 18th, 2015, in the + * America/New York time zone, the format is "2015-07-18T22:54:00-04:00". In + * other words, the year, month, day, the letter T, the hour (24-hour clock + * system), minute, second, and then the time zone offset. + * @opt_param string userProfileIds Select only change logs with these user + * profile IDs. + * @opt_param string ids Select only change logs with these IDs. + * @opt_param int maxResults Maximum number of results to return. + * @opt_param string objectIds Select only change logs with these object IDs. + * @opt_param string pageToken Value of the nextPageToken from the previous + * result page. + * @opt_param string action Select only change logs with the specified action. + * @opt_param string objectType Select only change logs with the specified + * object type. + * @return Google_Service_Dfareporting_ChangeLogsListResponse + */ + public function listChangeLogs($profileId, $optParams = array()) + { + $params = array('profileId' => $profileId); + $params = array_merge($params, $optParams); + return $this->call('list', array($params), "Google_Service_Dfareporting_ChangeLogsListResponse"); + } +} + +/** + * The "cities" collection of methods. + * Typical usage is: + * + * $dfareportingService = new Google_Service_Dfareporting(...); + * $cities = $dfareportingService->cities; + * + */ +class Google_Service_Dfareporting_Cities_Resource extends Google_Service_Resource +{ + + /** + * Retrieves a list of cities, possibly filtered. (cities.listCities) + * + * @param string $profileId User profile ID associated with this request. + * @param array $optParams Optional parameters. + * + * @opt_param string dartIds Select only cities with these DART IDs. + * @opt_param string namePrefix Select only cities with names starting with this + * prefix. + * @opt_param string regionDartIds Select only cities from these regions. + * @opt_param string countryDartIds Select only cities from these countries. + * @return Google_Service_Dfareporting_CitiesListResponse + */ + public function listCities($profileId, $optParams = array()) + { + $params = array('profileId' => $profileId); + $params = array_merge($params, $optParams); + return $this->call('list', array($params), "Google_Service_Dfareporting_CitiesListResponse"); + } +} + +/** + * The "connectionTypes" collection of methods. + * Typical usage is: + * + * $dfareportingService = new Google_Service_Dfareporting(...); + * $connectionTypes = $dfareportingService->connectionTypes; + * + */ +class Google_Service_Dfareporting_ConnectionTypes_Resource extends Google_Service_Resource +{ + + /** + * Gets one connection type by ID. (connectionTypes.get) + * + * @param string $profileId User profile ID associated with this request. + * @param string $id Connection type ID. + * @param array $optParams Optional parameters. + * @return Google_Service_Dfareporting_ConnectionType + */ + public function get($profileId, $id, $optParams = array()) + { + $params = array('profileId' => $profileId, 'id' => $id); + $params = array_merge($params, $optParams); + return $this->call('get', array($params), "Google_Service_Dfareporting_ConnectionType"); + } + + /** + * Retrieves a list of connection types. (connectionTypes.listConnectionTypes) + * + * @param string $profileId User profile ID associated with this request. + * @param array $optParams Optional parameters. + * @return Google_Service_Dfareporting_ConnectionTypesListResponse + */ + public function listConnectionTypes($profileId, $optParams = array()) + { + $params = array('profileId' => $profileId); + $params = array_merge($params, $optParams); + return $this->call('list', array($params), "Google_Service_Dfareporting_ConnectionTypesListResponse"); + } +} + +/** + * The "contentCategories" collection of methods. + * Typical usage is: + * + * $dfareportingService = new Google_Service_Dfareporting(...); + * $contentCategories = $dfareportingService->contentCategories; + * + */ +class Google_Service_Dfareporting_ContentCategories_Resource extends Google_Service_Resource +{ + + /** + * Deletes an existing content category. (contentCategories.delete) + * + * @param string $profileId User profile ID associated with this request. + * @param string $id Content category ID. + * @param array $optParams Optional parameters. + */ + public function delete($profileId, $id, $optParams = array()) + { + $params = array('profileId' => $profileId, 'id' => $id); + $params = array_merge($params, $optParams); + return $this->call('delete', array($params)); + } + + /** + * Gets one content category by ID. (contentCategories.get) + * + * @param string $profileId User profile ID associated with this request. + * @param string $id Content category ID. + * @param array $optParams Optional parameters. + * @return Google_Service_Dfareporting_ContentCategory + */ + public function get($profileId, $id, $optParams = array()) + { + $params = array('profileId' => $profileId, 'id' => $id); + $params = array_merge($params, $optParams); + return $this->call('get', array($params), "Google_Service_Dfareporting_ContentCategory"); + } + + /** + * Inserts a new content category. (contentCategories.insert) + * + * @param string $profileId User profile ID associated with this request. + * @param Google_ContentCategory $postBody + * @param array $optParams Optional parameters. + * @return Google_Service_Dfareporting_ContentCategory + */ + public function insert($profileId, Google_Service_Dfareporting_ContentCategory $postBody, $optParams = array()) + { + $params = array('profileId' => $profileId, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('insert', array($params), "Google_Service_Dfareporting_ContentCategory"); + } + + /** + * Retrieves a list of content categories, possibly filtered. + * (contentCategories.listContentCategories) + * + * @param string $profileId User profile ID associated with this request. + * @param array $optParams Optional parameters. + * + * @opt_param string searchString Allows searching for objects by name or ID. + * Wildcards (*) are allowed. For example, "contentcategory*2015" will return + * objects with names like "contentcategory June 2015", "contentcategory April + * 2015", or simply "contentcategory 2015". Most of the searches also add + * wildcards implicitly at the start and the end of the search string. For + * example, a search string of "contentcategory" will match objects with name + * "my contentcategory", "contentcategory 2015", or simply "contentcategory". + * @opt_param string sortField Field by which to sort the list. + * @opt_param string ids Select only content categories with these IDs. + * @opt_param int maxResults Maximum number of results to return. + * @opt_param string pageToken Value of the nextPageToken from the previous + * result page. + * @opt_param string sortOrder Order of sorted results, default is ASCENDING. + * @return Google_Service_Dfareporting_ContentCategoriesListResponse + */ + public function listContentCategories($profileId, $optParams = array()) + { + $params = array('profileId' => $profileId); + $params = array_merge($params, $optParams); + return $this->call('list', array($params), "Google_Service_Dfareporting_ContentCategoriesListResponse"); + } + + /** + * Updates an existing content category. This method supports patch semantics. + * (contentCategories.patch) + * + * @param string $profileId User profile ID associated with this request. + * @param string $id Content category ID. + * @param Google_ContentCategory $postBody + * @param array $optParams Optional parameters. + * @return Google_Service_Dfareporting_ContentCategory + */ + public function patch($profileId, $id, Google_Service_Dfareporting_ContentCategory $postBody, $optParams = array()) + { + $params = array('profileId' => $profileId, 'id' => $id, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('patch', array($params), "Google_Service_Dfareporting_ContentCategory"); + } + + /** + * Updates an existing content category. (contentCategories.update) + * + * @param string $profileId User profile ID associated with this request. + * @param Google_ContentCategory $postBody + * @param array $optParams Optional parameters. + * @return Google_Service_Dfareporting_ContentCategory + */ + public function update($profileId, Google_Service_Dfareporting_ContentCategory $postBody, $optParams = array()) + { + $params = array('profileId' => $profileId, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('update', array($params), "Google_Service_Dfareporting_ContentCategory"); + } +} + +/** + * The "countries" collection of methods. + * Typical usage is: + * + * $dfareportingService = new Google_Service_Dfareporting(...); + * $countries = $dfareportingService->countries; + * + */ +class Google_Service_Dfareporting_Countries_Resource extends Google_Service_Resource +{ + + /** + * Gets one country by ID. (countries.get) + * + * @param string $profileId User profile ID associated with this request. + * @param string $dartId Country DART ID. + * @param array $optParams Optional parameters. + * @return Google_Service_Dfareporting_Country + */ + public function get($profileId, $dartId, $optParams = array()) + { + $params = array('profileId' => $profileId, 'dartId' => $dartId); + $params = array_merge($params, $optParams); + return $this->call('get', array($params), "Google_Service_Dfareporting_Country"); + } + + /** + * Retrieves a list of countries. (countries.listCountries) + * + * @param string $profileId User profile ID associated with this request. + * @param array $optParams Optional parameters. + * @return Google_Service_Dfareporting_CountriesListResponse + */ + public function listCountries($profileId, $optParams = array()) + { + $params = array('profileId' => $profileId); + $params = array_merge($params, $optParams); + return $this->call('list', array($params), "Google_Service_Dfareporting_CountriesListResponse"); + } +} + +/** + * The "creativeAssets" collection of methods. + * Typical usage is: + * + * $dfareportingService = new Google_Service_Dfareporting(...); + * $creativeAssets = $dfareportingService->creativeAssets; + * + */ +class Google_Service_Dfareporting_CreativeAssets_Resource extends Google_Service_Resource +{ + + /** + * Inserts a new creative asset. (creativeAssets.insert) + * + * @param string $profileId User profile ID associated with this request. + * @param string $advertiserId Advertiser ID of this creative. This is a + * required field. + * @param Google_CreativeAssetMetadata $postBody + * @param array $optParams Optional parameters. + * @return Google_Service_Dfareporting_CreativeAssetMetadata + */ + public function insert($profileId, $advertiserId, Google_Service_Dfareporting_CreativeAssetMetadata $postBody, $optParams = array()) + { + $params = array('profileId' => $profileId, 'advertiserId' => $advertiserId, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('insert', array($params), "Google_Service_Dfareporting_CreativeAssetMetadata"); + } +} + +/** + * The "creativeFieldValues" collection of methods. + * Typical usage is: + * + * $dfareportingService = new Google_Service_Dfareporting(...); + * $creativeFieldValues = $dfareportingService->creativeFieldValues; + * + */ +class Google_Service_Dfareporting_CreativeFieldValues_Resource extends Google_Service_Resource +{ + + /** + * Deletes an existing creative field value. (creativeFieldValues.delete) + * + * @param string $profileId User profile ID associated with this request. + * @param string $creativeFieldId Creative field ID for this creative field + * value. + * @param string $id Creative Field Value ID + * @param array $optParams Optional parameters. + */ + public function delete($profileId, $creativeFieldId, $id, $optParams = array()) + { + $params = array('profileId' => $profileId, 'creativeFieldId' => $creativeFieldId, 'id' => $id); + $params = array_merge($params, $optParams); + return $this->call('delete', array($params)); + } + + /** + * Gets one creative field value by ID. (creativeFieldValues.get) + * + * @param string $profileId User profile ID associated with this request. + * @param string $creativeFieldId Creative field ID for this creative field + * value. + * @param string $id Creative Field Value ID + * @param array $optParams Optional parameters. + * @return Google_Service_Dfareporting_CreativeFieldValue + */ + public function get($profileId, $creativeFieldId, $id, $optParams = array()) + { + $params = array('profileId' => $profileId, 'creativeFieldId' => $creativeFieldId, 'id' => $id); + $params = array_merge($params, $optParams); + return $this->call('get', array($params), "Google_Service_Dfareporting_CreativeFieldValue"); + } + + /** + * Inserts a new creative field value. (creativeFieldValues.insert) + * + * @param string $profileId User profile ID associated with this request. + * @param string $creativeFieldId Creative field ID for this creative field + * value. + * @param Google_CreativeFieldValue $postBody + * @param array $optParams Optional parameters. + * @return Google_Service_Dfareporting_CreativeFieldValue + */ + public function insert($profileId, $creativeFieldId, Google_Service_Dfareporting_CreativeFieldValue $postBody, $optParams = array()) + { + $params = array('profileId' => $profileId, 'creativeFieldId' => $creativeFieldId, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('insert', array($params), "Google_Service_Dfareporting_CreativeFieldValue"); + } + + /** + * Retrieves a list of creative field values, possibly filtered. + * (creativeFieldValues.listCreativeFieldValues) + * + * @param string $profileId User profile ID associated with this request. + * @param string $creativeFieldId Creative field ID for this creative field + * value. + * @param array $optParams Optional parameters. + * + * @opt_param string searchString Allows searching for creative field values by + * their values. Wildcards (e.g. *) are not allowed. + * @opt_param string pageToken Value of the nextPageToken from the previous + * result page. + * @opt_param string sortField Field by which to sort the list. + * @opt_param string ids Select only creative field values with these IDs. + * @opt_param int maxResults Maximum number of results to return. + * @opt_param string sortOrder Order of sorted results, default is ASCENDING. + * @return Google_Service_Dfareporting_CreativeFieldValuesListResponse + */ + public function listCreativeFieldValues($profileId, $creativeFieldId, $optParams = array()) + { + $params = array('profileId' => $profileId, 'creativeFieldId' => $creativeFieldId); + $params = array_merge($params, $optParams); + return $this->call('list', array($params), "Google_Service_Dfareporting_CreativeFieldValuesListResponse"); + } + + /** + * Updates an existing creative field value. This method supports patch + * semantics. (creativeFieldValues.patch) + * + * @param string $profileId User profile ID associated with this request. + * @param string $creativeFieldId Creative field ID for this creative field + * value. + * @param string $id Creative Field Value ID + * @param Google_CreativeFieldValue $postBody + * @param array $optParams Optional parameters. + * @return Google_Service_Dfareporting_CreativeFieldValue + */ + public function patch($profileId, $creativeFieldId, $id, Google_Service_Dfareporting_CreativeFieldValue $postBody, $optParams = array()) + { + $params = array('profileId' => $profileId, 'creativeFieldId' => $creativeFieldId, 'id' => $id, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('patch', array($params), "Google_Service_Dfareporting_CreativeFieldValue"); + } + + /** + * Updates an existing creative field value. (creativeFieldValues.update) + * + * @param string $profileId User profile ID associated with this request. + * @param string $creativeFieldId Creative field ID for this creative field + * value. + * @param Google_CreativeFieldValue $postBody + * @param array $optParams Optional parameters. + * @return Google_Service_Dfareporting_CreativeFieldValue + */ + public function update($profileId, $creativeFieldId, Google_Service_Dfareporting_CreativeFieldValue $postBody, $optParams = array()) + { + $params = array('profileId' => $profileId, 'creativeFieldId' => $creativeFieldId, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('update', array($params), "Google_Service_Dfareporting_CreativeFieldValue"); + } +} + +/** + * The "creativeFields" collection of methods. + * Typical usage is: + * + * $dfareportingService = new Google_Service_Dfareporting(...); + * $creativeFields = $dfareportingService->creativeFields; + * + */ +class Google_Service_Dfareporting_CreativeFields_Resource extends Google_Service_Resource +{ + + /** + * Deletes an existing creative field. (creativeFields.delete) + * + * @param string $profileId User profile ID associated with this request. + * @param string $id Creative Field ID + * @param array $optParams Optional parameters. + */ + public function delete($profileId, $id, $optParams = array()) + { + $params = array('profileId' => $profileId, 'id' => $id); + $params = array_merge($params, $optParams); + return $this->call('delete', array($params)); + } + + /** + * Gets one creative field by ID. (creativeFields.get) + * + * @param string $profileId User profile ID associated with this request. + * @param string $id Creative Field ID + * @param array $optParams Optional parameters. + * @return Google_Service_Dfareporting_CreativeField + */ + public function get($profileId, $id, $optParams = array()) + { + $params = array('profileId' => $profileId, 'id' => $id); + $params = array_merge($params, $optParams); + return $this->call('get', array($params), "Google_Service_Dfareporting_CreativeField"); + } + + /** + * Inserts a new creative field. (creativeFields.insert) + * + * @param string $profileId User profile ID associated with this request. + * @param Google_CreativeField $postBody + * @param array $optParams Optional parameters. + * @return Google_Service_Dfareporting_CreativeField + */ + public function insert($profileId, Google_Service_Dfareporting_CreativeField $postBody, $optParams = array()) + { + $params = array('profileId' => $profileId, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('insert', array($params), "Google_Service_Dfareporting_CreativeField"); + } + + /** + * Retrieves a list of creative fields, possibly filtered. + * (creativeFields.listCreativeFields) + * + * @param string $profileId User profile ID associated with this request. + * @param array $optParams Optional parameters. + * + * @opt_param string searchString Allows searching for creative fields by name + * or ID. Wildcards (*) are allowed. For example, "creativefield*2015" will + * return creative fields with names like "creativefield June 2015", + * "creativefield April 2015", or simply "creativefield 2015". Most of the + * searches also add wild-cards implicitly at the start and the end of the + * search string. For example, a search string of "creativefield" will match + * creative fields with the name "my creativefield", "creativefield 2015", or + * simply "creativefield". + * @opt_param string sortField Field by which to sort the list. + * @opt_param string advertiserIds Select only creative fields that belong to + * these advertisers. + * @opt_param string ids Select only creative fields with these IDs. + * @opt_param int maxResults Maximum number of results to return. + * @opt_param string pageToken Value of the nextPageToken from the previous + * result page. + * @opt_param string sortOrder Order of sorted results, default is ASCENDING. + * @return Google_Service_Dfareporting_CreativeFieldsListResponse + */ + public function listCreativeFields($profileId, $optParams = array()) + { + $params = array('profileId' => $profileId); + $params = array_merge($params, $optParams); + return $this->call('list', array($params), "Google_Service_Dfareporting_CreativeFieldsListResponse"); + } + + /** + * Updates an existing creative field. This method supports patch semantics. + * (creativeFields.patch) + * + * @param string $profileId User profile ID associated with this request. + * @param string $id Creative Field ID + * @param Google_CreativeField $postBody + * @param array $optParams Optional parameters. + * @return Google_Service_Dfareporting_CreativeField + */ + public function patch($profileId, $id, Google_Service_Dfareporting_CreativeField $postBody, $optParams = array()) + { + $params = array('profileId' => $profileId, 'id' => $id, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('patch', array($params), "Google_Service_Dfareporting_CreativeField"); + } + + /** + * Updates an existing creative field. (creativeFields.update) + * + * @param string $profileId User profile ID associated with this request. + * @param Google_CreativeField $postBody + * @param array $optParams Optional parameters. + * @return Google_Service_Dfareporting_CreativeField + */ + public function update($profileId, Google_Service_Dfareporting_CreativeField $postBody, $optParams = array()) + { + $params = array('profileId' => $profileId, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('update', array($params), "Google_Service_Dfareporting_CreativeField"); + } +} + +/** + * The "creativeGroups" collection of methods. + * Typical usage is: + * + * $dfareportingService = new Google_Service_Dfareporting(...); + * $creativeGroups = $dfareportingService->creativeGroups; + * + */ +class Google_Service_Dfareporting_CreativeGroups_Resource extends Google_Service_Resource +{ + + /** + * Gets one creative group by ID. (creativeGroups.get) + * + * @param string $profileId User profile ID associated with this request. + * @param string $id Creative group ID. + * @param array $optParams Optional parameters. + * @return Google_Service_Dfareporting_CreativeGroup + */ + public function get($profileId, $id, $optParams = array()) + { + $params = array('profileId' => $profileId, 'id' => $id); + $params = array_merge($params, $optParams); + return $this->call('get', array($params), "Google_Service_Dfareporting_CreativeGroup"); + } + + /** + * Inserts a new creative group. (creativeGroups.insert) + * + * @param string $profileId User profile ID associated with this request. + * @param Google_CreativeGroup $postBody + * @param array $optParams Optional parameters. + * @return Google_Service_Dfareporting_CreativeGroup + */ + public function insert($profileId, Google_Service_Dfareporting_CreativeGroup $postBody, $optParams = array()) + { + $params = array('profileId' => $profileId, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('insert', array($params), "Google_Service_Dfareporting_CreativeGroup"); + } + + /** + * Retrieves a list of creative groups, possibly filtered. + * (creativeGroups.listCreativeGroups) + * + * @param string $profileId User profile ID associated with this request. + * @param array $optParams Optional parameters. + * + * @opt_param string searchString Allows searching for creative groups by name + * or ID. Wildcards (*) are allowed. For example, "creativegroup*2015" will + * return creative groups with names like "creativegroup June 2015", + * "creativegroup April 2015", or simply "creativegroup 2015". Most of the + * searches also add wild-cards implicitly at the start and the end of the + * search string. For example, a search string of "creativegroup" will match + * creative groups with the name "my creativegroup", "creativegroup 2015", or + * simply "creativegroup". + * @opt_param string sortField Field by which to sort the list. + * @opt_param string advertiserIds Select only creative groups that belong to + * these advertisers. + * @opt_param int groupNumber Select only creative groups that belong to this + * subgroup. + * @opt_param int maxResults Maximum number of results to return. + * @opt_param string ids Select only creative groups with these IDs. + * @opt_param string pageToken Value of the nextPageToken from the previous + * result page. + * @opt_param string sortOrder Order of sorted results, default is ASCENDING. + * @return Google_Service_Dfareporting_CreativeGroupsListResponse + */ + public function listCreativeGroups($profileId, $optParams = array()) + { + $params = array('profileId' => $profileId); + $params = array_merge($params, $optParams); + return $this->call('list', array($params), "Google_Service_Dfareporting_CreativeGroupsListResponse"); + } + + /** + * Updates an existing creative group. This method supports patch semantics. + * (creativeGroups.patch) + * + * @param string $profileId User profile ID associated with this request. + * @param string $id Creative group ID. + * @param Google_CreativeGroup $postBody + * @param array $optParams Optional parameters. + * @return Google_Service_Dfareporting_CreativeGroup + */ + public function patch($profileId, $id, Google_Service_Dfareporting_CreativeGroup $postBody, $optParams = array()) + { + $params = array('profileId' => $profileId, 'id' => $id, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('patch', array($params), "Google_Service_Dfareporting_CreativeGroup"); + } + + /** + * Updates an existing creative group. (creativeGroups.update) + * + * @param string $profileId User profile ID associated with this request. + * @param Google_CreativeGroup $postBody + * @param array $optParams Optional parameters. + * @return Google_Service_Dfareporting_CreativeGroup + */ + public function update($profileId, Google_Service_Dfareporting_CreativeGroup $postBody, $optParams = array()) + { + $params = array('profileId' => $profileId, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('update', array($params), "Google_Service_Dfareporting_CreativeGroup"); + } +} + +/** + * The "creatives" collection of methods. + * Typical usage is: + * + * $dfareportingService = new Google_Service_Dfareporting(...); + * $creatives = $dfareportingService->creatives; + * + */ +class Google_Service_Dfareporting_Creatives_Resource extends Google_Service_Resource +{ + + /** + * Gets one creative by ID. (creatives.get) + * + * @param string $profileId User profile ID associated with this request. + * @param string $id Creative ID. + * @param array $optParams Optional parameters. + * @return Google_Service_Dfareporting_Creative + */ + public function get($profileId, $id, $optParams = array()) + { + $params = array('profileId' => $profileId, 'id' => $id); + $params = array_merge($params, $optParams); + return $this->call('get', array($params), "Google_Service_Dfareporting_Creative"); + } + + /** + * Inserts a new creative. (creatives.insert) + * + * @param string $profileId User profile ID associated with this request. + * @param Google_Creative $postBody + * @param array $optParams Optional parameters. + * @return Google_Service_Dfareporting_Creative + */ + public function insert($profileId, Google_Service_Dfareporting_Creative $postBody, $optParams = array()) + { + $params = array('profileId' => $profileId, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('insert', array($params), "Google_Service_Dfareporting_Creative"); + } + + /** + * Retrieves a list of creatives, possibly filtered. (creatives.listCreatives) + * + * @param string $profileId User profile ID associated with this request. + * @param array $optParams Optional parameters. + * + * @opt_param string sizeIds Select only creatives with these size IDs. + * @opt_param bool archived Select only archived creatives. Leave blank to + * select archived and unarchived creatives. + * @opt_param string searchString Allows searching for objects by name or ID. + * Wildcards (*) are allowed. For example, "creative*2015" will return objects + * with names like "creative June 2015", "creative April 2015", or simply + * "creative 2015". Most of the searches also add wildcards implicitly at the + * start and the end of the search string. For example, a search string of + * "creative" will match objects with name "my creative", "creative 2015", or + * simply "creative". + * @opt_param string campaignId Select only creatives with this campaign ID. + * @opt_param string sortField Field by which to sort the list. + * @opt_param string renderingIds Select only creatives with these rendering + * IDs. + * @opt_param string ids Select only creatives with these IDs. + * @opt_param int maxResults Maximum number of results to return. + * @opt_param string advertiserId Select only creatives with this advertiser ID. + * @opt_param string pageToken Value of the nextPageToken from the previous + * result page. + * @opt_param string studioCreativeId Select only creatives corresponding to + * this Studio creative ID. + * @opt_param string sortOrder Order of sorted results, default is ASCENDING. + * @opt_param string companionCreativeIds Select only in-stream video creatives + * with these companion IDs. + * @opt_param bool active Select only active creatives. Leave blank to select + * active and inactive creatives. + * @opt_param string creativeFieldIds Select only creatives with these creative + * field IDs. + * @opt_param string types Select only creatives with these creative types. + * @return Google_Service_Dfareporting_CreativesListResponse + */ + public function listCreatives($profileId, $optParams = array()) + { + $params = array('profileId' => $profileId); + $params = array_merge($params, $optParams); + return $this->call('list', array($params), "Google_Service_Dfareporting_CreativesListResponse"); + } + + /** + * Updates an existing creative. This method supports patch semantics. + * (creatives.patch) + * + * @param string $profileId User profile ID associated with this request. + * @param string $id Creative ID. + * @param Google_Creative $postBody + * @param array $optParams Optional parameters. + * @return Google_Service_Dfareporting_Creative + */ + public function patch($profileId, $id, Google_Service_Dfareporting_Creative $postBody, $optParams = array()) + { + $params = array('profileId' => $profileId, 'id' => $id, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('patch', array($params), "Google_Service_Dfareporting_Creative"); + } + + /** + * Updates an existing creative. (creatives.update) + * + * @param string $profileId User profile ID associated with this request. + * @param Google_Creative $postBody + * @param array $optParams Optional parameters. + * @return Google_Service_Dfareporting_Creative + */ + public function update($profileId, Google_Service_Dfareporting_Creative $postBody, $optParams = array()) + { + $params = array('profileId' => $profileId, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('update', array($params), "Google_Service_Dfareporting_Creative"); + } +} + /** * The "dimensionValues" collection of methods. * Typical usage is: @@ -407,6 +6241,280 @@ class Google_Service_Dfareporting_DimensionValues_Resource extends Google_Servic } } +/** + * The "directorySiteContacts" collection of methods. + * Typical usage is: + * + * $dfareportingService = new Google_Service_Dfareporting(...); + * $directorySiteContacts = $dfareportingService->directorySiteContacts; + * + */ +class Google_Service_Dfareporting_DirectorySiteContacts_Resource extends Google_Service_Resource +{ + + /** + * Gets one directory site contact by ID. (directorySiteContacts.get) + * + * @param string $profileId User profile ID associated with this request. + * @param string $id Directory site contact ID. + * @param array $optParams Optional parameters. + * @return Google_Service_Dfareporting_DirectorySiteContact + */ + public function get($profileId, $id, $optParams = array()) + { + $params = array('profileId' => $profileId, 'id' => $id); + $params = array_merge($params, $optParams); + return $this->call('get', array($params), "Google_Service_Dfareporting_DirectorySiteContact"); + } + + /** + * Retrieves a list of directory site contacts, possibly filtered. + * (directorySiteContacts.listDirectorySiteContacts) + * + * @param string $profileId User profile ID associated with this request. + * @param array $optParams Optional parameters. + * + * @opt_param string searchString Allows searching for objects by name, ID or + * email. Wildcards (*) are allowed. For example, "directory site contact*2015" + * will return objects with names like "directory site contact June 2015", + * "directory site contact April 2015", or simply "directory site contact 2015". + * Most of the searches also add wildcards implicitly at the start and the end + * of the search string. For example, a search string of "directory site + * contact" will match objects with name "my directory site contact", "directory + * site contact 2015", or simply "directory site contact". + * @opt_param string directorySiteIds Select only directory site contacts with + * these directory site IDs. This is a required field. + * @opt_param string sortField Field by which to sort the list. + * @opt_param string ids Select only directory site contacts with these IDs. + * @opt_param int maxResults Maximum number of results to return. + * @opt_param string pageToken Value of the nextPageToken from the previous + * result page. + * @opt_param string sortOrder Order of sorted results, default is ASCENDING. + * @return Google_Service_Dfareporting_DirectorySiteContactsListResponse + */ + public function listDirectorySiteContacts($profileId, $optParams = array()) + { + $params = array('profileId' => $profileId); + $params = array_merge($params, $optParams); + return $this->call('list', array($params), "Google_Service_Dfareporting_DirectorySiteContactsListResponse"); + } +} + +/** + * The "directorySites" collection of methods. + * Typical usage is: + * + * $dfareportingService = new Google_Service_Dfareporting(...); + * $directorySites = $dfareportingService->directorySites; + * + */ +class Google_Service_Dfareporting_DirectorySites_Resource extends Google_Service_Resource +{ + + /** + * Gets one directory site by ID. (directorySites.get) + * + * @param string $profileId User profile ID associated with this request. + * @param string $id Directory site ID. + * @param array $optParams Optional parameters. + * @return Google_Service_Dfareporting_DirectorySite + */ + public function get($profileId, $id, $optParams = array()) + { + $params = array('profileId' => $profileId, 'id' => $id); + $params = array_merge($params, $optParams); + return $this->call('get', array($params), "Google_Service_Dfareporting_DirectorySite"); + } + + /** + * Inserts a new directory site. (directorySites.insert) + * + * @param string $profileId User profile ID associated with this request. + * @param Google_DirectorySite $postBody + * @param array $optParams Optional parameters. + * @return Google_Service_Dfareporting_DirectorySite + */ + public function insert($profileId, Google_Service_Dfareporting_DirectorySite $postBody, $optParams = array()) + { + $params = array('profileId' => $profileId, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('insert', array($params), "Google_Service_Dfareporting_DirectorySite"); + } + + /** + * Retrieves a list of directory sites, possibly filtered. + * (directorySites.listDirectorySites) + * + * @param string $profileId User profile ID associated with this request. + * @param array $optParams Optional parameters. + * + * @opt_param bool acceptsInterstitialPlacements This search filter is no longer + * supported and will have no effect on the results returned. + * @opt_param string sortOrder Order of sorted results, default is ASCENDING. + * @opt_param string searchString Allows searching for objects by name, ID or + * URL. Wildcards (*) are allowed. For example, "directory site*2015" will + * return objects with names like "directory site June 2015", "directory site + * April 2015", or simply "directory site 2015". Most of the searches also add + * wildcards implicitly at the start and the end of the search string. For + * example, a search string of "directory site" will match objects with name "my + * directory site", "directory site 2015" or simply, "directory site". + * @opt_param string countryId Select only directory sites with this country ID. + * @opt_param string sortField Field by which to sort the list. + * @opt_param bool acceptsInStreamVideoPlacements This search filter is no + * longer supported and will have no effect on the results returned. + * @opt_param string ids Select only directory sites with these IDs. + * @opt_param int maxResults Maximum number of results to return. + * @opt_param string pageToken Value of the nextPageToken from the previous + * result page. + * @opt_param bool acceptsPublisherPaidPlacements Select only directory sites + * that accept publisher paid placements. This field can be left blank. + * @opt_param string parentId Select only directory sites with this parent ID. + * @opt_param bool active Select only active directory sites. Leave blank to + * retrieve both active and inactive directory sites. + * @opt_param string dfp_network_code Select only directory sites with this DFP + * network code. + * @return Google_Service_Dfareporting_DirectorySitesListResponse + */ + public function listDirectorySites($profileId, $optParams = array()) + { + $params = array('profileId' => $profileId); + $params = array_merge($params, $optParams); + return $this->call('list', array($params), "Google_Service_Dfareporting_DirectorySitesListResponse"); + } +} + +/** + * The "eventTags" collection of methods. + * Typical usage is: + * + * $dfareportingService = new Google_Service_Dfareporting(...); + * $eventTags = $dfareportingService->eventTags; + * + */ +class Google_Service_Dfareporting_EventTags_Resource extends Google_Service_Resource +{ + + /** + * Deletes an existing event tag. (eventTags.delete) + * + * @param string $profileId User profile ID associated with this request. + * @param string $id Event tag ID. + * @param array $optParams Optional parameters. + */ + public function delete($profileId, $id, $optParams = array()) + { + $params = array('profileId' => $profileId, 'id' => $id); + $params = array_merge($params, $optParams); + return $this->call('delete', array($params)); + } + + /** + * Gets one event tag by ID. (eventTags.get) + * + * @param string $profileId User profile ID associated with this request. + * @param string $id Event tag ID. + * @param array $optParams Optional parameters. + * @return Google_Service_Dfareporting_EventTag + */ + public function get($profileId, $id, $optParams = array()) + { + $params = array('profileId' => $profileId, 'id' => $id); + $params = array_merge($params, $optParams); + return $this->call('get', array($params), "Google_Service_Dfareporting_EventTag"); + } + + /** + * Inserts a new event tag. (eventTags.insert) + * + * @param string $profileId User profile ID associated with this request. + * @param Google_EventTag $postBody + * @param array $optParams Optional parameters. + * @return Google_Service_Dfareporting_EventTag + */ + public function insert($profileId, Google_Service_Dfareporting_EventTag $postBody, $optParams = array()) + { + $params = array('profileId' => $profileId, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('insert', array($params), "Google_Service_Dfareporting_EventTag"); + } + + /** + * Retrieves a list of event tags, possibly filtered. (eventTags.listEventTags) + * + * @param string $profileId User profile ID associated with this request. + * @param array $optParams Optional parameters. + * + * @opt_param string searchString Allows searching for objects by name or ID. + * Wildcards (*) are allowed. For example, "eventtag*2015" will return objects + * with names like "eventtag June 2015", "eventtag April 2015", or simply + * "eventtag 2015". Most of the searches also add wildcards implicitly at the + * start and the end of the search string. For example, a search string of + * "eventtag" will match objects with name "my eventtag", "eventtag 2015", or + * simply "eventtag". + * @opt_param string campaignId Select only event tags that belong to this + * campaign. + * @opt_param string sortField Field by which to sort the list. + * @opt_param bool enabled Select only enabled event tags. When definitionsOnly + * is set to true, only the specified advertiser or campaign's event tags' + * enabledByDefault field is examined. When definitionsOnly is set to false, the + * specified ad or specified campaign's parent advertiser's or parent campaign's + * event tags' enabledByDefault and status fields are examined as well. + * @opt_param string ids Select only event tags with these IDs. + * @opt_param string advertiserId Select only event tags that belong to this + * advertiser. + * @opt_param string adId Select only event tags that belong to this ad. + * @opt_param string sortOrder Order of sorted results, default is ASCENDING. + * @opt_param string eventTagTypes Select only event tags with the specified + * event tag types. Event tag types can be used to specify whether to use a + * third-party pixel, a third-party JavaScript URL, or a third-party click- + * through URL for either impression or click tracking. + * @opt_param bool definitionsOnly Examine only the specified ad or campaign or + * advertiser's event tags for matching selector criteria. When set to false, + * the parent advertiser and parent campaign is examined as well. In addition, + * when set to false, the status field is examined as well along with the + * enabledByDefault field. + * @return Google_Service_Dfareporting_EventTagsListResponse + */ + public function listEventTags($profileId, $optParams = array()) + { + $params = array('profileId' => $profileId); + $params = array_merge($params, $optParams); + return $this->call('list', array($params), "Google_Service_Dfareporting_EventTagsListResponse"); + } + + /** + * Updates an existing event tag. This method supports patch semantics. + * (eventTags.patch) + * + * @param string $profileId User profile ID associated with this request. + * @param string $id Event tag ID. + * @param Google_EventTag $postBody + * @param array $optParams Optional parameters. + * @return Google_Service_Dfareporting_EventTag + */ + public function patch($profileId, $id, Google_Service_Dfareporting_EventTag $postBody, $optParams = array()) + { + $params = array('profileId' => $profileId, 'id' => $id, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('patch', array($params), "Google_Service_Dfareporting_EventTag"); + } + + /** + * Updates an existing event tag. (eventTags.update) + * + * @param string $profileId User profile ID associated with this request. + * @param Google_EventTag $postBody + * @param array $optParams Optional parameters. + * @return Google_Service_Dfareporting_EventTag + */ + public function update($profileId, Google_Service_Dfareporting_EventTag $postBody, $optParams = array()) + { + $params = array('profileId' => $profileId, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('update', array($params), "Google_Service_Dfareporting_EventTag"); + } +} + /** * The "files" collection of methods. * Typical usage is: @@ -456,6 +6564,1530 @@ class Google_Service_Dfareporting_Files_Resource extends Google_Service_Resource } } +/** + * The "floodlightActivities" collection of methods. + * Typical usage is: + * + * $dfareportingService = new Google_Service_Dfareporting(...); + * $floodlightActivities = $dfareportingService->floodlightActivities; + * + */ +class Google_Service_Dfareporting_FloodlightActivities_Resource extends Google_Service_Resource +{ + + /** + * Deletes an existing floodlight activity. (floodlightActivities.delete) + * + * @param string $profileId User profile ID associated with this request. + * @param string $id Floodlight activity ID. + * @param array $optParams Optional parameters. + */ + public function delete($profileId, $id, $optParams = array()) + { + $params = array('profileId' => $profileId, 'id' => $id); + $params = array_merge($params, $optParams); + return $this->call('delete', array($params)); + } + + /** + * Generates a tag for a floodlight activity. (floodlightActivities.generatetag) + * + * @param string $profileId User profile ID associated with this request. + * @param array $optParams Optional parameters. + * + * @opt_param string floodlightActivityId Floodlight activity ID for which we + * want to generate a tag. + * @return Google_Service_Dfareporting_FloodlightActivitiesGenerateTagResponse + */ + public function generatetag($profileId, $optParams = array()) + { + $params = array('profileId' => $profileId); + $params = array_merge($params, $optParams); + return $this->call('generatetag', array($params), "Google_Service_Dfareporting_FloodlightActivitiesGenerateTagResponse"); + } + + /** + * Gets one floodlight activity by ID. (floodlightActivities.get) + * + * @param string $profileId User profile ID associated with this request. + * @param string $id Floodlight activity ID. + * @param array $optParams Optional parameters. + * @return Google_Service_Dfareporting_FloodlightActivity + */ + public function get($profileId, $id, $optParams = array()) + { + $params = array('profileId' => $profileId, 'id' => $id); + $params = array_merge($params, $optParams); + return $this->call('get', array($params), "Google_Service_Dfareporting_FloodlightActivity"); + } + + /** + * Inserts a new floodlight activity. (floodlightActivities.insert) + * + * @param string $profileId User profile ID associated with this request. + * @param Google_FloodlightActivity $postBody + * @param array $optParams Optional parameters. + * @return Google_Service_Dfareporting_FloodlightActivity + */ + public function insert($profileId, Google_Service_Dfareporting_FloodlightActivity $postBody, $optParams = array()) + { + $params = array('profileId' => $profileId, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('insert', array($params), "Google_Service_Dfareporting_FloodlightActivity"); + } + + /** + * Retrieves a list of floodlight activities, possibly filtered. + * (floodlightActivities.listFloodlightActivities) + * + * @param string $profileId User profile ID associated with this request. + * @param array $optParams Optional parameters. + * + * @opt_param string floodlightActivityGroupIds Select only floodlight + * activities with the specified floodlight activity group IDs. + * @opt_param string sortOrder Order of sorted results, default is ASCENDING. + * @opt_param string searchString Allows searching for objects by name or ID. + * Wildcards (*) are allowed. For example, "floodlightactivity*2015" will return + * objects with names like "floodlightactivity June 2015", "floodlightactivity + * April 2015", or simply "floodlightactivity 2015". Most of the searches also + * add wildcards implicitly at the start and the end of the search string. For + * example, a search string of "floodlightactivity" will match objects with name + * "my floodlightactivity activity", "floodlightactivity 2015", or simply + * "floodlightactivity". + * @opt_param string sortField Field by which to sort the list. + * @opt_param string floodlightConfigurationId Select only floodlight activities + * for the specified floodlight configuration ID. Must specify either ids, + * advertiserId, or floodlightConfigurationId for a non-empty result. + * @opt_param string ids Select only floodlight activities with the specified + * IDs. Must specify either ids, advertiserId, or floodlightConfigurationId for + * a non-empty result. + * @opt_param string floodlightActivityGroupName Select only floodlight + * activities with the specified floodlight activity group name. + * @opt_param string advertiserId Select only floodlight activities for the + * specified advertiser ID. Must specify either ids, advertiserId, or + * floodlightConfigurationId for a non-empty result. + * @opt_param string pageToken Value of the nextPageToken from the previous + * result page. + * @opt_param int maxResults Maximum number of results to return. + * @opt_param string tagString Select only floodlight activities with the + * specified tag string. + * @opt_param string floodlightActivityGroupTagString Select only floodlight + * activities with the specified floodlight activity group tag string. + * @opt_param string floodlightActivityGroupType Select only floodlight + * activities with the specified floodlight activity group type. + * @return Google_Service_Dfareporting_FloodlightActivitiesListResponse + */ + public function listFloodlightActivities($profileId, $optParams = array()) + { + $params = array('profileId' => $profileId); + $params = array_merge($params, $optParams); + return $this->call('list', array($params), "Google_Service_Dfareporting_FloodlightActivitiesListResponse"); + } + + /** + * Updates an existing floodlight activity. This method supports patch + * semantics. (floodlightActivities.patch) + * + * @param string $profileId User profile ID associated with this request. + * @param string $id Floodlight activity ID. + * @param Google_FloodlightActivity $postBody + * @param array $optParams Optional parameters. + * @return Google_Service_Dfareporting_FloodlightActivity + */ + public function patch($profileId, $id, Google_Service_Dfareporting_FloodlightActivity $postBody, $optParams = array()) + { + $params = array('profileId' => $profileId, 'id' => $id, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('patch', array($params), "Google_Service_Dfareporting_FloodlightActivity"); + } + + /** + * Updates an existing floodlight activity. (floodlightActivities.update) + * + * @param string $profileId User profile ID associated with this request. + * @param Google_FloodlightActivity $postBody + * @param array $optParams Optional parameters. + * @return Google_Service_Dfareporting_FloodlightActivity + */ + public function update($profileId, Google_Service_Dfareporting_FloodlightActivity $postBody, $optParams = array()) + { + $params = array('profileId' => $profileId, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('update', array($params), "Google_Service_Dfareporting_FloodlightActivity"); + } +} + +/** + * The "floodlightActivityGroups" collection of methods. + * Typical usage is: + * + * $dfareportingService = new Google_Service_Dfareporting(...); + * $floodlightActivityGroups = $dfareportingService->floodlightActivityGroups; + * + */ +class Google_Service_Dfareporting_FloodlightActivityGroups_Resource extends Google_Service_Resource +{ + + /** + * Deletes an existing floodlight activity group. + * (floodlightActivityGroups.delete) + * + * @param string $profileId User profile ID associated with this request. + * @param string $id Floodlight activity Group ID. + * @param array $optParams Optional parameters. + */ + public function delete($profileId, $id, $optParams = array()) + { + $params = array('profileId' => $profileId, 'id' => $id); + $params = array_merge($params, $optParams); + return $this->call('delete', array($params)); + } + + /** + * Gets one floodlight activity group by ID. (floodlightActivityGroups.get) + * + * @param string $profileId User profile ID associated with this request. + * @param string $id Floodlight activity Group ID. + * @param array $optParams Optional parameters. + * @return Google_Service_Dfareporting_FloodlightActivityGroup + */ + public function get($profileId, $id, $optParams = array()) + { + $params = array('profileId' => $profileId, 'id' => $id); + $params = array_merge($params, $optParams); + return $this->call('get', array($params), "Google_Service_Dfareporting_FloodlightActivityGroup"); + } + + /** + * Inserts a new floodlight activity group. (floodlightActivityGroups.insert) + * + * @param string $profileId User profile ID associated with this request. + * @param Google_FloodlightActivityGroup $postBody + * @param array $optParams Optional parameters. + * @return Google_Service_Dfareporting_FloodlightActivityGroup + */ + public function insert($profileId, Google_Service_Dfareporting_FloodlightActivityGroup $postBody, $optParams = array()) + { + $params = array('profileId' => $profileId, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('insert', array($params), "Google_Service_Dfareporting_FloodlightActivityGroup"); + } + + /** + * Retrieves a list of floodlight activity groups, possibly filtered. + * (floodlightActivityGroups.listFloodlightActivityGroups) + * + * @param string $profileId User profile ID associated with this request. + * @param array $optParams Optional parameters. + * + * @opt_param string searchString Allows searching for objects by name or ID. + * Wildcards (*) are allowed. For example, "floodlightactivitygroup*2015" will + * return objects with names like "floodlightactivitygroup June 2015", + * "floodlightactivitygroup April 2015", or simply "floodlightactivitygroup + * 2015". Most of the searches also add wildcards implicitly at the start and + * the end of the search string. For example, a search string of + * "floodlightactivitygroup" will match objects with name "my + * floodlightactivitygroup activity", "floodlightactivitygroup 2015", or simply + * "floodlightactivitygroup". + * @opt_param string sortField Field by which to sort the list. + * @opt_param string floodlightConfigurationId Select only floodlight activity + * groups with the specified floodlight configuration ID. Must specify either + * advertiserId, or floodlightConfigurationId for a non-empty result. + * @opt_param string ids Select only floodlight activity groups with the + * specified IDs. Must specify either advertiserId or floodlightConfigurationId + * for a non-empty result. + * @opt_param int maxResults Maximum number of results to return. + * @opt_param string advertiserId Select only floodlight activity groups with + * the specified advertiser ID. Must specify either advertiserId or + * floodlightConfigurationId for a non-empty result. + * @opt_param string pageToken Value of the nextPageToken from the previous + * result page. + * @opt_param string sortOrder Order of sorted results, default is ASCENDING. + * @opt_param string type Select only floodlight activity groups with the + * specified floodlight activity group type. + * @return Google_Service_Dfareporting_FloodlightActivityGroupsListResponse + */ + public function listFloodlightActivityGroups($profileId, $optParams = array()) + { + $params = array('profileId' => $profileId); + $params = array_merge($params, $optParams); + return $this->call('list', array($params), "Google_Service_Dfareporting_FloodlightActivityGroupsListResponse"); + } + + /** + * Updates an existing floodlight activity group. This method supports patch + * semantics. (floodlightActivityGroups.patch) + * + * @param string $profileId User profile ID associated with this request. + * @param string $id Floodlight activity Group ID. + * @param Google_FloodlightActivityGroup $postBody + * @param array $optParams Optional parameters. + * @return Google_Service_Dfareporting_FloodlightActivityGroup + */ + public function patch($profileId, $id, Google_Service_Dfareporting_FloodlightActivityGroup $postBody, $optParams = array()) + { + $params = array('profileId' => $profileId, 'id' => $id, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('patch', array($params), "Google_Service_Dfareporting_FloodlightActivityGroup"); + } + + /** + * Updates an existing floodlight activity group. + * (floodlightActivityGroups.update) + * + * @param string $profileId User profile ID associated with this request. + * @param Google_FloodlightActivityGroup $postBody + * @param array $optParams Optional parameters. + * @return Google_Service_Dfareporting_FloodlightActivityGroup + */ + public function update($profileId, Google_Service_Dfareporting_FloodlightActivityGroup $postBody, $optParams = array()) + { + $params = array('profileId' => $profileId, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('update', array($params), "Google_Service_Dfareporting_FloodlightActivityGroup"); + } +} + +/** + * The "floodlightConfigurations" collection of methods. + * Typical usage is: + * + * $dfareportingService = new Google_Service_Dfareporting(...); + * $floodlightConfigurations = $dfareportingService->floodlightConfigurations; + * + */ +class Google_Service_Dfareporting_FloodlightConfigurations_Resource extends Google_Service_Resource +{ + + /** + * Gets one floodlight configuration by ID. (floodlightConfigurations.get) + * + * @param string $profileId User profile ID associated with this request. + * @param string $id Floodlight configuration ID. + * @param array $optParams Optional parameters. + * @return Google_Service_Dfareporting_FloodlightConfiguration + */ + public function get($profileId, $id, $optParams = array()) + { + $params = array('profileId' => $profileId, 'id' => $id); + $params = array_merge($params, $optParams); + return $this->call('get', array($params), "Google_Service_Dfareporting_FloodlightConfiguration"); + } + + /** + * Retrieves a list of floodlight configurations, possibly filtered. + * (floodlightConfigurations.listFloodlightConfigurations) + * + * @param string $profileId User profile ID associated with this request. + * @param array $optParams Optional parameters. + * + * @opt_param string ids Set of IDs of floodlight configurations to retrieve. + * Required field; otherwise an empty list will be returned. + * @return Google_Service_Dfareporting_FloodlightConfigurationsListResponse + */ + public function listFloodlightConfigurations($profileId, $optParams = array()) + { + $params = array('profileId' => $profileId); + $params = array_merge($params, $optParams); + return $this->call('list', array($params), "Google_Service_Dfareporting_FloodlightConfigurationsListResponse"); + } + + /** + * Updates an existing floodlight configuration. This method supports patch + * semantics. (floodlightConfigurations.patch) + * + * @param string $profileId User profile ID associated with this request. + * @param string $id Floodlight configuration ID. + * @param Google_FloodlightConfiguration $postBody + * @param array $optParams Optional parameters. + * @return Google_Service_Dfareporting_FloodlightConfiguration + */ + public function patch($profileId, $id, Google_Service_Dfareporting_FloodlightConfiguration $postBody, $optParams = array()) + { + $params = array('profileId' => $profileId, 'id' => $id, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('patch', array($params), "Google_Service_Dfareporting_FloodlightConfiguration"); + } + + /** + * Updates an existing floodlight configuration. + * (floodlightConfigurations.update) + * + * @param string $profileId User profile ID associated with this request. + * @param Google_FloodlightConfiguration $postBody + * @param array $optParams Optional parameters. + * @return Google_Service_Dfareporting_FloodlightConfiguration + */ + public function update($profileId, Google_Service_Dfareporting_FloodlightConfiguration $postBody, $optParams = array()) + { + $params = array('profileId' => $profileId, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('update', array($params), "Google_Service_Dfareporting_FloodlightConfiguration"); + } +} + +/** + * The "inventoryItems" collection of methods. + * Typical usage is: + * + * $dfareportingService = new Google_Service_Dfareporting(...); + * $inventoryItems = $dfareportingService->inventoryItems; + * + */ +class Google_Service_Dfareporting_InventoryItems_Resource extends Google_Service_Resource +{ + + /** + * Gets one inventory item by ID. (inventoryItems.get) + * + * @param string $profileId User profile ID associated with this request. + * @param string $projectId Project ID for order documents. + * @param string $id Inventory item ID. + * @param array $optParams Optional parameters. + * @return Google_Service_Dfareporting_InventoryItem + */ + public function get($profileId, $projectId, $id, $optParams = array()) + { + $params = array('profileId' => $profileId, 'projectId' => $projectId, 'id' => $id); + $params = array_merge($params, $optParams); + return $this->call('get', array($params), "Google_Service_Dfareporting_InventoryItem"); + } + + /** + * Retrieves a list of inventory items, possibly filtered. + * (inventoryItems.listInventoryItems) + * + * @param string $profileId User profile ID associated with this request. + * @param string $projectId Project ID for order documents. + * @param array $optParams Optional parameters. + * + * @opt_param string orderId Select only inventory items that belong to + * specified orders. + * @opt_param string ids Select only inventory items with these IDs. + * @opt_param int maxResults Maximum number of results to return. + * @opt_param string pageToken Value of the nextPageToken from the previous + * result page. + * @opt_param string siteId Select only inventory items that are associated with + * these sites. + * @opt_param bool inPlan Select only inventory items that are in plan. + * @opt_param string sortField Field by which to sort the list. + * @opt_param string sortOrder Order of sorted results, default is ASCENDING. + * @return Google_Service_Dfareporting_InventoryItemsListResponse + */ + public function listInventoryItems($profileId, $projectId, $optParams = array()) + { + $params = array('profileId' => $profileId, 'projectId' => $projectId); + $params = array_merge($params, $optParams); + return $this->call('list', array($params), "Google_Service_Dfareporting_InventoryItemsListResponse"); + } +} + +/** + * The "landingPages" collection of methods. + * Typical usage is: + * + * $dfareportingService = new Google_Service_Dfareporting(...); + * $landingPages = $dfareportingService->landingPages; + * + */ +class Google_Service_Dfareporting_LandingPages_Resource extends Google_Service_Resource +{ + + /** + * Deletes an existing campaign landing page. (landingPages.delete) + * + * @param string $profileId User profile ID associated with this request. + * @param string $campaignId Landing page campaign ID. + * @param string $id Landing page ID. + * @param array $optParams Optional parameters. + */ + public function delete($profileId, $campaignId, $id, $optParams = array()) + { + $params = array('profileId' => $profileId, 'campaignId' => $campaignId, 'id' => $id); + $params = array_merge($params, $optParams); + return $this->call('delete', array($params)); + } + + /** + * Gets one campaign landing page by ID. (landingPages.get) + * + * @param string $profileId User profile ID associated with this request. + * @param string $campaignId Landing page campaign ID. + * @param string $id Landing page ID. + * @param array $optParams Optional parameters. + * @return Google_Service_Dfareporting_LandingPage + */ + public function get($profileId, $campaignId, $id, $optParams = array()) + { + $params = array('profileId' => $profileId, 'campaignId' => $campaignId, 'id' => $id); + $params = array_merge($params, $optParams); + return $this->call('get', array($params), "Google_Service_Dfareporting_LandingPage"); + } + + /** + * Inserts a new landing page for the specified campaign. (landingPages.insert) + * + * @param string $profileId User profile ID associated with this request. + * @param string $campaignId Landing page campaign ID. + * @param Google_LandingPage $postBody + * @param array $optParams Optional parameters. + * @return Google_Service_Dfareporting_LandingPage + */ + public function insert($profileId, $campaignId, Google_Service_Dfareporting_LandingPage $postBody, $optParams = array()) + { + $params = array('profileId' => $profileId, 'campaignId' => $campaignId, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('insert', array($params), "Google_Service_Dfareporting_LandingPage"); + } + + /** + * Retrieves the list of landing pages for the specified campaign. + * (landingPages.listLandingPages) + * + * @param string $profileId User profile ID associated with this request. + * @param string $campaignId Landing page campaign ID. + * @param array $optParams Optional parameters. + * @return Google_Service_Dfareporting_LandingPagesListResponse + */ + public function listLandingPages($profileId, $campaignId, $optParams = array()) + { + $params = array('profileId' => $profileId, 'campaignId' => $campaignId); + $params = array_merge($params, $optParams); + return $this->call('list', array($params), "Google_Service_Dfareporting_LandingPagesListResponse"); + } + + /** + * Updates an existing campaign landing page. This method supports patch + * semantics. (landingPages.patch) + * + * @param string $profileId User profile ID associated with this request. + * @param string $campaignId Landing page campaign ID. + * @param string $id Landing page ID. + * @param Google_LandingPage $postBody + * @param array $optParams Optional parameters. + * @return Google_Service_Dfareporting_LandingPage + */ + public function patch($profileId, $campaignId, $id, Google_Service_Dfareporting_LandingPage $postBody, $optParams = array()) + { + $params = array('profileId' => $profileId, 'campaignId' => $campaignId, 'id' => $id, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('patch', array($params), "Google_Service_Dfareporting_LandingPage"); + } + + /** + * Updates an existing campaign landing page. (landingPages.update) + * + * @param string $profileId User profile ID associated with this request. + * @param string $campaignId Landing page campaign ID. + * @param Google_LandingPage $postBody + * @param array $optParams Optional parameters. + * @return Google_Service_Dfareporting_LandingPage + */ + public function update($profileId, $campaignId, Google_Service_Dfareporting_LandingPage $postBody, $optParams = array()) + { + $params = array('profileId' => $profileId, 'campaignId' => $campaignId, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('update', array($params), "Google_Service_Dfareporting_LandingPage"); + } +} + +/** + * The "metros" collection of methods. + * Typical usage is: + * + * $dfareportingService = new Google_Service_Dfareporting(...); + * $metros = $dfareportingService->metros; + * + */ +class Google_Service_Dfareporting_Metros_Resource extends Google_Service_Resource +{ + + /** + * Retrieves a list of metros. (metros.listMetros) + * + * @param string $profileId User profile ID associated with this request. + * @param array $optParams Optional parameters. + * @return Google_Service_Dfareporting_MetrosListResponse + */ + public function listMetros($profileId, $optParams = array()) + { + $params = array('profileId' => $profileId); + $params = array_merge($params, $optParams); + return $this->call('list', array($params), "Google_Service_Dfareporting_MetrosListResponse"); + } +} + +/** + * The "mobileCarriers" collection of methods. + * Typical usage is: + * + * $dfareportingService = new Google_Service_Dfareporting(...); + * $mobileCarriers = $dfareportingService->mobileCarriers; + * + */ +class Google_Service_Dfareporting_MobileCarriers_Resource extends Google_Service_Resource +{ + + /** + * Gets one mobile carrier by ID. (mobileCarriers.get) + * + * @param string $profileId User profile ID associated with this request. + * @param string $id Mobile carrier ID. + * @param array $optParams Optional parameters. + * @return Google_Service_Dfareporting_MobileCarrier + */ + public function get($profileId, $id, $optParams = array()) + { + $params = array('profileId' => $profileId, 'id' => $id); + $params = array_merge($params, $optParams); + return $this->call('get', array($params), "Google_Service_Dfareporting_MobileCarrier"); + } + + /** + * Retrieves a list of mobile carriers. (mobileCarriers.listMobileCarriers) + * + * @param string $profileId User profile ID associated with this request. + * @param array $optParams Optional parameters. + * @return Google_Service_Dfareporting_MobileCarriersListResponse + */ + public function listMobileCarriers($profileId, $optParams = array()) + { + $params = array('profileId' => $profileId); + $params = array_merge($params, $optParams); + return $this->call('list', array($params), "Google_Service_Dfareporting_MobileCarriersListResponse"); + } +} + +/** + * The "operatingSystemVersions" collection of methods. + * Typical usage is: + * + * $dfareportingService = new Google_Service_Dfareporting(...); + * $operatingSystemVersions = $dfareportingService->operatingSystemVersions; + * + */ +class Google_Service_Dfareporting_OperatingSystemVersions_Resource extends Google_Service_Resource +{ + + /** + * Gets one operating system version by ID. (operatingSystemVersions.get) + * + * @param string $profileId User profile ID associated with this request. + * @param string $id Operating system version ID. + * @param array $optParams Optional parameters. + * @return Google_Service_Dfareporting_OperatingSystemVersion + */ + public function get($profileId, $id, $optParams = array()) + { + $params = array('profileId' => $profileId, 'id' => $id); + $params = array_merge($params, $optParams); + return $this->call('get', array($params), "Google_Service_Dfareporting_OperatingSystemVersion"); + } + + /** + * Retrieves a list of operating system versions. + * (operatingSystemVersions.listOperatingSystemVersions) + * + * @param string $profileId User profile ID associated with this request. + * @param array $optParams Optional parameters. + * @return Google_Service_Dfareporting_OperatingSystemVersionsListResponse + */ + public function listOperatingSystemVersions($profileId, $optParams = array()) + { + $params = array('profileId' => $profileId); + $params = array_merge($params, $optParams); + return $this->call('list', array($params), "Google_Service_Dfareporting_OperatingSystemVersionsListResponse"); + } +} + +/** + * The "operatingSystems" collection of methods. + * Typical usage is: + * + * $dfareportingService = new Google_Service_Dfareporting(...); + * $operatingSystems = $dfareportingService->operatingSystems; + * + */ +class Google_Service_Dfareporting_OperatingSystems_Resource extends Google_Service_Resource +{ + + /** + * Gets one operating system by DART ID. (operatingSystems.get) + * + * @param string $profileId User profile ID associated with this request. + * @param string $dartId Operating system DART ID. + * @param array $optParams Optional parameters. + * @return Google_Service_Dfareporting_OperatingSystem + */ + public function get($profileId, $dartId, $optParams = array()) + { + $params = array('profileId' => $profileId, 'dartId' => $dartId); + $params = array_merge($params, $optParams); + return $this->call('get', array($params), "Google_Service_Dfareporting_OperatingSystem"); + } + + /** + * Retrieves a list of operating systems. + * (operatingSystems.listOperatingSystems) + * + * @param string $profileId User profile ID associated with this request. + * @param array $optParams Optional parameters. + * @return Google_Service_Dfareporting_OperatingSystemsListResponse + */ + public function listOperatingSystems($profileId, $optParams = array()) + { + $params = array('profileId' => $profileId); + $params = array_merge($params, $optParams); + return $this->call('list', array($params), "Google_Service_Dfareporting_OperatingSystemsListResponse"); + } +} + +/** + * The "orderDocuments" collection of methods. + * Typical usage is: + * + * $dfareportingService = new Google_Service_Dfareporting(...); + * $orderDocuments = $dfareportingService->orderDocuments; + * + */ +class Google_Service_Dfareporting_OrderDocuments_Resource extends Google_Service_Resource +{ + + /** + * Gets one order document by ID. (orderDocuments.get) + * + * @param string $profileId User profile ID associated with this request. + * @param string $projectId Project ID for order documents. + * @param string $id Order document ID. + * @param array $optParams Optional parameters. + * @return Google_Service_Dfareporting_OrderDocument + */ + public function get($profileId, $projectId, $id, $optParams = array()) + { + $params = array('profileId' => $profileId, 'projectId' => $projectId, 'id' => $id); + $params = array_merge($params, $optParams); + return $this->call('get', array($params), "Google_Service_Dfareporting_OrderDocument"); + } + + /** + * Retrieves a list of order documents, possibly filtered. + * (orderDocuments.listOrderDocuments) + * + * @param string $profileId User profile ID associated with this request. + * @param string $projectId Project ID for order documents. + * @param array $optParams Optional parameters. + * + * @opt_param string orderId Select only order documents for specified orders. + * @opt_param string searchString Allows searching for order documents by name + * or ID. Wildcards (*) are allowed. For example, "orderdocument*2015" will + * return order documents with names like "orderdocument June 2015", + * "orderdocument April 2015", or simply "orderdocument 2015". Most of the + * searches also add wildcards implicitly at the start and the end of the search + * string. For example, a search string of "orderdocument" will match order + * documents with name "my orderdocument", "orderdocument 2015", or simply + * "orderdocument". + * @opt_param string ids Select only order documents with these IDs. + * @opt_param int maxResults Maximum number of results to return. + * @opt_param string pageToken Value of the nextPageToken from the previous + * result page. + * @opt_param string siteId Select only order documents that are associated with + * these sites. + * @opt_param string sortOrder Order of sorted results, default is ASCENDING. + * @opt_param string sortField Field by which to sort the list. + * @opt_param bool approved Select only order documents that have been approved + * by at least one user. + * @return Google_Service_Dfareporting_OrderDocumentsListResponse + */ + public function listOrderDocuments($profileId, $projectId, $optParams = array()) + { + $params = array('profileId' => $profileId, 'projectId' => $projectId); + $params = array_merge($params, $optParams); + return $this->call('list', array($params), "Google_Service_Dfareporting_OrderDocumentsListResponse"); + } +} + +/** + * The "orders" collection of methods. + * Typical usage is: + * + * $dfareportingService = new Google_Service_Dfareporting(...); + * $orders = $dfareportingService->orders; + * + */ +class Google_Service_Dfareporting_Orders_Resource extends Google_Service_Resource +{ + + /** + * Gets one order by ID. (orders.get) + * + * @param string $profileId User profile ID associated with this request. + * @param string $projectId Project ID for orders. + * @param string $id Order ID. + * @param array $optParams Optional parameters. + * @return Google_Service_Dfareporting_Order + */ + public function get($profileId, $projectId, $id, $optParams = array()) + { + $params = array('profileId' => $profileId, 'projectId' => $projectId, 'id' => $id); + $params = array_merge($params, $optParams); + return $this->call('get', array($params), "Google_Service_Dfareporting_Order"); + } + + /** + * Retrieves a list of orders, possibly filtered. (orders.listOrders) + * + * @param string $profileId User profile ID associated with this request. + * @param string $projectId Project ID for orders. + * @param array $optParams Optional parameters. + * + * @opt_param string searchString Allows searching for orders by name or ID. + * Wildcards (*) are allowed. For example, "order*2015" will return orders with + * names like "order June 2015", "order April 2015", or simply "order 2015". + * Most of the searches also add wildcards implicitly at the start and the end + * of the search string. For example, a search string of "order" will match + * orders with name "my order", "order 2015", or simply "order". + * @opt_param string ids Select only orders with these IDs. + * @opt_param int maxResults Maximum number of results to return. + * @opt_param string pageToken Value of the nextPageToken from the previous + * result page. + * @opt_param string siteId Select only orders that are associated with these + * site IDs. + * @opt_param string sortOrder Order of sorted results, default is ASCENDING. + * @opt_param string sortField Field by which to sort the list. + * @return Google_Service_Dfareporting_OrdersListResponse + */ + public function listOrders($profileId, $projectId, $optParams = array()) + { + $params = array('profileId' => $profileId, 'projectId' => $projectId); + $params = array_merge($params, $optParams); + return $this->call('list', array($params), "Google_Service_Dfareporting_OrdersListResponse"); + } +} + +/** + * The "placementGroups" collection of methods. + * Typical usage is: + * + * $dfareportingService = new Google_Service_Dfareporting(...); + * $placementGroups = $dfareportingService->placementGroups; + * + */ +class Google_Service_Dfareporting_PlacementGroups_Resource extends Google_Service_Resource +{ + + /** + * Gets one placement group by ID. (placementGroups.get) + * + * @param string $profileId User profile ID associated with this request. + * @param string $id Placement group ID. + * @param array $optParams Optional parameters. + * @return Google_Service_Dfareporting_PlacementGroup + */ + public function get($profileId, $id, $optParams = array()) + { + $params = array('profileId' => $profileId, 'id' => $id); + $params = array_merge($params, $optParams); + return $this->call('get', array($params), "Google_Service_Dfareporting_PlacementGroup"); + } + + /** + * Inserts a new placement group. (placementGroups.insert) + * + * @param string $profileId User profile ID associated with this request. + * @param Google_PlacementGroup $postBody + * @param array $optParams Optional parameters. + * @return Google_Service_Dfareporting_PlacementGroup + */ + public function insert($profileId, Google_Service_Dfareporting_PlacementGroup $postBody, $optParams = array()) + { + $params = array('profileId' => $profileId, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('insert', array($params), "Google_Service_Dfareporting_PlacementGroup"); + } + + /** + * Retrieves a list of placement groups, possibly filtered. + * (placementGroups.listPlacementGroups) + * + * @param string $profileId User profile ID associated with this request. + * @param array $optParams Optional parameters. + * + * @opt_param string placementStrategyIds Select only placement groups that are + * associated with these placement strategies. + * @opt_param bool archived Select only archived placements. Don't set this + * field to select both archived and non-archived placements. + * @opt_param string searchString Allows searching for placement groups by name + * or ID. Wildcards (*) are allowed. For example, "placement*2015" will return + * placement groups with names like "placement group June 2015", "placement + * group May 2015", or simply "placements 2015". Most of the searches also add + * wildcards implicitly at the start and the end of the search string. For + * example, a search string of "placementgroup" will match placement groups with + * name "my placementgroup", "placementgroup 2015", or simply "placementgroup". + * @opt_param string contentCategoryIds Select only placement groups that are + * associated with these content categories. + * @opt_param string directorySiteIds Select only placement groups that are + * associated with these directory sites. + * @opt_param string sortField Field by which to sort the list. + * @opt_param string advertiserIds Select only placement groups that belong to + * these advertisers. + * @opt_param string ids Select only placement groups with these IDs. + * @opt_param int maxResults Maximum number of results to return. + * @opt_param string pageToken Value of the nextPageToken from the previous + * result page. + * @opt_param string sortOrder Order of sorted results, default is ASCENDING. + * @opt_param string placementGroupType Select only placement groups belonging + * with this group type. A package is a simple group of placements that acts as + * a single pricing point for a group of tags. A roadblock is a group of + * placements that not only acts as a single pricing point but also assumes that + * all the tags in it will be served at the same time. A roadblock requires one + * of its assigned placements to be marked as primary for reporting. + * @opt_param string pricingTypes Select only placement groups with these + * pricing types. + * @opt_param string siteIds Select only placement groups that are associated + * with these sites. + * @opt_param string campaignIds Select only placement groups that belong to + * these campaigns. + * @return Google_Service_Dfareporting_PlacementGroupsListResponse + */ + public function listPlacementGroups($profileId, $optParams = array()) + { + $params = array('profileId' => $profileId); + $params = array_merge($params, $optParams); + return $this->call('list', array($params), "Google_Service_Dfareporting_PlacementGroupsListResponse"); + } + + /** + * Updates an existing placement group. This method supports patch semantics. + * (placementGroups.patch) + * + * @param string $profileId User profile ID associated with this request. + * @param string $id Placement group ID. + * @param Google_PlacementGroup $postBody + * @param array $optParams Optional parameters. + * @return Google_Service_Dfareporting_PlacementGroup + */ + public function patch($profileId, $id, Google_Service_Dfareporting_PlacementGroup $postBody, $optParams = array()) + { + $params = array('profileId' => $profileId, 'id' => $id, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('patch', array($params), "Google_Service_Dfareporting_PlacementGroup"); + } + + /** + * Updates an existing placement group. (placementGroups.update) + * + * @param string $profileId User profile ID associated with this request. + * @param Google_PlacementGroup $postBody + * @param array $optParams Optional parameters. + * @return Google_Service_Dfareporting_PlacementGroup + */ + public function update($profileId, Google_Service_Dfareporting_PlacementGroup $postBody, $optParams = array()) + { + $params = array('profileId' => $profileId, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('update', array($params), "Google_Service_Dfareporting_PlacementGroup"); + } +} + +/** + * The "placementStrategies" collection of methods. + * Typical usage is: + * + * $dfareportingService = new Google_Service_Dfareporting(...); + * $placementStrategies = $dfareportingService->placementStrategies; + * + */ +class Google_Service_Dfareporting_PlacementStrategies_Resource extends Google_Service_Resource +{ + + /** + * Deletes an existing placement strategy. (placementStrategies.delete) + * + * @param string $profileId User profile ID associated with this request. + * @param string $id Placement strategy ID. + * @param array $optParams Optional parameters. + */ + public function delete($profileId, $id, $optParams = array()) + { + $params = array('profileId' => $profileId, 'id' => $id); + $params = array_merge($params, $optParams); + return $this->call('delete', array($params)); + } + + /** + * Gets one placement strategy by ID. (placementStrategies.get) + * + * @param string $profileId User profile ID associated with this request. + * @param string $id Placement strategy ID. + * @param array $optParams Optional parameters. + * @return Google_Service_Dfareporting_PlacementStrategy + */ + public function get($profileId, $id, $optParams = array()) + { + $params = array('profileId' => $profileId, 'id' => $id); + $params = array_merge($params, $optParams); + return $this->call('get', array($params), "Google_Service_Dfareporting_PlacementStrategy"); + } + + /** + * Inserts a new placement strategy. (placementStrategies.insert) + * + * @param string $profileId User profile ID associated with this request. + * @param Google_PlacementStrategy $postBody + * @param array $optParams Optional parameters. + * @return Google_Service_Dfareporting_PlacementStrategy + */ + public function insert($profileId, Google_Service_Dfareporting_PlacementStrategy $postBody, $optParams = array()) + { + $params = array('profileId' => $profileId, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('insert', array($params), "Google_Service_Dfareporting_PlacementStrategy"); + } + + /** + * Retrieves a list of placement strategies, possibly filtered. + * (placementStrategies.listPlacementStrategies) + * + * @param string $profileId User profile ID associated with this request. + * @param array $optParams Optional parameters. + * + * @opt_param string searchString Allows searching for objects by name or ID. + * Wildcards (*) are allowed. For example, "placementstrategy*2015" will return + * objects with names like "placementstrategy June 2015", "placementstrategy + * April 2015", or simply "placementstrategy 2015". Most of the searches also + * add wildcards implicitly at the start and the end of the search string. For + * example, a search string of "placementstrategy" will match objects with name + * "my placementstrategy", "placementstrategy 2015", or simply + * "placementstrategy". + * @opt_param string sortField Field by which to sort the list. + * @opt_param string ids Select only placement strategies with these IDs. + * @opt_param int maxResults Maximum number of results to return. + * @opt_param string pageToken Value of the nextPageToken from the previous + * result page. + * @opt_param string sortOrder Order of sorted results, default is ASCENDING. + * @return Google_Service_Dfareporting_PlacementStrategiesListResponse + */ + public function listPlacementStrategies($profileId, $optParams = array()) + { + $params = array('profileId' => $profileId); + $params = array_merge($params, $optParams); + return $this->call('list', array($params), "Google_Service_Dfareporting_PlacementStrategiesListResponse"); + } + + /** + * Updates an existing placement strategy. This method supports patch semantics. + * (placementStrategies.patch) + * + * @param string $profileId User profile ID associated with this request. + * @param string $id Placement strategy ID. + * @param Google_PlacementStrategy $postBody + * @param array $optParams Optional parameters. + * @return Google_Service_Dfareporting_PlacementStrategy + */ + public function patch($profileId, $id, Google_Service_Dfareporting_PlacementStrategy $postBody, $optParams = array()) + { + $params = array('profileId' => $profileId, 'id' => $id, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('patch', array($params), "Google_Service_Dfareporting_PlacementStrategy"); + } + + /** + * Updates an existing placement strategy. (placementStrategies.update) + * + * @param string $profileId User profile ID associated with this request. + * @param Google_PlacementStrategy $postBody + * @param array $optParams Optional parameters. + * @return Google_Service_Dfareporting_PlacementStrategy + */ + public function update($profileId, Google_Service_Dfareporting_PlacementStrategy $postBody, $optParams = array()) + { + $params = array('profileId' => $profileId, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('update', array($params), "Google_Service_Dfareporting_PlacementStrategy"); + } +} + +/** + * The "placements" collection of methods. + * Typical usage is: + * + * $dfareportingService = new Google_Service_Dfareporting(...); + * $placements = $dfareportingService->placements; + * + */ +class Google_Service_Dfareporting_Placements_Resource extends Google_Service_Resource +{ + + /** + * Generates tags for a placement. (placements.generatetags) + * + * @param string $profileId User profile ID associated with this request. + * @param array $optParams Optional parameters. + * + * @opt_param string tagFormats Tag formats to generate for these placements. + * @opt_param string placementIds Generate tags for these placements. + * @opt_param string campaignId Generate placements belonging to this campaign. + * This is a required field. + * @return Google_Service_Dfareporting_PlacementsGenerateTagsResponse + */ + public function generatetags($profileId, $optParams = array()) + { + $params = array('profileId' => $profileId); + $params = array_merge($params, $optParams); + return $this->call('generatetags', array($params), "Google_Service_Dfareporting_PlacementsGenerateTagsResponse"); + } + + /** + * Gets one placement by ID. (placements.get) + * + * @param string $profileId User profile ID associated with this request. + * @param string $id Placement ID. + * @param array $optParams Optional parameters. + * @return Google_Service_Dfareporting_Placement + */ + public function get($profileId, $id, $optParams = array()) + { + $params = array('profileId' => $profileId, 'id' => $id); + $params = array_merge($params, $optParams); + return $this->call('get', array($params), "Google_Service_Dfareporting_Placement"); + } + + /** + * Inserts a new placement. (placements.insert) + * + * @param string $profileId User profile ID associated with this request. + * @param Google_Placement $postBody + * @param array $optParams Optional parameters. + * @return Google_Service_Dfareporting_Placement + */ + public function insert($profileId, Google_Service_Dfareporting_Placement $postBody, $optParams = array()) + { + $params = array('profileId' => $profileId, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('insert', array($params), "Google_Service_Dfareporting_Placement"); + } + + /** + * Retrieves a list of placements, possibly filtered. + * (placements.listPlacements) + * + * @param string $profileId User profile ID associated with this request. + * @param array $optParams Optional parameters. + * + * @opt_param string placementStrategyIds Select only placements that are + * associated with these placement strategies. + * @opt_param string sortOrder Order of sorted results, default is ASCENDING. + * @opt_param bool archived Select only archived placements. Don't set this + * field to select both archived and non-archived placements. + * @opt_param string searchString Allows searching for placements by name or ID. + * Wildcards (*) are allowed. For example, "placement*2015" will return + * placements with names like "placement June 2015", "placement May 2015", or + * simply "placements 2015". Most of the searches also add wildcards implicitly + * at the start and the end of the search string. For example, a search string + * of "placement" will match placements with name "my placement", "placement + * 2015", or simply "placement". + * @opt_param string contentCategoryIds Select only placements that are + * associated with these content categories. + * @opt_param string directorySiteIds Select only placements that are associated + * with these directory sites. + * @opt_param string sortField Field by which to sort the list. + * @opt_param string advertiserIds Select only placements that belong to these + * advertisers. + * @opt_param string paymentSource Select only placements with this payment + * source. + * @opt_param string ids Select only placements with these IDs. + * @opt_param int maxResults Maximum number of results to return. + * @opt_param string sizeIds Select only placements that are associated with + * these sizes. + * @opt_param string pageToken Value of the nextPageToken from the previous + * result page. + * @opt_param string compatibilities Select only placements that are associated + * with these compatibilities. WEB and WEB_INTERSTITIAL refer to rendering + * either on desktop or on mobile devices for regular or interstitial ads + * respectively. APP and APP_INTERSTITIAL are for rendering in mobile + * apps.IN_STREAM_VIDEO refers to rendering in in-stream video ads developed + * with the VAST standard. + * @opt_param string groupIds Select only placements that belong to these + * placement groups. + * @opt_param string pricingTypes Select only placements with these pricing + * types. + * @opt_param string siteIds Select only placements that are associated with + * these sites. + * @opt_param string campaignIds Select only placements that belong to these + * campaigns. + * @return Google_Service_Dfareporting_PlacementsListResponse + */ + public function listPlacements($profileId, $optParams = array()) + { + $params = array('profileId' => $profileId); + $params = array_merge($params, $optParams); + return $this->call('list', array($params), "Google_Service_Dfareporting_PlacementsListResponse"); + } + + /** + * Updates an existing placement. This method supports patch semantics. + * (placements.patch) + * + * @param string $profileId User profile ID associated with this request. + * @param string $id Placement ID. + * @param Google_Placement $postBody + * @param array $optParams Optional parameters. + * @return Google_Service_Dfareporting_Placement + */ + public function patch($profileId, $id, Google_Service_Dfareporting_Placement $postBody, $optParams = array()) + { + $params = array('profileId' => $profileId, 'id' => $id, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('patch', array($params), "Google_Service_Dfareporting_Placement"); + } + + /** + * Updates an existing placement. (placements.update) + * + * @param string $profileId User profile ID associated with this request. + * @param Google_Placement $postBody + * @param array $optParams Optional parameters. + * @return Google_Service_Dfareporting_Placement + */ + public function update($profileId, Google_Service_Dfareporting_Placement $postBody, $optParams = array()) + { + $params = array('profileId' => $profileId, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('update', array($params), "Google_Service_Dfareporting_Placement"); + } +} + +/** + * The "platformTypes" collection of methods. + * Typical usage is: + * + * $dfareportingService = new Google_Service_Dfareporting(...); + * $platformTypes = $dfareportingService->platformTypes; + * + */ +class Google_Service_Dfareporting_PlatformTypes_Resource extends Google_Service_Resource +{ + + /** + * Gets one platform type by ID. (platformTypes.get) + * + * @param string $profileId User profile ID associated with this request. + * @param string $id Platform type ID. + * @param array $optParams Optional parameters. + * @return Google_Service_Dfareporting_PlatformType + */ + public function get($profileId, $id, $optParams = array()) + { + $params = array('profileId' => $profileId, 'id' => $id); + $params = array_merge($params, $optParams); + return $this->call('get', array($params), "Google_Service_Dfareporting_PlatformType"); + } + + /** + * Retrieves a list of platform types. (platformTypes.listPlatformTypes) + * + * @param string $profileId User profile ID associated with this request. + * @param array $optParams Optional parameters. + * @return Google_Service_Dfareporting_PlatformTypesListResponse + */ + public function listPlatformTypes($profileId, $optParams = array()) + { + $params = array('profileId' => $profileId); + $params = array_merge($params, $optParams); + return $this->call('list', array($params), "Google_Service_Dfareporting_PlatformTypesListResponse"); + } +} + +/** + * The "postalCodes" collection of methods. + * Typical usage is: + * + * $dfareportingService = new Google_Service_Dfareporting(...); + * $postalCodes = $dfareportingService->postalCodes; + * + */ +class Google_Service_Dfareporting_PostalCodes_Resource extends Google_Service_Resource +{ + + /** + * Gets one postal code by ID. (postalCodes.get) + * + * @param string $profileId User profile ID associated with this request. + * @param string $code Postal code ID. + * @param array $optParams Optional parameters. + * @return Google_Service_Dfareporting_PostalCode + */ + public function get($profileId, $code, $optParams = array()) + { + $params = array('profileId' => $profileId, 'code' => $code); + $params = array_merge($params, $optParams); + return $this->call('get', array($params), "Google_Service_Dfareporting_PostalCode"); + } + + /** + * Retrieves a list of postal codes. (postalCodes.listPostalCodes) + * + * @param string $profileId User profile ID associated with this request. + * @param array $optParams Optional parameters. + * @return Google_Service_Dfareporting_PostalCodesListResponse + */ + public function listPostalCodes($profileId, $optParams = array()) + { + $params = array('profileId' => $profileId); + $params = array_merge($params, $optParams); + return $this->call('list', array($params), "Google_Service_Dfareporting_PostalCodesListResponse"); + } +} + +/** + * The "projects" collection of methods. + * Typical usage is: + * + * $dfareportingService = new Google_Service_Dfareporting(...); + * $projects = $dfareportingService->projects; + * + */ +class Google_Service_Dfareporting_Projects_Resource extends Google_Service_Resource +{ + + /** + * Gets one project by ID. (projects.get) + * + * @param string $profileId User profile ID associated with this request. + * @param string $id Project ID. + * @param array $optParams Optional parameters. + * @return Google_Service_Dfareporting_Project + */ + public function get($profileId, $id, $optParams = array()) + { + $params = array('profileId' => $profileId, 'id' => $id); + $params = array_merge($params, $optParams); + return $this->call('get', array($params), "Google_Service_Dfareporting_Project"); + } + + /** + * Retrieves a list of projects, possibly filtered. (projects.listProjects) + * + * @param string $profileId User profile ID associated with this request. + * @param array $optParams Optional parameters. + * + * @opt_param string searchString Allows searching for projects by name or ID. + * Wildcards (*) are allowed. For example, "project*2015" will return projects + * with names like "project June 2015", "project April 2015", or simply "project + * 2015". Most of the searches also add wildcards implicitly at the start and + * the end of the search string. For example, a search string of "project" will + * match projects with name "my project", "project 2015", or simply "project". + * @opt_param string sortField Field by which to sort the list. + * @opt_param string advertiserIds Select only projects with these advertiser + * IDs. + * @opt_param string ids Select only projects with these IDs. + * @opt_param int maxResults Maximum number of results to return. + * @opt_param string pageToken Value of the nextPageToken from the previous + * result page. + * @opt_param string sortOrder Order of sorted results, default is ASCENDING. + * @return Google_Service_Dfareporting_ProjectsListResponse + */ + public function listProjects($profileId, $optParams = array()) + { + $params = array('profileId' => $profileId); + $params = array_merge($params, $optParams); + return $this->call('list', array($params), "Google_Service_Dfareporting_ProjectsListResponse"); + } +} + +/** + * The "regions" collection of methods. + * Typical usage is: + * + * $dfareportingService = new Google_Service_Dfareporting(...); + * $regions = $dfareportingService->regions; + * + */ +class Google_Service_Dfareporting_Regions_Resource extends Google_Service_Resource +{ + + /** + * Retrieves a list of regions. (regions.listRegions) + * + * @param string $profileId User profile ID associated with this request. + * @param array $optParams Optional parameters. + * @return Google_Service_Dfareporting_RegionsListResponse + */ + public function listRegions($profileId, $optParams = array()) + { + $params = array('profileId' => $profileId); + $params = array_merge($params, $optParams); + return $this->call('list', array($params), "Google_Service_Dfareporting_RegionsListResponse"); + } +} + +/** + * The "remarketingListShares" collection of methods. + * Typical usage is: + * + * $dfareportingService = new Google_Service_Dfareporting(...); + * $remarketingListShares = $dfareportingService->remarketingListShares; + * + */ +class Google_Service_Dfareporting_RemarketingListShares_Resource extends Google_Service_Resource +{ + + /** + * Gets one remarketing list share by remarketing list ID. + * (remarketingListShares.get) + * + * @param string $profileId User profile ID associated with this request. + * @param string $remarketingListId Remarketing list ID. + * @param array $optParams Optional parameters. + * @return Google_Service_Dfareporting_RemarketingListShare + */ + public function get($profileId, $remarketingListId, $optParams = array()) + { + $params = array('profileId' => $profileId, 'remarketingListId' => $remarketingListId); + $params = array_merge($params, $optParams); + return $this->call('get', array($params), "Google_Service_Dfareporting_RemarketingListShare"); + } + + /** + * Updates an existing remarketing list share. This method supports patch + * semantics. (remarketingListShares.patch) + * + * @param string $profileId User profile ID associated with this request. + * @param string $remarketingListId Remarketing list ID. + * @param Google_RemarketingListShare $postBody + * @param array $optParams Optional parameters. + * @return Google_Service_Dfareporting_RemarketingListShare + */ + public function patch($profileId, $remarketingListId, Google_Service_Dfareporting_RemarketingListShare $postBody, $optParams = array()) + { + $params = array('profileId' => $profileId, 'remarketingListId' => $remarketingListId, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('patch', array($params), "Google_Service_Dfareporting_RemarketingListShare"); + } + + /** + * Updates an existing remarketing list share. (remarketingListShares.update) + * + * @param string $profileId User profile ID associated with this request. + * @param Google_RemarketingListShare $postBody + * @param array $optParams Optional parameters. + * @return Google_Service_Dfareporting_RemarketingListShare + */ + public function update($profileId, Google_Service_Dfareporting_RemarketingListShare $postBody, $optParams = array()) + { + $params = array('profileId' => $profileId, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('update', array($params), "Google_Service_Dfareporting_RemarketingListShare"); + } +} + +/** + * The "remarketingLists" collection of methods. + * Typical usage is: + * + * $dfareportingService = new Google_Service_Dfareporting(...); + * $remarketingLists = $dfareportingService->remarketingLists; + * + */ +class Google_Service_Dfareporting_RemarketingLists_Resource extends Google_Service_Resource +{ + + /** + * Gets one remarketing list by ID. (remarketingLists.get) + * + * @param string $profileId User profile ID associated with this request. + * @param string $id Remarketing list ID. + * @param array $optParams Optional parameters. + * @return Google_Service_Dfareporting_RemarketingList + */ + public function get($profileId, $id, $optParams = array()) + { + $params = array('profileId' => $profileId, 'id' => $id); + $params = array_merge($params, $optParams); + return $this->call('get', array($params), "Google_Service_Dfareporting_RemarketingList"); + } + + /** + * Inserts a new remarketing list. (remarketingLists.insert) + * + * @param string $profileId User profile ID associated with this request. + * @param Google_RemarketingList $postBody + * @param array $optParams Optional parameters. + * @return Google_Service_Dfareporting_RemarketingList + */ + public function insert($profileId, Google_Service_Dfareporting_RemarketingList $postBody, $optParams = array()) + { + $params = array('profileId' => $profileId, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('insert', array($params), "Google_Service_Dfareporting_RemarketingList"); + } + + /** + * Retrieves a list of remarketing lists, possibly filtered. + * (remarketingLists.listRemarketingLists) + * + * @param string $profileId User profile ID associated with this request. + * @param string $advertiserId Select only remarketing lists owned by this + * advertiser. + * @param array $optParams Optional parameters. + * + * @opt_param string name Allows searching for objects by name or ID. Wildcards + * (*) are allowed. For example, "remarketing list*2015" will return objects + * with names like "remarketing list June 2015", "remarketing list April 2015", + * or simply "remarketing list 2015". Most of the searches also add wildcards + * implicitly at the start and the end of the search string. For example, a + * search string of "remarketing list" will match objects with name "my + * remarketing list", "remarketing list 2015", or simply "remarketing list". + * @opt_param string sortField Field by which to sort the list. + * @opt_param int maxResults Maximum number of results to return. + * @opt_param string pageToken Value of the nextPageToken from the previous + * result page. + * @opt_param string sortOrder Order of sorted results, default is ASCENDING. + * @opt_param bool active Select only active or only inactive remarketing lists. + * @opt_param string floodlightActivityId Select only remarketing lists that + * have this floodlight activity ID. + * @return Google_Service_Dfareporting_RemarketingListsListResponse + */ + public function listRemarketingLists($profileId, $advertiserId, $optParams = array()) + { + $params = array('profileId' => $profileId, 'advertiserId' => $advertiserId); + $params = array_merge($params, $optParams); + return $this->call('list', array($params), "Google_Service_Dfareporting_RemarketingListsListResponse"); + } + + /** + * Updates an existing remarketing list. This method supports patch semantics. + * (remarketingLists.patch) + * + * @param string $profileId User profile ID associated with this request. + * @param string $id Remarketing list ID. + * @param Google_RemarketingList $postBody + * @param array $optParams Optional parameters. + * @return Google_Service_Dfareporting_RemarketingList + */ + public function patch($profileId, $id, Google_Service_Dfareporting_RemarketingList $postBody, $optParams = array()) + { + $params = array('profileId' => $profileId, 'id' => $id, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('patch', array($params), "Google_Service_Dfareporting_RemarketingList"); + } + + /** + * Updates an existing remarketing list. (remarketingLists.update) + * + * @param string $profileId User profile ID associated with this request. + * @param Google_RemarketingList $postBody + * @param array $optParams Optional parameters. + * @return Google_Service_Dfareporting_RemarketingList + */ + public function update($profileId, Google_Service_Dfareporting_RemarketingList $postBody, $optParams = array()) + { + $params = array('profileId' => $profileId, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('update', array($params), "Google_Service_Dfareporting_RemarketingList"); + } +} + /** * The "reports" collection of methods. * Typical usage is: @@ -661,6 +8293,342 @@ class Google_Service_Dfareporting_ReportsFiles_Resource extends Google_Service_R } } +/** + * The "sites" collection of methods. + * Typical usage is: + * + * $dfareportingService = new Google_Service_Dfareporting(...); + * $sites = $dfareportingService->sites; + * + */ +class Google_Service_Dfareporting_Sites_Resource extends Google_Service_Resource +{ + + /** + * Gets one site by ID. (sites.get) + * + * @param string $profileId User profile ID associated with this request. + * @param string $id Site ID. + * @param array $optParams Optional parameters. + * @return Google_Service_Dfareporting_Site + */ + public function get($profileId, $id, $optParams = array()) + { + $params = array('profileId' => $profileId, 'id' => $id); + $params = array_merge($params, $optParams); + return $this->call('get', array($params), "Google_Service_Dfareporting_Site"); + } + + /** + * Inserts a new site. (sites.insert) + * + * @param string $profileId User profile ID associated with this request. + * @param Google_Site $postBody + * @param array $optParams Optional parameters. + * @return Google_Service_Dfareporting_Site + */ + public function insert($profileId, Google_Service_Dfareporting_Site $postBody, $optParams = array()) + { + $params = array('profileId' => $profileId, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('insert', array($params), "Google_Service_Dfareporting_Site"); + } + + /** + * Retrieves a list of sites, possibly filtered. (sites.listSites) + * + * @param string $profileId User profile ID associated with this request. + * @param array $optParams Optional parameters. + * + * @opt_param bool acceptsInterstitialPlacements This search filter is no longer + * supported and will have no effect on the results returned. + * @opt_param string sortOrder Order of sorted results, default is ASCENDING. + * @opt_param string searchString Allows searching for objects by name, ID or + * keyName. Wildcards (*) are allowed. For example, "site*2015" will return + * objects with names like "site June 2015", "site April 2015", or simply "site + * 2015". Most of the searches also add wildcards implicitly at the start and + * the end of the search string. For example, a search string of "site" will + * match objects with name "my site", "site 2015", or simply "site". + * @opt_param string subaccountId Select only sites with this subaccount ID. + * @opt_param string directorySiteIds Select only sites with these directory + * site IDs. + * @opt_param bool acceptsInStreamVideoPlacements This search filter is no + * longer supported and will have no effect on the results returned. + * @opt_param string ids Select only sites with these IDs. + * @opt_param int maxResults Maximum number of results to return. + * @opt_param string pageToken Value of the nextPageToken from the previous + * result page. + * @opt_param bool acceptsPublisherPaidPlacements Select only sites that accept + * publisher paid placements. + * @opt_param string sortField Field by which to sort the list. + * @opt_param bool adWordsSite Select only AdWords sites. + * @opt_param bool unmappedSite Select only sites that have not been mapped to a + * directory site. + * @opt_param bool approved Select only approved sites. + * @opt_param string campaignIds Select only sites with these campaign IDs. + * @return Google_Service_Dfareporting_SitesListResponse + */ + public function listSites($profileId, $optParams = array()) + { + $params = array('profileId' => $profileId); + $params = array_merge($params, $optParams); + return $this->call('list', array($params), "Google_Service_Dfareporting_SitesListResponse"); + } + + /** + * Updates an existing site. This method supports patch semantics. (sites.patch) + * + * @param string $profileId User profile ID associated with this request. + * @param string $id Site ID. + * @param Google_Site $postBody + * @param array $optParams Optional parameters. + * @return Google_Service_Dfareporting_Site + */ + public function patch($profileId, $id, Google_Service_Dfareporting_Site $postBody, $optParams = array()) + { + $params = array('profileId' => $profileId, 'id' => $id, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('patch', array($params), "Google_Service_Dfareporting_Site"); + } + + /** + * Updates an existing site. (sites.update) + * + * @param string $profileId User profile ID associated with this request. + * @param Google_Site $postBody + * @param array $optParams Optional parameters. + * @return Google_Service_Dfareporting_Site + */ + public function update($profileId, Google_Service_Dfareporting_Site $postBody, $optParams = array()) + { + $params = array('profileId' => $profileId, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('update', array($params), "Google_Service_Dfareporting_Site"); + } +} + +/** + * The "sizes" collection of methods. + * Typical usage is: + * + * $dfareportingService = new Google_Service_Dfareporting(...); + * $sizes = $dfareportingService->sizes; + * + */ +class Google_Service_Dfareporting_Sizes_Resource extends Google_Service_Resource +{ + + /** + * Gets one size by ID. (sizes.get) + * + * @param string $profileId User profile ID associated with this request. + * @param string $id Size ID. + * @param array $optParams Optional parameters. + * @return Google_Service_Dfareporting_Size + */ + public function get($profileId, $id, $optParams = array()) + { + $params = array('profileId' => $profileId, 'id' => $id); + $params = array_merge($params, $optParams); + return $this->call('get', array($params), "Google_Service_Dfareporting_Size"); + } + + /** + * Inserts a new size. (sizes.insert) + * + * @param string $profileId User profile ID associated with this request. + * @param Google_Size $postBody + * @param array $optParams Optional parameters. + * @return Google_Service_Dfareporting_Size + */ + public function insert($profileId, Google_Service_Dfareporting_Size $postBody, $optParams = array()) + { + $params = array('profileId' => $profileId, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('insert', array($params), "Google_Service_Dfareporting_Size"); + } + + /** + * Retrieves a list of sizes, possibly filtered. (sizes.listSizes) + * + * @param string $profileId User profile ID associated with this request. + * @param array $optParams Optional parameters. + * + * @opt_param bool iabStandard Select only IAB standard sizes. + * @opt_param int width Select only sizes with this width. + * @opt_param string ids Select only sizes with these IDs. + * @opt_param int height Select only sizes with this height. + * @return Google_Service_Dfareporting_SizesListResponse + */ + public function listSizes($profileId, $optParams = array()) + { + $params = array('profileId' => $profileId); + $params = array_merge($params, $optParams); + return $this->call('list', array($params), "Google_Service_Dfareporting_SizesListResponse"); + } +} + +/** + * The "subaccounts" collection of methods. + * Typical usage is: + * + * $dfareportingService = new Google_Service_Dfareporting(...); + * $subaccounts = $dfareportingService->subaccounts; + * + */ +class Google_Service_Dfareporting_Subaccounts_Resource extends Google_Service_Resource +{ + + /** + * Gets one subaccount by ID. (subaccounts.get) + * + * @param string $profileId User profile ID associated with this request. + * @param string $id Subaccount ID. + * @param array $optParams Optional parameters. + * @return Google_Service_Dfareporting_Subaccount + */ + public function get($profileId, $id, $optParams = array()) + { + $params = array('profileId' => $profileId, 'id' => $id); + $params = array_merge($params, $optParams); + return $this->call('get', array($params), "Google_Service_Dfareporting_Subaccount"); + } + + /** + * Inserts a new subaccount. (subaccounts.insert) + * + * @param string $profileId User profile ID associated with this request. + * @param Google_Subaccount $postBody + * @param array $optParams Optional parameters. + * @return Google_Service_Dfareporting_Subaccount + */ + public function insert($profileId, Google_Service_Dfareporting_Subaccount $postBody, $optParams = array()) + { + $params = array('profileId' => $profileId, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('insert', array($params), "Google_Service_Dfareporting_Subaccount"); + } + + /** + * Gets a list of subaccounts, possibly filtered. (subaccounts.listSubaccounts) + * + * @param string $profileId User profile ID associated with this request. + * @param array $optParams Optional parameters. + * + * @opt_param string searchString Allows searching for objects by name or ID. + * Wildcards (*) are allowed. For example, "subaccount*2015" will return objects + * with names like "subaccount June 2015", "subaccount April 2015", or simply + * "subaccount 2015". Most of the searches also add wildcards implicitly at the + * start and the end of the search string. For example, a search string of + * "subaccount" will match objects with name "my subaccount", "subaccount 2015", + * or simply "subaccount". + * @opt_param string sortField Field by which to sort the list. + * @opt_param string ids Select only subaccounts with these IDs. + * @opt_param int maxResults Maximum number of results to return. + * @opt_param string pageToken Value of the nextPageToken from the previous + * result page. + * @opt_param string sortOrder Order of sorted results, default is ASCENDING. + * @return Google_Service_Dfareporting_SubaccountsListResponse + */ + public function listSubaccounts($profileId, $optParams = array()) + { + $params = array('profileId' => $profileId); + $params = array_merge($params, $optParams); + return $this->call('list', array($params), "Google_Service_Dfareporting_SubaccountsListResponse"); + } + + /** + * Updates an existing subaccount. This method supports patch semantics. + * (subaccounts.patch) + * + * @param string $profileId User profile ID associated with this request. + * @param string $id Subaccount ID. + * @param Google_Subaccount $postBody + * @param array $optParams Optional parameters. + * @return Google_Service_Dfareporting_Subaccount + */ + public function patch($profileId, $id, Google_Service_Dfareporting_Subaccount $postBody, $optParams = array()) + { + $params = array('profileId' => $profileId, 'id' => $id, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('patch', array($params), "Google_Service_Dfareporting_Subaccount"); + } + + /** + * Updates an existing subaccount. (subaccounts.update) + * + * @param string $profileId User profile ID associated with this request. + * @param Google_Subaccount $postBody + * @param array $optParams Optional parameters. + * @return Google_Service_Dfareporting_Subaccount + */ + public function update($profileId, Google_Service_Dfareporting_Subaccount $postBody, $optParams = array()) + { + $params = array('profileId' => $profileId, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('update', array($params), "Google_Service_Dfareporting_Subaccount"); + } +} + +/** + * The "targetableRemarketingLists" collection of methods. + * Typical usage is: + * + * $dfareportingService = new Google_Service_Dfareporting(...); + * $targetableRemarketingLists = $dfareportingService->targetableRemarketingLists; + * + */ +class Google_Service_Dfareporting_TargetableRemarketingLists_Resource extends Google_Service_Resource +{ + + /** + * Gets one remarketing list by ID. (targetableRemarketingLists.get) + * + * @param string $profileId User profile ID associated with this request. + * @param string $id Remarketing list ID. + * @param array $optParams Optional parameters. + * @return Google_Service_Dfareporting_TargetableRemarketingList + */ + public function get($profileId, $id, $optParams = array()) + { + $params = array('profileId' => $profileId, 'id' => $id); + $params = array_merge($params, $optParams); + return $this->call('get', array($params), "Google_Service_Dfareporting_TargetableRemarketingList"); + } + + /** + * Retrieves a list of targetable remarketing lists, possibly filtered. + * (targetableRemarketingLists.listTargetableRemarketingLists) + * + * @param string $profileId User profile ID associated with this request. + * @param string $advertiserId Select only targetable remarketing lists + * targetable by these advertisers. + * @param array $optParams Optional parameters. + * + * @opt_param string name Allows searching for objects by name or ID. Wildcards + * (*) are allowed. For example, "remarketing list*2015" will return objects + * with names like "remarketing list June 2015", "remarketing list April 2015", + * or simply "remarketing list 2015". Most of the searches also add wildcards + * implicitly at the start and the end of the search string. For example, a + * search string of "remarketing list" will match objects with name "my + * remarketing list", "remarketing list 2015", or simply "remarketing list". + * @opt_param string sortField Field by which to sort the list. + * @opt_param int maxResults Maximum number of results to return. + * @opt_param string pageToken Value of the nextPageToken from the previous + * result page. + * @opt_param string sortOrder Order of sorted results, default is ASCENDING. + * @opt_param bool active Select only active or only inactive targetable + * remarketing lists. + * @return Google_Service_Dfareporting_TargetableRemarketingListsListResponse + */ + public function listTargetableRemarketingLists($profileId, $advertiserId, $optParams = array()) + { + $params = array('profileId' => $profileId, 'advertiserId' => $advertiserId); + $params = array_merge($params, $optParams); + return $this->call('list', array($params), "Google_Service_Dfareporting_TargetableRemarketingListsListResponse"); + } +} + /** * The "userProfiles" collection of methods. * Typical usage is: @@ -700,9 +8668,833 @@ class Google_Service_Dfareporting_UserProfiles_Resource extends Google_Service_R } } +/** + * The "userRolePermissionGroups" collection of methods. + * Typical usage is: + * + * $dfareportingService = new Google_Service_Dfareporting(...); + * $userRolePermissionGroups = $dfareportingService->userRolePermissionGroups; + * + */ +class Google_Service_Dfareporting_UserRolePermissionGroups_Resource extends Google_Service_Resource +{ + + /** + * Gets one user role permission group by ID. (userRolePermissionGroups.get) + * + * @param string $profileId User profile ID associated with this request. + * @param string $id User role permission group ID. + * @param array $optParams Optional parameters. + * @return Google_Service_Dfareporting_UserRolePermissionGroup + */ + public function get($profileId, $id, $optParams = array()) + { + $params = array('profileId' => $profileId, 'id' => $id); + $params = array_merge($params, $optParams); + return $this->call('get', array($params), "Google_Service_Dfareporting_UserRolePermissionGroup"); + } + + /** + * Gets a list of all supported user role permission groups. + * (userRolePermissionGroups.listUserRolePermissionGroups) + * + * @param string $profileId User profile ID associated with this request. + * @param array $optParams Optional parameters. + * @return Google_Service_Dfareporting_UserRolePermissionGroupsListResponse + */ + public function listUserRolePermissionGroups($profileId, $optParams = array()) + { + $params = array('profileId' => $profileId); + $params = array_merge($params, $optParams); + return $this->call('list', array($params), "Google_Service_Dfareporting_UserRolePermissionGroupsListResponse"); + } +} + +/** + * The "userRolePermissions" collection of methods. + * Typical usage is: + * + * $dfareportingService = new Google_Service_Dfareporting(...); + * $userRolePermissions = $dfareportingService->userRolePermissions; + * + */ +class Google_Service_Dfareporting_UserRolePermissions_Resource extends Google_Service_Resource +{ + + /** + * Gets one user role permission by ID. (userRolePermissions.get) + * + * @param string $profileId User profile ID associated with this request. + * @param string $id User role permission ID. + * @param array $optParams Optional parameters. + * @return Google_Service_Dfareporting_UserRolePermission + */ + public function get($profileId, $id, $optParams = array()) + { + $params = array('profileId' => $profileId, 'id' => $id); + $params = array_merge($params, $optParams); + return $this->call('get', array($params), "Google_Service_Dfareporting_UserRolePermission"); + } + + /** + * Gets a list of user role permissions, possibly filtered. + * (userRolePermissions.listUserRolePermissions) + * + * @param string $profileId User profile ID associated with this request. + * @param array $optParams Optional parameters. + * + * @opt_param string ids Select only user role permissions with these IDs. + * @return Google_Service_Dfareporting_UserRolePermissionsListResponse + */ + public function listUserRolePermissions($profileId, $optParams = array()) + { + $params = array('profileId' => $profileId); + $params = array_merge($params, $optParams); + return $this->call('list', array($params), "Google_Service_Dfareporting_UserRolePermissionsListResponse"); + } +} + +/** + * The "userRoles" collection of methods. + * Typical usage is: + * + * $dfareportingService = new Google_Service_Dfareporting(...); + * $userRoles = $dfareportingService->userRoles; + * + */ +class Google_Service_Dfareporting_UserRoles_Resource extends Google_Service_Resource +{ + + /** + * Deletes an existing user role. (userRoles.delete) + * + * @param string $profileId User profile ID associated with this request. + * @param string $id User role ID. + * @param array $optParams Optional parameters. + */ + public function delete($profileId, $id, $optParams = array()) + { + $params = array('profileId' => $profileId, 'id' => $id); + $params = array_merge($params, $optParams); + return $this->call('delete', array($params)); + } + + /** + * Gets one user role by ID. (userRoles.get) + * + * @param string $profileId User profile ID associated with this request. + * @param string $id User role ID. + * @param array $optParams Optional parameters. + * @return Google_Service_Dfareporting_UserRole + */ + public function get($profileId, $id, $optParams = array()) + { + $params = array('profileId' => $profileId, 'id' => $id); + $params = array_merge($params, $optParams); + return $this->call('get', array($params), "Google_Service_Dfareporting_UserRole"); + } + + /** + * Inserts a new user role. (userRoles.insert) + * + * @param string $profileId User profile ID associated with this request. + * @param Google_UserRole $postBody + * @param array $optParams Optional parameters. + * @return Google_Service_Dfareporting_UserRole + */ + public function insert($profileId, Google_Service_Dfareporting_UserRole $postBody, $optParams = array()) + { + $params = array('profileId' => $profileId, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('insert', array($params), "Google_Service_Dfareporting_UserRole"); + } + + /** + * Retrieves a list of user roles, possibly filtered. (userRoles.listUserRoles) + * + * @param string $profileId User profile ID associated with this request. + * @param array $optParams Optional parameters. + * + * @opt_param string searchString Allows searching for objects by name or ID. + * Wildcards (*) are allowed. For example, "userrole*2015" will return objects + * with names like "userrole June 2015", "userrole April 2015", or simply + * "userrole 2015". Most of the searches also add wildcards implicitly at the + * start and the end of the search string. For example, a search string of + * "userrole" will match objects with name "my userrole", "userrole 2015", or + * simply "userrole". + * @opt_param string subaccountId Select only user roles that belong to this + * subaccount. + * @opt_param string sortField Field by which to sort the list. + * @opt_param string ids Select only user roles with the specified IDs. + * @opt_param int maxResults Maximum number of results to return. + * @opt_param string pageToken Value of the nextPageToken from the previous + * result page. + * @opt_param string sortOrder Order of sorted results, default is ASCENDING. + * @opt_param bool accountUserRoleOnly Select only account level user roles not + * associated with any specific subaccount. + * @return Google_Service_Dfareporting_UserRolesListResponse + */ + public function listUserRoles($profileId, $optParams = array()) + { + $params = array('profileId' => $profileId); + $params = array_merge($params, $optParams); + return $this->call('list', array($params), "Google_Service_Dfareporting_UserRolesListResponse"); + } + + /** + * Updates an existing user role. This method supports patch semantics. + * (userRoles.patch) + * + * @param string $profileId User profile ID associated with this request. + * @param string $id User role ID. + * @param Google_UserRole $postBody + * @param array $optParams Optional parameters. + * @return Google_Service_Dfareporting_UserRole + */ + public function patch($profileId, $id, Google_Service_Dfareporting_UserRole $postBody, $optParams = array()) + { + $params = array('profileId' => $profileId, 'id' => $id, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('patch', array($params), "Google_Service_Dfareporting_UserRole"); + } + + /** + * Updates an existing user role. (userRoles.update) + * + * @param string $profileId User profile ID associated with this request. + * @param Google_UserRole $postBody + * @param array $optParams Optional parameters. + * @return Google_Service_Dfareporting_UserRole + */ + public function update($profileId, Google_Service_Dfareporting_UserRole $postBody, $optParams = array()) + { + $params = array('profileId' => $profileId, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('update', array($params), "Google_Service_Dfareporting_UserRole"); + } +} + +class Google_Service_Dfareporting_Account extends Google_Collection +{ + protected $collection_key = 'availablePermissionIds'; + protected $internal_gapi_mappings = array( + ); + public $accountPermissionIds; + public $accountProfile; + public $active; + public $activeAdsLimitTier; + public $activeViewOptOut; + public $availablePermissionIds; + public $comscoreVceEnabled; + public $countryId; + public $currencyId; + public $defaultCreativeSizeId; + public $description; + public $id; + public $kind; + public $locale; + public $maximumImageSize; + public $name; + public $nielsenOcrEnabled; + protected $reportsConfigurationType = 'Google_Service_Dfareporting_ReportsConfiguration'; + protected $reportsConfigurationDataType = ''; + public $teaserSizeLimit; + + + public function setAccountPermissionIds($accountPermissionIds) + { + $this->accountPermissionIds = $accountPermissionIds; + } + public function getAccountPermissionIds() + { + return $this->accountPermissionIds; + } + public function setAccountProfile($accountProfile) + { + $this->accountProfile = $accountProfile; + } + public function getAccountProfile() + { + return $this->accountProfile; + } + public function setActive($active) + { + $this->active = $active; + } + public function getActive() + { + return $this->active; + } + public function setActiveAdsLimitTier($activeAdsLimitTier) + { + $this->activeAdsLimitTier = $activeAdsLimitTier; + } + public function getActiveAdsLimitTier() + { + return $this->activeAdsLimitTier; + } + public function setActiveViewOptOut($activeViewOptOut) + { + $this->activeViewOptOut = $activeViewOptOut; + } + public function getActiveViewOptOut() + { + return $this->activeViewOptOut; + } + public function setAvailablePermissionIds($availablePermissionIds) + { + $this->availablePermissionIds = $availablePermissionIds; + } + public function getAvailablePermissionIds() + { + return $this->availablePermissionIds; + } + public function setComscoreVceEnabled($comscoreVceEnabled) + { + $this->comscoreVceEnabled = $comscoreVceEnabled; + } + public function getComscoreVceEnabled() + { + return $this->comscoreVceEnabled; + } + public function setCountryId($countryId) + { + $this->countryId = $countryId; + } + public function getCountryId() + { + return $this->countryId; + } + public function setCurrencyId($currencyId) + { + $this->currencyId = $currencyId; + } + public function getCurrencyId() + { + return $this->currencyId; + } + public function setDefaultCreativeSizeId($defaultCreativeSizeId) + { + $this->defaultCreativeSizeId = $defaultCreativeSizeId; + } + public function getDefaultCreativeSizeId() + { + return $this->defaultCreativeSizeId; + } + public function setDescription($description) + { + $this->description = $description; + } + public function getDescription() + { + return $this->description; + } + public function setId($id) + { + $this->id = $id; + } + public function getId() + { + return $this->id; + } + public function setKind($kind) + { + $this->kind = $kind; + } + public function getKind() + { + return $this->kind; + } + public function setLocale($locale) + { + $this->locale = $locale; + } + public function getLocale() + { + return $this->locale; + } + public function setMaximumImageSize($maximumImageSize) + { + $this->maximumImageSize = $maximumImageSize; + } + public function getMaximumImageSize() + { + return $this->maximumImageSize; + } + public function setName($name) + { + $this->name = $name; + } + public function getName() + { + return $this->name; + } + public function setNielsenOcrEnabled($nielsenOcrEnabled) + { + $this->nielsenOcrEnabled = $nielsenOcrEnabled; + } + public function getNielsenOcrEnabled() + { + return $this->nielsenOcrEnabled; + } + public function setReportsConfiguration(Google_Service_Dfareporting_ReportsConfiguration $reportsConfiguration) + { + $this->reportsConfiguration = $reportsConfiguration; + } + public function getReportsConfiguration() + { + return $this->reportsConfiguration; + } + public function setTeaserSizeLimit($teaserSizeLimit) + { + $this->teaserSizeLimit = $teaserSizeLimit; + } + public function getTeaserSizeLimit() + { + return $this->teaserSizeLimit; + } +} + +class Google_Service_Dfareporting_AccountActiveAdSummary extends Google_Model +{ + protected $internal_gapi_mappings = array( + ); + public $accountId; + public $activeAds; + public $activeAdsLimitTier; + public $availableAds; + public $kind; + + + public function setAccountId($accountId) + { + $this->accountId = $accountId; + } + public function getAccountId() + { + return $this->accountId; + } + public function setActiveAds($activeAds) + { + $this->activeAds = $activeAds; + } + public function getActiveAds() + { + return $this->activeAds; + } + public function setActiveAdsLimitTier($activeAdsLimitTier) + { + $this->activeAdsLimitTier = $activeAdsLimitTier; + } + public function getActiveAdsLimitTier() + { + return $this->activeAdsLimitTier; + } + public function setAvailableAds($availableAds) + { + $this->availableAds = $availableAds; + } + public function getAvailableAds() + { + return $this->availableAds; + } + public function setKind($kind) + { + $this->kind = $kind; + } + public function getKind() + { + return $this->kind; + } +} + +class Google_Service_Dfareporting_AccountPermission extends Google_Collection +{ + protected $collection_key = 'accountProfiles'; + protected $internal_gapi_mappings = array( + ); + public $accountProfiles; + public $id; + public $kind; + public $level; + public $name; + public $permissionGroupId; + + + public function setAccountProfiles($accountProfiles) + { + $this->accountProfiles = $accountProfiles; + } + public function getAccountProfiles() + { + return $this->accountProfiles; + } + public function setId($id) + { + $this->id = $id; + } + public function getId() + { + return $this->id; + } + public function setKind($kind) + { + $this->kind = $kind; + } + public function getKind() + { + return $this->kind; + } + public function setLevel($level) + { + $this->level = $level; + } + public function getLevel() + { + return $this->level; + } + public function setName($name) + { + $this->name = $name; + } + public function getName() + { + return $this->name; + } + public function setPermissionGroupId($permissionGroupId) + { + $this->permissionGroupId = $permissionGroupId; + } + public function getPermissionGroupId() + { + return $this->permissionGroupId; + } +} + +class Google_Service_Dfareporting_AccountPermissionGroup extends Google_Model +{ + protected $internal_gapi_mappings = array( + ); + public $id; + public $kind; + public $name; + + + public function setId($id) + { + $this->id = $id; + } + public function getId() + { + return $this->id; + } + public function setKind($kind) + { + $this->kind = $kind; + } + public function getKind() + { + return $this->kind; + } + public function setName($name) + { + $this->name = $name; + } + public function getName() + { + return $this->name; + } +} + +class Google_Service_Dfareporting_AccountPermissionGroupsListResponse extends Google_Collection +{ + protected $collection_key = 'accountPermissionGroups'; + protected $internal_gapi_mappings = array( + ); + protected $accountPermissionGroupsType = 'Google_Service_Dfareporting_AccountPermissionGroup'; + protected $accountPermissionGroupsDataType = 'array'; + public $kind; + + + public function setAccountPermissionGroups($accountPermissionGroups) + { + $this->accountPermissionGroups = $accountPermissionGroups; + } + public function getAccountPermissionGroups() + { + return $this->accountPermissionGroups; + } + public function setKind($kind) + { + $this->kind = $kind; + } + public function getKind() + { + return $this->kind; + } +} + +class Google_Service_Dfareporting_AccountPermissionsListResponse extends Google_Collection +{ + protected $collection_key = 'accountPermissions'; + protected $internal_gapi_mappings = array( + ); + protected $accountPermissionsType = 'Google_Service_Dfareporting_AccountPermission'; + protected $accountPermissionsDataType = 'array'; + public $kind; + + + public function setAccountPermissions($accountPermissions) + { + $this->accountPermissions = $accountPermissions; + } + public function getAccountPermissions() + { + return $this->accountPermissions; + } + public function setKind($kind) + { + $this->kind = $kind; + } + public function getKind() + { + return $this->kind; + } +} + +class Google_Service_Dfareporting_AccountUserProfile extends Google_Model +{ + protected $internal_gapi_mappings = array( + ); + public $accountId; + public $active; + protected $advertiserFilterType = 'Google_Service_Dfareporting_ObjectFilter'; + protected $advertiserFilterDataType = ''; + protected $campaignFilterType = 'Google_Service_Dfareporting_ObjectFilter'; + protected $campaignFilterDataType = ''; + public $comments; + public $email; + public $id; + public $kind; + public $locale; + public $name; + protected $siteFilterType = 'Google_Service_Dfareporting_ObjectFilter'; + protected $siteFilterDataType = ''; + public $subaccountId; + public $traffickerType; + public $userAccessType; + protected $userRoleFilterType = 'Google_Service_Dfareporting_ObjectFilter'; + protected $userRoleFilterDataType = ''; + public $userRoleId; + + + public function setAccountId($accountId) + { + $this->accountId = $accountId; + } + public function getAccountId() + { + return $this->accountId; + } + public function setActive($active) + { + $this->active = $active; + } + public function getActive() + { + return $this->active; + } + public function setAdvertiserFilter(Google_Service_Dfareporting_ObjectFilter $advertiserFilter) + { + $this->advertiserFilter = $advertiserFilter; + } + public function getAdvertiserFilter() + { + return $this->advertiserFilter; + } + public function setCampaignFilter(Google_Service_Dfareporting_ObjectFilter $campaignFilter) + { + $this->campaignFilter = $campaignFilter; + } + public function getCampaignFilter() + { + return $this->campaignFilter; + } + public function setComments($comments) + { + $this->comments = $comments; + } + public function getComments() + { + return $this->comments; + } + public function setEmail($email) + { + $this->email = $email; + } + public function getEmail() + { + return $this->email; + } + public function setId($id) + { + $this->id = $id; + } + public function getId() + { + return $this->id; + } + public function setKind($kind) + { + $this->kind = $kind; + } + public function getKind() + { + return $this->kind; + } + public function setLocale($locale) + { + $this->locale = $locale; + } + public function getLocale() + { + return $this->locale; + } + public function setName($name) + { + $this->name = $name; + } + public function getName() + { + return $this->name; + } + public function setSiteFilter(Google_Service_Dfareporting_ObjectFilter $siteFilter) + { + $this->siteFilter = $siteFilter; + } + public function getSiteFilter() + { + return $this->siteFilter; + } + public function setSubaccountId($subaccountId) + { + $this->subaccountId = $subaccountId; + } + public function getSubaccountId() + { + return $this->subaccountId; + } + public function setTraffickerType($traffickerType) + { + $this->traffickerType = $traffickerType; + } + public function getTraffickerType() + { + return $this->traffickerType; + } + public function setUserAccessType($userAccessType) + { + $this->userAccessType = $userAccessType; + } + public function getUserAccessType() + { + return $this->userAccessType; + } + public function setUserRoleFilter(Google_Service_Dfareporting_ObjectFilter $userRoleFilter) + { + $this->userRoleFilter = $userRoleFilter; + } + public function getUserRoleFilter() + { + return $this->userRoleFilter; + } + public function setUserRoleId($userRoleId) + { + $this->userRoleId = $userRoleId; + } + public function getUserRoleId() + { + return $this->userRoleId; + } +} + +class Google_Service_Dfareporting_AccountUserProfilesListResponse extends Google_Collection +{ + protected $collection_key = 'accountUserProfiles'; + protected $internal_gapi_mappings = array( + ); + protected $accountUserProfilesType = 'Google_Service_Dfareporting_AccountUserProfile'; + protected $accountUserProfilesDataType = 'array'; + public $kind; + public $nextPageToken; + + + public function setAccountUserProfiles($accountUserProfiles) + { + $this->accountUserProfiles = $accountUserProfiles; + } + public function getAccountUserProfiles() + { + return $this->accountUserProfiles; + } + public function setKind($kind) + { + $this->kind = $kind; + } + public function getKind() + { + return $this->kind; + } + public function setNextPageToken($nextPageToken) + { + $this->nextPageToken = $nextPageToken; + } + public function getNextPageToken() + { + return $this->nextPageToken; + } +} + +class Google_Service_Dfareporting_AccountsListResponse extends Google_Collection +{ + protected $collection_key = 'accounts'; + protected $internal_gapi_mappings = array( + ); + protected $accountsType = 'Google_Service_Dfareporting_Account'; + protected $accountsDataType = 'array'; + public $kind; + public $nextPageToken; + + + public function setAccounts($accounts) + { + $this->accounts = $accounts; + } + public function getAccounts() + { + return $this->accounts; + } + public function setKind($kind) + { + $this->kind = $kind; + } + public function getKind() + { + return $this->kind; + } + public function setNextPageToken($nextPageToken) + { + $this->nextPageToken = $nextPageToken; + } + public function getNextPageToken() + { + return $this->nextPageToken; + } +} + class Google_Service_Dfareporting_Activities extends Google_Collection { protected $collection_key = 'metricNames'; @@ -740,6 +9532,1684 @@ class Google_Service_Dfareporting_Activities extends Google_Collection } } +class Google_Service_Dfareporting_Ad extends Google_Collection +{ + protected $collection_key = 'placementAssignments'; + protected $internal_gapi_mappings = array( + "remarketingListExpression" => "remarketing_list_expression", + ); + public $accountId; + public $active; + public $advertiserId; + protected $advertiserIdDimensionValueType = 'Google_Service_Dfareporting_DimensionValue'; + protected $advertiserIdDimensionValueDataType = ''; + public $archived; + public $audienceSegmentId; + public $campaignId; + protected $campaignIdDimensionValueType = 'Google_Service_Dfareporting_DimensionValue'; + protected $campaignIdDimensionValueDataType = ''; + protected $clickThroughUrlType = 'Google_Service_Dfareporting_ClickThroughUrl'; + protected $clickThroughUrlDataType = ''; + protected $clickThroughUrlSuffixPropertiesType = 'Google_Service_Dfareporting_ClickThroughUrlSuffixProperties'; + protected $clickThroughUrlSuffixPropertiesDataType = ''; + public $comments; + public $compatibility; + protected $createInfoType = 'Google_Service_Dfareporting_LastModifiedInfo'; + protected $createInfoDataType = ''; + protected $creativeGroupAssignmentsType = 'Google_Service_Dfareporting_CreativeGroupAssignment'; + protected $creativeGroupAssignmentsDataType = 'array'; + protected $creativeRotationType = 'Google_Service_Dfareporting_CreativeRotation'; + protected $creativeRotationDataType = ''; + protected $dayPartTargetingType = 'Google_Service_Dfareporting_DayPartTargeting'; + protected $dayPartTargetingDataType = ''; + protected $defaultClickThroughEventTagPropertiesType = 'Google_Service_Dfareporting_DefaultClickThroughEventTagProperties'; + protected $defaultClickThroughEventTagPropertiesDataType = ''; + protected $deliveryScheduleType = 'Google_Service_Dfareporting_DeliverySchedule'; + protected $deliveryScheduleDataType = ''; + public $dynamicClickTracker; + public $endTime; + protected $eventTagOverridesType = 'Google_Service_Dfareporting_EventTagOverride'; + protected $eventTagOverridesDataType = 'array'; + protected $geoTargetingType = 'Google_Service_Dfareporting_GeoTargeting'; + protected $geoTargetingDataType = ''; + public $id; + protected $idDimensionValueType = 'Google_Service_Dfareporting_DimensionValue'; + protected $idDimensionValueDataType = ''; + protected $keyValueTargetingExpressionType = 'Google_Service_Dfareporting_KeyValueTargetingExpression'; + protected $keyValueTargetingExpressionDataType = ''; + public $kind; + protected $lastModifiedInfoType = 'Google_Service_Dfareporting_LastModifiedInfo'; + protected $lastModifiedInfoDataType = ''; + public $name; + protected $placementAssignmentsType = 'Google_Service_Dfareporting_PlacementAssignment'; + protected $placementAssignmentsDataType = 'array'; + protected $remarketingListExpressionType = 'Google_Service_Dfareporting_ListTargetingExpression'; + protected $remarketingListExpressionDataType = ''; + protected $sizeType = 'Google_Service_Dfareporting_Size'; + protected $sizeDataType = ''; + public $sslCompliant; + public $sslRequired; + public $startTime; + public $subaccountId; + protected $technologyTargetingType = 'Google_Service_Dfareporting_TechnologyTargeting'; + protected $technologyTargetingDataType = ''; + public $type; + + + public function setAccountId($accountId) + { + $this->accountId = $accountId; + } + public function getAccountId() + { + return $this->accountId; + } + public function setActive($active) + { + $this->active = $active; + } + public function getActive() + { + return $this->active; + } + public function setAdvertiserId($advertiserId) + { + $this->advertiserId = $advertiserId; + } + public function getAdvertiserId() + { + return $this->advertiserId; + } + public function setAdvertiserIdDimensionValue(Google_Service_Dfareporting_DimensionValue $advertiserIdDimensionValue) + { + $this->advertiserIdDimensionValue = $advertiserIdDimensionValue; + } + public function getAdvertiserIdDimensionValue() + { + return $this->advertiserIdDimensionValue; + } + public function setArchived($archived) + { + $this->archived = $archived; + } + public function getArchived() + { + return $this->archived; + } + public function setAudienceSegmentId($audienceSegmentId) + { + $this->audienceSegmentId = $audienceSegmentId; + } + public function getAudienceSegmentId() + { + return $this->audienceSegmentId; + } + public function setCampaignId($campaignId) + { + $this->campaignId = $campaignId; + } + public function getCampaignId() + { + return $this->campaignId; + } + public function setCampaignIdDimensionValue(Google_Service_Dfareporting_DimensionValue $campaignIdDimensionValue) + { + $this->campaignIdDimensionValue = $campaignIdDimensionValue; + } + public function getCampaignIdDimensionValue() + { + return $this->campaignIdDimensionValue; + } + public function setClickThroughUrl(Google_Service_Dfareporting_ClickThroughUrl $clickThroughUrl) + { + $this->clickThroughUrl = $clickThroughUrl; + } + public function getClickThroughUrl() + { + return $this->clickThroughUrl; + } + public function setClickThroughUrlSuffixProperties(Google_Service_Dfareporting_ClickThroughUrlSuffixProperties $clickThroughUrlSuffixProperties) + { + $this->clickThroughUrlSuffixProperties = $clickThroughUrlSuffixProperties; + } + public function getClickThroughUrlSuffixProperties() + { + return $this->clickThroughUrlSuffixProperties; + } + public function setComments($comments) + { + $this->comments = $comments; + } + public function getComments() + { + return $this->comments; + } + public function setCompatibility($compatibility) + { + $this->compatibility = $compatibility; + } + public function getCompatibility() + { + return $this->compatibility; + } + public function setCreateInfo(Google_Service_Dfareporting_LastModifiedInfo $createInfo) + { + $this->createInfo = $createInfo; + } + public function getCreateInfo() + { + return $this->createInfo; + } + public function setCreativeGroupAssignments($creativeGroupAssignments) + { + $this->creativeGroupAssignments = $creativeGroupAssignments; + } + public function getCreativeGroupAssignments() + { + return $this->creativeGroupAssignments; + } + public function setCreativeRotation(Google_Service_Dfareporting_CreativeRotation $creativeRotation) + { + $this->creativeRotation = $creativeRotation; + } + public function getCreativeRotation() + { + return $this->creativeRotation; + } + public function setDayPartTargeting(Google_Service_Dfareporting_DayPartTargeting $dayPartTargeting) + { + $this->dayPartTargeting = $dayPartTargeting; + } + public function getDayPartTargeting() + { + return $this->dayPartTargeting; + } + public function setDefaultClickThroughEventTagProperties(Google_Service_Dfareporting_DefaultClickThroughEventTagProperties $defaultClickThroughEventTagProperties) + { + $this->defaultClickThroughEventTagProperties = $defaultClickThroughEventTagProperties; + } + public function getDefaultClickThroughEventTagProperties() + { + return $this->defaultClickThroughEventTagProperties; + } + public function setDeliverySchedule(Google_Service_Dfareporting_DeliverySchedule $deliverySchedule) + { + $this->deliverySchedule = $deliverySchedule; + } + public function getDeliverySchedule() + { + return $this->deliverySchedule; + } + public function setDynamicClickTracker($dynamicClickTracker) + { + $this->dynamicClickTracker = $dynamicClickTracker; + } + public function getDynamicClickTracker() + { + return $this->dynamicClickTracker; + } + public function setEndTime($endTime) + { + $this->endTime = $endTime; + } + public function getEndTime() + { + return $this->endTime; + } + public function setEventTagOverrides($eventTagOverrides) + { + $this->eventTagOverrides = $eventTagOverrides; + } + public function getEventTagOverrides() + { + return $this->eventTagOverrides; + } + public function setGeoTargeting(Google_Service_Dfareporting_GeoTargeting $geoTargeting) + { + $this->geoTargeting = $geoTargeting; + } + public function getGeoTargeting() + { + return $this->geoTargeting; + } + public function setId($id) + { + $this->id = $id; + } + public function getId() + { + return $this->id; + } + public function setIdDimensionValue(Google_Service_Dfareporting_DimensionValue $idDimensionValue) + { + $this->idDimensionValue = $idDimensionValue; + } + public function getIdDimensionValue() + { + return $this->idDimensionValue; + } + public function setKeyValueTargetingExpression(Google_Service_Dfareporting_KeyValueTargetingExpression $keyValueTargetingExpression) + { + $this->keyValueTargetingExpression = $keyValueTargetingExpression; + } + public function getKeyValueTargetingExpression() + { + return $this->keyValueTargetingExpression; + } + public function setKind($kind) + { + $this->kind = $kind; + } + public function getKind() + { + return $this->kind; + } + public function setLastModifiedInfo(Google_Service_Dfareporting_LastModifiedInfo $lastModifiedInfo) + { + $this->lastModifiedInfo = $lastModifiedInfo; + } + public function getLastModifiedInfo() + { + return $this->lastModifiedInfo; + } + public function setName($name) + { + $this->name = $name; + } + public function getName() + { + return $this->name; + } + public function setPlacementAssignments($placementAssignments) + { + $this->placementAssignments = $placementAssignments; + } + public function getPlacementAssignments() + { + return $this->placementAssignments; + } + public function setRemarketingListExpression(Google_Service_Dfareporting_ListTargetingExpression $remarketingListExpression) + { + $this->remarketingListExpression = $remarketingListExpression; + } + public function getRemarketingListExpression() + { + return $this->remarketingListExpression; + } + public function setSize(Google_Service_Dfareporting_Size $size) + { + $this->size = $size; + } + public function getSize() + { + return $this->size; + } + public function setSslCompliant($sslCompliant) + { + $this->sslCompliant = $sslCompliant; + } + public function getSslCompliant() + { + return $this->sslCompliant; + } + public function setSslRequired($sslRequired) + { + $this->sslRequired = $sslRequired; + } + public function getSslRequired() + { + return $this->sslRequired; + } + public function setStartTime($startTime) + { + $this->startTime = $startTime; + } + public function getStartTime() + { + return $this->startTime; + } + public function setSubaccountId($subaccountId) + { + $this->subaccountId = $subaccountId; + } + public function getSubaccountId() + { + return $this->subaccountId; + } + public function setTechnologyTargeting(Google_Service_Dfareporting_TechnologyTargeting $technologyTargeting) + { + $this->technologyTargeting = $technologyTargeting; + } + public function getTechnologyTargeting() + { + return $this->technologyTargeting; + } + public function setType($type) + { + $this->type = $type; + } + public function getType() + { + return $this->type; + } +} + +class Google_Service_Dfareporting_AdSlot extends Google_Model +{ + protected $internal_gapi_mappings = array( + ); + public $comment; + public $compatibility; + public $height; + public $linkedPlacementId; + public $name; + public $paymentSourceType; + public $primary; + public $width; + + + public function setComment($comment) + { + $this->comment = $comment; + } + public function getComment() + { + return $this->comment; + } + public function setCompatibility($compatibility) + { + $this->compatibility = $compatibility; + } + public function getCompatibility() + { + return $this->compatibility; + } + public function setHeight($height) + { + $this->height = $height; + } + public function getHeight() + { + return $this->height; + } + public function setLinkedPlacementId($linkedPlacementId) + { + $this->linkedPlacementId = $linkedPlacementId; + } + public function getLinkedPlacementId() + { + return $this->linkedPlacementId; + } + public function setName($name) + { + $this->name = $name; + } + public function getName() + { + return $this->name; + } + public function setPaymentSourceType($paymentSourceType) + { + $this->paymentSourceType = $paymentSourceType; + } + public function getPaymentSourceType() + { + return $this->paymentSourceType; + } + public function setPrimary($primary) + { + $this->primary = $primary; + } + public function getPrimary() + { + return $this->primary; + } + public function setWidth($width) + { + $this->width = $width; + } + public function getWidth() + { + return $this->width; + } +} + +class Google_Service_Dfareporting_AdsListResponse extends Google_Collection +{ + protected $collection_key = 'ads'; + protected $internal_gapi_mappings = array( + ); + protected $adsType = 'Google_Service_Dfareporting_Ad'; + protected $adsDataType = 'array'; + public $kind; + public $nextPageToken; + + + public function setAds($ads) + { + $this->ads = $ads; + } + public function getAds() + { + return $this->ads; + } + public function setKind($kind) + { + $this->kind = $kind; + } + public function getKind() + { + return $this->kind; + } + public function setNextPageToken($nextPageToken) + { + $this->nextPageToken = $nextPageToken; + } + public function getNextPageToken() + { + return $this->nextPageToken; + } +} + +class Google_Service_Dfareporting_Advertiser extends Google_Model +{ + protected $internal_gapi_mappings = array( + ); + public $accountId; + public $advertiserGroupId; + public $clickThroughUrlSuffix; + public $defaultClickThroughEventTagId; + public $defaultEmail; + public $floodlightConfigurationId; + protected $floodlightConfigurationIdDimensionValueType = 'Google_Service_Dfareporting_DimensionValue'; + protected $floodlightConfigurationIdDimensionValueDataType = ''; + public $id; + protected $idDimensionValueType = 'Google_Service_Dfareporting_DimensionValue'; + protected $idDimensionValueDataType = ''; + public $kind; + public $name; + public $originalFloodlightConfigurationId; + public $status; + public $subaccountId; + + + public function setAccountId($accountId) + { + $this->accountId = $accountId; + } + public function getAccountId() + { + return $this->accountId; + } + public function setAdvertiserGroupId($advertiserGroupId) + { + $this->advertiserGroupId = $advertiserGroupId; + } + public function getAdvertiserGroupId() + { + return $this->advertiserGroupId; + } + public function setClickThroughUrlSuffix($clickThroughUrlSuffix) + { + $this->clickThroughUrlSuffix = $clickThroughUrlSuffix; + } + public function getClickThroughUrlSuffix() + { + return $this->clickThroughUrlSuffix; + } + public function setDefaultClickThroughEventTagId($defaultClickThroughEventTagId) + { + $this->defaultClickThroughEventTagId = $defaultClickThroughEventTagId; + } + public function getDefaultClickThroughEventTagId() + { + return $this->defaultClickThroughEventTagId; + } + public function setDefaultEmail($defaultEmail) + { + $this->defaultEmail = $defaultEmail; + } + public function getDefaultEmail() + { + return $this->defaultEmail; + } + public function setFloodlightConfigurationId($floodlightConfigurationId) + { + $this->floodlightConfigurationId = $floodlightConfigurationId; + } + public function getFloodlightConfigurationId() + { + return $this->floodlightConfigurationId; + } + public function setFloodlightConfigurationIdDimensionValue(Google_Service_Dfareporting_DimensionValue $floodlightConfigurationIdDimensionValue) + { + $this->floodlightConfigurationIdDimensionValue = $floodlightConfigurationIdDimensionValue; + } + public function getFloodlightConfigurationIdDimensionValue() + { + return $this->floodlightConfigurationIdDimensionValue; + } + public function setId($id) + { + $this->id = $id; + } + public function getId() + { + return $this->id; + } + public function setIdDimensionValue(Google_Service_Dfareporting_DimensionValue $idDimensionValue) + { + $this->idDimensionValue = $idDimensionValue; + } + public function getIdDimensionValue() + { + return $this->idDimensionValue; + } + public function setKind($kind) + { + $this->kind = $kind; + } + public function getKind() + { + return $this->kind; + } + public function setName($name) + { + $this->name = $name; + } + public function getName() + { + return $this->name; + } + public function setOriginalFloodlightConfigurationId($originalFloodlightConfigurationId) + { + $this->originalFloodlightConfigurationId = $originalFloodlightConfigurationId; + } + public function getOriginalFloodlightConfigurationId() + { + return $this->originalFloodlightConfigurationId; + } + public function setStatus($status) + { + $this->status = $status; + } + public function getStatus() + { + return $this->status; + } + public function setSubaccountId($subaccountId) + { + $this->subaccountId = $subaccountId; + } + public function getSubaccountId() + { + return $this->subaccountId; + } +} + +class Google_Service_Dfareporting_AdvertiserGroup extends Google_Model +{ + protected $internal_gapi_mappings = array( + ); + public $accountId; + public $id; + public $kind; + public $name; + + + public function setAccountId($accountId) + { + $this->accountId = $accountId; + } + public function getAccountId() + { + return $this->accountId; + } + public function setId($id) + { + $this->id = $id; + } + public function getId() + { + return $this->id; + } + public function setKind($kind) + { + $this->kind = $kind; + } + public function getKind() + { + return $this->kind; + } + public function setName($name) + { + $this->name = $name; + } + public function getName() + { + return $this->name; + } +} + +class Google_Service_Dfareporting_AdvertiserGroupsListResponse extends Google_Collection +{ + protected $collection_key = 'advertiserGroups'; + protected $internal_gapi_mappings = array( + ); + protected $advertiserGroupsType = 'Google_Service_Dfareporting_AdvertiserGroup'; + protected $advertiserGroupsDataType = 'array'; + public $kind; + public $nextPageToken; + + + public function setAdvertiserGroups($advertiserGroups) + { + $this->advertiserGroups = $advertiserGroups; + } + public function getAdvertiserGroups() + { + return $this->advertiserGroups; + } + public function setKind($kind) + { + $this->kind = $kind; + } + public function getKind() + { + return $this->kind; + } + public function setNextPageToken($nextPageToken) + { + $this->nextPageToken = $nextPageToken; + } + public function getNextPageToken() + { + return $this->nextPageToken; + } +} + +class Google_Service_Dfareporting_AdvertisersListResponse extends Google_Collection +{ + protected $collection_key = 'advertisers'; + protected $internal_gapi_mappings = array( + ); + protected $advertisersType = 'Google_Service_Dfareporting_Advertiser'; + protected $advertisersDataType = 'array'; + public $kind; + public $nextPageToken; + + + public function setAdvertisers($advertisers) + { + $this->advertisers = $advertisers; + } + public function getAdvertisers() + { + return $this->advertisers; + } + public function setKind($kind) + { + $this->kind = $kind; + } + public function getKind() + { + return $this->kind; + } + public function setNextPageToken($nextPageToken) + { + $this->nextPageToken = $nextPageToken; + } + public function getNextPageToken() + { + return $this->nextPageToken; + } +} + +class Google_Service_Dfareporting_AudienceSegment extends Google_Model +{ + protected $internal_gapi_mappings = array( + ); + public $allocation; + public $id; + public $name; + + + public function setAllocation($allocation) + { + $this->allocation = $allocation; + } + public function getAllocation() + { + return $this->allocation; + } + public function setId($id) + { + $this->id = $id; + } + public function getId() + { + return $this->id; + } + public function setName($name) + { + $this->name = $name; + } + public function getName() + { + return $this->name; + } +} + +class Google_Service_Dfareporting_AudienceSegmentGroup extends Google_Collection +{ + protected $collection_key = 'audienceSegments'; + protected $internal_gapi_mappings = array( + ); + protected $audienceSegmentsType = 'Google_Service_Dfareporting_AudienceSegment'; + protected $audienceSegmentsDataType = 'array'; + public $id; + public $name; + + + public function setAudienceSegments($audienceSegments) + { + $this->audienceSegments = $audienceSegments; + } + public function getAudienceSegments() + { + return $this->audienceSegments; + } + public function setId($id) + { + $this->id = $id; + } + public function getId() + { + return $this->id; + } + public function setName($name) + { + $this->name = $name; + } + public function getName() + { + return $this->name; + } +} + +class Google_Service_Dfareporting_Browser extends Google_Model +{ + protected $internal_gapi_mappings = array( + ); + public $browserVersionId; + public $dartId; + public $kind; + public $majorVersion; + public $minorVersion; + public $name; + + + public function setBrowserVersionId($browserVersionId) + { + $this->browserVersionId = $browserVersionId; + } + public function getBrowserVersionId() + { + return $this->browserVersionId; + } + public function setDartId($dartId) + { + $this->dartId = $dartId; + } + public function getDartId() + { + return $this->dartId; + } + public function setKind($kind) + { + $this->kind = $kind; + } + public function getKind() + { + return $this->kind; + } + public function setMajorVersion($majorVersion) + { + $this->majorVersion = $majorVersion; + } + public function getMajorVersion() + { + return $this->majorVersion; + } + public function setMinorVersion($minorVersion) + { + $this->minorVersion = $minorVersion; + } + public function getMinorVersion() + { + return $this->minorVersion; + } + public function setName($name) + { + $this->name = $name; + } + public function getName() + { + return $this->name; + } +} + +class Google_Service_Dfareporting_BrowsersListResponse extends Google_Collection +{ + protected $collection_key = 'browsers'; + protected $internal_gapi_mappings = array( + ); + protected $browsersType = 'Google_Service_Dfareporting_Browser'; + protected $browsersDataType = 'array'; + public $kind; + + + public function setBrowsers($browsers) + { + $this->browsers = $browsers; + } + public function getBrowsers() + { + return $this->browsers; + } + public function setKind($kind) + { + $this->kind = $kind; + } + public function getKind() + { + return $this->kind; + } +} + +class Google_Service_Dfareporting_Campaign extends Google_Collection +{ + protected $collection_key = 'traffickerEmails'; + protected $internal_gapi_mappings = array( + ); + public $accountId; + protected $additionalCreativeOptimizationConfigurationsType = 'Google_Service_Dfareporting_CreativeOptimizationConfiguration'; + protected $additionalCreativeOptimizationConfigurationsDataType = 'array'; + public $advertiserGroupId; + public $advertiserId; + protected $advertiserIdDimensionValueType = 'Google_Service_Dfareporting_DimensionValue'; + protected $advertiserIdDimensionValueDataType = ''; + public $archived; + protected $audienceSegmentGroupsType = 'Google_Service_Dfareporting_AudienceSegmentGroup'; + protected $audienceSegmentGroupsDataType = 'array'; + public $billingInvoiceCode; + protected $clickThroughUrlSuffixPropertiesType = 'Google_Service_Dfareporting_ClickThroughUrlSuffixProperties'; + protected $clickThroughUrlSuffixPropertiesDataType = ''; + public $comment; + public $comscoreVceEnabled; + protected $createInfoType = 'Google_Service_Dfareporting_LastModifiedInfo'; + protected $createInfoDataType = ''; + public $creativeGroupIds; + protected $creativeOptimizationConfigurationType = 'Google_Service_Dfareporting_CreativeOptimizationConfiguration'; + protected $creativeOptimizationConfigurationDataType = ''; + protected $defaultClickThroughEventTagPropertiesType = 'Google_Service_Dfareporting_DefaultClickThroughEventTagProperties'; + protected $defaultClickThroughEventTagPropertiesDataType = ''; + public $endDate; + protected $eventTagOverridesType = 'Google_Service_Dfareporting_EventTagOverride'; + protected $eventTagOverridesDataType = 'array'; + public $externalId; + public $id; + protected $idDimensionValueType = 'Google_Service_Dfareporting_DimensionValue'; + protected $idDimensionValueDataType = ''; + public $kind; + protected $lastModifiedInfoType = 'Google_Service_Dfareporting_LastModifiedInfo'; + protected $lastModifiedInfoDataType = ''; + protected $lookbackConfigurationType = 'Google_Service_Dfareporting_LookbackConfiguration'; + protected $lookbackConfigurationDataType = ''; + public $name; + public $nielsenOcrEnabled; + public $startDate; + public $subaccountId; + public $traffickerEmails; + + + public function setAccountId($accountId) + { + $this->accountId = $accountId; + } + public function getAccountId() + { + return $this->accountId; + } + public function setAdditionalCreativeOptimizationConfigurations($additionalCreativeOptimizationConfigurations) + { + $this->additionalCreativeOptimizationConfigurations = $additionalCreativeOptimizationConfigurations; + } + public function getAdditionalCreativeOptimizationConfigurations() + { + return $this->additionalCreativeOptimizationConfigurations; + } + public function setAdvertiserGroupId($advertiserGroupId) + { + $this->advertiserGroupId = $advertiserGroupId; + } + public function getAdvertiserGroupId() + { + return $this->advertiserGroupId; + } + public function setAdvertiserId($advertiserId) + { + $this->advertiserId = $advertiserId; + } + public function getAdvertiserId() + { + return $this->advertiserId; + } + public function setAdvertiserIdDimensionValue(Google_Service_Dfareporting_DimensionValue $advertiserIdDimensionValue) + { + $this->advertiserIdDimensionValue = $advertiserIdDimensionValue; + } + public function getAdvertiserIdDimensionValue() + { + return $this->advertiserIdDimensionValue; + } + public function setArchived($archived) + { + $this->archived = $archived; + } + public function getArchived() + { + return $this->archived; + } + public function setAudienceSegmentGroups($audienceSegmentGroups) + { + $this->audienceSegmentGroups = $audienceSegmentGroups; + } + public function getAudienceSegmentGroups() + { + return $this->audienceSegmentGroups; + } + public function setBillingInvoiceCode($billingInvoiceCode) + { + $this->billingInvoiceCode = $billingInvoiceCode; + } + public function getBillingInvoiceCode() + { + return $this->billingInvoiceCode; + } + public function setClickThroughUrlSuffixProperties(Google_Service_Dfareporting_ClickThroughUrlSuffixProperties $clickThroughUrlSuffixProperties) + { + $this->clickThroughUrlSuffixProperties = $clickThroughUrlSuffixProperties; + } + public function getClickThroughUrlSuffixProperties() + { + return $this->clickThroughUrlSuffixProperties; + } + public function setComment($comment) + { + $this->comment = $comment; + } + public function getComment() + { + return $this->comment; + } + public function setComscoreVceEnabled($comscoreVceEnabled) + { + $this->comscoreVceEnabled = $comscoreVceEnabled; + } + public function getComscoreVceEnabled() + { + return $this->comscoreVceEnabled; + } + public function setCreateInfo(Google_Service_Dfareporting_LastModifiedInfo $createInfo) + { + $this->createInfo = $createInfo; + } + public function getCreateInfo() + { + return $this->createInfo; + } + public function setCreativeGroupIds($creativeGroupIds) + { + $this->creativeGroupIds = $creativeGroupIds; + } + public function getCreativeGroupIds() + { + return $this->creativeGroupIds; + } + public function setCreativeOptimizationConfiguration(Google_Service_Dfareporting_CreativeOptimizationConfiguration $creativeOptimizationConfiguration) + { + $this->creativeOptimizationConfiguration = $creativeOptimizationConfiguration; + } + public function getCreativeOptimizationConfiguration() + { + return $this->creativeOptimizationConfiguration; + } + public function setDefaultClickThroughEventTagProperties(Google_Service_Dfareporting_DefaultClickThroughEventTagProperties $defaultClickThroughEventTagProperties) + { + $this->defaultClickThroughEventTagProperties = $defaultClickThroughEventTagProperties; + } + public function getDefaultClickThroughEventTagProperties() + { + return $this->defaultClickThroughEventTagProperties; + } + public function setEndDate($endDate) + { + $this->endDate = $endDate; + } + public function getEndDate() + { + return $this->endDate; + } + public function setEventTagOverrides($eventTagOverrides) + { + $this->eventTagOverrides = $eventTagOverrides; + } + public function getEventTagOverrides() + { + return $this->eventTagOverrides; + } + public function setExternalId($externalId) + { + $this->externalId = $externalId; + } + public function getExternalId() + { + return $this->externalId; + } + public function setId($id) + { + $this->id = $id; + } + public function getId() + { + return $this->id; + } + public function setIdDimensionValue(Google_Service_Dfareporting_DimensionValue $idDimensionValue) + { + $this->idDimensionValue = $idDimensionValue; + } + public function getIdDimensionValue() + { + return $this->idDimensionValue; + } + public function setKind($kind) + { + $this->kind = $kind; + } + public function getKind() + { + return $this->kind; + } + public function setLastModifiedInfo(Google_Service_Dfareporting_LastModifiedInfo $lastModifiedInfo) + { + $this->lastModifiedInfo = $lastModifiedInfo; + } + public function getLastModifiedInfo() + { + return $this->lastModifiedInfo; + } + public function setLookbackConfiguration(Google_Service_Dfareporting_LookbackConfiguration $lookbackConfiguration) + { + $this->lookbackConfiguration = $lookbackConfiguration; + } + public function getLookbackConfiguration() + { + return $this->lookbackConfiguration; + } + public function setName($name) + { + $this->name = $name; + } + public function getName() + { + return $this->name; + } + public function setNielsenOcrEnabled($nielsenOcrEnabled) + { + $this->nielsenOcrEnabled = $nielsenOcrEnabled; + } + public function getNielsenOcrEnabled() + { + return $this->nielsenOcrEnabled; + } + public function setStartDate($startDate) + { + $this->startDate = $startDate; + } + public function getStartDate() + { + return $this->startDate; + } + public function setSubaccountId($subaccountId) + { + $this->subaccountId = $subaccountId; + } + public function getSubaccountId() + { + return $this->subaccountId; + } + public function setTraffickerEmails($traffickerEmails) + { + $this->traffickerEmails = $traffickerEmails; + } + public function getTraffickerEmails() + { + return $this->traffickerEmails; + } +} + +class Google_Service_Dfareporting_CampaignCreativeAssociation extends Google_Model +{ + protected $internal_gapi_mappings = array( + ); + public $creativeId; + public $kind; + + + public function setCreativeId($creativeId) + { + $this->creativeId = $creativeId; + } + public function getCreativeId() + { + return $this->creativeId; + } + public function setKind($kind) + { + $this->kind = $kind; + } + public function getKind() + { + return $this->kind; + } +} + +class Google_Service_Dfareporting_CampaignCreativeAssociationsListResponse extends Google_Collection +{ + protected $collection_key = 'campaignCreativeAssociations'; + protected $internal_gapi_mappings = array( + ); + protected $campaignCreativeAssociationsType = 'Google_Service_Dfareporting_CampaignCreativeAssociation'; + protected $campaignCreativeAssociationsDataType = 'array'; + public $kind; + public $nextPageToken; + + + public function setCampaignCreativeAssociations($campaignCreativeAssociations) + { + $this->campaignCreativeAssociations = $campaignCreativeAssociations; + } + public function getCampaignCreativeAssociations() + { + return $this->campaignCreativeAssociations; + } + public function setKind($kind) + { + $this->kind = $kind; + } + public function getKind() + { + return $this->kind; + } + public function setNextPageToken($nextPageToken) + { + $this->nextPageToken = $nextPageToken; + } + public function getNextPageToken() + { + return $this->nextPageToken; + } +} + +class Google_Service_Dfareporting_CampaignsListResponse extends Google_Collection +{ + protected $collection_key = 'campaigns'; + protected $internal_gapi_mappings = array( + ); + protected $campaignsType = 'Google_Service_Dfareporting_Campaign'; + protected $campaignsDataType = 'array'; + public $kind; + public $nextPageToken; + + + public function setCampaigns($campaigns) + { + $this->campaigns = $campaigns; + } + public function getCampaigns() + { + return $this->campaigns; + } + public function setKind($kind) + { + $this->kind = $kind; + } + public function getKind() + { + return $this->kind; + } + public function setNextPageToken($nextPageToken) + { + $this->nextPageToken = $nextPageToken; + } + public function getNextPageToken() + { + return $this->nextPageToken; + } +} + +class Google_Service_Dfareporting_ChangeLog extends Google_Model +{ + protected $internal_gapi_mappings = array( + ); + public $accountId; + public $action; + public $changeTime; + public $fieldName; + public $id; + public $kind; + public $newValue; + public $objectId; + public $objectType; + public $oldValue; + public $subaccountId; + public $transactionId; + public $userProfileId; + public $userProfileName; + + + public function setAccountId($accountId) + { + $this->accountId = $accountId; + } + public function getAccountId() + { + return $this->accountId; + } + public function setAction($action) + { + $this->action = $action; + } + public function getAction() + { + return $this->action; + } + public function setChangeTime($changeTime) + { + $this->changeTime = $changeTime; + } + public function getChangeTime() + { + return $this->changeTime; + } + public function setFieldName($fieldName) + { + $this->fieldName = $fieldName; + } + public function getFieldName() + { + return $this->fieldName; + } + public function setId($id) + { + $this->id = $id; + } + public function getId() + { + return $this->id; + } + public function setKind($kind) + { + $this->kind = $kind; + } + public function getKind() + { + return $this->kind; + } + public function setNewValue($newValue) + { + $this->newValue = $newValue; + } + public function getNewValue() + { + return $this->newValue; + } + public function setObjectId($objectId) + { + $this->objectId = $objectId; + } + public function getObjectId() + { + return $this->objectId; + } + public function setObjectType($objectType) + { + $this->objectType = $objectType; + } + public function getObjectType() + { + return $this->objectType; + } + public function setOldValue($oldValue) + { + $this->oldValue = $oldValue; + } + public function getOldValue() + { + return $this->oldValue; + } + public function setSubaccountId($subaccountId) + { + $this->subaccountId = $subaccountId; + } + public function getSubaccountId() + { + return $this->subaccountId; + } + public function setTransactionId($transactionId) + { + $this->transactionId = $transactionId; + } + public function getTransactionId() + { + return $this->transactionId; + } + public function setUserProfileId($userProfileId) + { + $this->userProfileId = $userProfileId; + } + public function getUserProfileId() + { + return $this->userProfileId; + } + public function setUserProfileName($userProfileName) + { + $this->userProfileName = $userProfileName; + } + public function getUserProfileName() + { + return $this->userProfileName; + } +} + +class Google_Service_Dfareporting_ChangeLogsListResponse extends Google_Collection +{ + protected $collection_key = 'changeLogs'; + protected $internal_gapi_mappings = array( + ); + protected $changeLogsType = 'Google_Service_Dfareporting_ChangeLog'; + protected $changeLogsDataType = 'array'; + public $kind; + public $nextPageToken; + + + public function setChangeLogs($changeLogs) + { + $this->changeLogs = $changeLogs; + } + public function getChangeLogs() + { + return $this->changeLogs; + } + public function setKind($kind) + { + $this->kind = $kind; + } + public function getKind() + { + return $this->kind; + } + public function setNextPageToken($nextPageToken) + { + $this->nextPageToken = $nextPageToken; + } + public function getNextPageToken() + { + return $this->nextPageToken; + } +} + +class Google_Service_Dfareporting_CitiesListResponse extends Google_Collection +{ + protected $collection_key = 'cities'; + protected $internal_gapi_mappings = array( + ); + protected $citiesType = 'Google_Service_Dfareporting_City'; + protected $citiesDataType = 'array'; + public $kind; + + + public function setCities($cities) + { + $this->cities = $cities; + } + public function getCities() + { + return $this->cities; + } + public function setKind($kind) + { + $this->kind = $kind; + } + public function getKind() + { + return $this->kind; + } +} + +class Google_Service_Dfareporting_City extends Google_Model +{ + protected $internal_gapi_mappings = array( + ); + public $countryCode; + public $countryDartId; + public $dartId; + public $kind; + public $metroCode; + public $metroDmaId; + public $name; + public $regionCode; + public $regionDartId; + + + public function setCountryCode($countryCode) + { + $this->countryCode = $countryCode; + } + public function getCountryCode() + { + return $this->countryCode; + } + public function setCountryDartId($countryDartId) + { + $this->countryDartId = $countryDartId; + } + public function getCountryDartId() + { + return $this->countryDartId; + } + public function setDartId($dartId) + { + $this->dartId = $dartId; + } + public function getDartId() + { + return $this->dartId; + } + public function setKind($kind) + { + $this->kind = $kind; + } + public function getKind() + { + return $this->kind; + } + public function setMetroCode($metroCode) + { + $this->metroCode = $metroCode; + } + public function getMetroCode() + { + return $this->metroCode; + } + public function setMetroDmaId($metroDmaId) + { + $this->metroDmaId = $metroDmaId; + } + public function getMetroDmaId() + { + return $this->metroDmaId; + } + public function setName($name) + { + $this->name = $name; + } + public function getName() + { + return $this->name; + } + public function setRegionCode($regionCode) + { + $this->regionCode = $regionCode; + } + public function getRegionCode() + { + return $this->regionCode; + } + public function setRegionDartId($regionDartId) + { + $this->regionDartId = $regionDartId; + } + public function getRegionDartId() + { + return $this->regionDartId; + } +} + +class Google_Service_Dfareporting_ClickTag extends Google_Model +{ + protected $internal_gapi_mappings = array( + ); + public $eventName; + public $name; + public $value; + + + public function setEventName($eventName) + { + $this->eventName = $eventName; + } + public function getEventName() + { + return $this->eventName; + } + public function setName($name) + { + $this->name = $name; + } + public function getName() + { + return $this->name; + } + public function setValue($value) + { + $this->value = $value; + } + public function getValue() + { + return $this->value; + } +} + +class Google_Service_Dfareporting_ClickThroughUrl extends Google_Model +{ + protected $internal_gapi_mappings = array( + ); + public $customClickThroughUrl; + public $defaultLandingPage; + public $landingPageId; + + + public function setCustomClickThroughUrl($customClickThroughUrl) + { + $this->customClickThroughUrl = $customClickThroughUrl; + } + public function getCustomClickThroughUrl() + { + return $this->customClickThroughUrl; + } + public function setDefaultLandingPage($defaultLandingPage) + { + $this->defaultLandingPage = $defaultLandingPage; + } + public function getDefaultLandingPage() + { + return $this->defaultLandingPage; + } + public function setLandingPageId($landingPageId) + { + $this->landingPageId = $landingPageId; + } + public function getLandingPageId() + { + return $this->landingPageId; + } +} + +class Google_Service_Dfareporting_ClickThroughUrlSuffixProperties extends Google_Model +{ + protected $internal_gapi_mappings = array( + ); + public $clickThroughUrlSuffix; + public $overrideInheritedSuffix; + + + public function setClickThroughUrlSuffix($clickThroughUrlSuffix) + { + $this->clickThroughUrlSuffix = $clickThroughUrlSuffix; + } + public function getClickThroughUrlSuffix() + { + return $this->clickThroughUrlSuffix; + } + public function setOverrideInheritedSuffix($overrideInheritedSuffix) + { + $this->overrideInheritedSuffix = $overrideInheritedSuffix; + } + public function getOverrideInheritedSuffix() + { + return $this->overrideInheritedSuffix; + } +} + +class Google_Service_Dfareporting_CompanionClickThroughOverride extends Google_Model +{ + protected $internal_gapi_mappings = array( + ); + protected $clickThroughUrlType = 'Google_Service_Dfareporting_ClickThroughUrl'; + protected $clickThroughUrlDataType = ''; + public $creativeId; + + + public function setClickThroughUrl(Google_Service_Dfareporting_ClickThroughUrl $clickThroughUrl) + { + $this->clickThroughUrl = $clickThroughUrl; + } + public function getClickThroughUrl() + { + return $this->clickThroughUrl; + } + public function setCreativeId($creativeId) + { + $this->creativeId = $creativeId; + } + public function getCreativeId() + { + return $this->creativeId; + } +} + class Google_Service_Dfareporting_CompatibleFields extends Google_Model { protected $internal_gapi_mappings = array( @@ -807,6 +11277,1970 @@ class Google_Service_Dfareporting_CompatibleFields extends Google_Model } } +class Google_Service_Dfareporting_ConnectionType extends Google_Model +{ + protected $internal_gapi_mappings = array( + ); + public $id; + public $kind; + public $name; + + + public function setId($id) + { + $this->id = $id; + } + public function getId() + { + return $this->id; + } + public function setKind($kind) + { + $this->kind = $kind; + } + public function getKind() + { + return $this->kind; + } + public function setName($name) + { + $this->name = $name; + } + public function getName() + { + return $this->name; + } +} + +class Google_Service_Dfareporting_ConnectionTypesListResponse extends Google_Collection +{ + protected $collection_key = 'connectionTypes'; + protected $internal_gapi_mappings = array( + ); + protected $connectionTypesType = 'Google_Service_Dfareporting_ConnectionType'; + protected $connectionTypesDataType = 'array'; + public $kind; + + + public function setConnectionTypes($connectionTypes) + { + $this->connectionTypes = $connectionTypes; + } + public function getConnectionTypes() + { + return $this->connectionTypes; + } + public function setKind($kind) + { + $this->kind = $kind; + } + public function getKind() + { + return $this->kind; + } +} + +class Google_Service_Dfareporting_ContentCategoriesListResponse extends Google_Collection +{ + protected $collection_key = 'contentCategories'; + protected $internal_gapi_mappings = array( + ); + protected $contentCategoriesType = 'Google_Service_Dfareporting_ContentCategory'; + protected $contentCategoriesDataType = 'array'; + public $kind; + public $nextPageToken; + + + public function setContentCategories($contentCategories) + { + $this->contentCategories = $contentCategories; + } + public function getContentCategories() + { + return $this->contentCategories; + } + public function setKind($kind) + { + $this->kind = $kind; + } + public function getKind() + { + return $this->kind; + } + public function setNextPageToken($nextPageToken) + { + $this->nextPageToken = $nextPageToken; + } + public function getNextPageToken() + { + return $this->nextPageToken; + } +} + +class Google_Service_Dfareporting_ContentCategory extends Google_Model +{ + protected $internal_gapi_mappings = array( + ); + public $accountId; + public $id; + public $kind; + public $name; + + + public function setAccountId($accountId) + { + $this->accountId = $accountId; + } + public function getAccountId() + { + return $this->accountId; + } + public function setId($id) + { + $this->id = $id; + } + public function getId() + { + return $this->id; + } + public function setKind($kind) + { + $this->kind = $kind; + } + public function getKind() + { + return $this->kind; + } + public function setName($name) + { + $this->name = $name; + } + public function getName() + { + return $this->name; + } +} + +class Google_Service_Dfareporting_CountriesListResponse extends Google_Collection +{ + protected $collection_key = 'countries'; + protected $internal_gapi_mappings = array( + ); + protected $countriesType = 'Google_Service_Dfareporting_Country'; + protected $countriesDataType = 'array'; + public $kind; + + + public function setCountries($countries) + { + $this->countries = $countries; + } + public function getCountries() + { + return $this->countries; + } + public function setKind($kind) + { + $this->kind = $kind; + } + public function getKind() + { + return $this->kind; + } +} + +class Google_Service_Dfareporting_Country extends Google_Model +{ + protected $internal_gapi_mappings = array( + ); + public $countryCode; + public $dartId; + public $kind; + public $name; + public $sslEnabled; + + + public function setCountryCode($countryCode) + { + $this->countryCode = $countryCode; + } + public function getCountryCode() + { + return $this->countryCode; + } + public function setDartId($dartId) + { + $this->dartId = $dartId; + } + public function getDartId() + { + return $this->dartId; + } + public function setKind($kind) + { + $this->kind = $kind; + } + public function getKind() + { + return $this->kind; + } + public function setName($name) + { + $this->name = $name; + } + public function getName() + { + return $this->name; + } + public function setSslEnabled($sslEnabled) + { + $this->sslEnabled = $sslEnabled; + } + public function getSslEnabled() + { + return $this->sslEnabled; + } +} + +class Google_Service_Dfareporting_Creative extends Google_Collection +{ + protected $collection_key = 'timerCustomEvents'; + protected $internal_gapi_mappings = array( + "autoAdvanceImages" => "auto_advance_images", + ); + public $accountId; + public $active; + public $adParameters; + public $adTagKeys; + public $advertiserId; + public $allowScriptAccess; + public $archived; + public $artworkType; + public $authoringTool; + public $autoAdvanceImages; + public $backgroundColor; + public $backupImageClickThroughUrl; + public $backupImageFeatures; + public $backupImageReportingLabel; + protected $backupImageTargetWindowType = 'Google_Service_Dfareporting_TargetWindow'; + protected $backupImageTargetWindowDataType = ''; + protected $clickTagsType = 'Google_Service_Dfareporting_ClickTag'; + protected $clickTagsDataType = 'array'; + public $commercialId; + public $companionCreatives; + public $compatibility; + public $convertFlashToHtml5; + protected $counterCustomEventsType = 'Google_Service_Dfareporting_CreativeCustomEvent'; + protected $counterCustomEventsDataType = 'array'; + protected $creativeAssetsType = 'Google_Service_Dfareporting_CreativeAsset'; + protected $creativeAssetsDataType = 'array'; + protected $creativeFieldAssignmentsType = 'Google_Service_Dfareporting_CreativeFieldAssignment'; + protected $creativeFieldAssignmentsDataType = 'array'; + public $customKeyValues; + protected $exitCustomEventsType = 'Google_Service_Dfareporting_CreativeCustomEvent'; + protected $exitCustomEventsDataType = 'array'; + protected $fsCommandType = 'Google_Service_Dfareporting_FsCommand'; + protected $fsCommandDataType = ''; + public $htmlCode; + public $htmlCodeLocked; + public $id; + protected $idDimensionValueType = 'Google_Service_Dfareporting_DimensionValue'; + protected $idDimensionValueDataType = ''; + public $kind; + protected $lastModifiedInfoType = 'Google_Service_Dfareporting_LastModifiedInfo'; + protected $lastModifiedInfoDataType = ''; + public $latestTraffickedCreativeId; + public $name; + public $overrideCss; + public $redirectUrl; + public $renderingId; + protected $renderingIdDimensionValueType = 'Google_Service_Dfareporting_DimensionValue'; + protected $renderingIdDimensionValueDataType = ''; + public $requiredFlashPluginVersion; + public $requiredFlashVersion; + protected $sizeType = 'Google_Service_Dfareporting_Size'; + protected $sizeDataType = ''; + public $skippable; + public $sslCompliant; + public $studioAdvertiserId; + public $studioCreativeId; + public $studioTraffickedCreativeId; + public $subaccountId; + public $thirdPartyBackupImageImpressionsUrl; + public $thirdPartyRichMediaImpressionsUrl; + protected $thirdPartyUrlsType = 'Google_Service_Dfareporting_ThirdPartyTrackingUrl'; + protected $thirdPartyUrlsDataType = 'array'; + protected $timerCustomEventsType = 'Google_Service_Dfareporting_CreativeCustomEvent'; + protected $timerCustomEventsDataType = 'array'; + public $totalFileSize; + public $type; + public $version; + public $videoDescription; + public $videoDuration; + + + public function setAccountId($accountId) + { + $this->accountId = $accountId; + } + public function getAccountId() + { + return $this->accountId; + } + public function setActive($active) + { + $this->active = $active; + } + public function getActive() + { + return $this->active; + } + public function setAdParameters($adParameters) + { + $this->adParameters = $adParameters; + } + public function getAdParameters() + { + return $this->adParameters; + } + public function setAdTagKeys($adTagKeys) + { + $this->adTagKeys = $adTagKeys; + } + public function getAdTagKeys() + { + return $this->adTagKeys; + } + public function setAdvertiserId($advertiserId) + { + $this->advertiserId = $advertiserId; + } + public function getAdvertiserId() + { + return $this->advertiserId; + } + public function setAllowScriptAccess($allowScriptAccess) + { + $this->allowScriptAccess = $allowScriptAccess; + } + public function getAllowScriptAccess() + { + return $this->allowScriptAccess; + } + public function setArchived($archived) + { + $this->archived = $archived; + } + public function getArchived() + { + return $this->archived; + } + public function setArtworkType($artworkType) + { + $this->artworkType = $artworkType; + } + public function getArtworkType() + { + return $this->artworkType; + } + public function setAuthoringTool($authoringTool) + { + $this->authoringTool = $authoringTool; + } + public function getAuthoringTool() + { + return $this->authoringTool; + } + public function setAutoAdvanceImages($autoAdvanceImages) + { + $this->autoAdvanceImages = $autoAdvanceImages; + } + public function getAutoAdvanceImages() + { + return $this->autoAdvanceImages; + } + public function setBackgroundColor($backgroundColor) + { + $this->backgroundColor = $backgroundColor; + } + public function getBackgroundColor() + { + return $this->backgroundColor; + } + public function setBackupImageClickThroughUrl($backupImageClickThroughUrl) + { + $this->backupImageClickThroughUrl = $backupImageClickThroughUrl; + } + public function getBackupImageClickThroughUrl() + { + return $this->backupImageClickThroughUrl; + } + public function setBackupImageFeatures($backupImageFeatures) + { + $this->backupImageFeatures = $backupImageFeatures; + } + public function getBackupImageFeatures() + { + return $this->backupImageFeatures; + } + public function setBackupImageReportingLabel($backupImageReportingLabel) + { + $this->backupImageReportingLabel = $backupImageReportingLabel; + } + public function getBackupImageReportingLabel() + { + return $this->backupImageReportingLabel; + } + public function setBackupImageTargetWindow(Google_Service_Dfareporting_TargetWindow $backupImageTargetWindow) + { + $this->backupImageTargetWindow = $backupImageTargetWindow; + } + public function getBackupImageTargetWindow() + { + return $this->backupImageTargetWindow; + } + public function setClickTags($clickTags) + { + $this->clickTags = $clickTags; + } + public function getClickTags() + { + return $this->clickTags; + } + public function setCommercialId($commercialId) + { + $this->commercialId = $commercialId; + } + public function getCommercialId() + { + return $this->commercialId; + } + public function setCompanionCreatives($companionCreatives) + { + $this->companionCreatives = $companionCreatives; + } + public function getCompanionCreatives() + { + return $this->companionCreatives; + } + public function setCompatibility($compatibility) + { + $this->compatibility = $compatibility; + } + public function getCompatibility() + { + return $this->compatibility; + } + public function setConvertFlashToHtml5($convertFlashToHtml5) + { + $this->convertFlashToHtml5 = $convertFlashToHtml5; + } + public function getConvertFlashToHtml5() + { + return $this->convertFlashToHtml5; + } + public function setCounterCustomEvents($counterCustomEvents) + { + $this->counterCustomEvents = $counterCustomEvents; + } + public function getCounterCustomEvents() + { + return $this->counterCustomEvents; + } + public function setCreativeAssets($creativeAssets) + { + $this->creativeAssets = $creativeAssets; + } + public function getCreativeAssets() + { + return $this->creativeAssets; + } + public function setCreativeFieldAssignments($creativeFieldAssignments) + { + $this->creativeFieldAssignments = $creativeFieldAssignments; + } + public function getCreativeFieldAssignments() + { + return $this->creativeFieldAssignments; + } + public function setCustomKeyValues($customKeyValues) + { + $this->customKeyValues = $customKeyValues; + } + public function getCustomKeyValues() + { + return $this->customKeyValues; + } + public function setExitCustomEvents($exitCustomEvents) + { + $this->exitCustomEvents = $exitCustomEvents; + } + public function getExitCustomEvents() + { + return $this->exitCustomEvents; + } + public function setFsCommand(Google_Service_Dfareporting_FsCommand $fsCommand) + { + $this->fsCommand = $fsCommand; + } + public function getFsCommand() + { + return $this->fsCommand; + } + public function setHtmlCode($htmlCode) + { + $this->htmlCode = $htmlCode; + } + public function getHtmlCode() + { + return $this->htmlCode; + } + public function setHtmlCodeLocked($htmlCodeLocked) + { + $this->htmlCodeLocked = $htmlCodeLocked; + } + public function getHtmlCodeLocked() + { + return $this->htmlCodeLocked; + } + public function setId($id) + { + $this->id = $id; + } + public function getId() + { + return $this->id; + } + public function setIdDimensionValue(Google_Service_Dfareporting_DimensionValue $idDimensionValue) + { + $this->idDimensionValue = $idDimensionValue; + } + public function getIdDimensionValue() + { + return $this->idDimensionValue; + } + public function setKind($kind) + { + $this->kind = $kind; + } + public function getKind() + { + return $this->kind; + } + public function setLastModifiedInfo(Google_Service_Dfareporting_LastModifiedInfo $lastModifiedInfo) + { + $this->lastModifiedInfo = $lastModifiedInfo; + } + public function getLastModifiedInfo() + { + return $this->lastModifiedInfo; + } + public function setLatestTraffickedCreativeId($latestTraffickedCreativeId) + { + $this->latestTraffickedCreativeId = $latestTraffickedCreativeId; + } + public function getLatestTraffickedCreativeId() + { + return $this->latestTraffickedCreativeId; + } + public function setName($name) + { + $this->name = $name; + } + public function getName() + { + return $this->name; + } + public function setOverrideCss($overrideCss) + { + $this->overrideCss = $overrideCss; + } + public function getOverrideCss() + { + return $this->overrideCss; + } + public function setRedirectUrl($redirectUrl) + { + $this->redirectUrl = $redirectUrl; + } + public function getRedirectUrl() + { + return $this->redirectUrl; + } + public function setRenderingId($renderingId) + { + $this->renderingId = $renderingId; + } + public function getRenderingId() + { + return $this->renderingId; + } + public function setRenderingIdDimensionValue(Google_Service_Dfareporting_DimensionValue $renderingIdDimensionValue) + { + $this->renderingIdDimensionValue = $renderingIdDimensionValue; + } + public function getRenderingIdDimensionValue() + { + return $this->renderingIdDimensionValue; + } + public function setRequiredFlashPluginVersion($requiredFlashPluginVersion) + { + $this->requiredFlashPluginVersion = $requiredFlashPluginVersion; + } + public function getRequiredFlashPluginVersion() + { + return $this->requiredFlashPluginVersion; + } + public function setRequiredFlashVersion($requiredFlashVersion) + { + $this->requiredFlashVersion = $requiredFlashVersion; + } + public function getRequiredFlashVersion() + { + return $this->requiredFlashVersion; + } + public function setSize(Google_Service_Dfareporting_Size $size) + { + $this->size = $size; + } + public function getSize() + { + return $this->size; + } + public function setSkippable($skippable) + { + $this->skippable = $skippable; + } + public function getSkippable() + { + return $this->skippable; + } + public function setSslCompliant($sslCompliant) + { + $this->sslCompliant = $sslCompliant; + } + public function getSslCompliant() + { + return $this->sslCompliant; + } + public function setStudioAdvertiserId($studioAdvertiserId) + { + $this->studioAdvertiserId = $studioAdvertiserId; + } + public function getStudioAdvertiserId() + { + return $this->studioAdvertiserId; + } + public function setStudioCreativeId($studioCreativeId) + { + $this->studioCreativeId = $studioCreativeId; + } + public function getStudioCreativeId() + { + return $this->studioCreativeId; + } + public function setStudioTraffickedCreativeId($studioTraffickedCreativeId) + { + $this->studioTraffickedCreativeId = $studioTraffickedCreativeId; + } + public function getStudioTraffickedCreativeId() + { + return $this->studioTraffickedCreativeId; + } + public function setSubaccountId($subaccountId) + { + $this->subaccountId = $subaccountId; + } + public function getSubaccountId() + { + return $this->subaccountId; + } + public function setThirdPartyBackupImageImpressionsUrl($thirdPartyBackupImageImpressionsUrl) + { + $this->thirdPartyBackupImageImpressionsUrl = $thirdPartyBackupImageImpressionsUrl; + } + public function getThirdPartyBackupImageImpressionsUrl() + { + return $this->thirdPartyBackupImageImpressionsUrl; + } + public function setThirdPartyRichMediaImpressionsUrl($thirdPartyRichMediaImpressionsUrl) + { + $this->thirdPartyRichMediaImpressionsUrl = $thirdPartyRichMediaImpressionsUrl; + } + public function getThirdPartyRichMediaImpressionsUrl() + { + return $this->thirdPartyRichMediaImpressionsUrl; + } + public function setThirdPartyUrls($thirdPartyUrls) + { + $this->thirdPartyUrls = $thirdPartyUrls; + } + public function getThirdPartyUrls() + { + return $this->thirdPartyUrls; + } + public function setTimerCustomEvents($timerCustomEvents) + { + $this->timerCustomEvents = $timerCustomEvents; + } + public function getTimerCustomEvents() + { + return $this->timerCustomEvents; + } + public function setTotalFileSize($totalFileSize) + { + $this->totalFileSize = $totalFileSize; + } + public function getTotalFileSize() + { + return $this->totalFileSize; + } + public function setType($type) + { + $this->type = $type; + } + public function getType() + { + return $this->type; + } + public function setVersion($version) + { + $this->version = $version; + } + public function getVersion() + { + return $this->version; + } + public function setVideoDescription($videoDescription) + { + $this->videoDescription = $videoDescription; + } + public function getVideoDescription() + { + return $this->videoDescription; + } + public function setVideoDuration($videoDuration) + { + $this->videoDuration = $videoDuration; + } + public function getVideoDuration() + { + return $this->videoDuration; + } +} + +class Google_Service_Dfareporting_CreativeAsset extends Google_Collection +{ + protected $collection_key = 'detectedFeatures'; + protected $internal_gapi_mappings = array( + ); + public $actionScript3; + public $active; + public $alignment; + public $artworkType; + protected $assetIdentifierType = 'Google_Service_Dfareporting_CreativeAssetId'; + protected $assetIdentifierDataType = ''; + protected $backupImageExitType = 'Google_Service_Dfareporting_CreativeCustomEvent'; + protected $backupImageExitDataType = ''; + public $bitRate; + public $childAssetType; + protected $collapsedSizeType = 'Google_Service_Dfareporting_Size'; + protected $collapsedSizeDataType = ''; + public $customStartTimeValue; + public $detectedFeatures; + public $displayType; + public $duration; + public $durationType; + protected $expandedDimensionType = 'Google_Service_Dfareporting_Size'; + protected $expandedDimensionDataType = ''; + public $fileSize; + public $flashVersion; + public $hideFlashObjects; + public $hideSelectionBoxes; + public $horizontallyLocked; + public $id; + public $mimeType; + protected $offsetType = 'Google_Service_Dfareporting_OffsetPosition'; + protected $offsetDataType = ''; + public $originalBackup; + protected $positionType = 'Google_Service_Dfareporting_OffsetPosition'; + protected $positionDataType = ''; + public $positionLeftUnit; + public $positionTopUnit; + public $progressiveServingUrl; + public $pushdown; + public $pushdownDuration; + public $role; + protected $sizeType = 'Google_Service_Dfareporting_Size'; + protected $sizeDataType = ''; + public $sslCompliant; + public $startTimeType; + public $streamingServingUrl; + public $transparency; + public $verticallyLocked; + public $videoDuration; + public $windowMode; + public $zIndex; + public $zipFilename; + public $zipFilesize; + + + public function setActionScript3($actionScript3) + { + $this->actionScript3 = $actionScript3; + } + public function getActionScript3() + { + return $this->actionScript3; + } + public function setActive($active) + { + $this->active = $active; + } + public function getActive() + { + return $this->active; + } + public function setAlignment($alignment) + { + $this->alignment = $alignment; + } + public function getAlignment() + { + return $this->alignment; + } + public function setArtworkType($artworkType) + { + $this->artworkType = $artworkType; + } + public function getArtworkType() + { + return $this->artworkType; + } + public function setAssetIdentifier(Google_Service_Dfareporting_CreativeAssetId $assetIdentifier) + { + $this->assetIdentifier = $assetIdentifier; + } + public function getAssetIdentifier() + { + return $this->assetIdentifier; + } + public function setBackupImageExit(Google_Service_Dfareporting_CreativeCustomEvent $backupImageExit) + { + $this->backupImageExit = $backupImageExit; + } + public function getBackupImageExit() + { + return $this->backupImageExit; + } + public function setBitRate($bitRate) + { + $this->bitRate = $bitRate; + } + public function getBitRate() + { + return $this->bitRate; + } + public function setChildAssetType($childAssetType) + { + $this->childAssetType = $childAssetType; + } + public function getChildAssetType() + { + return $this->childAssetType; + } + public function setCollapsedSize(Google_Service_Dfareporting_Size $collapsedSize) + { + $this->collapsedSize = $collapsedSize; + } + public function getCollapsedSize() + { + return $this->collapsedSize; + } + public function setCustomStartTimeValue($customStartTimeValue) + { + $this->customStartTimeValue = $customStartTimeValue; + } + public function getCustomStartTimeValue() + { + return $this->customStartTimeValue; + } + public function setDetectedFeatures($detectedFeatures) + { + $this->detectedFeatures = $detectedFeatures; + } + public function getDetectedFeatures() + { + return $this->detectedFeatures; + } + public function setDisplayType($displayType) + { + $this->displayType = $displayType; + } + public function getDisplayType() + { + return $this->displayType; + } + public function setDuration($duration) + { + $this->duration = $duration; + } + public function getDuration() + { + return $this->duration; + } + public function setDurationType($durationType) + { + $this->durationType = $durationType; + } + public function getDurationType() + { + return $this->durationType; + } + public function setExpandedDimension(Google_Service_Dfareporting_Size $expandedDimension) + { + $this->expandedDimension = $expandedDimension; + } + public function getExpandedDimension() + { + return $this->expandedDimension; + } + public function setFileSize($fileSize) + { + $this->fileSize = $fileSize; + } + public function getFileSize() + { + return $this->fileSize; + } + public function setFlashVersion($flashVersion) + { + $this->flashVersion = $flashVersion; + } + public function getFlashVersion() + { + return $this->flashVersion; + } + public function setHideFlashObjects($hideFlashObjects) + { + $this->hideFlashObjects = $hideFlashObjects; + } + public function getHideFlashObjects() + { + return $this->hideFlashObjects; + } + public function setHideSelectionBoxes($hideSelectionBoxes) + { + $this->hideSelectionBoxes = $hideSelectionBoxes; + } + public function getHideSelectionBoxes() + { + return $this->hideSelectionBoxes; + } + public function setHorizontallyLocked($horizontallyLocked) + { + $this->horizontallyLocked = $horizontallyLocked; + } + public function getHorizontallyLocked() + { + return $this->horizontallyLocked; + } + public function setId($id) + { + $this->id = $id; + } + public function getId() + { + return $this->id; + } + public function setMimeType($mimeType) + { + $this->mimeType = $mimeType; + } + public function getMimeType() + { + return $this->mimeType; + } + public function setOffset(Google_Service_Dfareporting_OffsetPosition $offset) + { + $this->offset = $offset; + } + public function getOffset() + { + return $this->offset; + } + public function setOriginalBackup($originalBackup) + { + $this->originalBackup = $originalBackup; + } + public function getOriginalBackup() + { + return $this->originalBackup; + } + public function setPosition(Google_Service_Dfareporting_OffsetPosition $position) + { + $this->position = $position; + } + public function getPosition() + { + return $this->position; + } + public function setPositionLeftUnit($positionLeftUnit) + { + $this->positionLeftUnit = $positionLeftUnit; + } + public function getPositionLeftUnit() + { + return $this->positionLeftUnit; + } + public function setPositionTopUnit($positionTopUnit) + { + $this->positionTopUnit = $positionTopUnit; + } + public function getPositionTopUnit() + { + return $this->positionTopUnit; + } + public function setProgressiveServingUrl($progressiveServingUrl) + { + $this->progressiveServingUrl = $progressiveServingUrl; + } + public function getProgressiveServingUrl() + { + return $this->progressiveServingUrl; + } + public function setPushdown($pushdown) + { + $this->pushdown = $pushdown; + } + public function getPushdown() + { + return $this->pushdown; + } + public function setPushdownDuration($pushdownDuration) + { + $this->pushdownDuration = $pushdownDuration; + } + public function getPushdownDuration() + { + return $this->pushdownDuration; + } + public function setRole($role) + { + $this->role = $role; + } + public function getRole() + { + return $this->role; + } + public function setSize(Google_Service_Dfareporting_Size $size) + { + $this->size = $size; + } + public function getSize() + { + return $this->size; + } + public function setSslCompliant($sslCompliant) + { + $this->sslCompliant = $sslCompliant; + } + public function getSslCompliant() + { + return $this->sslCompliant; + } + public function setStartTimeType($startTimeType) + { + $this->startTimeType = $startTimeType; + } + public function getStartTimeType() + { + return $this->startTimeType; + } + public function setStreamingServingUrl($streamingServingUrl) + { + $this->streamingServingUrl = $streamingServingUrl; + } + public function getStreamingServingUrl() + { + return $this->streamingServingUrl; + } + public function setTransparency($transparency) + { + $this->transparency = $transparency; + } + public function getTransparency() + { + return $this->transparency; + } + public function setVerticallyLocked($verticallyLocked) + { + $this->verticallyLocked = $verticallyLocked; + } + public function getVerticallyLocked() + { + return $this->verticallyLocked; + } + public function setVideoDuration($videoDuration) + { + $this->videoDuration = $videoDuration; + } + public function getVideoDuration() + { + return $this->videoDuration; + } + public function setWindowMode($windowMode) + { + $this->windowMode = $windowMode; + } + public function getWindowMode() + { + return $this->windowMode; + } + public function setZIndex($zIndex) + { + $this->zIndex = $zIndex; + } + public function getZIndex() + { + return $this->zIndex; + } + public function setZipFilename($zipFilename) + { + $this->zipFilename = $zipFilename; + } + public function getZipFilename() + { + return $this->zipFilename; + } + public function setZipFilesize($zipFilesize) + { + $this->zipFilesize = $zipFilesize; + } + public function getZipFilesize() + { + return $this->zipFilesize; + } +} + +class Google_Service_Dfareporting_CreativeAssetId extends Google_Model +{ + protected $internal_gapi_mappings = array( + ); + public $name; + public $type; + + + public function setName($name) + { + $this->name = $name; + } + public function getName() + { + return $this->name; + } + public function setType($type) + { + $this->type = $type; + } + public function getType() + { + return $this->type; + } +} + +class Google_Service_Dfareporting_CreativeAssetMetadata extends Google_Collection +{ + protected $collection_key = 'warnedValidationRules'; + protected $internal_gapi_mappings = array( + ); + protected $assetIdentifierType = 'Google_Service_Dfareporting_CreativeAssetId'; + protected $assetIdentifierDataType = ''; + protected $clickTagsType = 'Google_Service_Dfareporting_ClickTag'; + protected $clickTagsDataType = 'array'; + public $detectedFeatures; + public $kind; + public $warnedValidationRules; + + + public function setAssetIdentifier(Google_Service_Dfareporting_CreativeAssetId $assetIdentifier) + { + $this->assetIdentifier = $assetIdentifier; + } + public function getAssetIdentifier() + { + return $this->assetIdentifier; + } + public function setClickTags($clickTags) + { + $this->clickTags = $clickTags; + } + public function getClickTags() + { + return $this->clickTags; + } + public function setDetectedFeatures($detectedFeatures) + { + $this->detectedFeatures = $detectedFeatures; + } + public function getDetectedFeatures() + { + return $this->detectedFeatures; + } + public function setKind($kind) + { + $this->kind = $kind; + } + public function getKind() + { + return $this->kind; + } + public function setWarnedValidationRules($warnedValidationRules) + { + $this->warnedValidationRules = $warnedValidationRules; + } + public function getWarnedValidationRules() + { + return $this->warnedValidationRules; + } +} + +class Google_Service_Dfareporting_CreativeAssignment extends Google_Collection +{ + protected $collection_key = 'richMediaExitOverrides'; + protected $internal_gapi_mappings = array( + ); + public $active; + public $applyEventTags; + protected $clickThroughUrlType = 'Google_Service_Dfareporting_ClickThroughUrl'; + protected $clickThroughUrlDataType = ''; + protected $companionCreativeOverridesType = 'Google_Service_Dfareporting_CompanionClickThroughOverride'; + protected $companionCreativeOverridesDataType = 'array'; + protected $creativeGroupAssignmentsType = 'Google_Service_Dfareporting_CreativeGroupAssignment'; + protected $creativeGroupAssignmentsDataType = 'array'; + public $creativeId; + protected $creativeIdDimensionValueType = 'Google_Service_Dfareporting_DimensionValue'; + protected $creativeIdDimensionValueDataType = ''; + public $endTime; + protected $richMediaExitOverridesType = 'Google_Service_Dfareporting_RichMediaExitOverride'; + protected $richMediaExitOverridesDataType = 'array'; + public $sequence; + public $sslCompliant; + public $startTime; + public $weight; + + + public function setActive($active) + { + $this->active = $active; + } + public function getActive() + { + return $this->active; + } + public function setApplyEventTags($applyEventTags) + { + $this->applyEventTags = $applyEventTags; + } + public function getApplyEventTags() + { + return $this->applyEventTags; + } + public function setClickThroughUrl(Google_Service_Dfareporting_ClickThroughUrl $clickThroughUrl) + { + $this->clickThroughUrl = $clickThroughUrl; + } + public function getClickThroughUrl() + { + return $this->clickThroughUrl; + } + public function setCompanionCreativeOverrides($companionCreativeOverrides) + { + $this->companionCreativeOverrides = $companionCreativeOverrides; + } + public function getCompanionCreativeOverrides() + { + return $this->companionCreativeOverrides; + } + public function setCreativeGroupAssignments($creativeGroupAssignments) + { + $this->creativeGroupAssignments = $creativeGroupAssignments; + } + public function getCreativeGroupAssignments() + { + return $this->creativeGroupAssignments; + } + public function setCreativeId($creativeId) + { + $this->creativeId = $creativeId; + } + public function getCreativeId() + { + return $this->creativeId; + } + public function setCreativeIdDimensionValue(Google_Service_Dfareporting_DimensionValue $creativeIdDimensionValue) + { + $this->creativeIdDimensionValue = $creativeIdDimensionValue; + } + public function getCreativeIdDimensionValue() + { + return $this->creativeIdDimensionValue; + } + public function setEndTime($endTime) + { + $this->endTime = $endTime; + } + public function getEndTime() + { + return $this->endTime; + } + public function setRichMediaExitOverrides($richMediaExitOverrides) + { + $this->richMediaExitOverrides = $richMediaExitOverrides; + } + public function getRichMediaExitOverrides() + { + return $this->richMediaExitOverrides; + } + public function setSequence($sequence) + { + $this->sequence = $sequence; + } + public function getSequence() + { + return $this->sequence; + } + public function setSslCompliant($sslCompliant) + { + $this->sslCompliant = $sslCompliant; + } + public function getSslCompliant() + { + return $this->sslCompliant; + } + public function setStartTime($startTime) + { + $this->startTime = $startTime; + } + public function getStartTime() + { + return $this->startTime; + } + public function setWeight($weight) + { + $this->weight = $weight; + } + public function getWeight() + { + return $this->weight; + } +} + +class Google_Service_Dfareporting_CreativeCustomEvent extends Google_Model +{ + protected $internal_gapi_mappings = array( + ); + public $active; + public $advertiserCustomEventName; + public $advertiserCustomEventType; + public $artworkLabel; + public $artworkType; + public $exitUrl; + public $id; + protected $popupWindowPropertiesType = 'Google_Service_Dfareporting_PopupWindowProperties'; + protected $popupWindowPropertiesDataType = ''; + public $targetType; + public $videoReportingId; + + + public function setActive($active) + { + $this->active = $active; + } + public function getActive() + { + return $this->active; + } + public function setAdvertiserCustomEventName($advertiserCustomEventName) + { + $this->advertiserCustomEventName = $advertiserCustomEventName; + } + public function getAdvertiserCustomEventName() + { + return $this->advertiserCustomEventName; + } + public function setAdvertiserCustomEventType($advertiserCustomEventType) + { + $this->advertiserCustomEventType = $advertiserCustomEventType; + } + public function getAdvertiserCustomEventType() + { + return $this->advertiserCustomEventType; + } + public function setArtworkLabel($artworkLabel) + { + $this->artworkLabel = $artworkLabel; + } + public function getArtworkLabel() + { + return $this->artworkLabel; + } + public function setArtworkType($artworkType) + { + $this->artworkType = $artworkType; + } + public function getArtworkType() + { + return $this->artworkType; + } + public function setExitUrl($exitUrl) + { + $this->exitUrl = $exitUrl; + } + public function getExitUrl() + { + return $this->exitUrl; + } + public function setId($id) + { + $this->id = $id; + } + public function getId() + { + return $this->id; + } + public function setPopupWindowProperties(Google_Service_Dfareporting_PopupWindowProperties $popupWindowProperties) + { + $this->popupWindowProperties = $popupWindowProperties; + } + public function getPopupWindowProperties() + { + return $this->popupWindowProperties; + } + public function setTargetType($targetType) + { + $this->targetType = $targetType; + } + public function getTargetType() + { + return $this->targetType; + } + public function setVideoReportingId($videoReportingId) + { + $this->videoReportingId = $videoReportingId; + } + public function getVideoReportingId() + { + return $this->videoReportingId; + } +} + +class Google_Service_Dfareporting_CreativeField extends Google_Model +{ + protected $internal_gapi_mappings = array( + ); + public $accountId; + public $advertiserId; + protected $advertiserIdDimensionValueType = 'Google_Service_Dfareporting_DimensionValue'; + protected $advertiserIdDimensionValueDataType = ''; + public $id; + public $kind; + public $name; + public $subaccountId; + + + public function setAccountId($accountId) + { + $this->accountId = $accountId; + } + public function getAccountId() + { + return $this->accountId; + } + public function setAdvertiserId($advertiserId) + { + $this->advertiserId = $advertiserId; + } + public function getAdvertiserId() + { + return $this->advertiserId; + } + public function setAdvertiserIdDimensionValue(Google_Service_Dfareporting_DimensionValue $advertiserIdDimensionValue) + { + $this->advertiserIdDimensionValue = $advertiserIdDimensionValue; + } + public function getAdvertiserIdDimensionValue() + { + return $this->advertiserIdDimensionValue; + } + public function setId($id) + { + $this->id = $id; + } + public function getId() + { + return $this->id; + } + public function setKind($kind) + { + $this->kind = $kind; + } + public function getKind() + { + return $this->kind; + } + public function setName($name) + { + $this->name = $name; + } + public function getName() + { + return $this->name; + } + public function setSubaccountId($subaccountId) + { + $this->subaccountId = $subaccountId; + } + public function getSubaccountId() + { + return $this->subaccountId; + } +} + +class Google_Service_Dfareporting_CreativeFieldAssignment extends Google_Model +{ + protected $internal_gapi_mappings = array( + ); + public $creativeFieldId; + public $creativeFieldValueId; + + + public function setCreativeFieldId($creativeFieldId) + { + $this->creativeFieldId = $creativeFieldId; + } + public function getCreativeFieldId() + { + return $this->creativeFieldId; + } + public function setCreativeFieldValueId($creativeFieldValueId) + { + $this->creativeFieldValueId = $creativeFieldValueId; + } + public function getCreativeFieldValueId() + { + return $this->creativeFieldValueId; + } +} + +class Google_Service_Dfareporting_CreativeFieldValue extends Google_Model +{ + protected $internal_gapi_mappings = array( + ); + public $id; + public $kind; + public $value; + + + public function setId($id) + { + $this->id = $id; + } + public function getId() + { + return $this->id; + } + public function setKind($kind) + { + $this->kind = $kind; + } + public function getKind() + { + return $this->kind; + } + public function setValue($value) + { + $this->value = $value; + } + public function getValue() + { + return $this->value; + } +} + +class Google_Service_Dfareporting_CreativeFieldValuesListResponse extends Google_Collection +{ + protected $collection_key = 'creativeFieldValues'; + protected $internal_gapi_mappings = array( + ); + protected $creativeFieldValuesType = 'Google_Service_Dfareporting_CreativeFieldValue'; + protected $creativeFieldValuesDataType = 'array'; + public $kind; + public $nextPageToken; + + + public function setCreativeFieldValues($creativeFieldValues) + { + $this->creativeFieldValues = $creativeFieldValues; + } + public function getCreativeFieldValues() + { + return $this->creativeFieldValues; + } + public function setKind($kind) + { + $this->kind = $kind; + } + public function getKind() + { + return $this->kind; + } + public function setNextPageToken($nextPageToken) + { + $this->nextPageToken = $nextPageToken; + } + public function getNextPageToken() + { + return $this->nextPageToken; + } +} + +class Google_Service_Dfareporting_CreativeFieldsListResponse extends Google_Collection +{ + protected $collection_key = 'creativeFields'; + protected $internal_gapi_mappings = array( + ); + protected $creativeFieldsType = 'Google_Service_Dfareporting_CreativeField'; + protected $creativeFieldsDataType = 'array'; + public $kind; + public $nextPageToken; + + + public function setCreativeFields($creativeFields) + { + $this->creativeFields = $creativeFields; + } + public function getCreativeFields() + { + return $this->creativeFields; + } + public function setKind($kind) + { + $this->kind = $kind; + } + public function getKind() + { + return $this->kind; + } + public function setNextPageToken($nextPageToken) + { + $this->nextPageToken = $nextPageToken; + } + public function getNextPageToken() + { + return $this->nextPageToken; + } +} + +class Google_Service_Dfareporting_CreativeGroup extends Google_Model +{ + protected $internal_gapi_mappings = array( + ); + public $accountId; + public $advertiserId; + protected $advertiserIdDimensionValueType = 'Google_Service_Dfareporting_DimensionValue'; + protected $advertiserIdDimensionValueDataType = ''; + public $groupNumber; + public $id; + public $kind; + public $name; + public $subaccountId; + + + public function setAccountId($accountId) + { + $this->accountId = $accountId; + } + public function getAccountId() + { + return $this->accountId; + } + public function setAdvertiserId($advertiserId) + { + $this->advertiserId = $advertiserId; + } + public function getAdvertiserId() + { + return $this->advertiserId; + } + public function setAdvertiserIdDimensionValue(Google_Service_Dfareporting_DimensionValue $advertiserIdDimensionValue) + { + $this->advertiserIdDimensionValue = $advertiserIdDimensionValue; + } + public function getAdvertiserIdDimensionValue() + { + return $this->advertiserIdDimensionValue; + } + public function setGroupNumber($groupNumber) + { + $this->groupNumber = $groupNumber; + } + public function getGroupNumber() + { + return $this->groupNumber; + } + public function setId($id) + { + $this->id = $id; + } + public function getId() + { + return $this->id; + } + public function setKind($kind) + { + $this->kind = $kind; + } + public function getKind() + { + return $this->kind; + } + public function setName($name) + { + $this->name = $name; + } + public function getName() + { + return $this->name; + } + public function setSubaccountId($subaccountId) + { + $this->subaccountId = $subaccountId; + } + public function getSubaccountId() + { + return $this->subaccountId; + } +} + +class Google_Service_Dfareporting_CreativeGroupAssignment extends Google_Model +{ + protected $internal_gapi_mappings = array( + ); + public $creativeGroupId; + public $creativeGroupNumber; + + + public function setCreativeGroupId($creativeGroupId) + { + $this->creativeGroupId = $creativeGroupId; + } + public function getCreativeGroupId() + { + return $this->creativeGroupId; + } + public function setCreativeGroupNumber($creativeGroupNumber) + { + $this->creativeGroupNumber = $creativeGroupNumber; + } + public function getCreativeGroupNumber() + { + return $this->creativeGroupNumber; + } +} + +class Google_Service_Dfareporting_CreativeGroupsListResponse extends Google_Collection +{ + protected $collection_key = 'creativeGroups'; + protected $internal_gapi_mappings = array( + ); + protected $creativeGroupsType = 'Google_Service_Dfareporting_CreativeGroup'; + protected $creativeGroupsDataType = 'array'; + public $kind; + public $nextPageToken; + + + public function setCreativeGroups($creativeGroups) + { + $this->creativeGroups = $creativeGroups; + } + public function getCreativeGroups() + { + return $this->creativeGroups; + } + public function setKind($kind) + { + $this->kind = $kind; + } + public function getKind() + { + return $this->kind; + } + public function setNextPageToken($nextPageToken) + { + $this->nextPageToken = $nextPageToken; + } + public function getNextPageToken() + { + return $this->nextPageToken; + } +} + +class Google_Service_Dfareporting_CreativeOptimizationConfiguration extends Google_Collection +{ + protected $collection_key = 'optimizationActivitys'; + protected $internal_gapi_mappings = array( + ); + public $id; + public $name; + protected $optimizationActivitysType = 'Google_Service_Dfareporting_OptimizationActivity'; + protected $optimizationActivitysDataType = 'array'; + public $optimizationModel; + + + public function setId($id) + { + $this->id = $id; + } + public function getId() + { + return $this->id; + } + public function setName($name) + { + $this->name = $name; + } + public function getName() + { + return $this->name; + } + public function setOptimizationActivitys($optimizationActivitys) + { + $this->optimizationActivitys = $optimizationActivitys; + } + public function getOptimizationActivitys() + { + return $this->optimizationActivitys; + } + public function setOptimizationModel($optimizationModel) + { + $this->optimizationModel = $optimizationModel; + } + public function getOptimizationModel() + { + return $this->optimizationModel; + } +} + +class Google_Service_Dfareporting_CreativeRotation extends Google_Collection +{ + protected $collection_key = 'creativeAssignments'; + protected $internal_gapi_mappings = array( + ); + protected $creativeAssignmentsType = 'Google_Service_Dfareporting_CreativeAssignment'; + protected $creativeAssignmentsDataType = 'array'; + public $creativeOptimizationConfigurationId; + public $type; + public $weightCalculationStrategy; + + + public function setCreativeAssignments($creativeAssignments) + { + $this->creativeAssignments = $creativeAssignments; + } + public function getCreativeAssignments() + { + return $this->creativeAssignments; + } + public function setCreativeOptimizationConfigurationId($creativeOptimizationConfigurationId) + { + $this->creativeOptimizationConfigurationId = $creativeOptimizationConfigurationId; + } + public function getCreativeOptimizationConfigurationId() + { + return $this->creativeOptimizationConfigurationId; + } + public function setType($type) + { + $this->type = $type; + } + public function getType() + { + return $this->type; + } + public function setWeightCalculationStrategy($weightCalculationStrategy) + { + $this->weightCalculationStrategy = $weightCalculationStrategy; + } + public function getWeightCalculationStrategy() + { + return $this->weightCalculationStrategy; + } +} + +class Google_Service_Dfareporting_CreativeSettings extends Google_Model +{ + protected $internal_gapi_mappings = array( + ); + public $iFrameFooter; + public $iFrameHeader; + + + public function setIFrameFooter($iFrameFooter) + { + $this->iFrameFooter = $iFrameFooter; + } + public function getIFrameFooter() + { + return $this->iFrameFooter; + } + public function setIFrameHeader($iFrameHeader) + { + $this->iFrameHeader = $iFrameHeader; + } + public function getIFrameHeader() + { + return $this->iFrameHeader; + } +} + +class Google_Service_Dfareporting_CreativesListResponse extends Google_Collection +{ + protected $collection_key = 'creatives'; + protected $internal_gapi_mappings = array( + ); + protected $creativesType = 'Google_Service_Dfareporting_Creative'; + protected $creativesDataType = 'array'; + public $kind; + public $nextPageToken; + + + public function setCreatives($creatives) + { + $this->creatives = $creatives; + } + public function getCreatives() + { + return $this->creatives; + } + public function setKind($kind) + { + $this->kind = $kind; + } + public function getKind() + { + return $this->kind; + } + public function setNextPageToken($nextPageToken) + { + $this->nextPageToken = $nextPageToken; + } + public function getNextPageToken() + { + return $this->nextPageToken; + } +} + class Google_Service_Dfareporting_CrossDimensionReachReportCompatibleFields extends Google_Collection { protected $collection_key = 'overlapMetrics'; @@ -937,6 +13371,113 @@ class Google_Service_Dfareporting_DateRange extends Google_Model } } +class Google_Service_Dfareporting_DayPartTargeting extends Google_Collection +{ + protected $collection_key = 'hoursOfDay'; + protected $internal_gapi_mappings = array( + ); + public $daysOfWeek; + public $hoursOfDay; + public $userLocalTime; + + + public function setDaysOfWeek($daysOfWeek) + { + $this->daysOfWeek = $daysOfWeek; + } + public function getDaysOfWeek() + { + return $this->daysOfWeek; + } + public function setHoursOfDay($hoursOfDay) + { + $this->hoursOfDay = $hoursOfDay; + } + public function getHoursOfDay() + { + return $this->hoursOfDay; + } + public function setUserLocalTime($userLocalTime) + { + $this->userLocalTime = $userLocalTime; + } + public function getUserLocalTime() + { + return $this->userLocalTime; + } +} + +class Google_Service_Dfareporting_DefaultClickThroughEventTagProperties extends Google_Model +{ + protected $internal_gapi_mappings = array( + ); + public $defaultClickThroughEventTagId; + public $overrideInheritedEventTag; + + + public function setDefaultClickThroughEventTagId($defaultClickThroughEventTagId) + { + $this->defaultClickThroughEventTagId = $defaultClickThroughEventTagId; + } + public function getDefaultClickThroughEventTagId() + { + return $this->defaultClickThroughEventTagId; + } + public function setOverrideInheritedEventTag($overrideInheritedEventTag) + { + $this->overrideInheritedEventTag = $overrideInheritedEventTag; + } + public function getOverrideInheritedEventTag() + { + return $this->overrideInheritedEventTag; + } +} + +class Google_Service_Dfareporting_DeliverySchedule extends Google_Model +{ + protected $internal_gapi_mappings = array( + ); + protected $frequencyCapType = 'Google_Service_Dfareporting_FrequencyCap'; + protected $frequencyCapDataType = ''; + public $hardCutoff; + public $impressionRatio; + public $priority; + + + public function setFrequencyCap(Google_Service_Dfareporting_FrequencyCap $frequencyCap) + { + $this->frequencyCap = $frequencyCap; + } + public function getFrequencyCap() + { + return $this->frequencyCap; + } + public function setHardCutoff($hardCutoff) + { + $this->hardCutoff = $hardCutoff; + } + public function getHardCutoff() + { + return $this->hardCutoff; + } + public function setImpressionRatio($impressionRatio) + { + $this->impressionRatio = $impressionRatio; + } + public function getImpressionRatio() + { + return $this->impressionRatio; + } + public function setPriority($priority) + { + $this->priority = $priority; + } + public function getPriority() + { + return $this->priority; + } +} + class Google_Service_Dfareporting_DfareportingFile extends Google_Model { protected $internal_gapi_mappings = array( @@ -1063,6 +13604,61 @@ class Google_Service_Dfareporting_DfareportingFileUrls extends Google_Model } } +class Google_Service_Dfareporting_DfpSettings extends Google_Model +{ + protected $internal_gapi_mappings = array( + "dfpNetworkCode" => "dfp_network_code", + "dfpNetworkName" => "dfp_network_name", + ); + public $dfpNetworkCode; + public $dfpNetworkName; + public $programmaticPlacementAccepted; + public $pubPaidPlacementAccepted; + public $publisherPortalOnly; + + + public function setDfpNetworkCode($dfpNetworkCode) + { + $this->dfpNetworkCode = $dfpNetworkCode; + } + public function getDfpNetworkCode() + { + return $this->dfpNetworkCode; + } + public function setDfpNetworkName($dfpNetworkName) + { + $this->dfpNetworkName = $dfpNetworkName; + } + public function getDfpNetworkName() + { + return $this->dfpNetworkName; + } + public function setProgrammaticPlacementAccepted($programmaticPlacementAccepted) + { + $this->programmaticPlacementAccepted = $programmaticPlacementAccepted; + } + public function getProgrammaticPlacementAccepted() + { + return $this->programmaticPlacementAccepted; + } + public function setPubPaidPlacementAccepted($pubPaidPlacementAccepted) + { + $this->pubPaidPlacementAccepted = $pubPaidPlacementAccepted; + } + public function getPubPaidPlacementAccepted() + { + return $this->pubPaidPlacementAccepted; + } + public function setPublisherPortalOnly($publisherPortalOnly) + { + $this->publisherPortalOnly = $publisherPortalOnly; + } + public function getPublisherPortalOnly() + { + return $this->publisherPortalOnly; + } +} + class Google_Service_Dfareporting_Dimension extends Google_Model { protected $internal_gapi_mappings = array( @@ -1287,6 +13883,634 @@ class Google_Service_Dfareporting_DimensionValueRequest extends Google_Collectio } } +class Google_Service_Dfareporting_DirectorySite extends Google_Collection +{ + protected $collection_key = 'interstitialTagFormats'; + protected $internal_gapi_mappings = array( + ); + public $active; + protected $contactAssignmentsType = 'Google_Service_Dfareporting_DirectorySiteContactAssignment'; + protected $contactAssignmentsDataType = 'array'; + public $countryId; + public $currencyId; + public $description; + public $id; + protected $idDimensionValueType = 'Google_Service_Dfareporting_DimensionValue'; + protected $idDimensionValueDataType = ''; + public $inpageTagFormats; + public $interstitialTagFormats; + public $kind; + public $name; + public $parentId; + protected $settingsType = 'Google_Service_Dfareporting_DirectorySiteSettings'; + protected $settingsDataType = ''; + public $url; + + + public function setActive($active) + { + $this->active = $active; + } + public function getActive() + { + return $this->active; + } + public function setContactAssignments($contactAssignments) + { + $this->contactAssignments = $contactAssignments; + } + public function getContactAssignments() + { + return $this->contactAssignments; + } + public function setCountryId($countryId) + { + $this->countryId = $countryId; + } + public function getCountryId() + { + return $this->countryId; + } + public function setCurrencyId($currencyId) + { + $this->currencyId = $currencyId; + } + public function getCurrencyId() + { + return $this->currencyId; + } + public function setDescription($description) + { + $this->description = $description; + } + public function getDescription() + { + return $this->description; + } + public function setId($id) + { + $this->id = $id; + } + public function getId() + { + return $this->id; + } + public function setIdDimensionValue(Google_Service_Dfareporting_DimensionValue $idDimensionValue) + { + $this->idDimensionValue = $idDimensionValue; + } + public function getIdDimensionValue() + { + return $this->idDimensionValue; + } + public function setInpageTagFormats($inpageTagFormats) + { + $this->inpageTagFormats = $inpageTagFormats; + } + public function getInpageTagFormats() + { + return $this->inpageTagFormats; + } + public function setInterstitialTagFormats($interstitialTagFormats) + { + $this->interstitialTagFormats = $interstitialTagFormats; + } + public function getInterstitialTagFormats() + { + return $this->interstitialTagFormats; + } + public function setKind($kind) + { + $this->kind = $kind; + } + public function getKind() + { + return $this->kind; + } + public function setName($name) + { + $this->name = $name; + } + public function getName() + { + return $this->name; + } + public function setParentId($parentId) + { + $this->parentId = $parentId; + } + public function getParentId() + { + return $this->parentId; + } + public function setSettings(Google_Service_Dfareporting_DirectorySiteSettings $settings) + { + $this->settings = $settings; + } + public function getSettings() + { + return $this->settings; + } + public function setUrl($url) + { + $this->url = $url; + } + public function getUrl() + { + return $this->url; + } +} + +class Google_Service_Dfareporting_DirectorySiteContact extends Google_Model +{ + protected $internal_gapi_mappings = array( + ); + public $address; + public $email; + public $firstName; + public $id; + public $kind; + public $lastName; + public $phone; + public $role; + public $title; + public $type; + + + public function setAddress($address) + { + $this->address = $address; + } + public function getAddress() + { + return $this->address; + } + public function setEmail($email) + { + $this->email = $email; + } + public function getEmail() + { + return $this->email; + } + public function setFirstName($firstName) + { + $this->firstName = $firstName; + } + public function getFirstName() + { + return $this->firstName; + } + public function setId($id) + { + $this->id = $id; + } + public function getId() + { + return $this->id; + } + public function setKind($kind) + { + $this->kind = $kind; + } + public function getKind() + { + return $this->kind; + } + public function setLastName($lastName) + { + $this->lastName = $lastName; + } + public function getLastName() + { + return $this->lastName; + } + public function setPhone($phone) + { + $this->phone = $phone; + } + public function getPhone() + { + return $this->phone; + } + public function setRole($role) + { + $this->role = $role; + } + public function getRole() + { + return $this->role; + } + public function setTitle($title) + { + $this->title = $title; + } + public function getTitle() + { + return $this->title; + } + public function setType($type) + { + $this->type = $type; + } + public function getType() + { + return $this->type; + } +} + +class Google_Service_Dfareporting_DirectorySiteContactAssignment extends Google_Model +{ + protected $internal_gapi_mappings = array( + ); + public $contactId; + public $visibility; + + + public function setContactId($contactId) + { + $this->contactId = $contactId; + } + public function getContactId() + { + return $this->contactId; + } + public function setVisibility($visibility) + { + $this->visibility = $visibility; + } + public function getVisibility() + { + return $this->visibility; + } +} + +class Google_Service_Dfareporting_DirectorySiteContactsListResponse extends Google_Collection +{ + protected $collection_key = 'directorySiteContacts'; + protected $internal_gapi_mappings = array( + ); + protected $directorySiteContactsType = 'Google_Service_Dfareporting_DirectorySiteContact'; + protected $directorySiteContactsDataType = 'array'; + public $kind; + public $nextPageToken; + + + public function setDirectorySiteContacts($directorySiteContacts) + { + $this->directorySiteContacts = $directorySiteContacts; + } + public function getDirectorySiteContacts() + { + return $this->directorySiteContacts; + } + public function setKind($kind) + { + $this->kind = $kind; + } + public function getKind() + { + return $this->kind; + } + public function setNextPageToken($nextPageToken) + { + $this->nextPageToken = $nextPageToken; + } + public function getNextPageToken() + { + return $this->nextPageToken; + } +} + +class Google_Service_Dfareporting_DirectorySiteSettings extends Google_Model +{ + protected $internal_gapi_mappings = array( + "dfpSettings" => "dfp_settings", + "instreamVideoPlacementAccepted" => "instream_video_placement_accepted", + ); + public $activeViewOptOut; + protected $dfpSettingsType = 'Google_Service_Dfareporting_DfpSettings'; + protected $dfpSettingsDataType = ''; + public $instreamVideoPlacementAccepted; + public $interstitialPlacementAccepted; + public $nielsenOcrOptOut; + public $verificationTagOptOut; + public $videoActiveViewOptOut; + + + public function setActiveViewOptOut($activeViewOptOut) + { + $this->activeViewOptOut = $activeViewOptOut; + } + public function getActiveViewOptOut() + { + return $this->activeViewOptOut; + } + public function setDfpSettings(Google_Service_Dfareporting_DfpSettings $dfpSettings) + { + $this->dfpSettings = $dfpSettings; + } + public function getDfpSettings() + { + return $this->dfpSettings; + } + public function setInstreamVideoPlacementAccepted($instreamVideoPlacementAccepted) + { + $this->instreamVideoPlacementAccepted = $instreamVideoPlacementAccepted; + } + public function getInstreamVideoPlacementAccepted() + { + return $this->instreamVideoPlacementAccepted; + } + public function setInterstitialPlacementAccepted($interstitialPlacementAccepted) + { + $this->interstitialPlacementAccepted = $interstitialPlacementAccepted; + } + public function getInterstitialPlacementAccepted() + { + return $this->interstitialPlacementAccepted; + } + public function setNielsenOcrOptOut($nielsenOcrOptOut) + { + $this->nielsenOcrOptOut = $nielsenOcrOptOut; + } + public function getNielsenOcrOptOut() + { + return $this->nielsenOcrOptOut; + } + public function setVerificationTagOptOut($verificationTagOptOut) + { + $this->verificationTagOptOut = $verificationTagOptOut; + } + public function getVerificationTagOptOut() + { + return $this->verificationTagOptOut; + } + public function setVideoActiveViewOptOut($videoActiveViewOptOut) + { + $this->videoActiveViewOptOut = $videoActiveViewOptOut; + } + public function getVideoActiveViewOptOut() + { + return $this->videoActiveViewOptOut; + } +} + +class Google_Service_Dfareporting_DirectorySitesListResponse extends Google_Collection +{ + protected $collection_key = 'directorySites'; + protected $internal_gapi_mappings = array( + ); + protected $directorySitesType = 'Google_Service_Dfareporting_DirectorySite'; + protected $directorySitesDataType = 'array'; + public $kind; + public $nextPageToken; + + + public function setDirectorySites($directorySites) + { + $this->directorySites = $directorySites; + } + public function getDirectorySites() + { + return $this->directorySites; + } + public function setKind($kind) + { + $this->kind = $kind; + } + public function getKind() + { + return $this->kind; + } + public function setNextPageToken($nextPageToken) + { + $this->nextPageToken = $nextPageToken; + } + public function getNextPageToken() + { + return $this->nextPageToken; + } +} + +class Google_Service_Dfareporting_EventTag extends Google_Collection +{ + protected $collection_key = 'siteIds'; + protected $internal_gapi_mappings = array( + ); + public $accountId; + public $advertiserId; + protected $advertiserIdDimensionValueType = 'Google_Service_Dfareporting_DimensionValue'; + protected $advertiserIdDimensionValueDataType = ''; + public $campaignId; + protected $campaignIdDimensionValueType = 'Google_Service_Dfareporting_DimensionValue'; + protected $campaignIdDimensionValueDataType = ''; + public $enabledByDefault; + public $id; + public $kind; + public $name; + public $siteFilterType; + public $siteIds; + public $sslCompliant; + public $status; + public $subaccountId; + public $type; + public $url; + public $urlEscapeLevels; + + + public function setAccountId($accountId) + { + $this->accountId = $accountId; + } + public function getAccountId() + { + return $this->accountId; + } + public function setAdvertiserId($advertiserId) + { + $this->advertiserId = $advertiserId; + } + public function getAdvertiserId() + { + return $this->advertiserId; + } + public function setAdvertiserIdDimensionValue(Google_Service_Dfareporting_DimensionValue $advertiserIdDimensionValue) + { + $this->advertiserIdDimensionValue = $advertiserIdDimensionValue; + } + public function getAdvertiserIdDimensionValue() + { + return $this->advertiserIdDimensionValue; + } + public function setCampaignId($campaignId) + { + $this->campaignId = $campaignId; + } + public function getCampaignId() + { + return $this->campaignId; + } + public function setCampaignIdDimensionValue(Google_Service_Dfareporting_DimensionValue $campaignIdDimensionValue) + { + $this->campaignIdDimensionValue = $campaignIdDimensionValue; + } + public function getCampaignIdDimensionValue() + { + return $this->campaignIdDimensionValue; + } + public function setEnabledByDefault($enabledByDefault) + { + $this->enabledByDefault = $enabledByDefault; + } + public function getEnabledByDefault() + { + return $this->enabledByDefault; + } + public function setId($id) + { + $this->id = $id; + } + public function getId() + { + return $this->id; + } + public function setKind($kind) + { + $this->kind = $kind; + } + public function getKind() + { + return $this->kind; + } + public function setName($name) + { + $this->name = $name; + } + public function getName() + { + return $this->name; + } + public function setSiteFilterType($siteFilterType) + { + $this->siteFilterType = $siteFilterType; + } + public function getSiteFilterType() + { + return $this->siteFilterType; + } + public function setSiteIds($siteIds) + { + $this->siteIds = $siteIds; + } + public function getSiteIds() + { + return $this->siteIds; + } + public function setSslCompliant($sslCompliant) + { + $this->sslCompliant = $sslCompliant; + } + public function getSslCompliant() + { + return $this->sslCompliant; + } + public function setStatus($status) + { + $this->status = $status; + } + public function getStatus() + { + return $this->status; + } + public function setSubaccountId($subaccountId) + { + $this->subaccountId = $subaccountId; + } + public function getSubaccountId() + { + return $this->subaccountId; + } + public function setType($type) + { + $this->type = $type; + } + public function getType() + { + return $this->type; + } + public function setUrl($url) + { + $this->url = $url; + } + public function getUrl() + { + return $this->url; + } + public function setUrlEscapeLevels($urlEscapeLevels) + { + $this->urlEscapeLevels = $urlEscapeLevels; + } + public function getUrlEscapeLevels() + { + return $this->urlEscapeLevels; + } +} + +class Google_Service_Dfareporting_EventTagOverride extends Google_Model +{ + protected $internal_gapi_mappings = array( + ); + public $enabled; + public $id; + + + public function setEnabled($enabled) + { + $this->enabled = $enabled; + } + public function getEnabled() + { + return $this->enabled; + } + public function setId($id) + { + $this->id = $id; + } + public function getId() + { + return $this->id; + } +} + +class Google_Service_Dfareporting_EventTagsListResponse extends Google_Collection +{ + protected $collection_key = 'eventTags'; + protected $internal_gapi_mappings = array( + ); + protected $eventTagsType = 'Google_Service_Dfareporting_EventTag'; + protected $eventTagsDataType = 'array'; + public $kind; + + + public function setEventTags($eventTags) + { + $this->eventTags = $eventTags; + } + public function getEventTags() + { + return $this->eventTags; + } + public function setKind($kind) + { + $this->kind = $kind; + } + public function getKind() + { + return $this->kind; + } +} + class Google_Service_Dfareporting_FileList extends Google_Collection { protected $collection_key = 'items'; @@ -1333,6 +14557,830 @@ class Google_Service_Dfareporting_FileList extends Google_Collection } } +class Google_Service_Dfareporting_Flight extends Google_Model +{ + protected $internal_gapi_mappings = array( + ); + public $endDate; + public $rateOrCost; + public $startDate; + public $units; + + + public function setEndDate($endDate) + { + $this->endDate = $endDate; + } + public function getEndDate() + { + return $this->endDate; + } + public function setRateOrCost($rateOrCost) + { + $this->rateOrCost = $rateOrCost; + } + public function getRateOrCost() + { + return $this->rateOrCost; + } + public function setStartDate($startDate) + { + $this->startDate = $startDate; + } + public function getStartDate() + { + return $this->startDate; + } + public function setUnits($units) + { + $this->units = $units; + } + public function getUnits() + { + return $this->units; + } +} + +class Google_Service_Dfareporting_FloodlightActivitiesGenerateTagResponse extends Google_Model +{ + protected $internal_gapi_mappings = array( + ); + public $floodlightActivityTag; + public $kind; + + + public function setFloodlightActivityTag($floodlightActivityTag) + { + $this->floodlightActivityTag = $floodlightActivityTag; + } + public function getFloodlightActivityTag() + { + return $this->floodlightActivityTag; + } + public function setKind($kind) + { + $this->kind = $kind; + } + public function getKind() + { + return $this->kind; + } +} + +class Google_Service_Dfareporting_FloodlightActivitiesListResponse extends Google_Collection +{ + protected $collection_key = 'floodlightActivities'; + protected $internal_gapi_mappings = array( + ); + protected $floodlightActivitiesType = 'Google_Service_Dfareporting_FloodlightActivity'; + protected $floodlightActivitiesDataType = 'array'; + public $kind; + public $nextPageToken; + + + public function setFloodlightActivities($floodlightActivities) + { + $this->floodlightActivities = $floodlightActivities; + } + public function getFloodlightActivities() + { + return $this->floodlightActivities; + } + public function setKind($kind) + { + $this->kind = $kind; + } + public function getKind() + { + return $this->kind; + } + public function setNextPageToken($nextPageToken) + { + $this->nextPageToken = $nextPageToken; + } + public function getNextPageToken() + { + return $this->nextPageToken; + } +} + +class Google_Service_Dfareporting_FloodlightActivity extends Google_Collection +{ + protected $collection_key = 'userDefinedVariableTypes'; + protected $internal_gapi_mappings = array( + ); + public $accountId; + public $advertiserId; + protected $advertiserIdDimensionValueType = 'Google_Service_Dfareporting_DimensionValue'; + protected $advertiserIdDimensionValueDataType = ''; + public $cacheBustingType; + public $countingMethod; + protected $defaultTagsType = 'Google_Service_Dfareporting_FloodlightActivityDynamicTag'; + protected $defaultTagsDataType = 'array'; + public $expectedUrl; + public $floodlightActivityGroupId; + public $floodlightActivityGroupName; + public $floodlightActivityGroupTagString; + public $floodlightActivityGroupType; + public $floodlightConfigurationId; + protected $floodlightConfigurationIdDimensionValueType = 'Google_Service_Dfareporting_DimensionValue'; + protected $floodlightConfigurationIdDimensionValueDataType = ''; + public $hidden; + public $id; + protected $idDimensionValueType = 'Google_Service_Dfareporting_DimensionValue'; + protected $idDimensionValueDataType = ''; + public $imageTagEnabled; + public $kind; + public $name; + public $notes; + protected $publisherTagsType = 'Google_Service_Dfareporting_FloodlightActivityPublisherDynamicTag'; + protected $publisherTagsDataType = 'array'; + public $secure; + public $sslCompliant; + public $sslRequired; + public $subaccountId; + public $tagFormat; + public $tagString; + public $userDefinedVariableTypes; + + + public function setAccountId($accountId) + { + $this->accountId = $accountId; + } + public function getAccountId() + { + return $this->accountId; + } + public function setAdvertiserId($advertiserId) + { + $this->advertiserId = $advertiserId; + } + public function getAdvertiserId() + { + return $this->advertiserId; + } + public function setAdvertiserIdDimensionValue(Google_Service_Dfareporting_DimensionValue $advertiserIdDimensionValue) + { + $this->advertiserIdDimensionValue = $advertiserIdDimensionValue; + } + public function getAdvertiserIdDimensionValue() + { + return $this->advertiserIdDimensionValue; + } + public function setCacheBustingType($cacheBustingType) + { + $this->cacheBustingType = $cacheBustingType; + } + public function getCacheBustingType() + { + return $this->cacheBustingType; + } + public function setCountingMethod($countingMethod) + { + $this->countingMethod = $countingMethod; + } + public function getCountingMethod() + { + return $this->countingMethod; + } + public function setDefaultTags($defaultTags) + { + $this->defaultTags = $defaultTags; + } + public function getDefaultTags() + { + return $this->defaultTags; + } + public function setExpectedUrl($expectedUrl) + { + $this->expectedUrl = $expectedUrl; + } + public function getExpectedUrl() + { + return $this->expectedUrl; + } + public function setFloodlightActivityGroupId($floodlightActivityGroupId) + { + $this->floodlightActivityGroupId = $floodlightActivityGroupId; + } + public function getFloodlightActivityGroupId() + { + return $this->floodlightActivityGroupId; + } + public function setFloodlightActivityGroupName($floodlightActivityGroupName) + { + $this->floodlightActivityGroupName = $floodlightActivityGroupName; + } + public function getFloodlightActivityGroupName() + { + return $this->floodlightActivityGroupName; + } + public function setFloodlightActivityGroupTagString($floodlightActivityGroupTagString) + { + $this->floodlightActivityGroupTagString = $floodlightActivityGroupTagString; + } + public function getFloodlightActivityGroupTagString() + { + return $this->floodlightActivityGroupTagString; + } + public function setFloodlightActivityGroupType($floodlightActivityGroupType) + { + $this->floodlightActivityGroupType = $floodlightActivityGroupType; + } + public function getFloodlightActivityGroupType() + { + return $this->floodlightActivityGroupType; + } + public function setFloodlightConfigurationId($floodlightConfigurationId) + { + $this->floodlightConfigurationId = $floodlightConfigurationId; + } + public function getFloodlightConfigurationId() + { + return $this->floodlightConfigurationId; + } + public function setFloodlightConfigurationIdDimensionValue(Google_Service_Dfareporting_DimensionValue $floodlightConfigurationIdDimensionValue) + { + $this->floodlightConfigurationIdDimensionValue = $floodlightConfigurationIdDimensionValue; + } + public function getFloodlightConfigurationIdDimensionValue() + { + return $this->floodlightConfigurationIdDimensionValue; + } + public function setHidden($hidden) + { + $this->hidden = $hidden; + } + public function getHidden() + { + return $this->hidden; + } + public function setId($id) + { + $this->id = $id; + } + public function getId() + { + return $this->id; + } + public function setIdDimensionValue(Google_Service_Dfareporting_DimensionValue $idDimensionValue) + { + $this->idDimensionValue = $idDimensionValue; + } + public function getIdDimensionValue() + { + return $this->idDimensionValue; + } + public function setImageTagEnabled($imageTagEnabled) + { + $this->imageTagEnabled = $imageTagEnabled; + } + public function getImageTagEnabled() + { + return $this->imageTagEnabled; + } + public function setKind($kind) + { + $this->kind = $kind; + } + public function getKind() + { + return $this->kind; + } + public function setName($name) + { + $this->name = $name; + } + public function getName() + { + return $this->name; + } + public function setNotes($notes) + { + $this->notes = $notes; + } + public function getNotes() + { + return $this->notes; + } + public function setPublisherTags($publisherTags) + { + $this->publisherTags = $publisherTags; + } + public function getPublisherTags() + { + return $this->publisherTags; + } + public function setSecure($secure) + { + $this->secure = $secure; + } + public function getSecure() + { + return $this->secure; + } + public function setSslCompliant($sslCompliant) + { + $this->sslCompliant = $sslCompliant; + } + public function getSslCompliant() + { + return $this->sslCompliant; + } + public function setSslRequired($sslRequired) + { + $this->sslRequired = $sslRequired; + } + public function getSslRequired() + { + return $this->sslRequired; + } + public function setSubaccountId($subaccountId) + { + $this->subaccountId = $subaccountId; + } + public function getSubaccountId() + { + return $this->subaccountId; + } + public function setTagFormat($tagFormat) + { + $this->tagFormat = $tagFormat; + } + public function getTagFormat() + { + return $this->tagFormat; + } + public function setTagString($tagString) + { + $this->tagString = $tagString; + } + public function getTagString() + { + return $this->tagString; + } + public function setUserDefinedVariableTypes($userDefinedVariableTypes) + { + $this->userDefinedVariableTypes = $userDefinedVariableTypes; + } + public function getUserDefinedVariableTypes() + { + return $this->userDefinedVariableTypes; + } +} + +class Google_Service_Dfareporting_FloodlightActivityDynamicTag extends Google_Model +{ + protected $internal_gapi_mappings = array( + ); + public $id; + public $name; + public $tag; + + + public function setId($id) + { + $this->id = $id; + } + public function getId() + { + return $this->id; + } + public function setName($name) + { + $this->name = $name; + } + public function getName() + { + return $this->name; + } + public function setTag($tag) + { + $this->tag = $tag; + } + public function getTag() + { + return $this->tag; + } +} + +class Google_Service_Dfareporting_FloodlightActivityGroup extends Google_Model +{ + protected $internal_gapi_mappings = array( + ); + public $accountId; + public $advertiserId; + protected $advertiserIdDimensionValueType = 'Google_Service_Dfareporting_DimensionValue'; + protected $advertiserIdDimensionValueDataType = ''; + public $floodlightConfigurationId; + protected $floodlightConfigurationIdDimensionValueType = 'Google_Service_Dfareporting_DimensionValue'; + protected $floodlightConfigurationIdDimensionValueDataType = ''; + public $id; + protected $idDimensionValueType = 'Google_Service_Dfareporting_DimensionValue'; + protected $idDimensionValueDataType = ''; + public $kind; + public $name; + public $subaccountId; + public $tagString; + public $type; + + + public function setAccountId($accountId) + { + $this->accountId = $accountId; + } + public function getAccountId() + { + return $this->accountId; + } + public function setAdvertiserId($advertiserId) + { + $this->advertiserId = $advertiserId; + } + public function getAdvertiserId() + { + return $this->advertiserId; + } + public function setAdvertiserIdDimensionValue(Google_Service_Dfareporting_DimensionValue $advertiserIdDimensionValue) + { + $this->advertiserIdDimensionValue = $advertiserIdDimensionValue; + } + public function getAdvertiserIdDimensionValue() + { + return $this->advertiserIdDimensionValue; + } + public function setFloodlightConfigurationId($floodlightConfigurationId) + { + $this->floodlightConfigurationId = $floodlightConfigurationId; + } + public function getFloodlightConfigurationId() + { + return $this->floodlightConfigurationId; + } + public function setFloodlightConfigurationIdDimensionValue(Google_Service_Dfareporting_DimensionValue $floodlightConfigurationIdDimensionValue) + { + $this->floodlightConfigurationIdDimensionValue = $floodlightConfigurationIdDimensionValue; + } + public function getFloodlightConfigurationIdDimensionValue() + { + return $this->floodlightConfigurationIdDimensionValue; + } + public function setId($id) + { + $this->id = $id; + } + public function getId() + { + return $this->id; + } + public function setIdDimensionValue(Google_Service_Dfareporting_DimensionValue $idDimensionValue) + { + $this->idDimensionValue = $idDimensionValue; + } + public function getIdDimensionValue() + { + return $this->idDimensionValue; + } + public function setKind($kind) + { + $this->kind = $kind; + } + public function getKind() + { + return $this->kind; + } + public function setName($name) + { + $this->name = $name; + } + public function getName() + { + return $this->name; + } + public function setSubaccountId($subaccountId) + { + $this->subaccountId = $subaccountId; + } + public function getSubaccountId() + { + return $this->subaccountId; + } + public function setTagString($tagString) + { + $this->tagString = $tagString; + } + public function getTagString() + { + return $this->tagString; + } + public function setType($type) + { + $this->type = $type; + } + public function getType() + { + return $this->type; + } +} + +class Google_Service_Dfareporting_FloodlightActivityGroupsListResponse extends Google_Collection +{ + protected $collection_key = 'floodlightActivityGroups'; + protected $internal_gapi_mappings = array( + ); + protected $floodlightActivityGroupsType = 'Google_Service_Dfareporting_FloodlightActivityGroup'; + protected $floodlightActivityGroupsDataType = 'array'; + public $kind; + public $nextPageToken; + + + public function setFloodlightActivityGroups($floodlightActivityGroups) + { + $this->floodlightActivityGroups = $floodlightActivityGroups; + } + public function getFloodlightActivityGroups() + { + return $this->floodlightActivityGroups; + } + public function setKind($kind) + { + $this->kind = $kind; + } + public function getKind() + { + return $this->kind; + } + public function setNextPageToken($nextPageToken) + { + $this->nextPageToken = $nextPageToken; + } + public function getNextPageToken() + { + return $this->nextPageToken; + } +} + +class Google_Service_Dfareporting_FloodlightActivityPublisherDynamicTag extends Google_Model +{ + protected $internal_gapi_mappings = array( + ); + public $clickThrough; + public $directorySiteId; + protected $dynamicTagType = 'Google_Service_Dfareporting_FloodlightActivityDynamicTag'; + protected $dynamicTagDataType = ''; + public $siteId; + protected $siteIdDimensionValueType = 'Google_Service_Dfareporting_DimensionValue'; + protected $siteIdDimensionValueDataType = ''; + public $viewThrough; + + + public function setClickThrough($clickThrough) + { + $this->clickThrough = $clickThrough; + } + public function getClickThrough() + { + return $this->clickThrough; + } + public function setDirectorySiteId($directorySiteId) + { + $this->directorySiteId = $directorySiteId; + } + public function getDirectorySiteId() + { + return $this->directorySiteId; + } + public function setDynamicTag(Google_Service_Dfareporting_FloodlightActivityDynamicTag $dynamicTag) + { + $this->dynamicTag = $dynamicTag; + } + public function getDynamicTag() + { + return $this->dynamicTag; + } + public function setSiteId($siteId) + { + $this->siteId = $siteId; + } + public function getSiteId() + { + return $this->siteId; + } + public function setSiteIdDimensionValue(Google_Service_Dfareporting_DimensionValue $siteIdDimensionValue) + { + $this->siteIdDimensionValue = $siteIdDimensionValue; + } + public function getSiteIdDimensionValue() + { + return $this->siteIdDimensionValue; + } + public function setViewThrough($viewThrough) + { + $this->viewThrough = $viewThrough; + } + public function getViewThrough() + { + return $this->viewThrough; + } +} + +class Google_Service_Dfareporting_FloodlightConfiguration extends Google_Collection +{ + protected $collection_key = 'userDefinedVariableConfigurations'; + protected $internal_gapi_mappings = array( + ); + public $accountId; + public $advertiserId; + protected $advertiserIdDimensionValueType = 'Google_Service_Dfareporting_DimensionValue'; + protected $advertiserIdDimensionValueDataType = ''; + public $analyticsDataSharingEnabled; + public $exposureToConversionEnabled; + public $firstDayOfWeek; + public $id; + protected $idDimensionValueType = 'Google_Service_Dfareporting_DimensionValue'; + protected $idDimensionValueDataType = ''; + public $kind; + protected $lookbackConfigurationType = 'Google_Service_Dfareporting_LookbackConfiguration'; + protected $lookbackConfigurationDataType = ''; + public $naturalSearchConversionAttributionOption; + protected $omnitureSettingsType = 'Google_Service_Dfareporting_OmnitureSettings'; + protected $omnitureSettingsDataType = ''; + public $sslRequired; + public $standardVariableTypes; + public $subaccountId; + protected $tagSettingsType = 'Google_Service_Dfareporting_TagSettings'; + protected $tagSettingsDataType = ''; + protected $userDefinedVariableConfigurationsType = 'Google_Service_Dfareporting_UserDefinedVariableConfiguration'; + protected $userDefinedVariableConfigurationsDataType = 'array'; + + + public function setAccountId($accountId) + { + $this->accountId = $accountId; + } + public function getAccountId() + { + return $this->accountId; + } + public function setAdvertiserId($advertiserId) + { + $this->advertiserId = $advertiserId; + } + public function getAdvertiserId() + { + return $this->advertiserId; + } + public function setAdvertiserIdDimensionValue(Google_Service_Dfareporting_DimensionValue $advertiserIdDimensionValue) + { + $this->advertiserIdDimensionValue = $advertiserIdDimensionValue; + } + public function getAdvertiserIdDimensionValue() + { + return $this->advertiserIdDimensionValue; + } + public function setAnalyticsDataSharingEnabled($analyticsDataSharingEnabled) + { + $this->analyticsDataSharingEnabled = $analyticsDataSharingEnabled; + } + public function getAnalyticsDataSharingEnabled() + { + return $this->analyticsDataSharingEnabled; + } + public function setExposureToConversionEnabled($exposureToConversionEnabled) + { + $this->exposureToConversionEnabled = $exposureToConversionEnabled; + } + public function getExposureToConversionEnabled() + { + return $this->exposureToConversionEnabled; + } + public function setFirstDayOfWeek($firstDayOfWeek) + { + $this->firstDayOfWeek = $firstDayOfWeek; + } + public function getFirstDayOfWeek() + { + return $this->firstDayOfWeek; + } + public function setId($id) + { + $this->id = $id; + } + public function getId() + { + return $this->id; + } + public function setIdDimensionValue(Google_Service_Dfareporting_DimensionValue $idDimensionValue) + { + $this->idDimensionValue = $idDimensionValue; + } + public function getIdDimensionValue() + { + return $this->idDimensionValue; + } + public function setKind($kind) + { + $this->kind = $kind; + } + public function getKind() + { + return $this->kind; + } + public function setLookbackConfiguration(Google_Service_Dfareporting_LookbackConfiguration $lookbackConfiguration) + { + $this->lookbackConfiguration = $lookbackConfiguration; + } + public function getLookbackConfiguration() + { + return $this->lookbackConfiguration; + } + public function setNaturalSearchConversionAttributionOption($naturalSearchConversionAttributionOption) + { + $this->naturalSearchConversionAttributionOption = $naturalSearchConversionAttributionOption; + } + public function getNaturalSearchConversionAttributionOption() + { + return $this->naturalSearchConversionAttributionOption; + } + public function setOmnitureSettings(Google_Service_Dfareporting_OmnitureSettings $omnitureSettings) + { + $this->omnitureSettings = $omnitureSettings; + } + public function getOmnitureSettings() + { + return $this->omnitureSettings; + } + public function setSslRequired($sslRequired) + { + $this->sslRequired = $sslRequired; + } + public function getSslRequired() + { + return $this->sslRequired; + } + public function setStandardVariableTypes($standardVariableTypes) + { + $this->standardVariableTypes = $standardVariableTypes; + } + public function getStandardVariableTypes() + { + return $this->standardVariableTypes; + } + public function setSubaccountId($subaccountId) + { + $this->subaccountId = $subaccountId; + } + public function getSubaccountId() + { + return $this->subaccountId; + } + public function setTagSettings(Google_Service_Dfareporting_TagSettings $tagSettings) + { + $this->tagSettings = $tagSettings; + } + public function getTagSettings() + { + return $this->tagSettings; + } + public function setUserDefinedVariableConfigurations($userDefinedVariableConfigurations) + { + $this->userDefinedVariableConfigurations = $userDefinedVariableConfigurations; + } + public function getUserDefinedVariableConfigurations() + { + return $this->userDefinedVariableConfigurations; + } +} + +class Google_Service_Dfareporting_FloodlightConfigurationsListResponse extends Google_Collection +{ + protected $collection_key = 'floodlightConfigurations'; + protected $internal_gapi_mappings = array( + ); + protected $floodlightConfigurationsType = 'Google_Service_Dfareporting_FloodlightConfiguration'; + protected $floodlightConfigurationsDataType = 'array'; + public $kind; + + + public function setFloodlightConfigurations($floodlightConfigurations) + { + $this->floodlightConfigurations = $floodlightConfigurations; + } + public function getFloodlightConfigurations() + { + return $this->floodlightConfigurations; + } + public function setKind($kind) + { + $this->kind = $kind; + } + public function getKind() + { + return $this->kind; + } +} + class Google_Service_Dfareporting_FloodlightReportCompatibleFields extends Google_Collection { protected $collection_key = 'metrics'; @@ -1381,6 +15429,667 @@ class Google_Service_Dfareporting_FloodlightReportCompatibleFields extends Googl } } +class Google_Service_Dfareporting_FrequencyCap extends Google_Model +{ + protected $internal_gapi_mappings = array( + ); + public $duration; + public $impressions; + + + public function setDuration($duration) + { + $this->duration = $duration; + } + public function getDuration() + { + return $this->duration; + } + public function setImpressions($impressions) + { + $this->impressions = $impressions; + } + public function getImpressions() + { + return $this->impressions; + } +} + +class Google_Service_Dfareporting_FsCommand extends Google_Model +{ + protected $internal_gapi_mappings = array( + ); + public $left; + public $positionOption; + public $top; + public $windowHeight; + public $windowWidth; + + + public function setLeft($left) + { + $this->left = $left; + } + public function getLeft() + { + return $this->left; + } + public function setPositionOption($positionOption) + { + $this->positionOption = $positionOption; + } + public function getPositionOption() + { + return $this->positionOption; + } + public function setTop($top) + { + $this->top = $top; + } + public function getTop() + { + return $this->top; + } + public function setWindowHeight($windowHeight) + { + $this->windowHeight = $windowHeight; + } + public function getWindowHeight() + { + return $this->windowHeight; + } + public function setWindowWidth($windowWidth) + { + $this->windowWidth = $windowWidth; + } + public function getWindowWidth() + { + return $this->windowWidth; + } +} + +class Google_Service_Dfareporting_GeoTargeting extends Google_Collection +{ + protected $collection_key = 'regions'; + protected $internal_gapi_mappings = array( + ); + protected $citiesType = 'Google_Service_Dfareporting_City'; + protected $citiesDataType = 'array'; + protected $countriesType = 'Google_Service_Dfareporting_Country'; + protected $countriesDataType = 'array'; + public $excludeCountries; + protected $metrosType = 'Google_Service_Dfareporting_Metro'; + protected $metrosDataType = 'array'; + protected $postalCodesType = 'Google_Service_Dfareporting_PostalCode'; + protected $postalCodesDataType = 'array'; + protected $regionsType = 'Google_Service_Dfareporting_Region'; + protected $regionsDataType = 'array'; + + + public function setCities($cities) + { + $this->cities = $cities; + } + public function getCities() + { + return $this->cities; + } + public function setCountries($countries) + { + $this->countries = $countries; + } + public function getCountries() + { + return $this->countries; + } + public function setExcludeCountries($excludeCountries) + { + $this->excludeCountries = $excludeCountries; + } + public function getExcludeCountries() + { + return $this->excludeCountries; + } + public function setMetros($metros) + { + $this->metros = $metros; + } + public function getMetros() + { + return $this->metros; + } + public function setPostalCodes($postalCodes) + { + $this->postalCodes = $postalCodes; + } + public function getPostalCodes() + { + return $this->postalCodes; + } + public function setRegions($regions) + { + $this->regions = $regions; + } + public function getRegions() + { + return $this->regions; + } +} + +class Google_Service_Dfareporting_InventoryItem extends Google_Collection +{ + protected $collection_key = 'adSlots'; + protected $internal_gapi_mappings = array( + ); + public $accountId; + protected $adSlotsType = 'Google_Service_Dfareporting_AdSlot'; + protected $adSlotsDataType = 'array'; + public $advertiserId; + public $contentCategoryId; + public $estimatedClickThroughRate; + public $estimatedConversionRate; + public $id; + public $inPlan; + public $kind; + protected $lastModifiedInfoType = 'Google_Service_Dfareporting_LastModifiedInfo'; + protected $lastModifiedInfoDataType = ''; + public $name; + public $negotiationChannelId; + public $orderId; + public $placementStrategyId; + protected $pricingType = 'Google_Service_Dfareporting_Pricing'; + protected $pricingDataType = ''; + public $projectId; + public $rfpId; + public $siteId; + public $subaccountId; + + + public function setAccountId($accountId) + { + $this->accountId = $accountId; + } + public function getAccountId() + { + return $this->accountId; + } + public function setAdSlots($adSlots) + { + $this->adSlots = $adSlots; + } + public function getAdSlots() + { + return $this->adSlots; + } + public function setAdvertiserId($advertiserId) + { + $this->advertiserId = $advertiserId; + } + public function getAdvertiserId() + { + return $this->advertiserId; + } + public function setContentCategoryId($contentCategoryId) + { + $this->contentCategoryId = $contentCategoryId; + } + public function getContentCategoryId() + { + return $this->contentCategoryId; + } + public function setEstimatedClickThroughRate($estimatedClickThroughRate) + { + $this->estimatedClickThroughRate = $estimatedClickThroughRate; + } + public function getEstimatedClickThroughRate() + { + return $this->estimatedClickThroughRate; + } + public function setEstimatedConversionRate($estimatedConversionRate) + { + $this->estimatedConversionRate = $estimatedConversionRate; + } + public function getEstimatedConversionRate() + { + return $this->estimatedConversionRate; + } + public function setId($id) + { + $this->id = $id; + } + public function getId() + { + return $this->id; + } + public function setInPlan($inPlan) + { + $this->inPlan = $inPlan; + } + public function getInPlan() + { + return $this->inPlan; + } + public function setKind($kind) + { + $this->kind = $kind; + } + public function getKind() + { + return $this->kind; + } + public function setLastModifiedInfo(Google_Service_Dfareporting_LastModifiedInfo $lastModifiedInfo) + { + $this->lastModifiedInfo = $lastModifiedInfo; + } + public function getLastModifiedInfo() + { + return $this->lastModifiedInfo; + } + public function setName($name) + { + $this->name = $name; + } + public function getName() + { + return $this->name; + } + public function setNegotiationChannelId($negotiationChannelId) + { + $this->negotiationChannelId = $negotiationChannelId; + } + public function getNegotiationChannelId() + { + return $this->negotiationChannelId; + } + public function setOrderId($orderId) + { + $this->orderId = $orderId; + } + public function getOrderId() + { + return $this->orderId; + } + public function setPlacementStrategyId($placementStrategyId) + { + $this->placementStrategyId = $placementStrategyId; + } + public function getPlacementStrategyId() + { + return $this->placementStrategyId; + } + public function setPricing(Google_Service_Dfareporting_Pricing $pricing) + { + $this->pricing = $pricing; + } + public function getPricing() + { + return $this->pricing; + } + public function setProjectId($projectId) + { + $this->projectId = $projectId; + } + public function getProjectId() + { + return $this->projectId; + } + public function setRfpId($rfpId) + { + $this->rfpId = $rfpId; + } + public function getRfpId() + { + return $this->rfpId; + } + public function setSiteId($siteId) + { + $this->siteId = $siteId; + } + public function getSiteId() + { + return $this->siteId; + } + public function setSubaccountId($subaccountId) + { + $this->subaccountId = $subaccountId; + } + public function getSubaccountId() + { + return $this->subaccountId; + } +} + +class Google_Service_Dfareporting_InventoryItemsListResponse extends Google_Collection +{ + protected $collection_key = 'inventoryItems'; + protected $internal_gapi_mappings = array( + ); + protected $inventoryItemsType = 'Google_Service_Dfareporting_InventoryItem'; + protected $inventoryItemsDataType = 'array'; + public $kind; + public $nextPageToken; + + + public function setInventoryItems($inventoryItems) + { + $this->inventoryItems = $inventoryItems; + } + public function getInventoryItems() + { + return $this->inventoryItems; + } + public function setKind($kind) + { + $this->kind = $kind; + } + public function getKind() + { + return $this->kind; + } + public function setNextPageToken($nextPageToken) + { + $this->nextPageToken = $nextPageToken; + } + public function getNextPageToken() + { + return $this->nextPageToken; + } +} + +class Google_Service_Dfareporting_KeyValueTargetingExpression extends Google_Model +{ + protected $internal_gapi_mappings = array( + ); + public $expression; + + + public function setExpression($expression) + { + $this->expression = $expression; + } + public function getExpression() + { + return $this->expression; + } +} + +class Google_Service_Dfareporting_LandingPage extends Google_Model +{ + protected $internal_gapi_mappings = array( + ); + public $default; + public $id; + public $kind; + public $name; + public $url; + + + public function setDefault($default) + { + $this->default = $default; + } + public function getDefault() + { + return $this->default; + } + public function setId($id) + { + $this->id = $id; + } + public function getId() + { + return $this->id; + } + public function setKind($kind) + { + $this->kind = $kind; + } + public function getKind() + { + return $this->kind; + } + public function setName($name) + { + $this->name = $name; + } + public function getName() + { + return $this->name; + } + public function setUrl($url) + { + $this->url = $url; + } + public function getUrl() + { + return $this->url; + } +} + +class Google_Service_Dfareporting_LandingPagesListResponse extends Google_Collection +{ + protected $collection_key = 'landingPages'; + protected $internal_gapi_mappings = array( + ); + public $kind; + protected $landingPagesType = 'Google_Service_Dfareporting_LandingPage'; + protected $landingPagesDataType = 'array'; + + + public function setKind($kind) + { + $this->kind = $kind; + } + public function getKind() + { + return $this->kind; + } + public function setLandingPages($landingPages) + { + $this->landingPages = $landingPages; + } + public function getLandingPages() + { + return $this->landingPages; + } +} + +class Google_Service_Dfareporting_LastModifiedInfo extends Google_Model +{ + protected $internal_gapi_mappings = array( + ); + public $time; + + + public function setTime($time) + { + $this->time = $time; + } + public function getTime() + { + return $this->time; + } +} + +class Google_Service_Dfareporting_ListPopulationClause extends Google_Collection +{ + protected $collection_key = 'terms'; + protected $internal_gapi_mappings = array( + ); + protected $termsType = 'Google_Service_Dfareporting_ListPopulationTerm'; + protected $termsDataType = 'array'; + + + public function setTerms($terms) + { + $this->terms = $terms; + } + public function getTerms() + { + return $this->terms; + } +} + +class Google_Service_Dfareporting_ListPopulationRule extends Google_Collection +{ + protected $collection_key = 'listPopulationClauses'; + protected $internal_gapi_mappings = array( + ); + public $floodlightActivityId; + public $floodlightActivityName; + protected $listPopulationClausesType = 'Google_Service_Dfareporting_ListPopulationClause'; + protected $listPopulationClausesDataType = 'array'; + + + public function setFloodlightActivityId($floodlightActivityId) + { + $this->floodlightActivityId = $floodlightActivityId; + } + public function getFloodlightActivityId() + { + return $this->floodlightActivityId; + } + public function setFloodlightActivityName($floodlightActivityName) + { + $this->floodlightActivityName = $floodlightActivityName; + } + public function getFloodlightActivityName() + { + return $this->floodlightActivityName; + } + public function setListPopulationClauses($listPopulationClauses) + { + $this->listPopulationClauses = $listPopulationClauses; + } + public function getListPopulationClauses() + { + return $this->listPopulationClauses; + } +} + +class Google_Service_Dfareporting_ListPopulationTerm extends Google_Model +{ + protected $internal_gapi_mappings = array( + ); + public $contains; + public $negation; + public $operator; + public $remarketingListId; + public $type; + public $value; + public $variableFriendlyName; + public $variableName; + + + public function setContains($contains) + { + $this->contains = $contains; + } + public function getContains() + { + return $this->contains; + } + public function setNegation($negation) + { + $this->negation = $negation; + } + public function getNegation() + { + return $this->negation; + } + public function setOperator($operator) + { + $this->operator = $operator; + } + public function getOperator() + { + return $this->operator; + } + public function setRemarketingListId($remarketingListId) + { + $this->remarketingListId = $remarketingListId; + } + public function getRemarketingListId() + { + return $this->remarketingListId; + } + public function setType($type) + { + $this->type = $type; + } + public function getType() + { + return $this->type; + } + public function setValue($value) + { + $this->value = $value; + } + public function getValue() + { + return $this->value; + } + public function setVariableFriendlyName($variableFriendlyName) + { + $this->variableFriendlyName = $variableFriendlyName; + } + public function getVariableFriendlyName() + { + return $this->variableFriendlyName; + } + public function setVariableName($variableName) + { + $this->variableName = $variableName; + } + public function getVariableName() + { + return $this->variableName; + } +} + +class Google_Service_Dfareporting_ListTargetingExpression extends Google_Model +{ + protected $internal_gapi_mappings = array( + ); + public $expression; + + + public function setExpression($expression) + { + $this->expression = $expression; + } + public function getExpression() + { + return $this->expression; + } +} + +class Google_Service_Dfareporting_LookbackConfiguration extends Google_Model +{ + protected $internal_gapi_mappings = array( + ); + public $clickDuration; + public $postImpressionActivitiesDuration; + + + public function setClickDuration($clickDuration) + { + $this->clickDuration = $clickDuration; + } + public function getClickDuration() + { + return $this->clickDuration; + } + public function setPostImpressionActivitiesDuration($postImpressionActivitiesDuration) + { + $this->postImpressionActivitiesDuration = $postImpressionActivitiesDuration; + } + public function getPostImpressionActivitiesDuration() + { + return $this->postImpressionActivitiesDuration; + } +} + class Google_Service_Dfareporting_Metric extends Google_Model { protected $internal_gapi_mappings = array( @@ -1407,6 +16116,945 @@ class Google_Service_Dfareporting_Metric extends Google_Model } } +class Google_Service_Dfareporting_Metro extends Google_Model +{ + protected $internal_gapi_mappings = array( + ); + public $countryCode; + public $countryDartId; + public $dartId; + public $dmaId; + public $kind; + public $metroCode; + public $name; + + + public function setCountryCode($countryCode) + { + $this->countryCode = $countryCode; + } + public function getCountryCode() + { + return $this->countryCode; + } + public function setCountryDartId($countryDartId) + { + $this->countryDartId = $countryDartId; + } + public function getCountryDartId() + { + return $this->countryDartId; + } + public function setDartId($dartId) + { + $this->dartId = $dartId; + } + public function getDartId() + { + return $this->dartId; + } + public function setDmaId($dmaId) + { + $this->dmaId = $dmaId; + } + public function getDmaId() + { + return $this->dmaId; + } + public function setKind($kind) + { + $this->kind = $kind; + } + public function getKind() + { + return $this->kind; + } + public function setMetroCode($metroCode) + { + $this->metroCode = $metroCode; + } + public function getMetroCode() + { + return $this->metroCode; + } + public function setName($name) + { + $this->name = $name; + } + public function getName() + { + return $this->name; + } +} + +class Google_Service_Dfareporting_MetrosListResponse extends Google_Collection +{ + protected $collection_key = 'metros'; + protected $internal_gapi_mappings = array( + ); + public $kind; + protected $metrosType = 'Google_Service_Dfareporting_Metro'; + protected $metrosDataType = 'array'; + + + public function setKind($kind) + { + $this->kind = $kind; + } + public function getKind() + { + return $this->kind; + } + public function setMetros($metros) + { + $this->metros = $metros; + } + public function getMetros() + { + return $this->metros; + } +} + +class Google_Service_Dfareporting_MobileCarrier extends Google_Model +{ + protected $internal_gapi_mappings = array( + ); + public $countryCode; + public $countryDartId; + public $id; + public $kind; + public $name; + + + public function setCountryCode($countryCode) + { + $this->countryCode = $countryCode; + } + public function getCountryCode() + { + return $this->countryCode; + } + public function setCountryDartId($countryDartId) + { + $this->countryDartId = $countryDartId; + } + public function getCountryDartId() + { + return $this->countryDartId; + } + public function setId($id) + { + $this->id = $id; + } + public function getId() + { + return $this->id; + } + public function setKind($kind) + { + $this->kind = $kind; + } + public function getKind() + { + return $this->kind; + } + public function setName($name) + { + $this->name = $name; + } + public function getName() + { + return $this->name; + } +} + +class Google_Service_Dfareporting_MobileCarriersListResponse extends Google_Collection +{ + protected $collection_key = 'mobileCarriers'; + protected $internal_gapi_mappings = array( + ); + public $kind; + protected $mobileCarriersType = 'Google_Service_Dfareporting_MobileCarrier'; + protected $mobileCarriersDataType = 'array'; + + + public function setKind($kind) + { + $this->kind = $kind; + } + public function getKind() + { + return $this->kind; + } + public function setMobileCarriers($mobileCarriers) + { + $this->mobileCarriers = $mobileCarriers; + } + public function getMobileCarriers() + { + return $this->mobileCarriers; + } +} + +class Google_Service_Dfareporting_ObjectFilter extends Google_Collection +{ + protected $collection_key = 'objectIds'; + protected $internal_gapi_mappings = array( + ); + public $kind; + public $objectIds; + public $status; + + + public function setKind($kind) + { + $this->kind = $kind; + } + public function getKind() + { + return $this->kind; + } + public function setObjectIds($objectIds) + { + $this->objectIds = $objectIds; + } + public function getObjectIds() + { + return $this->objectIds; + } + public function setStatus($status) + { + $this->status = $status; + } + public function getStatus() + { + return $this->status; + } +} + +class Google_Service_Dfareporting_OffsetPosition extends Google_Model +{ + protected $internal_gapi_mappings = array( + ); + public $left; + public $top; + + + public function setLeft($left) + { + $this->left = $left; + } + public function getLeft() + { + return $this->left; + } + public function setTop($top) + { + $this->top = $top; + } + public function getTop() + { + return $this->top; + } +} + +class Google_Service_Dfareporting_OmnitureSettings extends Google_Model +{ + protected $internal_gapi_mappings = array( + ); + public $omnitureCostDataEnabled; + public $omnitureIntegrationEnabled; + + + public function setOmnitureCostDataEnabled($omnitureCostDataEnabled) + { + $this->omnitureCostDataEnabled = $omnitureCostDataEnabled; + } + public function getOmnitureCostDataEnabled() + { + return $this->omnitureCostDataEnabled; + } + public function setOmnitureIntegrationEnabled($omnitureIntegrationEnabled) + { + $this->omnitureIntegrationEnabled = $omnitureIntegrationEnabled; + } + public function getOmnitureIntegrationEnabled() + { + return $this->omnitureIntegrationEnabled; + } +} + +class Google_Service_Dfareporting_OperatingSystem extends Google_Model +{ + protected $internal_gapi_mappings = array( + ); + public $dartId; + public $desktop; + public $kind; + public $mobile; + public $name; + + + public function setDartId($dartId) + { + $this->dartId = $dartId; + } + public function getDartId() + { + return $this->dartId; + } + public function setDesktop($desktop) + { + $this->desktop = $desktop; + } + public function getDesktop() + { + return $this->desktop; + } + public function setKind($kind) + { + $this->kind = $kind; + } + public function getKind() + { + return $this->kind; + } + public function setMobile($mobile) + { + $this->mobile = $mobile; + } + public function getMobile() + { + return $this->mobile; + } + public function setName($name) + { + $this->name = $name; + } + public function getName() + { + return $this->name; + } +} + +class Google_Service_Dfareporting_OperatingSystemVersion extends Google_Model +{ + protected $internal_gapi_mappings = array( + ); + public $id; + public $kind; + public $majorVersion; + public $minorVersion; + public $name; + protected $operatingSystemType = 'Google_Service_Dfareporting_OperatingSystem'; + protected $operatingSystemDataType = ''; + + + public function setId($id) + { + $this->id = $id; + } + public function getId() + { + return $this->id; + } + public function setKind($kind) + { + $this->kind = $kind; + } + public function getKind() + { + return $this->kind; + } + public function setMajorVersion($majorVersion) + { + $this->majorVersion = $majorVersion; + } + public function getMajorVersion() + { + return $this->majorVersion; + } + public function setMinorVersion($minorVersion) + { + $this->minorVersion = $minorVersion; + } + public function getMinorVersion() + { + return $this->minorVersion; + } + public function setName($name) + { + $this->name = $name; + } + public function getName() + { + return $this->name; + } + public function setOperatingSystem(Google_Service_Dfareporting_OperatingSystem $operatingSystem) + { + $this->operatingSystem = $operatingSystem; + } + public function getOperatingSystem() + { + return $this->operatingSystem; + } +} + +class Google_Service_Dfareporting_OperatingSystemVersionsListResponse extends Google_Collection +{ + protected $collection_key = 'operatingSystemVersions'; + protected $internal_gapi_mappings = array( + ); + public $kind; + protected $operatingSystemVersionsType = 'Google_Service_Dfareporting_OperatingSystemVersion'; + protected $operatingSystemVersionsDataType = 'array'; + + + public function setKind($kind) + { + $this->kind = $kind; + } + public function getKind() + { + return $this->kind; + } + public function setOperatingSystemVersions($operatingSystemVersions) + { + $this->operatingSystemVersions = $operatingSystemVersions; + } + public function getOperatingSystemVersions() + { + return $this->operatingSystemVersions; + } +} + +class Google_Service_Dfareporting_OperatingSystemsListResponse extends Google_Collection +{ + protected $collection_key = 'operatingSystems'; + protected $internal_gapi_mappings = array( + ); + public $kind; + protected $operatingSystemsType = 'Google_Service_Dfareporting_OperatingSystem'; + protected $operatingSystemsDataType = 'array'; + + + public function setKind($kind) + { + $this->kind = $kind; + } + public function getKind() + { + return $this->kind; + } + public function setOperatingSystems($operatingSystems) + { + $this->operatingSystems = $operatingSystems; + } + public function getOperatingSystems() + { + return $this->operatingSystems; + } +} + +class Google_Service_Dfareporting_OptimizationActivity extends Google_Model +{ + protected $internal_gapi_mappings = array( + ); + public $floodlightActivityId; + protected $floodlightActivityIdDimensionValueType = 'Google_Service_Dfareporting_DimensionValue'; + protected $floodlightActivityIdDimensionValueDataType = ''; + public $weight; + + + public function setFloodlightActivityId($floodlightActivityId) + { + $this->floodlightActivityId = $floodlightActivityId; + } + public function getFloodlightActivityId() + { + return $this->floodlightActivityId; + } + public function setFloodlightActivityIdDimensionValue(Google_Service_Dfareporting_DimensionValue $floodlightActivityIdDimensionValue) + { + $this->floodlightActivityIdDimensionValue = $floodlightActivityIdDimensionValue; + } + public function getFloodlightActivityIdDimensionValue() + { + return $this->floodlightActivityIdDimensionValue; + } + public function setWeight($weight) + { + $this->weight = $weight; + } + public function getWeight() + { + return $this->weight; + } +} + +class Google_Service_Dfareporting_Order extends Google_Collection +{ + protected $collection_key = 'siteNames'; + protected $internal_gapi_mappings = array( + ); + public $accountId; + public $advertiserId; + public $approverUserProfileIds; + public $buyerInvoiceId; + public $buyerOrganizationName; + public $comments; + protected $contactsType = 'Google_Service_Dfareporting_OrderContact'; + protected $contactsDataType = 'array'; + public $id; + public $kind; + protected $lastModifiedInfoType = 'Google_Service_Dfareporting_LastModifiedInfo'; + protected $lastModifiedInfoDataType = ''; + public $name; + public $notes; + public $planningTermId; + public $projectId; + public $sellerOrderId; + public $sellerOrganizationName; + public $siteId; + public $siteNames; + public $subaccountId; + public $termsAndConditions; + + + public function setAccountId($accountId) + { + $this->accountId = $accountId; + } + public function getAccountId() + { + return $this->accountId; + } + public function setAdvertiserId($advertiserId) + { + $this->advertiserId = $advertiserId; + } + public function getAdvertiserId() + { + return $this->advertiserId; + } + public function setApproverUserProfileIds($approverUserProfileIds) + { + $this->approverUserProfileIds = $approverUserProfileIds; + } + public function getApproverUserProfileIds() + { + return $this->approverUserProfileIds; + } + public function setBuyerInvoiceId($buyerInvoiceId) + { + $this->buyerInvoiceId = $buyerInvoiceId; + } + public function getBuyerInvoiceId() + { + return $this->buyerInvoiceId; + } + public function setBuyerOrganizationName($buyerOrganizationName) + { + $this->buyerOrganizationName = $buyerOrganizationName; + } + public function getBuyerOrganizationName() + { + return $this->buyerOrganizationName; + } + public function setComments($comments) + { + $this->comments = $comments; + } + public function getComments() + { + return $this->comments; + } + public function setContacts($contacts) + { + $this->contacts = $contacts; + } + public function getContacts() + { + return $this->contacts; + } + public function setId($id) + { + $this->id = $id; + } + public function getId() + { + return $this->id; + } + public function setKind($kind) + { + $this->kind = $kind; + } + public function getKind() + { + return $this->kind; + } + public function setLastModifiedInfo(Google_Service_Dfareporting_LastModifiedInfo $lastModifiedInfo) + { + $this->lastModifiedInfo = $lastModifiedInfo; + } + public function getLastModifiedInfo() + { + return $this->lastModifiedInfo; + } + public function setName($name) + { + $this->name = $name; + } + public function getName() + { + return $this->name; + } + public function setNotes($notes) + { + $this->notes = $notes; + } + public function getNotes() + { + return $this->notes; + } + public function setPlanningTermId($planningTermId) + { + $this->planningTermId = $planningTermId; + } + public function getPlanningTermId() + { + return $this->planningTermId; + } + public function setProjectId($projectId) + { + $this->projectId = $projectId; + } + public function getProjectId() + { + return $this->projectId; + } + public function setSellerOrderId($sellerOrderId) + { + $this->sellerOrderId = $sellerOrderId; + } + public function getSellerOrderId() + { + return $this->sellerOrderId; + } + public function setSellerOrganizationName($sellerOrganizationName) + { + $this->sellerOrganizationName = $sellerOrganizationName; + } + public function getSellerOrganizationName() + { + return $this->sellerOrganizationName; + } + public function setSiteId($siteId) + { + $this->siteId = $siteId; + } + public function getSiteId() + { + return $this->siteId; + } + public function setSiteNames($siteNames) + { + $this->siteNames = $siteNames; + } + public function getSiteNames() + { + return $this->siteNames; + } + public function setSubaccountId($subaccountId) + { + $this->subaccountId = $subaccountId; + } + public function getSubaccountId() + { + return $this->subaccountId; + } + public function setTermsAndConditions($termsAndConditions) + { + $this->termsAndConditions = $termsAndConditions; + } + public function getTermsAndConditions() + { + return $this->termsAndConditions; + } +} + +class Google_Service_Dfareporting_OrderContact extends Google_Model +{ + protected $internal_gapi_mappings = array( + ); + public $contactInfo; + public $contactName; + public $contactTitle; + public $contactType; + public $signatureUserProfileId; + + + public function setContactInfo($contactInfo) + { + $this->contactInfo = $contactInfo; + } + public function getContactInfo() + { + return $this->contactInfo; + } + public function setContactName($contactName) + { + $this->contactName = $contactName; + } + public function getContactName() + { + return $this->contactName; + } + public function setContactTitle($contactTitle) + { + $this->contactTitle = $contactTitle; + } + public function getContactTitle() + { + return $this->contactTitle; + } + public function setContactType($contactType) + { + $this->contactType = $contactType; + } + public function getContactType() + { + return $this->contactType; + } + public function setSignatureUserProfileId($signatureUserProfileId) + { + $this->signatureUserProfileId = $signatureUserProfileId; + } + public function getSignatureUserProfileId() + { + return $this->signatureUserProfileId; + } +} + +class Google_Service_Dfareporting_OrderDocument extends Google_Collection +{ + protected $collection_key = 'approvedByUserProfileIds'; + protected $internal_gapi_mappings = array( + ); + public $accountId; + public $advertiserId; + public $amendedOrderDocumentId; + public $approvedByUserProfileIds; + public $cancelled; + protected $createdInfoType = 'Google_Service_Dfareporting_LastModifiedInfo'; + protected $createdInfoDataType = ''; + public $effectiveDate; + public $id; + public $kind; + public $orderId; + public $projectId; + public $signed; + public $subaccountId; + public $title; + public $type; + + + public function setAccountId($accountId) + { + $this->accountId = $accountId; + } + public function getAccountId() + { + return $this->accountId; + } + public function setAdvertiserId($advertiserId) + { + $this->advertiserId = $advertiserId; + } + public function getAdvertiserId() + { + return $this->advertiserId; + } + public function setAmendedOrderDocumentId($amendedOrderDocumentId) + { + $this->amendedOrderDocumentId = $amendedOrderDocumentId; + } + public function getAmendedOrderDocumentId() + { + return $this->amendedOrderDocumentId; + } + public function setApprovedByUserProfileIds($approvedByUserProfileIds) + { + $this->approvedByUserProfileIds = $approvedByUserProfileIds; + } + public function getApprovedByUserProfileIds() + { + return $this->approvedByUserProfileIds; + } + public function setCancelled($cancelled) + { + $this->cancelled = $cancelled; + } + public function getCancelled() + { + return $this->cancelled; + } + public function setCreatedInfo(Google_Service_Dfareporting_LastModifiedInfo $createdInfo) + { + $this->createdInfo = $createdInfo; + } + public function getCreatedInfo() + { + return $this->createdInfo; + } + public function setEffectiveDate($effectiveDate) + { + $this->effectiveDate = $effectiveDate; + } + public function getEffectiveDate() + { + return $this->effectiveDate; + } + public function setId($id) + { + $this->id = $id; + } + public function getId() + { + return $this->id; + } + public function setKind($kind) + { + $this->kind = $kind; + } + public function getKind() + { + return $this->kind; + } + public function setOrderId($orderId) + { + $this->orderId = $orderId; + } + public function getOrderId() + { + return $this->orderId; + } + public function setProjectId($projectId) + { + $this->projectId = $projectId; + } + public function getProjectId() + { + return $this->projectId; + } + public function setSigned($signed) + { + $this->signed = $signed; + } + public function getSigned() + { + return $this->signed; + } + public function setSubaccountId($subaccountId) + { + $this->subaccountId = $subaccountId; + } + public function getSubaccountId() + { + return $this->subaccountId; + } + public function setTitle($title) + { + $this->title = $title; + } + public function getTitle() + { + return $this->title; + } + public function setType($type) + { + $this->type = $type; + } + public function getType() + { + return $this->type; + } +} + +class Google_Service_Dfareporting_OrderDocumentsListResponse extends Google_Collection +{ + protected $collection_key = 'orderDocuments'; + protected $internal_gapi_mappings = array( + ); + public $kind; + public $nextPageToken; + protected $orderDocumentsType = 'Google_Service_Dfareporting_OrderDocument'; + protected $orderDocumentsDataType = 'array'; + + + public function setKind($kind) + { + $this->kind = $kind; + } + public function getKind() + { + return $this->kind; + } + public function setNextPageToken($nextPageToken) + { + $this->nextPageToken = $nextPageToken; + } + public function getNextPageToken() + { + return $this->nextPageToken; + } + public function setOrderDocuments($orderDocuments) + { + $this->orderDocuments = $orderDocuments; + } + public function getOrderDocuments() + { + return $this->orderDocuments; + } +} + +class Google_Service_Dfareporting_OrdersListResponse extends Google_Collection +{ + protected $collection_key = 'orders'; + protected $internal_gapi_mappings = array( + ); + public $kind; + public $nextPageToken; + protected $ordersType = 'Google_Service_Dfareporting_Order'; + protected $ordersDataType = 'array'; + + + public function setKind($kind) + { + $this->kind = $kind; + } + public function getKind() + { + return $this->kind; + } + public function setNextPageToken($nextPageToken) + { + $this->nextPageToken = $nextPageToken; + } + public function getNextPageToken() + { + return $this->nextPageToken; + } + public function setOrders($orders) + { + $this->orders = $orders; + } + public function getOrders() + { + return $this->orders; + } +} + class Google_Service_Dfareporting_PathToConversionReportCompatibleFields extends Google_Collection { protected $collection_key = 'perInteractionDimensions'; @@ -1465,6 +17113,1611 @@ class Google_Service_Dfareporting_PathToConversionReportCompatibleFields extends } } +class Google_Service_Dfareporting_Placement extends Google_Collection +{ + protected $collection_key = 'tagFormats'; + protected $internal_gapi_mappings = array( + ); + public $accountId; + public $advertiserId; + protected $advertiserIdDimensionValueType = 'Google_Service_Dfareporting_DimensionValue'; + protected $advertiserIdDimensionValueDataType = ''; + public $archived; + public $campaignId; + protected $campaignIdDimensionValueType = 'Google_Service_Dfareporting_DimensionValue'; + protected $campaignIdDimensionValueDataType = ''; + public $comment; + public $compatibility; + public $contentCategoryId; + protected $createInfoType = 'Google_Service_Dfareporting_LastModifiedInfo'; + protected $createInfoDataType = ''; + public $directorySiteId; + protected $directorySiteIdDimensionValueType = 'Google_Service_Dfareporting_DimensionValue'; + protected $directorySiteIdDimensionValueDataType = ''; + public $externalId; + public $id; + protected $idDimensionValueType = 'Google_Service_Dfareporting_DimensionValue'; + protected $idDimensionValueDataType = ''; + public $keyName; + public $kind; + protected $lastModifiedInfoType = 'Google_Service_Dfareporting_LastModifiedInfo'; + protected $lastModifiedInfoDataType = ''; + protected $lookbackConfigurationType = 'Google_Service_Dfareporting_LookbackConfiguration'; + protected $lookbackConfigurationDataType = ''; + public $name; + public $paymentApproved; + public $paymentSource; + public $placementGroupId; + protected $placementGroupIdDimensionValueType = 'Google_Service_Dfareporting_DimensionValue'; + protected $placementGroupIdDimensionValueDataType = ''; + public $placementStrategyId; + protected $pricingScheduleType = 'Google_Service_Dfareporting_PricingSchedule'; + protected $pricingScheduleDataType = ''; + public $primary; + protected $publisherUpdateInfoType = 'Google_Service_Dfareporting_LastModifiedInfo'; + protected $publisherUpdateInfoDataType = ''; + public $siteId; + protected $siteIdDimensionValueType = 'Google_Service_Dfareporting_DimensionValue'; + protected $siteIdDimensionValueDataType = ''; + protected $sizeType = 'Google_Service_Dfareporting_Size'; + protected $sizeDataType = ''; + public $sslRequired; + public $status; + public $subaccountId; + public $tagFormats; + protected $tagSettingType = 'Google_Service_Dfareporting_TagSetting'; + protected $tagSettingDataType = ''; + + + public function setAccountId($accountId) + { + $this->accountId = $accountId; + } + public function getAccountId() + { + return $this->accountId; + } + public function setAdvertiserId($advertiserId) + { + $this->advertiserId = $advertiserId; + } + public function getAdvertiserId() + { + return $this->advertiserId; + } + public function setAdvertiserIdDimensionValue(Google_Service_Dfareporting_DimensionValue $advertiserIdDimensionValue) + { + $this->advertiserIdDimensionValue = $advertiserIdDimensionValue; + } + public function getAdvertiserIdDimensionValue() + { + return $this->advertiserIdDimensionValue; + } + public function setArchived($archived) + { + $this->archived = $archived; + } + public function getArchived() + { + return $this->archived; + } + public function setCampaignId($campaignId) + { + $this->campaignId = $campaignId; + } + public function getCampaignId() + { + return $this->campaignId; + } + public function setCampaignIdDimensionValue(Google_Service_Dfareporting_DimensionValue $campaignIdDimensionValue) + { + $this->campaignIdDimensionValue = $campaignIdDimensionValue; + } + public function getCampaignIdDimensionValue() + { + return $this->campaignIdDimensionValue; + } + public function setComment($comment) + { + $this->comment = $comment; + } + public function getComment() + { + return $this->comment; + } + public function setCompatibility($compatibility) + { + $this->compatibility = $compatibility; + } + public function getCompatibility() + { + return $this->compatibility; + } + public function setContentCategoryId($contentCategoryId) + { + $this->contentCategoryId = $contentCategoryId; + } + public function getContentCategoryId() + { + return $this->contentCategoryId; + } + public function setCreateInfo(Google_Service_Dfareporting_LastModifiedInfo $createInfo) + { + $this->createInfo = $createInfo; + } + public function getCreateInfo() + { + return $this->createInfo; + } + public function setDirectorySiteId($directorySiteId) + { + $this->directorySiteId = $directorySiteId; + } + public function getDirectorySiteId() + { + return $this->directorySiteId; + } + public function setDirectorySiteIdDimensionValue(Google_Service_Dfareporting_DimensionValue $directorySiteIdDimensionValue) + { + $this->directorySiteIdDimensionValue = $directorySiteIdDimensionValue; + } + public function getDirectorySiteIdDimensionValue() + { + return $this->directorySiteIdDimensionValue; + } + public function setExternalId($externalId) + { + $this->externalId = $externalId; + } + public function getExternalId() + { + return $this->externalId; + } + public function setId($id) + { + $this->id = $id; + } + public function getId() + { + return $this->id; + } + public function setIdDimensionValue(Google_Service_Dfareporting_DimensionValue $idDimensionValue) + { + $this->idDimensionValue = $idDimensionValue; + } + public function getIdDimensionValue() + { + return $this->idDimensionValue; + } + public function setKeyName($keyName) + { + $this->keyName = $keyName; + } + public function getKeyName() + { + return $this->keyName; + } + public function setKind($kind) + { + $this->kind = $kind; + } + public function getKind() + { + return $this->kind; + } + public function setLastModifiedInfo(Google_Service_Dfareporting_LastModifiedInfo $lastModifiedInfo) + { + $this->lastModifiedInfo = $lastModifiedInfo; + } + public function getLastModifiedInfo() + { + return $this->lastModifiedInfo; + } + public function setLookbackConfiguration(Google_Service_Dfareporting_LookbackConfiguration $lookbackConfiguration) + { + $this->lookbackConfiguration = $lookbackConfiguration; + } + public function getLookbackConfiguration() + { + return $this->lookbackConfiguration; + } + public function setName($name) + { + $this->name = $name; + } + public function getName() + { + return $this->name; + } + public function setPaymentApproved($paymentApproved) + { + $this->paymentApproved = $paymentApproved; + } + public function getPaymentApproved() + { + return $this->paymentApproved; + } + public function setPaymentSource($paymentSource) + { + $this->paymentSource = $paymentSource; + } + public function getPaymentSource() + { + return $this->paymentSource; + } + public function setPlacementGroupId($placementGroupId) + { + $this->placementGroupId = $placementGroupId; + } + public function getPlacementGroupId() + { + return $this->placementGroupId; + } + public function setPlacementGroupIdDimensionValue(Google_Service_Dfareporting_DimensionValue $placementGroupIdDimensionValue) + { + $this->placementGroupIdDimensionValue = $placementGroupIdDimensionValue; + } + public function getPlacementGroupIdDimensionValue() + { + return $this->placementGroupIdDimensionValue; + } + public function setPlacementStrategyId($placementStrategyId) + { + $this->placementStrategyId = $placementStrategyId; + } + public function getPlacementStrategyId() + { + return $this->placementStrategyId; + } + public function setPricingSchedule(Google_Service_Dfareporting_PricingSchedule $pricingSchedule) + { + $this->pricingSchedule = $pricingSchedule; + } + public function getPricingSchedule() + { + return $this->pricingSchedule; + } + public function setPrimary($primary) + { + $this->primary = $primary; + } + public function getPrimary() + { + return $this->primary; + } + public function setPublisherUpdateInfo(Google_Service_Dfareporting_LastModifiedInfo $publisherUpdateInfo) + { + $this->publisherUpdateInfo = $publisherUpdateInfo; + } + public function getPublisherUpdateInfo() + { + return $this->publisherUpdateInfo; + } + public function setSiteId($siteId) + { + $this->siteId = $siteId; + } + public function getSiteId() + { + return $this->siteId; + } + public function setSiteIdDimensionValue(Google_Service_Dfareporting_DimensionValue $siteIdDimensionValue) + { + $this->siteIdDimensionValue = $siteIdDimensionValue; + } + public function getSiteIdDimensionValue() + { + return $this->siteIdDimensionValue; + } + public function setSize(Google_Service_Dfareporting_Size $size) + { + $this->size = $size; + } + public function getSize() + { + return $this->size; + } + public function setSslRequired($sslRequired) + { + $this->sslRequired = $sslRequired; + } + public function getSslRequired() + { + return $this->sslRequired; + } + public function setStatus($status) + { + $this->status = $status; + } + public function getStatus() + { + return $this->status; + } + public function setSubaccountId($subaccountId) + { + $this->subaccountId = $subaccountId; + } + public function getSubaccountId() + { + return $this->subaccountId; + } + public function setTagFormats($tagFormats) + { + $this->tagFormats = $tagFormats; + } + public function getTagFormats() + { + return $this->tagFormats; + } + public function setTagSetting(Google_Service_Dfareporting_TagSetting $tagSetting) + { + $this->tagSetting = $tagSetting; + } + public function getTagSetting() + { + return $this->tagSetting; + } +} + +class Google_Service_Dfareporting_PlacementAssignment extends Google_Model +{ + protected $internal_gapi_mappings = array( + ); + public $active; + public $placementId; + protected $placementIdDimensionValueType = 'Google_Service_Dfareporting_DimensionValue'; + protected $placementIdDimensionValueDataType = ''; + public $sslRequired; + + + public function setActive($active) + { + $this->active = $active; + } + public function getActive() + { + return $this->active; + } + public function setPlacementId($placementId) + { + $this->placementId = $placementId; + } + public function getPlacementId() + { + return $this->placementId; + } + public function setPlacementIdDimensionValue(Google_Service_Dfareporting_DimensionValue $placementIdDimensionValue) + { + $this->placementIdDimensionValue = $placementIdDimensionValue; + } + public function getPlacementIdDimensionValue() + { + return $this->placementIdDimensionValue; + } + public function setSslRequired($sslRequired) + { + $this->sslRequired = $sslRequired; + } + public function getSslRequired() + { + return $this->sslRequired; + } +} + +class Google_Service_Dfareporting_PlacementGroup extends Google_Collection +{ + protected $collection_key = 'childPlacementIds'; + protected $internal_gapi_mappings = array( + ); + public $accountId; + public $advertiserId; + protected $advertiserIdDimensionValueType = 'Google_Service_Dfareporting_DimensionValue'; + protected $advertiserIdDimensionValueDataType = ''; + public $archived; + public $campaignId; + protected $campaignIdDimensionValueType = 'Google_Service_Dfareporting_DimensionValue'; + protected $campaignIdDimensionValueDataType = ''; + public $childPlacementIds; + public $comment; + public $contentCategoryId; + protected $createInfoType = 'Google_Service_Dfareporting_LastModifiedInfo'; + protected $createInfoDataType = ''; + public $directorySiteId; + protected $directorySiteIdDimensionValueType = 'Google_Service_Dfareporting_DimensionValue'; + protected $directorySiteIdDimensionValueDataType = ''; + public $externalId; + public $id; + protected $idDimensionValueType = 'Google_Service_Dfareporting_DimensionValue'; + protected $idDimensionValueDataType = ''; + public $kind; + protected $lastModifiedInfoType = 'Google_Service_Dfareporting_LastModifiedInfo'; + protected $lastModifiedInfoDataType = ''; + public $name; + public $placementGroupType; + public $placementStrategyId; + protected $pricingScheduleType = 'Google_Service_Dfareporting_PricingSchedule'; + protected $pricingScheduleDataType = ''; + public $primaryPlacementId; + protected $primaryPlacementIdDimensionValueType = 'Google_Service_Dfareporting_DimensionValue'; + protected $primaryPlacementIdDimensionValueDataType = ''; + protected $programmaticSettingType = 'Google_Service_Dfareporting_ProgrammaticSetting'; + protected $programmaticSettingDataType = ''; + public $siteId; + protected $siteIdDimensionValueType = 'Google_Service_Dfareporting_DimensionValue'; + protected $siteIdDimensionValueDataType = ''; + public $subaccountId; + + + public function setAccountId($accountId) + { + $this->accountId = $accountId; + } + public function getAccountId() + { + return $this->accountId; + } + public function setAdvertiserId($advertiserId) + { + $this->advertiserId = $advertiserId; + } + public function getAdvertiserId() + { + return $this->advertiserId; + } + public function setAdvertiserIdDimensionValue(Google_Service_Dfareporting_DimensionValue $advertiserIdDimensionValue) + { + $this->advertiserIdDimensionValue = $advertiserIdDimensionValue; + } + public function getAdvertiserIdDimensionValue() + { + return $this->advertiserIdDimensionValue; + } + public function setArchived($archived) + { + $this->archived = $archived; + } + public function getArchived() + { + return $this->archived; + } + public function setCampaignId($campaignId) + { + $this->campaignId = $campaignId; + } + public function getCampaignId() + { + return $this->campaignId; + } + public function setCampaignIdDimensionValue(Google_Service_Dfareporting_DimensionValue $campaignIdDimensionValue) + { + $this->campaignIdDimensionValue = $campaignIdDimensionValue; + } + public function getCampaignIdDimensionValue() + { + return $this->campaignIdDimensionValue; + } + public function setChildPlacementIds($childPlacementIds) + { + $this->childPlacementIds = $childPlacementIds; + } + public function getChildPlacementIds() + { + return $this->childPlacementIds; + } + public function setComment($comment) + { + $this->comment = $comment; + } + public function getComment() + { + return $this->comment; + } + public function setContentCategoryId($contentCategoryId) + { + $this->contentCategoryId = $contentCategoryId; + } + public function getContentCategoryId() + { + return $this->contentCategoryId; + } + public function setCreateInfo(Google_Service_Dfareporting_LastModifiedInfo $createInfo) + { + $this->createInfo = $createInfo; + } + public function getCreateInfo() + { + return $this->createInfo; + } + public function setDirectorySiteId($directorySiteId) + { + $this->directorySiteId = $directorySiteId; + } + public function getDirectorySiteId() + { + return $this->directorySiteId; + } + public function setDirectorySiteIdDimensionValue(Google_Service_Dfareporting_DimensionValue $directorySiteIdDimensionValue) + { + $this->directorySiteIdDimensionValue = $directorySiteIdDimensionValue; + } + public function getDirectorySiteIdDimensionValue() + { + return $this->directorySiteIdDimensionValue; + } + public function setExternalId($externalId) + { + $this->externalId = $externalId; + } + public function getExternalId() + { + return $this->externalId; + } + public function setId($id) + { + $this->id = $id; + } + public function getId() + { + return $this->id; + } + public function setIdDimensionValue(Google_Service_Dfareporting_DimensionValue $idDimensionValue) + { + $this->idDimensionValue = $idDimensionValue; + } + public function getIdDimensionValue() + { + return $this->idDimensionValue; + } + public function setKind($kind) + { + $this->kind = $kind; + } + public function getKind() + { + return $this->kind; + } + public function setLastModifiedInfo(Google_Service_Dfareporting_LastModifiedInfo $lastModifiedInfo) + { + $this->lastModifiedInfo = $lastModifiedInfo; + } + public function getLastModifiedInfo() + { + return $this->lastModifiedInfo; + } + public function setName($name) + { + $this->name = $name; + } + public function getName() + { + return $this->name; + } + public function setPlacementGroupType($placementGroupType) + { + $this->placementGroupType = $placementGroupType; + } + public function getPlacementGroupType() + { + return $this->placementGroupType; + } + public function setPlacementStrategyId($placementStrategyId) + { + $this->placementStrategyId = $placementStrategyId; + } + public function getPlacementStrategyId() + { + return $this->placementStrategyId; + } + public function setPricingSchedule(Google_Service_Dfareporting_PricingSchedule $pricingSchedule) + { + $this->pricingSchedule = $pricingSchedule; + } + public function getPricingSchedule() + { + return $this->pricingSchedule; + } + public function setPrimaryPlacementId($primaryPlacementId) + { + $this->primaryPlacementId = $primaryPlacementId; + } + public function getPrimaryPlacementId() + { + return $this->primaryPlacementId; + } + public function setPrimaryPlacementIdDimensionValue(Google_Service_Dfareporting_DimensionValue $primaryPlacementIdDimensionValue) + { + $this->primaryPlacementIdDimensionValue = $primaryPlacementIdDimensionValue; + } + public function getPrimaryPlacementIdDimensionValue() + { + return $this->primaryPlacementIdDimensionValue; + } + public function setProgrammaticSetting(Google_Service_Dfareporting_ProgrammaticSetting $programmaticSetting) + { + $this->programmaticSetting = $programmaticSetting; + } + public function getProgrammaticSetting() + { + return $this->programmaticSetting; + } + public function setSiteId($siteId) + { + $this->siteId = $siteId; + } + public function getSiteId() + { + return $this->siteId; + } + public function setSiteIdDimensionValue(Google_Service_Dfareporting_DimensionValue $siteIdDimensionValue) + { + $this->siteIdDimensionValue = $siteIdDimensionValue; + } + public function getSiteIdDimensionValue() + { + return $this->siteIdDimensionValue; + } + public function setSubaccountId($subaccountId) + { + $this->subaccountId = $subaccountId; + } + public function getSubaccountId() + { + return $this->subaccountId; + } +} + +class Google_Service_Dfareporting_PlacementGroupsListResponse extends Google_Collection +{ + protected $collection_key = 'placementGroups'; + protected $internal_gapi_mappings = array( + ); + public $kind; + public $nextPageToken; + protected $placementGroupsType = 'Google_Service_Dfareporting_PlacementGroup'; + protected $placementGroupsDataType = 'array'; + + + public function setKind($kind) + { + $this->kind = $kind; + } + public function getKind() + { + return $this->kind; + } + public function setNextPageToken($nextPageToken) + { + $this->nextPageToken = $nextPageToken; + } + public function getNextPageToken() + { + return $this->nextPageToken; + } + public function setPlacementGroups($placementGroups) + { + $this->placementGroups = $placementGroups; + } + public function getPlacementGroups() + { + return $this->placementGroups; + } +} + +class Google_Service_Dfareporting_PlacementStrategiesListResponse extends Google_Collection +{ + protected $collection_key = 'placementStrategies'; + protected $internal_gapi_mappings = array( + ); + public $kind; + public $nextPageToken; + protected $placementStrategiesType = 'Google_Service_Dfareporting_PlacementStrategy'; + protected $placementStrategiesDataType = 'array'; + + + public function setKind($kind) + { + $this->kind = $kind; + } + public function getKind() + { + return $this->kind; + } + public function setNextPageToken($nextPageToken) + { + $this->nextPageToken = $nextPageToken; + } + public function getNextPageToken() + { + return $this->nextPageToken; + } + public function setPlacementStrategies($placementStrategies) + { + $this->placementStrategies = $placementStrategies; + } + public function getPlacementStrategies() + { + return $this->placementStrategies; + } +} + +class Google_Service_Dfareporting_PlacementStrategy extends Google_Model +{ + protected $internal_gapi_mappings = array( + ); + public $accountId; + public $id; + public $kind; + public $name; + + + public function setAccountId($accountId) + { + $this->accountId = $accountId; + } + public function getAccountId() + { + return $this->accountId; + } + public function setId($id) + { + $this->id = $id; + } + public function getId() + { + return $this->id; + } + public function setKind($kind) + { + $this->kind = $kind; + } + public function getKind() + { + return $this->kind; + } + public function setName($name) + { + $this->name = $name; + } + public function getName() + { + return $this->name; + } +} + +class Google_Service_Dfareporting_PlacementTag extends Google_Collection +{ + protected $collection_key = 'tagDatas'; + protected $internal_gapi_mappings = array( + ); + public $placementId; + protected $tagDatasType = 'Google_Service_Dfareporting_TagData'; + protected $tagDatasDataType = 'array'; + + + public function setPlacementId($placementId) + { + $this->placementId = $placementId; + } + public function getPlacementId() + { + return $this->placementId; + } + public function setTagDatas($tagDatas) + { + $this->tagDatas = $tagDatas; + } + public function getTagDatas() + { + return $this->tagDatas; + } +} + +class Google_Service_Dfareporting_PlacementsGenerateTagsResponse extends Google_Collection +{ + protected $collection_key = 'placementTags'; + protected $internal_gapi_mappings = array( + ); + public $kind; + protected $placementTagsType = 'Google_Service_Dfareporting_PlacementTag'; + protected $placementTagsDataType = 'array'; + + + public function setKind($kind) + { + $this->kind = $kind; + } + public function getKind() + { + return $this->kind; + } + public function setPlacementTags($placementTags) + { + $this->placementTags = $placementTags; + } + public function getPlacementTags() + { + return $this->placementTags; + } +} + +class Google_Service_Dfareporting_PlacementsListResponse extends Google_Collection +{ + protected $collection_key = 'placements'; + protected $internal_gapi_mappings = array( + ); + public $kind; + public $nextPageToken; + protected $placementsType = 'Google_Service_Dfareporting_Placement'; + protected $placementsDataType = 'array'; + + + public function setKind($kind) + { + $this->kind = $kind; + } + public function getKind() + { + return $this->kind; + } + public function setNextPageToken($nextPageToken) + { + $this->nextPageToken = $nextPageToken; + } + public function getNextPageToken() + { + return $this->nextPageToken; + } + public function setPlacements($placements) + { + $this->placements = $placements; + } + public function getPlacements() + { + return $this->placements; + } +} + +class Google_Service_Dfareporting_PlatformType extends Google_Model +{ + protected $internal_gapi_mappings = array( + ); + public $id; + public $kind; + public $name; + + + public function setId($id) + { + $this->id = $id; + } + public function getId() + { + return $this->id; + } + public function setKind($kind) + { + $this->kind = $kind; + } + public function getKind() + { + return $this->kind; + } + public function setName($name) + { + $this->name = $name; + } + public function getName() + { + return $this->name; + } +} + +class Google_Service_Dfareporting_PlatformTypesListResponse extends Google_Collection +{ + protected $collection_key = 'platformTypes'; + protected $internal_gapi_mappings = array( + ); + public $kind; + protected $platformTypesType = 'Google_Service_Dfareporting_PlatformType'; + protected $platformTypesDataType = 'array'; + + + public function setKind($kind) + { + $this->kind = $kind; + } + public function getKind() + { + return $this->kind; + } + public function setPlatformTypes($platformTypes) + { + $this->platformTypes = $platformTypes; + } + public function getPlatformTypes() + { + return $this->platformTypes; + } +} + +class Google_Service_Dfareporting_PopupWindowProperties extends Google_Model +{ + protected $internal_gapi_mappings = array( + ); + protected $dimensionType = 'Google_Service_Dfareporting_Size'; + protected $dimensionDataType = ''; + protected $offsetType = 'Google_Service_Dfareporting_OffsetPosition'; + protected $offsetDataType = ''; + public $positionType; + public $showAddressBar; + public $showMenuBar; + public $showScrollBar; + public $showStatusBar; + public $showToolBar; + public $title; + + + public function setDimension(Google_Service_Dfareporting_Size $dimension) + { + $this->dimension = $dimension; + } + public function getDimension() + { + return $this->dimension; + } + public function setOffset(Google_Service_Dfareporting_OffsetPosition $offset) + { + $this->offset = $offset; + } + public function getOffset() + { + return $this->offset; + } + public function setPositionType($positionType) + { + $this->positionType = $positionType; + } + public function getPositionType() + { + return $this->positionType; + } + public function setShowAddressBar($showAddressBar) + { + $this->showAddressBar = $showAddressBar; + } + public function getShowAddressBar() + { + return $this->showAddressBar; + } + public function setShowMenuBar($showMenuBar) + { + $this->showMenuBar = $showMenuBar; + } + public function getShowMenuBar() + { + return $this->showMenuBar; + } + public function setShowScrollBar($showScrollBar) + { + $this->showScrollBar = $showScrollBar; + } + public function getShowScrollBar() + { + return $this->showScrollBar; + } + public function setShowStatusBar($showStatusBar) + { + $this->showStatusBar = $showStatusBar; + } + public function getShowStatusBar() + { + return $this->showStatusBar; + } + public function setShowToolBar($showToolBar) + { + $this->showToolBar = $showToolBar; + } + public function getShowToolBar() + { + return $this->showToolBar; + } + public function setTitle($title) + { + $this->title = $title; + } + public function getTitle() + { + return $this->title; + } +} + +class Google_Service_Dfareporting_PostalCode extends Google_Model +{ + protected $internal_gapi_mappings = array( + ); + public $code; + public $countryCode; + public $countryDartId; + public $id; + public $kind; + + + public function setCode($code) + { + $this->code = $code; + } + public function getCode() + { + return $this->code; + } + public function setCountryCode($countryCode) + { + $this->countryCode = $countryCode; + } + public function getCountryCode() + { + return $this->countryCode; + } + public function setCountryDartId($countryDartId) + { + $this->countryDartId = $countryDartId; + } + public function getCountryDartId() + { + return $this->countryDartId; + } + public function setId($id) + { + $this->id = $id; + } + public function getId() + { + return $this->id; + } + public function setKind($kind) + { + $this->kind = $kind; + } + public function getKind() + { + return $this->kind; + } +} + +class Google_Service_Dfareporting_PostalCodesListResponse extends Google_Collection +{ + protected $collection_key = 'postalCodes'; + protected $internal_gapi_mappings = array( + ); + public $kind; + protected $postalCodesType = 'Google_Service_Dfareporting_PostalCode'; + protected $postalCodesDataType = 'array'; + + + public function setKind($kind) + { + $this->kind = $kind; + } + public function getKind() + { + return $this->kind; + } + public function setPostalCodes($postalCodes) + { + $this->postalCodes = $postalCodes; + } + public function getPostalCodes() + { + return $this->postalCodes; + } +} + +class Google_Service_Dfareporting_Pricing extends Google_Collection +{ + protected $collection_key = 'flights'; + protected $internal_gapi_mappings = array( + ); + public $capCostType; + public $endDate; + protected $flightsType = 'Google_Service_Dfareporting_Flight'; + protected $flightsDataType = 'array'; + public $groupType; + public $pricingType; + public $startDate; + + + public function setCapCostType($capCostType) + { + $this->capCostType = $capCostType; + } + public function getCapCostType() + { + return $this->capCostType; + } + public function setEndDate($endDate) + { + $this->endDate = $endDate; + } + public function getEndDate() + { + return $this->endDate; + } + public function setFlights($flights) + { + $this->flights = $flights; + } + public function getFlights() + { + return $this->flights; + } + public function setGroupType($groupType) + { + $this->groupType = $groupType; + } + public function getGroupType() + { + return $this->groupType; + } + public function setPricingType($pricingType) + { + $this->pricingType = $pricingType; + } + public function getPricingType() + { + return $this->pricingType; + } + public function setStartDate($startDate) + { + $this->startDate = $startDate; + } + public function getStartDate() + { + return $this->startDate; + } +} + +class Google_Service_Dfareporting_PricingSchedule extends Google_Collection +{ + protected $collection_key = 'pricingPeriods'; + protected $internal_gapi_mappings = array( + ); + public $capCostOption; + public $disregardOverdelivery; + public $endDate; + public $flighted; + public $floodlightActivityId; + protected $pricingPeriodsType = 'Google_Service_Dfareporting_PricingSchedulePricingPeriod'; + protected $pricingPeriodsDataType = 'array'; + public $pricingType; + public $startDate; + public $testingStartDate; + + + public function setCapCostOption($capCostOption) + { + $this->capCostOption = $capCostOption; + } + public function getCapCostOption() + { + return $this->capCostOption; + } + public function setDisregardOverdelivery($disregardOverdelivery) + { + $this->disregardOverdelivery = $disregardOverdelivery; + } + public function getDisregardOverdelivery() + { + return $this->disregardOverdelivery; + } + public function setEndDate($endDate) + { + $this->endDate = $endDate; + } + public function getEndDate() + { + return $this->endDate; + } + public function setFlighted($flighted) + { + $this->flighted = $flighted; + } + public function getFlighted() + { + return $this->flighted; + } + public function setFloodlightActivityId($floodlightActivityId) + { + $this->floodlightActivityId = $floodlightActivityId; + } + public function getFloodlightActivityId() + { + return $this->floodlightActivityId; + } + public function setPricingPeriods($pricingPeriods) + { + $this->pricingPeriods = $pricingPeriods; + } + public function getPricingPeriods() + { + return $this->pricingPeriods; + } + public function setPricingType($pricingType) + { + $this->pricingType = $pricingType; + } + public function getPricingType() + { + return $this->pricingType; + } + public function setStartDate($startDate) + { + $this->startDate = $startDate; + } + public function getStartDate() + { + return $this->startDate; + } + public function setTestingStartDate($testingStartDate) + { + $this->testingStartDate = $testingStartDate; + } + public function getTestingStartDate() + { + return $this->testingStartDate; + } +} + +class Google_Service_Dfareporting_PricingSchedulePricingPeriod extends Google_Model +{ + protected $internal_gapi_mappings = array( + ); + public $endDate; + public $pricingComment; + public $rateOrCostNanos; + public $startDate; + public $units; + + + public function setEndDate($endDate) + { + $this->endDate = $endDate; + } + public function getEndDate() + { + return $this->endDate; + } + public function setPricingComment($pricingComment) + { + $this->pricingComment = $pricingComment; + } + public function getPricingComment() + { + return $this->pricingComment; + } + public function setRateOrCostNanos($rateOrCostNanos) + { + $this->rateOrCostNanos = $rateOrCostNanos; + } + public function getRateOrCostNanos() + { + return $this->rateOrCostNanos; + } + public function setStartDate($startDate) + { + $this->startDate = $startDate; + } + public function getStartDate() + { + return $this->startDate; + } + public function setUnits($units) + { + $this->units = $units; + } + public function getUnits() + { + return $this->units; + } +} + +class Google_Service_Dfareporting_ProgrammaticSetting extends Google_Collection +{ + protected $collection_key = 'traffickerEmails'; + protected $internal_gapi_mappings = array( + ); + public $adxDealIds; + public $insertionOrderId; + public $insertionOrderIdStatus; + public $mediaCostNanos; + public $programmatic; + public $traffickerEmails; + + + public function setAdxDealIds($adxDealIds) + { + $this->adxDealIds = $adxDealIds; + } + public function getAdxDealIds() + { + return $this->adxDealIds; + } + public function setInsertionOrderId($insertionOrderId) + { + $this->insertionOrderId = $insertionOrderId; + } + public function getInsertionOrderId() + { + return $this->insertionOrderId; + } + public function setInsertionOrderIdStatus($insertionOrderIdStatus) + { + $this->insertionOrderIdStatus = $insertionOrderIdStatus; + } + public function getInsertionOrderIdStatus() + { + return $this->insertionOrderIdStatus; + } + public function setMediaCostNanos($mediaCostNanos) + { + $this->mediaCostNanos = $mediaCostNanos; + } + public function getMediaCostNanos() + { + return $this->mediaCostNanos; + } + public function setProgrammatic($programmatic) + { + $this->programmatic = $programmatic; + } + public function getProgrammatic() + { + return $this->programmatic; + } + public function setTraffickerEmails($traffickerEmails) + { + $this->traffickerEmails = $traffickerEmails; + } + public function getTraffickerEmails() + { + return $this->traffickerEmails; + } +} + +class Google_Service_Dfareporting_Project extends Google_Model +{ + protected $internal_gapi_mappings = array( + ); + public $accountId; + public $advertiserId; + public $audienceAgeGroup; + public $audienceGender; + public $budget; + public $clientBillingCode; + public $clientName; + public $endDate; + public $id; + public $kind; + protected $lastModifiedInfoType = 'Google_Service_Dfareporting_LastModifiedInfo'; + protected $lastModifiedInfoDataType = ''; + public $name; + public $overview; + public $startDate; + public $subaccountId; + public $targetClicks; + public $targetConversions; + public $targetCpaNanos; + public $targetCpcNanos; + public $targetCpmNanos; + public $targetImpressions; + + + public function setAccountId($accountId) + { + $this->accountId = $accountId; + } + public function getAccountId() + { + return $this->accountId; + } + public function setAdvertiserId($advertiserId) + { + $this->advertiserId = $advertiserId; + } + public function getAdvertiserId() + { + return $this->advertiserId; + } + public function setAudienceAgeGroup($audienceAgeGroup) + { + $this->audienceAgeGroup = $audienceAgeGroup; + } + public function getAudienceAgeGroup() + { + return $this->audienceAgeGroup; + } + public function setAudienceGender($audienceGender) + { + $this->audienceGender = $audienceGender; + } + public function getAudienceGender() + { + return $this->audienceGender; + } + public function setBudget($budget) + { + $this->budget = $budget; + } + public function getBudget() + { + return $this->budget; + } + public function setClientBillingCode($clientBillingCode) + { + $this->clientBillingCode = $clientBillingCode; + } + public function getClientBillingCode() + { + return $this->clientBillingCode; + } + public function setClientName($clientName) + { + $this->clientName = $clientName; + } + public function getClientName() + { + return $this->clientName; + } + public function setEndDate($endDate) + { + $this->endDate = $endDate; + } + public function getEndDate() + { + return $this->endDate; + } + public function setId($id) + { + $this->id = $id; + } + public function getId() + { + return $this->id; + } + public function setKind($kind) + { + $this->kind = $kind; + } + public function getKind() + { + return $this->kind; + } + public function setLastModifiedInfo(Google_Service_Dfareporting_LastModifiedInfo $lastModifiedInfo) + { + $this->lastModifiedInfo = $lastModifiedInfo; + } + public function getLastModifiedInfo() + { + return $this->lastModifiedInfo; + } + public function setName($name) + { + $this->name = $name; + } + public function getName() + { + return $this->name; + } + public function setOverview($overview) + { + $this->overview = $overview; + } + public function getOverview() + { + return $this->overview; + } + public function setStartDate($startDate) + { + $this->startDate = $startDate; + } + public function getStartDate() + { + return $this->startDate; + } + public function setSubaccountId($subaccountId) + { + $this->subaccountId = $subaccountId; + } + public function getSubaccountId() + { + return $this->subaccountId; + } + public function setTargetClicks($targetClicks) + { + $this->targetClicks = $targetClicks; + } + public function getTargetClicks() + { + return $this->targetClicks; + } + public function setTargetConversions($targetConversions) + { + $this->targetConversions = $targetConversions; + } + public function getTargetConversions() + { + return $this->targetConversions; + } + public function setTargetCpaNanos($targetCpaNanos) + { + $this->targetCpaNanos = $targetCpaNanos; + } + public function getTargetCpaNanos() + { + return $this->targetCpaNanos; + } + public function setTargetCpcNanos($targetCpcNanos) + { + $this->targetCpcNanos = $targetCpcNanos; + } + public function getTargetCpcNanos() + { + return $this->targetCpcNanos; + } + public function setTargetCpmNanos($targetCpmNanos) + { + $this->targetCpmNanos = $targetCpmNanos; + } + public function getTargetCpmNanos() + { + return $this->targetCpmNanos; + } + public function setTargetImpressions($targetImpressions) + { + $this->targetImpressions = $targetImpressions; + } + public function getTargetImpressions() + { + return $this->targetImpressions; + } +} + +class Google_Service_Dfareporting_ProjectsListResponse extends Google_Collection +{ + protected $collection_key = 'projects'; + protected $internal_gapi_mappings = array( + ); + public $kind; + public $nextPageToken; + protected $projectsType = 'Google_Service_Dfareporting_Project'; + protected $projectsDataType = 'array'; + + + public function setKind($kind) + { + $this->kind = $kind; + } + public function getKind() + { + return $this->kind; + } + public function setNextPageToken($nextPageToken) + { + $this->nextPageToken = $nextPageToken; + } + public function getNextPageToken() + { + return $this->nextPageToken; + } + public function setProjects($projects) + { + $this->projects = $projects; + } + public function getProjects() + { + return $this->projects; + } +} + class Google_Service_Dfareporting_ReachReportCompatibleFields extends Google_Collection { protected $collection_key = 'reachByFrequencyMetrics'; @@ -1568,13 +18821,310 @@ class Google_Service_Dfareporting_Recipient extends Google_Model } } +class Google_Service_Dfareporting_Region extends Google_Model +{ + protected $internal_gapi_mappings = array( + ); + public $countryCode; + public $countryDartId; + public $dartId; + public $kind; + public $name; + public $regionCode; + + + public function setCountryCode($countryCode) + { + $this->countryCode = $countryCode; + } + public function getCountryCode() + { + return $this->countryCode; + } + public function setCountryDartId($countryDartId) + { + $this->countryDartId = $countryDartId; + } + public function getCountryDartId() + { + return $this->countryDartId; + } + public function setDartId($dartId) + { + $this->dartId = $dartId; + } + public function getDartId() + { + return $this->dartId; + } + public function setKind($kind) + { + $this->kind = $kind; + } + public function getKind() + { + return $this->kind; + } + public function setName($name) + { + $this->name = $name; + } + public function getName() + { + return $this->name; + } + public function setRegionCode($regionCode) + { + $this->regionCode = $regionCode; + } + public function getRegionCode() + { + return $this->regionCode; + } +} + +class Google_Service_Dfareporting_RegionsListResponse extends Google_Collection +{ + protected $collection_key = 'regions'; + protected $internal_gapi_mappings = array( + ); + public $kind; + protected $regionsType = 'Google_Service_Dfareporting_Region'; + protected $regionsDataType = 'array'; + + + public function setKind($kind) + { + $this->kind = $kind; + } + public function getKind() + { + return $this->kind; + } + public function setRegions($regions) + { + $this->regions = $regions; + } + public function getRegions() + { + return $this->regions; + } +} + +class Google_Service_Dfareporting_RemarketingList extends Google_Model +{ + protected $internal_gapi_mappings = array( + ); + public $accountId; + public $active; + public $advertiserId; + protected $advertiserIdDimensionValueType = 'Google_Service_Dfareporting_DimensionValue'; + protected $advertiserIdDimensionValueDataType = ''; + public $description; + public $id; + public $kind; + public $lifeSpan; + protected $listPopulationRuleType = 'Google_Service_Dfareporting_ListPopulationRule'; + protected $listPopulationRuleDataType = ''; + public $listSize; + public $listSource; + public $name; + public $subaccountId; + + + public function setAccountId($accountId) + { + $this->accountId = $accountId; + } + public function getAccountId() + { + return $this->accountId; + } + public function setActive($active) + { + $this->active = $active; + } + public function getActive() + { + return $this->active; + } + public function setAdvertiserId($advertiserId) + { + $this->advertiserId = $advertiserId; + } + public function getAdvertiserId() + { + return $this->advertiserId; + } + public function setAdvertiserIdDimensionValue(Google_Service_Dfareporting_DimensionValue $advertiserIdDimensionValue) + { + $this->advertiserIdDimensionValue = $advertiserIdDimensionValue; + } + public function getAdvertiserIdDimensionValue() + { + return $this->advertiserIdDimensionValue; + } + public function setDescription($description) + { + $this->description = $description; + } + public function getDescription() + { + return $this->description; + } + public function setId($id) + { + $this->id = $id; + } + public function getId() + { + return $this->id; + } + public function setKind($kind) + { + $this->kind = $kind; + } + public function getKind() + { + return $this->kind; + } + public function setLifeSpan($lifeSpan) + { + $this->lifeSpan = $lifeSpan; + } + public function getLifeSpan() + { + return $this->lifeSpan; + } + public function setListPopulationRule(Google_Service_Dfareporting_ListPopulationRule $listPopulationRule) + { + $this->listPopulationRule = $listPopulationRule; + } + public function getListPopulationRule() + { + return $this->listPopulationRule; + } + public function setListSize($listSize) + { + $this->listSize = $listSize; + } + public function getListSize() + { + return $this->listSize; + } + public function setListSource($listSource) + { + $this->listSource = $listSource; + } + public function getListSource() + { + return $this->listSource; + } + public function setName($name) + { + $this->name = $name; + } + public function getName() + { + return $this->name; + } + public function setSubaccountId($subaccountId) + { + $this->subaccountId = $subaccountId; + } + public function getSubaccountId() + { + return $this->subaccountId; + } +} + +class Google_Service_Dfareporting_RemarketingListShare extends Google_Collection +{ + protected $collection_key = 'sharedAdvertiserIds'; + protected $internal_gapi_mappings = array( + ); + public $kind; + public $remarketingListId; + public $sharedAccountIds; + public $sharedAdvertiserIds; + + + public function setKind($kind) + { + $this->kind = $kind; + } + public function getKind() + { + return $this->kind; + } + public function setRemarketingListId($remarketingListId) + { + $this->remarketingListId = $remarketingListId; + } + public function getRemarketingListId() + { + return $this->remarketingListId; + } + public function setSharedAccountIds($sharedAccountIds) + { + $this->sharedAccountIds = $sharedAccountIds; + } + public function getSharedAccountIds() + { + return $this->sharedAccountIds; + } + public function setSharedAdvertiserIds($sharedAdvertiserIds) + { + $this->sharedAdvertiserIds = $sharedAdvertiserIds; + } + public function getSharedAdvertiserIds() + { + return $this->sharedAdvertiserIds; + } +} + +class Google_Service_Dfareporting_RemarketingListsListResponse extends Google_Collection +{ + protected $collection_key = 'remarketingLists'; + protected $internal_gapi_mappings = array( + ); + public $kind; + public $nextPageToken; + protected $remarketingListsType = 'Google_Service_Dfareporting_RemarketingList'; + protected $remarketingListsDataType = 'array'; + + + public function setKind($kind) + { + $this->kind = $kind; + } + public function getKind() + { + return $this->kind; + } + public function setNextPageToken($nextPageToken) + { + $this->nextPageToken = $nextPageToken; + } + public function getNextPageToken() + { + return $this->nextPageToken; + } + public function setRemarketingLists($remarketingLists) + { + $this->remarketingLists = $remarketingLists; + } + public function getRemarketingLists() + { + return $this->remarketingLists; + } +} + class Google_Service_Dfareporting_Report extends Google_Model { protected $internal_gapi_mappings = array( ); public $accountId; - protected $activeGrpCriteriaType = 'Google_Service_Dfareporting_ReportActiveGrpCriteria'; - protected $activeGrpCriteriaDataType = ''; protected $criteriaType = 'Google_Service_Dfareporting_ReportCriteria'; protected $criteriaDataType = ''; protected $crossDimensionReachCriteriaType = 'Google_Service_Dfareporting_ReportCrossDimensionReachCriteria'; @@ -1609,14 +19159,6 @@ class Google_Service_Dfareporting_Report extends Google_Model { return $this->accountId; } - public function setActiveGrpCriteria(Google_Service_Dfareporting_ReportActiveGrpCriteria $activeGrpCriteria) - { - $this->activeGrpCriteria = $activeGrpCriteria; - } - public function getActiveGrpCriteria() - { - return $this->activeGrpCriteria; - } public function setCriteria(Google_Service_Dfareporting_ReportCriteria $criteria) { $this->criteria = $criteria; @@ -1755,54 +19297,6 @@ class Google_Service_Dfareporting_Report extends Google_Model } } -class Google_Service_Dfareporting_ReportActiveGrpCriteria extends Google_Collection -{ - protected $collection_key = 'metricNames'; - protected $internal_gapi_mappings = array( - ); - protected $dateRangeType = 'Google_Service_Dfareporting_DateRange'; - protected $dateRangeDataType = ''; - protected $dimensionFiltersType = 'Google_Service_Dfareporting_DimensionValue'; - protected $dimensionFiltersDataType = 'array'; - protected $dimensionsType = 'Google_Service_Dfareporting_SortedDimension'; - protected $dimensionsDataType = 'array'; - public $metricNames; - - - public function setDateRange(Google_Service_Dfareporting_DateRange $dateRange) - { - $this->dateRange = $dateRange; - } - public function getDateRange() - { - return $this->dateRange; - } - public function setDimensionFilters($dimensionFilters) - { - $this->dimensionFilters = $dimensionFilters; - } - public function getDimensionFilters() - { - return $this->dimensionFilters; - } - public function setDimensions($dimensions) - { - $this->dimensions = $dimensions; - } - public function getDimensions() - { - return $this->dimensions; - } - public function setMetricNames($metricNames) - { - $this->metricNames = $metricNames; - } - public function getMetricNames() - { - return $this->metricNames; - } -} - class Google_Service_Dfareporting_ReportCompatibleFields extends Google_Collection { protected $collection_key = 'pivotedActivityMetrics'; @@ -2411,6 +19905,7 @@ class Google_Service_Dfareporting_ReportReachCriteria extends Google_Collection protected $dimensionFiltersDataType = 'array'; protected $dimensionsType = 'Google_Service_Dfareporting_SortedDimension'; protected $dimensionsDataType = 'array'; + public $enableAllDimensionCombinations; public $metricNames; public $reachByFrequencyMetricNames; @@ -2455,6 +19950,14 @@ class Google_Service_Dfareporting_ReportReachCriteria extends Google_Collection { return $this->dimensions; } + public function setEnableAllDimensionCombinations($enableAllDimensionCombinations) + { + $this->enableAllDimensionCombinations = $enableAllDimensionCombinations; + } + public function getEnableAllDimensionCombinations() + { + return $this->enableAllDimensionCombinations; + } public function setMetricNames($metricNames) { $this->metricNames = $metricNames; @@ -2545,6 +20048,461 @@ class Google_Service_Dfareporting_ReportSchedule extends Google_Collection } } +class Google_Service_Dfareporting_ReportsConfiguration extends Google_Model +{ + protected $internal_gapi_mappings = array( + ); + public $exposureToConversionEnabled; + protected $lookbackConfigurationType = 'Google_Service_Dfareporting_LookbackConfiguration'; + protected $lookbackConfigurationDataType = ''; + public $reportGenerationTimeZoneId; + + + public function setExposureToConversionEnabled($exposureToConversionEnabled) + { + $this->exposureToConversionEnabled = $exposureToConversionEnabled; + } + public function getExposureToConversionEnabled() + { + return $this->exposureToConversionEnabled; + } + public function setLookbackConfiguration(Google_Service_Dfareporting_LookbackConfiguration $lookbackConfiguration) + { + $this->lookbackConfiguration = $lookbackConfiguration; + } + public function getLookbackConfiguration() + { + return $this->lookbackConfiguration; + } + public function setReportGenerationTimeZoneId($reportGenerationTimeZoneId) + { + $this->reportGenerationTimeZoneId = $reportGenerationTimeZoneId; + } + public function getReportGenerationTimeZoneId() + { + return $this->reportGenerationTimeZoneId; + } +} + +class Google_Service_Dfareporting_RichMediaExitOverride extends Google_Model +{ + protected $internal_gapi_mappings = array( + ); + public $customExitUrl; + public $exitId; + public $useCustomExitUrl; + + + public function setCustomExitUrl($customExitUrl) + { + $this->customExitUrl = $customExitUrl; + } + public function getCustomExitUrl() + { + return $this->customExitUrl; + } + public function setExitId($exitId) + { + $this->exitId = $exitId; + } + public function getExitId() + { + return $this->exitId; + } + public function setUseCustomExitUrl($useCustomExitUrl) + { + $this->useCustomExitUrl = $useCustomExitUrl; + } + public function getUseCustomExitUrl() + { + return $this->useCustomExitUrl; + } +} + +class Google_Service_Dfareporting_Site extends Google_Collection +{ + protected $collection_key = 'siteContacts'; + protected $internal_gapi_mappings = array( + ); + public $accountId; + public $approved; + public $directorySiteId; + protected $directorySiteIdDimensionValueType = 'Google_Service_Dfareporting_DimensionValue'; + protected $directorySiteIdDimensionValueDataType = ''; + public $id; + protected $idDimensionValueType = 'Google_Service_Dfareporting_DimensionValue'; + protected $idDimensionValueDataType = ''; + public $keyName; + public $kind; + public $name; + protected $siteContactsType = 'Google_Service_Dfareporting_SiteContact'; + protected $siteContactsDataType = 'array'; + protected $siteSettingsType = 'Google_Service_Dfareporting_SiteSettings'; + protected $siteSettingsDataType = ''; + public $subaccountId; + + + public function setAccountId($accountId) + { + $this->accountId = $accountId; + } + public function getAccountId() + { + return $this->accountId; + } + public function setApproved($approved) + { + $this->approved = $approved; + } + public function getApproved() + { + return $this->approved; + } + public function setDirectorySiteId($directorySiteId) + { + $this->directorySiteId = $directorySiteId; + } + public function getDirectorySiteId() + { + return $this->directorySiteId; + } + public function setDirectorySiteIdDimensionValue(Google_Service_Dfareporting_DimensionValue $directorySiteIdDimensionValue) + { + $this->directorySiteIdDimensionValue = $directorySiteIdDimensionValue; + } + public function getDirectorySiteIdDimensionValue() + { + return $this->directorySiteIdDimensionValue; + } + public function setId($id) + { + $this->id = $id; + } + public function getId() + { + return $this->id; + } + public function setIdDimensionValue(Google_Service_Dfareporting_DimensionValue $idDimensionValue) + { + $this->idDimensionValue = $idDimensionValue; + } + public function getIdDimensionValue() + { + return $this->idDimensionValue; + } + public function setKeyName($keyName) + { + $this->keyName = $keyName; + } + public function getKeyName() + { + return $this->keyName; + } + public function setKind($kind) + { + $this->kind = $kind; + } + public function getKind() + { + return $this->kind; + } + public function setName($name) + { + $this->name = $name; + } + public function getName() + { + return $this->name; + } + public function setSiteContacts($siteContacts) + { + $this->siteContacts = $siteContacts; + } + public function getSiteContacts() + { + return $this->siteContacts; + } + public function setSiteSettings(Google_Service_Dfareporting_SiteSettings $siteSettings) + { + $this->siteSettings = $siteSettings; + } + public function getSiteSettings() + { + return $this->siteSettings; + } + public function setSubaccountId($subaccountId) + { + $this->subaccountId = $subaccountId; + } + public function getSubaccountId() + { + return $this->subaccountId; + } +} + +class Google_Service_Dfareporting_SiteContact extends Google_Model +{ + protected $internal_gapi_mappings = array( + ); + public $address; + public $contactType; + public $email; + public $firstName; + public $id; + public $lastName; + public $phone; + public $title; + + + public function setAddress($address) + { + $this->address = $address; + } + public function getAddress() + { + return $this->address; + } + public function setContactType($contactType) + { + $this->contactType = $contactType; + } + public function getContactType() + { + return $this->contactType; + } + public function setEmail($email) + { + $this->email = $email; + } + public function getEmail() + { + return $this->email; + } + public function setFirstName($firstName) + { + $this->firstName = $firstName; + } + public function getFirstName() + { + return $this->firstName; + } + public function setId($id) + { + $this->id = $id; + } + public function getId() + { + return $this->id; + } + public function setLastName($lastName) + { + $this->lastName = $lastName; + } + public function getLastName() + { + return $this->lastName; + } + public function setPhone($phone) + { + $this->phone = $phone; + } + public function getPhone() + { + return $this->phone; + } + public function setTitle($title) + { + $this->title = $title; + } + public function getTitle() + { + return $this->title; + } +} + +class Google_Service_Dfareporting_SiteSettings extends Google_Model +{ + protected $internal_gapi_mappings = array( + ); + public $activeViewOptOut; + protected $creativeSettingsType = 'Google_Service_Dfareporting_CreativeSettings'; + protected $creativeSettingsDataType = ''; + public $disableBrandSafeAds; + public $disableNewCookie; + protected $lookbackConfigurationType = 'Google_Service_Dfareporting_LookbackConfiguration'; + protected $lookbackConfigurationDataType = ''; + protected $tagSettingType = 'Google_Service_Dfareporting_TagSetting'; + protected $tagSettingDataType = ''; + + + public function setActiveViewOptOut($activeViewOptOut) + { + $this->activeViewOptOut = $activeViewOptOut; + } + public function getActiveViewOptOut() + { + return $this->activeViewOptOut; + } + public function setCreativeSettings(Google_Service_Dfareporting_CreativeSettings $creativeSettings) + { + $this->creativeSettings = $creativeSettings; + } + public function getCreativeSettings() + { + return $this->creativeSettings; + } + public function setDisableBrandSafeAds($disableBrandSafeAds) + { + $this->disableBrandSafeAds = $disableBrandSafeAds; + } + public function getDisableBrandSafeAds() + { + return $this->disableBrandSafeAds; + } + public function setDisableNewCookie($disableNewCookie) + { + $this->disableNewCookie = $disableNewCookie; + } + public function getDisableNewCookie() + { + return $this->disableNewCookie; + } + public function setLookbackConfiguration(Google_Service_Dfareporting_LookbackConfiguration $lookbackConfiguration) + { + $this->lookbackConfiguration = $lookbackConfiguration; + } + public function getLookbackConfiguration() + { + return $this->lookbackConfiguration; + } + public function setTagSetting(Google_Service_Dfareporting_TagSetting $tagSetting) + { + $this->tagSetting = $tagSetting; + } + public function getTagSetting() + { + return $this->tagSetting; + } +} + +class Google_Service_Dfareporting_SitesListResponse extends Google_Collection +{ + protected $collection_key = 'sites'; + protected $internal_gapi_mappings = array( + ); + public $kind; + public $nextPageToken; + protected $sitesType = 'Google_Service_Dfareporting_Site'; + protected $sitesDataType = 'array'; + + + public function setKind($kind) + { + $this->kind = $kind; + } + public function getKind() + { + return $this->kind; + } + public function setNextPageToken($nextPageToken) + { + $this->nextPageToken = $nextPageToken; + } + public function getNextPageToken() + { + return $this->nextPageToken; + } + public function setSites($sites) + { + $this->sites = $sites; + } + public function getSites() + { + return $this->sites; + } +} + +class Google_Service_Dfareporting_Size extends Google_Model +{ + protected $internal_gapi_mappings = array( + ); + public $height; + public $iab; + public $id; + public $kind; + public $width; + + + public function setHeight($height) + { + $this->height = $height; + } + public function getHeight() + { + return $this->height; + } + public function setIab($iab) + { + $this->iab = $iab; + } + public function getIab() + { + return $this->iab; + } + public function setId($id) + { + $this->id = $id; + } + public function getId() + { + return $this->id; + } + public function setKind($kind) + { + $this->kind = $kind; + } + public function getKind() + { + return $this->kind; + } + public function setWidth($width) + { + $this->width = $width; + } + public function getWidth() + { + return $this->width; + } +} + +class Google_Service_Dfareporting_SizesListResponse extends Google_Collection +{ + protected $collection_key = 'sizes'; + protected $internal_gapi_mappings = array( + ); + public $kind; + protected $sizesType = 'Google_Service_Dfareporting_Size'; + protected $sizesDataType = 'array'; + + + public function setKind($kind) + { + $this->kind = $kind; + } + public function getKind() + { + return $this->kind; + } + public function setSizes($sizes) + { + $this->sizes = $sizes; + } + public function getSizes() + { + return $this->sizes; + } +} + class Google_Service_Dfareporting_SortedDimension extends Google_Model { protected $internal_gapi_mappings = array( @@ -2580,6 +20538,530 @@ class Google_Service_Dfareporting_SortedDimension extends Google_Model } } +class Google_Service_Dfareporting_Subaccount extends Google_Collection +{ + protected $collection_key = 'availablePermissionIds'; + protected $internal_gapi_mappings = array( + ); + public $accountId; + public $availablePermissionIds; + public $id; + public $kind; + public $name; + + + public function setAccountId($accountId) + { + $this->accountId = $accountId; + } + public function getAccountId() + { + return $this->accountId; + } + public function setAvailablePermissionIds($availablePermissionIds) + { + $this->availablePermissionIds = $availablePermissionIds; + } + public function getAvailablePermissionIds() + { + return $this->availablePermissionIds; + } + public function setId($id) + { + $this->id = $id; + } + public function getId() + { + return $this->id; + } + public function setKind($kind) + { + $this->kind = $kind; + } + public function getKind() + { + return $this->kind; + } + public function setName($name) + { + $this->name = $name; + } + public function getName() + { + return $this->name; + } +} + +class Google_Service_Dfareporting_SubaccountsListResponse extends Google_Collection +{ + protected $collection_key = 'subaccounts'; + protected $internal_gapi_mappings = array( + ); + public $kind; + public $nextPageToken; + protected $subaccountsType = 'Google_Service_Dfareporting_Subaccount'; + protected $subaccountsDataType = 'array'; + + + public function setKind($kind) + { + $this->kind = $kind; + } + public function getKind() + { + return $this->kind; + } + public function setNextPageToken($nextPageToken) + { + $this->nextPageToken = $nextPageToken; + } + public function getNextPageToken() + { + return $this->nextPageToken; + } + public function setSubaccounts($subaccounts) + { + $this->subaccounts = $subaccounts; + } + public function getSubaccounts() + { + return $this->subaccounts; + } +} + +class Google_Service_Dfareporting_TagData extends Google_Model +{ + protected $internal_gapi_mappings = array( + ); + public $adId; + public $clickTag; + public $creativeId; + public $format; + public $impressionTag; + + + public function setAdId($adId) + { + $this->adId = $adId; + } + public function getAdId() + { + return $this->adId; + } + public function setClickTag($clickTag) + { + $this->clickTag = $clickTag; + } + public function getClickTag() + { + return $this->clickTag; + } + public function setCreativeId($creativeId) + { + $this->creativeId = $creativeId; + } + public function getCreativeId() + { + return $this->creativeId; + } + public function setFormat($format) + { + $this->format = $format; + } + public function getFormat() + { + return $this->format; + } + public function setImpressionTag($impressionTag) + { + $this->impressionTag = $impressionTag; + } + public function getImpressionTag() + { + return $this->impressionTag; + } +} + +class Google_Service_Dfareporting_TagSetting extends Google_Model +{ + protected $internal_gapi_mappings = array( + ); + public $additionalKeyValues; + public $includeClickThroughUrls; + public $includeClickTracking; + public $keywordOption; + + + public function setAdditionalKeyValues($additionalKeyValues) + { + $this->additionalKeyValues = $additionalKeyValues; + } + public function getAdditionalKeyValues() + { + return $this->additionalKeyValues; + } + public function setIncludeClickThroughUrls($includeClickThroughUrls) + { + $this->includeClickThroughUrls = $includeClickThroughUrls; + } + public function getIncludeClickThroughUrls() + { + return $this->includeClickThroughUrls; + } + public function setIncludeClickTracking($includeClickTracking) + { + $this->includeClickTracking = $includeClickTracking; + } + public function getIncludeClickTracking() + { + return $this->includeClickTracking; + } + public function setKeywordOption($keywordOption) + { + $this->keywordOption = $keywordOption; + } + public function getKeywordOption() + { + return $this->keywordOption; + } +} + +class Google_Service_Dfareporting_TagSettings extends Google_Model +{ + protected $internal_gapi_mappings = array( + ); + public $dynamicTagEnabled; + public $imageTagEnabled; + + + public function setDynamicTagEnabled($dynamicTagEnabled) + { + $this->dynamicTagEnabled = $dynamicTagEnabled; + } + public function getDynamicTagEnabled() + { + return $this->dynamicTagEnabled; + } + public function setImageTagEnabled($imageTagEnabled) + { + $this->imageTagEnabled = $imageTagEnabled; + } + public function getImageTagEnabled() + { + return $this->imageTagEnabled; + } +} + +class Google_Service_Dfareporting_TargetWindow extends Google_Model +{ + protected $internal_gapi_mappings = array( + ); + public $customHtml; + public $targetWindowOption; + + + public function setCustomHtml($customHtml) + { + $this->customHtml = $customHtml; + } + public function getCustomHtml() + { + return $this->customHtml; + } + public function setTargetWindowOption($targetWindowOption) + { + $this->targetWindowOption = $targetWindowOption; + } + public function getTargetWindowOption() + { + return $this->targetWindowOption; + } +} + +class Google_Service_Dfareporting_TargetableRemarketingList extends Google_Model +{ + protected $internal_gapi_mappings = array( + ); + public $accountId; + public $active; + public $advertiserId; + protected $advertiserIdDimensionValueType = 'Google_Service_Dfareporting_DimensionValue'; + protected $advertiserIdDimensionValueDataType = ''; + public $description; + public $id; + public $kind; + public $lifeSpan; + public $listSize; + public $listSource; + public $name; + public $subaccountId; + + + public function setAccountId($accountId) + { + $this->accountId = $accountId; + } + public function getAccountId() + { + return $this->accountId; + } + public function setActive($active) + { + $this->active = $active; + } + public function getActive() + { + return $this->active; + } + public function setAdvertiserId($advertiserId) + { + $this->advertiserId = $advertiserId; + } + public function getAdvertiserId() + { + return $this->advertiserId; + } + public function setAdvertiserIdDimensionValue(Google_Service_Dfareporting_DimensionValue $advertiserIdDimensionValue) + { + $this->advertiserIdDimensionValue = $advertiserIdDimensionValue; + } + public function getAdvertiserIdDimensionValue() + { + return $this->advertiserIdDimensionValue; + } + public function setDescription($description) + { + $this->description = $description; + } + public function getDescription() + { + return $this->description; + } + public function setId($id) + { + $this->id = $id; + } + public function getId() + { + return $this->id; + } + public function setKind($kind) + { + $this->kind = $kind; + } + public function getKind() + { + return $this->kind; + } + public function setLifeSpan($lifeSpan) + { + $this->lifeSpan = $lifeSpan; + } + public function getLifeSpan() + { + return $this->lifeSpan; + } + public function setListSize($listSize) + { + $this->listSize = $listSize; + } + public function getListSize() + { + return $this->listSize; + } + public function setListSource($listSource) + { + $this->listSource = $listSource; + } + public function getListSource() + { + return $this->listSource; + } + public function setName($name) + { + $this->name = $name; + } + public function getName() + { + return $this->name; + } + public function setSubaccountId($subaccountId) + { + $this->subaccountId = $subaccountId; + } + public function getSubaccountId() + { + return $this->subaccountId; + } +} + +class Google_Service_Dfareporting_TargetableRemarketingListsListResponse extends Google_Collection +{ + protected $collection_key = 'targetableRemarketingLists'; + protected $internal_gapi_mappings = array( + ); + public $kind; + public $nextPageToken; + protected $targetableRemarketingListsType = 'Google_Service_Dfareporting_TargetableRemarketingList'; + protected $targetableRemarketingListsDataType = 'array'; + + + public function setKind($kind) + { + $this->kind = $kind; + } + public function getKind() + { + return $this->kind; + } + public function setNextPageToken($nextPageToken) + { + $this->nextPageToken = $nextPageToken; + } + public function getNextPageToken() + { + return $this->nextPageToken; + } + public function setTargetableRemarketingLists($targetableRemarketingLists) + { + $this->targetableRemarketingLists = $targetableRemarketingLists; + } + public function getTargetableRemarketingLists() + { + return $this->targetableRemarketingLists; + } +} + +class Google_Service_Dfareporting_TechnologyTargeting extends Google_Collection +{ + protected $collection_key = 'platformTypes'; + protected $internal_gapi_mappings = array( + ); + protected $browsersType = 'Google_Service_Dfareporting_Browser'; + protected $browsersDataType = 'array'; + protected $connectionTypesType = 'Google_Service_Dfareporting_ConnectionType'; + protected $connectionTypesDataType = 'array'; + protected $mobileCarriersType = 'Google_Service_Dfareporting_MobileCarrier'; + protected $mobileCarriersDataType = 'array'; + protected $operatingSystemVersionsType = 'Google_Service_Dfareporting_OperatingSystemVersion'; + protected $operatingSystemVersionsDataType = 'array'; + protected $operatingSystemsType = 'Google_Service_Dfareporting_OperatingSystem'; + protected $operatingSystemsDataType = 'array'; + protected $platformTypesType = 'Google_Service_Dfareporting_PlatformType'; + protected $platformTypesDataType = 'array'; + + + public function setBrowsers($browsers) + { + $this->browsers = $browsers; + } + public function getBrowsers() + { + return $this->browsers; + } + public function setConnectionTypes($connectionTypes) + { + $this->connectionTypes = $connectionTypes; + } + public function getConnectionTypes() + { + return $this->connectionTypes; + } + public function setMobileCarriers($mobileCarriers) + { + $this->mobileCarriers = $mobileCarriers; + } + public function getMobileCarriers() + { + return $this->mobileCarriers; + } + public function setOperatingSystemVersions($operatingSystemVersions) + { + $this->operatingSystemVersions = $operatingSystemVersions; + } + public function getOperatingSystemVersions() + { + return $this->operatingSystemVersions; + } + public function setOperatingSystems($operatingSystems) + { + $this->operatingSystems = $operatingSystems; + } + public function getOperatingSystems() + { + return $this->operatingSystems; + } + public function setPlatformTypes($platformTypes) + { + $this->platformTypes = $platformTypes; + } + public function getPlatformTypes() + { + return $this->platformTypes; + } +} + +class Google_Service_Dfareporting_ThirdPartyTrackingUrl extends Google_Model +{ + protected $internal_gapi_mappings = array( + ); + public $thirdPartyUrlType; + public $url; + + + public function setThirdPartyUrlType($thirdPartyUrlType) + { + $this->thirdPartyUrlType = $thirdPartyUrlType; + } + public function getThirdPartyUrlType() + { + return $this->thirdPartyUrlType; + } + public function setUrl($url) + { + $this->url = $url; + } + public function getUrl() + { + return $this->url; + } +} + +class Google_Service_Dfareporting_UserDefinedVariableConfiguration extends Google_Model +{ + protected $internal_gapi_mappings = array( + ); + public $dataType; + public $reportName; + public $variableType; + + + public function setDataType($dataType) + { + $this->dataType = $dataType; + } + public function getDataType() + { + return $this->dataType; + } + public function setReportName($reportName) + { + $this->reportName = $reportName; + } + public function getReportName() + { + return $this->reportName; + } + public function setVariableType($variableType) + { + $this->variableType = $variableType; + } + public function getVariableType() + { + return $this->variableType; + } +} + class Google_Service_Dfareporting_UserProfile extends Google_Model { protected $internal_gapi_mappings = array( @@ -2696,3 +21178,266 @@ class Google_Service_Dfareporting_UserProfileList extends Google_Collection return $this->kind; } } + +class Google_Service_Dfareporting_UserRole extends Google_Collection +{ + protected $collection_key = 'permissions'; + protected $internal_gapi_mappings = array( + ); + public $accountId; + public $defaultUserRole; + public $id; + public $kind; + public $name; + public $parentUserRoleId; + protected $permissionsType = 'Google_Service_Dfareporting_UserRolePermission'; + protected $permissionsDataType = 'array'; + public $subaccountId; + + + public function setAccountId($accountId) + { + $this->accountId = $accountId; + } + public function getAccountId() + { + return $this->accountId; + } + public function setDefaultUserRole($defaultUserRole) + { + $this->defaultUserRole = $defaultUserRole; + } + public function getDefaultUserRole() + { + return $this->defaultUserRole; + } + public function setId($id) + { + $this->id = $id; + } + public function getId() + { + return $this->id; + } + public function setKind($kind) + { + $this->kind = $kind; + } + public function getKind() + { + return $this->kind; + } + public function setName($name) + { + $this->name = $name; + } + public function getName() + { + return $this->name; + } + public function setParentUserRoleId($parentUserRoleId) + { + $this->parentUserRoleId = $parentUserRoleId; + } + public function getParentUserRoleId() + { + return $this->parentUserRoleId; + } + public function setPermissions($permissions) + { + $this->permissions = $permissions; + } + public function getPermissions() + { + return $this->permissions; + } + public function setSubaccountId($subaccountId) + { + $this->subaccountId = $subaccountId; + } + public function getSubaccountId() + { + return $this->subaccountId; + } +} + +class Google_Service_Dfareporting_UserRolePermission extends Google_Model +{ + protected $internal_gapi_mappings = array( + ); + public $availability; + public $id; + public $kind; + public $name; + public $permissionGroupId; + + + public function setAvailability($availability) + { + $this->availability = $availability; + } + public function getAvailability() + { + return $this->availability; + } + public function setId($id) + { + $this->id = $id; + } + public function getId() + { + return $this->id; + } + public function setKind($kind) + { + $this->kind = $kind; + } + public function getKind() + { + return $this->kind; + } + public function setName($name) + { + $this->name = $name; + } + public function getName() + { + return $this->name; + } + public function setPermissionGroupId($permissionGroupId) + { + $this->permissionGroupId = $permissionGroupId; + } + public function getPermissionGroupId() + { + return $this->permissionGroupId; + } +} + +class Google_Service_Dfareporting_UserRolePermissionGroup extends Google_Model +{ + protected $internal_gapi_mappings = array( + ); + public $id; + public $kind; + public $name; + + + public function setId($id) + { + $this->id = $id; + } + public function getId() + { + return $this->id; + } + public function setKind($kind) + { + $this->kind = $kind; + } + public function getKind() + { + return $this->kind; + } + public function setName($name) + { + $this->name = $name; + } + public function getName() + { + return $this->name; + } +} + +class Google_Service_Dfareporting_UserRolePermissionGroupsListResponse extends Google_Collection +{ + protected $collection_key = 'userRolePermissionGroups'; + protected $internal_gapi_mappings = array( + ); + public $kind; + protected $userRolePermissionGroupsType = 'Google_Service_Dfareporting_UserRolePermissionGroup'; + protected $userRolePermissionGroupsDataType = 'array'; + + + public function setKind($kind) + { + $this->kind = $kind; + } + public function getKind() + { + return $this->kind; + } + public function setUserRolePermissionGroups($userRolePermissionGroups) + { + $this->userRolePermissionGroups = $userRolePermissionGroups; + } + public function getUserRolePermissionGroups() + { + return $this->userRolePermissionGroups; + } +} + +class Google_Service_Dfareporting_UserRolePermissionsListResponse extends Google_Collection +{ + protected $collection_key = 'userRolePermissions'; + protected $internal_gapi_mappings = array( + ); + public $kind; + protected $userRolePermissionsType = 'Google_Service_Dfareporting_UserRolePermission'; + protected $userRolePermissionsDataType = 'array'; + + + public function setKind($kind) + { + $this->kind = $kind; + } + public function getKind() + { + return $this->kind; + } + public function setUserRolePermissions($userRolePermissions) + { + $this->userRolePermissions = $userRolePermissions; + } + public function getUserRolePermissions() + { + return $this->userRolePermissions; + } +} + +class Google_Service_Dfareporting_UserRolesListResponse extends Google_Collection +{ + protected $collection_key = 'userRoles'; + protected $internal_gapi_mappings = array( + ); + public $kind; + public $nextPageToken; + protected $userRolesType = 'Google_Service_Dfareporting_UserRole'; + protected $userRolesDataType = 'array'; + + + public function setKind($kind) + { + $this->kind = $kind; + } + public function getKind() + { + return $this->kind; + } + public function setNextPageToken($nextPageToken) + { + $this->nextPageToken = $nextPageToken; + } + public function getNextPageToken() + { + return $this->nextPageToken; + } + public function setUserRoles($userRoles) + { + $this->userRoles = $userRoles; + } + public function getUserRoles() + { + return $this->userRoles; + } +} diff --git a/lib/google/src/Google/Service/Directory.php b/lib/google/src/Google/Service/Directory.php index fd21860ce9a..9d8629454ce 100644 --- a/lib/google/src/Google/Service/Directory.php +++ b/lib/google/src/Google/Service/Directory.php @@ -115,6 +115,7 @@ class Google_Service_Directory extends Google_Service public function __construct(Google_Client $client) { parent::__construct($client); + $this->rootUrl = 'https://www.googleapis.com/'; $this->servicePath = 'admin/directory/v1/'; $this->version = 'directory_v1'; $this->serviceName = 'admin'; @@ -1936,7 +1937,7 @@ class Google_Service_Directory_Orgunits_Resource extends Google_Service_Resource * Remove Organization Unit (orgunits.delete) * * @param string $customerId Immutable id of the Google Apps account - * @param string $orgUnitPath Full path of the organization unit + * @param string $orgUnitPath Full path of the organization unit or its Id * @param array $optParams Optional parameters. */ public function delete($customerId, $orgUnitPath, $optParams = array()) @@ -1950,7 +1951,7 @@ class Google_Service_Directory_Orgunits_Resource extends Google_Service_Resource * Retrieve Organization Unit (orgunits.get) * * @param string $customerId Immutable id of the Google Apps account - * @param string $orgUnitPath Full path of the organization unit + * @param string $orgUnitPath Full path of the organization unit or its Id * @param array $optParams Optional parameters. * @return Google_Service_Directory_OrgUnit */ @@ -1984,7 +1985,8 @@ class Google_Service_Directory_Orgunits_Resource extends Google_Service_Resource * * @opt_param string type Whether to return all sub-organizations or just * immediate children - * @opt_param string orgUnitPath the URL-encoded organization unit + * @opt_param string orgUnitPath the URL-encoded organization unit's path or its + * Id * @return Google_Service_Directory_OrgUnits */ public function listOrgunits($customerId, $optParams = array()) @@ -1999,7 +2001,7 @@ class Google_Service_Directory_Orgunits_Resource extends Google_Service_Resource * (orgunits.patch) * * @param string $customerId Immutable id of the Google Apps account - * @param string $orgUnitPath Full path of the organization unit + * @param string $orgUnitPath Full path of the organization unit or its Id * @param Google_OrgUnit $postBody * @param array $optParams Optional parameters. * @return Google_Service_Directory_OrgUnit @@ -2015,7 +2017,7 @@ class Google_Service_Directory_Orgunits_Resource extends Google_Service_Resource * Update Organization Unit (orgunits.update) * * @param string $customerId Immutable id of the Google Apps account - * @param string $orgUnitPath Full path of the organization unit + * @param string $orgUnitPath Full path of the organization unit or its Id * @param Google_OrgUnit $postBody * @param array $optParams Optional parameters. * @return Google_Service_Directory_OrgUnit @@ -2902,6 +2904,7 @@ class Google_Service_Directory_ChromeOsDevice extends Google_Collection ); protected $activeTimeRangesType = 'Google_Service_Directory_ChromeOsDeviceActiveTimeRanges'; protected $activeTimeRangesDataType = 'array'; + public $annotatedAssetId; public $annotatedLocation; public $annotatedUser; public $bootMode; @@ -2936,6 +2939,14 @@ class Google_Service_Directory_ChromeOsDevice extends Google_Collection { return $this->activeTimeRanges; } + public function setAnnotatedAssetId($annotatedAssetId) + { + $this->annotatedAssetId = $annotatedAssetId; + } + public function getAnnotatedAssetId() + { + return $this->annotatedAssetId; + } public function setAnnotatedLocation($annotatedLocation) { $this->annotatedLocation = $annotatedLocation; @@ -3978,7 +3989,9 @@ class Google_Service_Directory_OrgUnit extends Google_Model public $etag; public $kind; public $name; + public $orgUnitId; public $orgUnitPath; + public $parentOrgUnitId; public $parentOrgUnitPath; @@ -4022,6 +4035,14 @@ class Google_Service_Directory_OrgUnit extends Google_Model { return $this->name; } + public function setOrgUnitId($orgUnitId) + { + $this->orgUnitId = $orgUnitId; + } + public function getOrgUnitId() + { + return $this->orgUnitId; + } public function setOrgUnitPath($orgUnitPath) { $this->orgUnitPath = $orgUnitPath; @@ -4030,6 +4051,14 @@ class Google_Service_Directory_OrgUnit extends Google_Model { return $this->orgUnitPath; } + public function setParentOrgUnitId($parentOrgUnitId) + { + $this->parentOrgUnitId = $parentOrgUnitId; + } + public function getParentOrgUnitId() + { + return $this->parentOrgUnitId; + } public function setParentOrgUnitPath($parentOrgUnitPath) { $this->parentOrgUnitPath = $parentOrgUnitPath; @@ -4432,6 +4461,7 @@ class Google_Service_Directory_User extends Google_Collection protected $nameType = 'Google_Service_Directory_UserName'; protected $nameDataType = ''; public $nonEditableAliases; + public $notes; public $orgUnitPath; public $organizations; public $password; @@ -4440,7 +4470,9 @@ class Google_Service_Directory_User extends Google_Collection public $relations; public $suspended; public $suspensionReason; + public $thumbnailPhotoEtag; public $thumbnailPhotoUrl; + public $websites; public function setAddresses($addresses) @@ -4627,6 +4659,14 @@ class Google_Service_Directory_User extends Google_Collection { return $this->nonEditableAliases; } + public function setNotes($notes) + { + $this->notes = $notes; + } + public function getNotes() + { + return $this->notes; + } public function setOrgUnitPath($orgUnitPath) { $this->orgUnitPath = $orgUnitPath; @@ -4691,6 +4731,14 @@ class Google_Service_Directory_User extends Google_Collection { return $this->suspensionReason; } + public function setThumbnailPhotoEtag($thumbnailPhotoEtag) + { + $this->thumbnailPhotoEtag = $thumbnailPhotoEtag; + } + public function getThumbnailPhotoEtag() + { + return $this->thumbnailPhotoEtag; + } public function setThumbnailPhotoUrl($thumbnailPhotoUrl) { $this->thumbnailPhotoUrl = $thumbnailPhotoUrl; @@ -4699,6 +4747,40 @@ class Google_Service_Directory_User extends Google_Collection { return $this->thumbnailPhotoUrl; } + public function setWebsites($websites) + { + $this->websites = $websites; + } + public function getWebsites() + { + return $this->websites; + } +} + +class Google_Service_Directory_UserAbout extends Google_Model +{ + protected $internal_gapi_mappings = array( + ); + public $contentType; + public $value; + + + public function setContentType($contentType) + { + $this->contentType = $contentType; + } + public function getContentType() + { + return $this->contentType; + } + public function setValue($value) + { + $this->value = $value; + } + public function getValue() + { + return $this->value; + } } class Google_Service_Directory_UserAddress extends Google_Model @@ -5310,6 +5392,50 @@ class Google_Service_Directory_UserUndelete extends Google_Model } } +class Google_Service_Directory_UserWebsite extends Google_Model +{ + protected $internal_gapi_mappings = array( + ); + public $customType; + public $primary; + public $type; + public $value; + + + public function setCustomType($customType) + { + $this->customType = $customType; + } + public function getCustomType() + { + return $this->customType; + } + public function setPrimary($primary) + { + $this->primary = $primary; + } + public function getPrimary() + { + return $this->primary; + } + public function setType($type) + { + $this->type = $type; + } + public function getType() + { + return $this->type; + } + public function setValue($value) + { + $this->value = $value; + } + public function getValue() + { + return $this->value; + } +} + class Google_Service_Directory_Users extends Google_Collection { protected $collection_key = 'users'; diff --git a/lib/google/src/Google/Service/Dns.php b/lib/google/src/Google/Service/Dns.php index 9be97194388..5c62e189d2b 100644 --- a/lib/google/src/Google/Service/Dns.php +++ b/lib/google/src/Google/Service/Dns.php @@ -16,7 +16,7 @@ */ /** - * Service definition for Dns (v1beta1). + * Service definition for Dns (v1). * *

* The Google Cloud DNS API provides services for configuring and serving @@ -55,8 +55,9 @@ class Google_Service_Dns extends Google_Service public function __construct(Google_Client $client) { parent::__construct($client); - $this->servicePath = 'dns/v1beta1/projects/'; - $this->version = 'v1beta1'; + $this->rootUrl = 'https://www.googleapis.com/'; + $this->servicePath = 'dns/v1/projects/'; + $this->version = 'v1'; $this->serviceName = 'dns'; $this->changes = new Google_Service_Dns_Changes_Resource( @@ -601,6 +602,7 @@ class Google_Service_Dns_ManagedZone extends Google_Collection public $id; public $kind; public $name; + public $nameServerSet; public $nameServers; @@ -652,6 +654,14 @@ class Google_Service_Dns_ManagedZone extends Google_Collection { return $this->name; } + public function setNameServerSet($nameServerSet) + { + $this->nameServerSet = $nameServerSet; + } + public function getNameServerSet() + { + return $this->nameServerSet; + } public function setNameServers($nameServers) { $this->nameServers = $nameServers; diff --git a/lib/google/src/Google/Service/DoubleClickBidManager.php b/lib/google/src/Google/Service/DoubleClickBidManager.php index 9fae0094420..4191ef6e150 100644 --- a/lib/google/src/Google/Service/DoubleClickBidManager.php +++ b/lib/google/src/Google/Service/DoubleClickBidManager.php @@ -46,6 +46,7 @@ class Google_Service_DoubleClickBidManager extends Google_Service public function __construct(Google_Client $client) { parent::__construct($client); + $this->rootUrl = 'https://www.googleapis.com/'; $this->servicePath = 'doubleclickbidmanager/v1/'; $this->version = 'v1'; $this->serviceName = 'doubleclickbidmanager'; @@ -573,6 +574,7 @@ class Google_Service_DoubleClickBidManager_QueryMetadata extends Google_Collecti public $googleCloudStoragePathForLatestReport; public $googleDrivePathForLatestReport; public $latestReportRunTimeMs; + public $locale; public $reportCount; public $running; public $sendNotification; @@ -620,6 +622,14 @@ class Google_Service_DoubleClickBidManager_QueryMetadata extends Google_Collecti { return $this->latestReportRunTimeMs; } + public function setLocale($locale) + { + $this->locale = $locale; + } + public function getLocale() + { + return $this->locale; + } public function setReportCount($reportCount) { $this->reportCount = $reportCount; diff --git a/lib/google/src/Google/Service/Doubleclicksearch.php b/lib/google/src/Google/Service/Doubleclicksearch.php index 5aa30396101..a0bf15d7f9a 100644 --- a/lib/google/src/Google/Service/Doubleclicksearch.php +++ b/lib/google/src/Google/Service/Doubleclicksearch.php @@ -48,6 +48,7 @@ class Google_Service_Doubleclicksearch extends Google_Service public function __construct(Google_Client $client) { parent::__construct($client); + $this->rootUrl = 'https://www.googleapis.com/'; $this->servicePath = 'doubleclicksearch/v2/'; $this->version = 'v2'; $this->serviceName = 'doubleclicksearch'; @@ -392,7 +393,7 @@ class Google_Service_Doubleclicksearch_Reports_Resource extends Google_Service_R } /** - * Downloads a report file. (reports.getFile) + * Downloads a report file encoded in UTF-8. (reports.getFile) * * @param string $reportId ID of the report. * @param int $reportFragment The index of the report fragment to download. @@ -524,6 +525,7 @@ class Google_Service_Doubleclicksearch_Conversion extends Google_Collection public $agencyId; public $attributionModel; public $campaignId; + public $channel; public $clickId; public $conversionId; public $conversionModifiedTimestamp; @@ -535,15 +537,22 @@ class Google_Service_Doubleclicksearch_Conversion extends Google_Collection protected $customDimensionDataType = 'array'; protected $customMetricType = 'Google_Service_Doubleclicksearch_CustomMetric'; protected $customMetricDataType = 'array'; + public $deviceType; public $dsConversionId; public $engineAccountId; public $floodlightOrderId; + public $inventoryAccountId; + public $productCountry; + public $productGroupId; + public $productId; + public $productLanguage; public $quantityMillis; public $revenueMicros; public $segmentationId; public $segmentationName; public $segmentationType; public $state; + public $storeId; public $type; @@ -595,6 +604,14 @@ class Google_Service_Doubleclicksearch_Conversion extends Google_Collection { return $this->campaignId; } + public function setChannel($channel) + { + $this->channel = $channel; + } + public function getChannel() + { + return $this->channel; + } public function setClickId($clickId) { $this->clickId = $clickId; @@ -667,6 +684,14 @@ class Google_Service_Doubleclicksearch_Conversion extends Google_Collection { return $this->customMetric; } + public function setDeviceType($deviceType) + { + $this->deviceType = $deviceType; + } + public function getDeviceType() + { + return $this->deviceType; + } public function setDsConversionId($dsConversionId) { $this->dsConversionId = $dsConversionId; @@ -691,6 +716,46 @@ class Google_Service_Doubleclicksearch_Conversion extends Google_Collection { return $this->floodlightOrderId; } + public function setInventoryAccountId($inventoryAccountId) + { + $this->inventoryAccountId = $inventoryAccountId; + } + public function getInventoryAccountId() + { + return $this->inventoryAccountId; + } + public function setProductCountry($productCountry) + { + $this->productCountry = $productCountry; + } + public function getProductCountry() + { + return $this->productCountry; + } + public function setProductGroupId($productGroupId) + { + $this->productGroupId = $productGroupId; + } + public function getProductGroupId() + { + return $this->productGroupId; + } + public function setProductId($productId) + { + $this->productId = $productId; + } + public function getProductId() + { + return $this->productId; + } + public function setProductLanguage($productLanguage) + { + $this->productLanguage = $productLanguage; + } + public function getProductLanguage() + { + return $this->productLanguage; + } public function setQuantityMillis($quantityMillis) { $this->quantityMillis = $quantityMillis; @@ -739,6 +804,14 @@ class Google_Service_Doubleclicksearch_Conversion extends Google_Collection { return $this->state; } + public function setStoreId($storeId) + { + $this->storeId = $storeId; + } + public function getStoreId() + { + return $this->storeId; + } public function setType($type) { $this->type = $type; diff --git a/lib/google/src/Google/Service/Drive.php b/lib/google/src/Google/Service/Drive.php index 6c39727472c..e30a33128ed 100644 --- a/lib/google/src/Google/Service/Drive.php +++ b/lib/google/src/Google/Service/Drive.php @@ -30,7 +30,7 @@ */ class Google_Service_Drive extends Google_Service { - /** View and manage the files and documents in your Google Drive. */ + /** View and manage the files in your Google Drive. */ const DRIVE = "https://www.googleapis.com/auth/drive"; /** View and manage its own configuration data in your Google Drive. */ @@ -39,13 +39,19 @@ class Google_Service_Drive extends Google_Service /** View your Google Drive apps. */ const DRIVE_APPS_READONLY = "https://www.googleapis.com/auth/drive.apps.readonly"; - /** View and manage Google Drive files that you have opened or created with this app. */ + /** View and manage Google Drive files and folders that you have opened or created with this app. */ const DRIVE_FILE = "https://www.googleapis.com/auth/drive.file"; - /** View metadata for files and documents in your Google Drive. */ + /** View and manage metadata of files in your Google Drive. */ + const DRIVE_METADATA = + "https://www.googleapis.com/auth/drive.metadata"; + /** View metadata for files in your Google Drive. */ const DRIVE_METADATA_READONLY = "https://www.googleapis.com/auth/drive.metadata.readonly"; - /** View the files and documents in your Google Drive. */ + /** View the photos, videos and albums in your Google Photos. */ + const DRIVE_PHOTOS_READONLY = + "https://www.googleapis.com/auth/drive.photos.readonly"; + /** View the files in your Google Drive. */ const DRIVE_READONLY = "https://www.googleapis.com/auth/drive.readonly"; /** Modify your Google Apps Script scripts' behavior. */ @@ -75,6 +81,7 @@ class Google_Service_Drive extends Google_Service public function __construct(Google_Client $client) { parent::__construct($client); + $this->rootUrl = 'https://www.googleapis.com/'; $this->servicePath = 'drive/v2/'; $this->version = 'v2'; $this->serviceName = 'drive'; @@ -167,10 +174,6 @@ class Google_Service_Drive extends Google_Service 'location' => 'query', 'type' => 'boolean', ), - 'startChangeId' => array( - 'location' => 'query', - 'type' => 'string', - ), 'includeDeleted' => array( 'location' => 'query', 'type' => 'boolean', @@ -183,6 +186,14 @@ class Google_Service_Drive extends Google_Service 'location' => 'query', 'type' => 'string', ), + 'spaces' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'startChangeId' => array( + 'location' => 'query', + 'type' => 'string', + ), ), ),'watch' => array( 'path' => 'changes/watch', @@ -192,10 +203,6 @@ class Google_Service_Drive extends Google_Service 'location' => 'query', 'type' => 'boolean', ), - 'startChangeId' => array( - 'location' => 'query', - 'type' => 'string', - ), 'includeDeleted' => array( 'location' => 'query', 'type' => 'boolean', @@ -208,6 +215,14 @@ class Google_Service_Drive extends Google_Service 'location' => 'query', 'type' => 'string', ), + 'spaces' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'startChangeId' => array( + 'location' => 'query', + 'type' => 'string', + ), ), ), ) @@ -282,7 +297,7 @@ class Google_Service_Drive extends Google_Service 'type' => 'string', 'required' => true, ), - 'q' => array( + 'orderBy' => array( 'location' => 'query', 'type' => 'string', ), @@ -290,6 +305,10 @@ class Google_Service_Drive extends Google_Service 'location' => 'query', 'type' => 'string', ), + 'q' => array( + 'location' => 'query', + 'type' => 'string', + ), 'maxResults' => array( 'location' => 'query', 'type' => 'integer', @@ -467,6 +486,19 @@ class Google_Service_Drive extends Google_Service 'path' => 'files/trash', 'httpMethod' => 'DELETE', 'parameters' => array(), + ),'generateIds' => array( + 'path' => 'files/generateIds', + 'httpMethod' => 'GET', + 'parameters' => array( + 'maxResults' => array( + 'location' => 'query', + 'type' => 'integer', + ), + 'space' => array( + 'location' => 'query', + 'type' => 'string', + ), + ), ),'get' => array( 'path' => 'files/{fileId}', 'httpMethod' => 'GET', @@ -484,6 +516,10 @@ class Google_Service_Drive extends Google_Service 'location' => 'query', 'type' => 'boolean', ), + 'revisionId' => array( + 'location' => 'query', + 'type' => 'string', + ), 'projection' => array( 'location' => 'query', 'type' => 'string', @@ -530,15 +566,7 @@ class Google_Service_Drive extends Google_Service 'path' => 'files', 'httpMethod' => 'GET', 'parameters' => array( - 'q' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'pageToken' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'corpus' => array( + 'orderBy' => array( 'location' => 'query', 'type' => 'string', ), @@ -550,6 +578,22 @@ class Google_Service_Drive extends Google_Service 'location' => 'query', 'type' => 'integer', ), + 'q' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'pageToken' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'spaces' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'corpus' => array( + 'location' => 'query', + 'type' => 'string', + ), ), ),'patch' => array( 'path' => 'files/{fileId}', @@ -564,23 +608,27 @@ class Google_Service_Drive extends Google_Service 'location' => 'query', 'type' => 'string', ), - 'updateViewedDate' => array( + 'modifiedDateBehavior' => array( 'location' => 'query', - 'type' => 'boolean', + 'type' => 'string', ), 'removeParents' => array( 'location' => 'query', 'type' => 'string', ), + 'updateViewedDate' => array( + 'location' => 'query', + 'type' => 'boolean', + ), 'setModifiedDate' => array( 'location' => 'query', 'type' => 'boolean', ), - 'convert' => array( + 'useContentAsIndexableText' => array( 'location' => 'query', 'type' => 'boolean', ), - 'useContentAsIndexableText' => array( + 'convert' => array( 'location' => 'query', 'type' => 'boolean', ), @@ -652,23 +700,27 @@ class Google_Service_Drive extends Google_Service 'location' => 'query', 'type' => 'string', ), - 'updateViewedDate' => array( + 'modifiedDateBehavior' => array( 'location' => 'query', - 'type' => 'boolean', + 'type' => 'string', ), 'removeParents' => array( 'location' => 'query', 'type' => 'string', ), + 'updateViewedDate' => array( + 'location' => 'query', + 'type' => 'boolean', + ), 'setModifiedDate' => array( 'location' => 'query', 'type' => 'boolean', ), - 'convert' => array( + 'useContentAsIndexableText' => array( 'location' => 'query', 'type' => 'boolean', ), - 'useContentAsIndexableText' => array( + 'convert' => array( 'location' => 'query', 'type' => 'boolean', ), @@ -714,6 +766,10 @@ class Google_Service_Drive extends Google_Service 'location' => 'query', 'type' => 'boolean', ), + 'revisionId' => array( + 'location' => 'query', + 'type' => 'string', + ), 'projection' => array( 'location' => 'query', 'type' => 'string', @@ -1386,10 +1442,12 @@ class Google_Service_Drive_Changes_Resource extends Google_Service_Resource * has opened and shared files. When set to false, the list only includes owned * files plus any shared or public files the user has explicitly added to a * folder they own. - * @opt_param string startChangeId Change ID to start listing changes from. * @opt_param bool includeDeleted Whether to include deleted items. * @opt_param int maxResults Maximum number of changes to return. * @opt_param string pageToken Page token for changes. + * @opt_param string spaces A comma-separated list of spaces to query. Supported + * values are 'drive', 'appDataFolder' and 'photos'. + * @opt_param string startChangeId Change ID to start listing changes from. * @return Google_Service_Drive_ChangeList */ public function listChanges($optParams = array()) @@ -1409,10 +1467,12 @@ class Google_Service_Drive_Changes_Resource extends Google_Service_Resource * has opened and shared files. When set to false, the list only includes owned * files plus any shared or public files the user has explicitly added to a * folder they own. - * @opt_param string startChangeId Change ID to start listing changes from. * @opt_param bool includeDeleted Whether to include deleted items. * @opt_param int maxResults Maximum number of changes to return. * @opt_param string pageToken Page token for changes. + * @opt_param string spaces A comma-separated list of spaces to query. Supported + * values are 'drive', 'appDataFolder' and 'photos'. + * @opt_param string startChangeId Change ID to start listing changes from. * @return Google_Service_Drive_Channel */ public function watch(Google_Service_Drive_Channel $postBody, $optParams = array()) @@ -1509,8 +1569,15 @@ class Google_Service_Drive_Children_Resource extends Google_Service_Resource * @param string $folderId The ID of the folder. * @param array $optParams Optional parameters. * - * @opt_param string q Query string for searching children. + * @opt_param string orderBy A comma-separated list of sort keys. Valid keys are + * 'createdDate', 'folder', 'lastViewedByMeDate', 'modifiedByMeDate', + * 'modifiedDate', 'quotaBytesUsed', 'recency', 'sharedWithMeDate', 'starred', + * and 'title'. Each key sorts ascending by default, but may be reversed with + * the 'desc' modifier. Example usage: ?orderBy=folder,modifiedDate desc,title. + * Please note that there is a current limitation for users with approximately + * one million files in which the requested sort order is ignored. * @opt_param string pageToken Page token for children. + * @opt_param string q Query string for searching children. * @opt_param int maxResults Maximum number of children to return. * @return Google_Service_Drive_ChildList */ @@ -1659,7 +1726,7 @@ class Google_Service_Drive_Files_Resource extends Google_Service_Resource * @opt_param bool convert Whether to convert this file to the corresponding * Google Docs format. * @opt_param string ocrLanguage If ocr is true, hints at the language to use. - * Valid values are ISO 639-1 codes. + * Valid values are BCP 47 codes. * @opt_param string visibility The visibility of the new file. This parameter * is only relevant when the source is not a native Google Doc and * convert=false. @@ -1679,7 +1746,8 @@ class Google_Service_Drive_Files_Resource extends Google_Service_Resource } /** - * Permanently deletes a file by ID. Skips the trash. (files.delete) + * Permanently deletes a file by ID. Skips the trash. The currently + * authenticated user must own the file. (files.delete) * * @param string $fileId The ID of the file to delete. * @param array $optParams Optional parameters. @@ -1703,6 +1771,24 @@ class Google_Service_Drive_Files_Resource extends Google_Service_Resource return $this->call('emptyTrash', array($params)); } + /** + * Generates a set of file IDs which can be provided in insert requests. + * (files.generateIds) + * + * @param array $optParams Optional parameters. + * + * @opt_param int maxResults Maximum number of IDs to return. + * @opt_param string space The space in which the IDs can be used to create new + * files. Supported values are 'drive' and 'appDataFolder'. + * @return Google_Service_Drive_GeneratedIds + */ + public function generateIds($optParams = array()) + { + $params = array(); + $params = array_merge($params, $optParams); + return $this->call('generateIds', array($params), "Google_Service_Drive_GeneratedIds"); + } + /** * Gets a file's metadata by ID. (files.get) * @@ -1713,6 +1799,8 @@ class Google_Service_Drive_Files_Resource extends Google_Service_Resource * of downloading known malware or other abusive files. * @opt_param bool updateViewedDate Whether to update the view date after * successfully retrieving the file. + * @opt_param string revisionId Specifies the Revision ID that should be + * downloaded. Ignored unless alt=media is specified. * @opt_param string projection This parameter is deprecated and has no * function. * @return Google_Service_Drive_DriveFile @@ -1735,7 +1823,7 @@ class Google_Service_Drive_Files_Resource extends Google_Service_Resource * @opt_param bool useContentAsIndexableText Whether to use the content as * indexable text. * @opt_param string ocrLanguage If ocr is true, hints at the language to use. - * Valid values are ISO 639-1 codes. + * Valid values are BCP 47 codes. * @opt_param string visibility The visibility of the new file. This parameter * is only relevant when convert=false. * @opt_param bool pinned Whether to pin the head revision of the uploaded file. @@ -1758,13 +1846,22 @@ class Google_Service_Drive_Files_Resource extends Google_Service_Resource * * @param array $optParams Optional parameters. * - * @opt_param string q Query string for searching files. - * @opt_param string pageToken Page token for files. - * @opt_param string corpus The body of items (files/documents) to which the - * query applies. + * @opt_param string orderBy A comma-separated list of sort keys. Valid keys are + * 'createdDate', 'folder', 'lastViewedByMeDate', 'modifiedByMeDate', + * 'modifiedDate', 'quotaBytesUsed', 'recency', 'sharedWithMeDate', 'starred', + * and 'title'. Each key sorts ascending by default, but may be reversed with + * the 'desc' modifier. Example usage: ?orderBy=folder,modifiedDate desc,title. + * Please note that there is a current limitation for users with approximately + * one million files in which the requested sort order is ignored. * @opt_param string projection This parameter is deprecated and has no * function. * @opt_param int maxResults Maximum number of files to return. + * @opt_param string q Query string for searching files. + * @opt_param string pageToken Page token for files. + * @opt_param string spaces A comma-separated list of spaces to query. Supported + * values are 'drive', 'appDataFolder' and 'photos'. + * @opt_param string corpus The body of items (files/documents) to which the + * query applies. * @return Google_Service_Drive_FileList */ public function listFiles($optParams = array()) @@ -1783,24 +1880,27 @@ class Google_Service_Drive_Files_Resource extends Google_Service_Resource * @param array $optParams Optional parameters. * * @opt_param string addParents Comma-separated list of parent IDs to add. + * @opt_param string modifiedDateBehavior Determines the behavior in which + * modifiedDate is updated. This overrides setModifiedDate. + * @opt_param string removeParents Comma-separated list of parent IDs to remove. * @opt_param bool updateViewedDate Whether to update the view date after * successfully updating the file. - * @opt_param string removeParents Comma-separated list of parent IDs to remove. * @opt_param bool setModifiedDate Whether to set the modified date with the * supplied modified date. - * @opt_param bool convert Whether to convert this file to the corresponding - * Google Docs format. * @opt_param bool useContentAsIndexableText Whether to use the content as * indexable text. + * @opt_param bool convert This parameter is deprecated and has no function. * @opt_param string ocrLanguage If ocr is true, hints at the language to use. - * Valid values are ISO 639-1 codes. + * Valid values are BCP 47 codes. * @opt_param bool pinned Whether to pin the new revision. A file can have a * maximum of 200 pinned revisions. * @opt_param bool newRevision Whether a blob upload should create a new * revision. If false, the blob data in the current head revision is replaced. * If true or not set, a new blob is created as head revision, and previous - * revisions are preserved (causing increased use of the user's data storage - * quota). + * unpinned revisions are preserved for a short period of time. Pinned revisions + * are stored indefinitely, using additional storage quota, up to a maximum of + * 200 revisions. For details on how revisions are retained, see the Drive Help + * Center. * @opt_param bool ocr Whether to attempt OCR on .jpg, .png, .gif, or .pdf * uploads. * @opt_param string timedTextLanguage The language of the timed text. @@ -1829,7 +1929,8 @@ class Google_Service_Drive_Files_Resource extends Google_Service_Resource } /** - * Moves a file to the trash. (files.trash) + * Moves a file to the trash. The currently authenticated user must own the + * file. (files.trash) * * @param string $fileId The ID of the file to trash. * @param array $optParams Optional parameters. @@ -1864,24 +1965,27 @@ class Google_Service_Drive_Files_Resource extends Google_Service_Resource * @param array $optParams Optional parameters. * * @opt_param string addParents Comma-separated list of parent IDs to add. + * @opt_param string modifiedDateBehavior Determines the behavior in which + * modifiedDate is updated. This overrides setModifiedDate. + * @opt_param string removeParents Comma-separated list of parent IDs to remove. * @opt_param bool updateViewedDate Whether to update the view date after * successfully updating the file. - * @opt_param string removeParents Comma-separated list of parent IDs to remove. * @opt_param bool setModifiedDate Whether to set the modified date with the * supplied modified date. - * @opt_param bool convert Whether to convert this file to the corresponding - * Google Docs format. * @opt_param bool useContentAsIndexableText Whether to use the content as * indexable text. + * @opt_param bool convert This parameter is deprecated and has no function. * @opt_param string ocrLanguage If ocr is true, hints at the language to use. - * Valid values are ISO 639-1 codes. + * Valid values are BCP 47 codes. * @opt_param bool pinned Whether to pin the new revision. A file can have a * maximum of 200 pinned revisions. * @opt_param bool newRevision Whether a blob upload should create a new * revision. If false, the blob data in the current head revision is replaced. * If true or not set, a new blob is created as head revision, and previous - * revisions are preserved (causing increased use of the user's data storage - * quota). + * unpinned revisions are preserved for a short period of time. Pinned revisions + * are stored indefinitely, using additional storage quota, up to a maximum of + * 200 revisions. For details on how revisions are retained, see the Drive Help + * Center. * @opt_param bool ocr Whether to attempt OCR on .jpg, .png, .gif, or .pdf * uploads. * @opt_param string timedTextLanguage The language of the timed text. @@ -1906,6 +2010,8 @@ class Google_Service_Drive_Files_Resource extends Google_Service_Resource * of downloading known malware or other abusive files. * @opt_param bool updateViewedDate Whether to update the view date after * successfully retrieving the file. + * @opt_param string revisionId Specifies the Revision ID that should be + * downloaded. Ignored unless alt=media is specified. * @opt_param string projection This parameter is deprecated and has no * function. * @return Google_Service_Drive_Channel @@ -2086,8 +2192,9 @@ class Google_Service_Drive_Permissions_Resource extends Google_Service_Resource * @param Google_Permission $postBody * @param array $optParams Optional parameters. * - * @opt_param bool transferOwnership Whether changing a role to 'owner' should - * also downgrade the current owners to writers. + * @opt_param bool transferOwnership Whether changing a role to 'owner' + * downgrades the current owners to writers. Does nothing if the specified role + * is not 'owner'. * @return Google_Service_Drive_Permission */ public function patch($fileId, $permissionId, Google_Service_Drive_Permission $postBody, $optParams = array()) @@ -2105,8 +2212,9 @@ class Google_Service_Drive_Permissions_Resource extends Google_Service_Resource * @param Google_Permission $postBody * @param array $optParams Optional parameters. * - * @opt_param bool transferOwnership Whether changing a role to 'owner' should - * also downgrade the current owners to writers. + * @opt_param bool transferOwnership Whether changing a role to 'owner' + * downgrades the current owners to writers. Does nothing if the specified role + * is not 'owner'. * @return Google_Service_Drive_Permission */ public function update($fileId, $permissionId, Google_Service_Drive_Permission $postBody, $optParams = array()) @@ -2503,6 +2611,7 @@ class Google_Service_Drive_About extends Google_Collection protected $exportFormatsDataType = 'array'; protected $featuresType = 'Google_Service_Drive_AboutFeatures'; protected $featuresDataType = 'array'; + public $folderColorPalette; protected $importFormatsType = 'Google_Service_Drive_AboutImportFormats'; protected $importFormatsDataType = 'array'; public $isCurrentAppInstalled; @@ -2567,6 +2676,14 @@ class Google_Service_Drive_About extends Google_Collection { return $this->features; } + public function setFolderColorPalette($folderColorPalette) + { + $this->folderColorPalette = $folderColorPalette; + } + public function getFolderColorPalette() + { + return $this->folderColorPalette; + } public function setImportFormats($importFormats) { $this->importFormats = $importFormats; @@ -3946,11 +4063,12 @@ class Google_Service_Drive_CommentReplyList extends Google_Collection class Google_Service_Drive_DriveFile extends Google_Collection { - protected $collection_key = 'properties'; + protected $collection_key = 'spaces'; protected $internal_gapi_mappings = array( ); public $alternateLink; public $appDataContents; + public $canComment; public $copyable; public $createdDate; public $defaultOpenWithLink; @@ -3963,6 +4081,8 @@ class Google_Service_Drive_DriveFile extends Google_Collection public $exportLinks; public $fileExtension; public $fileSize; + public $folderColorRgb; + public $fullFileExtension; public $headRevisionId; public $iconLink; public $id; @@ -3984,6 +4104,7 @@ class Google_Service_Drive_DriveFile extends Google_Collection public $modifiedDate; public $openWithLinks; public $originalFilename; + public $ownedByMe; public $ownerNames; protected $ownersType = 'Google_Service_Drive_User'; protected $ownersDataType = 'array'; @@ -3995,10 +4116,12 @@ class Google_Service_Drive_DriveFile extends Google_Collection protected $propertiesDataType = 'array'; public $quotaBytesUsed; public $selfLink; + public $shareable; public $shared; public $sharedWithMeDate; protected $sharingUserType = 'Google_Service_Drive_User'; protected $sharingUserDataType = ''; + public $spaces; protected $thumbnailType = 'Google_Service_Drive_DriveFileThumbnail'; protected $thumbnailDataType = ''; public $thumbnailLink; @@ -4029,6 +4152,14 @@ class Google_Service_Drive_DriveFile extends Google_Collection { return $this->appDataContents; } + public function setCanComment($canComment) + { + $this->canComment = $canComment; + } + public function getCanComment() + { + return $this->canComment; + } public function setCopyable($copyable) { $this->copyable = $copyable; @@ -4125,6 +4256,22 @@ class Google_Service_Drive_DriveFile extends Google_Collection { return $this->fileSize; } + public function setFolderColorRgb($folderColorRgb) + { + $this->folderColorRgb = $folderColorRgb; + } + public function getFolderColorRgb() + { + return $this->folderColorRgb; + } + public function setFullFileExtension($fullFileExtension) + { + $this->fullFileExtension = $fullFileExtension; + } + public function getFullFileExtension() + { + return $this->fullFileExtension; + } public function setHeadRevisionId($headRevisionId) { $this->headRevisionId = $headRevisionId; @@ -4261,6 +4408,14 @@ class Google_Service_Drive_DriveFile extends Google_Collection { return $this->originalFilename; } + public function setOwnedByMe($ownedByMe) + { + $this->ownedByMe = $ownedByMe; + } + public function getOwnedByMe() + { + return $this->ownedByMe; + } public function setOwnerNames($ownerNames) { $this->ownerNames = $ownerNames; @@ -4317,6 +4472,14 @@ class Google_Service_Drive_DriveFile extends Google_Collection { return $this->selfLink; } + public function setShareable($shareable) + { + $this->shareable = $shareable; + } + public function getShareable() + { + return $this->shareable; + } public function setShared($shared) { $this->shared = $shared; @@ -4341,6 +4504,14 @@ class Google_Service_Drive_DriveFile extends Google_Collection { return $this->sharingUser; } + public function setSpaces($spaces) + { + $this->spaces = $spaces; + } + public function getSpaces() + { + return $this->spaces; + } public function setThumbnail(Google_Service_Drive_DriveFileThumbnail $thumbnail) { $this->thumbnail = $thumbnail; @@ -4851,6 +5022,42 @@ class Google_Service_Drive_FileList extends Google_Collection } } +class Google_Service_Drive_GeneratedIds extends Google_Collection +{ + protected $collection_key = 'ids'; + protected $internal_gapi_mappings = array( + ); + public $ids; + public $kind; + public $space; + + + public function setIds($ids) + { + $this->ids = $ids; + } + public function getIds() + { + return $this->ids; + } + public function setKind($kind) + { + $this->kind = $kind; + } + public function getKind() + { + return $this->kind; + } + public function setSpace($space) + { + $this->space = $space; + } + public function getSpace() + { + return $this->space; + } +} + class Google_Service_Drive_ParentList extends Google_Collection { protected $collection_key = 'items'; diff --git a/lib/google/src/Google/Service/Exception.php b/lib/google/src/Google/Service/Exception.php index 65c1fccc60d..65c945b73d1 100644 --- a/lib/google/src/Google/Service/Exception.php +++ b/lib/google/src/Google/Service/Exception.php @@ -1,8 +1,25 @@ = 0) { parent::__construct($message, $code, $previous); @@ -31,6 +56,10 @@ class Google_Service_Exception extends Google_Exception } $this->errors = $errors; + + if (is_array($retryMap)) { + $this->retryMap = $retryMap; + } } /** @@ -50,4 +79,27 @@ class Google_Service_Exception extends Google_Exception { return $this->errors; } + + /** + * Gets the number of times the associated task can be retried. + * + * NOTE: -1 is returned if the task can be retried indefinitely + * + * @return integer + */ + public function allowedRetries() + { + if (isset($this->retryMap[$this->code])) { + return $this->retryMap[$this->code]; + } + + $errors = $this->getErrors(); + + if (!empty($errors) && isset($errors[0]['reason']) && + isset($this->retryMap[$errors[0]['reason']])) { + return $this->retryMap[$errors[0]['reason']]; + } + + return 0; + } } diff --git a/lib/google/src/Google/Service/Fitness.php b/lib/google/src/Google/Service/Fitness.php index a0792f622a5..51352847873 100644 --- a/lib/google/src/Google/Service/Fitness.php +++ b/lib/google/src/Google/Service/Fitness.php @@ -51,6 +51,7 @@ class Google_Service_Fitness extends Google_Service public $users_dataSources; public $users_dataSources_datasets; + public $users_dataset; public $users_sessions; @@ -62,6 +63,7 @@ class Google_Service_Fitness extends Google_Service public function __construct(Google_Client $client) { parent::__construct($client); + $this->rootUrl = 'https://www.googleapis.com/'; $this->servicePath = 'fitness/v1/users/'; $this->version = 'v1'; $this->serviceName = 'fitness'; @@ -82,6 +84,21 @@ class Google_Service_Fitness extends Google_Service 'required' => true, ), ), + ),'delete' => array( + 'path' => '{userId}/dataSources/{dataSourceId}', + 'httpMethod' => 'DELETE', + 'parameters' => array( + 'userId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'dataSourceId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), ),'get' => array( 'path' => '{userId}/dataSources/{dataSourceId}', 'httpMethod' => 'GET', @@ -236,6 +253,26 @@ class Google_Service_Fitness extends Google_Service ) ) ); + $this->users_dataset = new Google_Service_Fitness_UsersDataset_Resource( + $this, + $this->serviceName, + 'dataset', + array( + 'methods' => array( + 'aggregate' => array( + 'path' => '{userId}/dataset:aggregate', + 'httpMethod' => 'POST', + 'parameters' => array( + 'userId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ), + ) + ) + ); $this->users_sessions = new Google_Service_Fitness_UsersSessions_Resource( $this, $this->serviceName, @@ -360,6 +397,23 @@ class Google_Service_Fitness_UsersDataSources_Resource extends Google_Service_Re return $this->call('create', array($params), "Google_Service_Fitness_DataSource"); } + /** + * Delete the data source if there are no datapoints associated with it + * (dataSources.delete) + * + * @param string $userId Retrieve a data source for the person identified. Use + * me to indicate the authenticated user. Only me is supported at this time. + * @param string $dataSourceId The data stream ID of the data source to delete. + * @param array $optParams Optional parameters. + * @return Google_Service_Fitness_DataSource + */ + public function delete($userId, $dataSourceId, $optParams = array()) + { + $params = array('userId' => $userId, 'dataSourceId' => $dataSourceId); + $params = array_merge($params, $optParams); + return $this->call('delete', array($params), "Google_Service_Fitness_DataSource"); + } + /** * Returns a data source identified by a data stream ID. (dataSources.get) * @@ -549,6 +603,32 @@ class Google_Service_Fitness_UsersDataSourcesDatasets_Resource extends Google_Se return $this->call('patch', array($params), "Google_Service_Fitness_Dataset"); } } +/** + * The "dataset" collection of methods. + * Typical usage is: + * + * $fitnessService = new Google_Service_Fitness(...); + * $dataset = $fitnessService->dataset; + * + */ +class Google_Service_Fitness_UsersDataset_Resource extends Google_Service_Resource +{ + + /** + * (dataset.aggregate) + * + * @param string $userId + * @param Google_AggregateRequest $postBody + * @param array $optParams Optional parameters. + * @return Google_Service_Fitness_AggregateResponse + */ + public function aggregate($userId, Google_Service_Fitness_AggregateRequest $postBody, $optParams = array()) + { + $params = array('userId' => $userId, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('aggregate', array($params), "Google_Service_Fitness_AggregateResponse"); + } +} /** * The "sessions" collection of methods. * Typical usage is: @@ -628,6 +708,211 @@ class Google_Service_Fitness_UsersSessions_Resource extends Google_Service_Resou +class Google_Service_Fitness_AggregateBucket extends Google_Collection +{ + protected $collection_key = 'dataset'; + protected $internal_gapi_mappings = array( + ); + public $activity; + protected $datasetType = 'Google_Service_Fitness_Dataset'; + protected $datasetDataType = 'array'; + public $endTimeMillis; + protected $sessionType = 'Google_Service_Fitness_Session'; + protected $sessionDataType = ''; + public $startTimeMillis; + public $type; + + + public function setActivity($activity) + { + $this->activity = $activity; + } + public function getActivity() + { + return $this->activity; + } + public function setDataset($dataset) + { + $this->dataset = $dataset; + } + public function getDataset() + { + return $this->dataset; + } + public function setEndTimeMillis($endTimeMillis) + { + $this->endTimeMillis = $endTimeMillis; + } + public function getEndTimeMillis() + { + return $this->endTimeMillis; + } + public function setSession(Google_Service_Fitness_Session $session) + { + $this->session = $session; + } + public function getSession() + { + return $this->session; + } + public function setStartTimeMillis($startTimeMillis) + { + $this->startTimeMillis = $startTimeMillis; + } + public function getStartTimeMillis() + { + return $this->startTimeMillis; + } + public function setType($type) + { + $this->type = $type; + } + public function getType() + { + return $this->type; + } +} + +class Google_Service_Fitness_AggregateBy extends Google_Model +{ + protected $internal_gapi_mappings = array( + ); + public $dataSourceId; + public $dataTypeName; + public $outputDataSourceId; + public $outputDataTypeName; + + + public function setDataSourceId($dataSourceId) + { + $this->dataSourceId = $dataSourceId; + } + public function getDataSourceId() + { + return $this->dataSourceId; + } + public function setDataTypeName($dataTypeName) + { + $this->dataTypeName = $dataTypeName; + } + public function getDataTypeName() + { + return $this->dataTypeName; + } + public function setOutputDataSourceId($outputDataSourceId) + { + $this->outputDataSourceId = $outputDataSourceId; + } + public function getOutputDataSourceId() + { + return $this->outputDataSourceId; + } + public function setOutputDataTypeName($outputDataTypeName) + { + $this->outputDataTypeName = $outputDataTypeName; + } + public function getOutputDataTypeName() + { + return $this->outputDataTypeName; + } +} + +class Google_Service_Fitness_AggregateRequest extends Google_Collection +{ + protected $collection_key = 'aggregateBy'; + protected $internal_gapi_mappings = array( + ); + protected $aggregateByType = 'Google_Service_Fitness_AggregateBy'; + protected $aggregateByDataType = 'array'; + protected $bucketByActivitySegmentType = 'Google_Service_Fitness_BucketByActivity'; + protected $bucketByActivitySegmentDataType = ''; + protected $bucketByActivityTypeType = 'Google_Service_Fitness_BucketByActivity'; + protected $bucketByActivityTypeDataType = ''; + protected $bucketBySessionType = 'Google_Service_Fitness_BucketBySession'; + protected $bucketBySessionDataType = ''; + protected $bucketByTimeType = 'Google_Service_Fitness_BucketByTime'; + protected $bucketByTimeDataType = ''; + public $endTimeMillis; + public $startTimeMillis; + + + public function setAggregateBy($aggregateBy) + { + $this->aggregateBy = $aggregateBy; + } + public function getAggregateBy() + { + return $this->aggregateBy; + } + public function setBucketByActivitySegment(Google_Service_Fitness_BucketByActivity $bucketByActivitySegment) + { + $this->bucketByActivitySegment = $bucketByActivitySegment; + } + public function getBucketByActivitySegment() + { + return $this->bucketByActivitySegment; + } + public function setBucketByActivityType(Google_Service_Fitness_BucketByActivity $bucketByActivityType) + { + $this->bucketByActivityType = $bucketByActivityType; + } + public function getBucketByActivityType() + { + return $this->bucketByActivityType; + } + public function setBucketBySession(Google_Service_Fitness_BucketBySession $bucketBySession) + { + $this->bucketBySession = $bucketBySession; + } + public function getBucketBySession() + { + return $this->bucketBySession; + } + public function setBucketByTime(Google_Service_Fitness_BucketByTime $bucketByTime) + { + $this->bucketByTime = $bucketByTime; + } + public function getBucketByTime() + { + return $this->bucketByTime; + } + public function setEndTimeMillis($endTimeMillis) + { + $this->endTimeMillis = $endTimeMillis; + } + public function getEndTimeMillis() + { + return $this->endTimeMillis; + } + public function setStartTimeMillis($startTimeMillis) + { + $this->startTimeMillis = $startTimeMillis; + } + public function getStartTimeMillis() + { + return $this->startTimeMillis; + } +} + +class Google_Service_Fitness_AggregateResponse extends Google_Collection +{ + protected $collection_key = 'bucket'; + protected $internal_gapi_mappings = array( + ); + protected $bucketType = 'Google_Service_Fitness_AggregateBucket'; + protected $bucketDataType = 'array'; + + + public function setBucket($bucket) + { + $this->bucket = $bucket; + } + public function getBucket() + { + return $this->bucket; + } +} + class Google_Service_Fitness_Application extends Google_Model { protected $internal_gapi_mappings = array( @@ -672,6 +957,66 @@ class Google_Service_Fitness_Application extends Google_Model } } +class Google_Service_Fitness_BucketByActivity extends Google_Model +{ + protected $internal_gapi_mappings = array( + ); + public $activityDataSourceId; + public $minDurationMillis; + + + public function setActivityDataSourceId($activityDataSourceId) + { + $this->activityDataSourceId = $activityDataSourceId; + } + public function getActivityDataSourceId() + { + return $this->activityDataSourceId; + } + public function setMinDurationMillis($minDurationMillis) + { + $this->minDurationMillis = $minDurationMillis; + } + public function getMinDurationMillis() + { + return $this->minDurationMillis; + } +} + +class Google_Service_Fitness_BucketBySession extends Google_Model +{ + protected $internal_gapi_mappings = array( + ); + public $minDurationMillis; + + + public function setMinDurationMillis($minDurationMillis) + { + $this->minDurationMillis = $minDurationMillis; + } + public function getMinDurationMillis() + { + return $this->minDurationMillis; + } +} + +class Google_Service_Fitness_BucketByTime extends Google_Model +{ + protected $internal_gapi_mappings = array( + ); + public $durationMillis; + + + public function setDurationMillis($durationMillis) + { + $this->durationMillis = $durationMillis; + } + public function getDurationMillis() + { + return $this->durationMillis; + } +} + class Google_Service_Fitness_DataPoint extends Google_Collection { protected $collection_key = 'value'; @@ -862,6 +1207,7 @@ class Google_Service_Fitness_DataTypeField extends Google_Model ); public $format; public $name; + public $optional; public function setFormat($format) @@ -880,6 +1226,14 @@ class Google_Service_Fitness_DataTypeField extends Google_Model { return $this->name; } + public function setOptional($optional) + { + $this->optional = $optional; + } + public function getOptional() + { + return $this->optional; + } } class Google_Service_Fitness_Dataset extends Google_Collection @@ -1051,6 +1405,7 @@ class Google_Service_Fitness_Session extends Google_Model { protected $internal_gapi_mappings = array( ); + public $activeTimeMillis; public $activityType; protected $applicationType = 'Google_Service_Fitness_Application'; protected $applicationDataType = ''; @@ -1062,6 +1417,14 @@ class Google_Service_Fitness_Session extends Google_Model public $startTimeMillis; + public function setActiveTimeMillis($activeTimeMillis) + { + $this->activeTimeMillis = $activeTimeMillis; + } + public function getActiveTimeMillis() + { + return $this->activeTimeMillis; + } public function setActivityType($activityType) { $this->activityType = $activityType; diff --git a/lib/google/src/Google/Service/Freebase.php b/lib/google/src/Google/Service/Freebase.php index 81a2c911c92..1fe07a053e5 100644 --- a/lib/google/src/Google/Service/Freebase.php +++ b/lib/google/src/Google/Service/Freebase.php @@ -43,6 +43,7 @@ class Google_Service_Freebase extends Google_Service public function __construct(Google_Client $client) { parent::__construct($client); + $this->rootUrl = 'https://www.googleapis.com/'; $this->servicePath = 'freebase/v1/'; $this->version = 'v1'; $this->serviceName = 'freebase'; diff --git a/lib/google/src/Google/Service/Fusiontables.php b/lib/google/src/Google/Service/Fusiontables.php index 4ee1497abf7..16b48288a35 100644 --- a/lib/google/src/Google/Service/Fusiontables.php +++ b/lib/google/src/Google/Service/Fusiontables.php @@ -53,6 +53,7 @@ class Google_Service_Fusiontables extends Google_Service public function __construct(Google_Client $client) { parent::__construct($client); + $this->rootUrl = 'https://www.googleapis.com/'; $this->servicePath = 'fusiontables/v2/'; $this->version = 'v2'; $this->serviceName = 'fusiontables'; @@ -642,7 +643,7 @@ class Google_Service_Fusiontables_Column_Resource extends Google_Service_Resourc { /** - * Deletes the column. (column.delete) + * Deletes the specified column. (column.delete) * * @param string $tableId Table from which the column is being deleted. * @param string $columnId Name or identifier for the column being deleted. @@ -656,7 +657,7 @@ class Google_Service_Fusiontables_Column_Resource extends Google_Service_Resourc } /** - * Retrieves a specific column by its id. (column.get) + * Retrieves a specific column by its ID. (column.get) * * @param string $tableId Table to which the column belongs. * @param string $columnId Name or identifier for the column that is being @@ -753,17 +754,17 @@ class Google_Service_Fusiontables_Query_Resource extends Google_Service_Resource { /** - * Executes an SQL SELECT/INSERT/UPDATE/DELETE/SHOW/DESCRIBE/CREATE statement. - * (query.sql) + * Executes a Fusion Tables SQL statement, which can be any of - SELECT - INSERT + * - UPDATE - DELETE - SHOW - DESCRIBE - CREATE statement. (query.sql) * - * @param string $sql An SQL SELECT/SHOW/DESCRIBE/INSERT/UPDATE/DELETE/CREATE - * statement. + * @param string $sql A Fusion Tables SQL statement, which can be any of - + * SELECT - INSERT - UPDATE - DELETE - SHOW - DESCRIBE - CREATE * @param array $optParams Optional parameters. * - * @opt_param bool typed Should typed values be returned in the (JSON) response - * -- numbers for numeric values and parsed geometries for KML values? Default - * is true. - * @opt_param bool hdrs Should column names be included (in the first row)?. + * @opt_param bool typed Whether typed values are returned in the (JSON) + * response: numbers for numeric values and parsed geometries for KML values. + * Default is true. + * @opt_param bool hdrs Whether column names are included in the first row. * Default is true. * @return Google_Service_Fusiontables_Sqlresponse */ @@ -775,15 +776,17 @@ class Google_Service_Fusiontables_Query_Resource extends Google_Service_Resource } /** - * Executes an SQL SELECT/SHOW/DESCRIBE statement. (query.sqlGet) + * Executes a SQL statement which can be any of - SELECT - SHOW - DESCRIBE + * (query.sqlGet) * - * @param string $sql An SQL SELECT/SHOW/DESCRIBE statement. + * @param string $sql A SQL statement which can be any of - SELECT - SHOW - + * DESCRIBE * @param array $optParams Optional parameters. * - * @opt_param bool typed Should typed values be returned in the (JSON) response - * -- numbers for numeric values and parsed geometries for KML values? Default - * is true. - * @opt_param bool hdrs Should column names be included (in the first row)?. + * @opt_param bool typed Whether typed values are returned in the (JSON) + * response: numbers for numeric values and parsed geometries for KML values. + * Default is true. + * @opt_param bool hdrs Whether column names are included (in the first row). * Default is true. * @return Google_Service_Fusiontables_Sqlresponse */ @@ -934,7 +937,7 @@ class Google_Service_Fusiontables_Table_Resource extends Google_Service_Resource /** * Deletes a table. (table.delete) * - * @param string $tableId ID of the table that is being deleted. + * @param string $tableId ID of the table to be deleted. * @param array $optParams Optional parameters. */ public function delete($tableId, $optParams = array()) @@ -945,9 +948,9 @@ class Google_Service_Fusiontables_Table_Resource extends Google_Service_Resource } /** - * Retrieves a specific table by its id. (table.get) + * Retrieves a specific table by its ID. (table.get) * - * @param string $tableId Identifier(ID) for the table being requested. + * @param string $tableId Identifier for the table being requested. * @param array $optParams Optional parameters. * @return Google_Service_Fusiontables_Table */ @@ -959,28 +962,24 @@ class Google_Service_Fusiontables_Table_Resource extends Google_Service_Resource } /** - * Import more rows into a table. (table.importRows) + * Imports more rows into a table. (table.importRows) * * @param string $tableId The table into which new rows are being imported. * @param array $optParams Optional parameters. * * @opt_param int startLine The index of the first line from which to start * importing, inclusive. Default is 0. - * @opt_param bool isStrict Whether the CSV must have the same number of values - * for each row. If false, rows with fewer values will be padded with empty - * values. Default is true. + * @opt_param bool isStrict Whether the imported CSV must have the same number + * of values for each row. If false, rows with fewer values will be padded with + * empty values. Default is true. * @opt_param string encoding The encoding of the content. Default is UTF-8. Use - * 'auto-detect' if you are unsure of the encoding. + * auto-detect if you are unsure of the encoding. * @opt_param string delimiter The delimiter used to separate cell values. This - * can only consist of a single character. Default is ','. - * @opt_param int endLine The index of the last line from which to start - * importing, exclusive. Thus, the number of imported lines is endLine - - * startLine. If this parameter is not provided, the file will be imported until - * the last line of the file. If endLine is negative, then the imported content - * will exclude the last endLine lines. That is, if endline is negative, no line - * will be imported whose index is greater than N + endLine where N is the - * number of lines in the file, and the number of imported lines will be N + - * endLine - startLine. + * can only consist of a single character. Default is ,. + * @opt_param int endLine The index of the line up to which data will be + * imported. Default is to import the entire file. If endLine is negative, it is + * an offset from the end of the file; the imported content will exclude the + * last endLine lines. * @return Google_Service_Fusiontables_Import */ public function importRows($tableId, $optParams = array()) @@ -991,15 +990,15 @@ class Google_Service_Fusiontables_Table_Resource extends Google_Service_Resource } /** - * Import a new table. (table.importTable) + * Imports a new table. (table.importTable) * * @param string $name The name to be assigned to the new table. * @param array $optParams Optional parameters. * * @opt_param string delimiter The delimiter used to separate cell values. This - * can only consist of a single character. Default is ','. + * can only consist of a single character. Default is ,. * @opt_param string encoding The encoding of the content. Default is UTF-8. Use - * 'auto-detect' if you are unsure of the encoding. + * auto-detect if you are unsure of the encoding. * @return Google_Service_Fusiontables_Table */ public function importTable($name, $optParams = array()) @@ -1029,9 +1028,9 @@ class Google_Service_Fusiontables_Table_Resource extends Google_Service_Resource * @param array $optParams Optional parameters. * * @opt_param string pageToken Continuation token specifying which result page - * to return. Optional. - * @opt_param string maxResults Maximum number of styles to return. Optional. - * Default is 5. + * to return. + * @opt_param string maxResults Maximum number of tables to return. Default is + * 5. * @return Google_Service_Fusiontables_TableList */ public function listTable($optParams = array()) @@ -1050,8 +1049,8 @@ class Google_Service_Fusiontables_Table_Resource extends Google_Service_Resource * @param Google_Table $postBody * @param array $optParams Optional parameters. * - * @opt_param bool replaceViewDefinition Should the view definition also be - * updated? The specified view definition replaces the existing one. Only a view + * @opt_param bool replaceViewDefinition Whether the view definition is also + * updated. The specified view definition replaces the existing one. Only a view * can be updated with a new definition. * @return Google_Service_Fusiontables_Table */ @@ -1071,18 +1070,18 @@ class Google_Service_Fusiontables_Table_Resource extends Google_Service_Resource * * @opt_param int startLine The index of the first line from which to start * importing, inclusive. Default is 0. - * @opt_param bool isStrict Whether the CSV must have the same number of column - * values for each row. If true, throws an exception if the CSV does not not - * have the same number of columns. If false, rows with fewer column values will - * be padded with empty values. Default is true. + * @opt_param bool isStrict Whether the imported CSV must have the same number + * of column values for each row. If true, throws an exception if the CSV does + * not have the same number of columns. If false, rows with fewer column values + * will be padded with empty values. Default is true. * @opt_param string encoding The encoding of the content. Default is UTF-8. Use * 'auto-detect' if you are unsure of the encoding. * @opt_param string delimiter The delimiter used to separate cell values. This - * can only consist of a single character. Default is ','. - * @opt_param int endLine The index of the last line to import, exclusive. - * 'endLine - startLine' rows will be imported. Default is to import through the - * end of the file. If endLine is negative, it is an offset from the end of the - * file; the imported content will exclude the last endLine lines. + * can only consist of a single character. Default is ,. + * @opt_param int endLine The index of the line up to which data will be + * imported. Default is to import the entire file. If endLine is negative, it is + * an offset from the end of the file; the imported content will exclude the + * last endLine lines. * @return Google_Service_Fusiontables_Task */ public function replaceRows($tableId, $optParams = array()) @@ -1100,8 +1099,8 @@ class Google_Service_Fusiontables_Table_Resource extends Google_Service_Resource * @param Google_Table $postBody * @param array $optParams Optional parameters. * - * @opt_param bool replaceViewDefinition Should the view definition also be - * updated? The specified view definition replaces the existing one. Only a view + * @opt_param bool replaceViewDefinition Whether the view definition is also + * updated. The specified view definition replaces the existing one. Only a view * can be updated with a new definition. * @return Google_Service_Fusiontables_Table */ @@ -1125,10 +1124,11 @@ class Google_Service_Fusiontables_Task_Resource extends Google_Service_Resource { /** - * Deletes the task, unless already started. (task.delete) + * Deletes a specific task by its ID, unless that task has already started + * running. (task.delete) * * @param string $tableId Table from which the task is being deleted. - * @param string $taskId + * @param string $taskId The identifier of the task to delete. * @param array $optParams Optional parameters. */ public function delete($tableId, $taskId, $optParams = array()) @@ -1139,10 +1139,10 @@ class Google_Service_Fusiontables_Task_Resource extends Google_Service_Resource } /** - * Retrieves a specific task by its id. (task.get) + * Retrieves a specific task by its ID. (task.get) * * @param string $tableId Table to which the task belongs. - * @param string $taskId + * @param string $taskId The identifier of the task to get. * @param array $optParams Optional parameters. * @return Google_Service_Fusiontables_Task */ diff --git a/lib/google/src/Google/Service/Games.php b/lib/google/src/Google/Service/Games.php index 1d467ca6e19..a41082e4b42 100644 --- a/lib/google/src/Google/Service/Games.php +++ b/lib/google/src/Google/Service/Games.php @@ -65,6 +65,7 @@ class Google_Service_Games extends Google_Service public function __construct(Google_Client $client) { parent::__construct($client); + $this->rootUrl = 'https://www.googleapis.com/'; $this->servicePath = 'games/v1/'; $this->version = 'v1'; $this->serviceName = 'games'; diff --git a/lib/google/src/Google/Service/GamesConfiguration.php b/lib/google/src/Google/Service/GamesConfiguration.php new file mode 100644 index 00000000000..a873b01984f --- /dev/null +++ b/lib/google/src/Google/Service/GamesConfiguration.php @@ -0,0 +1,1068 @@ + + * The Publishing API for Google Play Game Services.

+ * + *

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

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

- * Provides access to Genomics data.

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

* *

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

* * @author Google, Inc. */ class Google_Service_Genomics extends Google_Service { - /** View and manage your data in Google BigQuery. */ - const BIGQUERY = - "https://www.googleapis.com/auth/bigquery"; - /** Manage your data in Google Cloud Storage. */ - const DEVSTORAGE_READ_WRITE = - "https://www.googleapis.com/auth/devstorage.read_write"; - /** View and manage Genomics data. */ - const GENOMICS = - "https://www.googleapis.com/auth/genomics"; - /** View Genomics data. */ - const GENOMICS_READONLY = - "https://www.googleapis.com/auth/genomics.readonly"; - public $callsets; - public $datasets; - public $experimental_jobs; - public $jobs; - public $readgroupsets; - public $readgroupsets_coveragebuckets; - public $reads; - public $references; - public $references_bases; - public $referencesets; - public $variants; - public $variantsets; + + /** @@ -65,4163 +44,10 @@ class Google_Service_Genomics extends Google_Service public function __construct(Google_Client $client) { parent::__construct($client); - $this->servicePath = 'genomics/v1beta2/'; - $this->version = 'v1beta2'; + $this->rootUrl = 'https://genomics.googleapis.com/'; + $this->servicePath = ''; + $this->version = 'v1'; $this->serviceName = 'genomics'; - $this->callsets = new Google_Service_Genomics_Callsets_Resource( - $this, - $this->serviceName, - 'callsets', - array( - 'methods' => array( - 'create' => array( - 'path' => 'callsets', - 'httpMethod' => 'POST', - 'parameters' => array(), - ),'delete' => array( - 'path' => 'callsets/{callSetId}', - 'httpMethod' => 'DELETE', - 'parameters' => array( - 'callSetId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'get' => array( - 'path' => 'callsets/{callSetId}', - 'httpMethod' => 'GET', - 'parameters' => array( - 'callSetId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'patch' => array( - 'path' => 'callsets/{callSetId}', - 'httpMethod' => 'PATCH', - 'parameters' => array( - 'callSetId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'search' => array( - 'path' => 'callsets/search', - 'httpMethod' => 'POST', - 'parameters' => array(), - ),'update' => array( - 'path' => 'callsets/{callSetId}', - 'httpMethod' => 'PUT', - 'parameters' => array( - 'callSetId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ), - ) - ) - ); - $this->datasets = new Google_Service_Genomics_Datasets_Resource( - $this, - $this->serviceName, - 'datasets', - array( - 'methods' => array( - 'create' => array( - 'path' => 'datasets', - 'httpMethod' => 'POST', - 'parameters' => array(), - ),'delete' => array( - 'path' => 'datasets/{datasetId}', - 'httpMethod' => 'DELETE', - 'parameters' => array( - 'datasetId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'get' => array( - 'path' => 'datasets/{datasetId}', - 'httpMethod' => 'GET', - 'parameters' => array( - 'datasetId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'list' => array( - 'path' => 'datasets', - 'httpMethod' => 'GET', - 'parameters' => array( - 'pageToken' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'projectNumber' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'pageSize' => array( - 'location' => 'query', - 'type' => 'integer', - ), - ), - ),'patch' => array( - 'path' => 'datasets/{datasetId}', - 'httpMethod' => 'PATCH', - 'parameters' => array( - 'datasetId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'undelete' => array( - 'path' => 'datasets/{datasetId}/undelete', - 'httpMethod' => 'POST', - 'parameters' => array( - 'datasetId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'update' => array( - 'path' => 'datasets/{datasetId}', - 'httpMethod' => 'PUT', - 'parameters' => array( - 'datasetId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ), - ) - ) - ); - $this->experimental_jobs = new Google_Service_Genomics_ExperimentalJobs_Resource( - $this, - $this->serviceName, - 'jobs', - array( - 'methods' => array( - 'create' => array( - 'path' => 'experimental/jobs/create', - 'httpMethod' => 'POST', - 'parameters' => array(), - ), - ) - ) - ); - $this->jobs = new Google_Service_Genomics_Jobs_Resource( - $this, - $this->serviceName, - 'jobs', - array( - 'methods' => array( - 'cancel' => array( - 'path' => 'jobs/{jobId}/cancel', - 'httpMethod' => 'POST', - 'parameters' => array( - 'jobId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'get' => array( - 'path' => 'jobs/{jobId}', - 'httpMethod' => 'GET', - 'parameters' => array( - 'jobId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'search' => array( - 'path' => 'jobs/search', - 'httpMethod' => 'POST', - 'parameters' => array(), - ), - ) - ) - ); - $this->readgroupsets = new Google_Service_Genomics_Readgroupsets_Resource( - $this, - $this->serviceName, - 'readgroupsets', - array( - 'methods' => array( - 'align' => array( - 'path' => 'readgroupsets/align', - 'httpMethod' => 'POST', - 'parameters' => array(), - ),'call' => array( - 'path' => 'readgroupsets/call', - 'httpMethod' => 'POST', - 'parameters' => array(), - ),'delete' => array( - 'path' => 'readgroupsets/{readGroupSetId}', - 'httpMethod' => 'DELETE', - 'parameters' => array( - 'readGroupSetId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'export' => array( - 'path' => 'readgroupsets/export', - 'httpMethod' => 'POST', - 'parameters' => array(), - ),'get' => array( - 'path' => 'readgroupsets/{readGroupSetId}', - 'httpMethod' => 'GET', - 'parameters' => array( - 'readGroupSetId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'import' => array( - 'path' => 'readgroupsets/import', - 'httpMethod' => 'POST', - 'parameters' => array(), - ),'patch' => array( - 'path' => 'readgroupsets/{readGroupSetId}', - 'httpMethod' => 'PATCH', - 'parameters' => array( - 'readGroupSetId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'search' => array( - 'path' => 'readgroupsets/search', - 'httpMethod' => 'POST', - 'parameters' => array(), - ),'update' => array( - 'path' => 'readgroupsets/{readGroupSetId}', - 'httpMethod' => 'PUT', - 'parameters' => array( - 'readGroupSetId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ), - ) - ) - ); - $this->readgroupsets_coveragebuckets = new Google_Service_Genomics_ReadgroupsetsCoveragebuckets_Resource( - $this, - $this->serviceName, - 'coveragebuckets', - array( - 'methods' => array( - 'list' => array( - 'path' => 'readgroupsets/{readGroupSetId}/coveragebuckets', - 'httpMethod' => 'GET', - 'parameters' => array( - 'readGroupSetId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'pageSize' => array( - 'location' => 'query', - 'type' => 'integer', - ), - 'range.start' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'range.end' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'range.referenceName' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'pageToken' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'targetBucketWidth' => array( - 'location' => 'query', - 'type' => 'string', - ), - ), - ), - ) - ) - ); - $this->reads = new Google_Service_Genomics_Reads_Resource( - $this, - $this->serviceName, - 'reads', - array( - 'methods' => array( - 'search' => array( - 'path' => 'reads/search', - 'httpMethod' => 'POST', - 'parameters' => array(), - ), - ) - ) - ); - $this->references = new Google_Service_Genomics_References_Resource( - $this, - $this->serviceName, - 'references', - array( - 'methods' => array( - 'get' => array( - 'path' => 'references/{referenceId}', - 'httpMethod' => 'GET', - 'parameters' => array( - 'referenceId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'search' => array( - 'path' => 'references/search', - 'httpMethod' => 'POST', - 'parameters' => array(), - ), - ) - ) - ); - $this->references_bases = new Google_Service_Genomics_ReferencesBases_Resource( - $this, - $this->serviceName, - 'bases', - array( - 'methods' => array( - 'list' => array( - 'path' => 'references/{referenceId}/bases', - 'httpMethod' => 'GET', - 'parameters' => array( - 'referenceId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'pageToken' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'end' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'pageSize' => array( - 'location' => 'query', - 'type' => 'integer', - ), - 'start' => array( - 'location' => 'query', - 'type' => 'string', - ), - ), - ), - ) - ) - ); - $this->referencesets = new Google_Service_Genomics_Referencesets_Resource( - $this, - $this->serviceName, - 'referencesets', - array( - 'methods' => array( - 'get' => array( - 'path' => 'referencesets/{referenceSetId}', - 'httpMethod' => 'GET', - 'parameters' => array( - 'referenceSetId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'search' => array( - 'path' => 'referencesets/search', - 'httpMethod' => 'POST', - 'parameters' => array(), - ), - ) - ) - ); - $this->variants = new Google_Service_Genomics_Variants_Resource( - $this, - $this->serviceName, - 'variants', - array( - 'methods' => array( - 'create' => array( - 'path' => 'variants', - 'httpMethod' => 'POST', - 'parameters' => array(), - ),'delete' => array( - 'path' => 'variants/{variantId}', - 'httpMethod' => 'DELETE', - 'parameters' => array( - 'variantId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'get' => array( - 'path' => 'variants/{variantId}', - 'httpMethod' => 'GET', - 'parameters' => array( - 'variantId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'search' => array( - 'path' => 'variants/search', - 'httpMethod' => 'POST', - 'parameters' => array(), - ),'update' => array( - 'path' => 'variants/{variantId}', - 'httpMethod' => 'PUT', - 'parameters' => array( - 'variantId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ), - ) - ) - ); - $this->variantsets = new Google_Service_Genomics_Variantsets_Resource( - $this, - $this->serviceName, - 'variantsets', - array( - 'methods' => array( - 'delete' => array( - 'path' => 'variantsets/{variantSetId}', - 'httpMethod' => 'DELETE', - 'parameters' => array( - 'variantSetId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'export' => array( - 'path' => 'variantsets/{variantSetId}/export', - 'httpMethod' => 'POST', - 'parameters' => array( - 'variantSetId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'get' => array( - 'path' => 'variantsets/{variantSetId}', - 'httpMethod' => 'GET', - 'parameters' => array( - 'variantSetId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'importVariants' => array( - 'path' => 'variantsets/{variantSetId}/importVariants', - 'httpMethod' => 'POST', - 'parameters' => array( - 'variantSetId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'mergeVariants' => array( - 'path' => 'variantsets/{variantSetId}/mergeVariants', - 'httpMethod' => 'POST', - 'parameters' => array( - 'variantSetId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'patch' => array( - 'path' => 'variantsets/{variantSetId}', - 'httpMethod' => 'PATCH', - 'parameters' => array( - 'variantSetId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'search' => array( - 'path' => 'variantsets/search', - 'httpMethod' => 'POST', - 'parameters' => array(), - ),'update' => array( - 'path' => 'variantsets/{variantSetId}', - 'httpMethod' => 'PUT', - 'parameters' => array( - 'variantSetId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ), - ) - ) - ); - } -} - - -/** - * The "callsets" collection of methods. - * Typical usage is: - * - * $genomicsService = new Google_Service_Genomics(...); - * $callsets = $genomicsService->callsets; - * - */ -class Google_Service_Genomics_Callsets_Resource extends Google_Service_Resource -{ - - /** - * Creates a new call set. (callsets.create) - * - * @param Google_CallSet $postBody - * @param array $optParams Optional parameters. - * @return Google_Service_Genomics_CallSet - */ - public function create(Google_Service_Genomics_CallSet $postBody, $optParams = array()) - { - $params = array('postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('create', array($params), "Google_Service_Genomics_CallSet"); - } - - /** - * Deletes a call set. (callsets.delete) - * - * @param string $callSetId The ID of the call set to be deleted. - * @param array $optParams Optional parameters. - */ - public function delete($callSetId, $optParams = array()) - { - $params = array('callSetId' => $callSetId); - $params = array_merge($params, $optParams); - return $this->call('delete', array($params)); - } - - /** - * Gets a call set by ID. (callsets.get) - * - * @param string $callSetId The ID of the call set. - * @param array $optParams Optional parameters. - * @return Google_Service_Genomics_CallSet - */ - public function get($callSetId, $optParams = array()) - { - $params = array('callSetId' => $callSetId); - $params = array_merge($params, $optParams); - return $this->call('get', array($params), "Google_Service_Genomics_CallSet"); - } - - /** - * Updates a call set. This method supports patch semantics. (callsets.patch) - * - * @param string $callSetId The ID of the call set to be updated. - * @param Google_CallSet $postBody - * @param array $optParams Optional parameters. - * @return Google_Service_Genomics_CallSet - */ - public function patch($callSetId, Google_Service_Genomics_CallSet $postBody, $optParams = array()) - { - $params = array('callSetId' => $callSetId, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('patch', array($params), "Google_Service_Genomics_CallSet"); - } - - /** - * Gets a list of call sets matching the criteria. - * - * Implements GlobalAllianceApi.searchCallSets. (callsets.search) - * - * @param Google_SearchCallSetsRequest $postBody - * @param array $optParams Optional parameters. - * @return Google_Service_Genomics_SearchCallSetsResponse - */ - public function search(Google_Service_Genomics_SearchCallSetsRequest $postBody, $optParams = array()) - { - $params = array('postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('search', array($params), "Google_Service_Genomics_SearchCallSetsResponse"); - } - - /** - * Updates a call set. (callsets.update) - * - * @param string $callSetId The ID of the call set to be updated. - * @param Google_CallSet $postBody - * @param array $optParams Optional parameters. - * @return Google_Service_Genomics_CallSet - */ - public function update($callSetId, Google_Service_Genomics_CallSet $postBody, $optParams = array()) - { - $params = array('callSetId' => $callSetId, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('update', array($params), "Google_Service_Genomics_CallSet"); - } -} - -/** - * The "datasets" collection of methods. - * Typical usage is: - * - * $genomicsService = new Google_Service_Genomics(...); - * $datasets = $genomicsService->datasets; - * - */ -class Google_Service_Genomics_Datasets_Resource extends Google_Service_Resource -{ - - /** - * Creates a new dataset. (datasets.create) - * - * @param Google_Dataset $postBody - * @param array $optParams Optional parameters. - * @return Google_Service_Genomics_Dataset - */ - public function create(Google_Service_Genomics_Dataset $postBody, $optParams = array()) - { - $params = array('postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('create', array($params), "Google_Service_Genomics_Dataset"); - } - - /** - * Deletes a dataset. (datasets.delete) - * - * @param string $datasetId The ID of the dataset to be deleted. - * @param array $optParams Optional parameters. - */ - public function delete($datasetId, $optParams = array()) - { - $params = array('datasetId' => $datasetId); - $params = array_merge($params, $optParams); - return $this->call('delete', array($params)); - } - - /** - * Gets a dataset by ID. (datasets.get) - * - * @param string $datasetId The ID of the dataset. - * @param array $optParams Optional parameters. - * @return Google_Service_Genomics_Dataset - */ - public function get($datasetId, $optParams = array()) - { - $params = array('datasetId' => $datasetId); - $params = array_merge($params, $optParams); - return $this->call('get', array($params), "Google_Service_Genomics_Dataset"); - } - - /** - * Lists all datasets. (datasets.listDatasets) - * - * @param array $optParams Optional parameters. - * - * @opt_param string pageToken The continuation token, which is used to page - * through large result sets. To get the next page of results, set this - * parameter to the value of nextPageToken from the previous response. - * @opt_param string projectNumber Only return datasets which belong to this - * Google Developers Console project. Only accepts project numbers. Returns all - * public projects if no project number is specified. - * @opt_param int pageSize The maximum number of results returned by this - * request. - * @return Google_Service_Genomics_ListDatasetsResponse - */ - public function listDatasets($optParams = array()) - { - $params = array(); - $params = array_merge($params, $optParams); - return $this->call('list', array($params), "Google_Service_Genomics_ListDatasetsResponse"); - } - - /** - * Updates a dataset. This method supports patch semantics. (datasets.patch) - * - * @param string $datasetId The ID of the dataset to be updated. - * @param Google_Dataset $postBody - * @param array $optParams Optional parameters. - * @return Google_Service_Genomics_Dataset - */ - public function patch($datasetId, Google_Service_Genomics_Dataset $postBody, $optParams = array()) - { - $params = array('datasetId' => $datasetId, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('patch', array($params), "Google_Service_Genomics_Dataset"); - } - - /** - * Undeletes a dataset by restoring a dataset which was deleted via this API. - * This operation is only possible for a week after the deletion occurred. - * (datasets.undelete) - * - * @param string $datasetId The ID of the dataset to be undeleted. - * @param array $optParams Optional parameters. - * @return Google_Service_Genomics_Dataset - */ - public function undelete($datasetId, $optParams = array()) - { - $params = array('datasetId' => $datasetId); - $params = array_merge($params, $optParams); - return $this->call('undelete', array($params), "Google_Service_Genomics_Dataset"); - } - - /** - * Updates a dataset. (datasets.update) - * - * @param string $datasetId The ID of the dataset to be updated. - * @param Google_Dataset $postBody - * @param array $optParams Optional parameters. - * @return Google_Service_Genomics_Dataset - */ - public function update($datasetId, Google_Service_Genomics_Dataset $postBody, $optParams = array()) - { - $params = array('datasetId' => $datasetId, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('update', array($params), "Google_Service_Genomics_Dataset"); - } -} - -/** - * The "experimental" collection of methods. - * Typical usage is: - * - * $genomicsService = new Google_Service_Genomics(...); - * $experimental = $genomicsService->experimental; - * - */ -class Google_Service_Genomics_Experimental_Resource extends Google_Service_Resource -{ -} - -/** - * The "jobs" collection of methods. - * Typical usage is: - * - * $genomicsService = new Google_Service_Genomics(...); - * $jobs = $genomicsService->jobs; - * - */ -class Google_Service_Genomics_ExperimentalJobs_Resource extends Google_Service_Resource -{ - - /** - * Creates and asynchronously runs an ad-hoc job. This is an experimental call - * and may be removed or changed at any time. (jobs.create) - * - * @param Google_ExperimentalCreateJobRequest $postBody - * @param array $optParams Optional parameters. - * @return Google_Service_Genomics_ExperimentalCreateJobResponse - */ - public function create(Google_Service_Genomics_ExperimentalCreateJobRequest $postBody, $optParams = array()) - { - $params = array('postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('create', array($params), "Google_Service_Genomics_ExperimentalCreateJobResponse"); - } -} - -/** - * The "jobs" collection of methods. - * Typical usage is: - * - * $genomicsService = new Google_Service_Genomics(...); - * $jobs = $genomicsService->jobs; - * - */ -class Google_Service_Genomics_Jobs_Resource extends Google_Service_Resource -{ - - /** - * Cancels a job by ID. Note that it is possible for partial results to be - * generated and stored for cancelled jobs. (jobs.cancel) - * - * @param string $jobId Required. The ID of the job. - * @param array $optParams Optional parameters. - */ - public function cancel($jobId, $optParams = array()) - { - $params = array('jobId' => $jobId); - $params = array_merge($params, $optParams); - return $this->call('cancel', array($params)); - } - - /** - * Gets a job by ID. (jobs.get) - * - * @param string $jobId Required. The ID of the job. - * @param array $optParams Optional parameters. - * @return Google_Service_Genomics_Job - */ - public function get($jobId, $optParams = array()) - { - $params = array('jobId' => $jobId); - $params = array_merge($params, $optParams); - return $this->call('get', array($params), "Google_Service_Genomics_Job"); - } - - /** - * Gets a list of jobs matching the criteria. (jobs.search) - * - * @param Google_SearchJobsRequest $postBody - * @param array $optParams Optional parameters. - * @return Google_Service_Genomics_SearchJobsResponse - */ - public function search(Google_Service_Genomics_SearchJobsRequest $postBody, $optParams = array()) - { - $params = array('postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('search', array($params), "Google_Service_Genomics_SearchJobsResponse"); - } -} - -/** - * The "readgroupsets" collection of methods. - * Typical usage is: - * - * $genomicsService = new Google_Service_Genomics(...); - * $readgroupsets = $genomicsService->readgroupsets; - * - */ -class Google_Service_Genomics_Readgroupsets_Resource extends Google_Service_Resource -{ - - /** - * Aligns read data from existing read group sets or files from Google Cloud - * Storage. See the alignment and variant calling documentation for more - * details. (readgroupsets.align) - * - * @param Google_AlignReadGroupSetsRequest $postBody - * @param array $optParams Optional parameters. - * @return Google_Service_Genomics_AlignReadGroupSetsResponse - */ - public function align(Google_Service_Genomics_AlignReadGroupSetsRequest $postBody, $optParams = array()) - { - $params = array('postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('align', array($params), "Google_Service_Genomics_AlignReadGroupSetsResponse"); - } - - /** - * Calls variants on read data from existing read group sets or files from - * Google Cloud Storage. See the alignment and variant calling documentation - * for more details. (readgroupsets.callReadgroupsets) - * - * @param Google_CallReadGroupSetsRequest $postBody - * @param array $optParams Optional parameters. - * @return Google_Service_Genomics_CallReadGroupSetsResponse - */ - public function callReadgroupsets(Google_Service_Genomics_CallReadGroupSetsRequest $postBody, $optParams = array()) - { - $params = array('postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('call', array($params), "Google_Service_Genomics_CallReadGroupSetsResponse"); - } - - /** - * Deletes a read group set. (readgroupsets.delete) - * - * @param string $readGroupSetId The ID of the read group set to be deleted. The - * caller must have WRITE permissions to the dataset associated with this read - * group set. - * @param array $optParams Optional parameters. - */ - public function delete($readGroupSetId, $optParams = array()) - { - $params = array('readGroupSetId' => $readGroupSetId); - $params = array_merge($params, $optParams); - return $this->call('delete', array($params)); - } - - /** - * Exports read group sets to a BAM file in Google Cloud Storage. - * - * Note that currently there may be some differences between exported BAM files - * and the original BAM file at the time of import. In particular, comments in - * the input file header will not be preserved, and some custom tags will be - * converted to strings. (readgroupsets.export) - * - * @param Google_ExportReadGroupSetsRequest $postBody - * @param array $optParams Optional parameters. - * @return Google_Service_Genomics_ExportReadGroupSetsResponse - */ - public function export(Google_Service_Genomics_ExportReadGroupSetsRequest $postBody, $optParams = array()) - { - $params = array('postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('export', array($params), "Google_Service_Genomics_ExportReadGroupSetsResponse"); - } - - /** - * Gets a read group set by ID. (readgroupsets.get) - * - * @param string $readGroupSetId The ID of the read group set. - * @param array $optParams Optional parameters. - * @return Google_Service_Genomics_ReadGroupSet - */ - public function get($readGroupSetId, $optParams = array()) - { - $params = array('readGroupSetId' => $readGroupSetId); - $params = array_merge($params, $optParams); - return $this->call('get', array($params), "Google_Service_Genomics_ReadGroupSet"); - } - - /** - * Creates read group sets by asynchronously importing the provided information. - * - * Note that currently comments in the input file header are not imported and - * some custom tags will be converted to strings, rather than preserving tag - * types. The caller must have WRITE permissions to the dataset. - * (readgroupsets.import) - * - * @param Google_ImportReadGroupSetsRequest $postBody - * @param array $optParams Optional parameters. - * @return Google_Service_Genomics_ImportReadGroupSetsResponse - */ - public function import(Google_Service_Genomics_ImportReadGroupSetsRequest $postBody, $optParams = array()) - { - $params = array('postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('import', array($params), "Google_Service_Genomics_ImportReadGroupSetsResponse"); - } - - /** - * Updates a read group set. This method supports patch semantics. - * (readgroupsets.patch) - * - * @param string $readGroupSetId The ID of the read group set to be updated. The - * caller must have WRITE permissions to the dataset associated with this read - * group set. - * @param Google_ReadGroupSet $postBody - * @param array $optParams Optional parameters. - * @return Google_Service_Genomics_ReadGroupSet - */ - public function patch($readGroupSetId, Google_Service_Genomics_ReadGroupSet $postBody, $optParams = array()) - { - $params = array('readGroupSetId' => $readGroupSetId, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('patch', array($params), "Google_Service_Genomics_ReadGroupSet"); - } - - /** - * Searches for read group sets matching the criteria. - * - * Implements GlobalAllianceApi.searchReadGroupSets. (readgroupsets.search) - * - * @param Google_SearchReadGroupSetsRequest $postBody - * @param array $optParams Optional parameters. - * @return Google_Service_Genomics_SearchReadGroupSetsResponse - */ - public function search(Google_Service_Genomics_SearchReadGroupSetsRequest $postBody, $optParams = array()) - { - $params = array('postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('search', array($params), "Google_Service_Genomics_SearchReadGroupSetsResponse"); - } - - /** - * Updates a read group set. (readgroupsets.update) - * - * @param string $readGroupSetId The ID of the read group set to be updated. The - * caller must have WRITE permissions to the dataset associated with this read - * group set. - * @param Google_ReadGroupSet $postBody - * @param array $optParams Optional parameters. - * @return Google_Service_Genomics_ReadGroupSet - */ - public function update($readGroupSetId, Google_Service_Genomics_ReadGroupSet $postBody, $optParams = array()) - { - $params = array('readGroupSetId' => $readGroupSetId, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('update', array($params), "Google_Service_Genomics_ReadGroupSet"); - } -} - -/** - * The "coveragebuckets" collection of methods. - * Typical usage is: - * - * $genomicsService = new Google_Service_Genomics(...); - * $coveragebuckets = $genomicsService->coveragebuckets; - * - */ -class Google_Service_Genomics_ReadgroupsetsCoveragebuckets_Resource extends Google_Service_Resource -{ - - /** - * Lists fixed width coverage buckets for a read group set, each of which - * correspond to a range of a reference sequence. Each bucket summarizes - * coverage information across its corresponding genomic range. - * - * Coverage is defined as the number of reads which are aligned to a given base - * in the reference sequence. Coverage buckets are available at several - * precomputed bucket widths, enabling retrieval of various coverage 'zoom - * levels'. The caller must have READ permissions for the target read group set. - * (coveragebuckets.listReadgroupsetsCoveragebuckets) - * - * @param string $readGroupSetId Required. The ID of the read group set over - * which coverage is requested. - * @param array $optParams Optional parameters. - * - * @opt_param int pageSize The maximum number of results to return in a single - * page. If unspecified, defaults to 1024. The maximum value is 2048. - * @opt_param string range.start The start position of the range on the - * reference, 0-based inclusive. If specified, referenceName must also be - * specified. - * @opt_param string range.end The end position of the range on the reference, - * 0-based exclusive. If specified, referenceName must also be specified. - * @opt_param string range.referenceName The reference sequence name, for - * example chr1, 1, or chrX. - * @opt_param string pageToken The continuation token, which is used to page - * through large result sets. To get the next page of results, set this - * parameter to the value of nextPageToken from the previous response. - * @opt_param string targetBucketWidth The desired width of each reported - * coverage bucket in base pairs. This will be rounded down to the nearest - * precomputed bucket width; the value of which is returned as bucketWidth in - * the response. Defaults to infinity (each bucket spans an entire reference - * sequence) or the length of the target range, if specified. The smallest - * precomputed bucketWidth is currently 2048 base pairs; this is subject to - * change. - * @return Google_Service_Genomics_ListCoverageBucketsResponse - */ - public function listReadgroupsetsCoveragebuckets($readGroupSetId, $optParams = array()) - { - $params = array('readGroupSetId' => $readGroupSetId); - $params = array_merge($params, $optParams); - return $this->call('list', array($params), "Google_Service_Genomics_ListCoverageBucketsResponse"); - } -} - -/** - * The "reads" collection of methods. - * Typical usage is: - * - * $genomicsService = new Google_Service_Genomics(...); - * $reads = $genomicsService->reads; - * - */ -class Google_Service_Genomics_Reads_Resource extends Google_Service_Resource -{ - - /** - * Gets a list of reads for one or more read group sets. Reads search operates - * over a genomic coordinate space of reference sequence & position defined over - * the reference sequences to which the requested read group sets are aligned. - * - * If a target positional range is specified, search returns all reads whose - * alignment to the reference genome overlap the range. A query which specifies - * only read group set IDs yields all reads in those read group sets, including - * unmapped reads. - * - * All reads returned (including reads on subsequent pages) are ordered by - * genomic coordinate (reference sequence & position). Reads with equivalent - * genomic coordinates are returned in a deterministic order. - * - * Implements GlobalAllianceApi.searchReads. (reads.search) - * - * @param Google_SearchReadsRequest $postBody - * @param array $optParams Optional parameters. - * @return Google_Service_Genomics_SearchReadsResponse - */ - public function search(Google_Service_Genomics_SearchReadsRequest $postBody, $optParams = array()) - { - $params = array('postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('search', array($params), "Google_Service_Genomics_SearchReadsResponse"); - } -} - -/** - * The "references" collection of methods. - * Typical usage is: - * - * $genomicsService = new Google_Service_Genomics(...); - * $references = $genomicsService->references; - * - */ -class Google_Service_Genomics_References_Resource extends Google_Service_Resource -{ - - /** - * Gets a reference. - * - * Implements GlobalAllianceApi.getReference. (references.get) - * - * @param string $referenceId The ID of the reference. - * @param array $optParams Optional parameters. - * @return Google_Service_Genomics_Reference - */ - public function get($referenceId, $optParams = array()) - { - $params = array('referenceId' => $referenceId); - $params = array_merge($params, $optParams); - return $this->call('get', array($params), "Google_Service_Genomics_Reference"); - } - - /** - * Searches for references which match the given criteria. - * - * Implements GlobalAllianceApi.searchReferences. (references.search) - * - * @param Google_SearchReferencesRequest $postBody - * @param array $optParams Optional parameters. - * @return Google_Service_Genomics_SearchReferencesResponse - */ - public function search(Google_Service_Genomics_SearchReferencesRequest $postBody, $optParams = array()) - { - $params = array('postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('search', array($params), "Google_Service_Genomics_SearchReferencesResponse"); - } -} - -/** - * The "bases" collection of methods. - * Typical usage is: - * - * $genomicsService = new Google_Service_Genomics(...); - * $bases = $genomicsService->bases; - * - */ -class Google_Service_Genomics_ReferencesBases_Resource extends Google_Service_Resource -{ - - /** - * Lists the bases in a reference, optionally restricted to a range. - * - * Implements GlobalAllianceApi.getReferenceBases. (bases.listReferencesBases) - * - * @param string $referenceId The ID of the reference. - * @param array $optParams Optional parameters. - * - * @opt_param string pageToken The continuation token, which is used to page - * through large result sets. To get the next page of results, set this - * parameter to the value of nextPageToken from the previous response. - * @opt_param string end The end position (0-based, exclusive) of this query. - * Defaults to the length of this reference. - * @opt_param int pageSize Specifies the maximum number of bases to return in a - * single page. - * @opt_param string start The start position (0-based) of this query. Defaults - * to 0. - * @return Google_Service_Genomics_ListBasesResponse - */ - public function listReferencesBases($referenceId, $optParams = array()) - { - $params = array('referenceId' => $referenceId); - $params = array_merge($params, $optParams); - return $this->call('list', array($params), "Google_Service_Genomics_ListBasesResponse"); - } -} - -/** - * The "referencesets" collection of methods. - * Typical usage is: - * - * $genomicsService = new Google_Service_Genomics(...); - * $referencesets = $genomicsService->referencesets; - * - */ -class Google_Service_Genomics_Referencesets_Resource extends Google_Service_Resource -{ - - /** - * Gets a reference set. - * - * Implements GlobalAllianceApi.getReferenceSet. (referencesets.get) - * - * @param string $referenceSetId The ID of the reference set. - * @param array $optParams Optional parameters. - * @return Google_Service_Genomics_ReferenceSet - */ - public function get($referenceSetId, $optParams = array()) - { - $params = array('referenceSetId' => $referenceSetId); - $params = array_merge($params, $optParams); - return $this->call('get', array($params), "Google_Service_Genomics_ReferenceSet"); - } - - /** - * Searches for reference sets which match the given criteria. - * - * Implements GlobalAllianceApi.searchReferenceSets. (referencesets.search) - * - * @param Google_SearchReferenceSetsRequest $postBody - * @param array $optParams Optional parameters. - * @return Google_Service_Genomics_SearchReferenceSetsResponse - */ - public function search(Google_Service_Genomics_SearchReferenceSetsRequest $postBody, $optParams = array()) - { - $params = array('postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('search', array($params), "Google_Service_Genomics_SearchReferenceSetsResponse"); - } -} - -/** - * The "variants" collection of methods. - * Typical usage is: - * - * $genomicsService = new Google_Service_Genomics(...); - * $variants = $genomicsService->variants; - * - */ -class Google_Service_Genomics_Variants_Resource extends Google_Service_Resource -{ - - /** - * Creates a new variant. (variants.create) - * - * @param Google_Variant $postBody - * @param array $optParams Optional parameters. - * @return Google_Service_Genomics_Variant - */ - public function create(Google_Service_Genomics_Variant $postBody, $optParams = array()) - { - $params = array('postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('create', array($params), "Google_Service_Genomics_Variant"); - } - - /** - * Deletes a variant. (variants.delete) - * - * @param string $variantId The ID of the variant to be deleted. - * @param array $optParams Optional parameters. - */ - public function delete($variantId, $optParams = array()) - { - $params = array('variantId' => $variantId); - $params = array_merge($params, $optParams); - return $this->call('delete', array($params)); - } - - /** - * Gets a variant by ID. (variants.get) - * - * @param string $variantId The ID of the variant. - * @param array $optParams Optional parameters. - * @return Google_Service_Genomics_Variant - */ - public function get($variantId, $optParams = array()) - { - $params = array('variantId' => $variantId); - $params = array_merge($params, $optParams); - return $this->call('get', array($params), "Google_Service_Genomics_Variant"); - } - - /** - * Gets a list of variants matching the criteria. - * - * Implements GlobalAllianceApi.searchVariants. (variants.search) - * - * @param Google_SearchVariantsRequest $postBody - * @param array $optParams Optional parameters. - * @return Google_Service_Genomics_SearchVariantsResponse - */ - public function search(Google_Service_Genomics_SearchVariantsRequest $postBody, $optParams = array()) - { - $params = array('postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('search', array($params), "Google_Service_Genomics_SearchVariantsResponse"); - } - - /** - * Updates a variant's names and info fields. All other modifications are - * silently ignored. Returns the modified variant without its calls. - * (variants.update) - * - * @param string $variantId The ID of the variant to be updated. - * @param Google_Variant $postBody - * @param array $optParams Optional parameters. - * @return Google_Service_Genomics_Variant - */ - public function update($variantId, Google_Service_Genomics_Variant $postBody, $optParams = array()) - { - $params = array('variantId' => $variantId, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('update', array($params), "Google_Service_Genomics_Variant"); - } -} - -/** - * The "variantsets" collection of methods. - * Typical usage is: - * - * $genomicsService = new Google_Service_Genomics(...); - * $variantsets = $genomicsService->variantsets; - * - */ -class Google_Service_Genomics_Variantsets_Resource extends Google_Service_Resource -{ - - /** - * Deletes the contents of a variant set. The variant set object is not deleted. - * (variantsets.delete) - * - * @param string $variantSetId The ID of the variant set to be deleted. - * @param array $optParams Optional parameters. - */ - public function delete($variantSetId, $optParams = array()) - { - $params = array('variantSetId' => $variantSetId); - $params = array_merge($params, $optParams); - return $this->call('delete', array($params)); - } - - /** - * Exports variant set data to an external destination. (variantsets.export) - * - * @param string $variantSetId Required. The ID of the variant set that contains - * variant data which should be exported. The caller must have READ access to - * this variant set. - * @param Google_ExportVariantSetRequest $postBody - * @param array $optParams Optional parameters. - * @return Google_Service_Genomics_ExportVariantSetResponse - */ - public function export($variantSetId, Google_Service_Genomics_ExportVariantSetRequest $postBody, $optParams = array()) - { - $params = array('variantSetId' => $variantSetId, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('export', array($params), "Google_Service_Genomics_ExportVariantSetResponse"); - } - - /** - * Gets a variant set by ID. (variantsets.get) - * - * @param string $variantSetId Required. The ID of the variant set. - * @param array $optParams Optional parameters. - * @return Google_Service_Genomics_VariantSet - */ - public function get($variantSetId, $optParams = array()) - { - $params = array('variantSetId' => $variantSetId); - $params = array_merge($params, $optParams); - return $this->call('get', array($params), "Google_Service_Genomics_VariantSet"); - } - - /** - * Creates variant data by asynchronously importing the provided information. - * - * The variants for import will be merged with any existing data and each other - * according to the behavior of mergeVariants. In particular, this means for - * merged VCF variants that have conflicting INFO fields, some data will be - * arbitrarily discarded. As a special case, for single-sample VCF files, QUAL - * and FILTER fields will be moved to the call level; these are sometimes - * interpreted in a call-specific context. Imported VCF headers are appended to - * the metadata already in a variant set. (variantsets.importVariants) - * - * @param string $variantSetId Required. The variant set to which variant data - * should be imported. - * @param Google_ImportVariantsRequest $postBody - * @param array $optParams Optional parameters. - * @return Google_Service_Genomics_ImportVariantsResponse - */ - public function importVariants($variantSetId, Google_Service_Genomics_ImportVariantsRequest $postBody, $optParams = array()) - { - $params = array('variantSetId' => $variantSetId, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('importVariants', array($params), "Google_Service_Genomics_ImportVariantsResponse"); - } - - /** - * Merges the given variants with existing variants. Each variant will be merged - * with an existing variant that matches its reference sequence, start, end, - * reference bases, and alternative bases. If no such variant exists, a new one - * will be created. - * - * When variants are merged, the call information from the new variant is added - * to the existing variant, and other fields (such as key/value pairs) are - * discarded. (variantsets.mergeVariants) - * - * @param string $variantSetId The destination variant set. - * @param Google_MergeVariantsRequest $postBody - * @param array $optParams Optional parameters. - */ - public function mergeVariants($variantSetId, Google_Service_Genomics_MergeVariantsRequest $postBody, $optParams = array()) - { - $params = array('variantSetId' => $variantSetId, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('mergeVariants', array($params)); - } - - /** - * Updates a variant set's metadata. All other modifications are silently - * ignored. This method supports patch semantics. (variantsets.patch) - * - * @param string $variantSetId The ID of the variant to be updated. - * @param Google_VariantSet $postBody - * @param array $optParams Optional parameters. - * @return Google_Service_Genomics_VariantSet - */ - public function patch($variantSetId, Google_Service_Genomics_VariantSet $postBody, $optParams = array()) - { - $params = array('variantSetId' => $variantSetId, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('patch', array($params), "Google_Service_Genomics_VariantSet"); - } - - /** - * Returns a list of all variant sets matching search criteria. - * - * Implements GlobalAllianceApi.searchVariantSets. (variantsets.search) - * - * @param Google_SearchVariantSetsRequest $postBody - * @param array $optParams Optional parameters. - * @return Google_Service_Genomics_SearchVariantSetsResponse - */ - public function search(Google_Service_Genomics_SearchVariantSetsRequest $postBody, $optParams = array()) - { - $params = array('postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('search', array($params), "Google_Service_Genomics_SearchVariantSetsResponse"); - } - - /** - * Updates a variant set's metadata. All other modifications are silently - * ignored. (variantsets.update) - * - * @param string $variantSetId The ID of the variant to be updated. - * @param Google_VariantSet $postBody - * @param array $optParams Optional parameters. - * @return Google_Service_Genomics_VariantSet - */ - public function update($variantSetId, Google_Service_Genomics_VariantSet $postBody, $optParams = array()) - { - $params = array('variantSetId' => $variantSetId, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('update', array($params), "Google_Service_Genomics_VariantSet"); - } -} - - - - -class Google_Service_Genomics_AlignReadGroupSetsRequest extends Google_Collection -{ - protected $collection_key = 'readGroupSetIds'; - protected $internal_gapi_mappings = array( - ); - public $bamSourceUris; - public $datasetId; - protected $interleavedFastqSourceType = 'Google_Service_Genomics_InterleavedFastqSource'; - protected $interleavedFastqSourceDataType = ''; - protected $pairedFastqSourceType = 'Google_Service_Genomics_PairedFastqSource'; - protected $pairedFastqSourceDataType = ''; - public $readGroupSetIds; - - - public function setBamSourceUris($bamSourceUris) - { - $this->bamSourceUris = $bamSourceUris; - } - public function getBamSourceUris() - { - return $this->bamSourceUris; - } - public function setDatasetId($datasetId) - { - $this->datasetId = $datasetId; - } - public function getDatasetId() - { - return $this->datasetId; - } - public function setInterleavedFastqSource(Google_Service_Genomics_InterleavedFastqSource $interleavedFastqSource) - { - $this->interleavedFastqSource = $interleavedFastqSource; - } - public function getInterleavedFastqSource() - { - return $this->interleavedFastqSource; - } - public function setPairedFastqSource(Google_Service_Genomics_PairedFastqSource $pairedFastqSource) - { - $this->pairedFastqSource = $pairedFastqSource; - } - public function getPairedFastqSource() - { - return $this->pairedFastqSource; - } - public function setReadGroupSetIds($readGroupSetIds) - { - $this->readGroupSetIds = $readGroupSetIds; - } - public function getReadGroupSetIds() - { - return $this->readGroupSetIds; - } -} - -class Google_Service_Genomics_AlignReadGroupSetsResponse extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $jobId; - - - public function setJobId($jobId) - { - $this->jobId = $jobId; - } - public function getJobId() - { - return $this->jobId; - } -} - -class Google_Service_Genomics_CallReadGroupSetsRequest extends Google_Collection -{ - protected $collection_key = 'sourceUris'; - protected $internal_gapi_mappings = array( - ); - public $datasetId; - public $readGroupSetIds; - public $sourceUris; - - - public function setDatasetId($datasetId) - { - $this->datasetId = $datasetId; - } - public function getDatasetId() - { - return $this->datasetId; - } - public function setReadGroupSetIds($readGroupSetIds) - { - $this->readGroupSetIds = $readGroupSetIds; - } - public function getReadGroupSetIds() - { - return $this->readGroupSetIds; - } - public function setSourceUris($sourceUris) - { - $this->sourceUris = $sourceUris; - } - public function getSourceUris() - { - return $this->sourceUris; - } -} - -class Google_Service_Genomics_CallReadGroupSetsResponse extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $jobId; - - - public function setJobId($jobId) - { - $this->jobId = $jobId; - } - public function getJobId() - { - return $this->jobId; - } -} - -class Google_Service_Genomics_CallSet extends Google_Collection -{ - protected $collection_key = 'variantSetIds'; - protected $internal_gapi_mappings = array( - ); - public $created; - public $id; - public $info; - public $name; - public $sampleId; - public $variantSetIds; - - - public function setCreated($created) - { - $this->created = $created; - } - public function getCreated() - { - return $this->created; - } - public function setId($id) - { - $this->id = $id; - } - public function getId() - { - return $this->id; - } - public function setInfo($info) - { - $this->info = $info; - } - public function getInfo() - { - return $this->info; - } - public function setName($name) - { - $this->name = $name; - } - public function getName() - { - return $this->name; - } - public function setSampleId($sampleId) - { - $this->sampleId = $sampleId; - } - public function getSampleId() - { - return $this->sampleId; - } - public function setVariantSetIds($variantSetIds) - { - $this->variantSetIds = $variantSetIds; - } - public function getVariantSetIds() - { - return $this->variantSetIds; - } -} - -class Google_Service_Genomics_CallSetInfo extends Google_Model -{ -} - -class Google_Service_Genomics_CigarUnit extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $operation; - public $operationLength; - public $referenceSequence; - - - public function setOperation($operation) - { - $this->operation = $operation; - } - public function getOperation() - { - return $this->operation; - } - public function setOperationLength($operationLength) - { - $this->operationLength = $operationLength; - } - public function getOperationLength() - { - return $this->operationLength; - } - public function setReferenceSequence($referenceSequence) - { - $this->referenceSequence = $referenceSequence; - } - public function getReferenceSequence() - { - return $this->referenceSequence; - } -} - -class Google_Service_Genomics_CoverageBucket extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $meanCoverage; - protected $rangeType = 'Google_Service_Genomics_Range'; - protected $rangeDataType = ''; - - - public function setMeanCoverage($meanCoverage) - { - $this->meanCoverage = $meanCoverage; - } - public function getMeanCoverage() - { - return $this->meanCoverage; - } - public function setRange(Google_Service_Genomics_Range $range) - { - $this->range = $range; - } - public function getRange() - { - return $this->range; - } -} - -class Google_Service_Genomics_Dataset extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $id; - public $isPublic; - public $name; - public $projectNumber; - - - public function setId($id) - { - $this->id = $id; - } - public function getId() - { - return $this->id; - } - public function setIsPublic($isPublic) - { - $this->isPublic = $isPublic; - } - public function getIsPublic() - { - return $this->isPublic; - } - public function setName($name) - { - $this->name = $name; - } - public function getName() - { - return $this->name; - } - public function setProjectNumber($projectNumber) - { - $this->projectNumber = $projectNumber; - } - public function getProjectNumber() - { - return $this->projectNumber; - } -} - -class Google_Service_Genomics_ExperimentalCreateJobRequest extends Google_Collection -{ - protected $collection_key = 'sourceUris'; - protected $internal_gapi_mappings = array( - ); - public $align; - public $callVariants; - public $gcsOutputPath; - public $pairedSourceUris; - public $projectNumber; - public $sourceUris; - - - public function setAlign($align) - { - $this->align = $align; - } - public function getAlign() - { - return $this->align; - } - public function setCallVariants($callVariants) - { - $this->callVariants = $callVariants; - } - public function getCallVariants() - { - return $this->callVariants; - } - public function setGcsOutputPath($gcsOutputPath) - { - $this->gcsOutputPath = $gcsOutputPath; - } - public function getGcsOutputPath() - { - return $this->gcsOutputPath; - } - public function setPairedSourceUris($pairedSourceUris) - { - $this->pairedSourceUris = $pairedSourceUris; - } - public function getPairedSourceUris() - { - return $this->pairedSourceUris; - } - public function setProjectNumber($projectNumber) - { - $this->projectNumber = $projectNumber; - } - public function getProjectNumber() - { - return $this->projectNumber; - } - public function setSourceUris($sourceUris) - { - $this->sourceUris = $sourceUris; - } - public function getSourceUris() - { - return $this->sourceUris; - } -} - -class Google_Service_Genomics_ExperimentalCreateJobResponse extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $jobId; - - - public function setJobId($jobId) - { - $this->jobId = $jobId; - } - public function getJobId() - { - return $this->jobId; - } -} - -class Google_Service_Genomics_ExportReadGroupSetsRequest extends Google_Collection -{ - protected $collection_key = 'referenceNames'; - protected $internal_gapi_mappings = array( - ); - public $exportUri; - public $projectNumber; - public $readGroupSetIds; - public $referenceNames; - - - public function setExportUri($exportUri) - { - $this->exportUri = $exportUri; - } - public function getExportUri() - { - return $this->exportUri; - } - public function setProjectNumber($projectNumber) - { - $this->projectNumber = $projectNumber; - } - public function getProjectNumber() - { - return $this->projectNumber; - } - public function setReadGroupSetIds($readGroupSetIds) - { - $this->readGroupSetIds = $readGroupSetIds; - } - public function getReadGroupSetIds() - { - return $this->readGroupSetIds; - } - public function setReferenceNames($referenceNames) - { - $this->referenceNames = $referenceNames; - } - public function getReferenceNames() - { - return $this->referenceNames; - } -} - -class Google_Service_Genomics_ExportReadGroupSetsResponse extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $jobId; - - - public function setJobId($jobId) - { - $this->jobId = $jobId; - } - public function getJobId() - { - return $this->jobId; - } -} - -class Google_Service_Genomics_ExportVariantSetRequest extends Google_Collection -{ - protected $collection_key = 'callSetIds'; - protected $internal_gapi_mappings = array( - ); - public $bigqueryDataset; - public $bigqueryTable; - public $callSetIds; - public $format; - public $projectNumber; - - - public function setBigqueryDataset($bigqueryDataset) - { - $this->bigqueryDataset = $bigqueryDataset; - } - public function getBigqueryDataset() - { - return $this->bigqueryDataset; - } - public function setBigqueryTable($bigqueryTable) - { - $this->bigqueryTable = $bigqueryTable; - } - public function getBigqueryTable() - { - return $this->bigqueryTable; - } - public function setCallSetIds($callSetIds) - { - $this->callSetIds = $callSetIds; - } - public function getCallSetIds() - { - return $this->callSetIds; - } - public function setFormat($format) - { - $this->format = $format; - } - public function getFormat() - { - return $this->format; - } - public function setProjectNumber($projectNumber) - { - $this->projectNumber = $projectNumber; - } - public function getProjectNumber() - { - return $this->projectNumber; - } -} - -class Google_Service_Genomics_ExportVariantSetResponse extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $jobId; - - - public function setJobId($jobId) - { - $this->jobId = $jobId; - } - public function getJobId() - { - return $this->jobId; - } -} - -class Google_Service_Genomics_FastqMetadata extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $libraryName; - public $platformName; - public $platformUnit; - public $readGroupName; - public $sampleName; - - - public function setLibraryName($libraryName) - { - $this->libraryName = $libraryName; - } - public function getLibraryName() - { - return $this->libraryName; - } - public function setPlatformName($platformName) - { - $this->platformName = $platformName; - } - public function getPlatformName() - { - return $this->platformName; - } - public function setPlatformUnit($platformUnit) - { - $this->platformUnit = $platformUnit; - } - public function getPlatformUnit() - { - return $this->platformUnit; - } - public function setReadGroupName($readGroupName) - { - $this->readGroupName = $readGroupName; - } - public function getReadGroupName() - { - return $this->readGroupName; - } - public function setSampleName($sampleName) - { - $this->sampleName = $sampleName; - } - public function getSampleName() - { - return $this->sampleName; - } -} - -class Google_Service_Genomics_GenomicsCall extends Google_Collection -{ - protected $collection_key = 'genotypeLikelihood'; - protected $internal_gapi_mappings = array( - ); - public $callSetId; - public $callSetName; - public $genotype; - public $genotypeLikelihood; - public $info; - public $phaseset; - - - public function setCallSetId($callSetId) - { - $this->callSetId = $callSetId; - } - public function getCallSetId() - { - return $this->callSetId; - } - public function setCallSetName($callSetName) - { - $this->callSetName = $callSetName; - } - public function getCallSetName() - { - return $this->callSetName; - } - public function setGenotype($genotype) - { - $this->genotype = $genotype; - } - public function getGenotype() - { - return $this->genotype; - } - public function setGenotypeLikelihood($genotypeLikelihood) - { - $this->genotypeLikelihood = $genotypeLikelihood; - } - public function getGenotypeLikelihood() - { - return $this->genotypeLikelihood; - } - public function setInfo($info) - { - $this->info = $info; - } - public function getInfo() - { - return $this->info; - } - public function setPhaseset($phaseset) - { - $this->phaseset = $phaseset; - } - public function getPhaseset() - { - return $this->phaseset; - } -} - -class Google_Service_Genomics_GenomicsCallInfo extends Google_Model -{ -} - -class Google_Service_Genomics_ImportReadGroupSetsRequest extends Google_Collection -{ - protected $collection_key = 'sourceUris'; - protected $internal_gapi_mappings = array( - ); - public $datasetId; - public $referenceSetId; - public $sourceUris; - - - public function setDatasetId($datasetId) - { - $this->datasetId = $datasetId; - } - public function getDatasetId() - { - return $this->datasetId; - } - public function setReferenceSetId($referenceSetId) - { - $this->referenceSetId = $referenceSetId; - } - public function getReferenceSetId() - { - return $this->referenceSetId; - } - public function setSourceUris($sourceUris) - { - $this->sourceUris = $sourceUris; - } - public function getSourceUris() - { - return $this->sourceUris; - } -} - -class Google_Service_Genomics_ImportReadGroupSetsResponse extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $jobId; - - - public function setJobId($jobId) - { - $this->jobId = $jobId; - } - public function getJobId() - { - return $this->jobId; - } -} - -class Google_Service_Genomics_ImportVariantsRequest extends Google_Collection -{ - protected $collection_key = 'sourceUris'; - protected $internal_gapi_mappings = array( - ); - public $format; - public $sourceUris; - - - public function setFormat($format) - { - $this->format = $format; - } - public function getFormat() - { - return $this->format; - } - public function setSourceUris($sourceUris) - { - $this->sourceUris = $sourceUris; - } - public function getSourceUris() - { - return $this->sourceUris; - } -} - -class Google_Service_Genomics_ImportVariantsResponse extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $jobId; - - - public function setJobId($jobId) - { - $this->jobId = $jobId; - } - public function getJobId() - { - return $this->jobId; - } -} - -class Google_Service_Genomics_InterleavedFastqSource extends Google_Collection -{ - protected $collection_key = 'sourceUris'; - protected $internal_gapi_mappings = array( - ); - protected $metadataType = 'Google_Service_Genomics_FastqMetadata'; - protected $metadataDataType = ''; - public $sourceUris; - - - public function setMetadata(Google_Service_Genomics_FastqMetadata $metadata) - { - $this->metadata = $metadata; - } - public function getMetadata() - { - return $this->metadata; - } - public function setSourceUris($sourceUris) - { - $this->sourceUris = $sourceUris; - } - public function getSourceUris() - { - return $this->sourceUris; - } -} - -class Google_Service_Genomics_Job extends Google_Collection -{ - protected $collection_key = 'warnings'; - protected $internal_gapi_mappings = array( - ); - public $created; - public $detailedStatus; - public $errors; - public $id; - public $importedIds; - public $projectNumber; - protected $requestType = 'Google_Service_Genomics_JobRequest'; - protected $requestDataType = ''; - public $status; - public $warnings; - - - public function setCreated($created) - { - $this->created = $created; - } - public function getCreated() - { - return $this->created; - } - public function setDetailedStatus($detailedStatus) - { - $this->detailedStatus = $detailedStatus; - } - public function getDetailedStatus() - { - return $this->detailedStatus; - } - public function setErrors($errors) - { - $this->errors = $errors; - } - public function getErrors() - { - return $this->errors; - } - public function setId($id) - { - $this->id = $id; - } - public function getId() - { - return $this->id; - } - public function setImportedIds($importedIds) - { - $this->importedIds = $importedIds; - } - public function getImportedIds() - { - return $this->importedIds; - } - public function setProjectNumber($projectNumber) - { - $this->projectNumber = $projectNumber; - } - public function getProjectNumber() - { - return $this->projectNumber; - } - public function setRequest(Google_Service_Genomics_JobRequest $request) - { - $this->request = $request; - } - public function getRequest() - { - return $this->request; - } - public function setStatus($status) - { - $this->status = $status; - } - public function getStatus() - { - return $this->status; - } - public function setWarnings($warnings) - { - $this->warnings = $warnings; - } - public function getWarnings() - { - return $this->warnings; - } -} - -class Google_Service_Genomics_JobRequest extends Google_Collection -{ - protected $collection_key = 'source'; - protected $internal_gapi_mappings = array( - ); - public $destination; - public $source; - public $type; - - - public function setDestination($destination) - { - $this->destination = $destination; - } - public function getDestination() - { - return $this->destination; - } - public function setSource($source) - { - $this->source = $source; - } - public function getSource() - { - return $this->source; - } - public function setType($type) - { - $this->type = $type; - } - public function getType() - { - return $this->type; - } -} - -class Google_Service_Genomics_LinearAlignment extends Google_Collection -{ - protected $collection_key = 'cigar'; - protected $internal_gapi_mappings = array( - ); - protected $cigarType = 'Google_Service_Genomics_CigarUnit'; - protected $cigarDataType = 'array'; - public $mappingQuality; - protected $positionType = 'Google_Service_Genomics_Position'; - protected $positionDataType = ''; - - - public function setCigar($cigar) - { - $this->cigar = $cigar; - } - public function getCigar() - { - return $this->cigar; - } - public function setMappingQuality($mappingQuality) - { - $this->mappingQuality = $mappingQuality; - } - public function getMappingQuality() - { - return $this->mappingQuality; - } - public function setPosition(Google_Service_Genomics_Position $position) - { - $this->position = $position; - } - public function getPosition() - { - return $this->position; - } -} - -class Google_Service_Genomics_ListBasesResponse extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $nextPageToken; - public $offset; - public $sequence; - - - public function setNextPageToken($nextPageToken) - { - $this->nextPageToken = $nextPageToken; - } - public function getNextPageToken() - { - return $this->nextPageToken; - } - public function setOffset($offset) - { - $this->offset = $offset; - } - public function getOffset() - { - return $this->offset; - } - public function setSequence($sequence) - { - $this->sequence = $sequence; - } - public function getSequence() - { - return $this->sequence; - } -} - -class Google_Service_Genomics_ListCoverageBucketsResponse extends Google_Collection -{ - protected $collection_key = 'coverageBuckets'; - protected $internal_gapi_mappings = array( - ); - public $bucketWidth; - protected $coverageBucketsType = 'Google_Service_Genomics_CoverageBucket'; - protected $coverageBucketsDataType = 'array'; - public $nextPageToken; - - - public function setBucketWidth($bucketWidth) - { - $this->bucketWidth = $bucketWidth; - } - public function getBucketWidth() - { - return $this->bucketWidth; - } - public function setCoverageBuckets($coverageBuckets) - { - $this->coverageBuckets = $coverageBuckets; - } - public function getCoverageBuckets() - { - return $this->coverageBuckets; - } - public function setNextPageToken($nextPageToken) - { - $this->nextPageToken = $nextPageToken; - } - public function getNextPageToken() - { - return $this->nextPageToken; - } -} - -class Google_Service_Genomics_ListDatasetsResponse extends Google_Collection -{ - protected $collection_key = 'datasets'; - protected $internal_gapi_mappings = array( - ); - protected $datasetsType = 'Google_Service_Genomics_Dataset'; - protected $datasetsDataType = 'array'; - public $nextPageToken; - - - public function setDatasets($datasets) - { - $this->datasets = $datasets; - } - public function getDatasets() - { - return $this->datasets; - } - public function setNextPageToken($nextPageToken) - { - $this->nextPageToken = $nextPageToken; - } - public function getNextPageToken() - { - return $this->nextPageToken; - } -} - -class Google_Service_Genomics_MergeVariantsRequest extends Google_Collection -{ - protected $collection_key = 'variants'; - protected $internal_gapi_mappings = array( - ); - protected $variantsType = 'Google_Service_Genomics_Variant'; - protected $variantsDataType = 'array'; - - - public function setVariants($variants) - { - $this->variants = $variants; - } - public function getVariants() - { - return $this->variants; - } -} - -class Google_Service_Genomics_Metadata extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $description; - public $id; - public $info; - public $key; - public $number; - public $type; - public $value; - - - public function setDescription($description) - { - $this->description = $description; - } - public function getDescription() - { - return $this->description; - } - public function setId($id) - { - $this->id = $id; - } - public function getId() - { - return $this->id; - } - public function setInfo($info) - { - $this->info = $info; - } - public function getInfo() - { - return $this->info; - } - public function setKey($key) - { - $this->key = $key; - } - public function getKey() - { - return $this->key; - } - public function setNumber($number) - { - $this->number = $number; - } - public function getNumber() - { - return $this->number; - } - public function setType($type) - { - $this->type = $type; - } - public function getType() - { - return $this->type; - } - public function setValue($value) - { - $this->value = $value; - } - public function getValue() - { - return $this->value; - } -} - -class Google_Service_Genomics_MetadataInfo extends Google_Model -{ -} - -class Google_Service_Genomics_PairedFastqSource extends Google_Collection -{ - protected $collection_key = 'secondSourceUris'; - protected $internal_gapi_mappings = array( - ); - public $firstSourceUris; - protected $metadataType = 'Google_Service_Genomics_FastqMetadata'; - protected $metadataDataType = ''; - public $secondSourceUris; - - - public function setFirstSourceUris($firstSourceUris) - { - $this->firstSourceUris = $firstSourceUris; - } - public function getFirstSourceUris() - { - return $this->firstSourceUris; - } - public function setMetadata(Google_Service_Genomics_FastqMetadata $metadata) - { - $this->metadata = $metadata; - } - public function getMetadata() - { - return $this->metadata; - } - public function setSecondSourceUris($secondSourceUris) - { - $this->secondSourceUris = $secondSourceUris; - } - public function getSecondSourceUris() - { - return $this->secondSourceUris; - } -} - -class Google_Service_Genomics_Position extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $position; - public $referenceName; - public $reverseStrand; - - - public function setPosition($position) - { - $this->position = $position; - } - public function getPosition() - { - return $this->position; - } - public function setReferenceName($referenceName) - { - $this->referenceName = $referenceName; - } - public function getReferenceName() - { - return $this->referenceName; - } - public function setReverseStrand($reverseStrand) - { - $this->reverseStrand = $reverseStrand; - } - public function getReverseStrand() - { - return $this->reverseStrand; - } -} - -class Google_Service_Genomics_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_ReadGroupExperiment'; - protected $experimentDataType = ''; - public $id; - public $info; - public $name; - public $predictedInsertSize; - protected $programsType = 'Google_Service_Genomics_ReadGroupProgram'; - protected $programsDataType = 'array'; - public $referenceSetId; - public $sampleId; - - - public function setDatasetId($datasetId) - { - $this->datasetId = $datasetId; - } - public function getDatasetId() - { - return $this->datasetId; - } - public function setDescription($description) - { - $this->description = $description; - } - public function getDescription() - { - return $this->description; - } - public function setExperiment(Google_Service_Genomics_ReadGroupExperiment $experiment) - { - $this->experiment = $experiment; - } - public function getExperiment() - { - return $this->experiment; - } - public function setId($id) - { - $this->id = $id; - } - public function getId() - { - return $this->id; - } - public function setInfo($info) - { - $this->info = $info; - } - public function getInfo() - { - return $this->info; - } - public function setName($name) - { - $this->name = $name; - } - public function getName() - { - return $this->name; - } - public function setPredictedInsertSize($predictedInsertSize) - { - $this->predictedInsertSize = $predictedInsertSize; - } - public function getPredictedInsertSize() - { - return $this->predictedInsertSize; - } - public function setPrograms($programs) - { - $this->programs = $programs; - } - public function getPrograms() - { - return $this->programs; - } - public function setReferenceSetId($referenceSetId) - { - $this->referenceSetId = $referenceSetId; - } - public function getReferenceSetId() - { - return $this->referenceSetId; - } - public function setSampleId($sampleId) - { - $this->sampleId = $sampleId; - } - public function getSampleId() - { - return $this->sampleId; - } -} - -class Google_Service_Genomics_ReadGroupExperiment extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $instrumentModel; - public $libraryId; - public $platformUnit; - public $sequencingCenter; - - - public function setInstrumentModel($instrumentModel) - { - $this->instrumentModel = $instrumentModel; - } - public function getInstrumentModel() - { - return $this->instrumentModel; - } - public function setLibraryId($libraryId) - { - $this->libraryId = $libraryId; - } - public function getLibraryId() - { - return $this->libraryId; - } - public function setPlatformUnit($platformUnit) - { - $this->platformUnit = $platformUnit; - } - public function getPlatformUnit() - { - return $this->platformUnit; - } - public function setSequencingCenter($sequencingCenter) - { - $this->sequencingCenter = $sequencingCenter; - } - public function getSequencingCenter() - { - return $this->sequencingCenter; - } -} - -class Google_Service_Genomics_ReadGroupInfo extends Google_Model -{ -} - -class Google_Service_Genomics_ReadGroupProgram extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $commandLine; - public $id; - public $name; - public $prevProgramId; - public $version; - - - public function setCommandLine($commandLine) - { - $this->commandLine = $commandLine; - } - public function getCommandLine() - { - return $this->commandLine; - } - public function setId($id) - { - $this->id = $id; - } - public function getId() - { - return $this->id; - } - public function setName($name) - { - $this->name = $name; - } - public function getName() - { - return $this->name; - } - public function setPrevProgramId($prevProgramId) - { - $this->prevProgramId = $prevProgramId; - } - public function getPrevProgramId() - { - return $this->prevProgramId; - } - public function setVersion($version) - { - $this->version = $version; - } - public function getVersion() - { - return $this->version; - } -} - -class Google_Service_Genomics_ReadGroupSet extends Google_Collection -{ - protected $collection_key = 'readGroups'; - protected $internal_gapi_mappings = array( - ); - public $datasetId; - public $filename; - public $id; - public $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 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_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_SearchJobsRequest extends Google_Collection -{ - protected $collection_key = 'status'; - protected $internal_gapi_mappings = array( - ); - public $createdAfter; - public $createdBefore; - public $pageSize; - public $pageToken; - public $projectNumber; - public $status; - - - public function setCreatedAfter($createdAfter) - { - $this->createdAfter = $createdAfter; - } - public function getCreatedAfter() - { - return $this->createdAfter; - } - public function setCreatedBefore($createdBefore) - { - $this->createdBefore = $createdBefore; - } - public function getCreatedBefore() - { - return $this->createdBefore; - } - public function setPageSize($pageSize) - { - $this->pageSize = $pageSize; - } - public function getPageSize() - { - return $this->pageSize; - } - public function setPageToken($pageToken) - { - $this->pageToken = $pageToken; - } - public function getPageToken() - { - return $this->pageToken; - } - public function setProjectNumber($projectNumber) - { - $this->projectNumber = $projectNumber; - } - public function getProjectNumber() - { - return $this->projectNumber; - } - public function setStatus($status) - { - $this->status = $status; - } - public function getStatus() - { - return $this->status; - } -} - -class Google_Service_Genomics_SearchJobsResponse extends Google_Collection -{ - protected $collection_key = 'jobs'; - protected $internal_gapi_mappings = array( - ); - protected $jobsType = 'Google_Service_Genomics_Job'; - protected $jobsDataType = 'array'; - public $nextPageToken; - - - public function setJobs($jobs) - { - $this->jobs = $jobs; - } - public function getJobs() - { - return $this->jobs; - } - public function setNextPageToken($nextPageToken) - { - $this->nextPageToken = $nextPageToken; - } - public function getNextPageToken() - { - return $this->nextPageToken; - } -} - -class Google_Service_Genomics_SearchReadGroupSetsRequest extends Google_Collection -{ - protected $collection_key = 'datasetIds'; - protected $internal_gapi_mappings = array( - ); - public $datasetIds; - public $name; - public $pageSize; - public $pageToken; - - - public function setDatasetIds($datasetIds) - { - $this->datasetIds = $datasetIds; - } - public function getDatasetIds() - { - return $this->datasetIds; - } - public function setName($name) - { - $this->name = $name; - } - public function getName() - { - return $this->name; - } - public function setPageSize($pageSize) - { - $this->pageSize = $pageSize; - } - public function getPageSize() - { - return $this->pageSize; - } - public function setPageToken($pageToken) - { - $this->pageToken = $pageToken; - } - public function getPageToken() - { - return $this->pageToken; - } -} - -class Google_Service_Genomics_SearchReadGroupSetsResponse extends Google_Collection -{ - protected $collection_key = 'readGroupSets'; - protected $internal_gapi_mappings = array( - ); - public $nextPageToken; - protected $readGroupSetsType = 'Google_Service_Genomics_ReadGroupSet'; - protected $readGroupSetsDataType = 'array'; - - - public function setNextPageToken($nextPageToken) - { - $this->nextPageToken = $nextPageToken; - } - public function getNextPageToken() - { - return $this->nextPageToken; - } - public function setReadGroupSets($readGroupSets) - { - $this->readGroupSets = $readGroupSets; - } - public function getReadGroupSets() - { - return $this->readGroupSets; - } -} - -class Google_Service_Genomics_SearchReadsRequest extends Google_Collection -{ - protected $collection_key = 'readGroupSetIds'; - protected $internal_gapi_mappings = array( - ); - public $end; - public $pageSize; - public $pageToken; - public $readGroupIds; - public $readGroupSetIds; - public $referenceName; - public $start; - - - public function setEnd($end) - { - $this->end = $end; - } - public function getEnd() - { - return $this->end; - } - public function setPageSize($pageSize) - { - $this->pageSize = $pageSize; - } - public function getPageSize() - { - return $this->pageSize; - } - public function setPageToken($pageToken) - { - $this->pageToken = $pageToken; - } - public function getPageToken() - { - return $this->pageToken; - } - public function setReadGroupIds($readGroupIds) - { - $this->readGroupIds = $readGroupIds; - } - public function getReadGroupIds() - { - return $this->readGroupIds; - } - public function setReadGroupSetIds($readGroupSetIds) - { - $this->readGroupSetIds = $readGroupSetIds; - } - public function getReadGroupSetIds() - { - return $this->readGroupSetIds; - } - public function setReferenceName($referenceName) - { - $this->referenceName = $referenceName; - } - public function getReferenceName() - { - return $this->referenceName; - } - public function setStart($start) - { - $this->start = $start; - } - public function getStart() - { - return $this->start; - } -} - -class Google_Service_Genomics_SearchReadsResponse extends Google_Collection -{ - protected $collection_key = 'alignments'; - protected $internal_gapi_mappings = array( - ); - protected $alignmentsType = 'Google_Service_Genomics_Read'; - protected $alignmentsDataType = 'array'; - public $nextPageToken; - - - public function setAlignments($alignments) - { - $this->alignments = $alignments; - } - public function getAlignments() - { - return $this->alignments; - } - public function setNextPageToken($nextPageToken) - { - $this->nextPageToken = $nextPageToken; - } - public function getNextPageToken() - { - return $this->nextPageToken; - } -} - -class Google_Service_Genomics_SearchReferenceSetsRequest extends Google_Collection -{ - protected $collection_key = 'md5checksums'; - protected $internal_gapi_mappings = array( - ); - public $accessions; - public $md5checksums; - public $pageSize; - public $pageToken; - - - public function setAccessions($accessions) - { - $this->accessions = $accessions; - } - public function getAccessions() - { - return $this->accessions; - } - public function setMd5checksums($md5checksums) - { - $this->md5checksums = $md5checksums; - } - public function getMd5checksums() - { - return $this->md5checksums; - } - public function setPageSize($pageSize) - { - $this->pageSize = $pageSize; - } - public function getPageSize() - { - return $this->pageSize; - } - public function setPageToken($pageToken) - { - $this->pageToken = $pageToken; - } - public function getPageToken() - { - return $this->pageToken; - } -} - -class Google_Service_Genomics_SearchReferenceSetsResponse extends Google_Collection -{ - protected $collection_key = 'referenceSets'; - protected $internal_gapi_mappings = array( - ); - public $nextPageToken; - protected $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_Variant extends Google_Collection -{ - protected $collection_key = 'names'; - protected $internal_gapi_mappings = array( - ); - public $alternateBases; - protected $callsType = 'Google_Service_Genomics_GenomicsCall'; - protected $callsDataType = 'array'; - public $created; - public $end; - public $filter; - public $id; - public $info; - public $names; - public $quality; - public $referenceBases; - public $referenceName; - public $start; - public $variantSetId; - - - public function setAlternateBases($alternateBases) - { - $this->alternateBases = $alternateBases; - } - public function getAlternateBases() - { - return $this->alternateBases; - } - public function setCalls($calls) - { - $this->calls = $calls; - } - public function getCalls() - { - return $this->calls; - } - public function setCreated($created) - { - $this->created = $created; - } - public function getCreated() - { - return $this->created; - } - public function setEnd($end) - { - $this->end = $end; - } - public function getEnd() - { - return $this->end; - } - public function setFilter($filter) - { - $this->filter = $filter; - } - public function getFilter() - { - return $this->filter; - } - public function setId($id) - { - $this->id = $id; - } - public function getId() - { - return $this->id; - } - public function setInfo($info) - { - $this->info = $info; - } - public function getInfo() - { - return $this->info; - } - public function setNames($names) - { - $this->names = $names; - } - public function getNames() - { - return $this->names; - } - public function setQuality($quality) - { - $this->quality = $quality; - } - public function getQuality() - { - return $this->quality; - } - public function setReferenceBases($referenceBases) - { - $this->referenceBases = $referenceBases; - } - public function getReferenceBases() - { - return $this->referenceBases; - } - public function setReferenceName($referenceName) - { - $this->referenceName = $referenceName; - } - public function getReferenceName() - { - return $this->referenceName; - } - public function setStart($start) - { - $this->start = $start; - } - public function getStart() - { - return $this->start; - } - public function setVariantSetId($variantSetId) - { - $this->variantSetId = $variantSetId; - } - public function getVariantSetId() - { - return $this->variantSetId; - } -} - -class Google_Service_Genomics_VariantInfo extends Google_Model -{ -} - -class Google_Service_Genomics_VariantSet extends Google_Collection -{ - protected $collection_key = 'referenceBounds'; - protected $internal_gapi_mappings = array( - ); - public $datasetId; - public $id; - protected $metadataType = 'Google_Service_Genomics_Metadata'; - protected $metadataDataType = 'array'; - protected $referenceBoundsType = 'Google_Service_Genomics_ReferenceBound'; - protected $referenceBoundsDataType = 'array'; - - - public function setDatasetId($datasetId) - { - $this->datasetId = $datasetId; - } - public function getDatasetId() - { - return $this->datasetId; - } - public function setId($id) - { - $this->id = $id; - } - public function getId() - { - return $this->id; - } - public function setMetadata($metadata) - { - $this->metadata = $metadata; - } - public function getMetadata() - { - return $this->metadata; - } - public function setReferenceBounds($referenceBounds) - { - $this->referenceBounds = $referenceBounds; - } - public function getReferenceBounds() - { - return $this->referenceBounds; } } diff --git a/lib/google/src/Google/Service/Gmail.php b/lib/google/src/Google/Service/Gmail.php index 5fcd7ad2c6a..bd38677dec3 100644 --- a/lib/google/src/Google/Service/Gmail.php +++ b/lib/google/src/Google/Service/Gmail.php @@ -36,6 +36,12 @@ class Google_Service_Gmail extends Google_Service /** Manage drafts and send emails. */ const GMAIL_COMPOSE = "https://www.googleapis.com/auth/gmail.compose"; + /** Insert mail into your mailbox. */ + const GMAIL_INSERT = + "https://www.googleapis.com/auth/gmail.insert"; + /** Manage mailbox labels. */ + const GMAIL_LABELS = + "https://www.googleapis.com/auth/gmail.labels"; /** View and modify but not delete your email. */ const GMAIL_MODIFY = "https://www.googleapis.com/auth/gmail.modify"; @@ -60,6 +66,7 @@ class Google_Service_Gmail extends Google_Service public function __construct(Google_Client $client) { parent::__construct($client); + $this->rootUrl = 'https://www.googleapis.com/'; $this->servicePath = 'gmail/v1/users/'; $this->version = 'v1'; $this->serviceName = 'gmail'; @@ -80,6 +87,26 @@ class Google_Service_Gmail extends Google_Service 'required' => true, ), ), + ),'stop' => array( + 'path' => '{userId}/stop', + 'httpMethod' => 'POST', + 'parameters' => array( + 'userId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ),'watch' => array( + 'path' => '{userId}/watch', + 'httpMethod' => 'POST', + 'parameters' => array( + 'userId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), ), ) ) @@ -361,10 +388,22 @@ class Google_Service_Gmail extends Google_Service 'type' => 'string', 'required' => true, ), + 'deleted' => array( + 'location' => 'query', + 'type' => 'boolean', + ), + 'processForCalendar' => array( + 'location' => 'query', + 'type' => 'boolean', + ), 'internalDateSource' => array( 'location' => 'query', 'type' => 'string', ), + 'neverMarkSpam' => array( + 'location' => 'query', + 'type' => 'boolean', + ), ), ),'insert' => array( 'path' => '{userId}/messages', @@ -375,6 +414,10 @@ class Google_Service_Gmail extends Google_Service 'type' => 'string', 'required' => true, ), + 'deleted' => array( + 'location' => 'query', + 'type' => 'boolean', + ), 'internalDateSource' => array( 'location' => 'query', 'type' => 'string', @@ -654,6 +697,37 @@ class Google_Service_Gmail_Users_Resource extends Google_Service_Resource $params = array_merge($params, $optParams); return $this->call('getProfile', array($params), "Google_Service_Gmail_Profile"); } + + /** + * Stop receiving push notifications for the given user mailbox. (users.stop) + * + * @param string $userId The user's email address. The special value me can be + * used to indicate the authenticated user. + * @param array $optParams Optional parameters. + */ + public function stop($userId, $optParams = array()) + { + $params = array('userId' => $userId); + $params = array_merge($params, $optParams); + return $this->call('stop', array($params)); + } + + /** + * Set up or update a push notification watch on the given user mailbox. + * (users.watch) + * + * @param string $userId The user's email address. The special value me can be + * used to indicate the authenticated user. + * @param Google_WatchRequest $postBody + * @param array $optParams Optional parameters. + * @return Google_Service_Gmail_WatchResponse + */ + public function watch($userId, Google_Service_Gmail_WatchRequest $postBody, $optParams = array()) + { + $params = array('userId' => $userId, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('watch', array($params), "Google_Service_Gmail_WatchResponse"); + } } /** @@ -800,10 +874,11 @@ class Google_Service_Gmail_UsersHistory_Resource extends Google_Service_Resource * increase chronologically but are not contiguous with random gaps in between * valid IDs. Supplying an invalid or out of date startHistoryId typically * returns an HTTP 404 error code. A historyId is typically valid for at least a - * week, but in some circumstances may be valid for only a few hours. If you - * receive an HTTP 404 error response, your application should perform a full - * sync. If you receive no nextPageToken in the response, there are no updates - * to retrieve and you can store the returned historyId for a future request. + * week, but in some rare circumstances may be valid for only a few hours. If + * you receive an HTTP 404 error response, your application should perform a + * full sync. If you receive no nextPageToken in the response, there are no + * updates to retrieve and you can store the returned historyId for a future + * request. * @return Google_Service_Gmail_ListHistoryResponse */ public function listUsersHistory($userId, $optParams = array()) @@ -979,8 +1054,15 @@ class Google_Service_Gmail_UsersMessages_Resource extends Google_Service_Resourc * @param Google_Message $postBody * @param array $optParams Optional parameters. * + * @opt_param bool deleted Mark the email as permanently deleted (not TRASH) and + * only visible in Google Apps Vault to a Vault administrator. Only used for + * Google Apps for Work accounts. + * @opt_param bool processForCalendar Process calendar invites in the email and + * add any extracted meetings to the Google Calendar for this user. * @opt_param string internalDateSource Source for Gmail's internal date of the * message. + * @opt_param bool neverMarkSpam Ignore the Gmail spam classifier decision and + * never mark this email as SPAM in the mailbox. * @return Google_Service_Gmail_Message */ public function import($userId, Google_Service_Gmail_Message $postBody, $optParams = array()) @@ -1000,6 +1082,9 @@ class Google_Service_Gmail_UsersMessages_Resource extends Google_Service_Resourc * @param Google_Message $postBody * @param array $optParams Optional parameters. * + * @opt_param bool deleted Mark the email as permanently deleted (not TRASH) and + * only visible in Google Apps Vault to a Vault administrator. Only used for + * Google Apps for Work accounts. * @opt_param string internalDateSource Source for Gmail's internal date of the * message. * @return Google_Service_Gmail_Message @@ -1288,12 +1373,20 @@ class Google_Service_Gmail_Draft extends Google_Model class Google_Service_Gmail_History extends Google_Collection { - protected $collection_key = 'messages'; + protected $collection_key = 'messagesDeleted'; protected $internal_gapi_mappings = array( ); public $id; + protected $labelsAddedType = 'Google_Service_Gmail_HistoryLabelAdded'; + protected $labelsAddedDataType = 'array'; + protected $labelsRemovedType = 'Google_Service_Gmail_HistoryLabelRemoved'; + protected $labelsRemovedDataType = 'array'; protected $messagesType = 'Google_Service_Gmail_Message'; protected $messagesDataType = 'array'; + protected $messagesAddedType = 'Google_Service_Gmail_HistoryMessageAdded'; + protected $messagesAddedDataType = 'array'; + protected $messagesDeletedType = 'Google_Service_Gmail_HistoryMessageDeleted'; + protected $messagesDeletedDataType = 'array'; public function setId($id) @@ -1304,6 +1397,22 @@ class Google_Service_Gmail_History extends Google_Collection { return $this->id; } + public function setLabelsAdded($labelsAdded) + { + $this->labelsAdded = $labelsAdded; + } + public function getLabelsAdded() + { + return $this->labelsAdded; + } + public function setLabelsRemoved($labelsRemoved) + { + $this->labelsRemoved = $labelsRemoved; + } + public function getLabelsRemoved() + { + return $this->labelsRemoved; + } public function setMessages($messages) { $this->messages = $messages; @@ -1312,6 +1421,114 @@ class Google_Service_Gmail_History extends Google_Collection { return $this->messages; } + public function setMessagesAdded($messagesAdded) + { + $this->messagesAdded = $messagesAdded; + } + public function getMessagesAdded() + { + return $this->messagesAdded; + } + public function setMessagesDeleted($messagesDeleted) + { + $this->messagesDeleted = $messagesDeleted; + } + public function getMessagesDeleted() + { + return $this->messagesDeleted; + } +} + +class Google_Service_Gmail_HistoryLabelAdded extends Google_Collection +{ + protected $collection_key = 'labelIds'; + protected $internal_gapi_mappings = array( + ); + public $labelIds; + protected $messageType = 'Google_Service_Gmail_Message'; + protected $messageDataType = ''; + + + public function setLabelIds($labelIds) + { + $this->labelIds = $labelIds; + } + public function getLabelIds() + { + return $this->labelIds; + } + public function setMessage(Google_Service_Gmail_Message $message) + { + $this->message = $message; + } + public function getMessage() + { + return $this->message; + } +} + +class Google_Service_Gmail_HistoryLabelRemoved extends Google_Collection +{ + protected $collection_key = 'labelIds'; + protected $internal_gapi_mappings = array( + ); + public $labelIds; + protected $messageType = 'Google_Service_Gmail_Message'; + protected $messageDataType = ''; + + + public function setLabelIds($labelIds) + { + $this->labelIds = $labelIds; + } + public function getLabelIds() + { + return $this->labelIds; + } + public function setMessage(Google_Service_Gmail_Message $message) + { + $this->message = $message; + } + public function getMessage() + { + return $this->message; + } +} + +class Google_Service_Gmail_HistoryMessageAdded extends Google_Model +{ + protected $internal_gapi_mappings = array( + ); + protected $messageType = 'Google_Service_Gmail_Message'; + protected $messageDataType = ''; + + + public function setMessage(Google_Service_Gmail_Message $message) + { + $this->message = $message; + } + public function getMessage() + { + return $this->message; + } +} + +class Google_Service_Gmail_HistoryMessageDeleted extends Google_Model +{ + protected $internal_gapi_mappings = array( + ); + protected $messageType = 'Google_Service_Gmail_Message'; + protected $messageDataType = ''; + + + public function setMessage(Google_Service_Gmail_Message $message) + { + $this->message = $message; + } + public function getMessage() + { + return $this->message; + } } class Google_Service_Gmail_Label extends Google_Model @@ -1577,6 +1794,7 @@ class Google_Service_Gmail_Message extends Google_Collection ); public $historyId; public $id; + public $internalDate; public $labelIds; protected $payloadType = 'Google_Service_Gmail_MessagePart'; protected $payloadDataType = ''; @@ -1602,6 +1820,14 @@ class Google_Service_Gmail_Message extends Google_Collection { return $this->id; } + public function setInternalDate($internalDate) + { + $this->internalDate = $internalDate; + } + public function getInternalDate() + { + return $this->internalDate; + } public function setLabelIds($labelIds) { $this->labelIds = $labelIds; @@ -1922,3 +2148,65 @@ class Google_Service_Gmail_Thread extends Google_Collection return $this->snippet; } } + +class Google_Service_Gmail_WatchRequest extends Google_Collection +{ + protected $collection_key = 'labelIds'; + protected $internal_gapi_mappings = array( + ); + public $labelFilterAction; + public $labelIds; + public $topicName; + + + public function setLabelFilterAction($labelFilterAction) + { + $this->labelFilterAction = $labelFilterAction; + } + public function getLabelFilterAction() + { + return $this->labelFilterAction; + } + public function setLabelIds($labelIds) + { + $this->labelIds = $labelIds; + } + public function getLabelIds() + { + return $this->labelIds; + } + public function setTopicName($topicName) + { + $this->topicName = $topicName; + } + public function getTopicName() + { + return $this->topicName; + } +} + +class Google_Service_Gmail_WatchResponse extends Google_Model +{ + protected $internal_gapi_mappings = array( + ); + public $expiration; + public $historyId; + + + public function setExpiration($expiration) + { + $this->expiration = $expiration; + } + public function getExpiration() + { + return $this->expiration; + } + public function setHistoryId($historyId) + { + $this->historyId = $historyId; + } + public function getHistoryId() + { + return $this->historyId; + } +} diff --git a/lib/google/src/Google/Service/GroupsMigration.php b/lib/google/src/Google/Service/GroupsMigration.php index 4c7ce4aabf7..a1354e14078 100644 --- a/lib/google/src/Google/Service/GroupsMigration.php +++ b/lib/google/src/Google/Service/GroupsMigration.php @@ -30,7 +30,9 @@ */ class Google_Service_GroupsMigration extends Google_Service { - + /** Manage messages in groups on your domain. */ + const APPS_GROUPS_MIGRATION = + "https://www.googleapis.com/auth/apps.groups.migration"; public $archive; @@ -43,6 +45,7 @@ class Google_Service_GroupsMigration extends Google_Service public function __construct(Google_Client $client) { parent::__construct($client); + $this->rootUrl = 'https://www.googleapis.com/'; $this->servicePath = 'groups/v1/groups/'; $this->version = 'v1'; $this->serviceName = 'groupsmigration'; diff --git a/lib/google/src/Google/Service/Groupssettings.php b/lib/google/src/Google/Service/Groupssettings.php index c8c3dfed57f..b358bf0dadb 100644 --- a/lib/google/src/Google/Service/Groupssettings.php +++ b/lib/google/src/Google/Service/Groupssettings.php @@ -45,6 +45,7 @@ class Google_Service_Groupssettings extends Google_Service public function __construct(Google_Client $client) { parent::__construct($client); + $this->rootUrl = 'https://www.googleapis.com/'; $this->servicePath = 'groups/v1/groups/'; $this->version = 'v1'; $this->serviceName = 'groupssettings'; diff --git a/lib/google/src/Google/Service/IdentityToolkit.php b/lib/google/src/Google/Service/IdentityToolkit.php index 9d39016a175..32cf66f2951 100644 --- a/lib/google/src/Google/Service/IdentityToolkit.php +++ b/lib/google/src/Google/Service/IdentityToolkit.php @@ -43,6 +43,7 @@ class Google_Service_IdentityToolkit extends Google_Service public function __construct(Google_Client $client) { parent::__construct($client); + $this->rootUrl = 'https://www.googleapis.com/'; $this->servicePath = 'identitytoolkit/v3/relyingparty/'; $this->version = 'v3'; $this->serviceName = 'identitytoolkit'; @@ -77,6 +78,10 @@ class Google_Service_IdentityToolkit extends Google_Service 'path' => 'publicKeys', 'httpMethod' => 'GET', 'parameters' => array(), + ),'getRecaptchaParam' => array( + 'path' => 'getRecaptchaParam', + 'httpMethod' => 'GET', + 'parameters' => array(), ),'resetPassword' => array( 'path' => 'resetPassword', 'httpMethod' => 'POST', @@ -201,6 +206,19 @@ class Google_Service_IdentityToolkit_Relyingparty_Resource extends Google_Servic return $this->call('getPublicKeys', array($params), "Google_Service_IdentityToolkit_IdentitytoolkitRelyingpartyGetPublicKeysResponse"); } + /** + * Get recaptcha secure param. (relyingparty.getRecaptchaParam) + * + * @param array $optParams Optional parameters. + * @return Google_Service_IdentityToolkit_GetRecaptchaParamResponse + */ + public function getRecaptchaParam($optParams = array()) + { + $params = array(); + $params = array_merge($params, $optParams); + return $this->call('getRecaptchaParam', array($params), "Google_Service_IdentityToolkit_GetRecaptchaParamResponse"); + } + /** * Reset password for a user. (relyingparty.resetPassword) * @@ -445,6 +463,41 @@ class Google_Service_IdentityToolkit_GetOobConfirmationCodeResponse extends Goog } } +class Google_Service_IdentityToolkit_GetRecaptchaParamResponse extends Google_Model +{ + protected $internal_gapi_mappings = array( + ); + public $kind; + public $recaptchaSiteKey; + public $recaptchaStoken; + + + public function setKind($kind) + { + $this->kind = $kind; + } + public function getKind() + { + return $this->kind; + } + public function setRecaptchaSiteKey($recaptchaSiteKey) + { + $this->recaptchaSiteKey = $recaptchaSiteKey; + } + public function getRecaptchaSiteKey() + { + return $this->recaptchaSiteKey; + } + public function setRecaptchaStoken($recaptchaStoken) + { + $this->recaptchaStoken = $recaptchaStoken; + } + public function getRecaptchaStoken() + { + return $this->recaptchaStoken; + } +} + class Google_Service_IdentityToolkit_IdentitytoolkitRelyingpartyCreateAuthUriRequest extends Google_Model { protected $internal_gapi_mappings = array( @@ -454,6 +507,8 @@ class Google_Service_IdentityToolkit_IdentitytoolkitRelyingpartyCreateAuthUriReq public $context; public $continueUri; public $identifier; + public $oauthConsumerKey; + public $oauthScope; public $openidRealm; public $otaApp; public $providerId; @@ -499,6 +554,22 @@ class Google_Service_IdentityToolkit_IdentitytoolkitRelyingpartyCreateAuthUriReq { return $this->identifier; } + public function setOauthConsumerKey($oauthConsumerKey) + { + $this->oauthConsumerKey = $oauthConsumerKey; + } + public function getOauthConsumerKey() + { + return $this->oauthConsumerKey; + } + public function setOauthScope($oauthScope) + { + $this->oauthScope = $oauthScope; + } + public function getOauthScope() + { + return $this->oauthScope; + } public function setOpenidRealm($openidRealm) { $this->openidRealm = $openidRealm; @@ -659,6 +730,7 @@ class Google_Service_IdentityToolkit_IdentitytoolkitRelyingpartySetAccountInfoRe ); public $captchaChallenge; public $captchaResponse; + public $disableUser; public $displayName; public $email; public $emailVerified; @@ -668,6 +740,7 @@ class Google_Service_IdentityToolkit_IdentitytoolkitRelyingpartySetAccountInfoRe public $password; public $provider; public $upgradeToFederatedLogin; + public $validSince; public function setCaptchaChallenge($captchaChallenge) @@ -686,6 +759,14 @@ class Google_Service_IdentityToolkit_IdentitytoolkitRelyingpartySetAccountInfoRe { return $this->captchaResponse; } + public function setDisableUser($disableUser) + { + $this->disableUser = $disableUser; + } + public function getDisableUser() + { + return $this->disableUser; + } public function setDisplayName($displayName) { $this->displayName = $displayName; @@ -758,6 +839,14 @@ class Google_Service_IdentityToolkit_IdentitytoolkitRelyingpartySetAccountInfoRe { return $this->upgradeToFederatedLogin; } + public function setValidSince($validSince) + { + $this->validSince = $validSince; + } + public function getValidSince() + { + return $this->validSince; + } } class Google_Service_IdentityToolkit_IdentitytoolkitRelyingpartyUploadAccountRequest extends Google_Collection @@ -831,6 +920,7 @@ class Google_Service_IdentityToolkit_IdentitytoolkitRelyingpartyVerifyAssertionR public $pendingIdToken; public $postBody; public $requestUri; + public $returnRefreshToken; public function setPendingIdToken($pendingIdToken) @@ -857,6 +947,14 @@ class Google_Service_IdentityToolkit_IdentitytoolkitRelyingpartyVerifyAssertionR { return $this->requestUri; } + public function setReturnRefreshToken($returnRefreshToken) + { + $this->returnRefreshToken = $returnRefreshToken; + } + public function getReturnRefreshToken() + { + return $this->returnRefreshToken; + } } class Google_Service_IdentityToolkit_IdentitytoolkitRelyingpartyVerifyPasswordRequest extends Google_Model @@ -1167,6 +1265,7 @@ class Google_Service_IdentityToolkit_UserInfo extends Google_Collection protected $collection_key = 'providerUserInfo'; protected $internal_gapi_mappings = array( ); + public $disabled; public $displayName; public $email; public $emailVerified; @@ -1177,9 +1276,18 @@ class Google_Service_IdentityToolkit_UserInfo extends Google_Collection protected $providerUserInfoType = 'Google_Service_IdentityToolkit_UserInfoProviderUserInfo'; protected $providerUserInfoDataType = 'array'; public $salt; + public $validSince; public $version; + public function setDisabled($disabled) + { + $this->disabled = $disabled; + } + public function getDisabled() + { + return $this->disabled; + } public function setDisplayName($displayName) { $this->displayName = $displayName; @@ -1252,6 +1360,14 @@ class Google_Service_IdentityToolkit_UserInfo extends Google_Collection { return $this->salt; } + public function setValidSince($validSince) + { + $this->validSince = $validSince; + } + public function getValidSince() + { + return $this->validSince; + } public function setVersion($version) { $this->version = $version; @@ -1331,6 +1447,9 @@ class Google_Service_IdentityToolkit_VerifyAssertionResponse extends Google_Coll public $localId; public $needConfirmation; public $nickName; + public $oauthAccessToken; + public $oauthAuthorizationCode; + public $oauthExpireIn; public $oauthRequestToken; public $oauthScope; public $originalEmail; @@ -1500,6 +1619,30 @@ class Google_Service_IdentityToolkit_VerifyAssertionResponse extends Google_Coll { return $this->nickName; } + public function setOauthAccessToken($oauthAccessToken) + { + $this->oauthAccessToken = $oauthAccessToken; + } + public function getOauthAccessToken() + { + return $this->oauthAccessToken; + } + public function setOauthAuthorizationCode($oauthAuthorizationCode) + { + $this->oauthAuthorizationCode = $oauthAuthorizationCode; + } + public function getOauthAuthorizationCode() + { + return $this->oauthAuthorizationCode; + } + public function setOauthExpireIn($oauthExpireIn) + { + $this->oauthExpireIn = $oauthExpireIn; + } + public function getOauthExpireIn() + { + return $this->oauthExpireIn; + } public function setOauthRequestToken($oauthRequestToken) { $this->oauthRequestToken = $oauthRequestToken; diff --git a/lib/google/src/Google/Service/Licensing.php b/lib/google/src/Google/Service/Licensing.php index 40d4c477dd2..5aa111b4b89 100644 --- a/lib/google/src/Google/Service/Licensing.php +++ b/lib/google/src/Google/Service/Licensing.php @@ -30,7 +30,9 @@ */ class Google_Service_Licensing extends Google_Service { - + /** View and manage Google Apps licenses for your domain. */ + const APPS_LICENSING = + "https://www.googleapis.com/auth/apps.licensing"; public $licenseAssignments; @@ -43,6 +45,7 @@ class Google_Service_Licensing extends Google_Service public function __construct(Google_Client $client) { parent::__construct($client); + $this->rootUrl = 'https://www.googleapis.com/'; $this->servicePath = 'apps/licensing/v1/product/'; $this->version = 'v1'; $this->serviceName = 'licensing'; diff --git a/lib/google/src/Google/Service/Logging.php b/lib/google/src/Google/Service/Logging.php new file mode 100644 index 00000000000..7eeaa8f39cc --- /dev/null +++ b/lib/google/src/Google/Service/Logging.php @@ -0,0 +1,1301 @@ + + * Google Cloud Logging API lets you create logs, ingest log entries, and manage + * log sinks.

+ * + *

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

+ * + * @author Google, Inc. + */ +class Google_Service_Logging extends Google_Service +{ + /** View and manage your data across Google Cloud Platform services. */ + const CLOUD_PLATFORM = + "https://www.googleapis.com/auth/cloud-platform"; + + public $projects_logServices; + public $projects_logServices_indexes; + public $projects_logServices_sinks; + public $projects_logs; + public $projects_logs_entries; + public $projects_logs_sinks; + + + /** + * Constructs the internal representation of the Logging service. + * + * @param Google_Client $client + */ + public function __construct(Google_Client $client) + { + parent::__construct($client); + $this->rootUrl = 'https://logging.googleapis.com/'; + $this->servicePath = ''; + $this->version = 'v1beta3'; + $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 +{ + + /** + * 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()) + { + $params = array('projectsId' => $projectsId, 'logsId' => $logsId, 'sinksId' => $sinksId); + $params = array_merge($params, $optParams); + return $this->call('delete', array($params), "Google_Service_Logging_Empty"); + } + + /** + * 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()) + { + $params = array('projectsId' => $projectsId, 'logsId' => $logsId, 'sinksId' => $sinksId); + $params = array_merge($params, $optParams); + return $this->call('get', array($params), "Google_Service_Logging_LogSink"); + } + + /** + * 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()) + { + $params = array('projectsId' => $projectsId, 'logsId' => $logsId); + $params = array_merge($params, $optParams); + return $this->call('list', array($params), "Google_Service_Logging_ListLogSinksResponse"); + } + + /** + * 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()) + { + $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"); + } +} + + + + +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) + { + $this->nextPageToken = $nextPageToken; + } + public function getNextPageToken() + { + return $this->nextPageToken; + } + public function setServiceIndexPrefixes($serviceIndexPrefixes) + { + $this->serviceIndexPrefixes = $serviceIndexPrefixes; + } + public function getServiceIndexPrefixes() + { + return $this->serviceIndexPrefixes; + } +} + +class Google_Service_Logging_ListLogServiceSinksResponse extends Google_Collection +{ + protected $collection_key = 'sinks'; + protected $internal_gapi_mappings = array( + ); + protected $sinksType = 'Google_Service_Logging_LogSink'; + protected $sinksDataType = 'array'; + + + public function setSinks($sinks) + { + $this->sinks = $sinks; + } + public function getSinks() + { + return $this->sinks; + } +} + +class Google_Service_Logging_ListLogServicesResponse extends Google_Collection +{ + protected $collection_key = 'logServices'; + protected $internal_gapi_mappings = array( + ); + protected $logServicesType = 'Google_Service_Logging_LogService'; + protected $logServicesDataType = 'array'; + public $nextPageToken; + + + public function setLogServices($logServices) + { + $this->logServices = $logServices; + } + public function getLogServices() + { + return $this->logServices; + } + public function setNextPageToken($nextPageToken) + { + $this->nextPageToken = $nextPageToken; + } + public function getNextPageToken() + { + return $this->nextPageToken; + } +} + +class Google_Service_Logging_ListLogSinksResponse extends Google_Collection +{ + protected $collection_key = 'sinks'; + protected $internal_gapi_mappings = array( + ); + protected $sinksType = 'Google_Service_Logging_LogSink'; + protected $sinksDataType = 'array'; + + + public function setSinks($sinks) + { + $this->sinks = $sinks; + } + public function getSinks() + { + return $this->sinks; + } +} + +class Google_Service_Logging_ListLogsResponse extends Google_Collection +{ + protected $collection_key = 'logs'; + protected $internal_gapi_mappings = array( + ); + protected $logsType = 'Google_Service_Logging_Log'; + protected $logsDataType = 'array'; + public $nextPageToken; + + + public function setLogs($logs) + { + $this->logs = $logs; + } + public function getLogs() + { + return $this->logs; + } + public function setNextPageToken($nextPageToken) + { + $this->nextPageToken = $nextPageToken; + } + public function getNextPageToken() + { + return $this->nextPageToken; + } +} + +class Google_Service_Logging_Log extends Google_Model +{ + protected $internal_gapi_mappings = array( + ); + public $displayName; + public $name; + public $payloadType; + + + public function setDisplayName($displayName) + { + $this->displayName = $displayName; + } + public function getDisplayName() + { + return $this->displayName; + } + public function setName($name) + { + $this->name = $name; + } + public function getName() + { + return $this->name; + } + public function setPayloadType($payloadType) + { + $this->payloadType = $payloadType; + } + public function getPayloadType() + { + return $this->payloadType; + } +} + +class Google_Service_Logging_LogEntry extends Google_Model +{ + protected $internal_gapi_mappings = array( + ); + public $insertId; + public $log; + protected $metadataType = 'Google_Service_Logging_LogEntryMetadata'; + protected $metadataDataType = ''; + public $protoPayload; + public $structPayload; + public $textPayload; + + + public function setInsertId($insertId) + { + $this->insertId = $insertId; + } + public function getInsertId() + { + return $this->insertId; + } + public function setLog($log) + { + $this->log = $log; + } + public function getLog() + { + return $this->log; + } + public function setMetadata(Google_Service_Logging_LogEntryMetadata $metadata) + { + $this->metadata = $metadata; + } + public function getMetadata() + { + return $this->metadata; + } + public function setProtoPayload($protoPayload) + { + $this->protoPayload = $protoPayload; + } + public function getProtoPayload() + { + return $this->protoPayload; + } + public function setStructPayload($structPayload) + { + $this->structPayload = $structPayload; + } + public function getStructPayload() + { + return $this->structPayload; + } + public function setTextPayload($textPayload) + { + $this->textPayload = $textPayload; + } + public function getTextPayload() + { + return $this->textPayload; + } +} + +class Google_Service_Logging_LogEntryMetadata extends Google_Model +{ + protected $internal_gapi_mappings = array( + ); + public $labels; + public $projectId; + public $region; + public $serviceName; + public $severity; + public $timestamp; + public $userId; + public $zone; + + + public function setLabels($labels) + { + $this->labels = $labels; + } + public function getLabels() + { + return $this->labels; + } + public function setProjectId($projectId) + { + $this->projectId = $projectId; + } + public function getProjectId() + { + return $this->projectId; + } + public function setRegion($region) + { + $this->region = $region; + } + public function getRegion() + { + return $this->region; + } + public function setServiceName($serviceName) + { + $this->serviceName = $serviceName; + } + public function getServiceName() + { + return $this->serviceName; + } + public function setSeverity($severity) + { + $this->severity = $severity; + } + public function getSeverity() + { + return $this->severity; + } + public function setTimestamp($timestamp) + { + $this->timestamp = $timestamp; + } + public function getTimestamp() + { + return $this->timestamp; + } + public function setUserId($userId) + { + $this->userId = $userId; + } + public function getUserId() + { + return $this->userId; + } + public function setZone($zone) + { + $this->zone = $zone; + } + public function getZone() + { + return $this->zone; + } +} + +class Google_Service_Logging_LogEntryMetadataLabels extends Google_Model +{ +} + +class Google_Service_Logging_LogEntryProtoPayload extends Google_Model +{ +} + +class Google_Service_Logging_LogEntryStructPayload extends Google_Model +{ +} + +class Google_Service_Logging_LogError extends Google_Model +{ + protected $internal_gapi_mappings = array( + ); + public $resource; + protected $statusType = 'Google_Service_Logging_Status'; + protected $statusDataType = ''; + public $timeNanos; + + + public function setResource($resource) + { + $this->resource = $resource; + } + public function getResource() + { + return $this->resource; + } + public function setStatus(Google_Service_Logging_Status $status) + { + $this->status = $status; + } + public function getStatus() + { + return $this->status; + } + public function setTimeNanos($timeNanos) + { + $this->timeNanos = $timeNanos; + } + public function getTimeNanos() + { + return $this->timeNanos; + } +} + +class Google_Service_Logging_LogService extends Google_Collection +{ + protected $collection_key = 'indexKeys'; + protected $internal_gapi_mappings = array( + ); + public $indexKeys; + public $name; + + + public function setIndexKeys($indexKeys) + { + $this->indexKeys = $indexKeys; + } + public function getIndexKeys() + { + return $this->indexKeys; + } + public function setName($name) + { + $this->name = $name; + } + public function getName() + { + return $this->name; + } +} + +class Google_Service_Logging_LogSink extends Google_Collection +{ + protected $collection_key = 'errors'; + protected $internal_gapi_mappings = array( + ); + public $destination; + protected $errorsType = 'Google_Service_Logging_LogError'; + protected $errorsDataType = 'array'; + public $name; + + + public function setDestination($destination) + { + $this->destination = $destination; + } + public function getDestination() + { + return $this->destination; + } + public function setErrors($errors) + { + $this->errors = $errors; + } + public function getErrors() + { + return $this->errors; + } + public function setName($name) + { + $this->name = $name; + } + public function getName() + { + return $this->name; + } +} + +class Google_Service_Logging_Status extends Google_Collection +{ + protected $collection_key = 'details'; + protected $internal_gapi_mappings = array( + ); + public $code; + public $details; + public $message; + + + public function setCode($code) + { + $this->code = $code; + } + public function getCode() + { + return $this->code; + } + public function setDetails($details) + { + $this->details = $details; + } + public function getDetails() + { + return $this->details; + } + public function setMessage($message) + { + $this->message = $message; + } + public function getMessage() + { + return $this->message; + } +} + +class Google_Service_Logging_StatusDetails extends Google_Model +{ +} + +class Google_Service_Logging_WriteLogEntriesRequest extends Google_Collection +{ + protected $collection_key = 'entries'; + protected $internal_gapi_mappings = array( + ); + public $commonLabels; + protected $entriesType = 'Google_Service_Logging_LogEntry'; + protected $entriesDataType = 'array'; + + + public function setCommonLabels($commonLabels) + { + $this->commonLabels = $commonLabels; + } + public function getCommonLabels() + { + return $this->commonLabels; + } + public function setEntries($entries) + { + $this->entries = $entries; + } + public function getEntries() + { + return $this->entries; + } +} + +class Google_Service_Logging_WriteLogEntriesRequestCommonLabels extends Google_Model +{ +} + +class Google_Service_Logging_WriteLogEntriesResponse extends Google_Model +{ +} diff --git a/lib/google/src/Google/Service/Manager.php b/lib/google/src/Google/Service/Manager.php index 98c3eb5d33a..5e4edb2c279 100644 --- a/lib/google/src/Google/Service/Manager.php +++ b/lib/google/src/Google/Service/Manager.php @@ -62,6 +62,7 @@ class Google_Service_Manager extends Google_Service public function __construct(Google_Client $client) { parent::__construct($client); + $this->rootUrl = 'https://www.googleapis.com/'; $this->servicePath = 'manager/v1beta2/projects/'; $this->version = 'v1beta2'; $this->serviceName = 'manager'; diff --git a/lib/google/src/Google/Service/MapsEngine.php b/lib/google/src/Google/Service/MapsEngine.php index 728b10d8932..88a982c2942 100644 --- a/lib/google/src/Google/Service/MapsEngine.php +++ b/lib/google/src/Google/Service/MapsEngine.php @@ -71,6 +71,7 @@ class Google_Service_MapsEngine extends Google_Service public function __construct(Google_Client $client) { parent::__construct($client); + $this->rootUrl = 'https://www.googleapis.com/'; $this->servicePath = 'mapsengine/v1/'; $this->version = 'v1'; $this->serviceName = 'mapsengine'; diff --git a/lib/google/src/Google/Service/Mirror.php b/lib/google/src/Google/Service/Mirror.php index d49b0564ed7..cd1268395b3 100644 --- a/lib/google/src/Google/Service/Mirror.php +++ b/lib/google/src/Google/Service/Mirror.php @@ -54,6 +54,7 @@ class Google_Service_Mirror extends Google_Service public function __construct(Google_Client $client) { parent::__construct($client); + $this->rootUrl = 'https://www.googleapis.com/'; $this->servicePath = 'mirror/v1/'; $this->version = 'v1'; $this->serviceName = 'mirror'; diff --git a/lib/google/src/Google/Service/Oauth2.php b/lib/google/src/Google/Service/Oauth2.php index 8a42c1b45c3..f69c353f7d6 100644 --- a/lib/google/src/Google/Service/Oauth2.php +++ b/lib/google/src/Google/Service/Oauth2.php @@ -55,6 +55,7 @@ class Google_Service_Oauth2 extends Google_Service public function __construct(Google_Client $client) { parent::__construct($client); + $this->rootUrl = 'https://www.googleapis.com/'; $this->servicePath = ''; $this->version = 'v2'; $this->serviceName = 'oauth2'; @@ -93,7 +94,11 @@ class Google_Service_Oauth2 extends Google_Service '', array( 'methods' => array( - 'tokeninfo' => array( + 'getCertForOpenIdConnect' => array( + 'path' => 'oauth2/v2/certs', + 'httpMethod' => 'GET', + 'parameters' => array(), + ),'tokeninfo' => array( 'path' => 'oauth2/v2/tokeninfo', 'httpMethod' => 'POST', 'parameters' => array( @@ -105,12 +110,28 @@ class Google_Service_Oauth2 extends Google_Service 'location' => 'query', 'type' => 'string', ), + 'token_handle' => array( + 'location' => 'query', + 'type' => 'string', + ), ), ), ) ) ); } + /** + * (getCertForOpenIdConnect) + * + * @param array $optParams Optional parameters. + * @return Google_Service_Oauth2_Jwk + */ + public function getCertForOpenIdConnect($optParams = array()) + { + $params = array(); + $params = array_merge($params, $optParams); + return $this->base_methods->call('getCertForOpenIdConnect', array($params), "Google_Service_Oauth2_Jwk"); + } /** * (tokeninfo) * @@ -118,6 +139,7 @@ class Google_Service_Oauth2 extends Google_Service * * @opt_param string access_token * @opt_param string id_token + * @opt_param string token_handle * @return Google_Service_Oauth2_Tokeninfo */ public function tokeninfo($optParams = array()) @@ -194,12 +216,94 @@ class Google_Service_Oauth2_UserinfoV2Me_Resource extends Google_Service_Resourc +class Google_Service_Oauth2_Jwk extends Google_Collection +{ + protected $collection_key = 'keys'; + protected $internal_gapi_mappings = array( + ); + protected $keysType = 'Google_Service_Oauth2_JwkKeys'; + protected $keysDataType = 'array'; + + + public function setKeys($keys) + { + $this->keys = $keys; + } + public function getKeys() + { + return $this->keys; + } +} + +class Google_Service_Oauth2_JwkKeys extends Google_Model +{ + protected $internal_gapi_mappings = array( + ); + public $alg; + public $e; + public $kid; + public $kty; + public $n; + public $use; + + + public function setAlg($alg) + { + $this->alg = $alg; + } + public function getAlg() + { + return $this->alg; + } + public function setE($e) + { + $this->e = $e; + } + public function getE() + { + return $this->e; + } + public function setKid($kid) + { + $this->kid = $kid; + } + public function getKid() + { + return $this->kid; + } + public function setKty($kty) + { + $this->kty = $kty; + } + public function getKty() + { + return $this->kty; + } + public function setN($n) + { + $this->n = $n; + } + public function getN() + { + return $this->n; + } + public function setUse($use) + { + $this->use = $use; + } + public function getUse() + { + return $this->use; + } +} + class Google_Service_Oauth2_Tokeninfo extends Google_Model { protected $internal_gapi_mappings = array( "accessType" => "access_type", "expiresIn" => "expires_in", "issuedTo" => "issued_to", + "tokenHandle" => "token_handle", "userId" => "user_id", "verifiedEmail" => "verified_email", ); @@ -209,6 +313,7 @@ class Google_Service_Oauth2_Tokeninfo extends Google_Model public $expiresIn; public $issuedTo; public $scope; + public $tokenHandle; public $userId; public $verifiedEmail; @@ -261,6 +366,14 @@ class Google_Service_Oauth2_Tokeninfo extends Google_Model { return $this->scope; } + public function setTokenHandle($tokenHandle) + { + $this->tokenHandle = $tokenHandle; + } + public function getTokenHandle() + { + return $this->tokenHandle; + } public function setUserId($userId) { $this->userId = $userId; diff --git a/lib/google/src/Google/Service/Pagespeedonline.php b/lib/google/src/Google/Service/Pagespeedonline.php index 02883eecef9..ec16620b65c 100644 --- a/lib/google/src/Google/Service/Pagespeedonline.php +++ b/lib/google/src/Google/Service/Pagespeedonline.php @@ -16,7 +16,7 @@ */ /** - * Service definition for Pagespeedonline (v1). + * Service definition for Pagespeedonline (v2). * *

* Lets you analyze the performance of a web page and get tailored suggestions @@ -24,7 +24,7 @@ * *

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

* * @author Google, Inc. @@ -44,8 +44,9 @@ class Google_Service_Pagespeedonline extends Google_Service public function __construct(Google_Client $client) { parent::__construct($client); - $this->servicePath = 'pagespeedonline/v1/'; - $this->version = 'v1'; + $this->rootUrl = 'https://www.googleapis.com/'; + $this->servicePath = 'pagespeedonline/v2/'; + $this->version = 'v2'; $this->serviceName = 'pagespeedonline'; $this->pagespeedapi = new Google_Service_Pagespeedonline_Pagespeedapi_Resource( @@ -105,8 +106,8 @@ class Google_Service_Pagespeedonline_Pagespeedapi_Resource extends Google_Servic { /** - * Runs Page Speed analysis on the page at the specified URL, and returns a Page - * Speed score, a list of suggestions to make that page faster, and other + * Runs PageSpeed analysis on the page at the specified URL, and returns + * PageSpeed scores, a list of suggestions to make that page faster, and other * information. (pagespeedapi.runpagespeed) * * @param string $url The URL to fetch and analyze @@ -115,7 +116,7 @@ class Google_Service_Pagespeedonline_Pagespeedapi_Resource extends Google_Servic * @opt_param bool screenshot Indicates if binary data containing a screenshot * should be included * @opt_param string locale The locale used to localize formatted results - * @opt_param string rule A Page Speed rule to run; if none are given, all rules + * @opt_param string rule A PageSpeed rule to run; if none are given, all rules * are run * @opt_param string strategy The analysis strategy to use * @opt_param bool filter_third_party_resources Indicates if third party @@ -133,6 +134,288 @@ class Google_Service_Pagespeedonline_Pagespeedapi_Resource extends Google_Servic +class Google_Service_Pagespeedonline_PagespeedApiFormatStringV2 extends Google_Collection +{ + protected $collection_key = 'args'; + protected $internal_gapi_mappings = array( + ); + protected $argsType = 'Google_Service_Pagespeedonline_PagespeedApiFormatStringV2Args'; + protected $argsDataType = 'array'; + public $format; + + + public function setArgs($args) + { + $this->args = $args; + } + public function getArgs() + { + return $this->args; + } + public function setFormat($format) + { + $this->format = $format; + } + public function getFormat() + { + return $this->format; + } +} + +class Google_Service_Pagespeedonline_PagespeedApiFormatStringV2Args extends Google_Collection +{ + protected $collection_key = 'secondary_rects'; + protected $internal_gapi_mappings = array( + "secondaryRects" => "secondary_rects", + ); + public $key; + protected $rectsType = 'Google_Service_Pagespeedonline_PagespeedApiFormatStringV2ArgsRects'; + protected $rectsDataType = 'array'; + protected $secondaryRectsType = 'Google_Service_Pagespeedonline_PagespeedApiFormatStringV2ArgsSecondaryRects'; + protected $secondaryRectsDataType = 'array'; + public $type; + public $value; + + + public function setKey($key) + { + $this->key = $key; + } + public function getKey() + { + return $this->key; + } + public function setRects($rects) + { + $this->rects = $rects; + } + public function getRects() + { + return $this->rects; + } + public function setSecondaryRects($secondaryRects) + { + $this->secondaryRects = $secondaryRects; + } + public function getSecondaryRects() + { + return $this->secondaryRects; + } + public function setType($type) + { + $this->type = $type; + } + public function getType() + { + return $this->type; + } + public function setValue($value) + { + $this->value = $value; + } + public function getValue() + { + return $this->value; + } +} + +class Google_Service_Pagespeedonline_PagespeedApiFormatStringV2ArgsRects extends Google_Model +{ + protected $internal_gapi_mappings = array( + ); + public $height; + public $left; + public $top; + public $width; + + + public function setHeight($height) + { + $this->height = $height; + } + public function getHeight() + { + return $this->height; + } + public function setLeft($left) + { + $this->left = $left; + } + public function getLeft() + { + return $this->left; + } + public function setTop($top) + { + $this->top = $top; + } + public function getTop() + { + return $this->top; + } + public function setWidth($width) + { + $this->width = $width; + } + public function getWidth() + { + return $this->width; + } +} + +class Google_Service_Pagespeedonline_PagespeedApiFormatStringV2ArgsSecondaryRects extends Google_Model +{ + protected $internal_gapi_mappings = array( + ); + public $height; + public $left; + public $top; + public $width; + + + public function setHeight($height) + { + $this->height = $height; + } + public function getHeight() + { + return $this->height; + } + public function setLeft($left) + { + $this->left = $left; + } + public function getLeft() + { + return $this->left; + } + public function setTop($top) + { + $this->top = $top; + } + public function getTop() + { + return $this->top; + } + public function setWidth($width) + { + $this->width = $width; + } + public function getWidth() + { + return $this->width; + } +} + +class Google_Service_Pagespeedonline_PagespeedApiImageV2 extends Google_Model +{ + protected $internal_gapi_mappings = array( + "mimeType" => "mime_type", + "pageRect" => "page_rect", + ); + public $data; + public $height; + public $key; + public $mimeType; + protected $pageRectType = 'Google_Service_Pagespeedonline_PagespeedApiImageV2PageRect'; + protected $pageRectDataType = ''; + public $width; + + + public function setData($data) + { + $this->data = $data; + } + public function getData() + { + return $this->data; + } + public function setHeight($height) + { + $this->height = $height; + } + public function getHeight() + { + return $this->height; + } + public function setKey($key) + { + $this->key = $key; + } + public function getKey() + { + return $this->key; + } + public function setMimeType($mimeType) + { + $this->mimeType = $mimeType; + } + public function getMimeType() + { + return $this->mimeType; + } + public function setPageRect(Google_Service_Pagespeedonline_PagespeedApiImageV2PageRect $pageRect) + { + $this->pageRect = $pageRect; + } + public function getPageRect() + { + return $this->pageRect; + } + public function setWidth($width) + { + $this->width = $width; + } + public function getWidth() + { + return $this->width; + } +} + +class Google_Service_Pagespeedonline_PagespeedApiImageV2PageRect extends Google_Model +{ + protected $internal_gapi_mappings = array( + ); + public $height; + public $left; + public $top; + public $width; + + + public function setHeight($height) + { + $this->height = $height; + } + public function getHeight() + { + return $this->height; + } + public function setLeft($left) + { + $this->left = $left; + } + public function getLeft() + { + return $this->left; + } + public function setTop($top) + { + $this->top = $top; + } + public function getTop() + { + return $this->top; + } + public function setWidth($width) + { + $this->width = $width; + } + public function getWidth() + { + return $this->width; + } +} + class Google_Service_Pagespeedonline_Result extends Google_Collection { protected $collection_key = 'invalidRules'; @@ -146,8 +429,9 @@ class Google_Service_Pagespeedonline_Result extends Google_Collection protected $pageStatsType = 'Google_Service_Pagespeedonline_ResultPageStats'; protected $pageStatsDataType = ''; public $responseCode; - public $score; - protected $screenshotType = 'Google_Service_Pagespeedonline_ResultScreenshot'; + protected $ruleGroupsType = 'Google_Service_Pagespeedonline_ResultRuleGroupsElement'; + protected $ruleGroupsDataType = 'map'; + protected $screenshotType = 'Google_Service_Pagespeedonline_PagespeedApiImageV2'; protected $screenshotDataType = ''; public $title; protected $versionType = 'Google_Service_Pagespeedonline_ResultVersion'; @@ -202,15 +486,15 @@ class Google_Service_Pagespeedonline_Result extends Google_Collection { return $this->responseCode; } - public function setScore($score) + public function setRuleGroups($ruleGroups) { - $this->score = $score; + $this->ruleGroups = $ruleGroups; } - public function getScore() + public function getRuleGroups() { - return $this->score; + return $this->ruleGroups; } - public function setScreenshot(Google_Service_Pagespeedonline_ResultScreenshot $screenshot) + public function setScreenshot(Google_Service_Pagespeedonline_PagespeedApiImageV2 $screenshot) { $this->screenshot = $screenshot; } @@ -272,12 +556,23 @@ class Google_Service_Pagespeedonline_ResultFormattedResultsRuleResultsElement ex protected $collection_key = 'urlBlocks'; protected $internal_gapi_mappings = array( ); + public $groups; public $localizedRuleName; public $ruleImpact; + protected $summaryType = 'Google_Service_Pagespeedonline_PagespeedApiFormatStringV2'; + protected $summaryDataType = ''; protected $urlBlocksType = 'Google_Service_Pagespeedonline_ResultFormattedResultsRuleResultsElementUrlBlocks'; protected $urlBlocksDataType = 'array'; + public function setGroups($groups) + { + $this->groups = $groups; + } + public function getGroups() + { + return $this->groups; + } public function setLocalizedRuleName($localizedRuleName) { $this->localizedRuleName = $localizedRuleName; @@ -294,6 +589,14 @@ class Google_Service_Pagespeedonline_ResultFormattedResultsRuleResultsElement ex { return $this->ruleImpact; } + public function setSummary(Google_Service_Pagespeedonline_PagespeedApiFormatStringV2 $summary) + { + $this->summary = $summary; + } + public function getSummary() + { + return $this->summary; + } public function setUrlBlocks($urlBlocks) { $this->urlBlocks = $urlBlocks; @@ -309,13 +612,13 @@ class Google_Service_Pagespeedonline_ResultFormattedResultsRuleResultsElementUrl protected $collection_key = 'urls'; protected $internal_gapi_mappings = array( ); - protected $headerType = 'Google_Service_Pagespeedonline_ResultFormattedResultsRuleResultsElementUrlBlocksHeader'; + protected $headerType = 'Google_Service_Pagespeedonline_PagespeedApiFormatStringV2'; protected $headerDataType = ''; protected $urlsType = 'Google_Service_Pagespeedonline_ResultFormattedResultsRuleResultsElementUrlBlocksUrls'; protected $urlsDataType = 'array'; - public function setHeader(Google_Service_Pagespeedonline_ResultFormattedResultsRuleResultsElementUrlBlocksHeader $header) + public function setHeader(Google_Service_Pagespeedonline_PagespeedApiFormatStringV2 $header) { $this->header = $header; } @@ -333,68 +636,14 @@ class Google_Service_Pagespeedonline_ResultFormattedResultsRuleResultsElementUrl } } -class Google_Service_Pagespeedonline_ResultFormattedResultsRuleResultsElementUrlBlocksHeader extends Google_Collection -{ - protected $collection_key = 'args'; - protected $internal_gapi_mappings = array( - ); - protected $argsType = 'Google_Service_Pagespeedonline_ResultFormattedResultsRuleResultsElementUrlBlocksHeaderArgs'; - protected $argsDataType = 'array'; - public $format; - - - public function setArgs($args) - { - $this->args = $args; - } - public function getArgs() - { - return $this->args; - } - public function setFormat($format) - { - $this->format = $format; - } - public function getFormat() - { - return $this->format; - } -} - -class Google_Service_Pagespeedonline_ResultFormattedResultsRuleResultsElementUrlBlocksHeaderArgs extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $type; - public $value; - - - public function setType($type) - { - $this->type = $type; - } - public function getType() - { - return $this->type; - } - public function setValue($value) - { - $this->value = $value; - } - public function getValue() - { - return $this->value; - } -} - class Google_Service_Pagespeedonline_ResultFormattedResultsRuleResultsElementUrlBlocksUrls extends Google_Collection { protected $collection_key = 'details'; protected $internal_gapi_mappings = array( ); - protected $detailsType = 'Google_Service_Pagespeedonline_ResultFormattedResultsRuleResultsElementUrlBlocksUrlsDetails'; + protected $detailsType = 'Google_Service_Pagespeedonline_PagespeedApiFormatStringV2'; protected $detailsDataType = 'array'; - protected $resultType = 'Google_Service_Pagespeedonline_ResultFormattedResultsRuleResultsElementUrlBlocksUrlsResult'; + protected $resultType = 'Google_Service_Pagespeedonline_PagespeedApiFormatStringV2'; protected $resultDataType = ''; @@ -406,7 +655,7 @@ class Google_Service_Pagespeedonline_ResultFormattedResultsRuleResultsElementUrl { return $this->details; } - public function setResult(Google_Service_Pagespeedonline_ResultFormattedResultsRuleResultsElementUrlBlocksUrlsResult $result) + public function setResult(Google_Service_Pagespeedonline_PagespeedApiFormatStringV2 $result) { $this->result = $result; } @@ -416,114 +665,6 @@ class Google_Service_Pagespeedonline_ResultFormattedResultsRuleResultsElementUrl } } -class Google_Service_Pagespeedonline_ResultFormattedResultsRuleResultsElementUrlBlocksUrlsDetails extends Google_Collection -{ - protected $collection_key = 'args'; - protected $internal_gapi_mappings = array( - ); - protected $argsType = 'Google_Service_Pagespeedonline_ResultFormattedResultsRuleResultsElementUrlBlocksUrlsDetailsArgs'; - protected $argsDataType = 'array'; - public $format; - - - public function setArgs($args) - { - $this->args = $args; - } - public function getArgs() - { - return $this->args; - } - public function setFormat($format) - { - $this->format = $format; - } - public function getFormat() - { - return $this->format; - } -} - -class Google_Service_Pagespeedonline_ResultFormattedResultsRuleResultsElementUrlBlocksUrlsDetailsArgs extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $type; - public $value; - - - public function setType($type) - { - $this->type = $type; - } - public function getType() - { - return $this->type; - } - public function setValue($value) - { - $this->value = $value; - } - public function getValue() - { - return $this->value; - } -} - -class Google_Service_Pagespeedonline_ResultFormattedResultsRuleResultsElementUrlBlocksUrlsResult extends Google_Collection -{ - protected $collection_key = 'args'; - protected $internal_gapi_mappings = array( - ); - protected $argsType = 'Google_Service_Pagespeedonline_ResultFormattedResultsRuleResultsElementUrlBlocksUrlsResultArgs'; - protected $argsDataType = 'array'; - public $format; - - - public function setArgs($args) - { - $this->args = $args; - } - public function getArgs() - { - return $this->args; - } - public function setFormat($format) - { - $this->format = $format; - } - public function getFormat() - { - return $this->format; - } -} - -class Google_Service_Pagespeedonline_ResultFormattedResultsRuleResultsElementUrlBlocksUrlsResultArgs extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $type; - public $value; - - - public function setType($type) - { - $this->type = $type; - } - public function getType() - { - return $this->type; - } - public function setValue($value) - { - $this->value = $value; - } - public function getValue() - { - return $this->value; - } -} - class Google_Service_Pagespeedonline_ResultPageStats extends Google_Model { protected $internal_gapi_mappings = array( @@ -649,48 +790,24 @@ class Google_Service_Pagespeedonline_ResultPageStats extends Google_Model } } -class Google_Service_Pagespeedonline_ResultScreenshot extends Google_Model +class Google_Service_Pagespeedonline_ResultRuleGroups extends Google_Model +{ +} + +class Google_Service_Pagespeedonline_ResultRuleGroupsElement extends Google_Model { protected $internal_gapi_mappings = array( - "mimeType" => "mime_type", ); - public $data; - public $height; - public $mimeType; - public $width; + public $score; - public function setData($data) + public function setScore($score) { - $this->data = $data; + $this->score = $score; } - public function getData() + public function getScore() { - return $this->data; - } - public function setHeight($height) - { - $this->height = $height; - } - public function getHeight() - { - return $this->height; - } - public function setMimeType($mimeType) - { - $this->mimeType = $mimeType; - } - public function getMimeType() - { - return $this->mimeType; - } - public function setWidth($width) - { - $this->width = $width; - } - public function getWidth() - { - return $this->width; + return $this->score; } } diff --git a/lib/google/src/Google/Service/Playmoviespartner.php b/lib/google/src/Google/Service/Playmoviespartner.php new file mode 100644 index 00000000000..fb2a33bd81f --- /dev/null +++ b/lib/google/src/Google/Service/Playmoviespartner.php @@ -0,0 +1,53 @@ + + * An API providing Google Play Movies Partners a way to get the delivery status + * of their titles.

+ * + *

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

+ * + * @author Google, Inc. + */ +class Google_Service_Playmoviespartner extends Google_Service +{ + + + + + + /** + * Constructs the internal representation of the Playmoviespartner service. + * + * @param Google_Client $client + */ + public function __construct(Google_Client $client) + { + parent::__construct($client); + $this->rootUrl = 'https://playmoviespartner.googleapis.com/'; + $this->servicePath = ''; + $this->version = 'v1'; + $this->serviceName = 'playmoviespartner'; + + } +} diff --git a/lib/google/src/Google/Service/Plus.php b/lib/google/src/Google/Service/Plus.php index e28783b7466..9aa65c43929 100644 --- a/lib/google/src/Google/Service/Plus.php +++ b/lib/google/src/Google/Service/Plus.php @@ -57,6 +57,7 @@ class Google_Service_Plus extends Google_Service public function __construct(Google_Client $client) { parent::__construct($client); + $this->rootUrl = 'https://www.googleapis.com/'; $this->servicePath = 'plus/v1/'; $this->version = 'v1'; $this->serviceName = 'plus'; diff --git a/lib/google/src/Google/Service/PlusDomains.php b/lib/google/src/Google/Service/PlusDomains.php index ad59550440d..90b19940312 100644 --- a/lib/google/src/Google/Service/PlusDomains.php +++ b/lib/google/src/Google/Service/PlusDomains.php @@ -77,6 +77,7 @@ class Google_Service_PlusDomains extends Google_Service public function __construct(Google_Client $client) { parent::__construct($client); + $this->rootUrl = 'https://www.googleapis.com/'; $this->servicePath = 'plusDomains/v1/'; $this->version = 'v1'; $this->serviceName = 'plusDomains'; diff --git a/lib/google/src/Google/Service/Prediction.php b/lib/google/src/Google/Service/Prediction.php index 2e77ad2e4ea..c57b41d0b36 100644 --- a/lib/google/src/Google/Service/Prediction.php +++ b/lib/google/src/Google/Service/Prediction.php @@ -56,6 +56,7 @@ class Google_Service_Prediction extends Google_Service public function __construct(Google_Client $client) { parent::__construct($client); + $this->rootUrl = 'https://www.googleapis.com/'; $this->servicePath = 'prediction/v1.6/projects/'; $this->version = 'v1.6'; $this->serviceName = 'prediction'; diff --git a/lib/google/src/Google/Service/Pubsub.php b/lib/google/src/Google/Service/Pubsub.php index 40150e6c689..9d38e368039 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 (v1beta1). + * Service definition for Pubsub (v1). * *

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

* *

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

* * @author Google, Inc. @@ -37,8 +37,9 @@ class Google_Service_Pubsub extends Google_Service const PUBSUB = "https://www.googleapis.com/auth/pubsub"; - public $subscriptions; - public $topics; + public $projects_subscriptions; + public $projects_topics; + public $projects_topics_subscriptions; /** @@ -49,26 +50,39 @@ class Google_Service_Pubsub extends Google_Service public function __construct(Google_Client $client) { parent::__construct($client); - $this->servicePath = 'pubsub/v1beta1/'; - $this->version = 'v1beta1'; + $this->rootUrl = 'https://pubsub.googleapis.com/'; + $this->servicePath = ''; + $this->version = 'v1'; $this->serviceName = 'pubsub'; - $this->subscriptions = new Google_Service_Pubsub_Subscriptions_Resource( + $this->projects_subscriptions = new Google_Service_Pubsub_ProjectsSubscriptions_Resource( $this, $this->serviceName, 'subscriptions', array( 'methods' => array( 'acknowledge' => array( - 'path' => 'subscriptions/acknowledge', + 'path' => 'v1/{+subscription}:acknowledge', 'httpMethod' => 'POST', - 'parameters' => array(), + 'parameters' => array( + 'subscription' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), ),'create' => array( - 'path' => 'subscriptions', - 'httpMethod' => 'POST', - 'parameters' => array(), + 'path' => 'v1/{+name}', + 'httpMethod' => 'PUT', + 'parameters' => array( + 'name' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), ),'delete' => array( - 'path' => 'subscriptions/{+subscription}', + 'path' => 'v1/{+subscription}', 'httpMethod' => 'DELETE', 'parameters' => array( 'subscription' => array( @@ -78,7 +92,7 @@ class Google_Service_Pubsub extends Google_Service ), ), ),'get' => array( - 'path' => 'subscriptions/{+subscription}', + 'path' => 'v1/{+subscription}', 'httpMethod' => 'GET', 'parameters' => array( 'subscription' => array( @@ -87,55 +101,106 @@ class Google_Service_Pubsub extends Google_Service 'required' => true, ), ), - ),'list' => array( - 'path' => 'subscriptions', + ),'getIamPolicy' => array( + 'path' => 'v1/{+resource}:getIamPolicy', 'httpMethod' => 'GET', 'parameters' => array( + 'resource' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ),'list' => array( + 'path' => 'v1/{+project}/subscriptions', + 'httpMethod' => 'GET', + 'parameters' => array( + 'project' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), 'pageToken' => array( 'location' => 'query', 'type' => 'string', ), - 'maxResults' => array( + 'pageSize' => array( 'location' => 'query', 'type' => 'integer', ), - 'query' => array( - 'location' => 'query', - 'type' => 'string', - ), ), ),'modifyAckDeadline' => array( - 'path' => 'subscriptions/modifyAckDeadline', + 'path' => 'v1/{+subscription}:modifyAckDeadline', 'httpMethod' => 'POST', - 'parameters' => array(), + 'parameters' => array( + 'subscription' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), ),'modifyPushConfig' => array( - 'path' => 'subscriptions/modifyPushConfig', + 'path' => 'v1/{+subscription}:modifyPushConfig', 'httpMethod' => 'POST', - 'parameters' => array(), + 'parameters' => array( + 'subscription' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), ),'pull' => array( - 'path' => 'subscriptions/pull', + 'path' => 'v1/{+subscription}:pull', 'httpMethod' => 'POST', - 'parameters' => array(), - ),'pullBatch' => array( - 'path' => 'subscriptions/pullBatch', + 'parameters' => array( + 'subscription' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ),'setIamPolicy' => array( + 'path' => 'v1/{+resource}:setIamPolicy', 'httpMethod' => 'POST', - 'parameters' => array(), + 'parameters' => array( + 'resource' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ),'testIamPermissions' => array( + 'path' => 'v1/{+resource}:testIamPermissions', + 'httpMethod' => 'POST', + 'parameters' => array( + 'resource' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), ), ) ) ); - $this->topics = new Google_Service_Pubsub_Topics_Resource( + $this->projects_topics = new Google_Service_Pubsub_ProjectsTopics_Resource( $this, $this->serviceName, 'topics', array( 'methods' => array( 'create' => array( - 'path' => 'topics', - 'httpMethod' => 'POST', - 'parameters' => array(), + 'path' => 'v1/{+name}', + 'httpMethod' => 'PUT', + 'parameters' => array( + 'name' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), ),'delete' => array( - 'path' => 'topics/{+topic}', + 'path' => 'v1/{+topic}', 'httpMethod' => 'DELETE', 'parameters' => array( 'topic' => array( @@ -145,7 +210,7 @@ class Google_Service_Pubsub extends Google_Service ), ), ),'get' => array( - 'path' => 'topics/{+topic}', + 'path' => 'v1/{+topic}', 'httpMethod' => 'GET', 'parameters' => array( 'topic' => array( @@ -154,31 +219,92 @@ class Google_Service_Pubsub extends Google_Service 'required' => true, ), ), - ),'list' => array( - 'path' => 'topics', + ),'getIamPolicy' => array( + 'path' => 'v1/{+resource}:getIamPolicy', 'httpMethod' => 'GET', 'parameters' => array( + 'resource' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ),'list' => array( + 'path' => 'v1/{+project}/topics', + 'httpMethod' => 'GET', + 'parameters' => array( + 'project' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), 'pageToken' => array( 'location' => 'query', 'type' => 'string', ), - 'maxResults' => array( + 'pageSize' => array( 'location' => 'query', 'type' => 'integer', ), - 'query' => array( + ), + ),'publish' => array( + 'path' => 'v1/{+topic}:publish', + 'httpMethod' => 'POST', + 'parameters' => array( + 'topic' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ),'setIamPolicy' => array( + 'path' => 'v1/{+resource}:setIamPolicy', + 'httpMethod' => 'POST', + 'parameters' => array( + 'resource' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ),'testIamPermissions' => array( + 'path' => 'v1/{+resource}:testIamPermissions', + 'httpMethod' => 'POST', + 'parameters' => array( + 'resource' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ), + ) + ) + ); + $this->projects_topics_subscriptions = new Google_Service_Pubsub_ProjectsTopicsSubscriptions_Resource( + $this, + $this->serviceName, + 'subscriptions', + array( + 'methods' => array( + 'list' => array( + 'path' => 'v1/{+topic}/subscriptions', + 'httpMethod' => 'GET', + 'parameters' => array( + 'topic' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'pageToken' => array( 'location' => 'query', 'type' => 'string', ), + 'pageSize' => array( + 'location' => 'query', + 'type' => 'integer', + ), ), - ),'publish' => array( - 'path' => 'topics/publish', - 'httpMethod' => 'POST', - 'parameters' => array(), - ),'publishBatch' => array( - 'path' => 'topics/publishBatch', - 'httpMethod' => 'POST', - 'parameters' => array(), ), ) ) @@ -187,6 +313,18 @@ class Google_Service_Pubsub extends Google_Service } +/** + * The "projects" collection of methods. + * Typical usage is: + * + * $pubsubService = new Google_Service_Pubsub(...); + * $projects = $pubsubService->projects; + * + */ +class Google_Service_Pubsub_Projects_Resource extends Google_Service_Resource +{ +} + /** * The "subscriptions" collection of methods. * Typical usage is: @@ -195,43 +333,49 @@ class Google_Service_Pubsub extends Google_Service * $subscriptions = $pubsubService->subscriptions; * */ -class Google_Service_Pubsub_Subscriptions_Resource extends Google_Service_Resource +class Google_Service_Pubsub_ProjectsSubscriptions_Resource extends Google_Service_Resource { /** - * Acknowledges a particular received message: the Pub/Sub system can remove the - * given message from the subscription. Acknowledging a message whose Ack - * deadline has expired may succeed, but the message could have been already - * redelivered. Acknowledging a message more than once will not result in an - * error. This is only used for messages received via pull. - * (subscriptions.acknowledge) + * Acknowledges the messages associated with the ack tokens in the + * AcknowledgeRequest. The Pub/Sub system can remove the relevant messages from + * the subscription. Acknowledging a message whose ack deadline has expired may + * succeed, but such a message may be redelivered later. Acknowledging a message + * more than once will not result in an error. (subscriptions.acknowledge) * + * @param string $subscription The subscription whose message is being + * acknowledged. * @param Google_AcknowledgeRequest $postBody * @param array $optParams Optional parameters. + * @return Google_Service_Pubsub_Empty */ - public function acknowledge(Google_Service_Pubsub_AcknowledgeRequest $postBody, $optParams = array()) + public function acknowledge($subscription, Google_Service_Pubsub_AcknowledgeRequest $postBody, $optParams = array()) { - $params = array('postBody' => $postBody); + $params = array('subscription' => $subscription, 'postBody' => $postBody); $params = array_merge($params, $optParams); - return $this->call('acknowledge', array($params)); + return $this->call('acknowledge', array($params), "Google_Service_Pubsub_Empty"); } /** - * Creates a subscription on a given topic for a given subscriber. If the + * Creates a subscription to a given topic for a given subscriber. If the * subscription already exists, returns ALREADY_EXISTS. If the corresponding - * topic doesn't exist, returns NOT_FOUND. - * - * If the name is not provided in the request, the server will assign a random - * name for this subscription on the same project as the topic. - * (subscriptions.create) + * topic doesn't exist, returns NOT_FOUND. If the name is not provided in the + * request, the server will assign a random name for this subscription on the + * same project as the topic. (subscriptions.create) * + * @param string $name The name of the subscription. It must have the format + * `"projects/{project}/subscriptions/{subscription}"`. `{subscription}` must + * start with a letter, and contain only letters (`[A-Za-z]`), numbers + * (`[0-9]`), dashes (`-`), underscores (`_`), periods (`.`), tildes (`~`), plus + * (`+`) or percent signs (`%`). It must be between 3 and 255 characters in + * length, and it must not start with `"goog"`. * @param Google_Subscription $postBody * @param array $optParams Optional parameters. * @return Google_Service_Pubsub_Subscription */ - public function create(Google_Service_Pubsub_Subscription $postBody, $optParams = array()) + public function create($name, Google_Service_Pubsub_Subscription $postBody, $optParams = array()) { - $params = array('postBody' => $postBody); + $params = array('name' => $name, 'postBody' => $postBody); $params = array_merge($params, $optParams); return $this->call('create', array($params), "Google_Service_Pubsub_Subscription"); } @@ -239,16 +383,19 @@ class Google_Service_Pubsub_Subscriptions_Resource extends Google_Service_Resour /** * Deletes an existing subscription. All pending messages in the subscription * are immediately dropped. Calls to Pull after deletion will return NOT_FOUND. - * (subscriptions.delete) + * After a subscription is deleted, a new one may be created with the same name, + * but the new one has no association with the old subscription, or its topic + * unless the same topic is specified. (subscriptions.delete) * * @param string $subscription The subscription to delete. * @param array $optParams Optional parameters. + * @return Google_Service_Pubsub_Empty */ public function delete($subscription, $optParams = array()) { $params = array('subscription' => $subscription); $params = array_merge($params, $optParams); - return $this->call('delete', array($params)); + return $this->call('delete', array($params), "Google_Service_Pubsub_Empty"); } /** @@ -266,90 +413,136 @@ class Google_Service_Pubsub_Subscriptions_Resource extends Google_Service_Resour } /** - * Lists matching subscriptions. (subscriptions.listSubscriptions) + * Gets the access control policy for a resource. Is empty if the policy or the + * resource does not exist. (subscriptions.getIamPolicy) * + * @param string $resource REQUIRED: The resource for which policy is being + * requested. Resource is usually specified as a path, such as, + * projects/{project}. + * @param array $optParams Optional parameters. + * @return Google_Service_Pubsub_Policy + */ + public function getIamPolicy($resource, $optParams = array()) + { + $params = array('resource' => $resource); + $params = array_merge($params, $optParams); + return $this->call('getIamPolicy', array($params), "Google_Service_Pubsub_Policy"); + } + + /** + * Lists matching subscriptions. (subscriptions.listProjectsSubscriptions) + * + * @param string $project The name of the cloud project that subscriptions + * belong to. * @param array $optParams Optional parameters. * - * @opt_param string pageToken The value obtained in the last - * ListSubscriptionsResponse for continuation. - * @opt_param int maxResults Maximum number of subscriptions to return. - * @opt_param string query A valid label query expression. + * @opt_param string pageToken The value returned by the last + * ListSubscriptionsResponse; indicates that this is a continuation of a prior + * ListSubscriptions call, and that the system should return the next page of + * data. + * @opt_param int pageSize Maximum number of subscriptions to return. * @return Google_Service_Pubsub_ListSubscriptionsResponse */ - public function listSubscriptions($optParams = array()) + public function listProjectsSubscriptions($project, $optParams = array()) { - $params = array(); + $params = array('project' => $project); $params = array_merge($params, $optParams); return $this->call('list', array($params), "Google_Service_Pubsub_ListSubscriptionsResponse"); } /** - * Modifies the Ack deadline for a message received from a pull request. - * (subscriptions.modifyAckDeadline) + * Modifies the ack deadline for a specific message. This method is useful to + * indicate that more time is needed to process a message by the subscriber, or + * to make the message available for redelivery if the processing was + * interrupted. (subscriptions.modifyAckDeadline) * + * @param string $subscription The name of the subscription. * @param Google_ModifyAckDeadlineRequest $postBody * @param array $optParams Optional parameters. + * @return Google_Service_Pubsub_Empty */ - public function modifyAckDeadline(Google_Service_Pubsub_ModifyAckDeadlineRequest $postBody, $optParams = array()) + public function modifyAckDeadline($subscription, Google_Service_Pubsub_ModifyAckDeadlineRequest $postBody, $optParams = array()) { - $params = array('postBody' => $postBody); + $params = array('subscription' => $subscription, 'postBody' => $postBody); $params = array_merge($params, $optParams); - return $this->call('modifyAckDeadline', array($params)); + return $this->call('modifyAckDeadline', array($params), "Google_Service_Pubsub_Empty"); } /** - * Modifies the PushConfig for a specified subscription. This method can be used - * to suspend the flow of messages to an end point by clearing the PushConfig - * field in the request. Messages will be accumulated for delivery even if no - * push configuration is defined or while the configuration is modified. + * Modifies the PushConfig for a specified subscription. This may be used to + * change a push subscription to a pull one (signified by an empty PushConfig) + * or vice versa, or change the endpoint URL and other attributes of a push + * subscription. Messages will accumulate for delivery continuously through the + * call regardless of changes to the PushConfig. * (subscriptions.modifyPushConfig) * + * @param string $subscription The name of the subscription. * @param Google_ModifyPushConfigRequest $postBody * @param array $optParams Optional parameters. + * @return Google_Service_Pubsub_Empty */ - public function modifyPushConfig(Google_Service_Pubsub_ModifyPushConfigRequest $postBody, $optParams = array()) + public function modifyPushConfig($subscription, Google_Service_Pubsub_ModifyPushConfigRequest $postBody, $optParams = array()) { - $params = array('postBody' => $postBody); + $params = array('subscription' => $subscription, 'postBody' => $postBody); $params = array_merge($params, $optParams); - return $this->call('modifyPushConfig', array($params)); + return $this->call('modifyPushConfig', array($params), "Google_Service_Pubsub_Empty"); } /** - * Pulls a single message from the server. If return_immediately is true, and no - * messages are available in the subscription, this method returns - * FAILED_PRECONDITION. The system is free to return an UNAVAILABLE error if no - * messages are available in a reasonable amount of time (to reduce system - * load). (subscriptions.pull) + * Pulls messages from the server. Returns an empty list if there are no + * messages available in the backlog. The server may return UNAVAILABLE if there + * are too many concurrent pull requests pending for the given subscription. + * (subscriptions.pull) * + * @param string $subscription The subscription from which messages should be + * pulled. * @param Google_PullRequest $postBody * @param array $optParams Optional parameters. * @return Google_Service_Pubsub_PullResponse */ - public function pull(Google_Service_Pubsub_PullRequest $postBody, $optParams = array()) + public function pull($subscription, Google_Service_Pubsub_PullRequest $postBody, $optParams = array()) { - $params = array('postBody' => $postBody); + $params = array('subscription' => $subscription, 'postBody' => $postBody); $params = array_merge($params, $optParams); return $this->call('pull', array($params), "Google_Service_Pubsub_PullResponse"); } /** - * Pulls messages from the server. Returns an empty list if there are no - * messages available in the backlog. The system is free to return UNAVAILABLE - * if there too many pull requests outstanding for a given subscription. - * (subscriptions.pullBatch) + * Sets the access control policy on the specified resource. Replaces any + * existing policy. (subscriptions.setIamPolicy) * - * @param Google_PullBatchRequest $postBody + * @param string $resource REQUIRED: The resource for which policy is being + * specified. Resource is usually specified as a path, such as, + * projects/{project}/zones/{zone}/disks/{disk}. + * @param Google_SetIamPolicyRequest $postBody * @param array $optParams Optional parameters. - * @return Google_Service_Pubsub_PullBatchResponse + * @return Google_Service_Pubsub_Policy */ - public function pullBatch(Google_Service_Pubsub_PullBatchRequest $postBody, $optParams = array()) + public function setIamPolicy($resource, Google_Service_Pubsub_SetIamPolicyRequest $postBody, $optParams = array()) { - $params = array('postBody' => $postBody); + $params = array('resource' => $resource, 'postBody' => $postBody); $params = array_merge($params, $optParams); - return $this->call('pullBatch', array($params), "Google_Service_Pubsub_PullBatchResponse"); + return $this->call('setIamPolicy', array($params), "Google_Service_Pubsub_Policy"); + } + + /** + * Returns permissions that a caller has on the specified resource. + * (subscriptions.testIamPermissions) + * + * @param string $resource REQUIRED: The resource for which policy detail is + * being requested. Resource is usually specified as a path, such as, + * projects/{project}. + * @param Google_TestIamPermissionsRequest $postBody + * @param array $optParams Optional parameters. + * @return Google_Service_Pubsub_TestIamPermissionsResponse + */ + public function testIamPermissions($resource, Google_Service_Pubsub_TestIamPermissionsRequest $postBody, $optParams = array()) + { + $params = array('resource' => $resource, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('testIamPermissions', array($params), "Google_Service_Pubsub_TestIamPermissionsResponse"); } } - /** * The "topics" collection of methods. * Typical usage is: @@ -358,43 +551,49 @@ class Google_Service_Pubsub_Subscriptions_Resource extends Google_Service_Resour * $topics = $pubsubService->topics; * */ -class Google_Service_Pubsub_Topics_Resource extends Google_Service_Resource +class Google_Service_Pubsub_ProjectsTopics_Resource extends Google_Service_Resource { /** * Creates the given topic with the given name. (topics.create) * + * @param string $name The name of the topic. It must have the format + * `"projects/{project}/topics/{topic}"`. `{topic}` must start with a letter, + * and contain only letters (`[A-Za-z]`), numbers (`[0-9]`), dashes (`-`), + * underscores (`_`), periods (`.`), tildes (`~`), plus (`+`) or percent signs + * (`%`). It must be between 3 and 255 characters in length, and it must not + * start with `"goog"`. * @param Google_Topic $postBody * @param array $optParams Optional parameters. * @return Google_Service_Pubsub_Topic */ - public function create(Google_Service_Pubsub_Topic $postBody, $optParams = array()) + public function create($name, Google_Service_Pubsub_Topic $postBody, $optParams = array()) { - $params = array('postBody' => $postBody); + $params = array('name' => $name, 'postBody' => $postBody); $params = array_merge($params, $optParams); return $this->call('create', array($params), "Google_Service_Pubsub_Topic"); } /** - * Deletes the topic with the given name. All subscriptions to this topic are - * also deleted. Returns NOT_FOUND if the topic does not exist. After a topic is - * deleted, a new topic may be created with the same name. (topics.delete) + * Deletes the topic with the given name. Returns NOT_FOUND if the topic does + * not exist. After a topic is deleted, a new topic may be created with the same + * name; this is an entirely new topic with none of the old configuration or + * subscriptions. Existing subscriptions to this topic are not deleted, but + * their `topic` field is set to `_deleted-topic_`. (topics.delete) * * @param string $topic Name of the topic to delete. * @param array $optParams Optional parameters. + * @return Google_Service_Pubsub_Empty */ public function delete($topic, $optParams = array()) { $params = array('topic' => $topic); $params = array_merge($params, $optParams); - return $this->call('delete', array($params)); + return $this->call('delete', array($params), "Google_Service_Pubsub_Empty"); } /** - * Gets the configuration of a topic. Since the topic only has the name - * attribute, this method is only useful to check the existence of a topic. If - * other attributes are added in the future, they will be returned here. - * (topics.get) + * Gets the configuration of a topic. (topics.get) * * @param string $topic The name of the topic to get. * @param array $optParams Optional parameters. @@ -408,50 +607,127 @@ class Google_Service_Pubsub_Topics_Resource extends Google_Service_Resource } /** - * Lists matching topics. (topics.listTopics) + * Gets the access control policy for a resource. Is empty if the policy or the + * resource does not exist. (topics.getIamPolicy) * + * @param string $resource REQUIRED: The resource for which policy is being + * requested. Resource is usually specified as a path, such as, + * projects/{project}. + * @param array $optParams Optional parameters. + * @return Google_Service_Pubsub_Policy + */ + public function getIamPolicy($resource, $optParams = array()) + { + $params = array('resource' => $resource); + $params = array_merge($params, $optParams); + return $this->call('getIamPolicy', array($params), "Google_Service_Pubsub_Policy"); + } + + /** + * Lists matching topics. (topics.listProjectsTopics) + * + * @param string $project The name of the cloud project that topics belong to. * @param array $optParams Optional parameters. * - * @opt_param string pageToken The value obtained in the last ListTopicsResponse - * for continuation. - * @opt_param int maxResults Maximum number of topics to return. - * @opt_param string query A valid label query expression. + * @opt_param string pageToken The value returned by the last + * ListTopicsResponse; indicates that this is a continuation of a prior + * ListTopics call, and that the system should return the next page of data. + * @opt_param int pageSize Maximum number of topics to return. * @return Google_Service_Pubsub_ListTopicsResponse */ - public function listTopics($optParams = array()) + public function listProjectsTopics($project, $optParams = array()) { - $params = array(); + $params = array('project' => $project); $params = array_merge($params, $optParams); return $this->call('list', array($params), "Google_Service_Pubsub_ListTopicsResponse"); } /** - * Adds a message to the topic. Returns NOT_FOUND if the topic does not exist. - * (topics.publish) + * Adds one or more messages to the topic. Returns NOT_FOUND if the topic does + * not exist. The message payload must not be empty; it must contain either a + * non-empty data field, or at least one attribute. (topics.publish) * + * @param string $topic The messages in the request will be published on this + * topic. * @param Google_PublishRequest $postBody * @param array $optParams Optional parameters. + * @return Google_Service_Pubsub_PublishResponse */ - public function publish(Google_Service_Pubsub_PublishRequest $postBody, $optParams = array()) + public function publish($topic, Google_Service_Pubsub_PublishRequest $postBody, $optParams = array()) { - $params = array('postBody' => $postBody); + $params = array('topic' => $topic, 'postBody' => $postBody); $params = array_merge($params, $optParams); - return $this->call('publish', array($params)); + return $this->call('publish', array($params), "Google_Service_Pubsub_PublishResponse"); } /** - * Adds one or more messages to the topic. Returns NOT_FOUND if the topic does - * not exist. (topics.publishBatch) + * Sets the access control policy on the specified resource. Replaces any + * existing policy. (topics.setIamPolicy) * - * @param Google_PublishBatchRequest $postBody + * @param string $resource REQUIRED: The resource for which policy is being + * specified. Resource is usually specified as a path, such as, + * projects/{project}/zones/{zone}/disks/{disk}. + * @param Google_SetIamPolicyRequest $postBody * @param array $optParams Optional parameters. - * @return Google_Service_Pubsub_PublishBatchResponse + * @return Google_Service_Pubsub_Policy */ - public function publishBatch(Google_Service_Pubsub_PublishBatchRequest $postBody, $optParams = array()) + public function setIamPolicy($resource, Google_Service_Pubsub_SetIamPolicyRequest $postBody, $optParams = array()) { - $params = array('postBody' => $postBody); + $params = array('resource' => $resource, 'postBody' => $postBody); $params = array_merge($params, $optParams); - return $this->call('publishBatch', array($params), "Google_Service_Pubsub_PublishBatchResponse"); + return $this->call('setIamPolicy', array($params), "Google_Service_Pubsub_Policy"); + } + + /** + * Returns permissions that a caller has on the specified resource. + * (topics.testIamPermissions) + * + * @param string $resource REQUIRED: The resource for which policy detail is + * being requested. Resource is usually specified as a path, such as, + * projects/{project}. + * @param Google_TestIamPermissionsRequest $postBody + * @param array $optParams Optional parameters. + * @return Google_Service_Pubsub_TestIamPermissionsResponse + */ + public function testIamPermissions($resource, Google_Service_Pubsub_TestIamPermissionsRequest $postBody, $optParams = array()) + { + $params = array('resource' => $resource, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('testIamPermissions', array($params), "Google_Service_Pubsub_TestIamPermissionsResponse"); + } +} + +/** + * The "subscriptions" collection of methods. + * Typical usage is: + * + * $pubsubService = new Google_Service_Pubsub(...); + * $subscriptions = $pubsubService->subscriptions; + * + */ +class Google_Service_Pubsub_ProjectsTopicsSubscriptions_Resource extends Google_Service_Resource +{ + + /** + * Lists the name of the subscriptions for this topic. + * (subscriptions.listProjectsTopicsSubscriptions) + * + * @param string $topic The name of the topic that subscriptions are attached + * to. + * @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 + */ + public function listProjectsTopicsSubscriptions($topic, $optParams = array()) + { + $params = array('topic' => $topic); + $params = array_merge($params, $optParams); + return $this->call('list', array($params), "Google_Service_Pubsub_ListTopicSubscriptionsResponse"); } } @@ -460,74 +736,61 @@ class Google_Service_Pubsub_Topics_Resource extends Google_Service_Resource class Google_Service_Pubsub_AcknowledgeRequest extends Google_Collection { - protected $collection_key = 'ackId'; + protected $collection_key = 'ackIds'; protected $internal_gapi_mappings = array( ); - public $ackId; - public $subscription; + public $ackIds; - public function setAckId($ackId) + public function setAckIds($ackIds) { - $this->ackId = $ackId; + $this->ackIds = $ackIds; } - public function getAckId() + public function getAckIds() { - return $this->ackId; - } - public function setSubscription($subscription) - { - $this->subscription = $subscription; - } - public function getSubscription() - { - return $this->subscription; + return $this->ackIds; } } -class Google_Service_Pubsub_Label extends Google_Model +class Google_Service_Pubsub_Binding extends Google_Collection { + protected $collection_key = 'members'; protected $internal_gapi_mappings = array( ); - public $key; - public $numValue; - public $strValue; + public $members; + public $role; - public function setKey($key) + public function setMembers($members) { - $this->key = $key; + $this->members = $members; } - public function getKey() + public function getMembers() { - return $this->key; + return $this->members; } - public function setNumValue($numValue) + public function setRole($role) { - $this->numValue = $numValue; + $this->role = $role; } - public function getNumValue() + public function getRole() { - return $this->numValue; - } - public function setStrValue($strValue) - { - $this->strValue = $strValue; - } - public function getStrValue() - { - return $this->strValue; + return $this->role; } } +class Google_Service_Pubsub_Empty extends Google_Model +{ +} + class Google_Service_Pubsub_ListSubscriptionsResponse extends Google_Collection { - protected $collection_key = 'subscription'; + protected $collection_key = 'subscriptions'; protected $internal_gapi_mappings = array( ); public $nextPageToken; - protected $subscriptionType = 'Google_Service_Pubsub_Subscription'; - protected $subscriptionDataType = 'array'; + protected $subscriptionsType = 'Google_Service_Pubsub_Subscription'; + protected $subscriptionsDataType = 'array'; public function setNextPageToken($nextPageToken) @@ -538,24 +801,51 @@ class Google_Service_Pubsub_ListSubscriptionsResponse extends Google_Collection { return $this->nextPageToken; } - public function setSubscription($subscription) + public function setSubscriptions($subscriptions) { - $this->subscription = $subscription; + $this->subscriptions = $subscriptions; } - public function getSubscription() + public function getSubscriptions() { - return $this->subscription; + return $this->subscriptions; + } +} + +class Google_Service_Pubsub_ListTopicSubscriptionsResponse extends Google_Collection +{ + protected $collection_key = 'subscriptions'; + protected $internal_gapi_mappings = array( + ); + public $nextPageToken; + public $subscriptions; + + + public function setNextPageToken($nextPageToken) + { + $this->nextPageToken = $nextPageToken; + } + public function getNextPageToken() + { + return $this->nextPageToken; + } + public function setSubscriptions($subscriptions) + { + $this->subscriptions = $subscriptions; + } + public function getSubscriptions() + { + return $this->subscriptions; } } class Google_Service_Pubsub_ListTopicsResponse extends Google_Collection { - protected $collection_key = 'topic'; + protected $collection_key = 'topics'; protected $internal_gapi_mappings = array( ); public $nextPageToken; - protected $topicType = 'Google_Service_Pubsub_Topic'; - protected $topicDataType = 'array'; + protected $topicsType = 'Google_Service_Pubsub_Topic'; + protected $topicsDataType = 'array'; public function setNextPageToken($nextPageToken) @@ -566,23 +856,23 @@ class Google_Service_Pubsub_ListTopicsResponse extends Google_Collection { return $this->nextPageToken; } - public function setTopic($topic) + public function setTopics($topics) { - $this->topic = $topic; + $this->topics = $topics; } - public function getTopic() + public function getTopics() { - return $this->topic; + return $this->topics; } } -class Google_Service_Pubsub_ModifyAckDeadlineRequest extends Google_Model +class Google_Service_Pubsub_ModifyAckDeadlineRequest extends Google_Collection { + protected $collection_key = 'ackIds'; protected $internal_gapi_mappings = array( ); public $ackDeadlineSeconds; - public $ackId; - public $subscription; + public $ackIds; public function setAckDeadlineSeconds($ackDeadlineSeconds) @@ -593,21 +883,13 @@ class Google_Service_Pubsub_ModifyAckDeadlineRequest extends Google_Model { return $this->ackDeadlineSeconds; } - public function setAckId($ackId) + public function setAckIds($ackIds) { - $this->ackId = $ackId; + $this->ackIds = $ackIds; } - public function getAckId() + public function getAckIds() { - return $this->ackId; - } - public function setSubscription($subscription) - { - $this->subscription = $subscription; - } - public function getSubscription() - { - return $this->subscription; + return $this->ackIds; } } @@ -617,7 +899,6 @@ class Google_Service_Pubsub_ModifyPushConfigRequest extends Google_Model ); protected $pushConfigType = 'Google_Service_Pubsub_PushConfig'; protected $pushConfigDataType = ''; - public $subscription; public function setPushConfig(Google_Service_Pubsub_PushConfig $pushConfig) @@ -628,24 +909,52 @@ class Google_Service_Pubsub_ModifyPushConfigRequest extends Google_Model { return $this->pushConfig; } - public function setSubscription($subscription) +} + +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->subscription = $subscription; + $this->bindings = $bindings; } - public function getSubscription() + public function getBindings() { - return $this->subscription; + return $this->bindings; + } + public function setEtag($etag) + { + $this->etag = $etag; + } + public function getEtag() + { + return $this->etag; + } + public function setVersion($version) + { + $this->version = $version; + } + public function getVersion() + { + return $this->version; } } -class Google_Service_Pubsub_PublishBatchRequest extends Google_Collection +class Google_Service_Pubsub_PublishRequest extends Google_Collection { protected $collection_key = 'messages'; protected $internal_gapi_mappings = array( ); protected $messagesType = 'Google_Service_Pubsub_PubsubMessage'; protected $messagesDataType = 'array'; - public $topic; public function setMessages($messages) @@ -656,17 +965,9 @@ class Google_Service_Pubsub_PublishBatchRequest extends Google_Collection { return $this->messages; } - public function setTopic($topic) - { - $this->topic = $topic; - } - public function getTopic() - { - return $this->topic; - } } -class Google_Service_Pubsub_PublishBatchResponse extends Google_Collection +class Google_Service_Pubsub_PublishResponse extends Google_Collection { protected $collection_key = 'messageIds'; protected $internal_gapi_mappings = array( @@ -684,89 +985,23 @@ class Google_Service_Pubsub_PublishBatchResponse extends Google_Collection } } -class Google_Service_Pubsub_PublishRequest extends Google_Model +class Google_Service_Pubsub_PubsubMessage extends Google_Model { protected $internal_gapi_mappings = array( ); - protected $messageType = 'Google_Service_Pubsub_PubsubMessage'; - protected $messageDataType = ''; - public $topic; - - - public function setMessage(Google_Service_Pubsub_PubsubMessage $message) - { - $this->message = $message; - } - public function getMessage() - { - return $this->message; - } - public function setTopic($topic) - { - $this->topic = $topic; - } - public function getTopic() - { - return $this->topic; - } -} - -class Google_Service_Pubsub_PubsubEvent extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $deleted; - protected $messageType = 'Google_Service_Pubsub_PubsubMessage'; - protected $messageDataType = ''; - public $subscription; - public $truncated; - - - public function setDeleted($deleted) - { - $this->deleted = $deleted; - } - public function getDeleted() - { - return $this->deleted; - } - public function setMessage(Google_Service_Pubsub_PubsubMessage $message) - { - $this->message = $message; - } - public function getMessage() - { - return $this->message; - } - public function setSubscription($subscription) - { - $this->subscription = $subscription; - } - public function getSubscription() - { - return $this->subscription; - } - public function setTruncated($truncated) - { - $this->truncated = $truncated; - } - public function getTruncated() - { - return $this->truncated; - } -} - -class Google_Service_Pubsub_PubsubMessage extends Google_Collection -{ - protected $collection_key = 'label'; - protected $internal_gapi_mappings = array( - ); + public $attributes; public $data; - protected $labelType = 'Google_Service_Pubsub_Label'; - protected $labelDataType = 'array'; public $messageId; + public function setAttributes($attributes) + { + $this->attributes = $attributes; + } + public function getAttributes() + { + return $this->attributes; + } public function setData($data) { $this->data = $data; @@ -775,14 +1010,6 @@ class Google_Service_Pubsub_PubsubMessage extends Google_Collection { return $this->data; } - public function setLabel($label) - { - $this->label = $label; - } - public function getLabel() - { - return $this->label; - } public function setMessageId($messageId) { $this->messageId = $messageId; @@ -793,68 +1020,26 @@ class Google_Service_Pubsub_PubsubMessage extends Google_Collection } } -class Google_Service_Pubsub_PullBatchRequest extends Google_Model +class Google_Service_Pubsub_PubsubMessageAttributes extends Google_Model { - protected $internal_gapi_mappings = array( - ); - public $maxEvents; - public $returnImmediately; - public $subscription; - - - public function setMaxEvents($maxEvents) - { - $this->maxEvents = $maxEvents; - } - public function getMaxEvents() - { - return $this->maxEvents; - } - public function setReturnImmediately($returnImmediately) - { - $this->returnImmediately = $returnImmediately; - } - public function getReturnImmediately() - { - return $this->returnImmediately; - } - public function setSubscription($subscription) - { - $this->subscription = $subscription; - } - public function getSubscription() - { - return $this->subscription; - } -} - -class Google_Service_Pubsub_PullBatchResponse extends Google_Collection -{ - protected $collection_key = 'pullResponses'; - protected $internal_gapi_mappings = array( - ); - protected $pullResponsesType = 'Google_Service_Pubsub_PullResponse'; - protected $pullResponsesDataType = 'array'; - - - public function setPullResponses($pullResponses) - { - $this->pullResponses = $pullResponses; - } - public function getPullResponses() - { - return $this->pullResponses; - } } class Google_Service_Pubsub_PullRequest extends Google_Model { protected $internal_gapi_mappings = array( ); + public $maxMessages; public $returnImmediately; - public $subscription; + public function setMaxMessages($maxMessages) + { + $this->maxMessages = $maxMessages; + } + public function getMaxMessages() + { + return $this->maxMessages; + } public function setReturnImmediately($returnImmediately) { $this->returnImmediately = $returnImmediately; @@ -863,23 +1048,64 @@ class Google_Service_Pubsub_PullRequest extends Google_Model { return $this->returnImmediately; } - public function setSubscription($subscription) +} + +class Google_Service_Pubsub_PullResponse extends Google_Collection +{ + protected $collection_key = 'receivedMessages'; + protected $internal_gapi_mappings = array( + ); + protected $receivedMessagesType = 'Google_Service_Pubsub_ReceivedMessage'; + protected $receivedMessagesDataType = 'array'; + + + public function setReceivedMessages($receivedMessages) { - $this->subscription = $subscription; + $this->receivedMessages = $receivedMessages; } - public function getSubscription() + public function getReceivedMessages() { - return $this->subscription; + return $this->receivedMessages; } } -class Google_Service_Pubsub_PullResponse extends Google_Model +class Google_Service_Pubsub_PushConfig extends Google_Model +{ + protected $internal_gapi_mappings = array( + ); + public $attributes; + public $pushEndpoint; + + + public function setAttributes($attributes) + { + $this->attributes = $attributes; + } + public function getAttributes() + { + return $this->attributes; + } + public function setPushEndpoint($pushEndpoint) + { + $this->pushEndpoint = $pushEndpoint; + } + public function getPushEndpoint() + { + return $this->pushEndpoint; + } +} + +class Google_Service_Pubsub_PushConfigAttributes extends Google_Model +{ +} + +class Google_Service_Pubsub_ReceivedMessage extends Google_Model { protected $internal_gapi_mappings = array( ); public $ackId; - protected $pubsubEventType = 'Google_Service_Pubsub_PubsubEvent'; - protected $pubsubEventDataType = ''; + protected $messageType = 'Google_Service_Pubsub_PubsubMessage'; + protected $messageDataType = ''; public function setAckId($ackId) @@ -890,30 +1116,31 @@ class Google_Service_Pubsub_PullResponse extends Google_Model { return $this->ackId; } - public function setPubsubEvent(Google_Service_Pubsub_PubsubEvent $pubsubEvent) + public function setMessage(Google_Service_Pubsub_PubsubMessage $message) { - $this->pubsubEvent = $pubsubEvent; + $this->message = $message; } - public function getPubsubEvent() + public function getMessage() { - return $this->pubsubEvent; + return $this->message; } } -class Google_Service_Pubsub_PushConfig extends Google_Model +class Google_Service_Pubsub_SetIamPolicyRequest extends Google_Model { protected $internal_gapi_mappings = array( ); - public $pushEndpoint; + protected $policyType = 'Google_Service_Pubsub_Policy'; + protected $policyDataType = ''; - public function setPushEndpoint($pushEndpoint) + public function setPolicy(Google_Service_Pubsub_Policy $policy) { - $this->pushEndpoint = $pushEndpoint; + $this->policy = $policy; } - public function getPushEndpoint() + public function getPolicy() { - return $this->pushEndpoint; + return $this->policy; } } @@ -962,6 +1189,42 @@ class Google_Service_Pubsub_Subscription extends Google_Model } } +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/QPXExpress.php b/lib/google/src/Google/Service/QPXExpress.php index b38fd13c4e3..dad95182792 100644 --- a/lib/google/src/Google/Service/QPXExpress.php +++ b/lib/google/src/Google/Service/QPXExpress.php @@ -44,6 +44,7 @@ class Google_Service_QPXExpress extends Google_Service public function __construct(Google_Client $client) { parent::__construct($client); + $this->rootUrl = 'https://www.googleapis.com/'; $this->servicePath = 'qpxExpress/v1/trips/'; $this->version = 'v1'; $this->serviceName = 'qpxExpress'; diff --git a/lib/google/src/Google/Service/Replicapool.php b/lib/google/src/Google/Service/Replicapool.php index b51680bcb04..a4ba6d8a5e0 100644 --- a/lib/google/src/Google/Service/Replicapool.php +++ b/lib/google/src/Google/Service/Replicapool.php @@ -53,6 +53,7 @@ class Google_Service_Replicapool extends Google_Service public function __construct(Google_Client $client) { parent::__construct($client); + $this->rootUrl = 'https://www.googleapis.com/'; $this->servicePath = 'replicapool/v1beta2/projects/'; $this->version = 'v1beta2'; $this->serviceName = 'replicapool'; @@ -393,8 +394,8 @@ class Google_Service_Replicapool_InstanceGroupManagers_Resource extends Google_S } /** - * Deletes the specified instances. The instances are removed from the instance - * group and any target pools of which they are a member, then deleted. The + * Deletes the specified instances. The instances are deleted, then removed from + * the instance group and any target pools of which they were a member. The * targetSize of the instance group manager is reduced by the number of * instances deleted. (instanceGroupManagers.deleteInstances) * @@ -617,6 +618,8 @@ class Google_Service_Replicapool_InstanceGroupManager extends Google_Collection protected $collection_key = 'targetPools'; protected $internal_gapi_mappings = array( ); + protected $autoHealingPoliciesType = 'Google_Service_Replicapool_ReplicaPoolAutoHealingPolicy'; + protected $autoHealingPoliciesDataType = 'array'; public $baseInstanceName; public $creationTimestamp; public $currentSize; @@ -632,6 +635,14 @@ class Google_Service_Replicapool_InstanceGroupManager extends Google_Collection public $targetSize; + public function setAutoHealingPolicies($autoHealingPolicies) + { + $this->autoHealingPolicies = $autoHealingPolicies; + } + public function getAutoHealingPolicies() + { + return $this->autoHealingPolicies; + } public function setBaseInstanceName($baseInstanceName) { $this->baseInstanceName = $baseInstanceName; @@ -1271,3 +1282,29 @@ class Google_Service_Replicapool_OperationWarningsData extends Google_Model return $this->value; } } + +class Google_Service_Replicapool_ReplicaPoolAutoHealingPolicy extends Google_Model +{ + protected $internal_gapi_mappings = array( + ); + public $actionType; + public $healthCheck; + + + public function setActionType($actionType) + { + $this->actionType = $actionType; + } + public function getActionType() + { + return $this->actionType; + } + public function setHealthCheck($healthCheck) + { + $this->healthCheck = $healthCheck; + } + public function getHealthCheck() + { + return $this->healthCheck; + } +} diff --git a/lib/google/src/Google/Service/Replicapoolupdater.php b/lib/google/src/Google/Service/Replicapoolupdater.php index e675384903e..44cf2df3c55 100644 --- a/lib/google/src/Google/Service/Replicapoolupdater.php +++ b/lib/google/src/Google/Service/Replicapoolupdater.php @@ -41,7 +41,8 @@ class Google_Service_Replicapoolupdater extends Google_Service const REPLICAPOOL_READONLY = "https://www.googleapis.com/auth/replicapool.readonly"; - public $updates; + public $rollingUpdates; + public $zoneOperations; /** @@ -52,18 +53,19 @@ class Google_Service_Replicapoolupdater extends Google_Service public function __construct(Google_Client $client) { parent::__construct($client); + $this->rootUrl = 'https://www.googleapis.com/'; $this->servicePath = 'replicapoolupdater/v1beta1/projects/'; $this->version = 'v1beta1'; $this->serviceName = 'replicapoolupdater'; - $this->updates = new Google_Service_Replicapoolupdater_Updates_Resource( + $this->rollingUpdates = new Google_Service_Replicapoolupdater_RollingUpdates_Resource( $this, $this->serviceName, - 'updates', + 'rollingUpdates', array( 'methods' => array( 'cancel' => array( - 'path' => '{project}/zones/{zone}/instanceGroupManagers/{instanceGroupManager}/updates/{update}/cancel', + 'path' => '{project}/zones/{zone}/rollingUpdates/{rollingUpdate}/cancel', 'httpMethod' => 'POST', 'parameters' => array( 'project' => array( @@ -76,19 +78,14 @@ class Google_Service_Replicapoolupdater extends Google_Service 'type' => 'string', 'required' => true, ), - 'instanceGroupManager' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'update' => array( + 'rollingUpdate' => array( 'location' => 'path', 'type' => 'string', 'required' => true, ), ), ),'get' => array( - 'path' => '{project}/zones/{zone}/instanceGroupManagers/{instanceGroupManager}/updates/{update}', + 'path' => '{project}/zones/{zone}/rollingUpdates/{rollingUpdate}', 'httpMethod' => 'GET', 'parameters' => array( 'project' => array( @@ -101,19 +98,14 @@ class Google_Service_Replicapoolupdater extends Google_Service 'type' => 'string', 'required' => true, ), - 'instanceGroupManager' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'update' => array( + 'rollingUpdate' => array( 'location' => 'path', 'type' => 'string', 'required' => true, ), ), ),'insert' => array( - 'path' => '{project}/zones/{zone}/instanceGroupManagers/{instanceGroupManager}/updates', + 'path' => '{project}/zones/{zone}/rollingUpdates', 'httpMethod' => 'POST', 'parameters' => array( 'project' => array( @@ -126,14 +118,9 @@ class Google_Service_Replicapoolupdater extends Google_Service 'type' => 'string', 'required' => true, ), - 'instanceGroupManager' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), ), ),'list' => array( - 'path' => '{project}/zones/{zone}/instanceGroupManagers/{instanceGroupManager}/updates', + 'path' => '{project}/zones/{zone}/rollingUpdates', 'httpMethod' => 'GET', 'parameters' => array( 'project' => array( @@ -146,22 +133,57 @@ class Google_Service_Replicapoolupdater extends Google_Service 'type' => 'string', 'required' => true, ), - 'instanceGroupManager' => array( - 'location' => 'path', + 'maxResults' => array( + 'location' => 'query', + 'type' => 'integer', + ), + 'filter' => array( + 'location' => 'query', 'type' => 'string', - 'required' => true, ), 'pageToken' => array( 'location' => 'query', 'type' => 'string', ), + 'instanceGroupManager' => array( + 'location' => 'query', + 'type' => 'string', + ), + ), + ),'listInstanceUpdates' => array( + 'path' => '{project}/zones/{zone}/rollingUpdates/{rollingUpdate}/instanceUpdates', + 'httpMethod' => 'GET', + 'parameters' => array( + 'project' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'zone' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'rollingUpdate' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), 'maxResults' => array( 'location' => 'query', 'type' => 'integer', ), + 'filter' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'pageToken' => array( + 'location' => 'query', + 'type' => 'string', + ), ), ),'pause' => array( - 'path' => '{project}/zones/{zone}/instanceGroupManagers/{instanceGroupManager}/updates/{update}/pause', + 'path' => '{project}/zones/{zone}/rollingUpdates/{rollingUpdate}/pause', 'httpMethod' => 'POST', 'parameters' => array( 'project' => array( @@ -174,19 +196,34 @@ class Google_Service_Replicapoolupdater extends Google_Service 'type' => 'string', 'required' => true, ), - 'instanceGroupManager' => array( + 'rollingUpdate' => array( 'location' => 'path', 'type' => 'string', 'required' => true, ), - 'update' => array( + ), + ),'resume' => array( + 'path' => '{project}/zones/{zone}/rollingUpdates/{rollingUpdate}/resume', + 'httpMethod' => 'POST', + 'parameters' => array( + 'project' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'zone' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'rollingUpdate' => array( 'location' => 'path', 'type' => 'string', 'required' => true, ), ), ),'rollback' => array( - 'path' => '{project}/zones/{zone}/instanceGroupManagers/{instanceGroupManager}/updates/{update}/rollback', + 'path' => '{project}/zones/{zone}/rollingUpdates/{rollingUpdate}/rollback', 'httpMethod' => 'POST', 'parameters' => array( 'project' => array( @@ -199,20 +236,25 @@ class Google_Service_Replicapoolupdater extends Google_Service 'type' => 'string', 'required' => true, ), - 'instanceGroupManager' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'update' => array( + 'rollingUpdate' => array( 'location' => 'path', 'type' => 'string', 'required' => true, ), ), - ),'rollforward' => array( - 'path' => '{project}/zones/{zone}/instanceGroupManagers/{instanceGroupManager}/updates/{update}/rollforward', - 'httpMethod' => 'POST', + ), + ) + ) + ); + $this->zoneOperations = new Google_Service_Replicapoolupdater_ZoneOperations_Resource( + $this, + $this->serviceName, + 'zoneOperations', + array( + 'methods' => array( + 'get' => array( + 'path' => '{project}/zones/{zone}/operations/{operation}', + 'httpMethod' => 'GET', 'parameters' => array( 'project' => array( 'location' => 'path', @@ -224,12 +266,7 @@ class Google_Service_Replicapoolupdater extends Google_Service 'type' => 'string', 'required' => true, ), - 'instanceGroupManager' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'update' => array( + 'operation' => array( 'location' => 'path', 'type' => 'string', 'required' => true, @@ -244,260 +281,318 @@ class Google_Service_Replicapoolupdater extends Google_Service /** - * The "updates" collection of methods. + * The "rollingUpdates" collection of methods. * Typical usage is: * * $replicapoolupdaterService = new Google_Service_Replicapoolupdater(...); - * $updates = $replicapoolupdaterService->updates; + * $rollingUpdates = $replicapoolupdaterService->rollingUpdates; * */ -class Google_Service_Replicapoolupdater_Updates_Resource extends Google_Service_Resource +class Google_Service_Replicapoolupdater_RollingUpdates_Resource extends Google_Service_Resource { /** - * Called on the particular Update endpoint. Cancels the update in state PAUSED. - * No-op if invoked in state CANCELLED. (updates.cancel) + * Cancels an update. The update must be PAUSED before it can be cancelled. This + * has no effect if the update is already CANCELLED. (rollingUpdates.cancel) * - * @param string $project Project ID for this request. - * @param string $zone Zone for the instance group manager. - * @param string $instanceGroupManager Name of the instance group manager for - * this request. - * @param string $update Unique (in the context of a group) handle of an update. + * @param string $project The Google Developers Console project name. + * @param string $zone The name of the zone in which the update's target + * resides. + * @param string $rollingUpdate The name of the update. * @param array $optParams Optional parameters. + * @return Google_Service_Replicapoolupdater_Operation */ - public function cancel($project, $zone, $instanceGroupManager, $update, $optParams = array()) + public function cancel($project, $zone, $rollingUpdate, $optParams = array()) { - $params = array('project' => $project, 'zone' => $zone, 'instanceGroupManager' => $instanceGroupManager, 'update' => $update); + $params = array('project' => $project, 'zone' => $zone, 'rollingUpdate' => $rollingUpdate); $params = array_merge($params, $optParams); - return $this->call('cancel', array($params)); + return $this->call('cancel', array($params), "Google_Service_Replicapoolupdater_Operation"); } /** - * Called on the particular Update endpoint. Returns the Update resource. - * (updates.get) + * Returns information about an update. (rollingUpdates.get) * - * @param string $project Project ID for this request. - * @param string $zone Zone for the instance group manager. - * @param string $instanceGroupManager Name of the instance group manager for - * this request. - * @param string $update Unique (in the context of a group) handle of an update. + * @param string $project The Google Developers Console project name. + * @param string $zone The name of the zone in which the update's target + * resides. + * @param string $rollingUpdate The name of the update. * @param array $optParams Optional parameters. - * @return Google_Service_Replicapoolupdater_Update + * @return Google_Service_Replicapoolupdater_RollingUpdate */ - public function get($project, $zone, $instanceGroupManager, $update, $optParams = array()) + public function get($project, $zone, $rollingUpdate, $optParams = array()) { - $params = array('project' => $project, 'zone' => $zone, 'instanceGroupManager' => $instanceGroupManager, 'update' => $update); + $params = array('project' => $project, 'zone' => $zone, 'rollingUpdate' => $rollingUpdate); $params = array_merge($params, $optParams); - return $this->call('get', array($params), "Google_Service_Replicapoolupdater_Update"); + return $this->call('get', array($params), "Google_Service_Replicapoolupdater_RollingUpdate"); } /** - * Called on the collection endpoint. Inserts the new Update resource and starts - * the update. (updates.insert) + * Inserts and starts a new update. (rollingUpdates.insert) * - * @param string $project Project ID for this request. - * @param string $zone Zone for the instance group manager. - * @param string $instanceGroupManager Name of the instance group manager for - * this request. - * @param Google_Update $postBody + * @param string $project The Google Developers Console project name. + * @param string $zone The name of the zone in which the update's target + * resides. + * @param Google_RollingUpdate $postBody * @param array $optParams Optional parameters. - * @return Google_Service_Replicapoolupdater_InsertResponse + * @return Google_Service_Replicapoolupdater_Operation */ - public function insert($project, $zone, $instanceGroupManager, Google_Service_Replicapoolupdater_Update $postBody, $optParams = array()) + public function insert($project, $zone, Google_Service_Replicapoolupdater_RollingUpdate $postBody, $optParams = array()) { - $params = array('project' => $project, 'zone' => $zone, 'instanceGroupManager' => $instanceGroupManager, 'postBody' => $postBody); + $params = array('project' => $project, 'zone' => $zone, 'postBody' => $postBody); $params = array_merge($params, $optParams); - return $this->call('insert', array($params), "Google_Service_Replicapoolupdater_InsertResponse"); + return $this->call('insert', array($params), "Google_Service_Replicapoolupdater_Operation"); } /** - * Called on the collection endpoint. Lists updates for a given instance group, - * in reverse chronological order. Pagination is supported, see - * ListRequestHeader. (updates.listUpdates) + * Lists recent updates for a given managed instance group, in reverse + * chronological order and paginated format. (rollingUpdates.listRollingUpdates) * - * @param string $project Project ID for this request. - * @param string $zone Zone for the instance group manager. - * @param string $instanceGroupManager Name of the instance group manager for - * this request. + * @param string $project The Google Developers Console project name. + * @param string $zone The name of the zone in which the update's target + * resides. * @param array $optParams Optional parameters. * - * @opt_param string pageToken Set this to the nextPageToken value returned by a - * previous list request to obtain the next page of results from the previous - * list request. - * @opt_param int maxResults Maximum count of results to be returned. Acceptable - * values are 1 to 100, inclusive. (Default: 50) - * @return Google_Service_Replicapoolupdater_UpdateList + * @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. + * @return Google_Service_Replicapoolupdater_RollingUpdateList */ - public function listUpdates($project, $zone, $instanceGroupManager, $optParams = array()) + public function listRollingUpdates($project, $zone, $optParams = array()) { - $params = array('project' => $project, 'zone' => $zone, 'instanceGroupManager' => $instanceGroupManager); + $params = array('project' => $project, 'zone' => $zone); $params = array_merge($params, $optParams); - return $this->call('list', array($params), "Google_Service_Replicapoolupdater_UpdateList"); + return $this->call('list', array($params), "Google_Service_Replicapoolupdater_RollingUpdateList"); } /** - * Called on the particular Update endpoint. Pauses the update in state - * ROLLING_FORWARD or ROLLING_BACK. No-op if invoked in state PAUSED. - * (updates.pause) + * Lists the current status for each instance within a given update. + * (rollingUpdates.listInstanceUpdates) * - * @param string $project Project ID for this request. - * @param string $zone Zone for the instance group manager. - * @param string $instanceGroupManager Name of the instance group manager for - * this request. - * @param string $update Unique (in the context of a group) handle of an update. + * @param string $project The Google Developers Console project name. + * @param string $zone The name of the zone in which the update's target + * resides. + * @param string $rollingUpdate The name of the update. * @param array $optParams Optional parameters. + * + * @opt_param string maxResults Optional. Maximum count of results to be + * returned. Maximum value is 500 and default value is 500. + * @opt_param string filter Optional. Filter expression for filtering listed + * resources. + * @opt_param string pageToken Optional. Tag returned by a previous list request + * truncated by maxResults. Used to continue a previous list request. + * @return Google_Service_Replicapoolupdater_InstanceUpdateList */ - public function pause($project, $zone, $instanceGroupManager, $update, $optParams = array()) + public function listInstanceUpdates($project, $zone, $rollingUpdate, $optParams = array()) { - $params = array('project' => $project, 'zone' => $zone, 'instanceGroupManager' => $instanceGroupManager, 'update' => $update); + $params = array('project' => $project, 'zone' => $zone, 'rollingUpdate' => $rollingUpdate); $params = array_merge($params, $optParams); - return $this->call('pause', array($params)); + return $this->call('listInstanceUpdates', array($params), "Google_Service_Replicapoolupdater_InstanceUpdateList"); } /** - * Called on the particular Update endpoint. Rolls back the update in state - * ROLLING_FORWARD or PAUSED. No-op if invoked in state ROLLED_BACK or - * ROLLING_BACK. (updates.rollback) + * Pauses the update in state from ROLLING_FORWARD or ROLLING_BACK. Has no + * effect if invoked when the state of the update is PAUSED. + * (rollingUpdates.pause) * - * @param string $project Project ID for this request. - * @param string $zone Zone for the instance group manager. - * @param string $instanceGroupManager Name of the instance group manager for - * this request. - * @param string $update Unique (in the context of a group) handle of an update. + * @param string $project The Google Developers Console project name. + * @param string $zone The name of the zone in which the update's target + * resides. + * @param string $rollingUpdate The name of the update. * @param array $optParams Optional parameters. + * @return Google_Service_Replicapoolupdater_Operation */ - public function rollback($project, $zone, $instanceGroupManager, $update, $optParams = array()) + public function pause($project, $zone, $rollingUpdate, $optParams = array()) { - $params = array('project' => $project, 'zone' => $zone, 'instanceGroupManager' => $instanceGroupManager, 'update' => $update); + $params = array('project' => $project, 'zone' => $zone, 'rollingUpdate' => $rollingUpdate); $params = array_merge($params, $optParams); - return $this->call('rollback', array($params)); + return $this->call('pause', array($params), "Google_Service_Replicapoolupdater_Operation"); } /** - * Called on the particular Update endpoint. Rolls forward the update in state - * ROLLING_BACK or PAUSED. No-op if invoked in state ROLLED_OUT or - * ROLLING_FORWARD. (updates.rollforward) + * Continues an update in PAUSED state. Has no effect if invoked when the state + * of the update is ROLLED_OUT. (rollingUpdates.resume) * - * @param string $project Project ID for this request. - * @param string $zone Zone for the instance group manager. - * @param string $instanceGroupManager Name of the instance group manager for - * this request. - * @param string $update Unique (in the context of a group) handle of an update. + * @param string $project The Google Developers Console project name. + * @param string $zone The name of the zone in which the update's target + * resides. + * @param string $rollingUpdate The name of the update. * @param array $optParams Optional parameters. + * @return Google_Service_Replicapoolupdater_Operation */ - public function rollforward($project, $zone, $instanceGroupManager, $update, $optParams = array()) + public function resume($project, $zone, $rollingUpdate, $optParams = array()) { - $params = array('project' => $project, 'zone' => $zone, 'instanceGroupManager' => $instanceGroupManager, 'update' => $update); + $params = array('project' => $project, 'zone' => $zone, 'rollingUpdate' => $rollingUpdate); $params = array_merge($params, $optParams); - return $this->call('rollforward', array($params)); + return $this->call('resume', array($params), "Google_Service_Replicapoolupdater_Operation"); + } + + /** + * Rolls back the update in state from ROLLING_FORWARD or PAUSED. Has no effect + * if invoked when the state of the update is ROLLED_BACK. + * (rollingUpdates.rollback) + * + * @param string $project The Google Developers Console project name. + * @param string $zone The name of the zone in which the update's target + * resides. + * @param string $rollingUpdate The name of the update. + * @param array $optParams Optional parameters. + * @return Google_Service_Replicapoolupdater_Operation + */ + public function rollback($project, $zone, $rollingUpdate, $optParams = array()) + { + $params = array('project' => $project, 'zone' => $zone, 'rollingUpdate' => $rollingUpdate); + $params = array_merge($params, $optParams); + return $this->call('rollback', array($params), "Google_Service_Replicapoolupdater_Operation"); + } +} + +/** + * The "zoneOperations" collection of methods. + * Typical usage is: + * + * $replicapoolupdaterService = new Google_Service_Replicapoolupdater(...); + * $zoneOperations = $replicapoolupdaterService->zoneOperations; + * + */ +class Google_Service_Replicapoolupdater_ZoneOperations_Resource extends Google_Service_Resource +{ + + /** + * Retrieves the specified zone-specific operation resource. + * (zoneOperations.get) + * + * @param string $project Name of the project scoping this request. + * @param string $zone Name of the zone scoping this request. + * @param string $operation Name of the operation resource to return. + * @param array $optParams Optional parameters. + * @return Google_Service_Replicapoolupdater_Operation + */ + public function get($project, $zone, $operation, $optParams = array()) + { + $params = array('project' => $project, 'zone' => $zone, 'operation' => $operation); + $params = array_merge($params, $optParams); + return $this->call('get', array($params), "Google_Service_Replicapoolupdater_Operation"); } } -class Google_Service_Replicapoolupdater_InsertResponse extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $update; - - - public function setUpdate($update) - { - $this->update = $update; - } - public function getUpdate() - { - return $this->update; - } -} - class Google_Service_Replicapoolupdater_InstanceUpdate extends Google_Model { protected $internal_gapi_mappings = array( ); - public $instanceName; - public $state; + protected $errorType = 'Google_Service_Replicapoolupdater_InstanceUpdateError'; + protected $errorDataType = ''; + public $instance; + public $status; - public function setInstanceName($instanceName) + public function setError(Google_Service_Replicapoolupdater_InstanceUpdateError $error) { - $this->instanceName = $instanceName; + $this->error = $error; } - public function getInstanceName() + public function getError() { - return $this->instanceName; + return $this->error; } - public function setState($state) + public function setInstance($instance) { - $this->state = $state; + $this->instance = $instance; } - public function getState() + public function getInstance() { - return $this->state; + return $this->instance; + } + public function setStatus($status) + { + $this->status = $status; + } + public function getStatus() + { + return $this->status; } } -class Google_Service_Replicapoolupdater_Update extends Google_Collection +class Google_Service_Replicapoolupdater_InstanceUpdateError extends Google_Collection { - protected $collection_key = 'instanceUpdates'; + protected $collection_key = 'errors'; protected $internal_gapi_mappings = array( ); - public $creationTimestamp; - public $details; - public $handle; - public $instanceTemplate; - protected $instanceUpdatesType = 'Google_Service_Replicapoolupdater_InstanceUpdate'; - protected $instanceUpdatesDataType = 'array'; + protected $errorsType = 'Google_Service_Replicapoolupdater_InstanceUpdateErrorErrors'; + protected $errorsDataType = 'array'; + + + public function setErrors($errors) + { + $this->errors = $errors; + } + public function getErrors() + { + return $this->errors; + } +} + +class Google_Service_Replicapoolupdater_InstanceUpdateErrorErrors extends Google_Model +{ + protected $internal_gapi_mappings = array( + ); + public $code; + public $location; + public $message; + + + public function setCode($code) + { + $this->code = $code; + } + public function getCode() + { + return $this->code; + } + public function setLocation($location) + { + $this->location = $location; + } + public function getLocation() + { + return $this->location; + } + public function setMessage($message) + { + $this->message = $message; + } + public function getMessage() + { + return $this->message; + } +} + +class Google_Service_Replicapoolupdater_InstanceUpdateList extends Google_Collection +{ + protected $collection_key = 'items'; + protected $internal_gapi_mappings = array( + ); + protected $itemsType = 'Google_Service_Replicapoolupdater_InstanceUpdate'; + protected $itemsDataType = 'array'; public $kind; - protected $policyType = 'Google_Service_Replicapoolupdater_UpdatePolicy'; - protected $policyDataType = ''; + public $nextPageToken; public $selfLink; - public $state; - public $targetState; - public $user; - public function setCreationTimestamp($creationTimestamp) + public function setItems($items) { - $this->creationTimestamp = $creationTimestamp; + $this->items = $items; } - public function getCreationTimestamp() + public function getItems() { - return $this->creationTimestamp; - } - public function setDetails($details) - { - $this->details = $details; - } - public function getDetails() - { - return $this->details; - } - public function setHandle($handle) - { - $this->handle = $handle; - } - public function getHandle() - { - return $this->handle; - } - public function setInstanceTemplate($instanceTemplate) - { - $this->instanceTemplate = $instanceTemplate; - } - public function getInstanceTemplate() - { - return $this->instanceTemplate; - } - public function setInstanceUpdates($instanceUpdates) - { - $this->instanceUpdates = $instanceUpdates; - } - public function getInstanceUpdates() - { - return $this->instanceUpdates; + return $this->items; } public function setKind($kind) { @@ -507,13 +602,13 @@ class Google_Service_Replicapoolupdater_Update extends Google_Collection { return $this->kind; } - public function setPolicy(Google_Service_Replicapoolupdater_UpdatePolicy $policy) + public function setNextPageToken($nextPageToken) { - $this->policy = $policy; + $this->nextPageToken = $nextPageToken; } - public function getPolicy() + public function getNextPageToken() { - return $this->policy; + return $this->nextPageToken; } public function setSelfLink($selfLink) { @@ -523,21 +618,468 @@ class Google_Service_Replicapoolupdater_Update extends Google_Collection { return $this->selfLink; } - public function setState($state) +} + +class Google_Service_Replicapoolupdater_Operation extends Google_Collection +{ + protected $collection_key = 'warnings'; + protected $internal_gapi_mappings = array( + ); + public $clientOperationId; + public $creationTimestamp; + public $endTime; + protected $errorType = 'Google_Service_Replicapoolupdater_OperationError'; + protected $errorDataType = ''; + public $httpErrorMessage; + public $httpErrorStatusCode; + public $id; + public $insertTime; + public $kind; + public $name; + public $operationType; + public $progress; + public $region; + public $selfLink; + public $startTime; + public $status; + public $statusMessage; + public $targetId; + public $targetLink; + public $user; + protected $warningsType = 'Google_Service_Replicapoolupdater_OperationWarnings'; + protected $warningsDataType = 'array'; + public $zone; + + + public function setClientOperationId($clientOperationId) { - $this->state = $state; + $this->clientOperationId = $clientOperationId; } - public function getState() + public function getClientOperationId() { - return $this->state; + return $this->clientOperationId; } - public function setTargetState($targetState) + public function setCreationTimestamp($creationTimestamp) { - $this->targetState = $targetState; + $this->creationTimestamp = $creationTimestamp; } - public function getTargetState() + public function getCreationTimestamp() { - return $this->targetState; + return $this->creationTimestamp; + } + public function setEndTime($endTime) + { + $this->endTime = $endTime; + } + public function getEndTime() + { + return $this->endTime; + } + public function setError(Google_Service_Replicapoolupdater_OperationError $error) + { + $this->error = $error; + } + public function getError() + { + return $this->error; + } + public function setHttpErrorMessage($httpErrorMessage) + { + $this->httpErrorMessage = $httpErrorMessage; + } + public function getHttpErrorMessage() + { + return $this->httpErrorMessage; + } + public function setHttpErrorStatusCode($httpErrorStatusCode) + { + $this->httpErrorStatusCode = $httpErrorStatusCode; + } + public function getHttpErrorStatusCode() + { + return $this->httpErrorStatusCode; + } + public function setId($id) + { + $this->id = $id; + } + public function getId() + { + return $this->id; + } + public function setInsertTime($insertTime) + { + $this->insertTime = $insertTime; + } + public function getInsertTime() + { + return $this->insertTime; + } + public function setKind($kind) + { + $this->kind = $kind; + } + public function getKind() + { + return $this->kind; + } + public function setName($name) + { + $this->name = $name; + } + public function getName() + { + return $this->name; + } + public function setOperationType($operationType) + { + $this->operationType = $operationType; + } + public function getOperationType() + { + return $this->operationType; + } + public function setProgress($progress) + { + $this->progress = $progress; + } + public function getProgress() + { + return $this->progress; + } + public function setRegion($region) + { + $this->region = $region; + } + public function getRegion() + { + return $this->region; + } + public function setSelfLink($selfLink) + { + $this->selfLink = $selfLink; + } + public function getSelfLink() + { + return $this->selfLink; + } + public function setStartTime($startTime) + { + $this->startTime = $startTime; + } + public function getStartTime() + { + return $this->startTime; + } + public function setStatus($status) + { + $this->status = $status; + } + public function getStatus() + { + return $this->status; + } + public function setStatusMessage($statusMessage) + { + $this->statusMessage = $statusMessage; + } + public function getStatusMessage() + { + return $this->statusMessage; + } + public function setTargetId($targetId) + { + $this->targetId = $targetId; + } + public function getTargetId() + { + return $this->targetId; + } + public function setTargetLink($targetLink) + { + $this->targetLink = $targetLink; + } + public function getTargetLink() + { + return $this->targetLink; + } + public function setUser($user) + { + $this->user = $user; + } + public function getUser() + { + return $this->user; + } + public function setWarnings($warnings) + { + $this->warnings = $warnings; + } + public function getWarnings() + { + return $this->warnings; + } + public function setZone($zone) + { + $this->zone = $zone; + } + public function getZone() + { + return $this->zone; + } +} + +class Google_Service_Replicapoolupdater_OperationError extends Google_Collection +{ + protected $collection_key = 'errors'; + protected $internal_gapi_mappings = array( + ); + protected $errorsType = 'Google_Service_Replicapoolupdater_OperationErrorErrors'; + protected $errorsDataType = 'array'; + + + public function setErrors($errors) + { + $this->errors = $errors; + } + public function getErrors() + { + return $this->errors; + } +} + +class Google_Service_Replicapoolupdater_OperationErrorErrors extends Google_Model +{ + protected $internal_gapi_mappings = array( + ); + public $code; + public $location; + public $message; + + + public function setCode($code) + { + $this->code = $code; + } + public function getCode() + { + return $this->code; + } + public function setLocation($location) + { + $this->location = $location; + } + public function getLocation() + { + return $this->location; + } + public function setMessage($message) + { + $this->message = $message; + } + public function getMessage() + { + return $this->message; + } +} + +class Google_Service_Replicapoolupdater_OperationWarnings extends Google_Collection +{ + protected $collection_key = 'data'; + protected $internal_gapi_mappings = array( + ); + public $code; + protected $dataType = 'Google_Service_Replicapoolupdater_OperationWarningsData'; + protected $dataDataType = 'array'; + public $message; + + + public function setCode($code) + { + $this->code = $code; + } + public function getCode() + { + return $this->code; + } + public function setData($data) + { + $this->data = $data; + } + public function getData() + { + return $this->data; + } + public function setMessage($message) + { + $this->message = $message; + } + public function getMessage() + { + return $this->message; + } +} + +class Google_Service_Replicapoolupdater_OperationWarningsData extends Google_Model +{ + protected $internal_gapi_mappings = array( + ); + public $key; + public $value; + + + public function setKey($key) + { + $this->key = $key; + } + public function getKey() + { + return $this->key; + } + public function setValue($value) + { + $this->value = $value; + } + public function getValue() + { + return $this->value; + } +} + +class Google_Service_Replicapoolupdater_RollingUpdate extends Google_Model +{ + protected $internal_gapi_mappings = array( + ); + public $actionType; + public $creationTimestamp; + public $description; + protected $errorType = 'Google_Service_Replicapoolupdater_RollingUpdateError'; + protected $errorDataType = ''; + public $id; + public $instanceGroup; + public $instanceGroupManager; + public $instanceTemplate; + public $kind; + protected $policyType = 'Google_Service_Replicapoolupdater_RollingUpdatePolicy'; + protected $policyDataType = ''; + public $progress; + public $selfLink; + public $status; + public $statusMessage; + public $user; + + + public function setActionType($actionType) + { + $this->actionType = $actionType; + } + public function getActionType() + { + return $this->actionType; + } + public function setCreationTimestamp($creationTimestamp) + { + $this->creationTimestamp = $creationTimestamp; + } + public function getCreationTimestamp() + { + return $this->creationTimestamp; + } + public function setDescription($description) + { + $this->description = $description; + } + public function getDescription() + { + return $this->description; + } + public function setError(Google_Service_Replicapoolupdater_RollingUpdateError $error) + { + $this->error = $error; + } + public function getError() + { + return $this->error; + } + public function setId($id) + { + $this->id = $id; + } + public function getId() + { + return $this->id; + } + public function setInstanceGroup($instanceGroup) + { + $this->instanceGroup = $instanceGroup; + } + public function getInstanceGroup() + { + return $this->instanceGroup; + } + public function setInstanceGroupManager($instanceGroupManager) + { + $this->instanceGroupManager = $instanceGroupManager; + } + public function getInstanceGroupManager() + { + return $this->instanceGroupManager; + } + public function setInstanceTemplate($instanceTemplate) + { + $this->instanceTemplate = $instanceTemplate; + } + public function getInstanceTemplate() + { + return $this->instanceTemplate; + } + public function setKind($kind) + { + $this->kind = $kind; + } + public function getKind() + { + return $this->kind; + } + public function setPolicy(Google_Service_Replicapoolupdater_RollingUpdatePolicy $policy) + { + $this->policy = $policy; + } + public function getPolicy() + { + return $this->policy; + } + public function setProgress($progress) + { + $this->progress = $progress; + } + public function getProgress() + { + return $this->progress; + } + public function setSelfLink($selfLink) + { + $this->selfLink = $selfLink; + } + public function getSelfLink() + { + return $this->selfLink; + } + public function setStatus($status) + { + $this->status = $status; + } + public function getStatus() + { + return $this->status; + } + public function setStatusMessage($statusMessage) + { + $this->statusMessage = $statusMessage; + } + public function getStatusMessage() + { + return $this->statusMessage; } public function setUser($user) { @@ -549,14 +1091,70 @@ class Google_Service_Replicapoolupdater_Update extends Google_Collection } } -class Google_Service_Replicapoolupdater_UpdateList extends Google_Collection +class Google_Service_Replicapoolupdater_RollingUpdateError extends Google_Collection +{ + protected $collection_key = 'errors'; + protected $internal_gapi_mappings = array( + ); + protected $errorsType = 'Google_Service_Replicapoolupdater_RollingUpdateErrorErrors'; + protected $errorsDataType = 'array'; + + + public function setErrors($errors) + { + $this->errors = $errors; + } + public function getErrors() + { + return $this->errors; + } +} + +class Google_Service_Replicapoolupdater_RollingUpdateErrorErrors extends Google_Model +{ + protected $internal_gapi_mappings = array( + ); + public $code; + public $location; + public $message; + + + public function setCode($code) + { + $this->code = $code; + } + public function getCode() + { + return $this->code; + } + public function setLocation($location) + { + $this->location = $location; + } + public function getLocation() + { + return $this->location; + } + public function setMessage($message) + { + $this->message = $message; + } + public function getMessage() + { + return $this->message; + } +} + +class Google_Service_Replicapoolupdater_RollingUpdateList extends Google_Collection { protected $collection_key = 'items'; protected $internal_gapi_mappings = array( ); - protected $itemsType = 'Google_Service_Replicapoolupdater_Update'; + protected $itemsType = 'Google_Service_Replicapoolupdater_RollingUpdate'; protected $itemsDataType = 'array'; + public $kind; public $nextPageToken; + public $selfLink; public function setItems($items) @@ -567,6 +1165,14 @@ class Google_Service_Replicapoolupdater_UpdateList extends Google_Collection { return $this->items; } + public function setKind($kind) + { + $this->kind = $kind; + } + public function getKind() + { + return $this->kind; + } public function setNextPageToken($nextPageToken) { $this->nextPageToken = $nextPageToken; @@ -575,25 +1181,42 @@ class Google_Service_Replicapoolupdater_UpdateList extends Google_Collection { return $this->nextPageToken; } + public function setSelfLink($selfLink) + { + $this->selfLink = $selfLink; + } + public function getSelfLink() + { + return $this->selfLink; + } } -class Google_Service_Replicapoolupdater_UpdatePolicy extends Google_Model +class Google_Service_Replicapoolupdater_RollingUpdatePolicy extends Google_Model { protected $internal_gapi_mappings = array( ); - protected $canaryType = 'Google_Service_Replicapoolupdater_UpdatePolicyCanary'; - protected $canaryDataType = ''; + public $autoPauseAfterInstances; + public $instanceStartupTimeoutSec; public $maxNumConcurrentInstances; - public $sleepAfterInstanceRestartSec; + public $maxNumFailedInstances; + public $minInstanceUpdateTimeSec; - public function setCanary(Google_Service_Replicapoolupdater_UpdatePolicyCanary $canary) + public function setAutoPauseAfterInstances($autoPauseAfterInstances) { - $this->canary = $canary; + $this->autoPauseAfterInstances = $autoPauseAfterInstances; } - public function getCanary() + public function getAutoPauseAfterInstances() { - return $this->canary; + return $this->autoPauseAfterInstances; + } + public function setInstanceStartupTimeoutSec($instanceStartupTimeoutSec) + { + $this->instanceStartupTimeoutSec = $instanceStartupTimeoutSec; + } + public function getInstanceStartupTimeoutSec() + { + return $this->instanceStartupTimeoutSec; } public function setMaxNumConcurrentInstances($maxNumConcurrentInstances) { @@ -603,29 +1226,20 @@ class Google_Service_Replicapoolupdater_UpdatePolicy extends Google_Model { return $this->maxNumConcurrentInstances; } - public function setSleepAfterInstanceRestartSec($sleepAfterInstanceRestartSec) + public function setMaxNumFailedInstances($maxNumFailedInstances) { - $this->sleepAfterInstanceRestartSec = $sleepAfterInstanceRestartSec; + $this->maxNumFailedInstances = $maxNumFailedInstances; } - public function getSleepAfterInstanceRestartSec() + public function getMaxNumFailedInstances() { - return $this->sleepAfterInstanceRestartSec; + return $this->maxNumFailedInstances; } -} - -class Google_Service_Replicapoolupdater_UpdatePolicyCanary extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $numInstances; - - - public function setNumInstances($numInstances) + public function setMinInstanceUpdateTimeSec($minInstanceUpdateTimeSec) { - $this->numInstances = $numInstances; + $this->minInstanceUpdateTimeSec = $minInstanceUpdateTimeSec; } - public function getNumInstances() + public function getMinInstanceUpdateTimeSec() { - return $this->numInstances; + return $this->minInstanceUpdateTimeSec; } } diff --git a/lib/google/src/Google/Service/Reports.php b/lib/google/src/Google/Service/Reports.php index a459861d22f..76941827a3d 100644 --- a/lib/google/src/Google/Service/Reports.php +++ b/lib/google/src/Google/Service/Reports.php @@ -52,6 +52,7 @@ class Google_Service_Reports extends Google_Service public function __construct(Google_Client $client) { parent::__construct($client); + $this->rootUrl = 'https://www.googleapis.com/'; $this->servicePath = 'admin/reports/v1/'; $this->version = 'reports_v1'; $this->serviceName = 'admin'; diff --git a/lib/google/src/Google/Service/Reseller.php b/lib/google/src/Google/Service/Reseller.php index 3073b0e0524..e95a737d3bb 100644 --- a/lib/google/src/Google/Service/Reseller.php +++ b/lib/google/src/Google/Service/Reseller.php @@ -49,6 +49,7 @@ class Google_Service_Reseller extends Google_Service public function __construct(Google_Client $client) { parent::__construct($client); + $this->rootUrl = 'https://www.googleapis.com/'; $this->servicePath = 'apps/reseller/v1/'; $this->version = 'v1'; $this->serviceName = 'reseller'; @@ -833,10 +834,12 @@ class Google_Service_Reseller_Seats extends Google_Model } } -class Google_Service_Reseller_Subscription extends Google_Model +class Google_Service_Reseller_Subscription extends Google_Collection { + protected $collection_key = 'suspensionReasons'; protected $internal_gapi_mappings = array( ); + public $billingMethod; public $creationTime; public $customerId; public $kind; @@ -851,12 +854,21 @@ class Google_Service_Reseller_Subscription extends Google_Model public $skuId; public $status; public $subscriptionId; + public $suspensionReasons; protected $transferInfoType = 'Google_Service_Reseller_SubscriptionTransferInfo'; protected $transferInfoDataType = ''; protected $trialSettingsType = 'Google_Service_Reseller_SubscriptionTrialSettings'; protected $trialSettingsDataType = ''; + public function setBillingMethod($billingMethod) + { + $this->billingMethod = $billingMethod; + } + public function getBillingMethod() + { + return $this->billingMethod; + } public function setCreationTime($creationTime) { $this->creationTime = $creationTime; @@ -945,6 +957,14 @@ class Google_Service_Reseller_Subscription extends Google_Model { return $this->subscriptionId; } + public function setSuspensionReasons($suspensionReasons) + { + $this->suspensionReasons = $suspensionReasons; + } + public function getSuspensionReasons() + { + return $this->suspensionReasons; + } public function setTransferInfo(Google_Service_Reseller_SubscriptionTransferInfo $transferInfo) { $this->transferInfo = $transferInfo; diff --git a/lib/google/src/Google/Service/Resource.php b/lib/google/src/Google/Service/Resource.php index 29bc06e96b1..b0514d722b5 100644 --- a/lib/google/src/Google/Service/Resource.php +++ b/lib/google/src/Google/Service/Resource.php @@ -15,16 +15,15 @@ * limitations under the License. */ -require_once realpath(dirname(__FILE__) . '/../../../autoload.php'); +if (!class_exists('Google_Client')) { + require_once dirname(__FILE__) . '/../autoload.php'; +} /** * Implements the actual methods/resources of the discovered Google API using magic function * calling overloading (__call()), which on call will see if the method name (plus.activities.list) * is available in this service, and if so construct an apiHttpRequest representing it. * - * @author Chris Chabot - * @author Chirag Shah - * */ class Google_Service_Resource { @@ -34,16 +33,16 @@ class Google_Service_Resource 'fields' => array('type' => 'string', 'location' => 'query'), 'trace' => array('type' => 'string', 'location' => 'query'), 'userIp' => array('type' => 'string', 'location' => 'query'), - 'userip' => array('type' => 'string', 'location' => 'query'), 'quotaUser' => array('type' => 'string', 'location' => 'query'), 'data' => array('type' => 'string', 'location' => 'body'), 'mimeType' => array('type' => 'string', 'location' => 'header'), 'uploadType' => array('type' => 'string', 'location' => 'query'), 'mediaUpload' => array('type' => 'complex', 'location' => 'query'), + 'prettyPrint' => array('type' => 'string', 'location' => 'query'), ); - /** @var Google_Service $service */ - private $service; + /** @var string $rootUrl */ + private $rootUrl; /** @var Google_Client $client */ private $client; @@ -51,6 +50,9 @@ class Google_Service_Resource /** @var string $serviceName */ private $serviceName; + /** @var string $servicePath */ + private $servicePath; + /** @var string $resourceName */ private $resourceName; @@ -59,17 +61,18 @@ class Google_Service_Resource public function __construct($service, $serviceName, $resourceName, $resource) { - $this->service = $service; + $this->rootUrl = $service->rootUrl; $this->client = $service->getClient(); + $this->servicePath = $service->servicePath; $this->serviceName = $serviceName; $this->resourceName = $resourceName; - $this->methods = isset($resource['methods']) ? + $this->methods = is_array($resource) && isset($resource['methods']) ? $resource['methods'] : array($resourceName => $resource); } /** - * TODO(ianbarber): This function needs simplifying. + * TODO: This function needs simplifying. * @param $name * @param $arguments * @param $expected_class - optional, the expected class name @@ -115,7 +118,7 @@ class Google_Service_Resource unset($parameters['postBody']); } - // TODO(ianbarber): optParams here probably should have been + // TODO: optParams here probably should have been // handled already - this may well be redundant code. if (isset($parameters['optParams'])) { $optParams = $parameters['optParams']; @@ -173,8 +176,6 @@ class Google_Service_Resource } } - $servicePath = $this->service->servicePath; - $this->client->getLogger()->info( 'Service Call', array( @@ -186,7 +187,7 @@ class Google_Service_Resource ); $url = Google_Http_REST::createRequestUri( - $servicePath, + $this->servicePath, $method['path'], $parameters ); @@ -196,7 +197,12 @@ class Google_Service_Resource null, $postBody ); - $httpRequest->setBaseComponent($this->client->getBasePath()); + + if ($this->rootUrl) { + $httpRequest->setBaseComponent($this->rootUrl); + } else { + $httpRequest->setBaseComponent($this->client->getBasePath()); + } if ($postBody) { $contentTypeHeader = array(); @@ -219,6 +225,10 @@ class Google_Service_Resource ); } + if (isset($parameters['alt']) && $parameters['alt']['value'] == 'media') { + $httpRequest->enableExpectedRaw(); + } + if ($this->client->shouldDefer()) { // If we are in batch or upload mode, return the raw request. return $httpRequest; diff --git a/lib/google/src/Google/Service/Resourceviews.php b/lib/google/src/Google/Service/Resourceviews.php index 10eb4b11563..4420a7525fe 100644 --- a/lib/google/src/Google/Service/Resourceviews.php +++ b/lib/google/src/Google/Service/Resourceviews.php @@ -59,6 +59,7 @@ class Google_Service_Resourceviews extends Google_Service public function __construct(Google_Client $client) { parent::__construct($client); + $this->rootUrl = 'https://www.googleapis.com/'; $this->servicePath = 'resourceviews/v1beta2/projects/'; $this->version = 'v1beta2'; $this->serviceName = 'resourceviews'; diff --git a/lib/google/src/Google/Service/SQLAdmin.php b/lib/google/src/Google/Service/SQLAdmin.php index 06840d5f0a6..12882d35607 100644 --- a/lib/google/src/Google/Service/SQLAdmin.php +++ b/lib/google/src/Google/Service/SQLAdmin.php @@ -16,14 +16,14 @@ */ /** - * Service definition for SQLAdmin (v1beta3). + * Service definition for SQLAdmin (v1beta4). * *

* API for Cloud SQL database instance management.

* *

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

* * @author Google, Inc. @@ -38,11 +38,13 @@ class Google_Service_SQLAdmin extends Google_Service "https://www.googleapis.com/auth/sqlservice.admin"; public $backupRuns; + public $databases; public $flags; public $instances; public $operations; public $sslCerts; public $tiers; + public $users; /** @@ -53,8 +55,9 @@ class Google_Service_SQLAdmin extends Google_Service public function __construct(Google_Client $client) { parent::__construct($client); - $this->servicePath = 'sql/v1beta3/'; - $this->version = 'v1beta3'; + $this->rootUrl = 'https://www.googleapis.com/'; + $this->servicePath = 'sql/v1beta4/'; + $this->version = 'v1beta4'; $this->serviceName = 'sqladmin'; $this->backupRuns = new Google_Service_SQLAdmin_BackupRuns_Resource( @@ -64,7 +67,7 @@ class Google_Service_SQLAdmin extends Google_Service array( 'methods' => array( 'get' => array( - 'path' => 'projects/{project}/instances/{instance}/backupRuns/{backupConfiguration}', + 'path' => 'projects/{project}/instances/{instance}/backupRuns/{id}', 'httpMethod' => 'GET', 'parameters' => array( 'project' => array( @@ -77,16 +80,11 @@ class Google_Service_SQLAdmin extends Google_Service 'type' => 'string', 'required' => true, ), - 'backupConfiguration' => array( + 'id' => array( 'location' => 'path', 'type' => 'string', 'required' => true, ), - 'dueTime' => array( - 'location' => 'query', - 'type' => 'string', - 'required' => true, - ), ), ),'list' => array( 'path' => 'projects/{project}/instances/{instance}/backupRuns', @@ -102,18 +100,133 @@ class Google_Service_SQLAdmin extends Google_Service 'type' => 'string', 'required' => true, ), - 'backupConfiguration' => array( + 'maxResults' => array( 'location' => 'query', - 'type' => 'string', - 'required' => true, + 'type' => 'integer', ), 'pageToken' => array( 'location' => 'query', 'type' => 'string', ), - 'maxResults' => array( - 'location' => 'query', - 'type' => 'integer', + ), + ), + ) + ) + ); + $this->databases = new Google_Service_SQLAdmin_Databases_Resource( + $this, + $this->serviceName, + 'databases', + array( + 'methods' => array( + 'delete' => array( + 'path' => 'projects/{project}/instances/{instance}/databases/{database}', + 'httpMethod' => 'DELETE', + 'parameters' => array( + 'project' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'instance' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'database' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ),'get' => array( + 'path' => 'projects/{project}/instances/{instance}/databases/{database}', + 'httpMethod' => 'GET', + 'parameters' => array( + 'project' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'instance' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'database' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ),'insert' => array( + 'path' => 'projects/{project}/instances/{instance}/databases', + 'httpMethod' => 'POST', + 'parameters' => array( + 'project' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'instance' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ),'list' => array( + 'path' => 'projects/{project}/instances/{instance}/databases', + 'httpMethod' => 'GET', + 'parameters' => array( + 'project' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'instance' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ),'patch' => array( + 'path' => 'projects/{project}/instances/{instance}/databases/{database}', + 'httpMethod' => 'PATCH', + 'parameters' => array( + 'project' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'instance' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'database' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ),'update' => array( + 'path' => 'projects/{project}/instances/{instance}/databases/{database}', + 'httpMethod' => 'PUT', + 'parameters' => array( + 'project' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'instance' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'database' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, ), ), ), @@ -141,7 +254,7 @@ class Google_Service_SQLAdmin extends Google_Service array( 'methods' => array( 'clone' => array( - 'path' => 'projects/{project}/instances/clone', + 'path' => 'projects/{project}/instances/{instance}/clone', 'httpMethod' => 'POST', 'parameters' => array( 'project' => array( @@ -149,6 +262,11 @@ class Google_Service_SQLAdmin extends Google_Service 'type' => 'string', 'required' => true, ), + 'instance' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), ), ),'delete' => array( 'path' => 'projects/{project}/instances/{instance}', @@ -312,19 +430,24 @@ class Google_Service_SQLAdmin extends Google_Service 'type' => 'string', 'required' => true, ), - 'backupConfiguration' => array( - 'location' => 'query', + ), + ),'startReplica' => array( + 'path' => 'projects/{project}/instances/{instance}/startReplica', + 'httpMethod' => 'POST', + 'parameters' => array( + 'project' => array( + 'location' => 'path', 'type' => 'string', 'required' => true, ), - 'dueTime' => array( - 'location' => 'query', + 'instance' => array( + 'location' => 'path', 'type' => 'string', 'required' => true, ), ), - ),'setRootPassword' => array( - 'path' => 'projects/{project}/instances/{instance}/setRootPassword', + ),'stopReplica' => array( + 'path' => 'projects/{project}/instances/{instance}/stopReplica', 'httpMethod' => 'POST', 'parameters' => array( 'project' => array( @@ -364,7 +487,7 @@ class Google_Service_SQLAdmin extends Google_Service array( 'methods' => array( 'get' => array( - 'path' => 'projects/{project}/instances/{instance}/operations/{operation}', + 'path' => 'projects/{project}/operations/{operation}', 'httpMethod' => 'GET', 'parameters' => array( 'project' => array( @@ -372,11 +495,6 @@ class Google_Service_SQLAdmin extends Google_Service 'type' => 'string', 'required' => true, ), - 'instance' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), 'operation' => array( 'location' => 'path', 'type' => 'string', @@ -384,7 +502,7 @@ class Google_Service_SQLAdmin extends Google_Service ), ), ),'list' => array( - 'path' => 'projects/{project}/instances/{instance}/operations', + 'path' => 'projects/{project}/operations', 'httpMethod' => 'GET', 'parameters' => array( 'project' => array( @@ -393,7 +511,7 @@ class Google_Service_SQLAdmin extends Google_Service 'required' => true, ), 'instance' => array( - 'location' => 'path', + 'location' => 'query', 'type' => 'string', 'required' => true, ), @@ -510,6 +628,96 @@ class Google_Service_SQLAdmin extends Google_Service ) ) ); + $this->users = new Google_Service_SQLAdmin_Users_Resource( + $this, + $this->serviceName, + 'users', + array( + 'methods' => array( + 'delete' => array( + 'path' => 'projects/{project}/instances/{instance}/users', + 'httpMethod' => 'DELETE', + 'parameters' => array( + 'project' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'instance' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'host' => array( + 'location' => 'query', + 'type' => 'string', + 'required' => true, + ), + 'name' => array( + 'location' => 'query', + 'type' => 'string', + 'required' => true, + ), + ), + ),'insert' => array( + 'path' => 'projects/{project}/instances/{instance}/users', + 'httpMethod' => 'POST', + 'parameters' => array( + 'project' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'instance' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ),'list' => array( + 'path' => 'projects/{project}/instances/{instance}/users', + 'httpMethod' => 'GET', + 'parameters' => array( + 'project' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'instance' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ),'update' => array( + 'path' => 'projects/{project}/instances/{instance}/users', + 'httpMethod' => 'PUT', + 'parameters' => array( + 'project' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'instance' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'host' => array( + 'location' => 'query', + 'type' => 'string', + 'required' => true, + ), + 'name' => array( + 'location' => 'query', + 'type' => 'string', + 'required' => true, + ), + ), + ), + ) + ) + ); } } @@ -526,51 +734,168 @@ class Google_Service_SQLAdmin_BackupRuns_Resource extends Google_Service_Resourc { /** - * Retrieves information about a specified backup run for a Cloud SQL instance. + * Retrieves a resource containing information about a backup run. * (backupRuns.get) * * @param string $project Project ID of the project that contains the instance. * @param string $instance Cloud SQL instance ID. This does not include the * project ID. - * @param string $backupConfiguration Identifier for the backup configuration. - * This gets generated automatically when a backup configuration is created. - * @param string $dueTime The start time of the four-hour backup window. The - * backup can occur any time in the window. The time is in RFC 3339 format, for - * example 2012-11-15T16:19:00.094Z. + * @param string $id The ID of this Backup Run. * @param array $optParams Optional parameters. * @return Google_Service_SQLAdmin_BackupRun */ - public function get($project, $instance, $backupConfiguration, $dueTime, $optParams = array()) + public function get($project, $instance, $id, $optParams = array()) { - $params = array('project' => $project, 'instance' => $instance, 'backupConfiguration' => $backupConfiguration, 'dueTime' => $dueTime); + $params = array('project' => $project, 'instance' => $instance, 'id' => $id); $params = array_merge($params, $optParams); return $this->call('get', array($params), "Google_Service_SQLAdmin_BackupRun"); } /** - * Lists all backup runs associated with a Cloud SQL instance. + * Lists all backup runs associated with a given instance and configuration in + * the reverse chronological order of the enqueued time. * (backupRuns.listBackupRuns) * * @param string $project Project ID of the project that contains the instance. * @param string $instance Cloud SQL instance ID. This does not include the * project ID. - * @param string $backupConfiguration Identifier for the backup configuration. - * This gets generated automatically when a backup configuration is created. * @param array $optParams Optional parameters. * + * @opt_param int maxResults Maximum number of backup runs per response. * @opt_param string pageToken A previously-returned page token representing * part of the larger set of results to view. - * @opt_param int maxResults Maximum number of backup runs per response. * @return Google_Service_SQLAdmin_BackupRunsListResponse */ - public function listBackupRuns($project, $instance, $backupConfiguration, $optParams = array()) + public function listBackupRuns($project, $instance, $optParams = array()) { - $params = array('project' => $project, 'instance' => $instance, 'backupConfiguration' => $backupConfiguration); + $params = array('project' => $project, 'instance' => $instance); $params = array_merge($params, $optParams); return $this->call('list', array($params), "Google_Service_SQLAdmin_BackupRunsListResponse"); } } +/** + * The "databases" collection of methods. + * Typical usage is: + * + * $sqladminService = new Google_Service_SQLAdmin(...); + * $databases = $sqladminService->databases; + * + */ +class Google_Service_SQLAdmin_Databases_Resource extends Google_Service_Resource +{ + + /** + * Deletes a resource containing information about a database inside a Cloud SQL + * instance. (databases.delete) + * + * @param string $project Project ID of the project that contains the instance. + * @param string $instance Database instance ID. This does not include the + * project ID. + * @param string $database Name of the database to be deleted in the instance. + * @param array $optParams Optional parameters. + * @return Google_Service_SQLAdmin_Operation + */ + public function delete($project, $instance, $database, $optParams = array()) + { + $params = array('project' => $project, 'instance' => $instance, 'database' => $database); + $params = array_merge($params, $optParams); + return $this->call('delete', array($params), "Google_Service_SQLAdmin_Operation"); + } + + /** + * Retrieves a resource containing information about a database inside a Cloud + * SQL instance. (databases.get) + * + * @param string $project Project ID of the project that contains the instance. + * @param string $instance Database instance ID. This does not include the + * project ID. + * @param string $database Name of the database in the instance. + * @param array $optParams Optional parameters. + * @return Google_Service_SQLAdmin_Database + */ + public function get($project, $instance, $database, $optParams = array()) + { + $params = array('project' => $project, 'instance' => $instance, 'database' => $database); + $params = array_merge($params, $optParams); + return $this->call('get', array($params), "Google_Service_SQLAdmin_Database"); + } + + /** + * Inserts a resource containing information about a database inside a Cloud SQL + * instance. (databases.insert) + * + * @param string $project Project ID of the project that contains the instance. + * @param string $instance Database instance ID. This does not include the + * project ID. + * @param Google_Database $postBody + * @param array $optParams Optional parameters. + * @return Google_Service_SQLAdmin_Operation + */ + public function insert($project, $instance, Google_Service_SQLAdmin_Database $postBody, $optParams = array()) + { + $params = array('project' => $project, 'instance' => $instance, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('insert', array($params), "Google_Service_SQLAdmin_Operation"); + } + + /** + * Lists databases in the specified Cloud SQL instance. + * (databases.listDatabases) + * + * @param string $project Project ID of the project for which to list Cloud SQL + * instances. + * @param string $instance Cloud SQL instance ID. This does not include the + * project ID. + * @param array $optParams Optional parameters. + * @return Google_Service_SQLAdmin_DatabasesListResponse + */ + public function listDatabases($project, $instance, $optParams = array()) + { + $params = array('project' => $project, 'instance' => $instance); + $params = array_merge($params, $optParams); + return $this->call('list', array($params), "Google_Service_SQLAdmin_DatabasesListResponse"); + } + + /** + * Updates a resource containing information about a database inside a Cloud SQL + * instance. This method supports patch semantics. (databases.patch) + * + * @param string $project Project ID of the project that contains the instance. + * @param string $instance Database instance ID. This does not include the + * project ID. + * @param string $database Name of the database to be updated in the instance. + * @param Google_Database $postBody + * @param array $optParams Optional parameters. + * @return Google_Service_SQLAdmin_Operation + */ + public function patch($project, $instance, $database, Google_Service_SQLAdmin_Database $postBody, $optParams = array()) + { + $params = array('project' => $project, 'instance' => $instance, 'database' => $database, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('patch', array($params), "Google_Service_SQLAdmin_Operation"); + } + + /** + * Updates a resource containing information about a database inside a Cloud SQL + * instance. (databases.update) + * + * @param string $project Project ID of the project that contains the instance. + * @param string $instance Database instance ID. This does not include the + * project ID. + * @param string $database Name of the database to be updated in the instance. + * @param Google_Database $postBody + * @param array $optParams Optional parameters. + * @return Google_Service_SQLAdmin_Operation + */ + public function update($project, $instance, $database, Google_Service_SQLAdmin_Database $postBody, $optParams = array()) + { + $params = array('project' => $project, 'instance' => $instance, 'database' => $database, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('update', array($params), "Google_Service_SQLAdmin_Operation"); + } +} + /** * The "flags" collection of methods. * Typical usage is: @@ -583,7 +908,7 @@ class Google_Service_SQLAdmin_Flags_Resource extends Google_Service_Resource { /** - * Lists all database flags that can be set for Google Cloud SQL instances. + * List all available database flags for Google Cloud SQL instances. * (flags.listFlags) * * @param array $optParams Optional parameters. @@ -609,20 +934,22 @@ class Google_Service_SQLAdmin_Instances_Resource extends Google_Service_Resource { /** - * Creates a Cloud SQL instance as a clone of a source instance. + * Creates a Cloud SQL instance as a clone of the source instance. * (instances.cloneInstances) * * @param string $project Project ID of the source as well as the clone Cloud * SQL instance. + * @param string $instance The ID of the Cloud SQL instance to be cloned + * (source). This does not include the project ID. * @param Google_InstancesCloneRequest $postBody * @param array $optParams Optional parameters. - * @return Google_Service_SQLAdmin_InstancesCloneResponse + * @return Google_Service_SQLAdmin_Operation */ - public function cloneInstances($project, Google_Service_SQLAdmin_InstancesCloneRequest $postBody, $optParams = array()) + public function cloneInstances($project, $instance, Google_Service_SQLAdmin_InstancesCloneRequest $postBody, $optParams = array()) { - $params = array('project' => $project, 'postBody' => $postBody); + $params = array('project' => $project, 'instance' => $instance, 'postBody' => $postBody); $params = array_merge($params, $optParams); - return $this->call('clone', array($params), "Google_Service_SQLAdmin_InstancesCloneResponse"); + return $this->call('clone', array($params), "Google_Service_SQLAdmin_Operation"); } /** @@ -633,13 +960,13 @@ class Google_Service_SQLAdmin_Instances_Resource extends Google_Service_Resource * @param string $instance Cloud SQL instance ID. This does not include the * project ID. * @param array $optParams Optional parameters. - * @return Google_Service_SQLAdmin_InstancesDeleteResponse + * @return Google_Service_SQLAdmin_Operation */ public function delete($project, $instance, $optParams = array()) { $params = array('project' => $project, 'instance' => $instance); $params = array_merge($params, $optParams); - return $this->call('delete', array($params), "Google_Service_SQLAdmin_InstancesDeleteResponse"); + return $this->call('delete', array($params), "Google_Service_SQLAdmin_Operation"); } /** @@ -652,17 +979,18 @@ class Google_Service_SQLAdmin_Instances_Resource extends Google_Service_Resource * project ID. * @param Google_InstancesExportRequest $postBody * @param array $optParams Optional parameters. - * @return Google_Service_SQLAdmin_InstancesExportResponse + * @return Google_Service_SQLAdmin_Operation */ public function export($project, $instance, Google_Service_SQLAdmin_InstancesExportRequest $postBody, $optParams = array()) { $params = array('project' => $project, 'instance' => $instance, 'postBody' => $postBody); $params = array_merge($params, $optParams); - return $this->call('export', array($params), "Google_Service_SQLAdmin_InstancesExportResponse"); + return $this->call('export', array($params), "Google_Service_SQLAdmin_Operation"); } /** - * Retrieves information about a Cloud SQL instance. (instances.get) + * Retrieves a resource containing information about a Cloud SQL instance. + * (instances.get) * * @param string $project Project ID of the project that contains the instance. * @param string $instance Database instance ID. This does not include the @@ -678,21 +1006,21 @@ class Google_Service_SQLAdmin_Instances_Resource extends Google_Service_Resource } /** - * Imports data into a Cloud SQL instance from a MySQL dump file stored in a - * Google Cloud Storage bucket. (instances.import) + * Imports data into a Cloud SQL instance from a MySQL dump file in Google Cloud + * Storage. (instances.import) * * @param string $project Project ID of the project that contains the instance. * @param string $instance Cloud SQL instance ID. This does not include the * project ID. * @param Google_InstancesImportRequest $postBody * @param array $optParams Optional parameters. - * @return Google_Service_SQLAdmin_InstancesImportResponse + * @return Google_Service_SQLAdmin_Operation */ public function import($project, $instance, Google_Service_SQLAdmin_InstancesImportRequest $postBody, $optParams = array()) { $params = array('project' => $project, 'instance' => $instance, 'postBody' => $postBody); $params = array_merge($params, $optParams); - return $this->call('import', array($params), "Google_Service_SQLAdmin_InstancesImportResponse"); + return $this->call('import', array($params), "Google_Service_SQLAdmin_Operation"); } /** @@ -702,18 +1030,18 @@ class Google_Service_SQLAdmin_Instances_Resource extends Google_Service_Resource * Cloud SQL instances should belong. * @param Google_DatabaseInstance $postBody * @param array $optParams Optional parameters. - * @return Google_Service_SQLAdmin_InstancesInsertResponse + * @return Google_Service_SQLAdmin_Operation */ public function insert($project, Google_Service_SQLAdmin_DatabaseInstance $postBody, $optParams = array()) { $params = array('project' => $project, 'postBody' => $postBody); $params = array_merge($params, $optParams); - return $this->call('insert', array($params), "Google_Service_SQLAdmin_InstancesInsertResponse"); + return $this->call('insert', array($params), "Google_Service_SQLAdmin_Operation"); } /** - * Lists instances for a given project, in alphabetical order by instance name. - * (instances.listInstances) + * Lists instances under a given project in the alphabetical order of the + * instance name. (instances.listInstances) * * @param string $project Project ID of the project for which to list Cloud SQL * instances. @@ -733,7 +1061,9 @@ class Google_Service_SQLAdmin_Instances_Resource extends Google_Service_Resource } /** - * Updates the settings of a Cloud SQL instance. This method supports patch + * Updates settings of a Cloud SQL instance. Caution: This is not a partial + * update, so you must include values for all the settings that you want to + * retain. For partial updates, use patch.. This method supports patch * semantics. (instances.patch) * * @param string $project Project ID of the project that contains the instance. @@ -741,13 +1071,13 @@ class Google_Service_SQLAdmin_Instances_Resource extends Google_Service_Resource * project ID. * @param Google_DatabaseInstance $postBody * @param array $optParams Optional parameters. - * @return Google_Service_SQLAdmin_InstancesUpdateResponse + * @return Google_Service_SQLAdmin_Operation */ public function patch($project, $instance, Google_Service_SQLAdmin_DatabaseInstance $postBody, $optParams = array()) { $params = array('project' => $project, 'instance' => $instance, 'postBody' => $postBody); $params = array_merge($params, $optParams); - return $this->call('patch', array($params), "Google_Service_SQLAdmin_InstancesUpdateResponse"); + return $this->call('patch', array($params), "Google_Service_SQLAdmin_Operation"); } /** @@ -757,30 +1087,32 @@ class Google_Service_SQLAdmin_Instances_Resource extends Google_Service_Resource * @param string $project ID of the project that contains the read replica. * @param string $instance Cloud SQL read replica instance name. * @param array $optParams Optional parameters. - * @return Google_Service_SQLAdmin_InstancesPromoteReplicaResponse + * @return Google_Service_SQLAdmin_Operation */ public function promoteReplica($project, $instance, $optParams = array()) { $params = array('project' => $project, 'instance' => $instance); $params = array_merge($params, $optParams); - return $this->call('promoteReplica', array($params), "Google_Service_SQLAdmin_InstancesPromoteReplicaResponse"); + return $this->call('promoteReplica', array($params), "Google_Service_SQLAdmin_Operation"); } /** * Deletes all client certificates and generates a new server SSL certificate - * for a Cloud SQL instance. (instances.resetSslConfig) + * for the instance. The changes will not take effect until the instance is + * restarted. Existing instances without a server certificate will need to call + * this once to set a server certificate. (instances.resetSslConfig) * * @param string $project Project ID of the project that contains the instance. * @param string $instance Cloud SQL instance ID. This does not include the * project ID. * @param array $optParams Optional parameters. - * @return Google_Service_SQLAdmin_InstancesResetSslConfigResponse + * @return Google_Service_SQLAdmin_Operation */ public function resetSslConfig($project, $instance, $optParams = array()) { $params = array('project' => $project, 'instance' => $instance); $params = array_merge($params, $optParams); - return $this->call('resetSslConfig', array($params), "Google_Service_SQLAdmin_InstancesResetSslConfigResponse"); + return $this->call('resetSslConfig', array($params), "Google_Service_SQLAdmin_Operation"); } /** @@ -791,13 +1123,13 @@ class Google_Service_SQLAdmin_Instances_Resource extends Google_Service_Resource * @param string $instance Cloud SQL instance ID. This does not include the * project ID. * @param array $optParams Optional parameters. - * @return Google_Service_SQLAdmin_InstancesRestartResponse + * @return Google_Service_SQLAdmin_Operation */ public function restart($project, $instance, $optParams = array()) { $params = array('project' => $project, 'instance' => $instance); $params = array_merge($params, $optParams); - return $this->call('restart', array($params), "Google_Service_SQLAdmin_InstancesRestartResponse"); + return $this->call('restart', array($params), "Google_Service_SQLAdmin_Operation"); } /** @@ -806,55 +1138,64 @@ class Google_Service_SQLAdmin_Instances_Resource extends Google_Service_Resource * @param string $project Project ID of the project that contains the instance. * @param string $instance Cloud SQL instance ID. This does not include the * project ID. - * @param string $backupConfiguration The identifier of the backup - * configuration. This gets generated automatically when a backup configuration - * is created. - * @param string $dueTime The start time of the four-hour backup window. The - * backup can occur any time in the window. The time is in RFC 3339 format, for - * example 2012-11-15T16:19:00.094Z. + * @param Google_InstancesRestoreBackupRequest $postBody * @param array $optParams Optional parameters. - * @return Google_Service_SQLAdmin_InstancesRestoreBackupResponse + * @return Google_Service_SQLAdmin_Operation */ - public function restoreBackup($project, $instance, $backupConfiguration, $dueTime, $optParams = array()) - { - $params = array('project' => $project, 'instance' => $instance, 'backupConfiguration' => $backupConfiguration, 'dueTime' => $dueTime); - $params = array_merge($params, $optParams); - return $this->call('restoreBackup', array($params), "Google_Service_SQLAdmin_InstancesRestoreBackupResponse"); - } - - /** - * Sets the password for the root user of the specified Cloud SQL instance. - * (instances.setRootPassword) - * - * @param string $project Project ID of the project that contains the instance. - * @param string $instance Cloud SQL instance ID. This does not include the - * project ID. - * @param Google_InstanceSetRootPasswordRequest $postBody - * @param array $optParams Optional parameters. - * @return Google_Service_SQLAdmin_InstancesSetRootPasswordResponse - */ - public function setRootPassword($project, $instance, Google_Service_SQLAdmin_InstanceSetRootPasswordRequest $postBody, $optParams = array()) + public function restoreBackup($project, $instance, Google_Service_SQLAdmin_InstancesRestoreBackupRequest $postBody, $optParams = array()) { $params = array('project' => $project, 'instance' => $instance, 'postBody' => $postBody); $params = array_merge($params, $optParams); - return $this->call('setRootPassword', array($params), "Google_Service_SQLAdmin_InstancesSetRootPasswordResponse"); + return $this->call('restoreBackup', array($params), "Google_Service_SQLAdmin_Operation"); } /** - * Updates the settings of a Cloud SQL instance. (instances.update) + * Starts the replication in the read replica instance. (instances.startReplica) + * + * @param string $project ID of the project that contains the read replica. + * @param string $instance Cloud SQL read replica instance name. + * @param array $optParams Optional parameters. + * @return Google_Service_SQLAdmin_Operation + */ + public function startReplica($project, $instance, $optParams = array()) + { + $params = array('project' => $project, 'instance' => $instance); + $params = array_merge($params, $optParams); + return $this->call('startReplica', array($params), "Google_Service_SQLAdmin_Operation"); + } + + /** + * Stops the replication in the read replica instance. (instances.stopReplica) + * + * @param string $project ID of the project that contains the read replica. + * @param string $instance Cloud SQL read replica instance name. + * @param array $optParams Optional parameters. + * @return Google_Service_SQLAdmin_Operation + */ + public function stopReplica($project, $instance, $optParams = array()) + { + $params = array('project' => $project, 'instance' => $instance); + $params = array_merge($params, $optParams); + return $this->call('stopReplica', array($params), "Google_Service_SQLAdmin_Operation"); + } + + /** + * Updates settings of a Cloud SQL instance. Caution: This is not a partial + * update, so you must include values for all the settings that you want to + * retain. For partial updates, use patch. (instances.update) * * @param string $project Project ID of the project that contains the instance. * @param string $instance Cloud SQL instance ID. This does not include the * project ID. * @param Google_DatabaseInstance $postBody * @param array $optParams Optional parameters. - * @return Google_Service_SQLAdmin_InstancesUpdateResponse + * @return Google_Service_SQLAdmin_Operation */ public function update($project, $instance, Google_Service_SQLAdmin_DatabaseInstance $postBody, $optParams = array()) { $params = array('project' => $project, 'instance' => $instance, 'postBody' => $postBody); $params = array_merge($params, $optParams); - return $this->call('update', array($params), "Google_Service_SQLAdmin_InstancesUpdateResponse"); + return $this->call('update', array($params), "Google_Service_SQLAdmin_Operation"); } } @@ -870,25 +1211,24 @@ class Google_Service_SQLAdmin_Operations_Resource extends Google_Service_Resourc { /** - * Retrieves information about a specific operation that was performed on a - * Cloud SQL instance. (operations.get) + * Retrieves an instance operation that has been performed on an instance. + * (operations.get) * * @param string $project Project ID of the project that contains the instance. - * @param string $instance Cloud SQL instance ID. This does not include the - * project ID. * @param string $operation Instance operation ID. * @param array $optParams Optional parameters. - * @return Google_Service_SQLAdmin_InstanceOperation + * @return Google_Service_SQLAdmin_Operation */ - public function get($project, $instance, $operation, $optParams = array()) + public function get($project, $operation, $optParams = array()) { - $params = array('project' => $project, 'instance' => $instance, 'operation' => $operation); + $params = array('project' => $project, 'operation' => $operation); $params = array_merge($params, $optParams); - return $this->call('get', array($params), "Google_Service_SQLAdmin_InstanceOperation"); + return $this->call('get', array($params), "Google_Service_SQLAdmin_Operation"); } /** - * Lists all operations that have been performed on a Cloud SQL instance. + * Lists all instance operations that have been performed on the given Cloud SQL + * instance in the reverse chronological order of the start time. * (operations.listOperations) * * @param string $project Project ID of the project that contains the instance. @@ -921,7 +1261,8 @@ class Google_Service_SQLAdmin_SslCerts_Resource extends Google_Service_Resource { /** - * Deletes an SSL certificate from a Cloud SQL instance. (sslCerts.delete) + * Deletes the SSL certificate. The change will not take effect until the + * instance is restarted. (sslCerts.delete) * * @param string $project Project ID of the project that contains the instance * to be deleted. @@ -929,18 +1270,19 @@ class Google_Service_SQLAdmin_SslCerts_Resource extends Google_Service_Resource * project ID. * @param string $sha1Fingerprint Sha1 FingerPrint. * @param array $optParams Optional parameters. - * @return Google_Service_SQLAdmin_SslCertsDeleteResponse + * @return Google_Service_SQLAdmin_Operation */ public function delete($project, $instance, $sha1Fingerprint, $optParams = array()) { $params = array('project' => $project, 'instance' => $instance, 'sha1Fingerprint' => $sha1Fingerprint); $params = array_merge($params, $optParams); - return $this->call('delete', array($params), "Google_Service_SQLAdmin_SslCertsDeleteResponse"); + return $this->call('delete', array($params), "Google_Service_SQLAdmin_Operation"); } /** - * Retrieves an SSL certificate as specified by its SHA-1 fingerprint. - * (sslCerts.get) + * Retrieves a particular SSL certificate. Does not include the private key + * (required for usage). The private key must be saved from the response to + * initial creation. (sslCerts.get) * * @param string $project Project ID of the project that contains the instance. * @param string $instance Cloud SQL instance ID. This does not include the @@ -957,8 +1299,9 @@ class Google_Service_SQLAdmin_SslCerts_Resource extends Google_Service_Resource } /** - * Creates an SSL certificate and returns the certificate, the associated - * private key, and the server certificate authority. (sslCerts.insert) + * Creates an SSL certificate and returns it along with the private key and + * server certificate authority. The new certificate will not be usable until + * the instance is restarted. (sslCerts.insert) * * @param string $project Project ID of the project to which the newly created * Cloud SQL instances should belong. @@ -976,7 +1319,7 @@ class Google_Service_SQLAdmin_SslCerts_Resource extends Google_Service_Resource } /** - * Lists all of the current SSL certificates defined for a Cloud SQL instance. + * Lists all of the current SSL certificates for the instance. * (sslCerts.listSslCerts) * * @param string $project Project ID of the project for which to list Cloud SQL @@ -1006,8 +1349,8 @@ class Google_Service_SQLAdmin_Tiers_Resource extends Google_Service_Resource { /** - * Lists service tiers that can be used to create Google Cloud SQL instances. - * (tiers.listTiers) + * Lists all available service tiers for Google Cloud SQL, for example D1, D2. + * For related information, see Pricing. (tiers.listTiers) * * @param string $project Project ID of the project for which to list tiers. * @param array $optParams Optional parameters. @@ -1021,16 +1364,141 @@ class Google_Service_SQLAdmin_Tiers_Resource extends Google_Service_Resource } } +/** + * The "users" collection of methods. + * Typical usage is: + * + * $sqladminService = new Google_Service_SQLAdmin(...); + * $users = $sqladminService->users; + * + */ +class Google_Service_SQLAdmin_Users_Resource extends Google_Service_Resource +{ + + /** + * Deletes a user from a Cloud SQL instance. (users.delete) + * + * @param string $project Project ID of the project that contains the instance. + * @param string $instance Database instance ID. This does not include the + * project ID. + * @param string $host Host of the user in the instance. + * @param string $name Name of the user in the instance. + * @param array $optParams Optional parameters. + * @return Google_Service_SQLAdmin_Operation + */ + public function delete($project, $instance, $host, $name, $optParams = array()) + { + $params = array('project' => $project, 'instance' => $instance, 'host' => $host, 'name' => $name); + $params = array_merge($params, $optParams); + return $this->call('delete', array($params), "Google_Service_SQLAdmin_Operation"); + } + + /** + * Creates a new user in a Cloud SQL instance. (users.insert) + * + * @param string $project Project ID of the project that contains the instance. + * @param string $instance Database instance ID. This does not include the + * project ID. + * @param Google_User $postBody + * @param array $optParams Optional parameters. + * @return Google_Service_SQLAdmin_Operation + */ + public function insert($project, $instance, Google_Service_SQLAdmin_User $postBody, $optParams = array()) + { + $params = array('project' => $project, 'instance' => $instance, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('insert', array($params), "Google_Service_SQLAdmin_Operation"); + } + + /** + * Lists users in the specified Cloud SQL instance. (users.listUsers) + * + * @param string $project Project ID of the project that contains the instance. + * @param string $instance Database instance ID. This does not include the + * project ID. + * @param array $optParams Optional parameters. + * @return Google_Service_SQLAdmin_UsersListResponse + */ + public function listUsers($project, $instance, $optParams = array()) + { + $params = array('project' => $project, 'instance' => $instance); + $params = array_merge($params, $optParams); + return $this->call('list', array($params), "Google_Service_SQLAdmin_UsersListResponse"); + } + + /** + * Updates an existing user in a Cloud SQL instance. (users.update) + * + * @param string $project Project ID of the project that contains the instance. + * @param string $instance Database instance ID. This does not include the + * project ID. + * @param string $host Host of the user in the instance. + * @param string $name Name of the user in the instance. + * @param Google_User $postBody + * @param array $optParams Optional parameters. + * @return Google_Service_SQLAdmin_Operation + */ + public function update($project, $instance, $host, $name, Google_Service_SQLAdmin_User $postBody, $optParams = array()) + { + $params = array('project' => $project, 'instance' => $instance, 'host' => $host, 'name' => $name, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('update', array($params), "Google_Service_SQLAdmin_Operation"); + } +} + +class Google_Service_SQLAdmin_AclEntry extends Google_Model +{ + protected $internal_gapi_mappings = array( + ); + public $expirationTime; + public $kind; + public $name; + public $value; + + + public function setExpirationTime($expirationTime) + { + $this->expirationTime = $expirationTime; + } + public function getExpirationTime() + { + return $this->expirationTime; + } + public function setKind($kind) + { + $this->kind = $kind; + } + public function getKind() + { + return $this->kind; + } + public function setName($name) + { + $this->name = $name; + } + public function getName() + { + return $this->name; + } + public function setValue($value) + { + $this->value = $value; + } + public function getValue() + { + return $this->value; + } +} + class Google_Service_SQLAdmin_BackupConfiguration extends Google_Model { protected $internal_gapi_mappings = array( ); public $binaryLogEnabled; public $enabled; - public $id; public $kind; public $startTime; @@ -1051,14 +1519,6 @@ class Google_Service_SQLAdmin_BackupConfiguration extends Google_Model { return $this->enabled; } - public function setId($id) - { - $this->id = $id; - } - public function getId() - { - return $this->id; - } public function setKind($kind) { $this->kind = $kind; @@ -1081,34 +1541,19 @@ class Google_Service_SQLAdmin_BackupRun extends Google_Model { protected $internal_gapi_mappings = array( ); - public $backupConfiguration; - public $dueTime; public $endTime; public $enqueuedTime; protected $errorType = 'Google_Service_SQLAdmin_OperationError'; protected $errorDataType = ''; + public $id; public $instance; public $kind; + public $selfLink; public $startTime; public $status; + public $windowStartTime; - public function setBackupConfiguration($backupConfiguration) - { - $this->backupConfiguration = $backupConfiguration; - } - public function getBackupConfiguration() - { - return $this->backupConfiguration; - } - public function setDueTime($dueTime) - { - $this->dueTime = $dueTime; - } - public function getDueTime() - { - return $this->dueTime; - } public function setEndTime($endTime) { $this->endTime = $endTime; @@ -1133,6 +1578,14 @@ class Google_Service_SQLAdmin_BackupRun extends Google_Model { return $this->error; } + public function setId($id) + { + $this->id = $id; + } + public function getId() + { + return $this->id; + } public function setInstance($instance) { $this->instance = $instance; @@ -1149,6 +1602,14 @@ class Google_Service_SQLAdmin_BackupRun extends Google_Model { return $this->kind; } + public function setSelfLink($selfLink) + { + $this->selfLink = $selfLink; + } + public function getSelfLink() + { + return $this->selfLink; + } public function setStartTime($startTime) { $this->startTime = $startTime; @@ -1165,6 +1626,14 @@ class Google_Service_SQLAdmin_BackupRun extends Google_Model { return $this->status; } + public function setWindowStartTime($windowStartTime) + { + $this->windowStartTime = $windowStartTime; + } + public function getWindowStartTime() + { + return $this->windowStartTime; + } } class Google_Service_SQLAdmin_BackupRunsListResponse extends Google_Collection @@ -1247,7 +1716,6 @@ class Google_Service_SQLAdmin_CloneContext extends Google_Model protected $binLogCoordinatesDataType = ''; public $destinationInstanceName; public $kind; - public $sourceInstanceName; public function setBinLogCoordinates(Google_Service_SQLAdmin_BinLogCoordinates $binLogCoordinates) @@ -1274,13 +1742,85 @@ class Google_Service_SQLAdmin_CloneContext extends Google_Model { return $this->kind; } - public function setSourceInstanceName($sourceInstanceName) +} + +class Google_Service_SQLAdmin_Database extends Google_Model +{ + protected $internal_gapi_mappings = array( + ); + public $charset; + public $collation; + public $etag; + public $instance; + public $kind; + public $name; + public $project; + public $selfLink; + + + public function setCharset($charset) { - $this->sourceInstanceName = $sourceInstanceName; + $this->charset = $charset; } - public function getSourceInstanceName() + public function getCharset() { - return $this->sourceInstanceName; + return $this->charset; + } + public function setCollation($collation) + { + $this->collation = $collation; + } + public function getCollation() + { + return $this->collation; + } + public function setEtag($etag) + { + $this->etag = $etag; + } + public function getEtag() + { + return $this->etag; + } + public function setInstance($instance) + { + $this->instance = $instance; + } + public function getInstance() + { + return $this->instance; + } + public function setKind($kind) + { + $this->kind = $kind; + } + public function getKind() + { + return $this->kind; + } + public function setName($name) + { + $this->name = $name; + } + public function getName() + { + return $this->name; + } + public function setProject($project) + { + $this->project = $project; + } + public function getProject() + { + return $this->project; + } + public function setSelfLink($selfLink) + { + $this->selfLink = $selfLink; + } + public function getSelfLink() + { + return $this->selfLink; } } @@ -1318,7 +1858,6 @@ class Google_Service_SQLAdmin_DatabaseInstance extends Google_Collection public $currentDiskSize; public $databaseVersion; public $etag; - public $instance; public $instanceType; protected $ipAddressesType = 'Google_Service_SQLAdmin_IpMapping'; protected $ipAddressesDataType = 'array'; @@ -1326,11 +1865,18 @@ class Google_Service_SQLAdmin_DatabaseInstance extends Google_Collection public $kind; public $masterInstanceName; public $maxDiskSize; + public $name; + protected $onPremisesConfigurationType = 'Google_Service_SQLAdmin_OnPremisesConfiguration'; + protected $onPremisesConfigurationDataType = ''; public $project; public $region; + protected $replicaConfigurationType = 'Google_Service_SQLAdmin_ReplicaConfiguration'; + protected $replicaConfigurationDataType = ''; public $replicaNames; + public $selfLink; protected $serverCaCertType = 'Google_Service_SQLAdmin_SslCert'; protected $serverCaCertDataType = ''; + public $serviceAccountEmailAddress; protected $settingsType = 'Google_Service_SQLAdmin_Settings'; protected $settingsDataType = ''; public $state; @@ -1360,14 +1906,6 @@ class Google_Service_SQLAdmin_DatabaseInstance extends Google_Collection { return $this->etag; } - public function setInstance($instance) - { - $this->instance = $instance; - } - public function getInstance() - { - return $this->instance; - } public function setInstanceType($instanceType) { $this->instanceType = $instanceType; @@ -1416,6 +1954,22 @@ class Google_Service_SQLAdmin_DatabaseInstance extends Google_Collection { return $this->maxDiskSize; } + public function setName($name) + { + $this->name = $name; + } + public function getName() + { + return $this->name; + } + public function setOnPremisesConfiguration(Google_Service_SQLAdmin_OnPremisesConfiguration $onPremisesConfiguration) + { + $this->onPremisesConfiguration = $onPremisesConfiguration; + } + public function getOnPremisesConfiguration() + { + return $this->onPremisesConfiguration; + } public function setProject($project) { $this->project = $project; @@ -1432,6 +1986,14 @@ class Google_Service_SQLAdmin_DatabaseInstance extends Google_Collection { return $this->region; } + public function setReplicaConfiguration(Google_Service_SQLAdmin_ReplicaConfiguration $replicaConfiguration) + { + $this->replicaConfiguration = $replicaConfiguration; + } + public function getReplicaConfiguration() + { + return $this->replicaConfiguration; + } public function setReplicaNames($replicaNames) { $this->replicaNames = $replicaNames; @@ -1440,6 +2002,14 @@ class Google_Service_SQLAdmin_DatabaseInstance extends Google_Collection { return $this->replicaNames; } + public function setSelfLink($selfLink) + { + $this->selfLink = $selfLink; + } + public function getSelfLink() + { + return $this->selfLink; + } public function setServerCaCert(Google_Service_SQLAdmin_SslCert $serverCaCert) { $this->serverCaCert = $serverCaCert; @@ -1448,6 +2018,14 @@ class Google_Service_SQLAdmin_DatabaseInstance extends Google_Collection { return $this->serverCaCert; } + public function setServiceAccountEmailAddress($serviceAccountEmailAddress) + { + $this->serviceAccountEmailAddress = $serviceAccountEmailAddress; + } + public function getServiceAccountEmailAddress() + { + return $this->serviceAccountEmailAddress; + } public function setSettings(Google_Service_SQLAdmin_Settings $settings) { $this->settings = $settings; @@ -1466,24 +2044,23 @@ class Google_Service_SQLAdmin_DatabaseInstance extends Google_Collection } } -class Google_Service_SQLAdmin_ExportContext extends Google_Collection +class Google_Service_SQLAdmin_DatabasesListResponse extends Google_Collection { - protected $collection_key = 'table'; + protected $collection_key = 'items'; protected $internal_gapi_mappings = array( ); - public $database; + protected $itemsType = 'Google_Service_SQLAdmin_Database'; + protected $itemsDataType = 'array'; public $kind; - public $table; - public $uri; - public function setDatabase($database) + public function setItems($items) { - $this->database = $database; + $this->items = $items; } - public function getDatabase() + public function getItems() { - return $this->database; + return $this->items; } public function setKind($kind) { @@ -1493,13 +2070,62 @@ class Google_Service_SQLAdmin_ExportContext extends Google_Collection { return $this->kind; } - public function setTable($table) +} + +class Google_Service_SQLAdmin_ExportContext extends Google_Collection +{ + protected $collection_key = 'databases'; + protected $internal_gapi_mappings = array( + ); + protected $csvExportOptionsType = 'Google_Service_SQLAdmin_ExportContextCsvExportOptions'; + protected $csvExportOptionsDataType = ''; + public $databases; + public $fileType; + public $kind; + protected $sqlExportOptionsType = 'Google_Service_SQLAdmin_ExportContextSqlExportOptions'; + protected $sqlExportOptionsDataType = ''; + public $uri; + + + public function setCsvExportOptions(Google_Service_SQLAdmin_ExportContextCsvExportOptions $csvExportOptions) { - $this->table = $table; + $this->csvExportOptions = $csvExportOptions; } - public function getTable() + public function getCsvExportOptions() { - return $this->table; + return $this->csvExportOptions; + } + public function setDatabases($databases) + { + $this->databases = $databases; + } + public function getDatabases() + { + return $this->databases; + } + public function setFileType($fileType) + { + $this->fileType = $fileType; + } + public function getFileType() + { + return $this->fileType; + } + public function setKind($kind) + { + $this->kind = $kind; + } + public function getKind() + { + return $this->kind; + } + public function setSqlExportOptions(Google_Service_SQLAdmin_ExportContextSqlExportOptions $sqlExportOptions) + { + $this->sqlExportOptions = $sqlExportOptions; + } + public function getSqlExportOptions() + { + return $this->sqlExportOptions; } public function setUri($uri) { @@ -1511,6 +2137,41 @@ class Google_Service_SQLAdmin_ExportContext extends Google_Collection } } +class Google_Service_SQLAdmin_ExportContextCsvExportOptions extends Google_Model +{ + protected $internal_gapi_mappings = array( + ); + public $selectQuery; + + + public function setSelectQuery($selectQuery) + { + $this->selectQuery = $selectQuery; + } + public function getSelectQuery() + { + return $this->selectQuery; + } +} + +class Google_Service_SQLAdmin_ExportContextSqlExportOptions extends Google_Collection +{ + protected $collection_key = 'tables'; + protected $internal_gapi_mappings = array( + ); + public $tables; + + + public function setTables($tables) + { + $this->tables = $tables; + } + public function getTables() + { + return $this->tables; + } +} + class Google_Service_SQLAdmin_Flag extends Google_Collection { protected $collection_key = 'appliesTo'; @@ -1611,16 +2272,26 @@ class Google_Service_SQLAdmin_FlagsListResponse extends Google_Collection } } -class Google_Service_SQLAdmin_ImportContext extends Google_Collection +class Google_Service_SQLAdmin_ImportContext extends Google_Model { - protected $collection_key = 'uri'; protected $internal_gapi_mappings = array( ); + protected $csvImportOptionsType = 'Google_Service_SQLAdmin_ImportContextCsvImportOptions'; + protected $csvImportOptionsDataType = ''; public $database; + public $fileType; public $kind; public $uri; + public function setCsvImportOptions(Google_Service_SQLAdmin_ImportContextCsvImportOptions $csvImportOptions) + { + $this->csvImportOptions = $csvImportOptions; + } + public function getCsvImportOptions() + { + return $this->csvImportOptions; + } public function setDatabase($database) { $this->database = $database; @@ -1629,6 +2300,14 @@ class Google_Service_SQLAdmin_ImportContext extends Google_Collection { return $this->database; } + public function setFileType($fileType) + { + $this->fileType = $fileType; + } + public function getFileType() + { + return $this->fileType; + } public function setKind($kind) { $this->kind = $kind; @@ -1647,141 +2326,30 @@ class Google_Service_SQLAdmin_ImportContext extends Google_Collection } } -class Google_Service_SQLAdmin_InstanceOperation extends Google_Collection +class Google_Service_SQLAdmin_ImportContextCsvImportOptions extends Google_Collection { - protected $collection_key = 'error'; + protected $collection_key = 'columns'; protected $internal_gapi_mappings = array( ); - public $endTime; - public $enqueuedTime; - protected $errorType = 'Google_Service_SQLAdmin_OperationError'; - protected $errorDataType = 'array'; - protected $exportContextType = 'Google_Service_SQLAdmin_ExportContext'; - protected $exportContextDataType = ''; - protected $importContextType = 'Google_Service_SQLAdmin_ImportContext'; - protected $importContextDataType = ''; - public $instance; - public $kind; - public $operation; - public $operationType; - public $startTime; - public $state; - public $userEmailAddress; + public $columns; + public $table; - public function setEndTime($endTime) + public function setColumns($columns) { - $this->endTime = $endTime; + $this->columns = $columns; } - public function getEndTime() + public function getColumns() { - return $this->endTime; + return $this->columns; } - public function setEnqueuedTime($enqueuedTime) + public function setTable($table) { - $this->enqueuedTime = $enqueuedTime; + $this->table = $table; } - public function getEnqueuedTime() + public function getTable() { - return $this->enqueuedTime; - } - public function setError($error) - { - $this->error = $error; - } - public function getError() - { - return $this->error; - } - public function setExportContext(Google_Service_SQLAdmin_ExportContext $exportContext) - { - $this->exportContext = $exportContext; - } - public function getExportContext() - { - return $this->exportContext; - } - public function setImportContext(Google_Service_SQLAdmin_ImportContext $importContext) - { - $this->importContext = $importContext; - } - public function getImportContext() - { - return $this->importContext; - } - public function setInstance($instance) - { - $this->instance = $instance; - } - public function getInstance() - { - return $this->instance; - } - public function setKind($kind) - { - $this->kind = $kind; - } - public function getKind() - { - return $this->kind; - } - public function setOperation($operation) - { - $this->operation = $operation; - } - public function getOperation() - { - return $this->operation; - } - public function setOperationType($operationType) - { - $this->operationType = $operationType; - } - public function getOperationType() - { - return $this->operationType; - } - public function setStartTime($startTime) - { - $this->startTime = $startTime; - } - public function getStartTime() - { - return $this->startTime; - } - public function setState($state) - { - $this->state = $state; - } - public function getState() - { - return $this->state; - } - public function setUserEmailAddress($userEmailAddress) - { - $this->userEmailAddress = $userEmailAddress; - } - public function getUserEmailAddress() - { - return $this->userEmailAddress; - } -} - -class Google_Service_SQLAdmin_InstanceSetRootPasswordRequest extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - protected $setRootPasswordContextType = 'Google_Service_SQLAdmin_SetRootPasswordContext'; - protected $setRootPasswordContextDataType = ''; - - - public function setSetRootPasswordContext(Google_Service_SQLAdmin_SetRootPasswordContext $setRootPasswordContext) - { - $this->setRootPasswordContext = $setRootPasswordContext; - } - public function getSetRootPasswordContext() - { - return $this->setRootPasswordContext; + return $this->table; } } @@ -1803,58 +2371,6 @@ class Google_Service_SQLAdmin_InstancesCloneRequest extends Google_Model } } -class Google_Service_SQLAdmin_InstancesCloneResponse extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $kind; - public $operation; - - - public function setKind($kind) - { - $this->kind = $kind; - } - public function getKind() - { - return $this->kind; - } - public function setOperation($operation) - { - $this->operation = $operation; - } - public function getOperation() - { - return $this->operation; - } -} - -class Google_Service_SQLAdmin_InstancesDeleteResponse extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $kind; - public $operation; - - - public function setKind($kind) - { - $this->kind = $kind; - } - public function getKind() - { - return $this->kind; - } - public function setOperation($operation) - { - $this->operation = $operation; - } - public function getOperation() - { - return $this->operation; - } -} - class Google_Service_SQLAdmin_InstancesExportRequest extends Google_Model { protected $internal_gapi_mappings = array( @@ -1873,32 +2389,6 @@ class Google_Service_SQLAdmin_InstancesExportRequest extends Google_Model } } -class Google_Service_SQLAdmin_InstancesExportResponse extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $kind; - public $operation; - - - public function setKind($kind) - { - $this->kind = $kind; - } - public function getKind() - { - return $this->kind; - } - public function setOperation($operation) - { - $this->operation = $operation; - } - public function getOperation() - { - return $this->operation; - } -} - class Google_Service_SQLAdmin_InstancesImportRequest extends Google_Model { protected $internal_gapi_mappings = array( @@ -1917,58 +2407,6 @@ class Google_Service_SQLAdmin_InstancesImportRequest extends Google_Model } } -class Google_Service_SQLAdmin_InstancesImportResponse extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $kind; - public $operation; - - - public function setKind($kind) - { - $this->kind = $kind; - } - public function getKind() - { - return $this->kind; - } - public function setOperation($operation) - { - $this->operation = $operation; - } - public function getOperation() - { - return $this->operation; - } -} - -class Google_Service_SQLAdmin_InstancesInsertResponse extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $kind; - public $operation; - - - public function setKind($kind) - { - $this->kind = $kind; - } - public function getKind() - { - return $this->kind; - } - public function setOperation($operation) - { - $this->operation = $operation; - } - public function getOperation() - { - return $this->operation; - } -} - class Google_Service_SQLAdmin_InstancesListResponse extends Google_Collection { protected $collection_key = 'items'; @@ -2006,159 +2444,21 @@ class Google_Service_SQLAdmin_InstancesListResponse extends Google_Collection } } -class Google_Service_SQLAdmin_InstancesPromoteReplicaResponse extends Google_Model +class Google_Service_SQLAdmin_InstancesRestoreBackupRequest extends Google_Model { protected $internal_gapi_mappings = array( ); - public $kind; - public $operation; + protected $restoreBackupContextType = 'Google_Service_SQLAdmin_RestoreBackupContext'; + protected $restoreBackupContextDataType = ''; - public function setKind($kind) + public function setRestoreBackupContext(Google_Service_SQLAdmin_RestoreBackupContext $restoreBackupContext) { - $this->kind = $kind; + $this->restoreBackupContext = $restoreBackupContext; } - public function getKind() + public function getRestoreBackupContext() { - return $this->kind; - } - public function setOperation($operation) - { - $this->operation = $operation; - } - public function getOperation() - { - return $this->operation; - } -} - -class Google_Service_SQLAdmin_InstancesResetSslConfigResponse extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $kind; - public $operation; - - - public function setKind($kind) - { - $this->kind = $kind; - } - public function getKind() - { - return $this->kind; - } - public function setOperation($operation) - { - $this->operation = $operation; - } - public function getOperation() - { - return $this->operation; - } -} - -class Google_Service_SQLAdmin_InstancesRestartResponse extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $kind; - public $operation; - - - public function setKind($kind) - { - $this->kind = $kind; - } - public function getKind() - { - return $this->kind; - } - public function setOperation($operation) - { - $this->operation = $operation; - } - public function getOperation() - { - return $this->operation; - } -} - -class Google_Service_SQLAdmin_InstancesRestoreBackupResponse extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $kind; - public $operation; - - - public function setKind($kind) - { - $this->kind = $kind; - } - public function getKind() - { - return $this->kind; - } - public function setOperation($operation) - { - $this->operation = $operation; - } - public function getOperation() - { - return $this->operation; - } -} - -class Google_Service_SQLAdmin_InstancesSetRootPasswordResponse extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $kind; - public $operation; - - - public function setKind($kind) - { - $this->kind = $kind; - } - public function getKind() - { - return $this->kind; - } - public function setOperation($operation) - { - $this->operation = $operation; - } - public function getOperation() - { - return $this->operation; - } -} - -class Google_Service_SQLAdmin_InstancesUpdateResponse extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $kind; - public $operation; - - - public function setKind($kind) - { - $this->kind = $kind; - } - public function getKind() - { - return $this->kind; - } - public function setOperation($operation) - { - $this->operation = $operation; - } - public function getOperation() - { - return $this->operation; + return $this->restoreBackupContext; } } @@ -2167,9 +2467,9 @@ class Google_Service_SQLAdmin_IpConfiguration extends Google_Collection protected $collection_key = 'authorizedNetworks'; protected $internal_gapi_mappings = array( ); - public $authorizedNetworks; - public $enabled; - public $kind; + protected $authorizedNetworksType = 'Google_Service_SQLAdmin_AclEntry'; + protected $authorizedNetworksDataType = 'array'; + public $ipv4Enabled; public $requireSsl; @@ -2181,21 +2481,13 @@ class Google_Service_SQLAdmin_IpConfiguration extends Google_Collection { return $this->authorizedNetworks; } - public function setEnabled($enabled) + public function setIpv4Enabled($ipv4Enabled) { - $this->enabled = $enabled; + $this->ipv4Enabled = $ipv4Enabled; } - public function getEnabled() + public function getIpv4Enabled() { - return $this->enabled; - } - public function setKind($kind) - { - $this->kind = $kind; - } - public function getKind() - { - return $this->kind; + return $this->ipv4Enabled; } public function setRequireSsl($requireSsl) { @@ -2268,12 +2560,292 @@ class Google_Service_SQLAdmin_LocationPreference extends Google_Model } } +class Google_Service_SQLAdmin_MySqlReplicaConfiguration extends Google_Model +{ + protected $internal_gapi_mappings = array( + ); + public $caCertificate; + public $clientCertificate; + public $clientKey; + public $connectRetryInterval; + public $dumpFilePath; + public $kind; + public $masterHeartbeatPeriod; + public $password; + public $sslCipher; + public $username; + public $verifyServerCertificate; + + + public function setCaCertificate($caCertificate) + { + $this->caCertificate = $caCertificate; + } + public function getCaCertificate() + { + return $this->caCertificate; + } + public function setClientCertificate($clientCertificate) + { + $this->clientCertificate = $clientCertificate; + } + public function getClientCertificate() + { + return $this->clientCertificate; + } + public function setClientKey($clientKey) + { + $this->clientKey = $clientKey; + } + public function getClientKey() + { + return $this->clientKey; + } + public function setConnectRetryInterval($connectRetryInterval) + { + $this->connectRetryInterval = $connectRetryInterval; + } + public function getConnectRetryInterval() + { + return $this->connectRetryInterval; + } + public function setDumpFilePath($dumpFilePath) + { + $this->dumpFilePath = $dumpFilePath; + } + public function getDumpFilePath() + { + return $this->dumpFilePath; + } + public function setKind($kind) + { + $this->kind = $kind; + } + public function getKind() + { + return $this->kind; + } + public function setMasterHeartbeatPeriod($masterHeartbeatPeriod) + { + $this->masterHeartbeatPeriod = $masterHeartbeatPeriod; + } + public function getMasterHeartbeatPeriod() + { + return $this->masterHeartbeatPeriod; + } + public function setPassword($password) + { + $this->password = $password; + } + public function getPassword() + { + return $this->password; + } + public function setSslCipher($sslCipher) + { + $this->sslCipher = $sslCipher; + } + public function getSslCipher() + { + return $this->sslCipher; + } + public function setUsername($username) + { + $this->username = $username; + } + public function getUsername() + { + return $this->username; + } + public function setVerifyServerCertificate($verifyServerCertificate) + { + $this->verifyServerCertificate = $verifyServerCertificate; + } + public function getVerifyServerCertificate() + { + return $this->verifyServerCertificate; + } +} + +class Google_Service_SQLAdmin_OnPremisesConfiguration extends Google_Model +{ + protected $internal_gapi_mappings = array( + ); + public $hostPort; + public $kind; + + + public function setHostPort($hostPort) + { + $this->hostPort = $hostPort; + } + public function getHostPort() + { + return $this->hostPort; + } + public function setKind($kind) + { + $this->kind = $kind; + } + public function getKind() + { + return $this->kind; + } +} + +class Google_Service_SQLAdmin_Operation extends Google_Model +{ + protected $internal_gapi_mappings = array( + ); + public $endTime; + protected $errorType = 'Google_Service_SQLAdmin_OperationErrors'; + protected $errorDataType = ''; + protected $exportContextType = 'Google_Service_SQLAdmin_ExportContext'; + protected $exportContextDataType = ''; + protected $importContextType = 'Google_Service_SQLAdmin_ImportContext'; + protected $importContextDataType = ''; + public $insertTime; + public $kind; + public $name; + public $operationType; + public $selfLink; + public $startTime; + public $status; + public $targetId; + public $targetLink; + public $targetProject; + public $user; + + + public function setEndTime($endTime) + { + $this->endTime = $endTime; + } + public function getEndTime() + { + return $this->endTime; + } + public function setError(Google_Service_SQLAdmin_OperationErrors $error) + { + $this->error = $error; + } + public function getError() + { + return $this->error; + } + public function setExportContext(Google_Service_SQLAdmin_ExportContext $exportContext) + { + $this->exportContext = $exportContext; + } + public function getExportContext() + { + return $this->exportContext; + } + public function setImportContext(Google_Service_SQLAdmin_ImportContext $importContext) + { + $this->importContext = $importContext; + } + public function getImportContext() + { + return $this->importContext; + } + public function setInsertTime($insertTime) + { + $this->insertTime = $insertTime; + } + public function getInsertTime() + { + return $this->insertTime; + } + public function setKind($kind) + { + $this->kind = $kind; + } + public function getKind() + { + return $this->kind; + } + public function setName($name) + { + $this->name = $name; + } + public function getName() + { + return $this->name; + } + public function setOperationType($operationType) + { + $this->operationType = $operationType; + } + public function getOperationType() + { + return $this->operationType; + } + public function setSelfLink($selfLink) + { + $this->selfLink = $selfLink; + } + public function getSelfLink() + { + return $this->selfLink; + } + public function setStartTime($startTime) + { + $this->startTime = $startTime; + } + public function getStartTime() + { + return $this->startTime; + } + public function setStatus($status) + { + $this->status = $status; + } + public function getStatus() + { + return $this->status; + } + public function setTargetId($targetId) + { + $this->targetId = $targetId; + } + public function getTargetId() + { + return $this->targetId; + } + public function setTargetLink($targetLink) + { + $this->targetLink = $targetLink; + } + public function getTargetLink() + { + return $this->targetLink; + } + public function setTargetProject($targetProject) + { + $this->targetProject = $targetProject; + } + public function getTargetProject() + { + return $this->targetProject; + } + public function setUser($user) + { + $this->user = $user; + } + public function getUser() + { + return $this->user; + } +} + class Google_Service_SQLAdmin_OperationError extends Google_Model { protected $internal_gapi_mappings = array( ); public $code; public $kind; + public $message; public function setCode($code) @@ -2292,6 +2864,42 @@ class Google_Service_SQLAdmin_OperationError extends Google_Model { return $this->kind; } + public function setMessage($message) + { + $this->message = $message; + } + public function getMessage() + { + return $this->message; + } +} + +class Google_Service_SQLAdmin_OperationErrors extends Google_Collection +{ + protected $collection_key = 'errors'; + protected $internal_gapi_mappings = array( + ); + protected $errorsType = 'Google_Service_SQLAdmin_OperationError'; + protected $errorsDataType = 'array'; + public $kind; + + + public function setErrors($errors) + { + $this->errors = $errors; + } + public function getErrors() + { + return $this->errors; + } + public function setKind($kind) + { + $this->kind = $kind; + } + public function getKind() + { + return $this->kind; + } } class Google_Service_SQLAdmin_OperationsListResponse extends Google_Collection @@ -2299,7 +2907,7 @@ class Google_Service_SQLAdmin_OperationsListResponse extends Google_Collection protected $collection_key = 'items'; protected $internal_gapi_mappings = array( ); - protected $itemsType = 'Google_Service_SQLAdmin_InstanceOperation'; + protected $itemsType = 'Google_Service_SQLAdmin_Operation'; protected $itemsDataType = 'array'; public $kind; public $nextPageToken; @@ -2331,12 +2939,13 @@ class Google_Service_SQLAdmin_OperationsListResponse extends Google_Collection } } -class Google_Service_SQLAdmin_SetRootPasswordContext extends Google_Model +class Google_Service_SQLAdmin_ReplicaConfiguration extends Google_Model { protected $internal_gapi_mappings = array( ); public $kind; - public $password; + protected $mysqlReplicaConfigurationType = 'Google_Service_SQLAdmin_MySqlReplicaConfiguration'; + protected $mysqlReplicaConfigurationDataType = ''; public function setKind($kind) @@ -2347,13 +2956,48 @@ class Google_Service_SQLAdmin_SetRootPasswordContext extends Google_Model { return $this->kind; } - public function setPassword($password) + public function setMysqlReplicaConfiguration(Google_Service_SQLAdmin_MySqlReplicaConfiguration $mysqlReplicaConfiguration) { - $this->password = $password; + $this->mysqlReplicaConfiguration = $mysqlReplicaConfiguration; } - public function getPassword() + public function getMysqlReplicaConfiguration() { - return $this->password; + return $this->mysqlReplicaConfiguration; + } +} + +class Google_Service_SQLAdmin_RestoreBackupContext extends Google_Model +{ + protected $internal_gapi_mappings = array( + ); + public $backupRunId; + public $instanceId; + public $kind; + + + public function setBackupRunId($backupRunId) + { + $this->backupRunId = $backupRunId; + } + public function getBackupRunId() + { + return $this->backupRunId; + } + public function setInstanceId($instanceId) + { + $this->instanceId = $instanceId; + } + public function getInstanceId() + { + return $this->instanceId; + } + public function setKind($kind) + { + $this->kind = $kind; + } + public function getKind() + { + return $this->kind; } } @@ -2365,7 +3009,8 @@ class Google_Service_SQLAdmin_Settings extends Google_Collection public $activationPolicy; public $authorizedGaeApplications; protected $backupConfigurationType = 'Google_Service_SQLAdmin_BackupConfiguration'; - protected $backupConfigurationDataType = 'array'; + protected $backupConfigurationDataType = ''; + public $crashSafeReplicationEnabled; protected $databaseFlagsType = 'Google_Service_SQLAdmin_DatabaseFlags'; protected $databaseFlagsDataType = 'array'; public $databaseReplicationEnabled; @@ -2396,7 +3041,7 @@ class Google_Service_SQLAdmin_Settings extends Google_Collection { return $this->authorizedGaeApplications; } - public function setBackupConfiguration($backupConfiguration) + public function setBackupConfiguration(Google_Service_SQLAdmin_BackupConfiguration $backupConfiguration) { $this->backupConfiguration = $backupConfiguration; } @@ -2404,6 +3049,14 @@ class Google_Service_SQLAdmin_Settings extends Google_Collection { return $this->backupConfiguration; } + public function setCrashSafeReplicationEnabled($crashSafeReplicationEnabled) + { + $this->crashSafeReplicationEnabled = $crashSafeReplicationEnabled; + } + public function getCrashSafeReplicationEnabled() + { + return $this->crashSafeReplicationEnabled; + } public function setDatabaseFlags($databaseFlags) { $this->databaseFlags = $databaseFlags; @@ -2489,6 +3142,7 @@ class Google_Service_SQLAdmin_SslCert extends Google_Model public $expirationTime; public $instance; public $kind; + public $selfLink; public $sha1Fingerprint; @@ -2548,6 +3202,14 @@ class Google_Service_SQLAdmin_SslCert extends Google_Model { return $this->kind; } + public function setSelfLink($selfLink) + { + $this->selfLink = $selfLink; + } + public function getSelfLink() + { + return $this->selfLink; + } public function setSha1Fingerprint($sha1Fingerprint) { $this->sha1Fingerprint = $sha1Fingerprint; @@ -2585,32 +3247,6 @@ class Google_Service_SQLAdmin_SslCertDetail extends Google_Model } } -class Google_Service_SQLAdmin_SslCertsDeleteResponse extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $kind; - public $operation; - - - public function setKind($kind) - { - $this->kind = $kind; - } - public function getKind() - { - return $this->kind; - } - public function setOperation($operation) - { - $this->operation = $operation; - } - public function getOperation() - { - return $this->operation; - } -} - class Google_Service_SQLAdmin_SslCertsInsertRequest extends Google_Model { protected $internal_gapi_mappings = array( @@ -2776,3 +3412,111 @@ class Google_Service_SQLAdmin_TiersListResponse extends Google_Collection return $this->kind; } } + +class Google_Service_SQLAdmin_User extends Google_Model +{ + protected $internal_gapi_mappings = array( + ); + public $etag; + public $host; + public $instance; + public $kind; + public $name; + public $password; + public $project; + + + public function setEtag($etag) + { + $this->etag = $etag; + } + public function getEtag() + { + return $this->etag; + } + public function setHost($host) + { + $this->host = $host; + } + public function getHost() + { + return $this->host; + } + public function setInstance($instance) + { + $this->instance = $instance; + } + public function getInstance() + { + return $this->instance; + } + public function setKind($kind) + { + $this->kind = $kind; + } + public function getKind() + { + return $this->kind; + } + public function setName($name) + { + $this->name = $name; + } + public function getName() + { + return $this->name; + } + public function setPassword($password) + { + $this->password = $password; + } + public function getPassword() + { + return $this->password; + } + public function setProject($project) + { + $this->project = $project; + } + public function getProject() + { + return $this->project; + } +} + +class Google_Service_SQLAdmin_UsersListResponse extends Google_Collection +{ + protected $collection_key = 'items'; + protected $internal_gapi_mappings = array( + ); + protected $itemsType = 'Google_Service_SQLAdmin_User'; + protected $itemsDataType = 'array'; + public $kind; + public $nextPageToken; + + + public function setItems($items) + { + $this->items = $items; + } + public function getItems() + { + return $this->items; + } + public function setKind($kind) + { + $this->kind = $kind; + } + public function getKind() + { + return $this->kind; + } + public function setNextPageToken($nextPageToken) + { + $this->nextPageToken = $nextPageToken; + } + public function getNextPageToken() + { + return $this->nextPageToken; + } +} diff --git a/lib/google/src/Google/Service/Script.php b/lib/google/src/Google/Service/Script.php new file mode 100644 index 00000000000..43ddcaac562 --- /dev/null +++ b/lib/google/src/Google/Service/Script.php @@ -0,0 +1,368 @@ + + * An API for executing Google Apps Script projects.

+ * + *

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

+ * + * @author Google, Inc. + */ +class Google_Service_Script extends Google_Service +{ + /** View and manage your mail. */ + const MAIL_GOOGLE_COM = + "https://mail.google.com/"; + /** Manage your calendars. */ + const WWW_GOOGLE_COM_CALENDAR_FEEDS = + "https://www.google.com/calendar/feeds"; + /** Manage your contacts. */ + const WWW_GOOGLE_COM_M8_FEEDS = + "https://www.google.com/m8/feeds"; + /** View and manage the provisioning of groups on your domain. */ + const ADMIN_DIRECTORY_GROUP = + "https://www.googleapis.com/auth/admin.directory.group"; + /** View and manage the provisioning of users on your domain. */ + const ADMIN_DIRECTORY_USER = + "https://www.googleapis.com/auth/admin.directory.user"; + /** View and manage the files in your Google Drive. */ + const DRIVE = + "https://www.googleapis.com/auth/drive"; + /** View and manage your forms in Google Drive. */ + const FORMS = + "https://www.googleapis.com/auth/forms"; + /** View and manage forms that this application has been installed in. */ + const FORMS_CURRENTONLY = + "https://www.googleapis.com/auth/forms.currentonly"; + /** View and manage your Google Groups. */ + const GROUPS = + "https://www.googleapis.com/auth/groups"; + /** View your email address. */ + const USERINFO_EMAIL = + "https://www.googleapis.com/auth/userinfo.email"; + + public $scripts; + + + /** + * Constructs the internal representation of the Script service. + * + * @param Google_Client $client + */ + public function __construct(Google_Client $client) + { + parent::__construct($client); + $this->rootUrl = 'https://script.googleapis.com/'; + $this->servicePath = ''; + $this->version = 'v1'; + $this->serviceName = 'script'; + + $this->scripts = new Google_Service_Script_Scripts_Resource( + $this, + $this->serviceName, + 'scripts', + array( + 'methods' => array( + 'run' => array( + 'path' => 'v1/scripts/{scriptId}:run', + 'httpMethod' => 'POST', + 'parameters' => array( + 'scriptId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ), + ) + ) + ); + } +} + + +/** + * The "scripts" collection of methods. + * Typical usage is: + * + * $scriptService = new Google_Service_Script(...); + * $scripts = $scriptService->scripts; + * + */ +class Google_Service_Script_Scripts_Resource extends Google_Service_Resource +{ + + /** + * Runs a function in an Apps Script project that has been deployed for use with + * the Apps Script Execution API. This method requires authorization with an + * OAuth 2.0 token that includes at least one of the scopes listed in the + * [Authentication](#authentication) section; script projects that do not + * require authorization cannot be executed through this API. To find the + * correct scopes to include in the authentication token, open the project in + * the script editor, then select **File > Project properties** and click the + * **Scopes** tab. (scripts.run) + * + * @param string $scriptId The project key of the script to be executed. To find + * the project key, open the project in the script editor, then select **File > + * Project properties**. + * @param Google_ExecutionRequest $postBody + * @param array $optParams Optional parameters. + * @return Google_Service_Script_Operation + */ + public function run($scriptId, Google_Service_Script_ExecutionRequest $postBody, $optParams = array()) + { + $params = array('scriptId' => $scriptId, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('run', array($params), "Google_Service_Script_Operation"); + } +} + + + + +class Google_Service_Script_ExecutionError extends Google_Collection +{ + protected $collection_key = 'scriptStackTraceElements'; + protected $internal_gapi_mappings = array( + ); + public $errorMessage; + public $errorType; + protected $scriptStackTraceElementsType = 'Google_Service_Script_ScriptStackTraceElement'; + protected $scriptStackTraceElementsDataType = 'array'; + + + public function setErrorMessage($errorMessage) + { + $this->errorMessage = $errorMessage; + } + public function getErrorMessage() + { + return $this->errorMessage; + } + public function setErrorType($errorType) + { + $this->errorType = $errorType; + } + public function getErrorType() + { + return $this->errorType; + } + public function setScriptStackTraceElements($scriptStackTraceElements) + { + $this->scriptStackTraceElements = $scriptStackTraceElements; + } + public function getScriptStackTraceElements() + { + return $this->scriptStackTraceElements; + } +} + +class Google_Service_Script_ExecutionRequest extends Google_Collection +{ + protected $collection_key = 'parameters'; + protected $internal_gapi_mappings = array( + ); + public $devMode; + public $function; + public $parameters; + public $sessionState; + + + public function setDevMode($devMode) + { + $this->devMode = $devMode; + } + public function getDevMode() + { + return $this->devMode; + } + public function setFunction($function) + { + $this->function = $function; + } + public function getFunction() + { + return $this->function; + } + public function setParameters($parameters) + { + $this->parameters = $parameters; + } + public function getParameters() + { + return $this->parameters; + } + public function setSessionState($sessionState) + { + $this->sessionState = $sessionState; + } + public function getSessionState() + { + return $this->sessionState; + } +} + +class Google_Service_Script_ExecutionResponse extends Google_Model +{ + protected $internal_gapi_mappings = array( + ); + public $result; + + + public function setResult($result) + { + $this->result = $result; + } + public function getResult() + { + return $this->result; + } +} + +class Google_Service_Script_Operation extends Google_Model +{ + protected $internal_gapi_mappings = array( + ); + public $done; + protected $errorType = 'Google_Service_Script_Status'; + protected $errorDataType = ''; + public $metadata; + public $name; + public $response; + + + public function setDone($done) + { + $this->done = $done; + } + public function getDone() + { + return $this->done; + } + public function setError(Google_Service_Script_Status $error) + { + $this->error = $error; + } + public function getError() + { + return $this->error; + } + public function setMetadata($metadata) + { + $this->metadata = $metadata; + } + public function getMetadata() + { + return $this->metadata; + } + public function setName($name) + { + $this->name = $name; + } + public function getName() + { + return $this->name; + } + public function setResponse($response) + { + $this->response = $response; + } + public function getResponse() + { + return $this->response; + } +} + +class Google_Service_Script_OperationMetadata extends Google_Model +{ +} + +class Google_Service_Script_OperationResponse extends Google_Model +{ +} + +class Google_Service_Script_ScriptStackTraceElement extends Google_Model +{ + protected $internal_gapi_mappings = array( + ); + public $function; + public $lineNumber; + + + public function setFunction($function) + { + $this->function = $function; + } + public function getFunction() + { + return $this->function; + } + public function setLineNumber($lineNumber) + { + $this->lineNumber = $lineNumber; + } + public function getLineNumber() + { + return $this->lineNumber; + } +} + +class Google_Service_Script_Status extends Google_Collection +{ + protected $collection_key = 'details'; + protected $internal_gapi_mappings = array( + ); + public $code; + public $details; + public $message; + + + public function setCode($code) + { + $this->code = $code; + } + public function getCode() + { + return $this->code; + } + public function setDetails($details) + { + $this->details = $details; + } + public function getDetails() + { + return $this->details; + } + public function setMessage($message) + { + $this->message = $message; + } + public function getMessage() + { + return $this->message; + } +} + +class Google_Service_Script_StatusDetails extends Google_Model +{ +} diff --git a/lib/google/src/Google/Service/ShoppingContent.php b/lib/google/src/Google/Service/ShoppingContent.php index 92ce06590ab..44840eef881 100644 --- a/lib/google/src/Google/Service/ShoppingContent.php +++ b/lib/google/src/Google/Service/ShoppingContent.php @@ -36,7 +36,9 @@ class Google_Service_ShoppingContent extends Google_Service "https://www.googleapis.com/auth/content"; public $accounts; + public $accountshipping; public $accountstatuses; + public $accounttax; public $datafeeds; public $datafeedstatuses; public $inventory; @@ -52,6 +54,7 @@ class Google_Service_ShoppingContent extends Google_Service public function __construct(Google_Client $client) { parent::__construct($client); + $this->rootUrl = 'https://www.googleapis.com/'; $this->servicePath = 'content/v2/'; $this->version = 'v2'; $this->serviceName = 'content'; @@ -62,7 +65,11 @@ class Google_Service_ShoppingContent extends Google_Service 'accounts', array( 'methods' => array( - 'custombatch' => array( + 'authinfo' => array( + 'path' => 'accounts/authinfo', + 'httpMethod' => 'GET', + 'parameters' => array(), + ),'custombatch' => array( 'path' => 'accounts/batch', 'httpMethod' => 'POST', 'parameters' => array(), @@ -158,6 +165,96 @@ class Google_Service_ShoppingContent extends Google_Service ) ) ); + $this->accountshipping = new Google_Service_ShoppingContent_Accountshipping_Resource( + $this, + $this->serviceName, + 'accountshipping', + array( + 'methods' => array( + 'custombatch' => array( + 'path' => 'accountshipping/batch', + 'httpMethod' => 'POST', + 'parameters' => array( + 'dryRun' => array( + 'location' => 'query', + 'type' => 'boolean', + ), + ), + ),'get' => array( + 'path' => '{merchantId}/accountshipping/{accountId}', + 'httpMethod' => 'GET', + 'parameters' => array( + 'merchantId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'accountId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ),'list' => array( + 'path' => '{merchantId}/accountshipping', + 'httpMethod' => 'GET', + 'parameters' => array( + 'merchantId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'pageToken' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'maxResults' => array( + 'location' => 'query', + 'type' => 'integer', + ), + ), + ),'patch' => array( + 'path' => '{merchantId}/accountshipping/{accountId}', + 'httpMethod' => 'PATCH', + 'parameters' => array( + 'merchantId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'accountId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'dryRun' => array( + 'location' => 'query', + 'type' => 'boolean', + ), + ), + ),'update' => array( + 'path' => '{merchantId}/accountshipping/{accountId}', + 'httpMethod' => 'PUT', + 'parameters' => array( + 'merchantId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'accountId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'dryRun' => array( + 'location' => 'query', + 'type' => 'boolean', + ), + ), + ), + ) + ) + ); $this->accountstatuses = new Google_Service_ShoppingContent_Accountstatuses_Resource( $this, $this->serviceName, @@ -205,6 +302,96 @@ class Google_Service_ShoppingContent extends Google_Service ) ) ); + $this->accounttax = new Google_Service_ShoppingContent_Accounttax_Resource( + $this, + $this->serviceName, + 'accounttax', + array( + 'methods' => array( + 'custombatch' => array( + 'path' => 'accounttax/batch', + 'httpMethod' => 'POST', + 'parameters' => array( + 'dryRun' => array( + 'location' => 'query', + 'type' => 'boolean', + ), + ), + ),'get' => array( + 'path' => '{merchantId}/accounttax/{accountId}', + 'httpMethod' => 'GET', + 'parameters' => array( + 'merchantId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'accountId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ),'list' => array( + 'path' => '{merchantId}/accounttax', + 'httpMethod' => 'GET', + 'parameters' => array( + 'merchantId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'pageToken' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'maxResults' => array( + 'location' => 'query', + 'type' => 'integer', + ), + ), + ),'patch' => array( + 'path' => '{merchantId}/accounttax/{accountId}', + 'httpMethod' => 'PATCH', + 'parameters' => array( + 'merchantId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'accountId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'dryRun' => array( + 'location' => 'query', + 'type' => 'boolean', + ), + ), + ),'update' => array( + 'path' => '{merchantId}/accounttax/{accountId}', + 'httpMethod' => 'PUT', + 'parameters' => array( + 'merchantId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'accountId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'dryRun' => array( + 'location' => 'query', + 'type' => 'boolean', + ), + ), + ), + ) + ) + ); $this->datafeeds = new Google_Service_ShoppingContent_Datafeeds_Resource( $this, $this->serviceName, @@ -535,6 +722,19 @@ class Google_Service_ShoppingContent extends Google_Service class Google_Service_ShoppingContent_Accounts_Resource extends Google_Service_Resource { + /** + * Returns information about the authenticated user. (accounts.authinfo) + * + * @param array $optParams Optional parameters. + * @return Google_Service_ShoppingContent_AccountsAuthInfoResponse + */ + public function authinfo($optParams = array()) + { + $params = array(); + $params = array_merge($params, $optParams); + return $this->call('authinfo', array($params), "Google_Service_ShoppingContent_AccountsAuthInfoResponse"); + } + /** * Retrieves, inserts, updates, and deletes multiple Merchant Center * (sub-)accounts in a single request. (accounts.custombatch) @@ -647,6 +847,109 @@ class Google_Service_ShoppingContent_Accounts_Resource extends Google_Service_Re } } +/** + * The "accountshipping" collection of methods. + * Typical usage is: + * + * $contentService = new Google_Service_ShoppingContent(...); + * $accountshipping = $contentService->accountshipping; + * + */ +class Google_Service_ShoppingContent_Accountshipping_Resource extends Google_Service_Resource +{ + + /** + * Retrieves and updates the shipping settings of multiple accounts in a single + * request. (accountshipping.custombatch) + * + * @param Google_AccountshippingCustomBatchRequest $postBody + * @param array $optParams Optional parameters. + * + * @opt_param bool dryRun Flag to run the request in dry-run mode. + * @return Google_Service_ShoppingContent_AccountshippingCustomBatchResponse + */ + public function custombatch(Google_Service_ShoppingContent_AccountshippingCustomBatchRequest $postBody, $optParams = array()) + { + $params = array('postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('custombatch', array($params), "Google_Service_ShoppingContent_AccountshippingCustomBatchResponse"); + } + + /** + * Retrieves the shipping settings of the account. (accountshipping.get) + * + * @param string $merchantId The ID of the managing account. + * @param string $accountId The ID of the account for which to get/update + * account shipping settings. + * @param array $optParams Optional parameters. + * @return Google_Service_ShoppingContent_AccountShipping + */ + public function get($merchantId, $accountId, $optParams = array()) + { + $params = array('merchantId' => $merchantId, 'accountId' => $accountId); + $params = array_merge($params, $optParams); + return $this->call('get', array($params), "Google_Service_ShoppingContent_AccountShipping"); + } + + /** + * Lists the shipping settings of the sub-accounts in your Merchant Center + * account. (accountshipping.listAccountshipping) + * + * @param string $merchantId The ID of the managing account. + * @param array $optParams Optional parameters. + * + * @opt_param string pageToken The token returned by the previous request. + * @opt_param string maxResults The maximum number of shipping settings to + * return in the response, used for paging. + * @return Google_Service_ShoppingContent_AccountshippingListResponse + */ + public function listAccountshipping($merchantId, $optParams = array()) + { + $params = array('merchantId' => $merchantId); + $params = array_merge($params, $optParams); + return $this->call('list', array($params), "Google_Service_ShoppingContent_AccountshippingListResponse"); + } + + /** + * Updates the shipping settings of the account. This method supports patch + * semantics. (accountshipping.patch) + * + * @param string $merchantId The ID of the managing account. + * @param string $accountId The ID of the account for which to get/update + * account shipping settings. + * @param Google_AccountShipping $postBody + * @param array $optParams Optional parameters. + * + * @opt_param bool dryRun Flag to run the request in dry-run mode. + * @return Google_Service_ShoppingContent_AccountShipping + */ + public function patch($merchantId, $accountId, Google_Service_ShoppingContent_AccountShipping $postBody, $optParams = array()) + { + $params = array('merchantId' => $merchantId, 'accountId' => $accountId, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('patch', array($params), "Google_Service_ShoppingContent_AccountShipping"); + } + + /** + * Updates the shipping settings of the account. (accountshipping.update) + * + * @param string $merchantId The ID of the managing account. + * @param string $accountId The ID of the account for which to get/update + * account shipping settings. + * @param Google_AccountShipping $postBody + * @param array $optParams Optional parameters. + * + * @opt_param bool dryRun Flag to run the request in dry-run mode. + * @return Google_Service_ShoppingContent_AccountShipping + */ + public function update($merchantId, $accountId, Google_Service_ShoppingContent_AccountShipping $postBody, $optParams = array()) + { + $params = array('merchantId' => $merchantId, 'accountId' => $accountId, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('update', array($params), "Google_Service_ShoppingContent_AccountShipping"); + } +} + /** * The "accountstatuses" collection of methods. * Typical usage is: @@ -707,6 +1010,109 @@ class Google_Service_ShoppingContent_Accountstatuses_Resource extends Google_Ser } } +/** + * The "accounttax" collection of methods. + * Typical usage is: + * + * $contentService = new Google_Service_ShoppingContent(...); + * $accounttax = $contentService->accounttax; + * + */ +class Google_Service_ShoppingContent_Accounttax_Resource extends Google_Service_Resource +{ + + /** + * Retrieves and updates tax settings of multiple accounts in a single request. + * (accounttax.custombatch) + * + * @param Google_AccounttaxCustomBatchRequest $postBody + * @param array $optParams Optional parameters. + * + * @opt_param bool dryRun Flag to run the request in dry-run mode. + * @return Google_Service_ShoppingContent_AccounttaxCustomBatchResponse + */ + public function custombatch(Google_Service_ShoppingContent_AccounttaxCustomBatchRequest $postBody, $optParams = array()) + { + $params = array('postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('custombatch', array($params), "Google_Service_ShoppingContent_AccounttaxCustomBatchResponse"); + } + + /** + * Retrieves the tax settings of the account. (accounttax.get) + * + * @param string $merchantId The ID of the managing account. + * @param string $accountId The ID of the account for which to get/update + * account tax settings. + * @param array $optParams Optional parameters. + * @return Google_Service_ShoppingContent_AccountTax + */ + public function get($merchantId, $accountId, $optParams = array()) + { + $params = array('merchantId' => $merchantId, 'accountId' => $accountId); + $params = array_merge($params, $optParams); + return $this->call('get', array($params), "Google_Service_ShoppingContent_AccountTax"); + } + + /** + * Lists the tax settings of the sub-accounts in your Merchant Center account. + * (accounttax.listAccounttax) + * + * @param string $merchantId The ID of the managing account. + * @param array $optParams Optional parameters. + * + * @opt_param string pageToken The token returned by the previous request. + * @opt_param string maxResults The maximum number of tax settings to return in + * the response, used for paging. + * @return Google_Service_ShoppingContent_AccounttaxListResponse + */ + public function listAccounttax($merchantId, $optParams = array()) + { + $params = array('merchantId' => $merchantId); + $params = array_merge($params, $optParams); + return $this->call('list', array($params), "Google_Service_ShoppingContent_AccounttaxListResponse"); + } + + /** + * Updates the tax settings of the account. This method supports patch + * semantics. (accounttax.patch) + * + * @param string $merchantId The ID of the managing account. + * @param string $accountId The ID of the account for which to get/update + * account tax settings. + * @param Google_AccountTax $postBody + * @param array $optParams Optional parameters. + * + * @opt_param bool dryRun Flag to run the request in dry-run mode. + * @return Google_Service_ShoppingContent_AccountTax + */ + public function patch($merchantId, $accountId, Google_Service_ShoppingContent_AccountTax $postBody, $optParams = array()) + { + $params = array('merchantId' => $merchantId, 'accountId' => $accountId, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('patch', array($params), "Google_Service_ShoppingContent_AccountTax"); + } + + /** + * Updates the tax settings of the account. (accounttax.update) + * + * @param string $merchantId The ID of the managing account. + * @param string $accountId The ID of the account for which to get/update + * account tax settings. + * @param Google_AccountTax $postBody + * @param array $optParams Optional parameters. + * + * @opt_param bool dryRun Flag to run the request in dry-run mode. + * @return Google_Service_ShoppingContent_AccountTax + */ + public function update($merchantId, $accountId, Google_Service_ShoppingContent_AccountTax $postBody, $optParams = array()) + { + $params = array('merchantId' => $merchantId, 'accountId' => $accountId, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('update', array($params), "Google_Service_ShoppingContent_AccountTax"); + } +} + /** * The "datafeeds" collection of methods. * Typical usage is: @@ -1216,6 +1622,539 @@ class Google_Service_ShoppingContent_AccountAdwordsLink extends Google_Model } } +class Google_Service_ShoppingContent_AccountIdentifier extends Google_Model +{ + protected $internal_gapi_mappings = array( + ); + public $aggregatorId; + public $merchantId; + + + public function setAggregatorId($aggregatorId) + { + $this->aggregatorId = $aggregatorId; + } + public function getAggregatorId() + { + return $this->aggregatorId; + } + public function setMerchantId($merchantId) + { + $this->merchantId = $merchantId; + } + public function getMerchantId() + { + return $this->merchantId; + } +} + +class Google_Service_ShoppingContent_AccountShipping extends Google_Collection +{ + protected $collection_key = 'services'; + protected $internal_gapi_mappings = array( + ); + public $accountId; + protected $carrierRatesType = 'Google_Service_ShoppingContent_AccountShippingCarrierRate'; + protected $carrierRatesDataType = 'array'; + public $kind; + protected $locationGroupsType = 'Google_Service_ShoppingContent_AccountShippingLocationGroup'; + protected $locationGroupsDataType = 'array'; + protected $rateTablesType = 'Google_Service_ShoppingContent_AccountShippingRateTable'; + protected $rateTablesDataType = 'array'; + protected $servicesType = 'Google_Service_ShoppingContent_AccountShippingShippingService'; + protected $servicesDataType = 'array'; + + + public function setAccountId($accountId) + { + $this->accountId = $accountId; + } + public function getAccountId() + { + return $this->accountId; + } + public function setCarrierRates($carrierRates) + { + $this->carrierRates = $carrierRates; + } + public function getCarrierRates() + { + return $this->carrierRates; + } + public function setKind($kind) + { + $this->kind = $kind; + } + public function getKind() + { + return $this->kind; + } + public function setLocationGroups($locationGroups) + { + $this->locationGroups = $locationGroups; + } + public function getLocationGroups() + { + return $this->locationGroups; + } + public function setRateTables($rateTables) + { + $this->rateTables = $rateTables; + } + public function getRateTables() + { + return $this->rateTables; + } + public function setServices($services) + { + $this->services = $services; + } + public function getServices() + { + return $this->services; + } +} + +class Google_Service_ShoppingContent_AccountShippingCarrierRate extends Google_Model +{ + protected $internal_gapi_mappings = array( + ); + public $carrier; + public $carrierService; + protected $modifierFlatRateType = 'Google_Service_ShoppingContent_Price'; + protected $modifierFlatRateDataType = ''; + public $modifierPercent; + public $name; + public $saleCountry; + public $shippingOrigin; + + + public function setCarrier($carrier) + { + $this->carrier = $carrier; + } + public function getCarrier() + { + return $this->carrier; + } + public function setCarrierService($carrierService) + { + $this->carrierService = $carrierService; + } + public function getCarrierService() + { + return $this->carrierService; + } + public function setModifierFlatRate(Google_Service_ShoppingContent_Price $modifierFlatRate) + { + $this->modifierFlatRate = $modifierFlatRate; + } + public function getModifierFlatRate() + { + return $this->modifierFlatRate; + } + public function setModifierPercent($modifierPercent) + { + $this->modifierPercent = $modifierPercent; + } + public function getModifierPercent() + { + return $this->modifierPercent; + } + public function setName($name) + { + $this->name = $name; + } + public function getName() + { + return $this->name; + } + public function setSaleCountry($saleCountry) + { + $this->saleCountry = $saleCountry; + } + public function getSaleCountry() + { + return $this->saleCountry; + } + public function setShippingOrigin($shippingOrigin) + { + $this->shippingOrigin = $shippingOrigin; + } + public function getShippingOrigin() + { + return $this->shippingOrigin; + } +} + +class Google_Service_ShoppingContent_AccountShippingCondition extends Google_Model +{ + protected $internal_gapi_mappings = array( + ); + public $deliveryLocationGroup; + public $deliveryLocationId; + public $deliveryPostalCode; + protected $deliveryPostalCodeRangeType = 'Google_Service_ShoppingContent_AccountShippingPostalCodeRange'; + protected $deliveryPostalCodeRangeDataType = ''; + protected $priceMaxType = 'Google_Service_ShoppingContent_Price'; + protected $priceMaxDataType = ''; + public $shippingLabel; + protected $weightMaxType = 'Google_Service_ShoppingContent_Weight'; + protected $weightMaxDataType = ''; + + + public function setDeliveryLocationGroup($deliveryLocationGroup) + { + $this->deliveryLocationGroup = $deliveryLocationGroup; + } + public function getDeliveryLocationGroup() + { + return $this->deliveryLocationGroup; + } + public function setDeliveryLocationId($deliveryLocationId) + { + $this->deliveryLocationId = $deliveryLocationId; + } + public function getDeliveryLocationId() + { + return $this->deliveryLocationId; + } + public function setDeliveryPostalCode($deliveryPostalCode) + { + $this->deliveryPostalCode = $deliveryPostalCode; + } + public function getDeliveryPostalCode() + { + return $this->deliveryPostalCode; + } + public function setDeliveryPostalCodeRange(Google_Service_ShoppingContent_AccountShippingPostalCodeRange $deliveryPostalCodeRange) + { + $this->deliveryPostalCodeRange = $deliveryPostalCodeRange; + } + public function getDeliveryPostalCodeRange() + { + return $this->deliveryPostalCodeRange; + } + public function setPriceMax(Google_Service_ShoppingContent_Price $priceMax) + { + $this->priceMax = $priceMax; + } + public function getPriceMax() + { + return $this->priceMax; + } + public function setShippingLabel($shippingLabel) + { + $this->shippingLabel = $shippingLabel; + } + public function getShippingLabel() + { + return $this->shippingLabel; + } + public function setWeightMax(Google_Service_ShoppingContent_Weight $weightMax) + { + $this->weightMax = $weightMax; + } + public function getWeightMax() + { + return $this->weightMax; + } +} + +class Google_Service_ShoppingContent_AccountShippingLocationGroup extends Google_Collection +{ + protected $collection_key = 'postalCodes'; + protected $internal_gapi_mappings = array( + ); + public $country; + public $locationIds; + public $name; + protected $postalCodeRangesType = 'Google_Service_ShoppingContent_AccountShippingPostalCodeRange'; + protected $postalCodeRangesDataType = 'array'; + public $postalCodes; + + + public function setCountry($country) + { + $this->country = $country; + } + public function getCountry() + { + return $this->country; + } + public function setLocationIds($locationIds) + { + $this->locationIds = $locationIds; + } + public function getLocationIds() + { + return $this->locationIds; + } + public function setName($name) + { + $this->name = $name; + } + public function getName() + { + return $this->name; + } + public function setPostalCodeRanges($postalCodeRanges) + { + $this->postalCodeRanges = $postalCodeRanges; + } + public function getPostalCodeRanges() + { + return $this->postalCodeRanges; + } + public function setPostalCodes($postalCodes) + { + $this->postalCodes = $postalCodes; + } + public function getPostalCodes() + { + return $this->postalCodes; + } +} + +class Google_Service_ShoppingContent_AccountShippingPostalCodeRange extends Google_Model +{ + protected $internal_gapi_mappings = array( + ); + public $end; + public $start; + + + public function setEnd($end) + { + $this->end = $end; + } + public function getEnd() + { + return $this->end; + } + public function setStart($start) + { + $this->start = $start; + } + public function getStart() + { + return $this->start; + } +} + +class Google_Service_ShoppingContent_AccountShippingRateTable extends Google_Collection +{ + protected $collection_key = 'content'; + protected $internal_gapi_mappings = array( + ); + protected $contentType = 'Google_Service_ShoppingContent_AccountShippingRateTableCell'; + protected $contentDataType = 'array'; + public $name; + public $saleCountry; + + + public function setContent($content) + { + $this->content = $content; + } + public function getContent() + { + return $this->content; + } + public function setName($name) + { + $this->name = $name; + } + public function getName() + { + return $this->name; + } + public function setSaleCountry($saleCountry) + { + $this->saleCountry = $saleCountry; + } + public function getSaleCountry() + { + return $this->saleCountry; + } +} + +class Google_Service_ShoppingContent_AccountShippingRateTableCell extends Google_Model +{ + protected $internal_gapi_mappings = array( + ); + protected $conditionType = 'Google_Service_ShoppingContent_AccountShippingCondition'; + protected $conditionDataType = ''; + protected $rateType = 'Google_Service_ShoppingContent_Price'; + protected $rateDataType = ''; + + + public function setCondition(Google_Service_ShoppingContent_AccountShippingCondition $condition) + { + $this->condition = $condition; + } + public function getCondition() + { + return $this->condition; + } + public function setRate(Google_Service_ShoppingContent_Price $rate) + { + $this->rate = $rate; + } + public function getRate() + { + return $this->rate; + } +} + +class Google_Service_ShoppingContent_AccountShippingShippingService extends Google_Model +{ + protected $internal_gapi_mappings = array( + ); + public $active; + protected $calculationMethodType = 'Google_Service_ShoppingContent_AccountShippingShippingServiceCalculationMethod'; + protected $calculationMethodDataType = ''; + protected $costRuleTreeType = 'Google_Service_ShoppingContent_AccountShippingShippingServiceCostRule'; + protected $costRuleTreeDataType = ''; + public $name; + public $saleCountry; + + + public function setActive($active) + { + $this->active = $active; + } + public function getActive() + { + return $this->active; + } + public function setCalculationMethod(Google_Service_ShoppingContent_AccountShippingShippingServiceCalculationMethod $calculationMethod) + { + $this->calculationMethod = $calculationMethod; + } + public function getCalculationMethod() + { + return $this->calculationMethod; + } + public function setCostRuleTree(Google_Service_ShoppingContent_AccountShippingShippingServiceCostRule $costRuleTree) + { + $this->costRuleTree = $costRuleTree; + } + public function getCostRuleTree() + { + return $this->costRuleTree; + } + public function setName($name) + { + $this->name = $name; + } + public function getName() + { + return $this->name; + } + public function setSaleCountry($saleCountry) + { + $this->saleCountry = $saleCountry; + } + public function getSaleCountry() + { + return $this->saleCountry; + } +} + +class Google_Service_ShoppingContent_AccountShippingShippingServiceCalculationMethod extends Google_Model +{ + protected $internal_gapi_mappings = array( + ); + public $carrierRate; + public $excluded; + protected $flatRateType = 'Google_Service_ShoppingContent_Price'; + protected $flatRateDataType = ''; + public $percentageRate; + public $rateTable; + + + public function setCarrierRate($carrierRate) + { + $this->carrierRate = $carrierRate; + } + public function getCarrierRate() + { + return $this->carrierRate; + } + public function setExcluded($excluded) + { + $this->excluded = $excluded; + } + public function getExcluded() + { + return $this->excluded; + } + public function setFlatRate(Google_Service_ShoppingContent_Price $flatRate) + { + $this->flatRate = $flatRate; + } + public function getFlatRate() + { + return $this->flatRate; + } + public function setPercentageRate($percentageRate) + { + $this->percentageRate = $percentageRate; + } + public function getPercentageRate() + { + return $this->percentageRate; + } + public function setRateTable($rateTable) + { + $this->rateTable = $rateTable; + } + public function getRateTable() + { + return $this->rateTable; + } +} + +class Google_Service_ShoppingContent_AccountShippingShippingServiceCostRule extends Google_Collection +{ + protected $collection_key = 'children'; + protected $internal_gapi_mappings = array( + ); + protected $calculationMethodType = 'Google_Service_ShoppingContent_AccountShippingShippingServiceCalculationMethod'; + protected $calculationMethodDataType = ''; + protected $childrenType = 'Google_Service_ShoppingContent_AccountShippingShippingServiceCostRule'; + protected $childrenDataType = 'array'; + protected $conditionType = 'Google_Service_ShoppingContent_AccountShippingCondition'; + protected $conditionDataType = ''; + + + public function setCalculationMethod(Google_Service_ShoppingContent_AccountShippingShippingServiceCalculationMethod $calculationMethod) + { + $this->calculationMethod = $calculationMethod; + } + public function getCalculationMethod() + { + return $this->calculationMethod; + } + public function setChildren($children) + { + $this->children = $children; + } + public function getChildren() + { + return $this->children; + } + public function setCondition(Google_Service_ShoppingContent_AccountShippingCondition $condition) + { + $this->condition = $condition; + } + public function getCondition() + { + return $this->condition; + } +} + class Google_Service_ShoppingContent_AccountStatus extends Google_Collection { protected $collection_key = 'dataQualityIssues'; @@ -1388,6 +2327,96 @@ class Google_Service_ShoppingContent_AccountStatusExampleItem extends Google_Mod } } +class Google_Service_ShoppingContent_AccountTax extends Google_Collection +{ + protected $collection_key = 'rules'; + protected $internal_gapi_mappings = array( + ); + public $accountId; + public $kind; + protected $rulesType = 'Google_Service_ShoppingContent_AccountTaxTaxRule'; + protected $rulesDataType = 'array'; + + + public function setAccountId($accountId) + { + $this->accountId = $accountId; + } + public function getAccountId() + { + return $this->accountId; + } + public function setKind($kind) + { + $this->kind = $kind; + } + public function getKind() + { + return $this->kind; + } + public function setRules($rules) + { + $this->rules = $rules; + } + public function getRules() + { + return $this->rules; + } +} + +class Google_Service_ShoppingContent_AccountTaxTaxRule extends Google_Model +{ + protected $internal_gapi_mappings = array( + ); + public $country; + public $locationId; + public $ratePercent; + public $shippingTaxed; + public $useGlobalRate; + + + public function setCountry($country) + { + $this->country = $country; + } + public function getCountry() + { + return $this->country; + } + public function setLocationId($locationId) + { + $this->locationId = $locationId; + } + public function getLocationId() + { + return $this->locationId; + } + public function setRatePercent($ratePercent) + { + $this->ratePercent = $ratePercent; + } + public function getRatePercent() + { + return $this->ratePercent; + } + public function setShippingTaxed($shippingTaxed) + { + $this->shippingTaxed = $shippingTaxed; + } + public function getShippingTaxed() + { + return $this->shippingTaxed; + } + public function setUseGlobalRate($useGlobalRate) + { + $this->useGlobalRate = $useGlobalRate; + } + public function getUseGlobalRate() + { + return $this->useGlobalRate; + } +} + class Google_Service_ShoppingContent_AccountUser extends Google_Model { protected $internal_gapi_mappings = array( @@ -1414,6 +2443,34 @@ class Google_Service_ShoppingContent_AccountUser extends Google_Model } } +class Google_Service_ShoppingContent_AccountsAuthInfoResponse extends Google_Collection +{ + protected $collection_key = 'accountIdentifiers'; + protected $internal_gapi_mappings = array( + ); + protected $accountIdentifiersType = 'Google_Service_ShoppingContent_AccountIdentifier'; + protected $accountIdentifiersDataType = 'array'; + public $kind; + + + public function setAccountIdentifiers($accountIdentifiers) + { + $this->accountIdentifiers = $accountIdentifiers; + } + public function getAccountIdentifiers() + { + return $this->accountIdentifiers; + } + public function setKind($kind) + { + $this->kind = $kind; + } + public function getKind() + { + return $this->kind; + } +} + class Google_Service_ShoppingContent_AccountsCustomBatchRequest extends Google_Collection { protected $collection_key = 'entries'; @@ -1598,6 +2655,190 @@ class Google_Service_ShoppingContent_AccountsListResponse extends Google_Collect } } +class Google_Service_ShoppingContent_AccountshippingCustomBatchRequest extends Google_Collection +{ + protected $collection_key = 'entries'; + protected $internal_gapi_mappings = array( + ); + protected $entriesType = 'Google_Service_ShoppingContent_AccountshippingCustomBatchRequestEntry'; + protected $entriesDataType = 'array'; + + + public function setEntries($entries) + { + $this->entries = $entries; + } + public function getEntries() + { + return $this->entries; + } +} + +class Google_Service_ShoppingContent_AccountshippingCustomBatchRequestEntry extends Google_Model +{ + protected $internal_gapi_mappings = array( + ); + public $accountId; + protected $accountShippingType = 'Google_Service_ShoppingContent_AccountShipping'; + protected $accountShippingDataType = ''; + public $batchId; + public $merchantId; + public $method; + + + public function setAccountId($accountId) + { + $this->accountId = $accountId; + } + public function getAccountId() + { + return $this->accountId; + } + public function setAccountShipping(Google_Service_ShoppingContent_AccountShipping $accountShipping) + { + $this->accountShipping = $accountShipping; + } + public function getAccountShipping() + { + return $this->accountShipping; + } + public function setBatchId($batchId) + { + $this->batchId = $batchId; + } + public function getBatchId() + { + return $this->batchId; + } + public function setMerchantId($merchantId) + { + $this->merchantId = $merchantId; + } + public function getMerchantId() + { + return $this->merchantId; + } + public function setMethod($method) + { + $this->method = $method; + } + public function getMethod() + { + return $this->method; + } +} + +class Google_Service_ShoppingContent_AccountshippingCustomBatchResponse extends Google_Collection +{ + protected $collection_key = 'entries'; + protected $internal_gapi_mappings = array( + ); + protected $entriesType = 'Google_Service_ShoppingContent_AccountshippingCustomBatchResponseEntry'; + protected $entriesDataType = 'array'; + public $kind; + + + public function setEntries($entries) + { + $this->entries = $entries; + } + public function getEntries() + { + return $this->entries; + } + public function setKind($kind) + { + $this->kind = $kind; + } + public function getKind() + { + return $this->kind; + } +} + +class Google_Service_ShoppingContent_AccountshippingCustomBatchResponseEntry extends Google_Model +{ + protected $internal_gapi_mappings = array( + ); + protected $accountShippingType = 'Google_Service_ShoppingContent_AccountShipping'; + protected $accountShippingDataType = ''; + public $batchId; + protected $errorsType = 'Google_Service_ShoppingContent_Errors'; + protected $errorsDataType = ''; + public $kind; + + + public function setAccountShipping(Google_Service_ShoppingContent_AccountShipping $accountShipping) + { + $this->accountShipping = $accountShipping; + } + public function getAccountShipping() + { + return $this->accountShipping; + } + public function setBatchId($batchId) + { + $this->batchId = $batchId; + } + public function getBatchId() + { + return $this->batchId; + } + public function setErrors(Google_Service_ShoppingContent_Errors $errors) + { + $this->errors = $errors; + } + public function getErrors() + { + return $this->errors; + } + public function setKind($kind) + { + $this->kind = $kind; + } + public function getKind() + { + return $this->kind; + } +} + +class Google_Service_ShoppingContent_AccountshippingListResponse extends Google_Collection +{ + protected $collection_key = 'resources'; + protected $internal_gapi_mappings = array( + ); + public $kind; + public $nextPageToken; + protected $resourcesType = 'Google_Service_ShoppingContent_AccountShipping'; + protected $resourcesDataType = 'array'; + + + public function setKind($kind) + { + $this->kind = $kind; + } + public function getKind() + { + return $this->kind; + } + public function setNextPageToken($nextPageToken) + { + $this->nextPageToken = $nextPageToken; + } + public function getNextPageToken() + { + return $this->nextPageToken; + } + public function setResources($resources) + { + $this->resources = $resources; + } + public function getResources() + { + return $this->resources; + } +} + class Google_Service_ShoppingContent_AccountstatusesCustomBatchRequest extends Google_Collection { protected $collection_key = 'entries'; @@ -1763,6 +3004,190 @@ class Google_Service_ShoppingContent_AccountstatusesListResponse extends Google_ } } +class Google_Service_ShoppingContent_AccounttaxCustomBatchRequest extends Google_Collection +{ + protected $collection_key = 'entries'; + protected $internal_gapi_mappings = array( + ); + protected $entriesType = 'Google_Service_ShoppingContent_AccounttaxCustomBatchRequestEntry'; + protected $entriesDataType = 'array'; + + + public function setEntries($entries) + { + $this->entries = $entries; + } + public function getEntries() + { + return $this->entries; + } +} + +class Google_Service_ShoppingContent_AccounttaxCustomBatchRequestEntry extends Google_Model +{ + protected $internal_gapi_mappings = array( + ); + public $accountId; + protected $accountTaxType = 'Google_Service_ShoppingContent_AccountTax'; + protected $accountTaxDataType = ''; + public $batchId; + public $merchantId; + public $method; + + + public function setAccountId($accountId) + { + $this->accountId = $accountId; + } + public function getAccountId() + { + return $this->accountId; + } + public function setAccountTax(Google_Service_ShoppingContent_AccountTax $accountTax) + { + $this->accountTax = $accountTax; + } + public function getAccountTax() + { + return $this->accountTax; + } + public function setBatchId($batchId) + { + $this->batchId = $batchId; + } + public function getBatchId() + { + return $this->batchId; + } + public function setMerchantId($merchantId) + { + $this->merchantId = $merchantId; + } + public function getMerchantId() + { + return $this->merchantId; + } + public function setMethod($method) + { + $this->method = $method; + } + public function getMethod() + { + return $this->method; + } +} + +class Google_Service_ShoppingContent_AccounttaxCustomBatchResponse extends Google_Collection +{ + protected $collection_key = 'entries'; + protected $internal_gapi_mappings = array( + ); + protected $entriesType = 'Google_Service_ShoppingContent_AccounttaxCustomBatchResponseEntry'; + protected $entriesDataType = 'array'; + public $kind; + + + public function setEntries($entries) + { + $this->entries = $entries; + } + public function getEntries() + { + return $this->entries; + } + public function setKind($kind) + { + $this->kind = $kind; + } + public function getKind() + { + return $this->kind; + } +} + +class Google_Service_ShoppingContent_AccounttaxCustomBatchResponseEntry extends Google_Model +{ + protected $internal_gapi_mappings = array( + ); + protected $accountTaxType = 'Google_Service_ShoppingContent_AccountTax'; + protected $accountTaxDataType = ''; + public $batchId; + protected $errorsType = 'Google_Service_ShoppingContent_Errors'; + protected $errorsDataType = ''; + public $kind; + + + public function setAccountTax(Google_Service_ShoppingContent_AccountTax $accountTax) + { + $this->accountTax = $accountTax; + } + public function getAccountTax() + { + return $this->accountTax; + } + public function setBatchId($batchId) + { + $this->batchId = $batchId; + } + public function getBatchId() + { + return $this->batchId; + } + public function setErrors(Google_Service_ShoppingContent_Errors $errors) + { + $this->errors = $errors; + } + public function getErrors() + { + return $this->errors; + } + public function setKind($kind) + { + $this->kind = $kind; + } + public function getKind() + { + return $this->kind; + } +} + +class Google_Service_ShoppingContent_AccounttaxListResponse extends Google_Collection +{ + protected $collection_key = 'resources'; + protected $internal_gapi_mappings = array( + ); + public $kind; + public $nextPageToken; + protected $resourcesType = 'Google_Service_ShoppingContent_AccountTax'; + protected $resourcesDataType = 'array'; + + + public function setKind($kind) + { + $this->kind = $kind; + } + public function getKind() + { + return $this->kind; + } + public function setNextPageToken($nextPageToken) + { + $this->nextPageToken = $nextPageToken; + } + public function getNextPageToken() + { + return $this->nextPageToken; + } + public function setResources($resources) + { + $this->resources = $resources; + } + public function getResources() + { + return $this->resources; + } +} + class Google_Service_ShoppingContent_Datafeed extends Google_Collection { protected $collection_key = 'intendedDestinations'; @@ -1990,6 +3415,7 @@ class Google_Service_ShoppingContent_DatafeedStatus extends Google_Collection public $itemsTotal; public $itemsValid; public $kind; + public $lastUploadDate; public $processingStatus; protected $warningsType = 'Google_Service_ShoppingContent_DatafeedStatusError'; protected $warningsDataType = 'array'; @@ -2035,6 +3461,14 @@ class Google_Service_ShoppingContent_DatafeedStatus extends Google_Collection { return $this->kind; } + public function setLastUploadDate($lastUploadDate) + { + $this->lastUploadDate = $lastUploadDate; + } + public function getLastUploadDate() + { + return $this->lastUploadDate; + } public function setProcessingStatus($processingStatus) { $this->processingStatus = $processingStatus; @@ -2891,6 +4325,8 @@ class Google_Service_ShoppingContent_Product extends Google_Collection public $adwordsLabels; public $adwordsRedirect; public $ageGroup; + protected $aspectsType = 'Google_Service_ShoppingContent_ProductAspect'; + protected $aspectsDataType = 'array'; public $availability; public $availabilityDate; public $brand; @@ -2910,6 +4346,11 @@ class Google_Service_ShoppingContent_Product extends Google_Collection public $description; protected $destinationsType = 'Google_Service_ShoppingContent_ProductDestination'; protected $destinationsDataType = 'array'; + public $displayAdsId; + public $displayAdsLink; + public $displayAdsSimilarIds; + public $displayAdsTitle; + public $displayAdsValue; public $energyEfficiencyClass; public $expirationDate; public $gender; @@ -2941,9 +4382,15 @@ class Google_Service_ShoppingContent_Product extends Google_Collection public $salePriceEffectiveDate; protected $shippingType = 'Google_Service_ShoppingContent_ProductShipping'; protected $shippingDataType = 'array'; + protected $shippingHeightType = 'Google_Service_ShoppingContent_ProductShippingDimension'; + protected $shippingHeightDataType = ''; public $shippingLabel; + protected $shippingLengthType = 'Google_Service_ShoppingContent_ProductShippingDimension'; + protected $shippingLengthDataType = ''; protected $shippingWeightType = 'Google_Service_ShoppingContent_ProductShippingWeight'; protected $shippingWeightDataType = ''; + protected $shippingWidthType = 'Google_Service_ShoppingContent_ProductShippingDimension'; + protected $shippingWidthDataType = ''; public $sizeSystem; public $sizeType; public $sizes; @@ -3008,6 +4455,14 @@ class Google_Service_ShoppingContent_Product extends Google_Collection { return $this->ageGroup; } + public function setAspects($aspects) + { + $this->aspects = $aspects; + } + public function getAspects() + { + return $this->aspects; + } public function setAvailability($availability) { $this->availability = $availability; @@ -3136,6 +4591,46 @@ class Google_Service_ShoppingContent_Product extends Google_Collection { return $this->destinations; } + public function setDisplayAdsId($displayAdsId) + { + $this->displayAdsId = $displayAdsId; + } + public function getDisplayAdsId() + { + return $this->displayAdsId; + } + public function setDisplayAdsLink($displayAdsLink) + { + $this->displayAdsLink = $displayAdsLink; + } + public function getDisplayAdsLink() + { + return $this->displayAdsLink; + } + public function setDisplayAdsSimilarIds($displayAdsSimilarIds) + { + $this->displayAdsSimilarIds = $displayAdsSimilarIds; + } + public function getDisplayAdsSimilarIds() + { + return $this->displayAdsSimilarIds; + } + public function setDisplayAdsTitle($displayAdsTitle) + { + $this->displayAdsTitle = $displayAdsTitle; + } + public function getDisplayAdsTitle() + { + return $this->displayAdsTitle; + } + public function setDisplayAdsValue($displayAdsValue) + { + $this->displayAdsValue = $displayAdsValue; + } + public function getDisplayAdsValue() + { + return $this->displayAdsValue; + } public function setEnergyEfficiencyClass($energyEfficiencyClass) { $this->energyEfficiencyClass = $energyEfficiencyClass; @@ -3344,6 +4839,14 @@ class Google_Service_ShoppingContent_Product extends Google_Collection { return $this->shipping; } + public function setShippingHeight(Google_Service_ShoppingContent_ProductShippingDimension $shippingHeight) + { + $this->shippingHeight = $shippingHeight; + } + public function getShippingHeight() + { + return $this->shippingHeight; + } public function setShippingLabel($shippingLabel) { $this->shippingLabel = $shippingLabel; @@ -3352,6 +4855,14 @@ class Google_Service_ShoppingContent_Product extends Google_Collection { return $this->shippingLabel; } + public function setShippingLength(Google_Service_ShoppingContent_ProductShippingDimension $shippingLength) + { + $this->shippingLength = $shippingLength; + } + public function getShippingLength() + { + return $this->shippingLength; + } public function setShippingWeight(Google_Service_ShoppingContent_ProductShippingWeight $shippingWeight) { $this->shippingWeight = $shippingWeight; @@ -3360,6 +4871,14 @@ class Google_Service_ShoppingContent_Product extends Google_Collection { return $this->shippingWeight; } + public function setShippingWidth(Google_Service_ShoppingContent_ProductShippingDimension $shippingWidth) + { + $this->shippingWidth = $shippingWidth; + } + public function getShippingWidth() + { + return $this->shippingWidth; + } public function setSizeSystem($sizeSystem) { $this->sizeSystem = $sizeSystem; @@ -3442,6 +4961,41 @@ class Google_Service_ShoppingContent_Product extends Google_Collection } } +class Google_Service_ShoppingContent_ProductAspect extends Google_Model +{ + protected $internal_gapi_mappings = array( + ); + public $aspectName; + public $destinationName; + public $intention; + + + public function setAspectName($aspectName) + { + $this->aspectName = $aspectName; + } + public function getAspectName() + { + return $this->aspectName; + } + public function setDestinationName($destinationName) + { + $this->destinationName = $destinationName; + } + public function getDestinationName() + { + return $this->destinationName; + } + public function setIntention($intention) + { + $this->intention = $intention; + } + public function getIntention() + { + return $this->intention; + } +} + class Google_Service_ShoppingContent_ProductCustomAttribute extends Google_Model { protected $internal_gapi_mappings = array( @@ -3639,6 +5193,32 @@ class Google_Service_ShoppingContent_ProductShipping extends Google_Model } } +class Google_Service_ShoppingContent_ProductShippingDimension extends Google_Model +{ + protected $internal_gapi_mappings = array( + ); + public $unit; + public $value; + + + public function setUnit($unit) + { + $this->unit = $unit; + } + public function getUnit() + { + return $this->unit; + } + public function setValue($value) + { + $this->value = $value; + } + public function getValue() + { + return $this->value; + } +} + class Google_Service_ShoppingContent_ProductShippingWeight extends Google_Model { protected $internal_gapi_mappings = array( @@ -3670,16 +5250,27 @@ class Google_Service_ShoppingContent_ProductStatus extends Google_Collection protected $collection_key = 'destinationStatuses'; protected $internal_gapi_mappings = array( ); + public $creationDate; protected $dataQualityIssuesType = 'Google_Service_ShoppingContent_ProductStatusDataQualityIssue'; protected $dataQualityIssuesDataType = 'array'; protected $destinationStatusesType = 'Google_Service_ShoppingContent_ProductStatusDestinationStatus'; protected $destinationStatusesDataType = 'array'; + public $googleExpirationDate; public $kind; + public $lastUpdateDate; public $link; public $productId; public $title; + public function setCreationDate($creationDate) + { + $this->creationDate = $creationDate; + } + public function getCreationDate() + { + return $this->creationDate; + } public function setDataQualityIssues($dataQualityIssues) { $this->dataQualityIssues = $dataQualityIssues; @@ -3696,6 +5287,14 @@ class Google_Service_ShoppingContent_ProductStatus extends Google_Collection { return $this->destinationStatuses; } + public function setGoogleExpirationDate($googleExpirationDate) + { + $this->googleExpirationDate = $googleExpirationDate; + } + public function getGoogleExpirationDate() + { + return $this->googleExpirationDate; + } public function setKind($kind) { $this->kind = $kind; @@ -3704,6 +5303,14 @@ class Google_Service_ShoppingContent_ProductStatus extends Google_Collection { return $this->kind; } + public function setLastUpdateDate($lastUpdateDate) + { + $this->lastUpdateDate = $lastUpdateDate; + } + public function getLastUpdateDate() + { + return $this->lastUpdateDate; + } public function setLink($link) { $this->link = $link; @@ -3738,6 +5345,7 @@ class Google_Service_ShoppingContent_ProductStatusDataQualityIssue extends Googl public $fetchStatus; public $id; public $location; + public $severity; public $timestamp; public $valueOnLandingPage; public $valueProvided; @@ -3775,6 +5383,14 @@ class Google_Service_ShoppingContent_ProductStatusDataQualityIssue extends Googl { return $this->location; } + public function setSeverity($severity) + { + $this->severity = $severity; + } + public function getSeverity() + { + return $this->severity; + } public function setTimestamp($timestamp) { $this->timestamp = $timestamp; @@ -4307,3 +5923,29 @@ class Google_Service_ShoppingContent_ProductstatusesListResponse extends Google_ return $this->resources; } } + +class Google_Service_ShoppingContent_Weight extends Google_Model +{ + protected $internal_gapi_mappings = array( + ); + public $unit; + public $value; + + + public function setUnit($unit) + { + $this->unit = $unit; + } + public function getUnit() + { + return $this->unit; + } + public function setValue($value) + { + $this->value = $value; + } + public function getValue() + { + return $this->value; + } +} diff --git a/lib/google/src/Google/Service/SiteVerification.php b/lib/google/src/Google/Service/SiteVerification.php index 3ba2f2d7bbd..1b9cb673113 100644 --- a/lib/google/src/Google/Service/SiteVerification.php +++ b/lib/google/src/Google/Service/SiteVerification.php @@ -48,6 +48,7 @@ class Google_Service_SiteVerification extends Google_Service public function __construct(Google_Client $client) { parent::__construct($client); + $this->rootUrl = 'https://www.googleapis.com/'; $this->servicePath = 'siteVerification/v1/'; $this->version = 'v1'; $this->serviceName = 'siteVerification'; diff --git a/lib/google/src/Google/Service/Spectrum.php b/lib/google/src/Google/Service/Spectrum.php index 24fcd246074..e71de15f590 100644 --- a/lib/google/src/Google/Service/Spectrum.php +++ b/lib/google/src/Google/Service/Spectrum.php @@ -43,6 +43,7 @@ class Google_Service_Spectrum extends Google_Service public function __construct(Google_Client $client) { parent::__construct($client); + $this->rootUrl = 'https://www.googleapis.com/'; $this->servicePath = 'spectrum/v1explorer/paws/'; $this->version = 'v1explorer'; $this->serviceName = 'spectrum'; diff --git a/lib/google/src/Google/Service/Storage.php b/lib/google/src/Google/Service/Storage.php index a0a67430991..ca6ccb26309 100644 --- a/lib/google/src/Google/Service/Storage.php +++ b/lib/google/src/Google/Service/Storage.php @@ -59,6 +59,7 @@ class Google_Service_Storage extends Google_Service public function __construct(Google_Client $client) { parent::__construct($client); + $this->rootUrl = 'https://www.googleapis.com/'; $this->servicePath = 'storage/v1/'; $this->version = 'v1'; $this->serviceName = 'storage'; @@ -216,6 +217,10 @@ class Google_Service_Storage extends Google_Service 'location' => 'query', 'type' => 'string', ), + 'predefinedDefaultObjectAcl' => array( + 'location' => 'query', + 'type' => 'string', + ), ), ),'list' => array( 'path' => 'b', @@ -230,6 +235,10 @@ class Google_Service_Storage extends Google_Service 'location' => 'query', 'type' => 'string', ), + 'prefix' => array( + 'location' => 'query', + 'type' => 'string', + ), 'projection' => array( 'location' => 'query', 'type' => 'string', @@ -248,10 +257,18 @@ class Google_Service_Storage extends Google_Service 'type' => 'string', 'required' => true, ), + 'projection' => array( + 'location' => 'query', + 'type' => 'string', + ), 'ifMetagenerationMatch' => array( 'location' => 'query', 'type' => 'string', ), + 'predefinedDefaultObjectAcl' => array( + 'location' => 'query', + 'type' => 'string', + ), 'predefinedAcl' => array( 'location' => 'query', 'type' => 'string', @@ -260,10 +277,6 @@ class Google_Service_Storage extends Google_Service 'location' => 'query', 'type' => 'string', ), - 'projection' => array( - 'location' => 'query', - 'type' => 'string', - ), ), ),'update' => array( 'path' => 'b/{bucket}', @@ -274,10 +287,18 @@ class Google_Service_Storage extends Google_Service 'type' => 'string', 'required' => true, ), + 'projection' => array( + 'location' => 'query', + 'type' => 'string', + ), 'ifMetagenerationMatch' => array( 'location' => 'query', 'type' => 'string', ), + 'predefinedDefaultObjectAcl' => array( + 'location' => 'query', + 'type' => 'string', + ), 'predefinedAcl' => array( 'location' => 'query', 'type' => 'string', @@ -286,10 +307,6 @@ class Google_Service_Storage extends Google_Service 'location' => 'query', 'type' => 'string', ), - 'projection' => array( - 'location' => 'query', - 'type' => 'string', - ), ), ), ) @@ -846,6 +863,83 @@ class Google_Service_Storage extends Google_Service 'type' => 'string', ), ), + ),'rewrite' => array( + 'path' => 'b/{sourceBucket}/o/{sourceObject}/rewriteTo/b/{destinationBucket}/o/{destinationObject}', + 'httpMethod' => 'POST', + 'parameters' => array( + 'sourceBucket' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'sourceObject' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'destinationBucket' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'destinationObject' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'ifSourceGenerationNotMatch' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'ifGenerationNotMatch' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'rewriteToken' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'ifSourceMetagenerationNotMatch' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'ifMetagenerationMatch' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'sourceGeneration' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'destinationPredefinedAcl' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'ifSourceGenerationMatch' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'maxBytesRewrittenPerCall' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'ifSourceMetagenerationMatch' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'ifGenerationMatch' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'ifMetagenerationNotMatch' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'projection' => array( + 'location' => 'query', + 'type' => 'string', + ), + ), ),'update' => array( 'path' => 'b/{bucket}/o/{object}', 'httpMethod' => 'PUT', @@ -1109,6 +1203,8 @@ class Google_Service_Storage_Buckets_Resource extends Google_Service_Resource * @opt_param string projection Set of properties to return. Defaults to noAcl, * unless the bucket resource specifies acl or defaultObjectAcl properties, when * it defaults to full. + * @opt_param string predefinedDefaultObjectAcl Apply a predefined set of + * default object access controls to this bucket. * @return Google_Service_Storage_Bucket */ public function insert($project, Google_Service_Storage_Bucket $postBody, $optParams = array()) @@ -1126,6 +1222,8 @@ class Google_Service_Storage_Buckets_Resource extends Google_Service_Resource * * @opt_param string pageToken A previously-returned page token representing * part of the larger set of results to view. + * @opt_param string prefix Filter results to buckets whose names begin with + * this prefix. * @opt_param string projection Set of properties to return. Defaults to noAcl. * @opt_param string maxResults Maximum number of buckets to return. * @return Google_Service_Storage_Buckets @@ -1144,15 +1242,17 @@ class Google_Service_Storage_Buckets_Resource extends Google_Service_Resource * @param Google_Bucket $postBody * @param array $optParams Optional parameters. * + * @opt_param string projection Set of properties to return. Defaults to full. * @opt_param string ifMetagenerationMatch Makes the return of the bucket * metadata conditional on whether the bucket's current metageneration matches * the given value. + * @opt_param string predefinedDefaultObjectAcl Apply a predefined set of + * default object access controls to this bucket. * @opt_param string predefinedAcl Apply a predefined set of access controls to * this bucket. * @opt_param string ifMetagenerationNotMatch Makes the return of the bucket * metadata conditional on whether the bucket's current metageneration does not * match the given value. - * @opt_param string projection Set of properties to return. Defaults to full. * @return Google_Service_Storage_Bucket */ public function patch($bucket, Google_Service_Storage_Bucket $postBody, $optParams = array()) @@ -1169,15 +1269,17 @@ class Google_Service_Storage_Buckets_Resource extends Google_Service_Resource * @param Google_Bucket $postBody * @param array $optParams Optional parameters. * + * @opt_param string projection Set of properties to return. Defaults to full. * @opt_param string ifMetagenerationMatch Makes the return of the bucket * metadata conditional on whether the bucket's current metageneration matches * the given value. + * @opt_param string predefinedDefaultObjectAcl Apply a predefined set of + * default object access controls to this bucket. * @opt_param string predefinedAcl Apply a predefined set of access controls to * this bucket. * @opt_param string ifMetagenerationNotMatch Makes the return of the bucket * metadata conditional on whether the bucket's current metageneration does not * match the given value. - * @opt_param string projection Set of properties to return. Defaults to full. * @return Google_Service_Storage_Bucket */ public function update($bucket, Google_Service_Storage_Bucket $postBody, $optParams = array()) @@ -1511,8 +1613,8 @@ class Google_Service_Storage_Objects_Resource extends Google_Service_Resource } /** - * Copies an object to a specified location. Optionally overrides metadata. - * (objects.copy) + * Copies a source object to a destination object. Optionally overrides + * metadata. (objects.copy) * * @param string $sourceBucket Name of the bucket in which to find the source * object. @@ -1661,13 +1763,13 @@ class Google_Service_Storage_Objects_Resource extends Google_Service_Resource * @param array $optParams Optional parameters. * * @opt_param string projection Set of properties to return. Defaults to noAcl. - * @opt_param bool versions If true, lists all versions of a file as distinct - * results. + * @opt_param bool versions If true, lists all versions of an object as distinct + * results. The default is false. For more information, see Object Versioning. * @opt_param string prefix Filter results to objects whose names begin with * this prefix. * @opt_param string maxResults Maximum number of items plus prefixes to return. * As duplicate prefixes are omitted, fewer total results may be returned than - * requested. + * requested. The default value of this parameter is 1,000 items. * @opt_param string pageToken A previously-returned page token representing * part of the larger set of results to view. * @opt_param string delimiter Returns results in a directory-like mode. items @@ -1715,6 +1817,70 @@ class Google_Service_Storage_Objects_Resource extends Google_Service_Resource return $this->call('patch', array($params), "Google_Service_Storage_StorageObject"); } + /** + * Rewrites a source object to a destination object. Optionally overrides + * metadata. (objects.rewrite) + * + * @param string $sourceBucket Name of the bucket in which to find the source + * object. + * @param string $sourceObject Name of the source object. + * @param string $destinationBucket Name of the bucket in which to store the new + * object. Overrides the provided object metadata's bucket value, if any. + * @param string $destinationObject Name of the new object. Required when the + * object metadata is not otherwise provided. Overrides the object metadata's + * name value, if any. + * @param Google_StorageObject $postBody + * @param array $optParams Optional parameters. + * + * @opt_param string ifSourceGenerationNotMatch Makes the operation conditional + * on whether the source object's generation does not match the given value. + * @opt_param string ifGenerationNotMatch Makes the operation conditional on + * whether the destination object's current generation does not match the given + * value. + * @opt_param string rewriteToken Include this field (from the previous rewrite + * response) on each rewrite request after the first one, until the rewrite + * response 'done' flag is true. Calls that provide a rewriteToken can omit all + * other request fields, but if included those fields must match the values + * provided in the first rewrite request. + * @opt_param string ifSourceMetagenerationNotMatch Makes the operation + * conditional on whether the source object's current metageneration does not + * match the given value. + * @opt_param string ifMetagenerationMatch Makes the operation conditional on + * whether the destination object's current metageneration matches the given + * value. + * @opt_param string sourceGeneration If present, selects a specific revision of + * the source object (as opposed to the latest version, the default). + * @opt_param string destinationPredefinedAcl Apply a predefined set of access + * controls to the destination object. + * @opt_param string ifSourceGenerationMatch Makes the operation conditional on + * whether the source object's generation matches the given value. + * @opt_param string maxBytesRewrittenPerCall The maximum number of bytes that + * will be rewritten per rewrite request. Most callers shouldn't need to specify + * this parameter - it is primarily in place to support testing. If specified + * the value must be an integral multiple of 1 MiB (1048576). Also, this only + * applies to requests where the source and destination span locations and/or + * storage classes. Finally, this value must not change across rewrite calls + * else you'll get an error that the rewriteToken is invalid. + * @opt_param string ifSourceMetagenerationMatch Makes the operation conditional + * on whether the source object's current metageneration matches the given + * value. + * @opt_param string ifGenerationMatch Makes the operation conditional on + * whether the destination object's current generation matches the given value. + * @opt_param string ifMetagenerationNotMatch Makes the operation conditional on + * whether the destination object's current metageneration does not match the + * given value. + * @opt_param string projection Set of properties to return. Defaults to noAcl, + * unless the object resource specifies the acl property, when it defaults to + * full. + * @return Google_Service_Storage_RewriteResponse + */ + public function rewrite($sourceBucket, $sourceObject, $destinationBucket, $destinationObject, Google_Service_Storage_StorageObject $postBody, $optParams = array()) + { + $params = array('sourceBucket' => $sourceBucket, 'sourceObject' => $sourceObject, 'destinationBucket' => $destinationBucket, 'destinationObject' => $destinationObject, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('rewrite', array($params), "Google_Service_Storage_RewriteResponse"); + } + /** * Updates an object's metadata. (objects.update) * @@ -1753,13 +1919,13 @@ class Google_Service_Storage_Objects_Resource extends Google_Service_Resource * @param array $optParams Optional parameters. * * @opt_param string projection Set of properties to return. Defaults to noAcl. - * @opt_param bool versions If true, lists all versions of a file as distinct - * results. + * @opt_param bool versions If true, lists all versions of an object as distinct + * results. The default is false. For more information, see Object Versioning. * @opt_param string prefix Filter results to objects whose names begin with * this prefix. * @opt_param string maxResults Maximum number of items plus prefixes to return. * As duplicate prefixes are omitted, fewer total results may be returned than - * requested. + * requested. The default value of this parameter is 1,000 items. * @opt_param string pageToken A previously-returned page token representing * part of the larger set of results to view. * @opt_param string delimiter Returns results in a directory-like mode. items @@ -2824,6 +2990,69 @@ class Google_Service_Storage_Objects extends Google_Collection } } +class Google_Service_Storage_RewriteResponse extends Google_Model +{ + protected $internal_gapi_mappings = array( + ); + public $done; + public $kind; + public $objectSize; + protected $resourceType = 'Google_Service_Storage_StorageObject'; + protected $resourceDataType = ''; + public $rewriteToken; + public $totalBytesRewritten; + + + public function setDone($done) + { + $this->done = $done; + } + public function getDone() + { + return $this->done; + } + public function setKind($kind) + { + $this->kind = $kind; + } + public function getKind() + { + return $this->kind; + } + public function setObjectSize($objectSize) + { + $this->objectSize = $objectSize; + } + public function getObjectSize() + { + return $this->objectSize; + } + public function setResource(Google_Service_Storage_StorageObject $resource) + { + $this->resource = $resource; + } + public function getResource() + { + return $this->resource; + } + public function setRewriteToken($rewriteToken) + { + $this->rewriteToken = $rewriteToken; + } + public function getRewriteToken() + { + return $this->rewriteToken; + } + public function setTotalBytesRewritten($totalBytesRewritten) + { + $this->totalBytesRewritten = $totalBytesRewritten; + } + public function getTotalBytesRewritten() + { + return $this->totalBytesRewritten; + } +} + class Google_Service_Storage_StorageObject extends Google_Collection { protected $collection_key = 'acl'; diff --git a/lib/google/src/Google/Service/TagManager.php b/lib/google/src/Google/Service/TagManager.php index d09db631f40..ebc9228eacc 100644 --- a/lib/google/src/Google/Service/TagManager.php +++ b/lib/google/src/Google/Service/TagManager.php @@ -71,6 +71,7 @@ class Google_Service_TagManager extends Google_Service public function __construct(Google_Client $client) { parent::__construct($client); + $this->rootUrl = 'https://www.googleapis.com/'; $this->servicePath = 'tagmanager/v1/'; $this->version = 'v1'; $this->serviceName = 'tagmanager'; diff --git a/lib/google/src/Google/Service/Taskqueue.php b/lib/google/src/Google/Service/Taskqueue.php index 84fb3ca41d2..1fee8b35af5 100644 --- a/lib/google/src/Google/Service/Taskqueue.php +++ b/lib/google/src/Google/Service/Taskqueue.php @@ -49,6 +49,7 @@ class Google_Service_Taskqueue extends Google_Service public function __construct(Google_Client $client) { parent::__construct($client); + $this->rootUrl = 'https://www.googleapis.com/'; $this->servicePath = 'taskqueue/v1beta2/projects/'; $this->version = 'v1beta2'; $this->serviceName = 'taskqueue'; diff --git a/lib/google/src/Google/Service/Tasks.php b/lib/google/src/Google/Service/Tasks.php index 48c04d8a9a2..39986322ef3 100644 --- a/lib/google/src/Google/Service/Tasks.php +++ b/lib/google/src/Google/Service/Tasks.php @@ -49,6 +49,7 @@ class Google_Service_Tasks extends Google_Service public function __construct(Google_Client $client) { parent::__construct($client); + $this->rootUrl = 'https://www.googleapis.com/'; $this->servicePath = 'tasks/v1/'; $this->version = 'v1'; $this->serviceName = 'tasks'; diff --git a/lib/google/src/Google/Service/Translate.php b/lib/google/src/Google/Service/Translate.php index 67d0ed25646..c7f027daaa5 100644 --- a/lib/google/src/Google/Service/Translate.php +++ b/lib/google/src/Google/Service/Translate.php @@ -45,6 +45,7 @@ class Google_Service_Translate extends Google_Service public function __construct(Google_Client $client) { parent::__construct($client); + $this->rootUrl = 'https://www.googleapis.com/'; $this->servicePath = 'language/translate/'; $this->version = 'v2'; $this->serviceName = 'translate'; diff --git a/lib/google/src/Google/Service/Urlshortener.php b/lib/google/src/Google/Service/Urlshortener.php index a733bfa6467..d46bb8c4397 100644 --- a/lib/google/src/Google/Service/Urlshortener.php +++ b/lib/google/src/Google/Service/Urlshortener.php @@ -23,7 +23,7 @@ * *

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

* * @author Google, Inc. @@ -45,6 +45,7 @@ class Google_Service_Urlshortener extends Google_Service public function __construct(Google_Client $client) { parent::__construct($client); + $this->rootUrl = 'https://www.googleapis.com/'; $this->servicePath = 'urlshortener/v1/'; $this->version = 'v1'; $this->serviceName = 'urlshortener'; diff --git a/lib/google/src/Google/Service/Webfonts.php b/lib/google/src/Google/Service/Webfonts.php index 4bf7bb20709..85b56b91965 100644 --- a/lib/google/src/Google/Service/Webfonts.php +++ b/lib/google/src/Google/Service/Webfonts.php @@ -43,6 +43,7 @@ class Google_Service_Webfonts extends Google_Service public function __construct(Google_Client $client) { parent::__construct($client); + $this->rootUrl = 'https://www.googleapis.com/'; $this->servicePath = 'webfonts/v1/'; $this->version = 'v1'; $this->serviceName = 'webfonts'; diff --git a/lib/google/src/Google/Service/Webmasters.php b/lib/google/src/Google/Service/Webmasters.php index 8e6f015b81c..8f332cad214 100644 --- a/lib/google/src/Google/Service/Webmasters.php +++ b/lib/google/src/Google/Service/Webmasters.php @@ -23,7 +23,7 @@ * *

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

* * @author Google, Inc. @@ -37,6 +37,7 @@ class Google_Service_Webmasters extends Google_Service const WEBMASTERS_READONLY = "https://www.googleapis.com/auth/webmasters.readonly"; + public $searchanalytics; public $sitemaps; public $sites; public $urlcrawlerrorscounts; @@ -51,10 +52,31 @@ class Google_Service_Webmasters extends Google_Service public function __construct(Google_Client $client) { parent::__construct($client); + $this->rootUrl = 'https://www.googleapis.com/'; $this->servicePath = 'webmasters/v3/'; $this->version = 'v3'; $this->serviceName = 'webmasters'; + $this->searchanalytics = new Google_Service_Webmasters_Searchanalytics_Resource( + $this, + $this->serviceName, + 'searchanalytics', + array( + 'methods' => array( + 'query' => array( + 'path' => 'sites/{siteUrl}/searchAnalytics/query', + 'httpMethod' => 'POST', + 'parameters' => array( + 'siteUrl' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ), + ) + ) + ); $this->sitemaps = new Google_Service_Webmasters_Sitemaps_Resource( $this, $this->serviceName, @@ -284,6 +306,43 @@ class Google_Service_Webmasters extends Google_Service } +/** + * The "searchanalytics" collection of methods. + * Typical usage is: + * + * $webmastersService = new Google_Service_Webmasters(...); + * $searchanalytics = $webmastersService->searchanalytics; + * + */ +class Google_Service_Webmasters_Searchanalytics_Resource extends Google_Service_Resource +{ + + /** + * [LIMITED ACCESS] + * + * Query your data with filters and parameters that you define. Returns zero or + * more rows grouped by the row keys that you define. You must define a date + * range of one or more days. + * + * When date is one of the group by values, any days without data are omitted + * from the result list. If you need to know which days have data, issue a broad + * date range query grouped by date for any metric, and see which day rows are + * returned. (searchanalytics.query) + * + * @param string $siteUrl The site's URL, including protocol. For example: + * http://www.example.com/ + * @param Google_SearchAnalyticsQueryRequest $postBody + * @param array $optParams Optional parameters. + * @return Google_Service_Webmasters_SearchAnalyticsQueryResponse + */ + public function query($siteUrl, Google_Service_Webmasters_SearchAnalyticsQueryRequest $postBody, $optParams = array()) + { + $params = array('siteUrl' => $siteUrl, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('query', array($params), "Google_Service_Webmasters_SearchAnalyticsQueryResponse"); + } +} + /** * The "sitemaps" collection of methods. * Typical usage is: @@ -298,10 +357,10 @@ class Google_Service_Webmasters_Sitemaps_Resource extends Google_Service_Resourc /** * Deletes a sitemap from this site. (sitemaps.delete) * - * @param string $siteUrl The site's URL, including protocol, for example - * 'http://www.example.com/' - * @param string $feedpath The URL of the actual sitemap (for example - * http://www.example.com/sitemap.xml). + * @param string $siteUrl The site's URL, including protocol. For example: + * http://www.example.com/ + * @param string $feedpath The URL of the actual sitemap. For example: + * http://www.example.com/sitemap.xml * @param array $optParams Optional parameters. */ public function delete($siteUrl, $feedpath, $optParams = array()) @@ -314,10 +373,10 @@ class Google_Service_Webmasters_Sitemaps_Resource extends Google_Service_Resourc /** * Retrieves information about a specific sitemap. (sitemaps.get) * - * @param string $siteUrl The site's URL, including protocol, for example - * 'http://www.example.com/' - * @param string $feedpath The URL of the actual sitemap (for example - * http://www.example.com/sitemap.xml). + * @param string $siteUrl The site's URL, including protocol. For example: + * http://www.example.com/ + * @param string $feedpath The URL of the actual sitemap. For example: + * http://www.example.com/sitemap.xml * @param array $optParams Optional parameters. * @return Google_Service_Webmasters_WmxSitemap */ @@ -329,13 +388,16 @@ class Google_Service_Webmasters_Sitemaps_Resource extends Google_Service_Resourc } /** - * Lists sitemaps uploaded to the site. (sitemaps.listSitemaps) + * Lists the sitemaps-entries submitted for this site, or included in the + * sitemap index file (if sitemapIndex is specified in the request). + * (sitemaps.listSitemaps) * - * @param string $siteUrl The site's URL, including protocol, for example - * 'http://www.example.com/' + * @param string $siteUrl The site's URL, including protocol. For example: + * http://www.example.com/ * @param array $optParams Optional parameters. * - * @opt_param string sitemapIndex A URL of a site's sitemap index. + * @opt_param string sitemapIndex A URL of a site's sitemap index. For example: + * http://www.example.com/sitemapindex.xml * @return Google_Service_Webmasters_SitemapsListResponse */ public function listSitemaps($siteUrl, $optParams = array()) @@ -348,9 +410,10 @@ class Google_Service_Webmasters_Sitemaps_Resource extends Google_Service_Resourc /** * Submits a sitemap for a site. (sitemaps.submit) * - * @param string $siteUrl The site's URL, including protocol, for example - * 'http://www.example.com/' - * @param string $feedpath The URL of the sitemap to add. + * @param string $siteUrl The site's URL, including protocol. For example: + * http://www.example.com/ + * @param string $feedpath The URL of the sitemap to add. For example: + * http://www.example.com/sitemap.xml * @param array $optParams Optional parameters. */ public function submit($siteUrl, $feedpath, $optParams = array()) @@ -389,8 +452,8 @@ class Google_Service_Webmasters_Sites_Resource extends Google_Service_Resource * Removes a site from the set of the user's Webmaster Tools sites. * (sites.delete) * - * @param string $siteUrl The site's URL, including protocol, for example - * 'http://www.example.com/' + * @param string $siteUrl The URI of the property as defined in Search Console. + * Examples: http://www.example.com/ or android-app://com.example/ * @param array $optParams Optional parameters. */ public function delete($siteUrl, $optParams = array()) @@ -403,8 +466,8 @@ class Google_Service_Webmasters_Sites_Resource extends Google_Service_Resource /** * Retrieves information about specific site. (sites.get) * - * @param string $siteUrl The site's URL, including protocol, for example - * 'http://www.example.com/' + * @param string $siteUrl The URI of the property as defined in Search Console. + * Examples: http://www.example.com/ or android-app://com.example/ * @param array $optParams Optional parameters. * @return Google_Service_Webmasters_WmxSite */ @@ -416,7 +479,7 @@ class Google_Service_Webmasters_Sites_Resource extends Google_Service_Resource } /** - * Lists your Webmaster Tools sites. (sites.listSites) + * Lists the user's Webmaster Tools sites. (sites.listSites) * * @param array $optParams Optional parameters. * @return Google_Service_Webmasters_SitesListResponse @@ -444,14 +507,14 @@ class Google_Service_Webmasters_Urlcrawlerrorscounts_Resource extends Google_Ser * Retrieves a time series of the number of URL crawl errors per error category * and platform. (urlcrawlerrorscounts.query) * - * @param string $siteUrl The site's URL, including protocol, for example - * 'http://www.example.com/' + * @param string $siteUrl The site's URL, including protocol. For example: + * http://www.example.com/ * @param array $optParams Optional parameters. * - * @opt_param string category The crawl error category, for example - * 'serverError'. If not specified, we return results for all categories. + * @opt_param string category The crawl error category. For example: + * serverError. If not specified, returns results for all categories. * @opt_param string platform The user agent type (platform) that made the - * request, for example 'web'. If not specified, we return results for all + * request. For example: web. If not specified, returns results for all * platforms. * @opt_param bool latestCountsOnly If true, returns only the latest crawl error * counts. @@ -480,14 +543,16 @@ class Google_Service_Webmasters_Urlcrawlerrorssamples_Resource extends Google_Se * Retrieves details about crawl errors for a site's sample URL. * (urlcrawlerrorssamples.get) * - * @param string $siteUrl The site's URL, including protocol, for example - * 'http://www.example.com/' - * @param string $url The relative path (without the site) of the sample URL; - * must be one of the URLs returned by list - * @param string $category The crawl error category, for example - * 'authPermissions' - * @param string $platform The user agent type (platform) that made the request, - * for example 'web' + * @param string $siteUrl The site's URL, including protocol. For example: + * http://www.example.com/ + * @param string $url The relative path (without the site) of the sample URL. It + * must be one of the URLs returned by list(). For example, for the URL + * https://www.example.com/pagename on the site https://www.example.com/, the + * url value is pagename + * @param string $category The crawl error category. For example: + * authPermissions + * @param string $platform The user agent type (platform) that made the request. + * For example: web * @param array $optParams Optional parameters. * @return Google_Service_Webmasters_UrlCrawlErrorsSample */ @@ -502,12 +567,12 @@ class Google_Service_Webmasters_Urlcrawlerrorssamples_Resource extends Google_Se * Lists a site's sample URLs for the specified crawl error category and * platform. (urlcrawlerrorssamples.listUrlcrawlerrorssamples) * - * @param string $siteUrl The site's URL, including protocol, for example - * 'http://www.example.com/' - * @param string $category The crawl error category, for example - * 'authPermissions' - * @param string $platform The user agent type (platform) that made the request, - * for example 'web' + * @param string $siteUrl The site's URL, including protocol. For example: + * http://www.example.com/ + * @param string $category The crawl error category. For example: + * authPermissions + * @param string $platform The user agent type (platform) that made the request. + * For example: web * @param array $optParams Optional parameters. * @return Google_Service_Webmasters_UrlCrawlErrorsSamplesListResponse */ @@ -522,14 +587,16 @@ class Google_Service_Webmasters_Urlcrawlerrorssamples_Resource extends Google_Se * Marks the provided site's sample URL as fixed, and removes it from the * samples list. (urlcrawlerrorssamples.markAsFixed) * - * @param string $siteUrl The site's URL, including protocol, for example - * 'http://www.example.com/' - * @param string $url The relative path (without the site) of the sample URL; - * must be one of the URLs returned by list - * @param string $category The crawl error category, for example - * 'authPermissions' - * @param string $platform The user agent type (platform) that made the request, - * for example 'web' + * @param string $siteUrl The site's URL, including protocol. For example: + * http://www.example.com/ + * @param string $url The relative path (without the site) of the sample URL. It + * must be one of the URLs returned by list(). For example, for the URL + * https://www.example.com/pagename on the site https://www.example.com/, the + * url value is pagename + * @param string $category The crawl error category. For example: + * authPermissions + * @param string $platform The user agent type (platform) that made the request. + * For example: web * @param array $optParams Optional parameters. */ public function markAsFixed($siteUrl, $url, $category, $platform, $optParams = array()) @@ -543,6 +610,224 @@ class Google_Service_Webmasters_Urlcrawlerrorssamples_Resource extends Google_Se +class Google_Service_Webmasters_ApiDataRow extends Google_Collection +{ + protected $collection_key = 'keys'; + protected $internal_gapi_mappings = array( + ); + public $clicks; + public $ctr; + public $impressions; + public $keys; + public $position; + + + public function setClicks($clicks) + { + $this->clicks = $clicks; + } + public function getClicks() + { + return $this->clicks; + } + public function setCtr($ctr) + { + $this->ctr = $ctr; + } + public function getCtr() + { + return $this->ctr; + } + public function setImpressions($impressions) + { + $this->impressions = $impressions; + } + public function getImpressions() + { + return $this->impressions; + } + public function setKeys($keys) + { + $this->keys = $keys; + } + public function getKeys() + { + return $this->keys; + } + public function setPosition($position) + { + $this->position = $position; + } + public function getPosition() + { + return $this->position; + } +} + +class Google_Service_Webmasters_ApiDimensionFilter extends Google_Model +{ + protected $internal_gapi_mappings = array( + ); + public $dimension; + public $expression; + public $operator; + + + public function setDimension($dimension) + { + $this->dimension = $dimension; + } + public function getDimension() + { + return $this->dimension; + } + public function setExpression($expression) + { + $this->expression = $expression; + } + public function getExpression() + { + return $this->expression; + } + public function setOperator($operator) + { + $this->operator = $operator; + } + public function getOperator() + { + return $this->operator; + } +} + +class Google_Service_Webmasters_ApiDimensionFilterGroup extends Google_Collection +{ + protected $collection_key = 'filters'; + protected $internal_gapi_mappings = array( + ); + protected $filtersType = 'Google_Service_Webmasters_ApiDimensionFilter'; + protected $filtersDataType = 'array'; + public $groupType; + + + public function setFilters($filters) + { + $this->filters = $filters; + } + public function getFilters() + { + return $this->filters; + } + public function setGroupType($groupType) + { + $this->groupType = $groupType; + } + public function getGroupType() + { + return $this->groupType; + } +} + +class Google_Service_Webmasters_SearchAnalyticsQueryRequest extends Google_Collection +{ + protected $collection_key = 'dimensions'; + protected $internal_gapi_mappings = array( + ); + public $aggregationType; + protected $dimensionFilterGroupsType = 'Google_Service_Webmasters_ApiDimensionFilterGroup'; + protected $dimensionFilterGroupsDataType = 'array'; + public $dimensions; + public $endDate; + public $rowLimit; + public $searchType; + public $startDate; + + + public function setAggregationType($aggregationType) + { + $this->aggregationType = $aggregationType; + } + public function getAggregationType() + { + return $this->aggregationType; + } + public function setDimensionFilterGroups($dimensionFilterGroups) + { + $this->dimensionFilterGroups = $dimensionFilterGroups; + } + public function getDimensionFilterGroups() + { + return $this->dimensionFilterGroups; + } + public function setDimensions($dimensions) + { + $this->dimensions = $dimensions; + } + public function getDimensions() + { + return $this->dimensions; + } + public function setEndDate($endDate) + { + $this->endDate = $endDate; + } + public function getEndDate() + { + return $this->endDate; + } + public function setRowLimit($rowLimit) + { + $this->rowLimit = $rowLimit; + } + public function getRowLimit() + { + return $this->rowLimit; + } + public function setSearchType($searchType) + { + $this->searchType = $searchType; + } + public function getSearchType() + { + return $this->searchType; + } + public function setStartDate($startDate) + { + $this->startDate = $startDate; + } + public function getStartDate() + { + return $this->startDate; + } +} + +class Google_Service_Webmasters_SearchAnalyticsQueryResponse extends Google_Collection +{ + protected $collection_key = 'rows'; + protected $internal_gapi_mappings = array( + ); + public $responseAggregationType; + protected $rowsType = 'Google_Service_Webmasters_ApiDataRow'; + protected $rowsDataType = 'array'; + + + public function setResponseAggregationType($responseAggregationType) + { + $this->responseAggregationType = $responseAggregationType; + } + public function getResponseAggregationType() + { + return $this->responseAggregationType; + } + public function setRows($rows) + { + $this->rows = $rows; + } + public function getRows() + { + return $this->rows; + } +} + class Google_Service_Webmasters_SitemapsListResponse extends Google_Collection { protected $collection_key = 'sitemap'; diff --git a/lib/google/src/Google/Service/YouTube.php b/lib/google/src/Google/Service/YouTube.php index 498e9ff26fa..386936097b2 100644 --- a/lib/google/src/Google/Service/YouTube.php +++ b/lib/google/src/Google/Service/YouTube.php @@ -33,6 +33,9 @@ class Google_Service_YouTube extends Google_Service /** Manage your YouTube account. */ const YOUTUBE = "https://www.googleapis.com/auth/youtube"; + /** Manage your YouTube account. */ + const YOUTUBE_FORCE_SSL = + "https://www.googleapis.com/auth/youtube.force-ssl"; /** View your YouTube account. */ const YOUTUBE_READONLY = "https://www.googleapis.com/auth/youtube.readonly"; @@ -47,9 +50,12 @@ class Google_Service_YouTube extends Google_Service "https://www.googleapis.com/auth/youtubepartner-channel-audit"; public $activities; + public $captions; public $channelBanners; public $channelSections; public $channels; + public $commentThreads; + public $comments; public $guideCategories; public $i18nLanguages; public $i18nRegions; @@ -60,6 +66,7 @@ class Google_Service_YouTube extends Google_Service public $search; public $subscriptions; public $thumbnails; + public $videoAbuseReportReasons; public $videoCategories; public $videos; public $watermarks; @@ -73,6 +80,7 @@ class Google_Service_YouTube extends Google_Service public function __construct(Google_Client $client) { parent::__construct($client); + $this->rootUrl = 'https://www.googleapis.com/'; $this->servicePath = 'youtube/v3/'; $this->version = 'v3'; $this->serviceName = 'youtube'; @@ -139,6 +147,151 @@ class Google_Service_YouTube extends Google_Service ) ) ); + $this->captions = new Google_Service_YouTube_Captions_Resource( + $this, + $this->serviceName, + 'captions', + array( + 'methods' => array( + 'delete' => array( + 'path' => 'captions', + 'httpMethod' => 'DELETE', + 'parameters' => array( + 'id' => array( + 'location' => 'query', + 'type' => 'string', + 'required' => true, + ), + 'onBehalfOfContentOwner' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'onBehalfOf' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'debugProjectIdOverride' => array( + 'location' => 'query', + 'type' => 'string', + ), + ), + ),'download' => array( + 'path' => 'captions/{id}', + 'httpMethod' => 'GET', + 'parameters' => array( + 'id' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'onBehalfOfContentOwner' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'onBehalfOf' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'debugProjectIdOverride' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'tfmt' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'tlang' => array( + 'location' => 'query', + 'type' => 'string', + ), + ), + ),'insert' => array( + 'path' => 'captions', + 'httpMethod' => 'POST', + 'parameters' => array( + 'part' => array( + 'location' => 'query', + 'type' => 'string', + 'required' => true, + ), + 'sync' => array( + 'location' => 'query', + 'type' => 'boolean', + ), + 'onBehalfOf' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'debugProjectIdOverride' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'onBehalfOfContentOwner' => array( + 'location' => 'query', + 'type' => 'string', + ), + ), + ),'list' => array( + 'path' => 'captions', + 'httpMethod' => 'GET', + 'parameters' => array( + 'part' => array( + 'location' => 'query', + 'type' => 'string', + 'required' => true, + ), + 'videoId' => array( + 'location' => 'query', + 'type' => 'string', + 'required' => true, + ), + 'onBehalfOfContentOwner' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'onBehalfOf' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'debugProjectIdOverride' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'id' => array( + 'location' => 'query', + 'type' => 'string', + ), + ), + ),'update' => array( + 'path' => 'captions', + 'httpMethod' => 'PUT', + 'parameters' => array( + 'part' => array( + 'location' => 'query', + 'type' => 'string', + 'required' => true, + ), + 'sync' => array( + 'location' => 'query', + 'type' => 'boolean', + ), + 'onBehalfOf' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'debugProjectIdOverride' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'onBehalfOfContentOwner' => array( + 'location' => 'query', + 'type' => 'string', + ), + ), + ), + ) + ) + ); $this->channelBanners = new Google_Service_YouTube_ChannelBanners_Resource( $this, $this->serviceName, @@ -213,14 +366,18 @@ class Google_Service_YouTube extends Google_Service 'location' => 'query', 'type' => 'string', ), - 'id' => array( - 'location' => 'query', - 'type' => 'string', - ), 'mine' => array( 'location' => 'query', 'type' => 'boolean', ), + 'hl' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'id' => array( + 'location' => 'query', + 'type' => 'string', + ), ), ),'update' => array( 'path' => 'channelSections', @@ -287,6 +444,10 @@ class Google_Service_YouTube extends Google_Service 'location' => 'query', 'type' => 'boolean', ), + 'hl' => array( + 'location' => 'query', + 'type' => 'string', + ), 'categoryId' => array( 'location' => 'query', 'type' => 'string', @@ -310,6 +471,189 @@ class Google_Service_YouTube extends Google_Service ) ) ); + $this->commentThreads = new Google_Service_YouTube_CommentThreads_Resource( + $this, + $this->serviceName, + 'commentThreads', + array( + 'methods' => array( + 'insert' => array( + 'path' => 'commentThreads', + 'httpMethod' => 'POST', + 'parameters' => array( + 'part' => array( + 'location' => 'query', + 'type' => 'string', + 'required' => true, + ), + 'shareOnGooglePlus' => array( + 'location' => 'query', + 'type' => 'boolean', + ), + ), + ),'list' => array( + 'path' => 'commentThreads', + 'httpMethod' => 'GET', + 'parameters' => array( + 'part' => array( + 'location' => 'query', + 'type' => 'string', + 'required' => true, + ), + 'searchTerms' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'allThreadsRelatedToChannelId' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'channelId' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'videoId' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'maxResults' => array( + 'location' => 'query', + 'type' => 'integer', + ), + 'id' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'pageToken' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'moderationStatus' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'textFormat' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'order' => array( + 'location' => 'query', + 'type' => 'string', + ), + ), + ),'update' => array( + 'path' => 'commentThreads', + 'httpMethod' => 'PUT', + 'parameters' => array( + 'part' => array( + 'location' => 'query', + 'type' => 'string', + 'required' => true, + ), + ), + ), + ) + ) + ); + $this->comments = new Google_Service_YouTube_Comments_Resource( + $this, + $this->serviceName, + 'comments', + array( + 'methods' => array( + 'delete' => array( + 'path' => 'comments', + 'httpMethod' => 'DELETE', + 'parameters' => array( + 'id' => array( + 'location' => 'query', + 'type' => 'string', + 'required' => true, + ), + ), + ),'insert' => array( + 'path' => 'comments', + 'httpMethod' => 'POST', + 'parameters' => array( + 'part' => array( + 'location' => 'query', + 'type' => 'string', + 'required' => true, + ), + ), + ),'list' => array( + 'path' => 'comments', + 'httpMethod' => 'GET', + 'parameters' => array( + 'part' => array( + 'location' => 'query', + 'type' => 'string', + 'required' => true, + ), + 'maxResults' => array( + 'location' => 'query', + 'type' => 'integer', + ), + 'pageToken' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'parentId' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'textFormat' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'id' => array( + 'location' => 'query', + 'type' => 'string', + ), + ), + ),'markAsSpam' => array( + 'path' => 'comments/markAsSpam', + 'httpMethod' => 'POST', + 'parameters' => array( + 'id' => array( + 'location' => 'query', + 'type' => 'string', + 'required' => true, + ), + ), + ),'setModerationStatus' => array( + 'path' => 'comments/setModerationStatus', + 'httpMethod' => 'POST', + 'parameters' => array( + 'id' => array( + 'location' => 'query', + 'type' => 'string', + 'required' => true, + ), + 'moderationStatus' => array( + 'location' => 'query', + 'type' => 'string', + 'required' => true, + ), + 'banAuthor' => array( + 'location' => 'query', + 'type' => 'boolean', + ), + ), + ),'update' => array( + 'path' => 'comments', + 'httpMethod' => 'PUT', + 'parameters' => array( + 'part' => array( + 'location' => 'query', + 'type' => 'string', + 'required' => true, + ), + ), + ), + ) + ) + ); $this->guideCategories = new Google_Service_YouTube_GuideCategories_Resource( $this, $this->serviceName, @@ -829,6 +1173,10 @@ class Google_Service_YouTube extends Google_Service 'location' => 'query', 'type' => 'string', ), + 'hl' => array( + 'location' => 'query', + 'type' => 'string', + ), 'id' => array( 'location' => 'query', 'type' => 'string', @@ -875,6 +1223,10 @@ class Google_Service_YouTube extends Google_Service 'location' => 'query', 'type' => 'string', ), + 'forDeveloper' => array( + 'location' => 'query', + 'type' => 'boolean', + ), 'videoSyndicated' => array( 'location' => 'query', 'type' => 'string', @@ -955,6 +1307,10 @@ class Google_Service_YouTube extends Google_Service 'location' => 'query', 'type' => 'string', ), + 'relevanceLanguage' => array( + 'location' => 'query', + 'type' => 'string', + ), 'forMine' => array( 'location' => 'query', 'type' => 'boolean', @@ -1088,6 +1444,30 @@ class Google_Service_YouTube extends Google_Service ) ) ); + $this->videoAbuseReportReasons = new Google_Service_YouTube_VideoAbuseReportReasons_Resource( + $this, + $this->serviceName, + 'videoAbuseReportReasons', + array( + 'methods' => array( + 'list' => array( + 'path' => 'videoAbuseReportReasons', + 'httpMethod' => 'GET', + 'parameters' => array( + 'part' => array( + 'location' => 'query', + 'type' => 'string', + 'required' => true, + ), + 'hl' => array( + 'location' => 'query', + 'type' => 'string', + ), + ), + ), + ) + ) + ); $this->videoCategories = new Google_Service_YouTube_VideoCategories_Resource( $this, $this->serviceName, @@ -1221,6 +1601,14 @@ class Google_Service_YouTube extends Google_Service 'location' => 'query', 'type' => 'string', ), + 'debugProjectIdOverride' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'hl' => array( + 'location' => 'query', + 'type' => 'string', + ), 'myRating' => array( 'location' => 'query', 'type' => 'string', @@ -1244,6 +1632,11 @@ class Google_Service_YouTube extends Google_Service 'type' => 'string', 'required' => true, ), + ), + ),'reportAbuse' => array( + 'path' => 'videos/reportAbuse', + 'httpMethod' => 'POST', + 'parameters' => array( 'onBehalfOfContentOwner' => array( 'location' => 'query', 'type' => 'string', @@ -1334,9 +1727,6 @@ class Google_Service_YouTube_Activities_Resource extends Google_Service_Resource * @param string $part The part parameter serves two purposes in this operation. * It identifies the properties that the write operation will set as well as the * properties that the API response will include. - * - * The part names that you can include in the parameter value are snippet and - * contentDetails. * @param Google_Activity $postBody * @param array $optParams Optional parameters. * @return Google_Service_YouTube_Activity @@ -1357,15 +1747,13 @@ class Google_Service_YouTube_Activities_Resource extends Google_Service_Resource * * @param string $part The part parameter specifies a comma-separated list of * one or more activity resource properties that the API response will include. - * The part names that you can include in the parameter value are id, snippet, - * and contentDetails. * * If the parameter identifies a property that contains child properties, the - * child properties will be included in the response. For example, in a activity - * resource, the snippet property contains other properties that identify the - * type of activity, a display title for the activity, and so forth. If you set - * part=snippet, the API response will also contain all of those nested - * properties. + * child properties will be included in the response. For example, in an + * activity resource, the snippet property contains other properties that + * identify the type of activity, a display title for the activity, and so + * forth. If you set part=snippet, the API response will also contain all of + * those nested properties. * @param array $optParams Optional parameters. * * @opt_param string regionCode The regionCode parameter instructs the API to @@ -1409,6 +1797,220 @@ class Google_Service_YouTube_Activities_Resource extends Google_Service_Resource } } +/** + * The "captions" collection of methods. + * Typical usage is: + * + * $youtubeService = new Google_Service_YouTube(...); + * $captions = $youtubeService->captions; + * + */ +class Google_Service_YouTube_Captions_Resource extends Google_Service_Resource +{ + + /** + * Deletes a specified caption track. (captions.delete) + * + * @param string $id The id parameter identifies the caption track that is being + * deleted. The value is a caption track ID as identified by the id property in + * a caption resource. + * @param array $optParams Optional parameters. + * + * @opt_param string onBehalfOfContentOwner Note: This parameter is intended + * exclusively for YouTube content partners. + * + * The onBehalfOfContentOwner parameter indicates that the request's + * authorization credentials identify a YouTube CMS user who is acting on behalf + * of the content owner specified in the parameter value. This parameter is + * intended for YouTube content partners that own and manage many different + * YouTube channels. It allows content owners to authenticate once and get + * access to all their video and channel data, without having to provide + * authentication credentials for each individual channel. The actual CMS + * account that the user authenticates with must be linked to the specified + * YouTube content owner. + * @opt_param string onBehalfOf ID of the Google+ Page for the channel that the + * request is be on behalf of + * @opt_param string debugProjectIdOverride The debugProjectIdOverride parameter + * should be used for mimicking a request for a certain project ID + */ + public function delete($id, $optParams = array()) + { + $params = array('id' => $id); + $params = array_merge($params, $optParams); + return $this->call('delete', array($params)); + } + + /** + * Downloads a caption track. The caption track is returned in its original + * format unless the request specifies a value for the tfmt parameter and in its + * original language unless the request specifies a value for the tlang + * parameter. (captions.download) + * + * @param string $id The id parameter identifies the caption track that is being + * retrieved. The value is a caption track ID as identified by the id property + * in a caption resource. + * @param array $optParams Optional parameters. + * + * @opt_param string onBehalfOfContentOwner Note: This parameter is intended + * exclusively for YouTube content partners. + * + * The onBehalfOfContentOwner parameter indicates that the request's + * authorization credentials identify a YouTube CMS user who is acting on behalf + * of the content owner specified in the parameter value. This parameter is + * intended for YouTube content partners that own and manage many different + * YouTube channels. It allows content owners to authenticate once and get + * access to all their video and channel data, without having to provide + * authentication credentials for each individual channel. The actual CMS + * account that the user authenticates with must be linked to the specified + * YouTube content owner. + * @opt_param string onBehalfOf ID of the Google+ Page for the channel that the + * request is be on behalf of + * @opt_param string debugProjectIdOverride The debugProjectIdOverride parameter + * should be used for mimicking a request for a certain project ID + * @opt_param string tfmt The tfmt parameter specifies that the caption track + * should be returned in a specific format. If the parameter is not included in + * the request, the track is returned in its original format. + * @opt_param string tlang The tlang parameter specifies that the API response + * should return a translation of the specified caption track. The parameter + * value is an ISO 639-1 two-letter language code that identifies the desired + * caption language. The translation is generated by using machine translation, + * such as Google Translate. + */ + public function download($id, $optParams = array()) + { + $params = array('id' => $id); + $params = array_merge($params, $optParams); + return $this->call('download', array($params)); + } + + /** + * Uploads a caption track. (captions.insert) + * + * @param string $part The part parameter specifies the caption resource parts + * that the API response will include. Set the parameter value to snippet. + * @param Google_Caption $postBody + * @param array $optParams Optional parameters. + * + * @opt_param bool sync The sync parameter indicates whether YouTube should + * automatically synchronize the caption file with the audio track of the video. + * If you set the value to true, YouTube will disregard any time codes that are + * in the uploaded caption file and generate new time codes for the captions. + * + * You should set the sync parameter to true if you are uploading a transcript, + * which has no time codes, or if you suspect the time codes in your file are + * incorrect and want YouTube to try to fix them. + * @opt_param string onBehalfOf ID of the Google+ Page for the channel that the + * request is be on behalf of + * @opt_param string debugProjectIdOverride The debugProjectIdOverride parameter + * should be used for mimicking a request for a certain project ID. + * @opt_param string onBehalfOfContentOwner Note: This parameter is intended + * exclusively for YouTube content partners. + * + * The onBehalfOfContentOwner parameter indicates that the request's + * authorization credentials identify a YouTube CMS user who is acting on behalf + * of the content owner specified in the parameter value. This parameter is + * intended for YouTube content partners that own and manage many different + * YouTube channels. It allows content owners to authenticate once and get + * access to all their video and channel data, without having to provide + * authentication credentials for each individual channel. The actual CMS + * account that the user authenticates with must be linked to the specified + * YouTube content owner. + * @return Google_Service_YouTube_Caption + */ + public function insert($part, Google_Service_YouTube_Caption $postBody, $optParams = array()) + { + $params = array('part' => $part, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('insert', array($params), "Google_Service_YouTube_Caption"); + } + + /** + * Returns a list of caption tracks that are associated with a specified video. + * Note that the API response does not contain the actual captions and that the + * captions.download method provides the ability to retrieve a caption track. + * (captions.listCaptions) + * + * @param string $part The part parameter specifies a comma-separated list of + * one or more caption resource parts that the API response will include. The + * part names that you can include in the parameter value are id and snippet. + * @param string $videoId The videoId parameter specifies the YouTube video ID + * of the video for which the API should return caption tracks. + * @param array $optParams Optional parameters. + * + * @opt_param string onBehalfOfContentOwner Note: This parameter is intended + * exclusively for YouTube content partners. + * + * The onBehalfOfContentOwner parameter indicates that the request's + * authorization credentials identify a YouTube CMS user who is acting on behalf + * of the content owner specified in the parameter value. This parameter is + * intended for YouTube content partners that own and manage many different + * YouTube channels. It allows content owners to authenticate once and get + * access to all their video and channel data, without having to provide + * authentication credentials for each individual channel. The actual CMS + * account that the user authenticates with must be linked to the specified + * YouTube content owner. + * @opt_param string onBehalfOf ID of the Google+ Page for the channel that the + * request is on behalf of. + * @opt_param string debugProjectIdOverride The debugProjectIdOverride parameter + * should be used for mimicking a request for a certain project ID. + * @opt_param string id The id parameter specifies a comma-separated list of IDs + * that identify the caption resources that should be retrieved. Each ID must + * identify a caption track associated with the specified video. + * @return Google_Service_YouTube_CaptionListResponse + */ + public function listCaptions($part, $videoId, $optParams = array()) + { + $params = array('part' => $part, 'videoId' => $videoId); + $params = array_merge($params, $optParams); + return $this->call('list', array($params), "Google_Service_YouTube_CaptionListResponse"); + } + + /** + * Updates a caption track. When updating a caption track, you can change the + * track's draft status, upload a new caption file for the track, or both. + * (captions.update) + * + * @param string $part The part parameter serves two purposes in this operation. + * It identifies the properties that the write operation will set as well as the + * properties that the API response will include. Set the property value to + * snippet if you are updating the track's draft status. Otherwise, set the + * property value to id. + * @param Google_Caption $postBody + * @param array $optParams Optional parameters. + * + * @opt_param bool sync Note: The API server only processes the parameter value + * if the request contains an updated caption file. + * + * The sync parameter indicates whether YouTube should automatically synchronize + * the caption file with the audio track of the video. If you set the value to + * true, YouTube will automatically synchronize the caption track with the audio + * track. + * @opt_param string onBehalfOf ID of the Google+ Page for the channel that the + * request is be on behalf of + * @opt_param string debugProjectIdOverride The debugProjectIdOverride parameter + * should be used for mimicking a request for a certain project ID. + * @opt_param string onBehalfOfContentOwner Note: This parameter is intended + * exclusively for YouTube content partners. + * + * The onBehalfOfContentOwner parameter indicates that the request's + * authorization credentials identify a YouTube CMS user who is acting on behalf + * of the content owner specified in the parameter value. This parameter is + * intended for YouTube content partners that own and manage many different + * YouTube channels. It allows content owners to authenticate once and get + * access to all their video and channel data, without having to provide + * authentication credentials for each individual channel. The actual CMS + * account that the user authenticates with must be linked to the specified + * YouTube content owner. + * @return Google_Service_YouTube_Caption + */ + public function update($part, Google_Service_YouTube_Caption $postBody, $optParams = array()) + { + $params = array('part' => $part, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('update', array($params), "Google_Service_YouTube_Caption"); + } +} + /** * The "channelBanners" collection of methods. * Typical usage is: @@ -1578,12 +2180,19 @@ class Google_Service_YouTube_ChannelSections_Resource extends Google_Service_Res * owner. * @opt_param string channelId The channelId parameter specifies a YouTube * channel ID. The API will only return that channel's channelSections. + * @opt_param bool mine Set this parameter's value to true to retrieve a feed of + * the authenticated user's channelSections. + * @opt_param string hl The hl parameter indicates that the snippet.localized + * property values in the returned channelSection resources should be in the + * specified language if localized values for that language are available. For + * example, if the API request specifies hl=de, the snippet.localized properties + * in the API response will contain German titles if German titles are + * available. Channel owners can provide localized channel section titles using + * either the channelSections.insert or channelSections.update method. * @opt_param string id The id parameter specifies a comma-separated list of the * YouTube channelSection ID(s) for the resource(s) that are being retrieved. In * a channelSection resource, the id property specifies the YouTube * channelSection ID. - * @opt_param bool mine Set this parameter's value to true to retrieve a feed of - * the authenticated user's channelSections. * @return Google_Service_YouTube_ChannelSectionListResponse */ public function listChannelSections($part, $optParams = array()) @@ -1644,8 +2253,6 @@ class Google_Service_YouTube_Channels_Resource extends Google_Service_Resource * * @param string $part The part parameter specifies a comma-separated list of * one or more channel resource properties that the API response will include. - * The part names that you can include in the parameter value are id, snippet, - * contentDetails, statistics, topicDetails, and invideoPromotion. * * If the parameter identifies a property that contains child properties, the * child properties will be included in the response. For example, in a channel @@ -1654,19 +2261,25 @@ class Google_Service_YouTube_Channels_Resource extends Google_Service_Resource * will also contain all of those nested properties. * @param array $optParams Optional parameters. * - * @opt_param bool managedByMe Set this parameter's value to true to instruct - * the API to only return channels managed by the content owner that the - * onBehalfOfContentOwner parameter specifies. The user must be authenticated as - * a CMS account linked to the specified content owner and - * onBehalfOfContentOwner must be provided. - * @opt_param string onBehalfOfContentOwner The onBehalfOfContentOwner parameter - * indicates that the authenticated user is acting on behalf of the content - * owner specified in the parameter value. This parameter is intended for - * YouTube content partners that own and manage many different YouTube channels. - * It allows content owners to authenticate once and get access to all their - * video and channel data, without having to provide authentication credentials - * for each individual channel. The actual CMS account that the user - * authenticates with needs to be linked to the specified YouTube content owner. + * @opt_param bool managedByMe Note: This parameter is intended exclusively for + * YouTube content partners. + * + * Set this parameter's value to true to instruct the API to only return + * channels managed by the content owner that the onBehalfOfContentOwner + * parameter specifies. The user must be authenticated as a CMS account linked + * to the specified content owner and onBehalfOfContentOwner must be provided. + * @opt_param string onBehalfOfContentOwner Note: This parameter is intended + * exclusively for YouTube content partners. + * + * The onBehalfOfContentOwner parameter indicates that the request's + * authorization credentials identify a YouTube CMS user who is acting on behalf + * of the content owner specified in the parameter value. This parameter is + * intended for YouTube content partners that own and manage many different + * YouTube channels. It allows content owners to authenticate once and get + * access to all their video and channel data, without having to provide + * authentication credentials for each individual channel. The CMS account that + * the user authenticates with must be linked to the specified YouTube content + * owner. * @opt_param string forUsername The forUsername parameter specifies a YouTube * username, thereby requesting the channel associated with that username. * @opt_param bool mine Set this parameter's value to true to instruct the API @@ -1680,8 +2293,12 @@ class Google_Service_YouTube_Channels_Resource extends Google_Service_Resource * page in the result set that should be returned. In an API response, the * nextPageToken and prevPageToken properties identify other pages that could be * retrieved. - * @opt_param bool mySubscribers Set this parameter's value to true to retrieve - * a list of channels that subscribed to the authenticated user's channel. + * @opt_param bool mySubscribers Use the subscriptions.list method and its + * mySubscribers parameter to retrieve a list of subscribers to the + * authenticated user's channel. + * @opt_param string hl The hl parameter should be used for filter out the + * properties that are not in the given language. Used for the brandingSettings + * part. * @opt_param string categoryId The categoryId parameter specifies a YouTube * guide category, thereby requesting YouTube channels associated with that * category. @@ -1695,17 +2312,20 @@ class Google_Service_YouTube_Channels_Resource extends Google_Service_Resource } /** - * Updates a channel's metadata. (channels.update) + * Updates a channel's metadata. Note that this method currently only supports + * updates to the channel resource's brandingSettings and invideoPromotion + * objects and their child properties. (channels.update) * * @param string $part The part parameter serves two purposes in this operation. * It identifies the properties that the write operation will set as well as the * properties that the API response will include. * - * The part names that you can include in the parameter value are id and - * invideoPromotion. + * The API currently only allows the parameter value to be set to either + * brandingSettings or invideoPromotion. (You cannot update both of those parts + * with a single request.) * - * Note that this method will override the existing values for all of the - * mutable properties that are contained in any parts that the parameter value + * Note that this method overrides the existing values for all of the mutable + * properties that are contained in any parts that the parameter value * specifies. * @param Google_Channel $postBody * @param array $optParams Optional parameters. @@ -1728,6 +2348,259 @@ class Google_Service_YouTube_Channels_Resource extends Google_Service_Resource } } +/** + * The "commentThreads" collection of methods. + * Typical usage is: + * + * $youtubeService = new Google_Service_YouTube(...); + * $commentThreads = $youtubeService->commentThreads; + * + */ +class Google_Service_YouTube_CommentThreads_Resource extends Google_Service_Resource +{ + + /** + * Creates a new top-level comment. To add a reply to an existing comment, use + * the comments.insert method instead. (commentThreads.insert) + * + * @param string $part The part parameter identifies the properties that the API + * response will include. Set the parameter value to snippet. The snippet part + * has a quota cost of 2 units. + * @param Google_CommentThread $postBody + * @param array $optParams Optional parameters. + * + * @opt_param bool shareOnGooglePlus The shareOnGooglePlus parameter indicates + * whether the top-level comment and any replies that are made to that comment + * should also be posted to the author's Google+ profile. + * @return Google_Service_YouTube_CommentThread + */ + public function insert($part, Google_Service_YouTube_CommentThread $postBody, $optParams = array()) + { + $params = array('part' => $part, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('insert', array($params), "Google_Service_YouTube_CommentThread"); + } + + /** + * Returns a list of comment threads that match the API request parameters. + * (commentThreads.listCommentThreads) + * + * @param string $part The part parameter specifies a comma-separated list of + * one or more commentThread resource properties that the API response will + * include. + * @param array $optParams Optional parameters. + * + * @opt_param string searchTerms The searchTerms parameter instructs the API to + * limit the API response to only contain comments that contain the specified + * search terms. + * + * Note: This parameter is not supported for use in conjunction with the id + * parameter. + * @opt_param string allThreadsRelatedToChannelId The + * allThreadsRelatedToChannelId parameter instructs the API to return all + * comment threads associated with the specified channel. The response can + * include comments about the channel or about the channel's videos. + * @opt_param string channelId The channelId parameter instructs the API to + * return comment threads containing comments about the specified channel. (The + * response will not include comments left on videos that the channel uploaded.) + * @opt_param string videoId The videoId parameter instructs the API to return + * comment threads associated with the specified video ID. + * @opt_param string maxResults The maxResults parameter specifies the maximum + * number of items that should be returned in the result set. + * + * Note: This parameter is not supported for use in conjunction with the id + * parameter. + * @opt_param string id The id parameter specifies a comma-separated list of + * comment thread IDs for the resources that should be retrieved. + * @opt_param string pageToken The pageToken parameter identifies a specific + * page in the result set that should be returned. In an API response, the + * nextPageToken property identifies the next page of the result that can be + * retrieved. + * + * Note: This parameter is not supported for use in conjunction with the id + * parameter. + * @opt_param string moderationStatus Set this parameter to limit the returned + * comment threads to a particular moderation state. + * + * Note: This parameter is not supported for use in conjunction with the id + * parameter. + * @opt_param string textFormat Set this parameter's value to html or plainText + * to instruct the API to return the comments left by users in html formatted or + * in plain text. + * @opt_param string order The order parameter specifies the order in which the + * API response should list comment threads. Valid values are: - time - Comment + * threads are ordered by time. This is the default behavior. - relevance - + * Comment threads are ordered by relevance.Note: This parameter is not + * supported for use in conjunction with the id parameter. + * @return Google_Service_YouTube_CommentThreadListResponse + */ + public function listCommentThreads($part, $optParams = array()) + { + $params = array('part' => $part); + $params = array_merge($params, $optParams); + return $this->call('list', array($params), "Google_Service_YouTube_CommentThreadListResponse"); + } + + /** + * Modifies the top-level comment in a comment thread. (commentThreads.update) + * + * @param string $part The part parameter specifies a comma-separated list of + * commentThread resource properties that the API response will include. You + * must at least include the snippet part in the parameter value since that part + * contains all of the properties that the API request can update. + * @param Google_CommentThread $postBody + * @param array $optParams Optional parameters. + * @return Google_Service_YouTube_CommentThread + */ + public function update($part, Google_Service_YouTube_CommentThread $postBody, $optParams = array()) + { + $params = array('part' => $part, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('update', array($params), "Google_Service_YouTube_CommentThread"); + } +} + +/** + * The "comments" collection of methods. + * Typical usage is: + * + * $youtubeService = new Google_Service_YouTube(...); + * $comments = $youtubeService->comments; + * + */ +class Google_Service_YouTube_Comments_Resource extends Google_Service_Resource +{ + + /** + * Deletes a comment. (comments.delete) + * + * @param string $id The id parameter specifies the comment ID for the resource + * that is being deleted. + * @param array $optParams Optional parameters. + */ + public function delete($id, $optParams = array()) + { + $params = array('id' => $id); + $params = array_merge($params, $optParams); + return $this->call('delete', array($params)); + } + + /** + * Creates a reply to an existing comment. Note: To create a top-level comment, + * use the commentThreads.insert method. (comments.insert) + * + * @param string $part The part parameter identifies the properties that the API + * response will include. Set the parameter value to snippet. The snippet part + * has a quota cost of 2 units. + * @param Google_Comment $postBody + * @param array $optParams Optional parameters. + * @return Google_Service_YouTube_Comment + */ + public function insert($part, Google_Service_YouTube_Comment $postBody, $optParams = array()) + { + $params = array('part' => $part, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('insert', array($params), "Google_Service_YouTube_Comment"); + } + + /** + * Returns a list of comments that match the API request parameters. + * (comments.listComments) + * + * @param string $part The part parameter specifies a comma-separated list of + * one or more comment resource properties that the API response will include. + * @param array $optParams Optional parameters. + * + * @opt_param string maxResults The maxResults parameter specifies the maximum + * number of items that should be returned in the result set. + * + * Note: This parameter is not supported for use in conjunction with the id + * parameter. + * @opt_param string pageToken The pageToken parameter identifies a specific + * page in the result set that should be returned. In an API response, the + * nextPageToken property identifies the next page of the result that can be + * retrieved. + * + * Note: This parameter is not supported for use in conjunction with the id + * parameter. + * @opt_param string parentId The parentId parameter specifies the ID of the + * comment for which replies should be retrieved. + * + * Note: YouTube currently supports replies only for top-level comments. + * However, replies to replies may be supported in the future. + * @opt_param string textFormat This parameter indicates whether the API should + * return comments formatted as HTML or as plain text. + * @opt_param string id The id parameter specifies a comma-separated list of + * comment IDs for the resources that are being retrieved. In a comment + * resource, the id property specifies the comment's ID. + * @return Google_Service_YouTube_CommentListResponse + */ + public function listComments($part, $optParams = array()) + { + $params = array('part' => $part); + $params = array_merge($params, $optParams); + return $this->call('list', array($params), "Google_Service_YouTube_CommentListResponse"); + } + + /** + * Expresses the caller's opinion that one or more comments should be flagged as + * spam. (comments.markAsSpam) + * + * @param string $id The id parameter specifies a comma-separated list of IDs of + * comments that the caller believes should be classified as spam. + * @param array $optParams Optional parameters. + */ + public function markAsSpam($id, $optParams = array()) + { + $params = array('id' => $id); + $params = array_merge($params, $optParams); + return $this->call('markAsSpam', array($params)); + } + + /** + * Sets the moderation status of one or more comments. The API request must be + * authorized by the owner of the channel or video associated with the comments. + * (comments.setModerationStatus) + * + * @param string $id The id parameter specifies a comma-separated list of IDs + * that identify the comments for which you are updating the moderation status. + * @param string $moderationStatus Identifies the new moderation status of the + * specified comments. + * @param array $optParams Optional parameters. + * + * @opt_param bool banAuthor The banAuthor parameter lets you indicate that you + * want to automatically reject any additional comments written by the comment's + * author. Set the parameter value to true to ban the author. + * + * Note: This parameter is only valid if the moderationStatus parameter is also + * set to rejected. + */ + public function setModerationStatus($id, $moderationStatus, $optParams = array()) + { + $params = array('id' => $id, 'moderationStatus' => $moderationStatus); + $params = array_merge($params, $optParams); + return $this->call('setModerationStatus', array($params)); + } + + /** + * Modifies a comment. (comments.update) + * + * @param string $part The part parameter identifies the properties that the API + * response will include. You must at least include the snippet part in the + * parameter value since that part contains all of the properties that the API + * request can update. + * @param Google_Comment $postBody + * @param array $optParams Optional parameters. + * @return Google_Service_YouTube_Comment + */ + public function update($part, Google_Service_YouTube_Comment $postBody, $optParams = array()) + { + $params = array('part' => $part, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('update', array($params), "Google_Service_YouTube_Comment"); + } +} + /** * The "guideCategories" collection of methods. * Typical usage is: @@ -1743,16 +2616,9 @@ class Google_Service_YouTube_GuideCategories_Resource extends Google_Service_Res * Returns a list of categories that can be associated with YouTube channels. * (guideCategories.listGuideCategories) * - * @param string $part The part parameter specifies a comma-separated list of - * one or more guideCategory resource properties that the API response will - * include. The part names that you can include in the parameter value are id - * and snippet. - * - * If the parameter identifies a property that contains child properties, the - * child properties will be included in the response. For example, in a - * guideCategory resource, the snippet property contains other properties, such - * as the category's title. If you set part=snippet, the API response will also - * contain all of those nested properties. + * @param string $part The part parameter specifies the guideCategory resource + * properties that the API response will include. Set the parameter value to + * snippet. * @param array $optParams Optional parameters. * * @opt_param string regionCode The regionCode parameter instructs the API to @@ -1786,12 +2652,12 @@ class Google_Service_YouTube_I18nLanguages_Resource extends Google_Service_Resou { /** - * Returns a list of supported languages. (i18nLanguages.listI18nLanguages) + * Returns a list of application languages that the YouTube website supports. + * (i18nLanguages.listI18nLanguages) * - * @param string $part The part parameter specifies a comma-separated list of - * one or more i18nLanguage resource properties that the API response will - * include. The part names that you can include in the parameter value are id - * and snippet. + * @param string $part The part parameter specifies the i18nLanguage resource + * properties that the API response will include. Set the parameter value to + * snippet. * @param array $optParams Optional parameters. * * @opt_param string hl The hl parameter specifies the language that should be @@ -1818,12 +2684,12 @@ class Google_Service_YouTube_I18nRegions_Resource extends Google_Service_Resourc { /** - * Returns a list of supported regions. (i18nRegions.listI18nRegions) + * Returns a list of content regions that the YouTube website supports. + * (i18nRegions.listI18nRegions) * - * @param string $part The part parameter specifies a comma-separated list of - * one or more i18nRegion resource properties that the API response will - * include. The part names that you can include in the parameter value are id - * and snippet. + * @param string $part The part parameter specifies the i18nRegion resource + * properties that the API response will include. Set the parameter value to + * snippet. * @param array $optParams Optional parameters. * * @opt_param string hl The hl parameter specifies the language that should be @@ -1851,7 +2717,8 @@ class Google_Service_YouTube_LiveBroadcasts_Resource extends Google_Service_Reso /** * Binds a YouTube broadcast to a stream or removes an existing binding between - * a broadcast and a stream. A broadcast can only be bound to one video stream. + * a broadcast and a stream. A broadcast can only be bound to one video stream, + * though a video stream may be bound to more than one broadcast. * (liveBroadcasts.bind) * * @param string $id The id parameter specifies the unique ID of the broadcast @@ -2418,8 +3285,7 @@ class Google_Service_YouTube_LiveStreams_Resource extends Google_Service_Resourc * only return streams owned by the authenticated user. Set the parameter value * to true to only retrieve your own streams. * @opt_param string maxResults The maxResults parameter specifies the maximum - * number of items that should be returned in the result set. Acceptable values - * are 0 to 50, inclusive. The default value is 5. + * number of items that should be returned in the result set. * @opt_param string pageToken The pageToken parameter identifies a specific * page in the result set that should be returned. In an API response, the * nextPageToken and prevPageToken properties identify other pages that could be @@ -2528,9 +3394,6 @@ class Google_Service_YouTube_PlaylistItems_Resource extends Google_Service_Resou * @param string $part The part parameter serves two purposes in this operation. * It identifies the properties that the write operation will set as well as the * properties that the API response will include. - * - * The part names that you can include in the parameter value are snippet, - * contentDetails, and status. * @param Google_PlaylistItem $postBody * @param array $optParams Optional parameters. * @@ -2563,8 +3426,7 @@ class Google_Service_YouTube_PlaylistItems_Resource extends Google_Service_Resou * * @param string $part The part parameter specifies a comma-separated list of * one or more playlistItem resource properties that the API response will - * include. The part names that you can include in the parameter value are id, - * snippet, contentDetails, and status. + * include. * * If the parameter identifies a property that contains child properties, the * child properties will be included in the response. For example, in a @@ -2618,9 +3480,6 @@ class Google_Service_YouTube_PlaylistItems_Resource extends Google_Service_Resou * It identifies the properties that the write operation will set as well as the * properties that the API response will include. * - * The part names that you can include in the parameter value are snippet, - * contentDetails, and status. - * * Note that this method will override the existing values for all of the * mutable properties that are contained in any parts that the parameter value * specifies. For example, a playlist item can specify a start time and end @@ -2688,9 +3547,6 @@ class Google_Service_YouTube_Playlists_Resource extends Google_Service_Resource * @param string $part The part parameter serves two purposes in this operation. * It identifies the properties that the write operation will set as well as the * properties that the API response will include. - * - * The part names that you can include in the parameter value are snippet and - * status. * @param Google_Playlist $postBody * @param array $optParams Optional parameters. * @@ -2742,8 +3598,6 @@ class Google_Service_YouTube_Playlists_Resource extends Google_Service_Resource * * @param string $part The part parameter specifies a comma-separated list of * one or more playlist resource properties that the API response will include. - * The part names that you can include in the parameter value are id, snippet, - * status, and contentDetails. * * If the parameter identifies a property that contains child properties, the * child properties will be included in the response. For example, in a playlist @@ -2793,6 +3647,8 @@ class Google_Service_YouTube_Playlists_Resource extends Google_Service_Resource * page in the result set that should be returned. In an API response, the * nextPageToken and prevPageToken properties identify other pages that could be * retrieved. + * @opt_param string hl The hl parameter should be used for filter out the + * properties that are not in the given language. Used for the snippet part. * @opt_param string id The id parameter specifies a comma-separated list of the * YouTube playlist ID(s) for the resource(s) that are being retrieved. In a * playlist resource, the id property specifies the playlist's YouTube playlist @@ -2814,17 +3670,12 @@ class Google_Service_YouTube_Playlists_Resource extends Google_Service_Resource * It identifies the properties that the write operation will set as well as the * properties that the API response will include. * - * The part names that you can include in the parameter value are snippet and - * status. - * - * Note that this method will override the existing values for all of the - * mutable properties that are contained in any parts that the parameter value - * specifies. For example, a playlist's privacy setting is contained in the - * status part. As such, if your request is updating a private playlist, and the - * request's part parameter value includes the status part, the playlist's - * privacy setting will be updated to whatever value the request body specifies. - * If the request body does not specify a value, the existing privacy setting - * will be removed and the playlist will revert to the default privacy setting. + * Note that this method will override the existing values for mutable + * properties that are contained in any parts that the request body specifies. + * For example, a playlist's description is contained in the snippet part, which + * must be included in the request body. If the request does not specify a value + * for the snippet.description property, the playlist's existing description + * will be deleted. * @param Google_Playlist $postBody * @param array $optParams Optional parameters. * @@ -2869,27 +3720,30 @@ class Google_Service_YouTube_Search_Resource extends Google_Service_Resource * * @param string $part The part parameter specifies a comma-separated list of * one or more search resource properties that the API response will include. - * The part names that you can include in the parameter value are id and - * snippet. - * - * If the parameter identifies a property that contains child properties, the - * child properties will be included in the response. For example, in a search - * result, the snippet property contains other properties that identify the - * result's title, description, and so forth. If you set part=snippet, the API - * response will also contain all of those nested properties. + * Set the parameter value to snippet. * @param array $optParams Optional parameters. * * @opt_param string eventType The eventType parameter restricts a search to - * broadcast events. + * broadcast events. If you specify a value for this parameter, you must also + * set the type parameter's value to video. * @opt_param string channelId The channelId parameter indicates that the API * response should only contain resources created by the channel + * @opt_param bool forDeveloper The forDeveloper parameter restricts the search + * to only retrieve videos uploaded via the developer's application or website. + * The API server uses the request's authorization credentials to identify the + * developer. Therefore, a developer can restrict results to videos uploaded + * through the developer's own app or website but not to videos uploaded through + * other apps or sites. * @opt_param string videoSyndicated The videoSyndicated parameter lets you to - * restrict a search to only videos that can be played outside youtube.com. + * restrict a search to only videos that can be played outside youtube.com. If + * you specify a value for this parameter, you must also set the type + * parameter's value to video. * @opt_param string channelType The channelType parameter lets you restrict a * search to a particular type of channel. * @opt_param string videoCaption The videoCaption parameter indicates whether * the API should filter video search results based on whether they have - * captions. + * captions. If you specify a value for this parameter, you must also set the + * type parameter's value to video. * @opt_param string publishedAfter The publishedAfter parameter indicates that * the API response should only contain resources created after the specified * time. The value is an RFC 3339 formatted date-time value @@ -2920,20 +3774,30 @@ class Google_Service_YouTube_Search_Resource extends Google_Service_Resource * @opt_param string regionCode The regionCode parameter instructs the API to * return search results for the specified country. The parameter value is an * ISO 3166-1 alpha-2 country code. - * @opt_param string location The location parameter restricts a search to - * videos that have a geographical location specified in their metadata. The - * value is a string that specifies geographic latitude/longitude coordinates - * e.g. (37.42307,-122.08427) - * @opt_param string locationRadius The locationRadius, in conjunction with the - * location parameter, defines a geographic area. If the geographic coordinates - * associated with a video fall within that area, then the video may be included - * in search results. This parameter value must be a floating point number - * followed by a measurement unit. Valid measurement units are m, km, ft, and - * mi. For example, valid parameter values include 1500m, 5km, 10000ft, and - * 0.75mi. The API does not support locationRadius parameter values larger than - * 1000 kilometers. + * @opt_param string location The location parameter, in conjunction with the + * locationRadius parameter, defines a circular geographic area and also + * restricts a search to videos that specify, in their metadata, a geographic + * location that falls within that area. The parameter value is a string that + * specifies latitude/longitude coordinates e.g. (37.42307,-122.08427). + * + * - The location parameter value identifies the point at the center of the + * area. - The locationRadius parameter specifies the maximum distance that the + * location associated with a video can be from that point for the video to + * still be included in the search results.The API returns an error if your + * request specifies a value for the location parameter but does not also + * specify a value for the locationRadius parameter. + * @opt_param string locationRadius The locationRadius parameter, in conjunction + * with the location parameter, defines a circular geographic area. + * + * The parameter value must be a floating point number followed by a measurement + * unit. Valid measurement units are m, km, ft, and mi. For example, valid + * parameter values include 1500m, 5km, 10000ft, and 0.75mi. The API does not + * support locationRadius parameter values larger than 1000 kilometers. + * + * Note: See the definition of the location parameter for more information. * @opt_param string videoType The videoType parameter lets you restrict a - * search to a particular type of videos. + * search to a particular type of videos. If you specify a value for this + * parameter, you must also set the type parameter's value to video. * @opt_param string type The type parameter restricts a search query to only * retrieve a particular type of resource. The value is a comma-separated list * of resource types. @@ -2945,11 +3809,13 @@ class Google_Service_YouTube_Search_Resource extends Google_Service_Resource * specified time. The value is an RFC 3339 formatted date-time value * (1970-01-01T00:00:00Z). * @opt_param string videoDimension The videoDimension parameter lets you - * restrict a search to only retrieve 2D or 3D videos. + * restrict a search to only retrieve 2D or 3D videos. If you specify a value + * for this parameter, you must also set the type parameter's value to video. * @opt_param string videoLicense The videoLicense parameter filters search * results to only include videos with a particular license. YouTube lets video * uploaders choose to attach either the Creative Commons license or the - * standard YouTube license to each of their videos. + * standard YouTube license to each of their videos. If you specify a value for + * this parameter, you must also set the type parameter's value to video. * @opt_param string maxResults The maxResults parameter specifies the maximum * number of items that should be returned in the result set. * @opt_param string relatedToVideoId The relatedToVideoId parameter retrieves a @@ -2959,19 +3825,40 @@ class Google_Service_YouTube_Search_Resource extends Google_Service_Resource * @opt_param string videoDefinition The videoDefinition parameter lets you * restrict a search to only include either high definition (HD) or standard * definition (SD) videos. HD videos are available for playback in at least - * 720p, though higher resolutions, like 1080p, might also be available. + * 720p, though higher resolutions, like 1080p, might also be available. If you + * specify a value for this parameter, you must also set the type parameter's + * value to video. * @opt_param string videoDuration The videoDuration parameter filters video - * search results based on their duration. + * search results based on their duration. If you specify a value for this + * parameter, you must also set the type parameter's value to video. + * @opt_param string relevanceLanguage The relevanceLanguage parameter instructs + * the API to return search results that are most relevant to the specified + * language. The parameter value is typically an ISO 639-1 two-letter language + * code. However, you should use the values zh-Hans for simplified Chinese and + * zh-Hant for traditional Chinese. Please note that results in other languages + * will still be returned if they are highly relevant to the search query term. * @opt_param bool forMine The forMine parameter restricts the search to only * retrieve videos owned by the authenticated user. If you set this parameter to * true, then the type parameter's value must also be set to video. * @opt_param string q The q parameter specifies the query term to search for. + * + * Your request can also use the Boolean NOT (-) and OR (|) operators to exclude + * videos or to find videos that are associated with one of several search + * terms. For example, to search for videos matching either "boating" or + * "sailing", set the q parameter value to boating|sailing. Similarly, to search + * for videos matching either "boating" or "sailing" but not "fishing", set the + * q parameter value to boating|sailing -fishing. Note that the pipe character + * must be URL-escaped when it is sent in your API request. The URL-escaped + * value for the pipe character is %7C. * @opt_param string safeSearch The safeSearch parameter indicates whether the * search results should include restricted content as well as standard content. * @opt_param string videoEmbeddable The videoEmbeddable parameter lets you to - * restrict a search to only videos that can be embedded into a webpage. + * restrict a search to only videos that can be embedded into a webpage. If you + * specify a value for this parameter, you must also set the type parameter's + * value to video. * @opt_param string videoCategoryId The videoCategoryId parameter filters video - * search results based on their category. + * search results based on their category. If you specify a value for this + * parameter, you must also set the type parameter's value to video. * @opt_param string order The order parameter specifies the method that will be * used to order resources in the API response. * @return Google_Service_YouTube_SearchListResponse @@ -3017,9 +3904,6 @@ class Google_Service_YouTube_Subscriptions_Resource extends Google_Service_Resou * @param string $part The part parameter serves two purposes in this operation. * It identifies the properties that the write operation will set as well as the * properties that the API response will include. - * - * The part names that you can include in the parameter value are snippet and - * contentDetails. * @param Google_Subscription $postBody * @param array $optParams Optional parameters. * @return Google_Service_YouTube_Subscription @@ -3037,8 +3921,7 @@ class Google_Service_YouTube_Subscriptions_Resource extends Google_Service_Resou * * @param string $part The part parameter specifies a comma-separated list of * one or more subscription resource properties that the API response will - * include. The part names that you can include in the parameter value are id, - * snippet, and contentDetails. + * include. * * If the parameter identifies a property that contains child properties, the * child properties will be included in the response. For example, in a @@ -3127,14 +4010,18 @@ class Google_Service_YouTube_Thumbnails_Resource extends Google_Service_Resource * which the custom video thumbnail is being provided. * @param array $optParams Optional parameters. * - * @opt_param string onBehalfOfContentOwner The onBehalfOfContentOwner parameter - * indicates that the authenticated user is acting on behalf of the content - * owner specified in the parameter value. This parameter is intended for - * YouTube content partners that own and manage many different YouTube channels. - * It allows content owners to authenticate once and get access to all their - * video and channel data, without having to provide authentication credentials - * for each individual channel. The actual CMS account that the user - * authenticates with needs to be linked to the specified YouTube content owner. + * @opt_param string onBehalfOfContentOwner Note: This parameter is intended + * exclusively for YouTube content partners. + * + * The onBehalfOfContentOwner parameter indicates that the request's + * authorization credentials identify a YouTube CMS user who is acting on behalf + * of the content owner specified in the parameter value. This parameter is + * intended for YouTube content partners that own and manage many different + * YouTube channels. It allows content owners to authenticate once and get + * access to all their video and channel data, without having to provide + * authentication credentials for each individual channel. The actual CMS + * account that the user authenticates with must be linked to the specified + * YouTube content owner. * @return Google_Service_YouTube_ThumbnailSetResponse */ public function set($videoId, $optParams = array()) @@ -3145,6 +4032,38 @@ class Google_Service_YouTube_Thumbnails_Resource extends Google_Service_Resource } } +/** + * The "videoAbuseReportReasons" collection of methods. + * Typical usage is: + * + * $youtubeService = new Google_Service_YouTube(...); + * $videoAbuseReportReasons = $youtubeService->videoAbuseReportReasons; + * + */ +class Google_Service_YouTube_VideoAbuseReportReasons_Resource extends Google_Service_Resource +{ + + /** + * Returns a list of abuse reasons that can be used for reporting abusive + * videos. (videoAbuseReportReasons.listVideoAbuseReportReasons) + * + * @param string $part The part parameter specifies the videoCategory resource + * parts that the API response will include. Supported values are id and + * snippet. + * @param array $optParams Optional parameters. + * + * @opt_param string hl The hl parameter specifies the language that should be + * used for text values in the API response. + * @return Google_Service_YouTube_VideoAbuseReportReasonListResponse + */ + public function listVideoAbuseReportReasons($part, $optParams = array()) + { + $params = array('part' => $part); + $params = array_merge($params, $optParams); + return $this->call('list', array($params), "Google_Service_YouTube_VideoAbuseReportReasonListResponse"); + } +} + /** * The "videoCategories" collection of methods. * Typical usage is: @@ -3161,7 +4080,7 @@ class Google_Service_YouTube_VideoCategories_Resource extends Google_Service_Res * (videoCategories.listVideoCategories) * * @param string $part The part parameter specifies the videoCategory resource - * parts that the API response will include. Supported values are id and + * properties that the API response will include. Set the parameter value to * snippet. * @param array $optParams Optional parameters. * @@ -3259,15 +4178,11 @@ class Google_Service_YouTube_Videos_Resource extends Google_Service_Resource * It identifies the properties that the write operation will set as well as the * properties that the API response will include. * - * The part names that you can include in the parameter value are snippet, - * contentDetails, fileDetails, liveStreamingDetails, player, processingDetails, - * recordingDetails, statistics, status, suggestions, and topicDetails. However, - * not all of those parts contain properties that can be set when setting or - * updating a video's metadata. For example, the statistics object encapsulates - * statistics that YouTube calculates for a video and does not contain values - * that you can set or modify. If the parameter value specifies a part that does - * not contain mutable values, that part will still be included in the API - * response. + * Note that not all parts contain properties that can be set when inserting or + * updating a video. For example, the statistics object encapsulates statistics + * that YouTube calculates for a video and does not contain values that you can + * set or modify. If the parameter value specifies a part that does not contain + * mutable values, that part will still be included in the API response. * @param Google_Video $postBody * @param array $optParams Optional parameters. * @@ -3305,8 +4220,12 @@ class Google_Service_YouTube_Videos_Resource extends Google_Service_Resource * value, without having to provide authentication credentials for each separate * channel. * @opt_param bool notifySubscribers The notifySubscribers parameter indicates - * whether YouTube should send notification to subscribers about the inserted - * video. + * whether YouTube should send a notification about the new video to users who + * subscribe to the video's channel. A parameter value of True indicates that + * subscribers will be notified of newly uploaded videos. However, a channel + * owner who is uploading many videos might prefer to set the value to False to + * avoid sending a notification about each new video to the channel's + * subscribers. * @opt_param bool autoLevels The autoLevels parameter indicates whether YouTube * should automatically enhance the video's lighting and color. * @return Google_Service_YouTube_Video @@ -3323,10 +4242,7 @@ class Google_Service_YouTube_Videos_Resource extends Google_Service_Resource * (videos.listVideos) * * @param string $part The part parameter specifies a comma-separated list of - * one or more video resource properties that the API response will include. The - * part names that you can include in the parameter value are id, snippet, - * contentDetails, fileDetails, liveStreamingDetails, player, processingDetails, - * recordingDetails, statistics, status, suggestions, and topicDetails. + * one or more video resource properties that the API response will include. * * If the parameter identifies a property that contains child properties, the * child properties will be included in the response. For example, in a video @@ -3372,6 +4288,17 @@ class Google_Service_YouTube_Videos_Resource extends Google_Service_Resource * Note: This parameter is supported for use in conjunction with the myRating * parameter, but it is not supported for use in conjunction with the id * parameter. + * @opt_param string debugProjectIdOverride The debugProjectIdOverride parameter + * should be used for mimicking a request for a certain project ID + * @opt_param string hl The hl parameter instructs the API to retrieve localized + * resource metadata for a specific application language that the YouTube + * website supports. The parameter value must be a language code included in the + * list returned by the i18nLanguages.list method. + * + * If localized resource details are available in that language, the resource's + * snippet.localized object will contain the localized values. However, if + * localized details are not available, the snippet.localized object will + * contain resource details in the resource's default language. * @opt_param string myRating Set this parameter's value to like or dislike to * instruct the API to only return videos liked or disliked by the authenticated * user. @@ -3395,6 +4322,19 @@ class Google_Service_YouTube_Videos_Resource extends Google_Service_Resource * video that is being rated or having its rating removed. * @param string $rating Specifies the rating to record. * @param array $optParams Optional parameters. + */ + public function rate($id, $rating, $optParams = array()) + { + $params = array('id' => $id, 'rating' => $rating); + $params = array_merge($params, $optParams); + return $this->call('rate', array($params)); + } + + /** + * Report abuse for a video. (videos.reportAbuse) + * + * @param Google_VideoAbuseReport $postBody + * @param array $optParams Optional parameters. * * @opt_param string onBehalfOfContentOwner Note: This parameter is intended * exclusively for YouTube content partners. @@ -3409,11 +4349,11 @@ class Google_Service_YouTube_Videos_Resource extends Google_Service_Resource * the user authenticates with must be linked to the specified YouTube content * owner. */ - public function rate($id, $rating, $optParams = array()) + public function reportAbuse(Google_Service_YouTube_VideoAbuseReport $postBody, $optParams = array()) { - $params = array('id' => $id, 'rating' => $rating); + $params = array('postBody' => $postBody); $params = array_merge($params, $optParams); - return $this->call('rate', array($params)); + return $this->call('reportAbuse', array($params)); } /** @@ -3423,10 +4363,6 @@ class Google_Service_YouTube_Videos_Resource extends Google_Service_Resource * It identifies the properties that the write operation will set as well as the * properties that the API response will include. * - * The part names that you can include in the parameter value are snippet, - * contentDetails, fileDetails, liveStreamingDetails, player, processingDetails, - * recordingDetails, statistics, status, suggestions, and topicDetails. - * * Note that this method will override the existing values for all of the * mutable properties that are contained in any parts that the parameter value * specifies. For example, a video's privacy setting is contained in the status @@ -3436,12 +4372,12 @@ class Google_Service_YouTube_Videos_Resource extends Google_Service_Resource * body does not specify a value, the existing privacy setting will be removed * and the video will revert to the default privacy setting. * - * In addition, not all of those parts contain properties that can be set when - * setting or updating a video's metadata. For example, the statistics object - * encapsulates statistics that YouTube calculates for a video and does not - * contain values that you can set or modify. If the parameter value specifies a - * part that does not contain mutable values, that part will still be included - * in the API response. + * In addition, not all parts contain properties that can be set when inserting + * or updating a video. For example, the statistics object encapsulates + * statistics that YouTube calculates for a video and does not contain values + * that you can set or modify. If the parameter value specifies a part that does + * not contain mutable values, that part will still be included in the API + * response. * @param Google_Video $postBody * @param array $optParams Optional parameters. * @@ -3482,19 +4418,23 @@ class Google_Service_YouTube_Watermarks_Resource extends Google_Service_Resource * Uploads a watermark image to YouTube and sets it for a channel. * (watermarks.set) * - * @param string $channelId The channelId parameter specifies a YouTube channel - * ID for which the watermark is being provided. + * @param string $channelId The channelId parameter specifies the YouTube + * channel ID for which the watermark is being provided. * @param Google_InvideoBranding $postBody * @param array $optParams Optional parameters. * - * @opt_param string onBehalfOfContentOwner The onBehalfOfContentOwner parameter - * indicates that the authenticated user is acting on behalf of the content - * owner specified in the parameter value. This parameter is intended for - * YouTube content partners that own and manage many different YouTube channels. - * It allows content owners to authenticate once and get access to all their - * video and channel data, without having to provide authentication credentials - * for each individual channel. The actual CMS account that the user - * authenticates with needs to be linked to the specified YouTube content owner. + * @opt_param string onBehalfOfContentOwner Note: This parameter is intended + * exclusively for YouTube content partners. + * + * The onBehalfOfContentOwner parameter indicates that the request's + * authorization credentials identify a YouTube CMS user who is acting on behalf + * of the content owner specified in the parameter value. This parameter is + * intended for YouTube content partners that own and manage many different + * YouTube channels. It allows content owners to authenticate once and get + * access to all their video and channel data, without having to provide + * authentication credentials for each individual channel. The CMS account that + * the user authenticates with must be linked to the specified YouTube content + * owner. */ public function set($channelId, Google_Service_YouTube_InvideoBranding $postBody, $optParams = array()) { @@ -3504,20 +4444,24 @@ class Google_Service_YouTube_Watermarks_Resource extends Google_Service_Resource } /** - * Deletes a watermark. (watermarks.unsetWatermarks) + * Deletes a channel's watermark image. (watermarks.unsetWatermarks) * - * @param string $channelId The channelId parameter specifies a YouTube channel - * ID for which the watermark is being unset. + * @param string $channelId The channelId parameter specifies the YouTube + * channel ID for which the watermark is being unset. * @param array $optParams Optional parameters. * - * @opt_param string onBehalfOfContentOwner The onBehalfOfContentOwner parameter - * indicates that the authenticated user is acting on behalf of the content - * owner specified in the parameter value. This parameter is intended for - * YouTube content partners that own and manage many different YouTube channels. - * It allows content owners to authenticate once and get access to all their - * video and channel data, without having to provide authentication credentials - * for each individual channel. The actual CMS account that the user - * authenticates with needs to be linked to the specified YouTube content owner. + * @opt_param string onBehalfOfContentOwner Note: This parameter is intended + * exclusively for YouTube content partners. + * + * The onBehalfOfContentOwner parameter indicates that the request's + * authorization credentials identify a YouTube CMS user who is acting on behalf + * of the content owner specified in the parameter value. This parameter is + * intended for YouTube content partners that own and manage many different + * YouTube channels. It allows content owners to authenticate once and get + * access to all their video and channel data, without having to provide + * authentication credentials for each individual channel. The CMS account that + * the user authenticates with must be linked to the specified YouTube content + * owner. */ public function unsetWatermarks($channelId, $optParams = array()) { @@ -4255,6 +5199,231 @@ class Google_Service_YouTube_ActivitySnippet extends Google_Model } } +class Google_Service_YouTube_Caption extends Google_Model +{ + protected $internal_gapi_mappings = array( + ); + public $etag; + public $id; + public $kind; + protected $snippetType = 'Google_Service_YouTube_CaptionSnippet'; + protected $snippetDataType = ''; + + + public function setEtag($etag) + { + $this->etag = $etag; + } + public function getEtag() + { + return $this->etag; + } + public function setId($id) + { + $this->id = $id; + } + public function getId() + { + return $this->id; + } + public function setKind($kind) + { + $this->kind = $kind; + } + public function getKind() + { + return $this->kind; + } + public function setSnippet(Google_Service_YouTube_CaptionSnippet $snippet) + { + $this->snippet = $snippet; + } + public function getSnippet() + { + return $this->snippet; + } +} + +class Google_Service_YouTube_CaptionListResponse extends Google_Collection +{ + protected $collection_key = 'items'; + protected $internal_gapi_mappings = array( + ); + public $etag; + public $eventId; + protected $itemsType = 'Google_Service_YouTube_Caption'; + protected $itemsDataType = 'array'; + public $kind; + public $visitorId; + + + public function setEtag($etag) + { + $this->etag = $etag; + } + public function getEtag() + { + return $this->etag; + } + public function setEventId($eventId) + { + $this->eventId = $eventId; + } + public function getEventId() + { + return $this->eventId; + } + public function setItems($items) + { + $this->items = $items; + } + public function getItems() + { + return $this->items; + } + public function setKind($kind) + { + $this->kind = $kind; + } + public function getKind() + { + return $this->kind; + } + public function setVisitorId($visitorId) + { + $this->visitorId = $visitorId; + } + public function getVisitorId() + { + return $this->visitorId; + } +} + +class Google_Service_YouTube_CaptionSnippet extends Google_Model +{ + protected $internal_gapi_mappings = array( + ); + public $audioTrackType; + public $failureReason; + public $isAutoSynced; + public $isCC; + public $isDraft; + public $isEasyReader; + public $isLarge; + public $language; + public $lastUpdated; + public $name; + public $status; + public $trackKind; + public $videoId; + + + public function setAudioTrackType($audioTrackType) + { + $this->audioTrackType = $audioTrackType; + } + public function getAudioTrackType() + { + return $this->audioTrackType; + } + public function setFailureReason($failureReason) + { + $this->failureReason = $failureReason; + } + public function getFailureReason() + { + return $this->failureReason; + } + public function setIsAutoSynced($isAutoSynced) + { + $this->isAutoSynced = $isAutoSynced; + } + public function getIsAutoSynced() + { + return $this->isAutoSynced; + } + public function setIsCC($isCC) + { + $this->isCC = $isCC; + } + public function getIsCC() + { + return $this->isCC; + } + public function setIsDraft($isDraft) + { + $this->isDraft = $isDraft; + } + public function getIsDraft() + { + return $this->isDraft; + } + public function setIsEasyReader($isEasyReader) + { + $this->isEasyReader = $isEasyReader; + } + public function getIsEasyReader() + { + return $this->isEasyReader; + } + public function setIsLarge($isLarge) + { + $this->isLarge = $isLarge; + } + public function getIsLarge() + { + return $this->isLarge; + } + public function setLanguage($language) + { + $this->language = $language; + } + public function getLanguage() + { + return $this->language; + } + public function setLastUpdated($lastUpdated) + { + $this->lastUpdated = $lastUpdated; + } + public function getLastUpdated() + { + return $this->lastUpdated; + } + public function setName($name) + { + $this->name = $name; + } + public function getName() + { + return $this->name; + } + public function setStatus($status) + { + $this->status = $status; + } + public function getStatus() + { + return $this->status; + } + public function setTrackKind($trackKind) + { + $this->trackKind = $trackKind; + } + public function getTrackKind() + { + return $this->trackKind; + } + public function setVideoId($videoId) + { + $this->videoId = $videoId; + } + public function getVideoId() + { + return $this->videoId; + } +} + class Google_Service_YouTube_CdnSettings extends Google_Model { protected $internal_gapi_mappings = array( @@ -4310,6 +5479,8 @@ class Google_Service_YouTube_Channel extends Google_Model protected $invideoPromotionType = 'Google_Service_YouTube_InvideoPromotion'; protected $invideoPromotionDataType = ''; public $kind; + protected $localizationsType = 'Google_Service_YouTube_ChannelLocalization'; + protected $localizationsDataType = 'map'; protected $snippetType = 'Google_Service_YouTube_ChannelSnippet'; protected $snippetDataType = ''; protected $statisticsType = 'Google_Service_YouTube_ChannelStatistics'; @@ -4392,6 +5563,14 @@ class Google_Service_YouTube_Channel extends Google_Model { return $this->kind; } + public function setLocalizations($localizations) + { + $this->localizations = $localizations; + } + public function getLocalizations() + { + return $this->localizations; + } public function setSnippet(Google_Service_YouTube_ChannelSnippet $snippet) { $this->snippet = $snippet; @@ -4705,6 +5884,23 @@ class Google_Service_YouTube_ChannelConversionPings extends Google_Collection } } +class Google_Service_YouTube_ChannelId extends Google_Model +{ + protected $internal_gapi_mappings = array( + ); + public $value; + + + public function setValue($value) + { + $this->value = $value; + } + public function getValue() + { + return $this->value; + } +} + class Google_Service_YouTube_ChannelListResponse extends Google_Collection { protected $collection_key = 'items'; @@ -4798,6 +5994,36 @@ class Google_Service_YouTube_ChannelListResponse extends Google_Collection } } +class Google_Service_YouTube_ChannelLocalization extends Google_Model +{ + protected $internal_gapi_mappings = array( + ); + public $description; + public $title; + + + public function setDescription($description) + { + $this->description = $description; + } + public function getDescription() + { + return $this->description; + } + public function setTitle($title) + { + $this->title = $title; + } + public function getTitle() + { + return $this->title; + } +} + +class Google_Service_YouTube_ChannelLocalizations extends Google_Model +{ +} + class Google_Service_YouTube_ChannelSection extends Google_Model { protected $internal_gapi_mappings = array( @@ -4807,8 +6033,12 @@ class Google_Service_YouTube_ChannelSection extends Google_Model public $etag; public $id; public $kind; + protected $localizationsType = 'Google_Service_YouTube_ChannelSectionLocalization'; + protected $localizationsDataType = 'map'; protected $snippetType = 'Google_Service_YouTube_ChannelSectionSnippet'; protected $snippetDataType = ''; + protected $targetingType = 'Google_Service_YouTube_ChannelSectionTargeting'; + protected $targetingDataType = ''; public function setContentDetails(Google_Service_YouTube_ChannelSectionContentDetails $contentDetails) @@ -4843,6 +6073,14 @@ class Google_Service_YouTube_ChannelSection extends Google_Model { return $this->kind; } + public function setLocalizations($localizations) + { + $this->localizations = $localizations; + } + public function getLocalizations() + { + return $this->localizations; + } public function setSnippet(Google_Service_YouTube_ChannelSectionSnippet $snippet) { $this->snippet = $snippet; @@ -4851,6 +6089,14 @@ class Google_Service_YouTube_ChannelSection extends Google_Model { return $this->snippet; } + public function setTargeting(Google_Service_YouTube_ChannelSectionTargeting $targeting) + { + $this->targeting = $targeting; + } + public function getTargeting() + { + return $this->targeting; + } } class Google_Service_YouTube_ChannelSectionContentDetails extends Google_Collection @@ -4935,11 +6181,35 @@ class Google_Service_YouTube_ChannelSectionListResponse extends Google_Collectio } } +class Google_Service_YouTube_ChannelSectionLocalization extends Google_Model +{ + protected $internal_gapi_mappings = array( + ); + public $title; + + + public function setTitle($title) + { + $this->title = $title; + } + public function getTitle() + { + return $this->title; + } +} + +class Google_Service_YouTube_ChannelSectionLocalizations extends Google_Model +{ +} + class Google_Service_YouTube_ChannelSectionSnippet extends Google_Model { protected $internal_gapi_mappings = array( ); public $channelId; + public $defaultLanguage; + protected $localizedType = 'Google_Service_YouTube_ChannelSectionLocalization'; + protected $localizedDataType = ''; public $position; public $style; public $title; @@ -4954,6 +6224,22 @@ class Google_Service_YouTube_ChannelSectionSnippet extends Google_Model { return $this->channelId; } + public function setDefaultLanguage($defaultLanguage) + { + $this->defaultLanguage = $defaultLanguage; + } + public function getDefaultLanguage() + { + return $this->defaultLanguage; + } + public function setLocalized(Google_Service_YouTube_ChannelSectionLocalization $localized) + { + $this->localized = $localized; + } + public function getLocalized() + { + return $this->localized; + } public function setPosition($position) { $this->position = $position; @@ -4988,11 +6274,49 @@ class Google_Service_YouTube_ChannelSectionSnippet extends Google_Model } } +class Google_Service_YouTube_ChannelSectionTargeting extends Google_Collection +{ + protected $collection_key = 'regions'; + protected $internal_gapi_mappings = array( + ); + public $countries; + public $languages; + public $regions; + + + public function setCountries($countries) + { + $this->countries = $countries; + } + public function getCountries() + { + return $this->countries; + } + public function setLanguages($languages) + { + $this->languages = $languages; + } + public function getLanguages() + { + return $this->languages; + } + public function setRegions($regions) + { + $this->regions = $regions; + } + public function getRegions() + { + return $this->regions; + } +} + class Google_Service_YouTube_ChannelSettings extends Google_Collection { protected $collection_key = 'featuredChannelsUrls'; protected $internal_gapi_mappings = array( ); + public $country; + public $defaultLanguage; public $defaultTab; public $description; public $featuredChannelsTitle; @@ -5007,6 +6331,22 @@ class Google_Service_YouTube_ChannelSettings extends Google_Collection public $unsubscribedTrailer; + public function setCountry($country) + { + $this->country = $country; + } + public function getCountry() + { + return $this->country; + } + public function setDefaultLanguage($defaultLanguage) + { + $this->defaultLanguage = $defaultLanguage; + } + public function getDefaultLanguage() + { + return $this->defaultLanguage; + } public function setDefaultTab($defaultTab) { $this->defaultTab = $defaultTab; @@ -5109,13 +6449,33 @@ class Google_Service_YouTube_ChannelSnippet extends Google_Model { protected $internal_gapi_mappings = array( ); + public $country; + public $defaultLanguage; public $description; + protected $localizedType = 'Google_Service_YouTube_ChannelLocalization'; + protected $localizedDataType = ''; public $publishedAt; protected $thumbnailsType = 'Google_Service_YouTube_ThumbnailDetails'; protected $thumbnailsDataType = ''; public $title; + public function setCountry($country) + { + $this->country = $country; + } + public function getCountry() + { + return $this->country; + } + public function setDefaultLanguage($defaultLanguage) + { + $this->defaultLanguage = $defaultLanguage; + } + public function getDefaultLanguage() + { + return $this->defaultLanguage; + } public function setDescription($description) { $this->description = $description; @@ -5124,6 +6484,14 @@ class Google_Service_YouTube_ChannelSnippet extends Google_Model { return $this->description; } + public function setLocalized(Google_Service_YouTube_ChannelLocalization $localized) + { + $this->localized = $localized; + } + public function getLocalized() + { + return $this->localized; + } public function setPublishedAt($publishedAt) { $this->publishedAt = $publishedAt; @@ -5256,6 +6624,509 @@ class Google_Service_YouTube_ChannelTopicDetails extends Google_Collection } } +class Google_Service_YouTube_Comment extends Google_Model +{ + protected $internal_gapi_mappings = array( + ); + public $etag; + public $id; + public $kind; + protected $snippetType = 'Google_Service_YouTube_CommentSnippet'; + protected $snippetDataType = ''; + + + public function setEtag($etag) + { + $this->etag = $etag; + } + public function getEtag() + { + return $this->etag; + } + public function setId($id) + { + $this->id = $id; + } + public function getId() + { + return $this->id; + } + public function setKind($kind) + { + $this->kind = $kind; + } + public function getKind() + { + return $this->kind; + } + public function setSnippet(Google_Service_YouTube_CommentSnippet $snippet) + { + $this->snippet = $snippet; + } + public function getSnippet() + { + return $this->snippet; + } +} + +class Google_Service_YouTube_CommentListResponse extends Google_Collection +{ + protected $collection_key = 'items'; + protected $internal_gapi_mappings = array( + ); + public $etag; + public $eventId; + protected $itemsType = 'Google_Service_YouTube_Comment'; + protected $itemsDataType = 'array'; + public $kind; + public $nextPageToken; + protected $pageInfoType = 'Google_Service_YouTube_PageInfo'; + protected $pageInfoDataType = ''; + protected $tokenPaginationType = 'Google_Service_YouTube_TokenPagination'; + protected $tokenPaginationDataType = ''; + public $visitorId; + + + public function setEtag($etag) + { + $this->etag = $etag; + } + public function getEtag() + { + return $this->etag; + } + public function setEventId($eventId) + { + $this->eventId = $eventId; + } + public function getEventId() + { + return $this->eventId; + } + public function setItems($items) + { + $this->items = $items; + } + public function getItems() + { + return $this->items; + } + public function setKind($kind) + { + $this->kind = $kind; + } + public function getKind() + { + return $this->kind; + } + public function setNextPageToken($nextPageToken) + { + $this->nextPageToken = $nextPageToken; + } + public function getNextPageToken() + { + return $this->nextPageToken; + } + public function setPageInfo(Google_Service_YouTube_PageInfo $pageInfo) + { + $this->pageInfo = $pageInfo; + } + public function getPageInfo() + { + return $this->pageInfo; + } + public function setTokenPagination(Google_Service_YouTube_TokenPagination $tokenPagination) + { + $this->tokenPagination = $tokenPagination; + } + public function getTokenPagination() + { + return $this->tokenPagination; + } + public function setVisitorId($visitorId) + { + $this->visitorId = $visitorId; + } + public function getVisitorId() + { + return $this->visitorId; + } +} + +class Google_Service_YouTube_CommentSnippet extends Google_Model +{ + protected $internal_gapi_mappings = array( + ); + protected $authorChannelIdType = 'Google_Service_YouTube_ChannelId'; + protected $authorChannelIdDataType = ''; + public $authorChannelUrl; + public $authorDisplayName; + public $authorGoogleplusProfileUrl; + public $authorProfileImageUrl; + public $canRate; + public $channelId; + public $likeCount; + public $moderationStatus; + public $parentId; + public $publishedAt; + public $textDisplay; + public $textOriginal; + public $updatedAt; + public $videoId; + public $viewerRating; + + + public function setAuthorChannelId(Google_Service_YouTube_ChannelId $authorChannelId) + { + $this->authorChannelId = $authorChannelId; + } + public function getAuthorChannelId() + { + return $this->authorChannelId; + } + public function setAuthorChannelUrl($authorChannelUrl) + { + $this->authorChannelUrl = $authorChannelUrl; + } + public function getAuthorChannelUrl() + { + return $this->authorChannelUrl; + } + public function setAuthorDisplayName($authorDisplayName) + { + $this->authorDisplayName = $authorDisplayName; + } + public function getAuthorDisplayName() + { + return $this->authorDisplayName; + } + public function setAuthorGoogleplusProfileUrl($authorGoogleplusProfileUrl) + { + $this->authorGoogleplusProfileUrl = $authorGoogleplusProfileUrl; + } + public function getAuthorGoogleplusProfileUrl() + { + return $this->authorGoogleplusProfileUrl; + } + public function setAuthorProfileImageUrl($authorProfileImageUrl) + { + $this->authorProfileImageUrl = $authorProfileImageUrl; + } + public function getAuthorProfileImageUrl() + { + return $this->authorProfileImageUrl; + } + public function setCanRate($canRate) + { + $this->canRate = $canRate; + } + public function getCanRate() + { + return $this->canRate; + } + public function setChannelId($channelId) + { + $this->channelId = $channelId; + } + public function getChannelId() + { + return $this->channelId; + } + public function setLikeCount($likeCount) + { + $this->likeCount = $likeCount; + } + public function getLikeCount() + { + return $this->likeCount; + } + public function setModerationStatus($moderationStatus) + { + $this->moderationStatus = $moderationStatus; + } + public function getModerationStatus() + { + return $this->moderationStatus; + } + public function setParentId($parentId) + { + $this->parentId = $parentId; + } + public function getParentId() + { + return $this->parentId; + } + public function setPublishedAt($publishedAt) + { + $this->publishedAt = $publishedAt; + } + public function getPublishedAt() + { + return $this->publishedAt; + } + public function setTextDisplay($textDisplay) + { + $this->textDisplay = $textDisplay; + } + public function getTextDisplay() + { + return $this->textDisplay; + } + public function setTextOriginal($textOriginal) + { + $this->textOriginal = $textOriginal; + } + public function getTextOriginal() + { + return $this->textOriginal; + } + public function setUpdatedAt($updatedAt) + { + $this->updatedAt = $updatedAt; + } + public function getUpdatedAt() + { + return $this->updatedAt; + } + public function setVideoId($videoId) + { + $this->videoId = $videoId; + } + public function getVideoId() + { + return $this->videoId; + } + public function setViewerRating($viewerRating) + { + $this->viewerRating = $viewerRating; + } + public function getViewerRating() + { + return $this->viewerRating; + } +} + +class Google_Service_YouTube_CommentThread extends Google_Model +{ + protected $internal_gapi_mappings = array( + ); + public $etag; + public $id; + public $kind; + protected $repliesType = 'Google_Service_YouTube_CommentThreadReplies'; + protected $repliesDataType = ''; + protected $snippetType = 'Google_Service_YouTube_CommentThreadSnippet'; + protected $snippetDataType = ''; + + + public function setEtag($etag) + { + $this->etag = $etag; + } + public function getEtag() + { + return $this->etag; + } + public function setId($id) + { + $this->id = $id; + } + public function getId() + { + return $this->id; + } + public function setKind($kind) + { + $this->kind = $kind; + } + public function getKind() + { + return $this->kind; + } + public function setReplies(Google_Service_YouTube_CommentThreadReplies $replies) + { + $this->replies = $replies; + } + public function getReplies() + { + return $this->replies; + } + public function setSnippet(Google_Service_YouTube_CommentThreadSnippet $snippet) + { + $this->snippet = $snippet; + } + public function getSnippet() + { + return $this->snippet; + } +} + +class Google_Service_YouTube_CommentThreadListResponse extends Google_Collection +{ + protected $collection_key = 'items'; + protected $internal_gapi_mappings = array( + ); + public $etag; + public $eventId; + protected $itemsType = 'Google_Service_YouTube_CommentThread'; + protected $itemsDataType = 'array'; + public $kind; + public $nextPageToken; + protected $pageInfoType = 'Google_Service_YouTube_PageInfo'; + protected $pageInfoDataType = ''; + protected $tokenPaginationType = 'Google_Service_YouTube_TokenPagination'; + protected $tokenPaginationDataType = ''; + public $visitorId; + + + public function setEtag($etag) + { + $this->etag = $etag; + } + public function getEtag() + { + return $this->etag; + } + public function setEventId($eventId) + { + $this->eventId = $eventId; + } + public function getEventId() + { + return $this->eventId; + } + public function setItems($items) + { + $this->items = $items; + } + public function getItems() + { + return $this->items; + } + public function setKind($kind) + { + $this->kind = $kind; + } + public function getKind() + { + return $this->kind; + } + public function setNextPageToken($nextPageToken) + { + $this->nextPageToken = $nextPageToken; + } + public function getNextPageToken() + { + return $this->nextPageToken; + } + public function setPageInfo(Google_Service_YouTube_PageInfo $pageInfo) + { + $this->pageInfo = $pageInfo; + } + public function getPageInfo() + { + return $this->pageInfo; + } + public function setTokenPagination(Google_Service_YouTube_TokenPagination $tokenPagination) + { + $this->tokenPagination = $tokenPagination; + } + public function getTokenPagination() + { + return $this->tokenPagination; + } + public function setVisitorId($visitorId) + { + $this->visitorId = $visitorId; + } + public function getVisitorId() + { + return $this->visitorId; + } +} + +class Google_Service_YouTube_CommentThreadReplies extends Google_Collection +{ + protected $collection_key = 'comments'; + protected $internal_gapi_mappings = array( + ); + protected $commentsType = 'Google_Service_YouTube_Comment'; + protected $commentsDataType = 'array'; + + + public function setComments($comments) + { + $this->comments = $comments; + } + public function getComments() + { + return $this->comments; + } +} + +class Google_Service_YouTube_CommentThreadSnippet extends Google_Model +{ + protected $internal_gapi_mappings = array( + ); + public $canReply; + public $channelId; + public $isPublic; + protected $topLevelCommentType = 'Google_Service_YouTube_Comment'; + protected $topLevelCommentDataType = ''; + public $totalReplyCount; + public $videoId; + + + public function setCanReply($canReply) + { + $this->canReply = $canReply; + } + public function getCanReply() + { + return $this->canReply; + } + public function setChannelId($channelId) + { + $this->channelId = $channelId; + } + public function getChannelId() + { + return $this->channelId; + } + public function setIsPublic($isPublic) + { + $this->isPublic = $isPublic; + } + public function getIsPublic() + { + return $this->isPublic; + } + public function setTopLevelComment(Google_Service_YouTube_Comment $topLevelComment) + { + $this->topLevelComment = $topLevelComment; + } + public function getTopLevelComment() + { + return $this->topLevelComment; + } + public function setTotalReplyCount($totalReplyCount) + { + $this->totalReplyCount = $totalReplyCount; + } + public function getTotalReplyCount() + { + return $this->totalReplyCount; + } + public function setVideoId($videoId) + { + $this->videoId = $videoId; + } + public function getVideoId() + { + return $this->videoId; + } +} + class Google_Service_YouTube_ContentRating extends Google_Collection { protected $collection_key = 'djctqRatingReasons'; @@ -6702,6 +8573,23 @@ class Google_Service_YouTube_InvideoTiming extends Google_Model } } +class Google_Service_YouTube_LanguageTag extends Google_Model +{ + protected $internal_gapi_mappings = array( + ); + public $value; + + + public function setValue($value) + { + $this->value = $value; + } + public function getValue() + { + return $this->value; + } +} + class Google_Service_YouTube_LiveBroadcast extends Google_Model { protected $internal_gapi_mappings = array( @@ -6713,8 +8601,12 @@ class Google_Service_YouTube_LiveBroadcast extends Google_Model public $kind; protected $snippetType = 'Google_Service_YouTube_LiveBroadcastSnippet'; protected $snippetDataType = ''; + protected $statisticsType = 'Google_Service_YouTube_LiveBroadcastStatistics'; + protected $statisticsDataType = ''; protected $statusType = 'Google_Service_YouTube_LiveBroadcastStatus'; protected $statusDataType = ''; + protected $topicDetailsType = 'Google_Service_YouTube_LiveBroadcastTopicDetails'; + protected $topicDetailsDataType = ''; public function setContentDetails(Google_Service_YouTube_LiveBroadcastContentDetails $contentDetails) @@ -6757,6 +8649,14 @@ class Google_Service_YouTube_LiveBroadcast extends Google_Model { return $this->snippet; } + public function setStatistics(Google_Service_YouTube_LiveBroadcastStatistics $statistics) + { + $this->statistics = $statistics; + } + public function getStatistics() + { + return $this->statistics; + } public function setStatus(Google_Service_YouTube_LiveBroadcastStatus $status) { $this->status = $status; @@ -6765,6 +8665,14 @@ class Google_Service_YouTube_LiveBroadcast extends Google_Model { return $this->status; } + public function setTopicDetails(Google_Service_YouTube_LiveBroadcastTopicDetails $topicDetails) + { + $this->topicDetails = $topicDetails; + } + public function getTopicDetails() + { + return $this->topicDetails; + } } class Google_Service_YouTube_LiveBroadcastContentDetails extends Google_Model @@ -6776,6 +8684,7 @@ class Google_Service_YouTube_LiveBroadcastContentDetails extends Google_Model public $enableContentEncryption; public $enableDvr; public $enableEmbed; + public $enableLowLatency; protected $monitorStreamType = 'Google_Service_YouTube_MonitorStreamInfo'; protected $monitorStreamDataType = ''; public $recordFromStart; @@ -6822,6 +8731,14 @@ class Google_Service_YouTube_LiveBroadcastContentDetails extends Google_Model { return $this->enableEmbed; } + public function setEnableLowLatency($enableLowLatency) + { + $this->enableLowLatency = $enableLowLatency; + } + public function getEnableLowLatency() + { + return $this->enableLowLatency; + } public function setMonitorStream(Google_Service_YouTube_MonitorStreamInfo $monitorStream) { $this->monitorStream = $monitorStream; @@ -6949,6 +8866,7 @@ class Google_Service_YouTube_LiveBroadcastSnippet extends Google_Model public $actualStartTime; public $channelId; public $description; + public $isDefaultBroadcast; public $publishedAt; public $scheduledEndTime; public $scheduledStartTime; @@ -6989,6 +8907,14 @@ class Google_Service_YouTube_LiveBroadcastSnippet extends Google_Model { return $this->description; } + public function setIsDefaultBroadcast($isDefaultBroadcast) + { + $this->isDefaultBroadcast = $isDefaultBroadcast; + } + public function getIsDefaultBroadcast() + { + return $this->isDefaultBroadcast; + } public function setPublishedAt($publishedAt) { $this->publishedAt = $publishedAt; @@ -7031,6 +8957,32 @@ class Google_Service_YouTube_LiveBroadcastSnippet extends Google_Model } } +class Google_Service_YouTube_LiveBroadcastStatistics extends Google_Model +{ + protected $internal_gapi_mappings = array( + ); + public $concurrentViewers; + public $totalChatCount; + + + public function setConcurrentViewers($concurrentViewers) + { + $this->concurrentViewers = $concurrentViewers; + } + public function getConcurrentViewers() + { + return $this->concurrentViewers; + } + public function setTotalChatCount($totalChatCount) + { + $this->totalChatCount = $totalChatCount; + } + public function getTotalChatCount() + { + return $this->totalChatCount; + } +} + class Google_Service_YouTube_LiveBroadcastStatus extends Google_Model { protected $internal_gapi_mappings = array( @@ -7075,6 +9027,87 @@ class Google_Service_YouTube_LiveBroadcastStatus extends Google_Model } } +class Google_Service_YouTube_LiveBroadcastTopic extends Google_Model +{ + protected $internal_gapi_mappings = array( + ); + protected $snippetType = 'Google_Service_YouTube_LiveBroadcastTopicSnippet'; + protected $snippetDataType = ''; + public $type; + public $unmatched; + + + public function setSnippet(Google_Service_YouTube_LiveBroadcastTopicSnippet $snippet) + { + $this->snippet = $snippet; + } + public function getSnippet() + { + return $this->snippet; + } + public function setType($type) + { + $this->type = $type; + } + public function getType() + { + return $this->type; + } + public function setUnmatched($unmatched) + { + $this->unmatched = $unmatched; + } + public function getUnmatched() + { + return $this->unmatched; + } +} + +class Google_Service_YouTube_LiveBroadcastTopicDetails extends Google_Collection +{ + protected $collection_key = 'topics'; + protected $internal_gapi_mappings = array( + ); + protected $topicsType = 'Google_Service_YouTube_LiveBroadcastTopic'; + protected $topicsDataType = 'array'; + + + public function setTopics($topics) + { + $this->topics = $topics; + } + public function getTopics() + { + return $this->topics; + } +} + +class Google_Service_YouTube_LiveBroadcastTopicSnippet extends Google_Model +{ + protected $internal_gapi_mappings = array( + ); + public $name; + public $releaseDate; + + + public function setName($name) + { + $this->name = $name; + } + public function getName() + { + return $this->name; + } + public function setReleaseDate($releaseDate) + { + $this->releaseDate = $releaseDate; + } + public function getReleaseDate() + { + return $this->releaseDate; + } +} + class Google_Service_YouTube_LiveStream extends Google_Model { protected $internal_gapi_mappings = array( @@ -7150,6 +9183,50 @@ class Google_Service_YouTube_LiveStream extends Google_Model } } +class Google_Service_YouTube_LiveStreamConfigurationIssue extends Google_Model +{ + protected $internal_gapi_mappings = array( + ); + public $description; + public $reason; + public $severity; + public $type; + + + public function setDescription($description) + { + $this->description = $description; + } + public function getDescription() + { + return $this->description; + } + public function setReason($reason) + { + $this->reason = $reason; + } + public function getReason() + { + return $this->reason; + } + public function setSeverity($severity) + { + $this->severity = $severity; + } + public function getSeverity() + { + return $this->severity; + } + public function setType($type) + { + $this->type = $type; + } + public function getType() + { + return $this->type; + } +} + class Google_Service_YouTube_LiveStreamContentDetails extends Google_Model { protected $internal_gapi_mappings = array( @@ -7176,6 +9253,43 @@ class Google_Service_YouTube_LiveStreamContentDetails extends Google_Model } } +class Google_Service_YouTube_LiveStreamHealthStatus extends Google_Collection +{ + protected $collection_key = 'configurationIssues'; + protected $internal_gapi_mappings = array( + ); + protected $configurationIssuesType = 'Google_Service_YouTube_LiveStreamConfigurationIssue'; + protected $configurationIssuesDataType = 'array'; + public $lastUpdateTimeS; + public $status; + + + public function setConfigurationIssues($configurationIssues) + { + $this->configurationIssues = $configurationIssues; + } + public function getConfigurationIssues() + { + return $this->configurationIssues; + } + public function setLastUpdateTimeS($lastUpdateTimeS) + { + $this->lastUpdateTimeS = $lastUpdateTimeS; + } + public function getLastUpdateTimeS() + { + return $this->lastUpdateTimeS; + } + public function setStatus($status) + { + $this->status = $status; + } + public function getStatus() + { + return $this->status; + } +} + class Google_Service_YouTube_LiveStreamListResponse extends Google_Collection { protected $collection_key = 'items'; @@ -7275,6 +9389,7 @@ class Google_Service_YouTube_LiveStreamSnippet extends Google_Model ); public $channelId; public $description; + public $isDefaultStream; public $publishedAt; public $title; @@ -7295,6 +9410,14 @@ class Google_Service_YouTube_LiveStreamSnippet extends Google_Model { return $this->description; } + public function setIsDefaultStream($isDefaultStream) + { + $this->isDefaultStream = $isDefaultStream; + } + public function getIsDefaultStream() + { + return $this->isDefaultStream; + } public function setPublishedAt($publishedAt) { $this->publishedAt = $publishedAt; @@ -7317,9 +9440,19 @@ class Google_Service_YouTube_LiveStreamStatus extends Google_Model { protected $internal_gapi_mappings = array( ); + protected $healthStatusType = 'Google_Service_YouTube_LiveStreamHealthStatus'; + protected $healthStatusDataType = ''; public $streamStatus; + public function setHealthStatus(Google_Service_YouTube_LiveStreamHealthStatus $healthStatus) + { + $this->healthStatus = $healthStatus; + } + public function getHealthStatus() + { + return $this->healthStatus; + } public function setStreamStatus($streamStatus) { $this->streamStatus = $streamStatus; @@ -7336,6 +9469,8 @@ class Google_Service_YouTube_LocalizedProperty extends Google_Collection protected $internal_gapi_mappings = array( ); public $default; + protected $defaultLanguageType = 'Google_Service_YouTube_LanguageTag'; + protected $defaultLanguageDataType = ''; protected $localizedType = 'Google_Service_YouTube_LocalizedString'; protected $localizedDataType = 'array'; @@ -7348,6 +9483,14 @@ class Google_Service_YouTube_LocalizedProperty extends Google_Collection { return $this->default; } + public function setDefaultLanguage(Google_Service_YouTube_LanguageTag $defaultLanguage) + { + $this->defaultLanguage = $defaultLanguage; + } + public function getDefaultLanguage() + { + return $this->defaultLanguage; + } public function setLocalized($localized) { $this->localized = $localized; @@ -7454,6 +9597,8 @@ class Google_Service_YouTube_Playlist extends Google_Model public $etag; public $id; public $kind; + protected $localizationsType = 'Google_Service_YouTube_PlaylistLocalization'; + protected $localizationsDataType = 'map'; protected $playerType = 'Google_Service_YouTube_PlaylistPlayer'; protected $playerDataType = ''; protected $snippetType = 'Google_Service_YouTube_PlaylistSnippet'; @@ -7494,6 +9639,14 @@ class Google_Service_YouTube_Playlist extends Google_Model { return $this->kind; } + public function setLocalizations($localizations) + { + $this->localizations = $localizations; + } + public function getLocalizations() + { + return $this->localizations; + } public function setPlayer(Google_Service_YouTube_PlaylistPlayer $player) { $this->player = $player; @@ -7940,6 +10093,36 @@ class Google_Service_YouTube_PlaylistListResponse extends Google_Collection } } +class Google_Service_YouTube_PlaylistLocalization extends Google_Model +{ + protected $internal_gapi_mappings = array( + ); + public $description; + public $title; + + + public function setDescription($description) + { + $this->description = $description; + } + public function getDescription() + { + return $this->description; + } + public function setTitle($title) + { + $this->title = $title; + } + public function getTitle() + { + return $this->title; + } +} + +class Google_Service_YouTube_PlaylistLocalizations extends Google_Model +{ +} + class Google_Service_YouTube_PlaylistPlayer extends Google_Model { protected $internal_gapi_mappings = array( @@ -7964,7 +10147,10 @@ class Google_Service_YouTube_PlaylistSnippet extends Google_Collection ); public $channelId; public $channelTitle; + public $defaultLanguage; public $description; + protected $localizedType = 'Google_Service_YouTube_PlaylistLocalization'; + protected $localizedDataType = ''; public $publishedAt; public $tags; protected $thumbnailsType = 'Google_Service_YouTube_ThumbnailDetails'; @@ -7988,6 +10174,14 @@ class Google_Service_YouTube_PlaylistSnippet extends Google_Collection { return $this->channelTitle; } + public function setDefaultLanguage($defaultLanguage) + { + $this->defaultLanguage = $defaultLanguage; + } + public function getDefaultLanguage() + { + return $this->defaultLanguage; + } public function setDescription($description) { $this->description = $description; @@ -7996,6 +10190,14 @@ class Google_Service_YouTube_PlaylistSnippet extends Google_Collection { return $this->description; } + public function setLocalized(Google_Service_YouTube_PlaylistLocalization $localized) + { + $this->localized = $localized; + } + public function getLocalized() + { + return $this->localized; + } public function setPublishedAt($publishedAt) { $this->publishedAt = $publishedAt; @@ -8898,6 +11100,8 @@ class Google_Service_YouTube_Video extends Google_Model public $kind; protected $liveStreamingDetailsType = 'Google_Service_YouTube_VideoLiveStreamingDetails'; protected $liveStreamingDetailsDataType = ''; + protected $localizationsType = 'Google_Service_YouTube_VideoLocalization'; + protected $localizationsDataType = 'map'; protected $monetizationDetailsType = 'Google_Service_YouTube_VideoMonetizationDetails'; protected $monetizationDetailsDataType = ''; protected $playerType = 'Google_Service_YouTube_VideoPlayer'; @@ -8984,6 +11188,14 @@ class Google_Service_YouTube_Video extends Google_Model { return $this->liveStreamingDetails; } + public function setLocalizations($localizations) + { + $this->localizations = $localizations; + } + public function getLocalizations() + { + return $this->localizations; + } public function setMonetizationDetails(Google_Service_YouTube_VideoMonetizationDetails $monetizationDetails) { $this->monetizationDetails = $monetizationDetails; @@ -9066,6 +11278,213 @@ class Google_Service_YouTube_Video extends Google_Model } } +class Google_Service_YouTube_VideoAbuseReport extends Google_Model +{ + protected $internal_gapi_mappings = array( + ); + public $comments; + public $language; + public $reasonId; + public $secondaryReasonId; + public $videoId; + + + public function setComments($comments) + { + $this->comments = $comments; + } + public function getComments() + { + return $this->comments; + } + public function setLanguage($language) + { + $this->language = $language; + } + public function getLanguage() + { + return $this->language; + } + public function setReasonId($reasonId) + { + $this->reasonId = $reasonId; + } + public function getReasonId() + { + return $this->reasonId; + } + public function setSecondaryReasonId($secondaryReasonId) + { + $this->secondaryReasonId = $secondaryReasonId; + } + public function getSecondaryReasonId() + { + return $this->secondaryReasonId; + } + public function setVideoId($videoId) + { + $this->videoId = $videoId; + } + public function getVideoId() + { + return $this->videoId; + } +} + +class Google_Service_YouTube_VideoAbuseReportReason extends Google_Model +{ + protected $internal_gapi_mappings = array( + ); + public $etag; + public $id; + public $kind; + protected $snippetType = 'Google_Service_YouTube_VideoAbuseReportReasonSnippet'; + protected $snippetDataType = ''; + + + public function setEtag($etag) + { + $this->etag = $etag; + } + public function getEtag() + { + return $this->etag; + } + public function setId($id) + { + $this->id = $id; + } + public function getId() + { + return $this->id; + } + public function setKind($kind) + { + $this->kind = $kind; + } + public function getKind() + { + return $this->kind; + } + public function setSnippet(Google_Service_YouTube_VideoAbuseReportReasonSnippet $snippet) + { + $this->snippet = $snippet; + } + public function getSnippet() + { + return $this->snippet; + } +} + +class Google_Service_YouTube_VideoAbuseReportReasonListResponse extends Google_Collection +{ + protected $collection_key = 'items'; + protected $internal_gapi_mappings = array( + ); + public $etag; + public $eventId; + protected $itemsType = 'Google_Service_YouTube_VideoAbuseReportReason'; + protected $itemsDataType = 'array'; + public $kind; + public $visitorId; + + + public function setEtag($etag) + { + $this->etag = $etag; + } + public function getEtag() + { + return $this->etag; + } + public function setEventId($eventId) + { + $this->eventId = $eventId; + } + public function getEventId() + { + return $this->eventId; + } + public function setItems($items) + { + $this->items = $items; + } + public function getItems() + { + return $this->items; + } + public function setKind($kind) + { + $this->kind = $kind; + } + public function getKind() + { + return $this->kind; + } + public function setVisitorId($visitorId) + { + $this->visitorId = $visitorId; + } + public function getVisitorId() + { + return $this->visitorId; + } +} + +class Google_Service_YouTube_VideoAbuseReportReasonSnippet extends Google_Collection +{ + protected $collection_key = 'secondaryReasons'; + protected $internal_gapi_mappings = array( + ); + public $label; + protected $secondaryReasonsType = 'Google_Service_YouTube_VideoAbuseReportSecondaryReason'; + protected $secondaryReasonsDataType = 'array'; + + + public function setLabel($label) + { + $this->label = $label; + } + public function getLabel() + { + return $this->label; + } + public function setSecondaryReasons($secondaryReasons) + { + $this->secondaryReasons = $secondaryReasons; + } + public function getSecondaryReasons() + { + return $this->secondaryReasons; + } +} + +class Google_Service_YouTube_VideoAbuseReportSecondaryReason extends Google_Model +{ + protected $internal_gapi_mappings = array( + ); + public $id; + public $label; + + + public function setId($id) + { + $this->id = $id; + } + public function getId() + { + return $this->id; + } + public function setLabel($label) + { + $this->label = $label; + } + public function getLabel() + { + return $this->label; + } +} + class Google_Service_YouTube_VideoAgeGating extends Google_Model { protected $internal_gapi_mappings = array( @@ -9856,6 +12275,36 @@ class Google_Service_YouTube_VideoLiveStreamingDetails extends Google_Model } } +class Google_Service_YouTube_VideoLocalization extends Google_Model +{ + protected $internal_gapi_mappings = array( + ); + public $description; + public $title; + + + public function setDescription($description) + { + $this->description = $description; + } + public function getDescription() + { + return $this->description; + } + public function setTitle($title) + { + $this->title = $title; + } + public function getTitle() + { + return $this->title; + } +} + +class Google_Service_YouTube_VideoLocalizations extends Google_Model +{ +} + class Google_Service_YouTube_VideoMonetizationDetails extends Google_Model { protected $internal_gapi_mappings = array( @@ -10095,8 +12544,12 @@ class Google_Service_YouTube_VideoSnippet extends Google_Collection public $categoryId; public $channelId; public $channelTitle; + public $defaultAudioLanguage; + public $defaultLanguage; public $description; public $liveBroadcastContent; + protected $localizedType = 'Google_Service_YouTube_VideoLocalization'; + protected $localizedDataType = ''; public $publishedAt; public $tags; protected $thumbnailsType = 'Google_Service_YouTube_ThumbnailDetails'; @@ -10128,6 +12581,22 @@ class Google_Service_YouTube_VideoSnippet extends Google_Collection { return $this->channelTitle; } + public function setDefaultAudioLanguage($defaultAudioLanguage) + { + $this->defaultAudioLanguage = $defaultAudioLanguage; + } + public function getDefaultAudioLanguage() + { + return $this->defaultAudioLanguage; + } + public function setDefaultLanguage($defaultLanguage) + { + $this->defaultLanguage = $defaultLanguage; + } + public function getDefaultLanguage() + { + return $this->defaultLanguage; + } public function setDescription($description) { $this->description = $description; @@ -10144,6 +12613,14 @@ class Google_Service_YouTube_VideoSnippet extends Google_Collection { return $this->liveBroadcastContent; } + public function setLocalized(Google_Service_YouTube_VideoLocalization $localized) + { + $this->localized = $localized; + } + public function getLocalized() + { + return $this->localized; + } public function setPublishedAt($publishedAt) { $this->publishedAt = $publishedAt; diff --git a/lib/google/src/Google/Service/YouTubeAnalytics.php b/lib/google/src/Google/Service/YouTubeAnalytics.php index 49c681e7c78..2f6a80aa30e 100644 --- a/lib/google/src/Google/Service/YouTubeAnalytics.php +++ b/lib/google/src/Google/Service/YouTubeAnalytics.php @@ -30,6 +30,15 @@ */ class Google_Service_YouTubeAnalytics extends Google_Service { + /** Manage your YouTube account. */ + const YOUTUBE = + "https://www.googleapis.com/auth/youtube"; + /** View your YouTube account. */ + const YOUTUBE_READONLY = + "https://www.googleapis.com/auth/youtube.readonly"; + /** View and manage your assets and associated content on YouTube. */ + const YOUTUBEPARTNER = + "https://www.googleapis.com/auth/youtubepartner"; /** View YouTube Analytics monetary reports for your YouTube content. */ const YT_ANALYTICS_MONETARY_READONLY = "https://www.googleapis.com/auth/yt-analytics-monetary.readonly"; @@ -39,6 +48,8 @@ class Google_Service_YouTubeAnalytics extends Google_Service public $batchReportDefinitions; public $batchReports; + public $groupItems; + public $groups; public $reports; @@ -50,6 +61,7 @@ class Google_Service_YouTubeAnalytics extends Google_Service public function __construct(Google_Client $client) { parent::__construct($client); + $this->rootUrl = 'https://www.googleapis.com/'; $this->servicePath = 'youtube/analytics/v1/'; $this->version = 'v1'; $this->serviceName = 'youtubeAnalytics'; @@ -99,6 +111,112 @@ class Google_Service_YouTubeAnalytics extends Google_Service ) ) ); + $this->groupItems = new Google_Service_YouTubeAnalytics_GroupItems_Resource( + $this, + $this->serviceName, + 'groupItems', + array( + 'methods' => array( + 'delete' => array( + 'path' => 'groupItems', + 'httpMethod' => 'DELETE', + 'parameters' => array( + 'id' => array( + 'location' => 'query', + 'type' => 'string', + 'required' => true, + ), + 'onBehalfOfContentOwner' => array( + 'location' => 'query', + 'type' => 'string', + ), + ), + ),'insert' => array( + 'path' => 'groupItems', + 'httpMethod' => 'POST', + 'parameters' => array( + 'onBehalfOfContentOwner' => array( + 'location' => 'query', + 'type' => 'string', + ), + ), + ),'list' => array( + 'path' => 'groupItems', + 'httpMethod' => 'GET', + 'parameters' => array( + 'groupId' => array( + 'location' => 'query', + 'type' => 'string', + 'required' => true, + ), + 'onBehalfOfContentOwner' => array( + 'location' => 'query', + 'type' => 'string', + ), + ), + ), + ) + ) + ); + $this->groups = new Google_Service_YouTubeAnalytics_Groups_Resource( + $this, + $this->serviceName, + 'groups', + array( + 'methods' => array( + 'delete' => array( + 'path' => 'groups', + 'httpMethod' => 'DELETE', + 'parameters' => array( + 'id' => array( + 'location' => 'query', + 'type' => 'string', + 'required' => true, + ), + 'onBehalfOfContentOwner' => array( + 'location' => 'query', + 'type' => 'string', + ), + ), + ),'insert' => array( + 'path' => 'groups', + 'httpMethod' => 'POST', + 'parameters' => array( + 'onBehalfOfContentOwner' => array( + 'location' => 'query', + 'type' => 'string', + ), + ), + ),'list' => array( + 'path' => 'groups', + 'httpMethod' => 'GET', + 'parameters' => array( + 'onBehalfOfContentOwner' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'id' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'mine' => array( + 'location' => 'query', + 'type' => 'boolean', + ), + ), + ),'update' => array( + 'path' => 'groups', + 'httpMethod' => 'PUT', + 'parameters' => array( + 'onBehalfOfContentOwner' => array( + 'location' => 'query', + 'type' => 'string', + ), + ), + ), + ) + ) + ); $this->reports = new Google_Service_YouTubeAnalytics_Reports_Resource( $this, $this->serviceName, @@ -145,6 +263,10 @@ class Google_Service_YouTubeAnalytics extends Google_Service 'location' => 'query', 'type' => 'integer', ), + 'currency' => array( + 'location' => 'query', + 'type' => 'string', + ), 'filters' => array( 'location' => 'query', 'type' => 'string', @@ -216,6 +338,228 @@ class Google_Service_YouTubeAnalytics_BatchReports_Resource extends Google_Servi } } +/** + * The "groupItems" collection of methods. + * Typical usage is: + * + * $youtubeAnalyticsService = new Google_Service_YouTubeAnalytics(...); + * $groupItems = $youtubeAnalyticsService->groupItems; + * + */ +class Google_Service_YouTubeAnalytics_GroupItems_Resource extends Google_Service_Resource +{ + + /** + * Removes an item from a group. (groupItems.delete) + * + * @param string $id The id parameter specifies the YouTube group item ID for + * the group that is being deleted. + * @param array $optParams Optional parameters. + * + * @opt_param string onBehalfOfContentOwner Note: This parameter is intended + * exclusively for YouTube content partners. + * + * The onBehalfOfContentOwner parameter indicates that the request's + * authorization credentials identify a YouTube CMS user who is acting on behalf + * of the content owner specified in the parameter value. This parameter is + * intended for YouTube content partners that own and manage many different + * YouTube channels. It allows content owners to authenticate once and get + * access to all their video and channel data, without having to provide + * authentication credentials for each individual channel. The CMS account that + * the user authenticates with must be linked to the specified YouTube content + * owner. + */ + public function delete($id, $optParams = array()) + { + $params = array('id' => $id); + $params = array_merge($params, $optParams); + return $this->call('delete', array($params)); + } + + /** + * Creates a group item. (groupItems.insert) + * + * @param Google_GroupItem $postBody + * @param array $optParams Optional parameters. + * + * @opt_param string onBehalfOfContentOwner Note: This parameter is intended + * exclusively for YouTube content partners. + * + * The onBehalfOfContentOwner parameter indicates that the request's + * authorization credentials identify a YouTube CMS user who is acting on behalf + * of the content owner specified in the parameter value. This parameter is + * intended for YouTube content partners that own and manage many different + * YouTube channels. It allows content owners to authenticate once and get + * access to all their video and channel data, without having to provide + * authentication credentials for each individual channel. The CMS account that + * the user authenticates with must be linked to the specified YouTube content + * owner. + * @return Google_Service_YouTubeAnalytics_GroupItem + */ + public function insert(Google_Service_YouTubeAnalytics_GroupItem $postBody, $optParams = array()) + { + $params = array('postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('insert', array($params), "Google_Service_YouTubeAnalytics_GroupItem"); + } + + /** + * Returns a collection of group items that match the API request parameters. + * (groupItems.listGroupItems) + * + * @param string $groupId The id parameter specifies the unique ID of the group + * for which you want to retrieve group items. + * @param array $optParams Optional parameters. + * + * @opt_param string onBehalfOfContentOwner Note: This parameter is intended + * exclusively for YouTube content partners. + * + * The onBehalfOfContentOwner parameter indicates that the request's + * authorization credentials identify a YouTube CMS user who is acting on behalf + * of the content owner specified in the parameter value. This parameter is + * intended for YouTube content partners that own and manage many different + * YouTube channels. It allows content owners to authenticate once and get + * access to all their video and channel data, without having to provide + * authentication credentials for each individual channel. The CMS account that + * the user authenticates with must be linked to the specified YouTube content + * owner. + * @return Google_Service_YouTubeAnalytics_GroupItemListResponse + */ + public function listGroupItems($groupId, $optParams = array()) + { + $params = array('groupId' => $groupId); + $params = array_merge($params, $optParams); + return $this->call('list', array($params), "Google_Service_YouTubeAnalytics_GroupItemListResponse"); + } +} + +/** + * The "groups" collection of methods. + * Typical usage is: + * + * $youtubeAnalyticsService = new Google_Service_YouTubeAnalytics(...); + * $groups = $youtubeAnalyticsService->groups; + * + */ +class Google_Service_YouTubeAnalytics_Groups_Resource extends Google_Service_Resource +{ + + /** + * Deletes a group. (groups.delete) + * + * @param string $id The id parameter specifies the YouTube group ID for the + * group that is being deleted. + * @param array $optParams Optional parameters. + * + * @opt_param string onBehalfOfContentOwner Note: This parameter is intended + * exclusively for YouTube content partners. + * + * The onBehalfOfContentOwner parameter indicates that the request's + * authorization credentials identify a YouTube CMS user who is acting on behalf + * of the content owner specified in the parameter value. This parameter is + * intended for YouTube content partners that own and manage many different + * YouTube channels. It allows content owners to authenticate once and get + * access to all their video and channel data, without having to provide + * authentication credentials for each individual channel. The CMS account that + * the user authenticates with must be linked to the specified YouTube content + * owner. + */ + public function delete($id, $optParams = array()) + { + $params = array('id' => $id); + $params = array_merge($params, $optParams); + return $this->call('delete', array($params)); + } + + /** + * Creates a group. (groups.insert) + * + * @param Google_Group $postBody + * @param array $optParams Optional parameters. + * + * @opt_param string onBehalfOfContentOwner Note: This parameter is intended + * exclusively for YouTube content partners. + * + * The onBehalfOfContentOwner parameter indicates that the request's + * authorization credentials identify a YouTube CMS user who is acting on behalf + * of the content owner specified in the parameter value. This parameter is + * intended for YouTube content partners that own and manage many different + * YouTube channels. It allows content owners to authenticate once and get + * access to all their video and channel data, without having to provide + * authentication credentials for each individual channel. The CMS account that + * the user authenticates with must be linked to the specified YouTube content + * owner. + * @return Google_Service_YouTubeAnalytics_Group + */ + public function insert(Google_Service_YouTubeAnalytics_Group $postBody, $optParams = array()) + { + $params = array('postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('insert', array($params), "Google_Service_YouTubeAnalytics_Group"); + } + + /** + * Returns a collection of groups that match the API request parameters. For + * example, you can retrieve all groups that the authenticated user owns, or you + * can retrieve one or more groups by their unique IDs. (groups.listGroups) + * + * @param array $optParams Optional parameters. + * + * @opt_param string onBehalfOfContentOwner Note: This parameter is intended + * exclusively for YouTube content partners. + * + * The onBehalfOfContentOwner parameter indicates that the request's + * authorization credentials identify a YouTube CMS user who is acting on behalf + * of the content owner specified in the parameter value. This parameter is + * intended for YouTube content partners that own and manage many different + * YouTube channels. It allows content owners to authenticate once and get + * access to all their video and channel data, without having to provide + * authentication credentials for each individual channel. The CMS account that + * the user authenticates with must be linked to the specified YouTube content + * owner. + * @opt_param string id The id parameter specifies a comma-separated list of the + * YouTube group ID(s) for the resource(s) that are being retrieved. In a group + * resource, the id property specifies the group's YouTube group ID. + * @opt_param bool mine Set this parameter's value to true to instruct the API + * to only return groups owned by the authenticated user. + * @return Google_Service_YouTubeAnalytics_GroupListResponse + */ + public function listGroups($optParams = array()) + { + $params = array(); + $params = array_merge($params, $optParams); + return $this->call('list', array($params), "Google_Service_YouTubeAnalytics_GroupListResponse"); + } + + /** + * Modifies a group. For example, you could change a group's title. + * (groups.update) + * + * @param Google_Group $postBody + * @param array $optParams Optional parameters. + * + * @opt_param string onBehalfOfContentOwner Note: This parameter is intended + * exclusively for YouTube content partners. + * + * The onBehalfOfContentOwner parameter indicates that the request's + * authorization credentials identify a YouTube CMS user who is acting on behalf + * of the content owner specified in the parameter value. This parameter is + * intended for YouTube content partners that own and manage many different + * YouTube channels. It allows content owners to authenticate once and get + * access to all their video and channel data, without having to provide + * authentication credentials for each individual channel. The CMS account that + * the user authenticates with must be linked to the specified YouTube content + * owner. + * @return Google_Service_YouTubeAnalytics_Group + */ + public function update(Google_Service_YouTubeAnalytics_Group $postBody, $optParams = array()) + { + $params = array('postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('update', array($params), "Google_Service_YouTubeAnalytics_Group"); + } +} + /** * The "reports" collection of methods. * Typical usage is: @@ -259,6 +603,10 @@ class Google_Service_YouTubeAnalytics_Reports_Resource extends Google_Service_Re * @opt_param int start-index An index of the first entity to retrieve. Use this * parameter as a pagination mechanism along with the max-results parameter * (one-based, inclusive). + * @opt_param string currency The currency to which financial metrics should be + * converted. The default is US Dollar (USD). If the result contains no + * financial metrics, this flag will be ignored. Responds with an error if the + * specified currency is not recognized. * @opt_param string filters A list of filters that should be applied when * retrieving YouTube Analytics data. The Available Reports document identifies * the dimensions that can be used to filter each report, and the Dimensions @@ -280,23 +628,28 @@ class Google_Service_YouTubeAnalytics_Reports_Resource extends Google_Service_Re -class Google_Service_YouTubeAnalytics_BatchReportDefinitionList extends Google_Collection +class Google_Service_YouTubeAnalytics_BatchReport extends Google_Collection { - protected $collection_key = 'items'; + protected $collection_key = 'outputs'; protected $internal_gapi_mappings = array( ); - protected $itemsType = 'Google_Service_YouTubeAnalytics_BatchReportDefinitionTemplate'; - protected $itemsDataType = 'array'; + public $id; public $kind; + protected $outputsType = 'Google_Service_YouTubeAnalytics_BatchReportOutputs'; + protected $outputsDataType = 'array'; + public $reportId; + protected $timeSpanType = 'Google_Service_YouTubeAnalytics_BatchReportTimeSpan'; + protected $timeSpanDataType = ''; + public $timeUpdated; - public function setItems($items) + public function setId($id) { - $this->items = $items; + $this->id = $id; } - public function getItems() + public function getId() { - return $this->items; + return $this->id; } public function setKind($kind) { @@ -306,29 +659,51 @@ class Google_Service_YouTubeAnalytics_BatchReportDefinitionList extends Google_C { return $this->kind; } + public function setOutputs($outputs) + { + $this->outputs = $outputs; + } + public function getOutputs() + { + return $this->outputs; + } + public function setReportId($reportId) + { + $this->reportId = $reportId; + } + public function getReportId() + { + return $this->reportId; + } + public function setTimeSpan(Google_Service_YouTubeAnalytics_BatchReportTimeSpan $timeSpan) + { + $this->timeSpan = $timeSpan; + } + public function getTimeSpan() + { + return $this->timeSpan; + } + public function setTimeUpdated($timeUpdated) + { + $this->timeUpdated = $timeUpdated; + } + public function getTimeUpdated() + { + return $this->timeUpdated; + } } -class Google_Service_YouTubeAnalytics_BatchReportDefinitionTemplate extends Google_Collection +class Google_Service_YouTubeAnalytics_BatchReportDefinition extends Google_Model { - protected $collection_key = 'defaultOutput'; protected $internal_gapi_mappings = array( ); - protected $defaultOutputType = 'Google_Service_YouTubeAnalytics_BatchReportDefinitionTemplateDefaultOutput'; - protected $defaultOutputDataType = 'array'; public $id; + public $kind; public $name; public $status; public $type; - public function setDefaultOutput($defaultOutput) - { - $this->defaultOutput = $defaultOutput; - } - public function getDefaultOutput() - { - return $this->defaultOutput; - } public function setId($id) { $this->id = $id; @@ -337,6 +712,14 @@ class Google_Service_YouTubeAnalytics_BatchReportDefinitionTemplate extends Goog { return $this->id; } + public function setKind($kind) + { + $this->kind = $kind; + } + public function getKind() + { + return $this->kind; + } public function setName($name) { $this->name = $name; @@ -363,38 +746,12 @@ class Google_Service_YouTubeAnalytics_BatchReportDefinitionTemplate extends Goog } } -class Google_Service_YouTubeAnalytics_BatchReportDefinitionTemplateDefaultOutput extends Google_Model -{ - protected $internal_gapi_mappings = array( - ); - public $format; - public $type; - - - public function setFormat($format) - { - $this->format = $format; - } - public function getFormat() - { - return $this->format; - } - public function setType($type) - { - $this->type = $type; - } - public function getType() - { - return $this->type; - } -} - -class Google_Service_YouTubeAnalytics_BatchReportList extends Google_Collection +class Google_Service_YouTubeAnalytics_BatchReportDefinitionList extends Google_Collection { protected $collection_key = 'items'; protected $internal_gapi_mappings = array( ); - protected $itemsType = 'Google_Service_YouTubeAnalytics_BatchReportTemplate'; + protected $itemsType = 'Google_Service_YouTubeAnalytics_BatchReportDefinition'; protected $itemsDataType = 'array'; public $kind; @@ -417,64 +774,35 @@ class Google_Service_YouTubeAnalytics_BatchReportList extends Google_Collection } } -class Google_Service_YouTubeAnalytics_BatchReportTemplate extends Google_Collection +class Google_Service_YouTubeAnalytics_BatchReportList extends Google_Collection { - protected $collection_key = 'outputs'; + protected $collection_key = 'items'; protected $internal_gapi_mappings = array( - "reportId" => "report_id", ); - public $id; - protected $outputsType = 'Google_Service_YouTubeAnalytics_BatchReportTemplateOutputs'; - protected $outputsDataType = 'array'; - public $reportId; - protected $timeSpanType = 'Google_Service_YouTubeAnalytics_BatchReportTemplateTimeSpan'; - protected $timeSpanDataType = ''; - public $timeUpdated; + protected $itemsType = 'Google_Service_YouTubeAnalytics_BatchReport'; + protected $itemsDataType = 'array'; + public $kind; - public function setId($id) + public function setItems($items) { - $this->id = $id; + $this->items = $items; } - public function getId() + public function getItems() { - return $this->id; + return $this->items; } - public function setOutputs($outputs) + public function setKind($kind) { - $this->outputs = $outputs; + $this->kind = $kind; } - public function getOutputs() + public function getKind() { - return $this->outputs; - } - public function setReportId($reportId) - { - $this->reportId = $reportId; - } - public function getReportId() - { - return $this->reportId; - } - public function setTimeSpan(Google_Service_YouTubeAnalytics_BatchReportTemplateTimeSpan $timeSpan) - { - $this->timeSpan = $timeSpan; - } - public function getTimeSpan() - { - return $this->timeSpan; - } - public function setTimeUpdated($timeUpdated) - { - $this->timeUpdated = $timeUpdated; - } - public function getTimeUpdated() - { - return $this->timeUpdated; + return $this->kind; } } -class Google_Service_YouTubeAnalytics_BatchReportTemplateOutputs extends Google_Model +class Google_Service_YouTubeAnalytics_BatchReportOutputs extends Google_Model { protected $internal_gapi_mappings = array( ); @@ -509,7 +837,7 @@ class Google_Service_YouTubeAnalytics_BatchReportTemplateOutputs extends Google_ } } -class Google_Service_YouTubeAnalytics_BatchReportTemplateTimeSpan extends Google_Model +class Google_Service_YouTubeAnalytics_BatchReportTimeSpan extends Google_Model { protected $internal_gapi_mappings = array( ); @@ -535,6 +863,267 @@ class Google_Service_YouTubeAnalytics_BatchReportTemplateTimeSpan extends Google } } +class Google_Service_YouTubeAnalytics_Group extends Google_Model +{ + protected $internal_gapi_mappings = array( + ); + protected $contentDetailsType = 'Google_Service_YouTubeAnalytics_GroupContentDetails'; + protected $contentDetailsDataType = ''; + public $etag; + public $id; + public $kind; + protected $snippetType = 'Google_Service_YouTubeAnalytics_GroupSnippet'; + protected $snippetDataType = ''; + + + public function setContentDetails(Google_Service_YouTubeAnalytics_GroupContentDetails $contentDetails) + { + $this->contentDetails = $contentDetails; + } + public function getContentDetails() + { + return $this->contentDetails; + } + public function setEtag($etag) + { + $this->etag = $etag; + } + public function getEtag() + { + return $this->etag; + } + public function setId($id) + { + $this->id = $id; + } + public function getId() + { + return $this->id; + } + public function setKind($kind) + { + $this->kind = $kind; + } + public function getKind() + { + return $this->kind; + } + public function setSnippet(Google_Service_YouTubeAnalytics_GroupSnippet $snippet) + { + $this->snippet = $snippet; + } + public function getSnippet() + { + return $this->snippet; + } +} + +class Google_Service_YouTubeAnalytics_GroupContentDetails extends Google_Model +{ + protected $internal_gapi_mappings = array( + ); + public $itemCount; + public $itemType; + + + public function setItemCount($itemCount) + { + $this->itemCount = $itemCount; + } + public function getItemCount() + { + return $this->itemCount; + } + public function setItemType($itemType) + { + $this->itemType = $itemType; + } + public function getItemType() + { + return $this->itemType; + } +} + +class Google_Service_YouTubeAnalytics_GroupItem extends Google_Model +{ + protected $internal_gapi_mappings = array( + ); + public $etag; + public $groupId; + public $id; + public $kind; + protected $resourceType = 'Google_Service_YouTubeAnalytics_GroupItemResource'; + protected $resourceDataType = ''; + + + public function setEtag($etag) + { + $this->etag = $etag; + } + public function getEtag() + { + return $this->etag; + } + public function setGroupId($groupId) + { + $this->groupId = $groupId; + } + public function getGroupId() + { + return $this->groupId; + } + public function setId($id) + { + $this->id = $id; + } + public function getId() + { + return $this->id; + } + public function setKind($kind) + { + $this->kind = $kind; + } + public function getKind() + { + return $this->kind; + } + public function setResource(Google_Service_YouTubeAnalytics_GroupItemResource $resource) + { + $this->resource = $resource; + } + public function getResource() + { + return $this->resource; + } +} + +class Google_Service_YouTubeAnalytics_GroupItemListResponse extends Google_Collection +{ + protected $collection_key = 'items'; + protected $internal_gapi_mappings = array( + ); + public $etag; + protected $itemsType = 'Google_Service_YouTubeAnalytics_GroupItem'; + protected $itemsDataType = 'array'; + public $kind; + + + public function setEtag($etag) + { + $this->etag = $etag; + } + public function getEtag() + { + return $this->etag; + } + public function setItems($items) + { + $this->items = $items; + } + public function getItems() + { + return $this->items; + } + public function setKind($kind) + { + $this->kind = $kind; + } + public function getKind() + { + return $this->kind; + } +} + +class Google_Service_YouTubeAnalytics_GroupItemResource extends Google_Model +{ + protected $internal_gapi_mappings = array( + ); + public $id; + public $kind; + + + public function setId($id) + { + $this->id = $id; + } + public function getId() + { + return $this->id; + } + public function setKind($kind) + { + $this->kind = $kind; + } + public function getKind() + { + return $this->kind; + } +} + +class Google_Service_YouTubeAnalytics_GroupListResponse extends Google_Collection +{ + protected $collection_key = 'items'; + protected $internal_gapi_mappings = array( + ); + public $etag; + protected $itemsType = 'Google_Service_YouTubeAnalytics_Group'; + protected $itemsDataType = 'array'; + public $kind; + + + public function setEtag($etag) + { + $this->etag = $etag; + } + public function getEtag() + { + return $this->etag; + } + public function setItems($items) + { + $this->items = $items; + } + public function getItems() + { + return $this->items; + } + public function setKind($kind) + { + $this->kind = $kind; + } + public function getKind() + { + return $this->kind; + } +} + +class Google_Service_YouTubeAnalytics_GroupSnippet extends Google_Model +{ + protected $internal_gapi_mappings = array( + ); + public $publishedAt; + public $title; + + + public function setPublishedAt($publishedAt) + { + $this->publishedAt = $publishedAt; + } + public function getPublishedAt() + { + return $this->publishedAt; + } + public function setTitle($title) + { + $this->title = $title; + } + public function getTitle() + { + return $this->title; + } +} + class Google_Service_YouTubeAnalytics_ResultTable extends Google_Collection { protected $collection_key = 'rows'; diff --git a/lib/google/src/Google/Signer/P12.php b/lib/google/src/Google/Signer/P12.php index 92ccbc8b1ee..1fbed87a825 100644 --- a/lib/google/src/Google/Signer/P12.php +++ b/lib/google/src/Google/Signer/P12.php @@ -15,7 +15,9 @@ * limitations under the License. */ -require_once realpath(dirname(__FILE__) . '/../../../autoload.php'); +if (!class_exists('Google_Client')) { + require_once dirname(__FILE__) . '/../autoload.php'; +} /** * Signs data. @@ -44,6 +46,8 @@ class Google_Signer_P12 extends Google_Signer_Abstract // at the time. if (!$password && strpos($p12, "-----BEGIN RSA PRIVATE KEY-----") !== false) { $this->privateKey = openssl_pkey_get_private($p12); + } elseif ($password === 'notasecret' && strpos($p12, "-----BEGIN PRIVATE KEY-----") !== false) { + $this->privateKey = openssl_pkey_get_private($p12); } else { // This throws on error $certs = array(); diff --git a/lib/google/src/Google/Task/Exception.php b/lib/google/src/Google/Task/Exception.php new file mode 100644 index 00000000000..231bf2b1db1 --- /dev/null +++ b/lib/google/src/Google/Task/Exception.php @@ -0,0 +1,24 @@ +getClassConfig('Google_Task_Runner'); + + if (isset($config['initial_delay'])) { + if ($config['initial_delay'] < 0) { + throw new Google_Task_Exception( + 'Task configuration `initial_delay` must not be negative.' + ); + } + + $this->delay = $config['initial_delay']; + } + + if (isset($config['max_delay'])) { + if ($config['max_delay'] <= 0) { + throw new Google_Task_Exception( + 'Task configuration `max_delay` must be greater than 0.' + ); + } + + $this->maxDelay = $config['max_delay']; + } + + if (isset($config['factor'])) { + if ($config['factor'] <= 0) { + throw new Google_Task_Exception( + 'Task configuration `factor` must be greater than 0.' + ); + } + + $this->factor = $config['factor']; + } + + if (isset($config['jitter'])) { + if ($config['jitter'] <= 0) { + throw new Google_Task_Exception( + 'Task configuration `jitter` must be greater than 0.' + ); + } + + $this->jitter = $config['jitter']; + } + + if (isset($config['retries'])) { + if ($config['retries'] < 0) { + throw new Google_Task_Exception( + 'Task configuration `retries` must not be negative.' + ); + } + $this->maxAttempts += $config['retries']; + } + + if (!is_callable($action)) { + throw new Google_Task_Exception( + 'Task argument `$action` must be a valid callable.' + ); + } + + $this->name = $name; + $this->client = $client; + $this->action = $action; + $this->arguments = $arguments; + } + + /** + * Checks if a retry can be attempted. + * + * @return boolean + */ + public function canAttmpt() + { + return $this->attempts < $this->maxAttempts; + } + + /** + * Runs the task and (if applicable) automatically retries when errors occur. + * + * @return mixed + * @throws Google_Task_Retryable on failure when no retries are available. + */ + public function run() + { + while ($this->attempt()) { + try { + return call_user_func_array($this->action, $this->arguments); + } catch (Google_Task_Retryable $exception) { + $allowedRetries = $exception->allowedRetries(); + + if (!$this->canAttmpt() || !$allowedRetries) { + throw $exception; + } + + if ($allowedRetries > 0) { + $this->maxAttempts = min( + $this->maxAttempts, + $this->attempts + $allowedRetries + ); + } + } + } + } + + /** + * Runs a task once, if possible. This is useful for bypassing the `run()` + * loop. + * + * NOTE: If this is not the first attempt, this function will sleep in + * accordance to the backoff configurations before running the task. + * + * @return boolean + */ + public function attempt() + { + if (!$this->canAttmpt()) { + return false; + } + + if ($this->attempts > 0) { + $this->backOff(); + } + + $this->attempts++; + return true; + } + + /** + * Sleeps in accordance to the backoff configurations. + */ + private function backOff() + { + $delay = $this->getDelay(); + + $this->client->getLogger()->debug( + 'Retrying task with backoff', + array( + 'request' => $this->name, + 'retry' => $this->attempts, + 'backoff_seconds' => $delay + ) + ); + + usleep($delay * 1000000); + } + + /** + * Gets the delay (in seconds) for the current backoff period. + * + * @return float + */ + private function getDelay() + { + $jitter = $this->getJitter(); + $factor = $this->attempts > 1 ? $this->factor + $jitter : 1 + abs($jitter); + + return $this->delay = min($this->maxDelay, $this->delay * $factor); + } + + /** + * Gets the current jitter (random number between -$this->jitter and + * $this->jitter). + * + * @return float + */ + private function getJitter() + { + return $this->jitter * 2 * mt_rand() / mt_getrandmax() - $this->jitter; + } +} diff --git a/lib/google/src/Google/Utils.php b/lib/google/src/Google/Utils.php index f5ef32cd4d6..2803daaa109 100644 --- a/lib/google/src/Google/Utils.php +++ b/lib/google/src/Google/Utils.php @@ -18,8 +18,6 @@ /** * Collection of static utility methods used for convenience across * the client library. - * - * @author Chirag Shah */ class Google_Utils { diff --git a/lib/google/src/Google/Utils/URITemplate.php b/lib/google/src/Google/Utils/URITemplate.php index f5ee38bb333..0e30f80c4bf 100644 --- a/lib/google/src/Google/Utils/URITemplate.php +++ b/lib/google/src/Google/Utils/URITemplate.php @@ -16,7 +16,7 @@ */ /** - * Implementation of levels 1-3 of the URI Template spec. + * Implementation of levels 1-3 of the URI Template spec. * @see http://tools.ietf.org/html/rfc6570 */ class Google_Utils_URITemplate @@ -26,7 +26,7 @@ class Google_Utils_URITemplate const TYPE_SCALAR = "4"; /** - * @var $operators array + * @var $operators array * These are valid at the start of a template block to * modify the way in which the variables inside are * processed. @@ -64,7 +64,7 @@ class Google_Utils_URITemplate /** * This function finds the first matching {...} block and * executes the replacement. It then calls itself to find - * subsequent blocks, if any. + * subsequent blocks, if any. */ private function resolveNextSection($string, $parameters) { @@ -213,7 +213,7 @@ class Google_Utils_URITemplate if (isset($parameters[$key])) { $data_type = $this->getDataType($parameters[$key]); - switch($data_type) { + switch ($data_type) { case self::TYPE_SCALAR: $value = $this->getValue($parameters[$key], $length); break; diff --git a/lib/google/src/Google/Verifier/Pem.php b/lib/google/src/Google/Verifier/Pem.php index 563553b4620..3d6e0fd2d59 100644 --- a/lib/google/src/Google/Verifier/Pem.php +++ b/lib/google/src/Google/Verifier/Pem.php @@ -15,7 +15,9 @@ * limitations under the License. */ -require_once realpath(dirname(__FILE__) . '/../../../autoload.php'); +if (!class_exists('Google_Client')) { + require_once dirname(__FILE__) . '/../autoload.php'; +} /** * Verifies signatures using PEM encoded certificates. diff --git a/lib/google/src/Google/autoload.php b/lib/google/src/Google/autoload.php new file mode 100644 index 00000000000..89e2a185fef --- /dev/null +++ b/lib/google/src/Google/autoload.php @@ -0,0 +1,32 @@ +google Google APIs Client Library Apache - 1.1.2 + 1.1.5 2.0 diff --git a/lib/upgrade.txt b/lib/upgrade.txt index 5d25e3f6da9..b0fab697d85 100644 --- a/lib/upgrade.txt +++ b/lib/upgrade.txt @@ -3,6 +3,7 @@ information provided here is intended especially for developers. === 3.0 === +* Google libraries (lib/google) updated to 1.1.5 * External functions x_is_allowed_from_ajax() methods have been deprecated. Define 'ajax' => true in db/services.php instead. * External functions can be called without a session if they define 'loginrequired' => true in db/services.php. * All plugins are required to declare their frankenstyle component name via