Google Apps Login - Version 2.3.1

Version Description

Fixed conflicts with some other plugins such as Google Analyticator which use similar Google client libraries.

Download this release

Release Info

Developer danlester
Plugin Icon 128x128 Google Apps Login
Version 2.3.1
Comparing to
See all releases

Code changes from version 2.3 to 2.3.1

Files changed (52) hide show
  1. core/Google/Auth/Abstract.php +5 -5
  2. core/Google/Auth/AssertionCredentials.php +6 -6
  3. core/Google/Auth/Exception.php +1 -1
  4. core/Google/Auth/LoginTicket.php +3 -3
  5. core/Google/Auth/OAuth2.php +47 -47
  6. core/Google/Auth/Simple.php +7 -7
  7. core/Google/Cache/Abstract.php +2 -2
  8. core/Google/Cache/Apc.php +4 -4
  9. core/Google/Cache/Exception.php +1 -1
  10. core/Google/Cache/File.php +4 -4
  11. core/Google/Cache/Memcache.php +7 -7
  12. core/Google/Cache/Null.php +2 -2
  13. core/Google/Client.php +38 -38
  14. core/Google/Collection.php +2 -2
  15. core/Google/Config.php +10 -10
  16. core/Google/Exception.php +1 -1
  17. core/Google/Http/Batch.php +10 -10
  18. core/Google/Http/CacheParser.php +10 -10
  19. core/Google/Http/MediaFileUpload.php +10 -10
  20. core/Google/Http/REST.php +11 -11
  21. core/Google/Http/Request.php +3 -3
  22. core/Google/IO/Abstract.php +27 -27
  23. core/Google/IO/Curl.php +8 -8
  24. core/Google/IO/Exception.php +1 -1
  25. core/Google/IO/Stream.php +7 -7
  26. core/Google/Model.php +5 -5
  27. core/Google/README.md +3 -3
  28. core/Google/Service.php +4 -4
  29. core/Google/Service/AdExchangeBuyer.php +64 -64
  30. core/Google/Service/AdExchangeSeller.php +109 -109
  31. core/Google/Service/AdSense.php +213 -213
  32. core/Google/Service/AdSenseHost.php +134 -134
  33. core/Google/Service/Admin.php +9 -9
  34. core/Google/Service/Analytics.php +341 -341
  35. core/Google/Service/AndroidPublisher.php +15 -15
  36. core/Google/Service/AppState.php +21 -21
  37. core/Google/Service/Audit.php +21 -21
  38. core/Google/Service/Bigquery.php +201 -201
  39. core/Google/Service/Blogger.php +184 -184
  40. core/Google/Service/Books.php +325 -325
  41. core/Google/Service/Calendar.php +185 -185
  42. core/Google/Service/CivicInfo.php +81 -81
  43. core/Google/Service/Compute.php +498 -498
  44. core/Google/Service/Coordinate.php +81 -81
  45. core/Google/Service/Customsearch.php +39 -39
  46. core/Google/Service/Datastore.php +146 -146
  47. core/Google/Service/Dfareporting.php +195 -195
  48. core/Google/Service/Directory.php +242 -242
  49. core/Google/Service/Dns.php +50 -50
  50. core/Google/Service/DoubleClickBidManager.php +73 -73
  51. core/Google/Service/Doubleclicksearch.php +73 -73
  52. core/Google/Service/Drive.php +64 -64
core/Google/Auth/Abstract.php CHANGED
@@ -21,19 +21,19 @@ require_once "Google/Http/Request.php";
21
  * @author Chris Chabot <chabotc@google.com>
22
  *
23
  */
24
- abstract class Google_Auth_Abstract
25
  {
26
  /**
27
  * An utility function that first calls $this->auth->sign($request) and then
28
  * executes makeRequest() on that signed request. Used for when a request
29
  * should be authenticated
30
- * @param Google_Http_Request $request
31
- * @return Google_Http_Request $request
32
  */
33
- abstract public function authenticatedRequest(Google_Http_Request $request);
34
 
35
  abstract public function authenticate($code);
36
- abstract public function sign(Google_Http_Request $request);
37
  abstract public function createAuthUrl($scope);
38
 
39
  abstract public function refreshToken($refreshToken);
21
  * @author Chris Chabot <chabotc@google.com>
22
  *
23
  */
24
+ abstract class GoogleGAL_Auth_Abstract
25
  {
26
  /**
27
  * An utility function that first calls $this->auth->sign($request) and then
28
  * executes makeRequest() on that signed request. Used for when a request
29
  * should be authenticated
30
+ * @param GoogleGAL_Http_Request $request
31
+ * @return GoogleGAL_Http_Request $request
32
  */
33
+ abstract public function authenticatedRequest(GoogleGAL_Http_Request $request);
34
 
35
  abstract public function authenticate($code);
36
+ abstract public function sign(GoogleGAL_Http_Request $request);
37
  abstract public function createAuthUrl($scope);
38
 
39
  abstract public function refreshToken($refreshToken);
core/Google/Auth/AssertionCredentials.php CHANGED
@@ -24,7 +24,7 @@ require_once "Google/Utils.php";
24
  *
25
  * @author Chirag Shah <chirags@google.com>
26
  */
27
- class Google_Auth_AssertionCredentials
28
  {
29
  const MAX_TOKEN_LIFETIME_SECS = 3600;
30
 
@@ -93,7 +93,7 @@ class Google_Auth_AssertionCredentials
93
  $now = time();
94
 
95
  $jwtParams = array(
96
- 'aud' => Google_Auth_OAuth2::OAUTH2_TOKEN_URI,
97
  'scope' => $this->scopes,
98
  'iat' => $now,
99
  'exp' => $now + self::MAX_TOKEN_LIFETIME_SECS,
@@ -119,14 +119,14 @@ class Google_Auth_AssertionCredentials
119
  $header = array('typ' => 'JWT', 'alg' => 'RS256');
120
 
121
  $segments = array(
122
- Google_Utils::urlSafeB64Encode(json_encode($header)),
123
- Google_Utils::urlSafeB64Encode(json_encode($payload))
124
  );
125
 
126
  $signingInput = implode('.', $segments);
127
- $signer = new Google_Signer_P12($this->privateKey, $this->privateKeyPassword);
128
  $signature = $signer->sign($signingInput);
129
- $segments[] = Google_Utils::urlSafeB64Encode($signature);
130
 
131
  return implode(".", $segments);
132
  }
24
  *
25
  * @author Chirag Shah <chirags@google.com>
26
  */
27
+ class GoogleGAL_Auth_AssertionCredentials
28
  {
29
  const MAX_TOKEN_LIFETIME_SECS = 3600;
30
 
93
  $now = time();
94
 
95
  $jwtParams = array(
96
+ 'aud' => GoogleGAL_Auth_OAuth2::OAUTH2_TOKEN_URI,
97
  'scope' => $this->scopes,
98
  'iat' => $now,
99
  'exp' => $now + self::MAX_TOKEN_LIFETIME_SECS,
119
  $header = array('typ' => 'JWT', 'alg' => 'RS256');
120
 
121
  $segments = array(
122
+ GoogleGAL_Utils::urlSafeB64Encode(json_encode($header)),
123
+ GoogleGAL_Utils::urlSafeB64Encode(json_encode($payload))
124
  );
125
 
126
  $signingInput = implode('.', $segments);
127
+ $signer = new GoogleGAL_Signer_P12($this->privateKey, $this->privateKeyPassword);
128
  $signature = $signer->sign($signingInput);
129
+ $segments[] = GoogleGAL_Utils::urlSafeB64Encode($signature);
130
 
131
  return implode(".", $segments);
132
  }
core/Google/Auth/Exception.php CHANGED
@@ -17,6 +17,6 @@
17
 
18
  require_once "Google/Exception.php";
19
 
20
- class Google_Auth_Exception extends Google_Exception
21
  {
22
  }
17
 
18
  require_once "Google/Exception.php";
19
 
20
+ class GoogleGAL_Auth_Exception extends GoogleGAL_Exception
21
  {
22
  }
core/Google/Auth/LoginTicket.php CHANGED
@@ -22,7 +22,7 @@ require_once "Google/Auth/Exception.php";
22
  *
23
  * @author Brian Eaton <beaton@google.com>
24
  */
25
- class Google_Auth_LoginTicket
26
  {
27
  const USER_ATTR = "sub";
28
 
@@ -46,7 +46,7 @@ class Google_Auth_LoginTicket
46
 
47
  /**
48
  * Returns the numeric identifier for the user.
49
- * @throws Google_Auth_Exception
50
  * @return
51
  */
52
  public function getUserId()
@@ -54,7 +54,7 @@ class Google_Auth_LoginTicket
54
  if (array_key_exists(self::USER_ATTR, $this->payload)) {
55
  return $this->payload[self::USER_ATTR];
56
  }
57
- throw new Google_Auth_Exception("No user_id in token");
58
  }
59
 
60
  /**
22
  *
23
  * @author Brian Eaton <beaton@google.com>
24
  */
25
+ class GoogleGAL_Auth_LoginTicket
26
  {
27
  const USER_ATTR = "sub";
28
 
46
 
47
  /**
48
  * Returns the numeric identifier for the user.
49
+ * @throws GoogleGAL_Auth_Exception
50
  * @return
51
  */
52
  public function getUserId()
54
  if (array_key_exists(self::USER_ATTR, $this->payload)) {
55
  return $this->payload[self::USER_ATTR];
56
  }
57
+ throw new GoogleGAL_Auth_Exception("No user_id in token");
58
  }
59
 
60
  /**
core/Google/Auth/OAuth2.php CHANGED
@@ -31,7 +31,7 @@ require_once "Google/Verifier/Pem.php";
31
  * @author Chirag Shah <chirags@google.com>
32
  *
33
  */
34
- class Google_Auth_OAuth2 extends Google_Auth_Abstract
35
  {
36
  const OAUTH2_REVOKE_URI = 'https://accounts.google.com/o/oauth2/revoke';
37
  const OAUTH2_TOKEN_URI = 'https://accounts.google.com/o/oauth2/token';
@@ -41,7 +41,7 @@ class Google_Auth_OAuth2 extends Google_Auth_Abstract
41
  const MAX_TOKEN_LIFETIME_SECS = 86400; // one day in seconds
42
  const OAUTH2_ISSUER = 'accounts.google.com';
43
 
44
- /** @var Google_Auth_AssertionCredentials $assertionCredentials */
45
  private $assertionCredentials;
46
 
47
  /**
@@ -55,7 +55,7 @@ class Google_Auth_OAuth2 extends Google_Auth_Abstract
55
  private $token = array();
56
 
57
  /**
58
- * @var Google_Client the base client
59
  */
60
  private $client;
61
 
@@ -63,7 +63,7 @@ class Google_Auth_OAuth2 extends Google_Auth_Abstract
63
  * Instantiates the class, but does not initiate the login flow, leaving it
64
  * to the discretion of the caller.
65
  */
66
- public function __construct(Google_Client $client)
67
  {
68
  $this->client = $client;
69
  }
@@ -74,11 +74,11 @@ class Google_Auth_OAuth2 extends Google_Auth_Abstract
74
  * (which can modify the request in what ever way fits the auth mechanism)
75
  * and then calls apiCurlIO::makeRequest on the signed request
76
  *
77
- * @param Google_Http_Request $request
78
- * @return Google_Http_Request The resulting HTTP response including the
79
  * responseHttpCode, responseHeaders and responseBody.
80
  */
81
- public function authenticatedRequest(Google_Http_Request $request)
82
  {
83
  $request = $this->sign($request);
84
  return $this->client->getIo()->makeRequest($request);
@@ -86,18 +86,18 @@ class Google_Auth_OAuth2 extends Google_Auth_Abstract
86
 
87
  /**
88
  * @param string $code
89
- * @throws Google_Auth_Exception
90
  * @return string
91
  */
92
  public function authenticate($code)
93
  {
94
  if (strlen($code) == 0) {
95
- throw new Google_Auth_Exception("Invalid code");
96
  }
97
 
98
  // We got here from the redirect from a successful authorization grant,
99
  // fetch the access token
100
- $request = new Google_Http_Request(
101
  self::OAUTH2_TOKEN_URI,
102
  'POST',
103
  array(),
@@ -121,7 +121,7 @@ class Google_Auth_OAuth2 extends Google_Auth_Abstract
121
  if ($decodedResponse != null && $decodedResponse['error']) {
122
  $decodedResponse = $decodedResponse['error'];
123
  }
124
- throw new Google_Auth_Exception(
125
  sprintf(
126
  "Error fetching OAuth2 access token, message: '%s'",
127
  $decodedResponse
@@ -165,16 +165,16 @@ class Google_Auth_OAuth2 extends Google_Auth_Abstract
165
 
166
  /**
167
  * @param string $token
168
- * @throws Google_Auth_Exception
169
  */
170
  public function setAccessToken($token)
171
  {
172
  $token = json_decode($token, true);
173
  if ($token == null) {
174
- throw new Google_Auth_Exception('Could not json decode the token');
175
  }
176
  if (! isset($token['access_token'])) {
177
- throw new Google_Auth_Exception("Invalid token format");
178
  }
179
  $this->token = $token;
180
  }
@@ -189,18 +189,18 @@ class Google_Auth_OAuth2 extends Google_Auth_Abstract
189
  $this->state = $state;
190
  }
191
 
192
- public function setAssertionCredentials(Google_Auth_AssertionCredentials $creds)
193
  {
194
  $this->assertionCredentials = $creds;
195
  }
196
 
197
  /**
198
  * Include an accessToken in a given apiHttpRequest.
199
- * @param Google_Http_Request $request
200
- * @return Google_Http_Request
201
- * @throws Google_Auth_Exception
202
  */
203
- public function sign(Google_Http_Request $request)
204
  {
205
  // add the developer key to the request before signing it
206
  if ($this->client->getClassConfig($this, 'developer_key')) {
@@ -219,7 +219,7 @@ class Google_Auth_OAuth2 extends Google_Auth_Abstract
219
  $this->refreshTokenWithAssertion();
220
  } else {
221
  if (! array_key_exists('refresh_token', $this->token)) {
222
- throw new Google_Auth_Exception(
223
  "The OAuth 2.0 access token has expired,"
224
  ." and a refresh token is not available. Refresh tokens"
225
  ." are not returned for responses that were auto-approved."
@@ -256,7 +256,7 @@ class Google_Auth_OAuth2 extends Google_Auth_Abstract
256
 
257
  /**
258
  * Fetches a fresh access token with a given assertion token.
259
- * @param Google_Auth_AssertionCredentials $assertionCredentials optional.
260
  * @return void
261
  */
262
  public function refreshTokenWithAssertion($assertionCredentials = null)
@@ -299,7 +299,7 @@ class Google_Auth_OAuth2 extends Google_Auth_Abstract
299
 
300
  private function refreshTokenRequest($params)
301
  {
302
- $http = new Google_Http_Request(
303
  self::OAUTH2_TOKEN_URI,
304
  'POST',
305
  array(),
@@ -313,25 +313,25 @@ class Google_Auth_OAuth2 extends Google_Auth_Abstract
313
  if (200 == $code) {
314
  $token = json_decode($body, true);
315
  if ($token == null) {
316
- throw new Google_Auth_Exception("Could not json decode the access token");
317
  }
318
 
319
  if (! isset($token['access_token']) || ! isset($token['expires_in'])) {
320
- throw new Google_Auth_Exception("Invalid token format");
321
  }
322
 
323
  $this->token['access_token'] = $token['access_token'];
324
  $this->token['expires_in'] = $token['expires_in'];
325
  $this->token['created'] = time();
326
  } else {
327
- throw new Google_Auth_Exception("Error refreshing the OAuth2 token, message: '$body'", $code);
328
  }
329
  }
330
 
331
  /**
332
  * Revoke an OAuth2 access token or refresh token. This method will revoke the current access
333
  * token, if a token isn't provided.
334
- * @throws Google_Auth_Exception
335
  * @param string|null $token The token (access token or a refresh token) that should be revoked.
336
  * @return boolean Returns True if the revocation was successful, otherwise False.
337
  */
@@ -347,7 +347,7 @@ class Google_Auth_OAuth2 extends Google_Auth_Abstract
347
  $token = $this->token['access_token'];
348
  }
349
  }
350
- $request = new Google_Http_Request(
351
  self::OAUTH2_REVOKE_URI,
352
  'POST',
353
  array(),
@@ -404,7 +404,7 @@ class Google_Auth_OAuth2 extends Google_Auth_Abstract
404
  if ($file) {
405
  return json_decode($file, true);
406
  } else {
407
- throw new Google_Auth_Exception(
408
  "Failed to retrieve verification certificates: '" .
409
  $url . "'."
410
  );
@@ -413,7 +413,7 @@ class Google_Auth_OAuth2 extends Google_Auth_Abstract
413
 
414
  // This relies on makeRequest caching certificate responses.
415
  $request = $this->client->getIo()->makeRequest(
416
- new Google_Http_Request(
417
  $url
418
  )
419
  );
@@ -423,7 +423,7 @@ class Google_Auth_OAuth2 extends Google_Auth_Abstract
423
  return $certs;
424
  }
425
  }
426
- throw new Google_Auth_Exception(
427
  "Failed to retrieve verification certificates: '" .
428
  $request->getResponseBody() . "'.",
429
  $request->getResponseHttpCode()
@@ -438,7 +438,7 @@ class Google_Auth_OAuth2 extends Google_Auth_Abstract
438
  *
439
  * @param $id_token
440
  * @param $audience
441
- * @return Google_Auth_LoginTicket
442
  */
443
  public function verifyIdToken($id_token = null, $audience = null)
444
  {
@@ -477,28 +477,28 @@ class Google_Auth_OAuth2 extends Google_Auth_Abstract
477
 
478
  $segments = explode(".", $jwt);
479
  if (count($segments) != 3) {
480
- throw new Google_Auth_Exception("Wrong number of segments in token: $jwt");
481
  }
482
  $signed = $segments[0] . "." . $segments[1];
483
- $signature = Google_Utils::urlSafeB64Decode($segments[2]);
484
 
485
  // Parse envelope.
486
- $envelope = json_decode(Google_Utils::urlSafeB64Decode($segments[0]), true);
487
  if (!$envelope) {
488
- throw new Google_Auth_Exception("Can't parse token envelope: " . $segments[0]);
489
  }
490
 
491
  // Parse token
492
- $json_body = Google_Utils::urlSafeB64Decode($segments[1]);
493
  $payload = json_decode($json_body, true);
494
  if (!$payload) {
495
- throw new Google_Auth_Exception("Can't parse token payload: " . $segments[1]);
496
  }
497
 
498
  // Check signature
499
  $verified = false;
500
  foreach ($certs as $keyName => $pem) {
501
- $public_key = new Google_Verifier_Pem($pem);
502
  if ($public_key->verify($signed, $signature)) {
503
  $verified = true;
504
  break;
@@ -506,7 +506,7 @@ class Google_Auth_OAuth2 extends Google_Auth_Abstract
506
  }
507
 
508
  if (!$verified) {
509
- throw new Google_Auth_Exception("Invalid token signature: $jwt");
510
  }
511
 
512
  // Check issued-at timestamp
@@ -515,7 +515,7 @@ class Google_Auth_OAuth2 extends Google_Auth_Abstract
515
  $iat = $payload["iat"];
516
  }
517
  if (!$iat) {
518
- throw new Google_Auth_Exception("No issue time in token: $json_body");
519
  }
520
  $earliest = $iat - self::CLOCK_SKEW_SECS;
521
 
@@ -526,17 +526,17 @@ class Google_Auth_OAuth2 extends Google_Auth_Abstract
526
  $exp = $payload["exp"];
527
  }
528
  if (!$exp) {
529
- throw new Google_Auth_Exception("No expiration time in token: $json_body");
530
  }
531
  if ($exp >= $now + $max_expiry) {
532
- throw new Google_Auth_Exception(
533
  sprintf("Expiration time too far in future: %s", $json_body)
534
  );
535
  }
536
 
537
  $latest = $exp + self::CLOCK_SKEW_SECS;
538
  if ($now < $earliest) {
539
- throw new Google_Auth_Exception(
540
  sprintf(
541
  "Token used too early, %s < %s: %s",
542
  $now,
@@ -546,7 +546,7 @@ class Google_Auth_OAuth2 extends Google_Auth_Abstract
546
  );
547
  }
548
  if ($now > $latest) {
549
- throw new Google_Auth_Exception(
550
  sprintf(
551
  "Token used too late, %s > %s: %s",
552
  $now,
@@ -558,7 +558,7 @@ class Google_Auth_OAuth2 extends Google_Auth_Abstract
558
 
559
  $iss = $payload['iss'];
560
  if ($issuer && $iss != $issuer) {
561
- throw new Google_Auth_Exception(
562
  sprintf(
563
  "Invalid issuer, %s != %s: %s",
564
  $iss,
@@ -571,7 +571,7 @@ class Google_Auth_OAuth2 extends Google_Auth_Abstract
571
  // Check audience
572
  $aud = $payload["aud"];
573
  if ($aud != $required_audience) {
574
- throw new Google_Auth_Exception(
575
  sprintf(
576
  "Wrong recipient, %s != %s:",
577
  $aud,
@@ -582,6 +582,6 @@ class Google_Auth_OAuth2 extends Google_Auth_Abstract
582
  }
583
 
584
  // All good.
585
- return new Google_Auth_LoginTicket($envelope, $payload);
586
  }
587
  }
31
  * @author Chirag Shah <chirags@google.com>
32
  *
33
  */
34
+ class GoogleGAL_Auth_OAuth2 extends GoogleGAL_Auth_Abstract
35
  {
36
  const OAUTH2_REVOKE_URI = 'https://accounts.google.com/o/oauth2/revoke';
37
  const OAUTH2_TOKEN_URI = 'https://accounts.google.com/o/oauth2/token';
41
  const MAX_TOKEN_LIFETIME_SECS = 86400; // one day in seconds
42
  const OAUTH2_ISSUER = 'accounts.google.com';
43
 
44
+ /** @var GoogleGAL_Auth_AssertionCredentials $assertionCredentials */
45
  private $assertionCredentials;
46
 
47
  /**
55
  private $token = array();
56
 
57
  /**
58
+ * @var GoogleGAL_Client the base client
59
  */
60
  private $client;
61
 
63
  * Instantiates the class, but does not initiate the login flow, leaving it
64
  * to the discretion of the caller.
65
  */
66
+ public function __construct(GoogleGAL_Client $client)
67
  {
68
  $this->client = $client;
69
  }
74
  * (which can modify the request in what ever way fits the auth mechanism)
75
  * and then calls apiCurlIO::makeRequest on the signed request
76
  *
77
+ * @param GoogleGAL_Http_Request $request
78
+ * @return GoogleGAL_Http_Request The resulting HTTP response including the
79
  * responseHttpCode, responseHeaders and responseBody.
80
  */
81
+ public function authenticatedRequest(GoogleGAL_Http_Request $request)
82
  {
83
  $request = $this->sign($request);
84
  return $this->client->getIo()->makeRequest($request);
86
 
87
  /**
88
  * @param string $code
89
+ * @throws GoogleGAL_Auth_Exception
90
  * @return string
91
  */
92
  public function authenticate($code)
93
  {
94
  if (strlen($code) == 0) {
95
+ throw new GoogleGAL_Auth_Exception("Invalid code");
96
  }
97
 
98
  // We got here from the redirect from a successful authorization grant,
99
  // fetch the access token
100
+ $request = new GoogleGAL_Http_Request(
101
  self::OAUTH2_TOKEN_URI,
102
  'POST',
103
  array(),
121
  if ($decodedResponse != null && $decodedResponse['error']) {
122
  $decodedResponse = $decodedResponse['error'];
123
  }
124
+ throw new GoogleGAL_Auth_Exception(
125
  sprintf(
126
  "Error fetching OAuth2 access token, message: '%s'",
127
  $decodedResponse
165
 
166
  /**
167
  * @param string $token
168
+ * @throws GoogleGAL_Auth_Exception
169
  */
170
  public function setAccessToken($token)
171
  {
172
  $token = json_decode($token, true);
173
  if ($token == null) {
174
+ throw new GoogleGAL_Auth_Exception('Could not json decode the token');
175
  }
176
  if (! isset($token['access_token'])) {
177
+ throw new GoogleGAL_Auth_Exception("Invalid token format");
178
  }
179
  $this->token = $token;
180
  }
189
  $this->state = $state;
190
  }
191
 
192
+ public function setAssertionCredentials(GoogleGAL_Auth_AssertionCredentials $creds)
193
  {
194
  $this->assertionCredentials = $creds;
195
  }
196
 
197
  /**
198
  * Include an accessToken in a given apiHttpRequest.
199
+ * @param GoogleGAL_Http_Request $request
200
+ * @return GoogleGAL_Http_Request
201
+ * @throws GoogleGAL_Auth_Exception
202
  */
203
+ public function sign(GoogleGAL_Http_Request $request)
204
  {
205
  // add the developer key to the request before signing it
206
  if ($this->client->getClassConfig($this, 'developer_key')) {
219
  $this->refreshTokenWithAssertion();
220
  } else {
221
  if (! array_key_exists('refresh_token', $this->token)) {
222
+ throw new GoogleGAL_Auth_Exception(
223
  "The OAuth 2.0 access token has expired,"
224
  ." and a refresh token is not available. Refresh tokens"
225
  ." are not returned for responses that were auto-approved."
256
 
257
  /**
258
  * Fetches a fresh access token with a given assertion token.
259
+ * @param GoogleGAL_Auth_AssertionCredentials $assertionCredentials optional.
260
  * @return void
261
  */
262
  public function refreshTokenWithAssertion($assertionCredentials = null)
299
 
300
  private function refreshTokenRequest($params)
301
  {
302
+ $http = new GoogleGAL_Http_Request(
303
  self::OAUTH2_TOKEN_URI,
304
  'POST',
305
  array(),
313
  if (200 == $code) {
314
  $token = json_decode($body, true);
315
  if ($token == null) {
316
+ throw new GoogleGAL_Auth_Exception("Could not json decode the access token");
317
  }
318
 
319
  if (! isset($token['access_token']) || ! isset($token['expires_in'])) {
320
+ throw new GoogleGAL_Auth_Exception("Invalid token format");
321
  }
322
 
323
  $this->token['access_token'] = $token['access_token'];
324
  $this->token['expires_in'] = $token['expires_in'];
325
  $this->token['created'] = time();
326
  } else {
327
+ throw new GoogleGAL_Auth_Exception("Error refreshing the OAuth2 token, message: '$body'", $code);
328
  }
329
  }
330
 
331
  /**
332
  * Revoke an OAuth2 access token or refresh token. This method will revoke the current access
333
  * token, if a token isn't provided.
334
+ * @throws GoogleGAL_Auth_Exception
335
  * @param string|null $token The token (access token or a refresh token) that should be revoked.
336
  * @return boolean Returns True if the revocation was successful, otherwise False.
337
  */
347
  $token = $this->token['access_token'];
348
  }
349
  }
350
+ $request = new GoogleGAL_Http_Request(
351
  self::OAUTH2_REVOKE_URI,
352
  'POST',
353
  array(),
404
  if ($file) {
405
  return json_decode($file, true);
406
  } else {
407
+ throw new GoogleGAL_Auth_Exception(
408
  "Failed to retrieve verification certificates: '" .
409
  $url . "'."
410
  );
413
 
414
  // This relies on makeRequest caching certificate responses.
415
  $request = $this->client->getIo()->makeRequest(
416
+ new GoogleGAL_Http_Request(
417
  $url
418
  )
419
  );
423
  return $certs;
424
  }
425
  }
426
+ throw new GoogleGAL_Auth_Exception(
427
  "Failed to retrieve verification certificates: '" .
428
  $request->getResponseBody() . "'.",
429
  $request->getResponseHttpCode()
438
  *
439
  * @param $id_token
440
  * @param $audience
441
+ * @return GoogleGAL_Auth_LoginTicket
442
  */
443
  public function verifyIdToken($id_token = null, $audience = null)
444
  {
477
 
478
  $segments = explode(".", $jwt);
479
  if (count($segments) != 3) {
480
+ throw new GoogleGAL_Auth_Exception("Wrong number of segments in token: $jwt");
481
  }
482
  $signed = $segments[0] . "." . $segments[1];
483
+ $signature = GoogleGAL_Utils::urlSafeB64Decode($segments[2]);
484
 
485
  // Parse envelope.
486
+ $envelope = json_decode(GoogleGAL_Utils::urlSafeB64Decode($segments[0]), true);
487
  if (!$envelope) {
488
+ throw new GoogleGAL_Auth_Exception("Can't parse token envelope: " . $segments[0]);
489
  }
490
 
491
  // Parse token
492
+ $json_body = GoogleGAL_Utils::urlSafeB64Decode($segments[1]);
493
  $payload = json_decode($json_body, true);
494
  if (!$payload) {
495
+ throw new GoogleGAL_Auth_Exception("Can't parse token payload: " . $segments[1]);
496
  }
497
 
498
  // Check signature
499
  $verified = false;
500
  foreach ($certs as $keyName => $pem) {
501
+ $public_key = new GoogleGAL_Verifier_Pem($pem);
502
  if ($public_key->verify($signed, $signature)) {
503
  $verified = true;
504
  break;
506
  }
507
 
508
  if (!$verified) {
509
+ throw new GoogleGAL_Auth_Exception("Invalid token signature: $jwt");
510
  }
511
 
512
  // Check issued-at timestamp
515
  $iat = $payload["iat"];
516
  }
517
  if (!$iat) {
518
+ throw new GoogleGAL_Auth_Exception("No issue time in token: $json_body");
519
  }
520
  $earliest = $iat - self::CLOCK_SKEW_SECS;
521
 
526
  $exp = $payload["exp"];
527
  }
528
  if (!$exp) {
529
+ throw new GoogleGAL_Auth_Exception("No expiration time in token: $json_body");
530
  }
531
  if ($exp >= $now + $max_expiry) {
532
+ throw new GoogleGAL_Auth_Exception(
533
  sprintf("Expiration time too far in future: %s", $json_body)
534
  );
535
  }
536
 
537
  $latest = $exp + self::CLOCK_SKEW_SECS;
538
  if ($now < $earliest) {
539
+ throw new GoogleGAL_Auth_Exception(
540
  sprintf(
541
  "Token used too early, %s < %s: %s",
542
  $now,
546
  );
547
  }
548
  if ($now > $latest) {
549
+ throw new GoogleGAL_Auth_Exception(
550
  sprintf(
551
  "Token used too late, %s > %s: %s",
552
  $now,
558
 
559
  $iss = $payload['iss'];
560
  if ($issuer && $iss != $issuer) {
561
+ throw new GoogleGAL_Auth_Exception(
562
  sprintf(
563
  "Invalid issuer, %s != %s: %s",
564
  $iss,
571
  // Check audience
572
  $aud = $payload["aud"];
573
  if ($aud != $required_audience) {
574
+ throw new GoogleGAL_Auth_Exception(
575
  sprintf(
576
  "Wrong recipient, %s != %s:",
577
  $aud,
582
  }
583
 
584
  // All good.
585
+ return new GoogleGAL_Auth_LoginTicket($envelope, $payload);
586
  }
587
  }
core/Google/Auth/Simple.php CHANGED
@@ -25,12 +25,12 @@ require_once "Google/Http/Request.php";
25
  * @author Chris Chabot <chabotc@google.com>
26
  * @author Chirag Shah <chirags@google.com>
27
  */
28
- class Google_Auth_Simple extends Google_Auth_Abstract
29
  {
30
  private $key = null;
31
  private $client;
32
 
33
- public function __construct(Google_Client $client, $config = null)
34
  {
35
  $this->client = $client;
36
  }
@@ -41,11 +41,11 @@ class Google_Auth_Simple extends Google_Auth_Abstract
41
  * (which can modify the request in what ever way fits the auth mechanism)
42
  * and then calls apiCurlIO::makeRequest on the signed request
43
  *
44
- * @param Google_Http_Request $request
45
- * @return Google_Http_Request The resulting HTTP response including the
46
  * responseHttpCode, responseHeaders and responseBody.
47
  */
48
- public function authenticatedRequest(Google_Http_Request $request)
49
  {
50
  $request = $this->sign($request);
51
  return $this->io->makeRequest($request);
@@ -53,7 +53,7 @@ class Google_Auth_Simple extends Google_Auth_Abstract
53
 
54
  public function authenticate($code)
55
  {
56
- throw new Google_Auth_Exception("Simple auth does not exchange tokens.");
57
  }
58
 
59
  public function setAccessToken($accessToken)
@@ -81,7 +81,7 @@ class Google_Auth_Simple extends Google_Auth_Abstract
81
  /* noop*/
82
  }
83
 
84
- public function sign(Google_Http_Request $request)
85
  {
86
  $key = $this->client->getClassConfig($this, 'developer_key');
87
  if ($key) {
25
  * @author Chris Chabot <chabotc@google.com>
26
  * @author Chirag Shah <chirags@google.com>
27
  */
28
+ class GoogleGAL_Auth_Simple extends GoogleGAL_Auth_Abstract
29
  {
30
  private $key = null;
31
  private $client;
32
 
33
+ public function __construct(GoogleGAL_Client $client, $config = null)
34
  {
35
  $this->client = $client;
36
  }
41
  * (which can modify the request in what ever way fits the auth mechanism)
42
  * and then calls apiCurlIO::makeRequest on the signed request
43
  *
44
+ * @param GoogleGAL_Http_Request $request
45
+ * @return GoogleGAL_Http_Request The resulting HTTP response including the
46
  * responseHttpCode, responseHeaders and responseBody.
47
  */
48
+ public function authenticatedRequest(GoogleGAL_Http_Request $request)
49
  {
50
  $request = $this->sign($request);
51
  return $this->io->makeRequest($request);
53
 
54
  public function authenticate($code)
55
  {
56
+ throw new GoogleGAL_Auth_Exception("Simple auth does not exchange tokens.");
57
  }
58
 
59
  public function setAccessToken($accessToken)
81
  /* noop*/
82
  }
83
 
84
+ public function sign(GoogleGAL_Http_Request $request)
85
  {
86
  $key = $this->client->getClassConfig($this, 'developer_key');
87
  if ($key) {
core/Google/Cache/Abstract.php CHANGED
@@ -20,10 +20,10 @@
20
  *
21
  * @author Chris Chabot <chabotc@google.com>
22
  */
23
- abstract class Google_Cache_Abstract
24
  {
25
 
26
- abstract public function __construct(Google_Client $client);
27
 
28
  /**
29
  * Retrieves the data for the given key, or false if they
20
  *
21
  * @author Chris Chabot <chabotc@google.com>
22
  */
23
+ abstract class GoogleGAL_Cache_Abstract
24
  {
25
 
26
+ abstract public function __construct(GoogleGAL_Client $client);
27
 
28
  /**
29
  * Retrieves the data for the given key, or false if they
core/Google/Cache/Apc.php CHANGED
@@ -26,12 +26,12 @@ require_once "Google/Cache/Exception.php";
26
  *
27
  * @author Chris Chabot <chabotc@google.com>
28
  */
29
- class Google_Cache_Apc extends Google_Cache_Abstract
30
  {
31
- public function __construct(Google_Client $client)
32
  {
33
  if (! function_exists('apc_add') ) {
34
- throw new Google_Cache_Exception("Apc functions not available");
35
  }
36
  }
37
 
@@ -58,7 +58,7 @@ class Google_Cache_Apc extends Google_Cache_Abstract
58
  {
59
  $rc = apc_store($key, array('time' => time(), 'data' => $value));
60
  if ($rc == false) {
61
- throw new Google_Cache_Exception("Couldn't store data");
62
  }
63
  }
64
 
26
  *
27
  * @author Chris Chabot <chabotc@google.com>
28
  */
29
+ class GoogleGAL_Cache_Apc extends GoogleGAL_Cache_Abstract
30
  {
31
+ public function __construct(GoogleGAL_Client $client)
32
  {
33
  if (! function_exists('apc_add') ) {
34
+ throw new GoogleGAL_Cache_Exception("Apc functions not available");
35
  }
36
  }
37
 
58
  {
59
  $rc = apc_store($key, array('time' => time(), 'data' => $value));
60
  if ($rc == false) {
61
+ throw new GoogleGAL_Cache_Exception("Couldn't store data");
62
  }
63
  }
64
 
core/Google/Cache/Exception.php CHANGED
@@ -16,6 +16,6 @@
16
  */
17
  require_once "Google/Exception.php";
18
 
19
- class Google_Cache_Exception extends Google_Exception
20
  {
21
  }
16
  */
17
  require_once "Google/Exception.php";
18
 
19
+ class GoogleGAL_Cache_Exception extends GoogleGAL_Exception
20
  {
21
  }
core/Google/Cache/File.php CHANGED
@@ -26,13 +26,13 @@ require_once "Google/Cache/Exception.php";
26
  *
27
  * @author Chris Chabot <chabotc@google.com>
28
  */
29
- class Google_Cache_File extends Google_Cache_Abstract
30
  {
31
  const MAX_LOCK_RETRIES = 10;
32
  private $path;
33
  private $fh;
34
 
35
- public function __construct(Google_Client $client)
36
  {
37
  $this->path = $client->getClassConfig($this, 'directory');
38
  }
@@ -79,7 +79,7 @@ class Google_Cache_File extends Google_Cache_Abstract
79
  {
80
  $file = $this->getCacheFile($key);
81
  if (file_exists($file) && !unlink($file)) {
82
- throw new Google_Cache_Exception("Cache file could not be deleted");
83
  }
84
  }
85
 
@@ -101,7 +101,7 @@ class Google_Cache_File extends Google_Cache_Abstract
101
  $storageDir = $this->path . '/' . substr(md5($file), 0, 2);
102
  if ($forWrite && ! is_dir($storageDir)) {
103
  if (! mkdir($storageDir, 0755, true)) {
104
- throw new Google_Cache_Exception("Could not create storage directory: $storageDir");
105
  }
106
  }
107
  return $storageDir;
26
  *
27
  * @author Chris Chabot <chabotc@google.com>
28
  */
29
+ class GoogleGAL_Cache_File extends GoogleGAL_Cache_Abstract
30
  {
31
  const MAX_LOCK_RETRIES = 10;
32
  private $path;
33
  private $fh;
34
 
35
+ public function __construct(GoogleGAL_Client $client)
36
  {
37
  $this->path = $client->getClassConfig($this, 'directory');
38
  }
79
  {
80
  $file = $this->getCacheFile($key);
81
  if (file_exists($file) && !unlink($file)) {
82
+ throw new GoogleGAL_Cache_Exception("Cache file could not be deleted");
83
  }
84
  }
85
 
101
  $storageDir = $this->path . '/' . substr(md5($file), 0, 2);
102
  if ($forWrite && ! is_dir($storageDir)) {
103
  if (! mkdir($storageDir, 0755, true)) {
104
+ throw new GoogleGAL_Cache_Exception("Could not create storage directory: $storageDir");
105
  }
106
  }
107
  return $storageDir;
core/Google/Cache/Memcache.php CHANGED
@@ -28,17 +28,17 @@ require_once "Google/Cache/Exception.php";
28
  *
29
  * @author Chris Chabot <chabotc@google.com>
30
  */
31
- class Google_Cache_Memcache extends Google_Cache_Abstract
32
  {
33
  private $connection = false;
34
  private $mc = false;
35
  private $host;
36
  private $port;
37
 
38
- public function __construct(Google_Client $client)
39
  {
40
  if (!function_exists('memcache_connect') && !class_exists("Memcached")) {
41
- throw new Google_Cache_Exception("Memcache functions not available");
42
  }
43
  if ($client->isAppEngine()) {
44
  // No credentials needed for GAE.
@@ -48,7 +48,7 @@ class Google_Cache_Memcache extends Google_Cache_Abstract
48
  $this->host = $client->getClassConfig($this, 'host');
49
  $this->port = $client->getClassConfig($this, 'port');
50
  if (empty($this->host) || empty($this->port)) {
51
- throw new Google_Cache_Exception("You need to supply a valid memcache host and port");
52
  }
53
  }
54
  }
@@ -79,7 +79,7 @@ class Google_Cache_Memcache extends Google_Cache_Abstract
79
  * @inheritDoc
80
  * @param string $key
81
  * @param string $value
82
- * @throws Google_Cache_Exception
83
  */
84
  public function set($key, $value)
85
  {
@@ -94,7 +94,7 @@ class Google_Cache_Memcache extends Google_Cache_Abstract
94
  $rc = memcache_set($this->connection, $key, $data, false);
95
  }
96
  if ($rc == false) {
97
- throw new Google_Cache_Exception("Couldn't store data in cache");
98
  }
99
  }
100
 
@@ -131,7 +131,7 @@ class Google_Cache_Memcache extends Google_Cache_Abstract
131
  }
132
 
133
  if (! $this->connection) {
134
- throw new Google_Cache_Exception("Couldn't connect to memcache server");
135
  }
136
  }
137
  }
28
  *
29
  * @author Chris Chabot <chabotc@google.com>
30
  */
31
+ class GoogleGAL_Cache_Memcache extends GoogleGAL_Cache_Abstract
32
  {
33
  private $connection = false;
34
  private $mc = false;
35
  private $host;
36
  private $port;
37
 
38
+ public function __construct(GoogleGAL_Client $client)
39
  {
40
  if (!function_exists('memcache_connect') && !class_exists("Memcached")) {
41
+ throw new GoogleGAL_Cache_Exception("Memcache functions not available");
42
  }
43
  if ($client->isAppEngine()) {
44
  // No credentials needed for GAE.
48
  $this->host = $client->getClassConfig($this, 'host');
49
  $this->port = $client->getClassConfig($this, 'port');
50
  if (empty($this->host) || empty($this->port)) {
51
+ throw new GoogleGAL_Cache_Exception("You need to supply a valid memcache host and port");
52
  }
53
  }
54
  }
79
  * @inheritDoc
80
  * @param string $key
81
  * @param string $value
82
+ * @throws GoogleGAL_Cache_Exception
83
  */
84
  public function set($key, $value)
85
  {
94
  $rc = memcache_set($this->connection, $key, $data, false);
95
  }
96
  if ($rc == false) {
97
+ throw new GoogleGAL_Cache_Exception("Couldn't store data in cache");
98
  }
99
  }
100
 
131
  }
132
 
133
  if (! $this->connection) {
134
+ throw new GoogleGAL_Cache_Exception("Couldn't connect to memcache server");
135
  }
136
  }
137
  }
core/Google/Cache/Null.php CHANGED
@@ -22,9 +22,9 @@ require_once "Google/Cache/Exception.php";
22
  * A blank storage class, for cases where caching is not
23
  * required.
24
  */
25
- class Google_Cache_Null extends Google_Cache_Abstract
26
  {
27
- public function __construct(Google_Client $client)
28
  {
29
 
30
  }
22
  * A blank storage class, for cases where caching is not
23
  * required.
24
  */
25
+ class GoogleGAL_Cache_Null extends GoogleGAL_Cache_Abstract
26
  {
27
+ public function __construct(GoogleGAL_Client $client)
28
  {
29
 
30
  }
core/Google/Client.php CHANGED
@@ -34,27 +34,27 @@ require_once 'Google/Service/Resource.php';
34
  * @author Chris Chabot <chabotc@google.com>
35
  * @author Chirag Shah <chirags@google.com>
36
  */
37
- class Google_Client
38
  {
39
  const LIBVER = "1.0.5-beta";
40
  const USER_AGENT_SUFFIX = "google-api-php-client/";
41
  /**
42
- * @var Google_Auth_Abstract $auth
43
  */
44
  private $auth;
45
 
46
  /**
47
- * @var Google_IO_Abstract $io
48
  */
49
  private $io;
50
 
51
  /**
52
- * @var Google_Cache_Abstract $cache
53
  */
54
  private $cache;
55
 
56
  /**
57
- * @var Google_Config $config
58
  */
59
  private $config;
60
 
@@ -76,7 +76,7 @@ class Google_Client
76
  /**
77
  * Construct the Google Client.
78
  *
79
- * @param $config Google_Config or string for the ini file to load
80
  */
81
  public function __construct($config = null)
82
  {
@@ -86,26 +86,26 @@ class Google_Client
86
  }
87
 
88
  if (is_string($config) && strlen($config)) {
89
- $config = new Google_Config($config);
90
- } else if ( !($config instanceof Google_Config)) {
91
- $config = new Google_Config();
92
 
93
  if ($this->isAppEngine()) {
94
  // Automatically use Memcache if we're in AppEngine.
95
- $config->setCacheClass('Google_Cache_Memcache');
96
  }
97
 
98
  if (version_compare(phpversion(), "5.3.4", "<=") || $this->isAppEngine()) {
99
  // Automatically disable compress.zlib, as currently unsupported.
100
- $config->setClassConfig('Google_Http_Request', 'disable_gzip', true);
101
  }
102
  }
103
 
104
- if ($config->getIoClass() == Google_Config::USE_AUTO_IO_SELECTION) {
105
  if (function_exists('curl_version')) {
106
- $config->setIoClass("Google_Io_Curl");
107
  } else {
108
- $config->setIoClass("Google_Io_Stream");
109
  }
110
  }
111
 
@@ -147,7 +147,7 @@ class Google_Client
147
  $data = json_decode($json);
148
  $key = isset($data->installed) ? 'installed' : 'web';
149
  if (!isset($data->$key)) {
150
- throw new Google_Exception("Invalid client secret JSON file.");
151
  }
152
  $this->setClientId($data->$key->client_id);
153
  $this->setClientSecret($data->$key->client_secret);
@@ -175,7 +175,7 @@ class Google_Client
175
  public function prepareScopes()
176
  {
177
  if (empty($this->requestedScopes)) {
178
- throw new Google_Auth_Exception("No scopes specified");
179
  }
180
  $scopes = implode(' ', $this->requestedScopes);
181
  return $scopes;
@@ -183,7 +183,7 @@ class Google_Client
183
 
184
  /**
185
  * Set the OAuth 2.0 access token using the string that resulted from calling createAuthUrl()
186
- * or Google_Client#getAccessToken().
187
  * @param string $accessToken JSON encoded string containing in the following format:
188
  * {"access_token":"TOKEN", "refresh_token":"TOKEN", "token_type":"Bearer",
189
  * "expires_in":3600, "id_token":"TOKEN", "created":1320790426}
@@ -200,9 +200,9 @@ class Google_Client
200
 
201
  /**
202
  * Set the authenticator object
203
- * @param Google_Auth_Abstract $auth
204
  */
205
- public function setAuth(Google_Auth_Abstract $auth)
206
  {
207
  $this->config->setAuthClass(get_class($auth));
208
  $this->auth = $auth;
@@ -210,9 +210,9 @@ class Google_Client
210
 
211
  /**
212
  * Set the IO object
213
- * @param Google_Io_Abstract $auth
214
  */
215
- public function setIo(Google_Io_Abstract $io)
216
  {
217
  $this->config->setIoClass(get_class($io));
218
  $this->io = $io;
@@ -220,9 +220,9 @@ class Google_Client
220
 
221
  /**
222
  * Set the Cache object
223
- * @param Google_Cache_Abstract $auth
224
  */
225
- public function setCache(Google_Cache_Abstract $cache)
226
  {
227
  $this->config->setCacheClass(get_class($cache));
228
  $this->cache = $cache;
@@ -367,7 +367,7 @@ class Google_Client
367
  /**
368
  * Revoke an OAuth2 access token or refresh token. This method will revoke the current access
369
  * token, if a token isn't provided.
370
- * @throws Google_Auth_Exception
371
  * @param string|null $token The token (access token or a refresh token) that should be revoked.
372
  * @return boolean Returns True if the revocation was successful, otherwise False.
373
  */
@@ -379,9 +379,9 @@ class Google_Client
379
  /**
380
  * Verify an id_token. This method will verify the current id_token, if one
381
  * isn't provided.
382
- * @throws Google_Auth_Exception
383
  * @param string|null $token The token (id_token) that should be verified.
384
- * @return Google_Auth_LoginTicket Returns an apiLoginTicket if the verification was
385
  * successful.
386
  */
387
  public function verifyIdToken($token = null)
@@ -401,16 +401,16 @@ class Google_Client
401
  */
402
  public function verifySignedJwt($id_token, $cert_location, $audience, $issuer, $max_expiry = null)
403
  {
404
- $auth = new Google_Auth_OAuth2($this);
405
  $certs = $auth->retrieveCertsFromLocation($cert_location);
406
  return $auth->verifySignedJwtWithCerts($id_token, $certs, $audience, $issuer, $max_expiry);
407
  }
408
 
409
  /**
410
- * @param Google_Auth_AssertionCredentials $creds
411
  * @return void
412
  */
413
- public function setAssertionCredentials(Google_Auth_AssertionCredentials $creds)
414
  {
415
  $this->getAuth()->setAssertionCredentials($creds);
416
  }
@@ -486,21 +486,21 @@ class Google_Client
486
  */
487
  public function execute($request)
488
  {
489
- if ($request instanceof Google_Http_Request) {
490
  $request->setUserAgent(
491
  $this->getApplicationName()
492
  . " " . self::USER_AGENT_SUFFIX
493
  . $this->getLibraryVersion()
494
  );
495
- if (!$this->getClassConfig("Google_Http_Request", "disable_gzip")) {
496
  $request->enableGzip();
497
  }
498
  $request->maybeMoveParametersToBody();
499
- return Google_Http_REST::execute($this, $request);
500
- } else if ($request instanceof Google_Http_Batch) {
501
  return $request->execute();
502
  } else {
503
- throw new Google_Exception("Do not know how to execute this type of object.");
504
  }
505
  }
506
 
@@ -514,7 +514,7 @@ class Google_Client
514
  }
515
 
516
  /**
517
- * @return Google_Auth_Abstract Authentication implementation
518
  */
519
  public function getAuth()
520
  {
@@ -526,7 +526,7 @@ class Google_Client
526
  }
527
 
528
  /**
529
- * @return Google_IO_Abstract IO implementation
530
  */
531
  public function getIo()
532
  {
@@ -538,7 +538,7 @@ class Google_Client
538
  }
539
 
540
  /**
541
- * @return Google_Cache_Abstract Cache implementation
542
  */
543
  public function getCache()
544
  {
@@ -564,7 +564,7 @@ class Google_Client
564
 
565
  /**
566
  * Set configuration specific to a given class.
567
- * $config->setClassConfig('Google_Cache_File',
568
  * array('directory' => '/tmp/cache'));
569
  * @param $class The class name for the configuration
570
  * @param $config string key or an array of configuration values
34
  * @author Chris Chabot <chabotc@google.com>
35
  * @author Chirag Shah <chirags@google.com>
36
  */
37
+ class GoogleGAL_Client
38
  {
39
  const LIBVER = "1.0.5-beta";
40
  const USER_AGENT_SUFFIX = "google-api-php-client/";
41
  /**
42
+ * @var GoogleGAL_Auth_Abstract $auth
43
  */
44
  private $auth;
45
 
46
  /**
47
+ * @var GoogleGAL_IO_Abstract $io
48
  */
49
  private $io;
50
 
51
  /**
52
+ * @var GoogleGAL_Cache_Abstract $cache
53
  */
54
  private $cache;
55
 
56
  /**
57
+ * @var GoogleGAL_Config $config
58
  */
59
  private $config;
60
 
76
  /**
77
  * Construct the Google Client.
78
  *
79
+ * @param $config GoogleGAL_Config or string for the ini file to load
80
  */
81
  public function __construct($config = null)
82
  {
86
  }
87
 
88
  if (is_string($config) && strlen($config)) {
89
+ $config = new GoogleGAL_Config($config);
90
+ } else if ( !($config instanceof GoogleGAL_Config)) {
91
+ $config = new GoogleGAL_Config();
92
 
93
  if ($this->isAppEngine()) {
94
  // Automatically use Memcache if we're in AppEngine.
95
+ $config->setCacheClass('GoogleGAL_Cache_Memcache');
96
  }
97
 
98
  if (version_compare(phpversion(), "5.3.4", "<=") || $this->isAppEngine()) {
99
  // Automatically disable compress.zlib, as currently unsupported.
100
+ $config->setClassConfig('GoogleGAL_Http_Request', 'disable_gzip', true);
101
  }
102
  }
103
 
104
+ if ($config->getIoClass() == GoogleGAL_Config::USE_AUTO_IO_SELECTION) {
105
  if (function_exists('curl_version')) {
106
+ $config->setIoClass("GoogleGAL_Io_Curl");
107
  } else {
108
+ $config->setIoClass("GoogleGAL_Io_Stream");
109
  }
110
  }
111
 
147
  $data = json_decode($json);
148
  $key = isset($data->installed) ? 'installed' : 'web';
149
  if (!isset($data->$key)) {
150
+ throw new GoogleGAL_Exception("Invalid client secret JSON file.");
151
  }
152
  $this->setClientId($data->$key->client_id);
153
  $this->setClientSecret($data->$key->client_secret);
175
  public function prepareScopes()
176
  {
177
  if (empty($this->requestedScopes)) {
178
+ throw new GoogleGAL_Auth_Exception("No scopes specified");
179
  }
180
  $scopes = implode(' ', $this->requestedScopes);
181
  return $scopes;
183
 
184
  /**
185
  * Set the OAuth 2.0 access token using the string that resulted from calling createAuthUrl()
186
+ * or GoogleGAL_Client#getAccessToken().
187
  * @param string $accessToken JSON encoded string containing in the following format:
188
  * {"access_token":"TOKEN", "refresh_token":"TOKEN", "token_type":"Bearer",
189
  * "expires_in":3600, "id_token":"TOKEN", "created":1320790426}
200
 
201
  /**
202
  * Set the authenticator object
203
+ * @param GoogleGAL_Auth_Abstract $auth
204
  */
205
+ public function setAuth(GoogleGAL_Auth_Abstract $auth)
206
  {
207
  $this->config->setAuthClass(get_class($auth));
208
  $this->auth = $auth;
210
 
211
  /**
212
  * Set the IO object
213
+ * @param GoogleGAL_Io_Abstract $auth
214
  */
215
+ public function setIo(GoogleGAL_Io_Abstract $io)
216
  {
217
  $this->config->setIoClass(get_class($io));
218
  $this->io = $io;
220
 
221
  /**
222
  * Set the Cache object
223
+ * @param GoogleGAL_Cache_Abstract $auth
224
  */
225
+ public function setCache(GoogleGAL_Cache_Abstract $cache)
226
  {
227
  $this->config->setCacheClass(get_class($cache));
228
  $this->cache = $cache;
367
  /**
368
  * Revoke an OAuth2 access token or refresh token. This method will revoke the current access
369
  * token, if a token isn't provided.
370
+ * @throws GoogleGAL_Auth_Exception
371
  * @param string|null $token The token (access token or a refresh token) that should be revoked.
372
  * @return boolean Returns True if the revocation was successful, otherwise False.
373
  */
379
  /**
380
  * Verify an id_token. This method will verify the current id_token, if one
381
  * isn't provided.
382
+ * @throws GoogleGAL_Auth_Exception
383
  * @param string|null $token The token (id_token) that should be verified.
384
+ * @return GoogleGAL_Auth_LoginTicket Returns an apiLoginTicket if the verification was
385
  * successful.
386
  */
387
  public function verifyIdToken($token = null)
401
  */
402
  public function verifySignedJwt($id_token, $cert_location, $audience, $issuer, $max_expiry = null)
403
  {
404
+ $auth = new GoogleGAL_Auth_OAuth2($this);
405
  $certs = $auth->retrieveCertsFromLocation($cert_location);
406
  return $auth->verifySignedJwtWithCerts($id_token, $certs, $audience, $issuer, $max_expiry);
407
  }
408
 
409
  /**
410
+ * @param GoogleGAL_Auth_AssertionCredentials $creds
411
  * @return void
412
  */
413
+ public function setAssertionCredentials(GoogleGAL_Auth_AssertionCredentials $creds)
414
  {
415
  $this->getAuth()->setAssertionCredentials($creds);
416
  }
486
  */
487
  public function execute($request)
488
  {
489
+ if ($request instanceof GoogleGAL_Http_Request) {
490
  $request->setUserAgent(
491
  $this->getApplicationName()
492
  . " " . self::USER_AGENT_SUFFIX
493
  . $this->getLibraryVersion()
494
  );
495
+ if (!$this->getClassConfig("GoogleGAL_Http_Request", "disable_gzip")) {
496
  $request->enableGzip();
497
  }
498
  $request->maybeMoveParametersToBody();
499
+ return GoogleGAL_Http_REST::execute($this, $request);
500
+ } else if ($request instanceof GoogleGAL_Http_Batch) {
501
  return $request->execute();
502
  } else {
503
+ throw new GoogleGAL_Exception("Do not know how to execute this type of object.");
504
  }
505
  }
506
 
514
  }
515
 
516
  /**
517
+ * @return GoogleGAL_Auth_Abstract Authentication implementation
518
  */
519
  public function getAuth()
520
  {
526
  }
527
 
528
  /**
529
+ * @return GoogleGAL_IO_Abstract IO implementation
530
  */
531
  public function getIo()
532
  {
538
  }
539
 
540
  /**
541
+ * @return GoogleGAL_Cache_Abstract Cache implementation
542
  */
543
  public function getCache()
544
  {
564
 
565
  /**
566
  * Set configuration specific to a given class.
567
+ * $config->setClassConfig('GoogleGAL_Cache_File',
568
  * array('directory' => '/tmp/cache'));
569
  * @param $class The class name for the configuration
570
  * @param $config string key or an array of configuration values
core/Google/Collection.php CHANGED
@@ -3,11 +3,11 @@
3
  require_once "Google/Model.php";
4
 
5
  /**
6
- * Extension to the regular Google_Model that automatically
7
  * exposes the items array for iteration, so you can just
8
  * iterate over the object rather than a reference inside.
9
  */
10
- class Google_Collection extends Google_Model implements Iterator, Countable
11
  {
12
  protected $collection_key = 'items';
13
 
3
  require_once "Google/Model.php";
4
 
5
  /**
6
+ * Extension to the regular GoogleGAL_Model that automatically
7
  * exposes the items array for iteration, so you can just
8
  * iterate over the object rather than a reference inside.
9
  */
10
+ class GoogleGAL_Collection extends GoogleGAL_Model implements Iterator, Countable
11
  {
12
  protected $collection_key = 'items';
13
 
core/Google/Config.php CHANGED
@@ -18,7 +18,7 @@
18
  /**
19
  * A class to contain the library configuration for the Google API client.
20
  */
21
- class Google_Config
22
  {
23
  const GZIP_DISABLED = true;
24
  const GZIP_ENABLED = false;
@@ -28,7 +28,7 @@ class Google_Config
28
  private $configuration;
29
 
30
  /**
31
- * Create a new Google_Config. Can accept an ini file location with the
32
  * local configuration. For example:
33
  * application_name: "My App";
34
  *
@@ -41,9 +41,9 @@ class Google_Config
41
  'application_name' => '',
42
 
43
  // Which Authentication, Storage and HTTP IO classes to use.
44
- 'auth_class' => 'Google_Auth_OAuth2',
45
  'io_class' => self::USE_AUTO_IO_SELECTION,
46
- 'cache_class' => 'Google_Cache_File',
47
 
48
  // Don't change these unless you're working against a special development
49
  // or testing environment.
@@ -51,10 +51,10 @@ class Google_Config
51
 
52
  // Definition of class specific values, like file paths and so on.
53
  'classes' => array(
54
- 'Google_IO_Abstract' => array(
55
  'request_timeout_seconds' => 100,
56
  ),
57
- 'Google_Http_Request' => array(
58
  // Disable the use of gzip on calls if set to true. Defaults to false.
59
  'disable_gzip' => self::GZIP_ENABLED,
60
 
@@ -66,7 +66,7 @@ class Google_Config
66
  ),
67
  // If you want to pass in OAuth 2.0 settings, they will need to be
68
  // structured like this.
69
- 'Google_Auth_OAuth2' => array(
70
  // Keys for OAuth 2.0 access, see the API console at
71
  // https://developers.google.com/console
72
  'client_id' => '',
@@ -85,8 +85,8 @@ class Google_Config
85
  'https://www.googleapis.com/oauth2/v1/certs',
86
  ),
87
  // Set a default directory for the file cache.
88
- 'Google_Cache_File' => array(
89
- 'directory' => sys_get_temp_dir() . '/Google_Client'
90
  )
91
  ),
92
 
@@ -105,7 +105,7 @@ class Google_Config
105
 
106
  /**
107
  * Set configuration specific to a given class.
108
- * $config->setClassConfig('Google_Cache_File',
109
  * array('directory' => '/tmp/cache'));
110
  * @param $class The class name for the configuration
111
  * @param $config string key or an array of configuration values
18
  /**
19
  * A class to contain the library configuration for the Google API client.
20
  */
21
+ class GoogleGAL_Config
22
  {
23
  const GZIP_DISABLED = true;
24
  const GZIP_ENABLED = false;
28
  private $configuration;
29
 
30
  /**
31
+ * Create a new GoogleGAL_Config. Can accept an ini file location with the
32
  * local configuration. For example:
33
  * application_name: "My App";
34
  *
41
  'application_name' => '',
42
 
43
  // Which Authentication, Storage and HTTP IO classes to use.
44
+ 'auth_class' => 'GoogleGAL_Auth_OAuth2',
45
  'io_class' => self::USE_AUTO_IO_SELECTION,
46
+ 'cache_class' => 'GoogleGAL_Cache_File',
47
 
48
  // Don't change these unless you're working against a special development
49
  // or testing environment.
51
 
52
  // Definition of class specific values, like file paths and so on.
53
  'classes' => array(
54
+ 'GoogleGAL_IO_Abstract' => array(
55
  'request_timeout_seconds' => 100,
56
  ),
57
+ 'GoogleGAL_Http_Request' => array(
58
  // Disable the use of gzip on calls if set to true. Defaults to false.
59
  'disable_gzip' => self::GZIP_ENABLED,
60
 
66
  ),
67
  // If you want to pass in OAuth 2.0 settings, they will need to be
68
  // structured like this.
69
+ 'GoogleGAL_Auth_OAuth2' => array(
70
  // Keys for OAuth 2.0 access, see the API console at
71
  // https://developers.google.com/console
72
  'client_id' => '',
85
  'https://www.googleapis.com/oauth2/v1/certs',
86
  ),
87
  // Set a default directory for the file cache.
88
+ 'GoogleGAL_Cache_File' => array(
89
+ 'directory' => sys_get_temp_dir() . '/GoogleGAL_Client'
90
  )
91
  ),
92
 
105
 
106
  /**
107
  * Set configuration specific to a given class.
108
+ * $config->setClassConfig('GoogleGAL_Cache_File',
109
  * array('directory' => '/tmp/cache'));
110
  * @param $class The class name for the configuration
111
  * @param $config string key or an array of configuration values
core/Google/Exception.php CHANGED
@@ -15,6 +15,6 @@
15
  * limitations under the License.
16
  */
17
 
18
- class Google_Exception extends Exception
19
  {
20
  }
15
  * limitations under the License.
16
  */
17
 
18
+ class GoogleGAL_Exception extends Exception
19
  {
20
  }
core/Google/Http/Batch.php CHANGED
@@ -22,7 +22,7 @@ require_once 'Google/Http/REST.php';
22
  /**
23
  * @author Chirag Shah <chirags@google.com>
24
  */
25
- class Google_Http_Batch
26
  {
27
  /** @var string Multipart Boundary. */
28
  private $boundary;
@@ -30,14 +30,14 @@ class Google_Http_Batch
30
  /** @var array service requests to be executed. */
31
  private $requests = array();
32
 
33
- /** @var Google_Client */
34
  private $client;
35
 
36
  private $expected_classes = array();
37
 
38
  private $base_path;
39
 
40
- public function __construct(Google_Client $client, $boundary = false)
41
  {
42
  $this->client = $client;
43
  $this->base_path = $this->client->getBasePath();
@@ -46,7 +46,7 @@ class Google_Http_Batch
46
  $this->boundary = str_replace('"', '', $boundary);
47
  }
48
 
49
- public function add(Google_Http_Request $request, $key = false)
50
  {
51
  if (false == $key) {
52
  $key = mt_rand();
@@ -59,7 +59,7 @@ class Google_Http_Batch
59
  {
60
  $body = '';
61
 
62
- /** @var Google_Http_Request $req */
63
  foreach ($this->requests as $key => $req) {
64
  $body .= "--{$this->boundary}\n";
65
  $body .= $req->toBatchString($key) . "\n";
@@ -70,7 +70,7 @@ class Google_Http_Batch
70
  $body .= "\n--{$this->boundary}--";
71
 
72
  $url = $this->base_path . '/batch';
73
- $httpRequest = new Google_Http_Request($url, 'POST');
74
  $httpRequest->setRequestHeaders(
75
  array('Content-Type' => 'multipart/mixed; boundary=' . $this->boundary)
76
  );
@@ -81,7 +81,7 @@ class Google_Http_Batch
81
  return $this->parseResponse($response);
82
  }
83
 
84
- public function parseResponse(Google_Http_Request $response)
85
  {
86
  $contentType = $response->getResponseHeader('content-type');
87
  $contentType = explode(';', $contentType);
@@ -110,7 +110,7 @@ class Google_Http_Batch
110
  $status = $status[1];
111
 
112
  list($partHeaders, $partBody) = $this->client->getIo()->ParseHttpResponse($part, false);
113
- $response = new Google_Http_Request("");
114
  $response->setResponseHttpCode($status);
115
  $response->setResponseHeaders($partHeaders);
116
  $response->setResponseBody($partBody);
@@ -125,9 +125,9 @@ class Google_Http_Batch
125
  }
126
 
127
  try {
128
- $response = Google_Http_REST::decodeHttpResponse($response);
129
  $responses[$key] = $response;
130
- } catch (Google_Service_Exception $e) {
131
  // Store the exception as the response, so succesful responses
132
  // can be processed.
133
  $responses[$key] = $e;
22
  /**
23
  * @author Chirag Shah <chirags@google.com>
24
  */
25
+ class GoogleGAL_Http_Batch
26
  {
27
  /** @var string Multipart Boundary. */
28
  private $boundary;
30
  /** @var array service requests to be executed. */
31
  private $requests = array();
32
 
33
+ /** @var GoogleGAL_Client */
34
  private $client;
35
 
36
  private $expected_classes = array();
37
 
38
  private $base_path;
39
 
40
+ public function __construct(GoogleGAL_Client $client, $boundary = false)
41
  {
42
  $this->client = $client;
43
  $this->base_path = $this->client->getBasePath();
46
  $this->boundary = str_replace('"', '', $boundary);
47
  }
48
 
49
+ public function add(GoogleGAL_Http_Request $request, $key = false)
50
  {
51
  if (false == $key) {
52
  $key = mt_rand();
59
  {
60
  $body = '';
61
 
62
+ /** @var GoogleGAL_Http_Request $req */
63
  foreach ($this->requests as $key => $req) {
64
  $body .= "--{$this->boundary}\n";
65
  $body .= $req->toBatchString($key) . "\n";
70
  $body .= "\n--{$this->boundary}--";
71
 
72
  $url = $this->base_path . '/batch';
73
+ $httpRequest = new GoogleGAL_Http_Request($url, 'POST');
74
  $httpRequest->setRequestHeaders(
75
  array('Content-Type' => 'multipart/mixed; boundary=' . $this->boundary)
76
  );
81
  return $this->parseResponse($response);
82
  }
83
 
84
+ public function parseResponse(GoogleGAL_Http_Request $response)
85
  {
86
  $contentType = $response->getResponseHeader('content-type');
87
  $contentType = explode(';', $contentType);
110
  $status = $status[1];
111
 
112
  list($partHeaders, $partBody) = $this->client->getIo()->ParseHttpResponse($part, false);
113
+ $response = new GoogleGAL_Http_Request("");
114
  $response->setResponseHttpCode($status);
115
  $response->setResponseHeaders($partHeaders);
116
  $response->setResponseBody($partBody);
125
  }
126
 
127
  try {
128
+ $response = GoogleGAL_Http_REST::decodeHttpResponse($response);
129
  $responses[$key] = $response;
130
+ } catch (GoogleGAL_Service_Exception $e) {
131
  // Store the exception as the response, so succesful responses
132
  // can be processed.
133
  $responses[$key] = $e;
core/Google/Http/CacheParser.php CHANGED
@@ -22,7 +22,7 @@ require_once 'Google/Http/Request.php';
22
  * implementation is guided by the guidance offered in rfc2616-sec13.
23
  * @author Chirag Shah <chirags@google.com>
24
  */
25
- class Google_Http_CacheParser
26
  {
27
  public static $CACHEABLE_HTTP_METHODS = array('GET', 'HEAD');
28
  public static $CACHEABLE_STATUS_CODES = array('200', '203', '300', '301');
@@ -31,11 +31,11 @@ class Google_Http_CacheParser
31
  * Check if an HTTP request can be cached by a private local cache.
32
  *
33
  * @static
34
- * @param Google_Http_Request $resp
35
  * @return bool True if the request is cacheable.
36
  * False if the request is uncacheable.
37
  */
38
- public static function isRequestCacheable(Google_Http_Request $resp)
39
  {
40
  $method = $resp->getRequestMethod();
41
  if (! in_array($method, self::$CACHEABLE_HTTP_METHODS)) {
@@ -57,11 +57,11 @@ class Google_Http_CacheParser
57
  * Check if an HTTP response can be cached by a private local cache.
58
  *
59
  * @static
60
- * @param Google_Http_Request $resp
61
  * @return bool True if the response is cacheable.
62
  * False if the response is un-cacheable.
63
  */
64
- public static function isResponseCacheable(Google_Http_Request $resp)
65
  {
66
  // First, check if the HTTP request was cacheable before inspecting the
67
  // HTTP response.
@@ -109,11 +109,11 @@ class Google_Http_CacheParser
109
 
110
  /**
111
  * @static
112
- * @param Google_Http_Request $resp
113
  * @return bool True if the HTTP response is considered to be expired.
114
  * False if it is considered to be fresh.
115
  */
116
- public static function isExpired(Google_Http_Request $resp)
117
  {
118
  // HTTP/1.1 clients and caches MUST treat other invalid date formats,
119
  // especially including the value “0”, as in the past.
@@ -148,7 +148,7 @@ class Google_Http_CacheParser
148
  // We can't default this to now, as that means future cache reads
149
  // will always pass with the logic below, so we will require a
150
  // date be injected if not supplied.
151
- throw new Google_Exception("All cacheable requests must have creation dates.");
152
  }
153
 
154
  if (false == $freshnessLifetime && isset($responseHeaders['expires'])) {
@@ -171,10 +171,10 @@ class Google_Http_CacheParser
171
  /**
172
  * Determine if a cache entry should be revalidated with by the origin.
173
  *
174
- * @param Google_Http_Request $response
175
  * @return bool True if the entry is expired, else return false.
176
  */
177
- public static function mustRevalidate(Google_Http_Request $response)
178
  {
179
  // [13.3] When a cache has a stale entry that it would like to use as a
180
  // response to a client's request, it first has to check with the origin
22
  * implementation is guided by the guidance offered in rfc2616-sec13.
23
  * @author Chirag Shah <chirags@google.com>
24
  */
25
+ class GoogleGAL_Http_CacheParser
26
  {
27
  public static $CACHEABLE_HTTP_METHODS = array('GET', 'HEAD');
28
  public static $CACHEABLE_STATUS_CODES = array('200', '203', '300', '301');
31
  * Check if an HTTP request can be cached by a private local cache.
32
  *
33
  * @static
34
+ * @param GoogleGAL_Http_Request $resp
35
  * @return bool True if the request is cacheable.
36
  * False if the request is uncacheable.
37
  */
38
+ public static function isRequestCacheable(GoogleGAL_Http_Request $resp)
39
  {
40
  $method = $resp->getRequestMethod();
41
  if (! in_array($method, self::$CACHEABLE_HTTP_METHODS)) {
57
  * Check if an HTTP response can be cached by a private local cache.
58
  *
59
  * @static
60
+ * @param GoogleGAL_Http_Request $resp
61
  * @return bool True if the response is cacheable.
62
  * False if the response is un-cacheable.
63
  */
64
+ public static function isResponseCacheable(GoogleGAL_Http_Request $resp)
65
  {
66
  // First, check if the HTTP request was cacheable before inspecting the
67
  // HTTP response.
109
 
110
  /**
111
  * @static
112
+ * @param GoogleGAL_Http_Request $resp
113
  * @return bool True if the HTTP response is considered to be expired.
114
  * False if it is considered to be fresh.
115
  */
116
+ public static function isExpired(GoogleGAL_Http_Request $resp)
117
  {
118
  // HTTP/1.1 clients and caches MUST treat other invalid date formats,
119
  // especially including the value “0”, as in the past.
148
  // We can't default this to now, as that means future cache reads
149
  // will always pass with the logic below, so we will require a
150
  // date be injected if not supplied.
151
+ throw new GoogleGAL_Exception("All cacheable requests must have creation dates.");
152
  }
153
 
154
  if (false == $freshnessLifetime && isset($responseHeaders['expires'])) {
171
  /**
172
  * Determine if a cache entry should be revalidated with by the origin.
173
  *
174
+ * @param GoogleGAL_Http_Request $response
175
  * @return bool True if the entry is expired, else return false.
176
  */
177
+ public static function mustRevalidate(GoogleGAL_Http_Request $response)
178
  {
179
  // [13.3] When a cache has a stale entry that it would like to use as a
180
  // response to a client's request, it first has to check with the origin
core/Google/Http/MediaFileUpload.php CHANGED
@@ -25,7 +25,7 @@ require_once 'Google/Utils.php';
25
  * @author Chirag Shah <chirags@google.com>
26
  *
27
  */
28
- class Google_Http_MediaFileUpload
29
  {
30
  const UPLOAD_MEDIA_TYPE = 'media';
31
  const UPLOAD_MULTIPART_TYPE = 'multipart';
@@ -52,10 +52,10 @@ class Google_Http_MediaFileUpload
52
  /** @var int $progress */
53
  private $progress;
54
 
55
- /** @var Google_Client */
56
  private $client;
57
 
58
- /** @var Google_Http_Request */
59
  private $request;
60
 
61
  /** @var string */
@@ -75,8 +75,8 @@ class Google_Http_MediaFileUpload
75
  * only used if resumable=True
76
  */
77
  public function __construct(
78
- Google_Client $client,
79
- Google_Http_Request $request,
80
  $mimeType,
81
  $data,
82
  $resumable = false,
@@ -150,14 +150,14 @@ class Google_Http_MediaFileUpload
150
  'expect' => '',
151
  );
152
 
153
- $httpRequest = new Google_Http_Request(
154
  $this->resumeUri,
155
  'PUT',
156
  $headers,
157
  $chunk
158
  );
159
 
160
- if ($this->client->getClassConfig("Google_Http_Request", "enable_gzip_for_uploads")) {
161
  $httpRequest->enableGzip();
162
  } else {
163
  $httpRequest->disableGzip();
@@ -182,7 +182,7 @@ class Google_Http_MediaFileUpload
182
  // No problems, but upload not complete.
183
  return false;
184
  } else {
185
- return Google_Http_REST::decodeHttpResponse($response);
186
  }
187
  }
188
 
@@ -272,7 +272,7 @@ class Google_Http_MediaFileUpload
272
  if ($body) {
273
  $headers = array(
274
  'content-type' => 'application/json; charset=UTF-8',
275
- 'content-length' => Google_Utils::getStrLen($body),
276
  'x-upload-content-type' => $this->mimeType,
277
  'x-upload-content-length' => $this->size,
278
  'expect' => '',
@@ -287,6 +287,6 @@ class Google_Http_MediaFileUpload
287
  if (200 == $code && true == $location) {
288
  return $location;
289
  }
290
- throw new Google_Exception("Failed to start the resumable upload");
291
  }
292
  }
25
  * @author Chirag Shah <chirags@google.com>
26
  *
27
  */
28
+ class GoogleGAL_Http_MediaFileUpload
29
  {
30
  const UPLOAD_MEDIA_TYPE = 'media';
31
  const UPLOAD_MULTIPART_TYPE = 'multipart';
52
  /** @var int $progress */
53
  private $progress;
54
 
55
+ /** @var GoogleGAL_Client */
56
  private $client;
57
 
58
+ /** @var GoogleGAL_Http_Request */
59
  private $request;
60
 
61
  /** @var string */
75
  * only used if resumable=True
76
  */
77
  public function __construct(
78
+ GoogleGAL_Client $client,
79
+ GoogleGAL_Http_Request $request,
80
  $mimeType,
81
  $data,
82
  $resumable = false,
150
  'expect' => '',
151
  );
152
 
153
+ $httpRequest = new GoogleGAL_Http_Request(
154
  $this->resumeUri,
155
  'PUT',
156
  $headers,
157
  $chunk
158
  );
159
 
160
+ if ($this->client->getClassConfig("GoogleGAL_Http_Request", "enable_gzip_for_uploads")) {
161
  $httpRequest->enableGzip();
162
  } else {
163
  $httpRequest->disableGzip();
182
  // No problems, but upload not complete.
183
  return false;
184
  } else {
185
+ return GoogleGAL_Http_REST::decodeHttpResponse($response);
186
  }
187
  }
188
 
272
  if ($body) {
273
  $headers = array(
274
  'content-type' => 'application/json; charset=UTF-8',
275
+ 'content-length' => GoogleGAL_Utils::getStrLen($body),
276
  'x-upload-content-type' => $this->mimeType,
277
  'x-upload-content-length' => $this->size,
278
  'expect' => '',
287
  if (200 == $code && true == $location) {
288
  return $location;
289
  }
290
+ throw new GoogleGAL_Exception("Failed to start the resumable upload");
291
  }
292
  }
core/Google/Http/REST.php CHANGED
@@ -26,18 +26,18 @@ require_once 'Google/Utils/URITemplate.php';
26
  * @author Chris Chabot <chabotc@google.com>
27
  * @author Chirag Shah <chirags@google.com>
28
  */
29
- class Google_Http_REST
30
  {
31
  /**
32
- * Executes a Google_Http_Request
33
  *
34
- * @param Google_Client $client
35
- * @param Google_Http_Request $req
36
  * @return array decoded result
37
- * @throws Google_Service_Exception on server side error (ie: not authenticated,
38
  * invalid or malformed post body, invalid url)
39
  */
40
- public static function execute(Google_Client $client, Google_Http_Request $req)
41
  {
42
  $httpRequest = $client->getIo()->makeRequest($req);
43
  $httpRequest->setExpectedClass($req->getExpectedClass());
@@ -47,8 +47,8 @@ class Google_Http_REST
47
  /**
48
  * Decode an HTTP Response.
49
  * @static
50
- * @throws Google_Service_Exception
51
- * @param Google_Http_Request $response The http response to be decoded.
52
  * @return mixed|null
53
  */
54
  public static function decodeHttpResponse($response)
@@ -76,14 +76,14 @@ class Google_Http_REST
76
  $errors = $decoded['error']['errors'];
77
  }
78
 
79
- throw new Google_Service_Exception($err, $code, null, $errors);
80
  }
81
 
82
  // Only attempt to decode the response, if the response code wasn't (204) 'no content'
83
  if ($code != '204') {
84
  $decoded = json_decode($body, true);
85
  if ($decoded === null || $decoded === "") {
86
- throw new Google_Service_Exception("Invalid json in service response: $body");
87
  }
88
 
89
  if ($response->getExpectedClass()) {
@@ -126,7 +126,7 @@ class Google_Http_REST
126
  }
127
 
128
  if (count($uriTemplateVars)) {
129
- $uriTemplateParser = new Google_Utils_URITemplate();
130
  $requestUrl = $uriTemplateParser->parse($requestUrl, $uriTemplateVars);
131
  }
132
 
26
  * @author Chris Chabot <chabotc@google.com>
27
  * @author Chirag Shah <chirags@google.com>
28
  */
29
+ class GoogleGAL_Http_REST
30
  {
31
  /**
32
+ * Executes a GoogleGAL_Http_Request
33
  *
34
+ * @param GoogleGAL_Client $client
35
+ * @param GoogleGAL_Http_Request $req
36
  * @return array decoded result
37
+ * @throws GoogleGAL_Service_Exception on server side error (ie: not authenticated,
38
  * invalid or malformed post body, invalid url)
39
  */
40
+ public static function execute(GoogleGAL_Client $client, GoogleGAL_Http_Request $req)
41
  {
42
  $httpRequest = $client->getIo()->makeRequest($req);
43
  $httpRequest->setExpectedClass($req->getExpectedClass());
47
  /**
48
  * Decode an HTTP Response.
49
  * @static
50
+ * @throws GoogleGAL_Service_Exception
51
+ * @param GoogleGAL_Http_Request $response The http response to be decoded.
52
  * @return mixed|null
53
  */
54
  public static function decodeHttpResponse($response)
76
  $errors = $decoded['error']['errors'];
77
  }
78
 
79
+ throw new GoogleGAL_Service_Exception($err, $code, null, $errors);
80
  }
81
 
82
  // Only attempt to decode the response, if the response code wasn't (204) 'no content'
83
  if ($code != '204') {
84
  $decoded = json_decode($body, true);
85
  if ($decoded === null || $decoded === "") {
86
+ throw new GoogleGAL_Service_Exception("Invalid json in service response: $body");
87
  }
88
 
89
  if ($response->getExpectedClass()) {
126
  }
127
 
128
  if (count($uriTemplateVars)) {
129
+ $uriTemplateParser = new GoogleGAL_Utils_URITemplate();
130
  $requestUrl = $uriTemplateParser->parse($requestUrl, $uriTemplateVars);
131
  }
132
 
core/Google/Http/Request.php CHANGED
@@ -25,7 +25,7 @@ require_once 'Google/Utils.php';
25
  * @author Chirag Shah <chirags@google.com>
26
  *
27
  */
28
- class Google_Http_Request
29
  {
30
  const GZIP_UA = " (gzip)";
31
 
@@ -194,7 +194,7 @@ class Google_Http_Request
194
  */
195
  public function setResponseHeaders($headers)
196
  {
197
- $headers = Google_Utils::normalize($headers);
198
  if ($this->responseHeaders) {
199
  $headers = array_merge($this->responseHeaders, $headers);
200
  }
@@ -312,7 +312,7 @@ class Google_Http_Request
312
  */
313
  public function setRequestHeaders($headers)
314
  {
315
- $headers = Google_Utils::normalize($headers);
316
  if ($this->requestHeaders) {
317
  $headers = array_merge($this->requestHeaders, $headers);
318
  }
25
  * @author Chirag Shah <chirags@google.com>
26
  *
27
  */
28
+ class GoogleGAL_Http_Request
29
  {
30
  const GZIP_UA = " (gzip)";
31
 
194
  */
195
  public function setResponseHeaders($headers)
196
  {
197
+ $headers = GoogleGAL_Utils::normalize($headers);
198
  if ($this->responseHeaders) {
199
  $headers = array_merge($this->responseHeaders, $headers);
200
  }
312
  */
313
  public function setRequestHeaders($headers)
314
  {
315
+ $headers = GoogleGAL_Utils::normalize($headers);
316
  if ($this->requestHeaders) {
317
  $headers = array_merge($this->requestHeaders, $headers);
318
  }
core/Google/IO/Abstract.php CHANGED
@@ -24,31 +24,31 @@ require_once 'Google/IO/Exception.php';
24
  require_once 'Google/Http/CacheParser.php';
25
  require_once 'Google/Http/Request.php';
26
 
27
- abstract class Google_IO_Abstract
28
  {
29
  const UNKNOWN_CODE = 0;
30
  const FORM_URLENCODED = 'application/x-www-form-urlencoded';
31
  const CONNECTION_ESTABLISHED = "HTTP/1.0 200 Connection established\r\n\r\n";
32
  private static $ENTITY_HTTP_METHODS = array("POST" => null, "PUT" => null);
33
 
34
- /** @var Google_Client */
35
  protected $client;
36
 
37
- public function __construct(Google_Client $client)
38
  {
39
  $this->client = $client;
40
- $timeout = $client->getClassConfig('Google_IO_Abstract', 'request_timeout_seconds');
41
  if ($timeout > 0) {
42
  $this->setTimeout($timeout);
43
  }
44
  }
45
 
46
  /**
47
- * Executes a Google_Http_Request and returns the resulting populated Google_Http_Request
48
- * @param Google_Http_Request $request
49
- * @return Google_Http_Request $request
50
  */
51
- abstract public function executeRequest(Google_Http_Request $request);
52
 
53
  /**
54
  * Set options that update the transport implementation's behavior.
@@ -77,14 +77,14 @@ abstract class Google_IO_Abstract
77
  /**
78
  * @visible for testing.
79
  * Cache the response to an HTTP request if it is cacheable.
80
- * @param Google_Http_Request $request
81
  * @return bool Returns true if the insertion was successful.
82
  * Otherwise, return false.
83
  */
84
- public function setCachedRequest(Google_Http_Request $request)
85
  {
86
  // Determine if the request is cacheable.
87
- if (Google_Http_CacheParser::isResponseCacheable($request)) {
88
  $this->client->getCache()->set($request->getCacheKey(), $request);
89
  return true;
90
  }
@@ -95,16 +95,16 @@ abstract class Google_IO_Abstract
95
  /**
96
  * Execute an HTTP Request
97
  *
98
- * @param Google_HttpRequest $request the http request to be executed
99
- * @return Google_HttpRequest http request with the response http code,
100
  * response headers and response body filled in
101
- * @throws Google_IO_Exception on curl or IO error
102
  */
103
- public function makeRequest(Google_Http_Request $request)
104
  {
105
  // First, check to see if we have a valid cached version.
106
  $cached = $this->getCachedRequest($request);
107
- if ($cached !== false && $cached instanceof Google_Http_Request) {
108
  if (!$this->checkMustRevalidateCachedRequest($cached, $request)) {
109
  return $cached;
110
  }
@@ -137,13 +137,13 @@ abstract class Google_IO_Abstract
137
 
138
  /**
139
  * @visible for testing.
140
- * @param Google_Http_Request $request
141
- * @return Google_Http_Request|bool Returns the cached object or
142
  * false if the operation was unsuccessful.
143
  */
144
- public function getCachedRequest(Google_Http_Request $request)
145
  {
146
- if (false === Google_Http_CacheParser::isRequestCacheable($request)) {
147
  return false;
148
  }
149
 
@@ -153,10 +153,10 @@ abstract class Google_IO_Abstract
153
  /**
154
  * @visible for testing
155
  * Process an http request that contains an enclosed entity.
156
- * @param Google_Http_Request $request
157
- * @return Google_Http_Request Processed request with the enclosed entity.
158
  */
159
- public function processEntityRequest(Google_Http_Request $request)
160
  {
161
  $postBody = $request->getPostBody();
162
  $contentType = $request->getRequestHeader("content-type");
@@ -185,14 +185,14 @@ abstract class Google_IO_Abstract
185
  /**
186
  * Check if an already cached request must be revalidated, and if so update
187
  * the request with the correct ETag headers.
188
- * @param Google_Http_Request $cached A previously cached response.
189
- * @param Google_Http_Request $request The outbound request.
190
  * return bool If the cached object needs to be revalidated, false if it is
191
  * still current and can be re-used.
192
  */
193
  protected function checkMustRevalidateCachedRequest($cached, $request)
194
  {
195
- if (Google_Http_CacheParser::mustRevalidate($cached)) {
196
  $addHeaders = array();
197
  if ($cached->getResponseHeader('etag')) {
198
  // [13.3.4] If an entity tag has been provided by the origin server,
@@ -211,7 +211,7 @@ abstract class Google_IO_Abstract
211
 
212
  /**
213
  * Update a cached request, using the headers from the last response.
214
- * @param Google_HttpRequest $cached A previously cached response.
215
  * @param mixed Associative array of response headers from the last request.
216
  */
217
  protected function updateCachedRequest($cached, $responseHeaders)
24
  require_once 'Google/Http/CacheParser.php';
25
  require_once 'Google/Http/Request.php';
26
 
27
+ abstract class GoogleGAL_IO_Abstract
28
  {
29
  const UNKNOWN_CODE = 0;
30
  const FORM_URLENCODED = 'application/x-www-form-urlencoded';
31
  const CONNECTION_ESTABLISHED = "HTTP/1.0 200 Connection established\r\n\r\n";
32
  private static $ENTITY_HTTP_METHODS = array("POST" => null, "PUT" => null);
33
 
34
+ /** @var GoogleGAL_Client */
35
  protected $client;
36
 
37
+ public function __construct(GoogleGAL_Client $client)
38
  {
39
  $this->client = $client;
40
+ $timeout = $client->getClassConfig('GoogleGAL_IO_Abstract', 'request_timeout_seconds');
41
  if ($timeout > 0) {
42
  $this->setTimeout($timeout);
43
  }
44
  }
45
 
46
  /**
47
+ * Executes a GoogleGAL_Http_Request and returns the resulting populated GoogleGAL_Http_Request
48
+ * @param GoogleGAL_Http_Request $request
49
+ * @return GoogleGAL_Http_Request $request
50
  */
51
+ abstract public function executeRequest(GoogleGAL_Http_Request $request);
52
 
53
  /**
54
  * Set options that update the transport implementation's behavior.
77
  /**
78
  * @visible for testing.
79
  * Cache the response to an HTTP request if it is cacheable.
80
+ * @param GoogleGAL_Http_Request $request
81
  * @return bool Returns true if the insertion was successful.
82
  * Otherwise, return false.
83
  */
84
+ public function setCachedRequest(GoogleGAL_Http_Request $request)
85
  {
86
  // Determine if the request is cacheable.
87
+ if (GoogleGAL_Http_CacheParser::isResponseCacheable($request)) {
88
  $this->client->getCache()->set($request->getCacheKey(), $request);
89
  return true;
90
  }
95
  /**
96
  * Execute an HTTP Request
97
  *
98
+ * @param GoogleGAL_HttpRequest $request the http request to be executed
99
+ * @return GoogleGAL_HttpRequest http request with the response http code,
100
  * response headers and response body filled in
101
+ * @throws GoogleGAL_IO_Exception on curl or IO error
102
  */
103
+ public function makeRequest(GoogleGAL_Http_Request $request)
104
  {
105
  // First, check to see if we have a valid cached version.
106
  $cached = $this->getCachedRequest($request);
107
+ if ($cached !== false && $cached instanceof GoogleGAL_Http_Request) {
108
  if (!$this->checkMustRevalidateCachedRequest($cached, $request)) {
109
  return $cached;
110
  }
137
 
138
  /**
139
  * @visible for testing.
140
+ * @param GoogleGAL_Http_Request $request
141
+ * @return GoogleGAL_Http_Request|bool Returns the cached object or
142
  * false if the operation was unsuccessful.
143
  */
144
+ public function getCachedRequest(GoogleGAL_Http_Request $request)
145
  {
146
+ if (false === GoogleGAL_Http_CacheParser::isRequestCacheable($request)) {
147
  return false;
148
  }
149
 
153
  /**
154
  * @visible for testing
155
  * Process an http request that contains an enclosed entity.
156
+ * @param GoogleGAL_Http_Request $request
157
+ * @return GoogleGAL_Http_Request Processed request with the enclosed entity.
158
  */
159
+ public function processEntityRequest(GoogleGAL_Http_Request $request)
160
  {
161
  $postBody = $request->getPostBody();
162
  $contentType = $request->getRequestHeader("content-type");
185
  /**
186
  * Check if an already cached request must be revalidated, and if so update
187
  * the request with the correct ETag headers.
188
+ * @param GoogleGAL_Http_Request $cached A previously cached response.
189
+ * @param GoogleGAL_Http_Request $request The outbound request.
190
  * return bool If the cached object needs to be revalidated, false if it is
191
  * still current and can be re-used.
192
  */
193
  protected function checkMustRevalidateCachedRequest($cached, $request)
194
  {
195
+ if (GoogleGAL_Http_CacheParser::mustRevalidate($cached)) {
196
  $addHeaders = array();
197
  if ($cached->getResponseHeader('etag')) {
198
  // [13.3.4] If an entity tag has been provided by the origin server,
211
 
212
  /**
213
  * Update a cached request, using the headers from the last response.
214
+ * @param GoogleGAL_HttpRequest $cached A previously cached response.
215
  * @param mixed Associative array of response headers from the last request.
216
  */
217
  protected function updateCachedRequest($cached, $responseHeaders)
core/Google/IO/Curl.php CHANGED
@@ -16,14 +16,14 @@
16
  */
17
 
18
  /**
19
- * Curl based implementation of Google_IO.
20
  *
21
  * @author Stuart Langley <slangley@google.com>
22
  */
23
 
24
  require_once 'Google/IO/Abstract.php';
25
 
26
- class Google_IO_Curl extends Google_IO_Abstract
27
  {
28
  // hex for version 7.31.0
29
  const NO_QUIRK_VERSION = 0x071F00;
@@ -32,12 +32,12 @@ class Google_IO_Curl extends Google_IO_Abstract
32
  /**
33
  * Execute an HTTP Request
34
  *
35
- * @param Google_HttpRequest $request the http request to be executed
36
- * @return Google_HttpRequest http request with the response http code,
37
  * response headers and response body filled in
38
- * @throws Google_IO_Exception on curl or IO error
39
  */
40
- public function executeRequest(Google_Http_Request $request)
41
  {
42
  $curl = curl_init();
43
 
@@ -78,7 +78,7 @@ class Google_IO_Curl extends Google_IO_Abstract
78
 
79
  $response = curl_exec($curl);
80
  if ($response === false) {
81
- throw new Google_IO_Exception(curl_error($curl));
82
  }
83
  $headerSize = curl_getinfo($curl, CURLINFO_HEADER_SIZE);
84
 
@@ -130,6 +130,6 @@ class Google_IO_Curl extends Google_IO_Abstract
130
  {
131
  $ver = curl_version();
132
  $versionNum = $ver['version_number'];
133
- return $versionNum < Google_IO_Curl::NO_QUIRK_VERSION;
134
  }
135
  }
16
  */
17
 
18
  /**
19
+ * Curl based implementation of GoogleGAL_IO.
20
  *
21
  * @author Stuart Langley <slangley@google.com>
22
  */
23
 
24
  require_once 'Google/IO/Abstract.php';
25
 
26
+ class GoogleGAL_IO_Curl extends GoogleGAL_IO_Abstract
27
  {
28
  // hex for version 7.31.0
29
  const NO_QUIRK_VERSION = 0x071F00;
32
  /**
33
  * Execute an HTTP Request
34
  *
35
+ * @param GoogleGAL_HttpRequest $request the http request to be executed
36
+ * @return GoogleGAL_HttpRequest http request with the response http code,
37
  * response headers and response body filled in
38
+ * @throws GoogleGAL_IO_Exception on curl or IO error
39
  */
40
+ public function executeRequest(GoogleGAL_Http_Request $request)
41
  {
42
  $curl = curl_init();
43
 
78
 
79
  $response = curl_exec($curl);
80
  if ($response === false) {
81
+ throw new GoogleGAL_IO_Exception(curl_error($curl));
82
  }
83
  $headerSize = curl_getinfo($curl, CURLINFO_HEADER_SIZE);
84
 
130
  {
131
  $ver = curl_version();
132
  $versionNum = $ver['version_number'];
133
+ return $versionNum < GoogleGAL_IO_Curl::NO_QUIRK_VERSION;
134
  }
135
  }
core/Google/IO/Exception.php CHANGED
@@ -17,6 +17,6 @@
17
 
18
  require_once 'Google/Exception.php';
19
 
20
- class Google_IO_Exception extends Google_Exception
21
  {
22
  }
17
 
18
  require_once 'Google/Exception.php';
19
 
20
+ class GoogleGAL_IO_Exception extends GoogleGAL_Exception
21
  {
22
  }
core/Google/IO/Stream.php CHANGED
@@ -16,14 +16,14 @@
16
  */
17
 
18
  /**
19
- * Http Streams based implementation of Google_IO.
20
  *
21
  * @author Stuart Langley <slangley@google.com>
22
  */
23
 
24
  require_once 'Google/IO/Abstract.php';
25
 
26
- class Google_IO_Stream extends Google_IO_Abstract
27
  {
28
  const TIMEOUT = "timeout";
29
  const ZLIB = "compress.zlib://";
@@ -41,12 +41,12 @@ class Google_IO_Stream extends Google_IO_Abstract
41
  /**
42
  * Execute an HTTP Request
43
  *
44
- * @param Google_HttpRequest $request the http request to be executed
45
- * @return Google_HttpRequest http request with the response http code,
46
  * response headers and response body filled in
47
- * @throws Google_IO_Exception on curl or IO error
48
  */
49
- public function executeRequest(Google_Http_Request $request)
50
  {
51
  $default_options = stream_context_get_options(stream_context_get_default());
52
 
@@ -115,7 +115,7 @@ class Google_IO_Stream extends Google_IO_Abstract
115
  }
116
 
117
  if (false === $response_data) {
118
- throw new Google_IO_Exception(
119
  sprintf(
120
  "HTTP Error: Unable to connect: '%s'",
121
  $respHttpCode
16
  */
17
 
18
  /**
19
+ * Http Streams based implementation of GoogleGAL_IO.
20
  *
21
  * @author Stuart Langley <slangley@google.com>
22
  */
23
 
24
  require_once 'Google/IO/Abstract.php';
25
 
26
+ class GoogleGAL_IO_Stream extends GoogleGAL_IO_Abstract
27
  {
28
  const TIMEOUT = "timeout";
29
  const ZLIB = "compress.zlib://";
41
  /**
42
  * Execute an HTTP Request
43
  *
44
+ * @param GoogleGAL_HttpRequest $request the http request to be executed
45
+ * @return GoogleGAL_HttpRequest http request with the response http code,
46
  * response headers and response body filled in
47
+ * @throws GoogleGAL_IO_Exception on curl or IO error
48
  */
49
+ public function executeRequest(GoogleGAL_Http_Request $request)
50
  {
51
  $default_options = stream_context_get_options(stream_context_get_default());
52
 
115
  }
116
 
117
  if (false === $response_data) {
118
+ throw new GoogleGAL_IO_Exception(
119
  sprintf(
120
  "HTTP Error: Unable to connect: '%s'",
121
  $respHttpCode
core/Google/Model.php CHANGED
@@ -23,7 +23,7 @@
23
  * @author Chirag Shah <chirags@google.com>
24
  *
25
  */
26
- class Google_Model implements ArrayAccess
27
  {
28
  protected $modelData = array();
29
  protected $processed = array();
@@ -89,7 +89,7 @@ class Google_Model implements ArrayAccess
89
  property_exists($this, $key)) {
90
  $this->$key = $val;
91
  unset($array[$key]);
92
- } elseif (property_exists($this, $camelKey = Google_Utils::camelCase($key))) {
93
  // This checks if property exists as camelCase, leaving it in array as snake_case
94
  // in case of backwards compatibility issues.
95
  $this->$camelKey = $val;
@@ -136,7 +136,7 @@ class Google_Model implements ArrayAccess
136
  */
137
  private function getSimpleValue($value)
138
  {
139
- if ($value instanceof Google_Model) {
140
  return $value->toSimpleObject();
141
  } else if (is_array($value)) {
142
  $return = array();
@@ -185,14 +185,14 @@ class Google_Model implements ArrayAccess
185
 
186
  /**
187
  * Verify if $obj is an array.
188
- * @throws Google_Exception Thrown if $obj isn't an array.
189
  * @param array $obj Items that should be validated.
190
  * @param string $method Method expecting an array as an argument.
191
  */
192
  public function assertIsArray($obj, $method)
193
  {
194
  if ($obj && !is_array($obj)) {
195
- throw new Google_Exception(
196
  "Incorrect parameter type passed to $method(). Expected an array."
197
  );
198
  }
23
  * @author Chirag Shah <chirags@google.com>
24
  *
25
  */
26
+ class GoogleGAL_Model implements ArrayAccess
27
  {
28
  protected $modelData = array();
29
  protected $processed = array();
89
  property_exists($this, $key)) {
90
  $this->$key = $val;
91
  unset($array[$key]);
92
+ } elseif (property_exists($this, $camelKey = GoogleGAL_Utils::camelCase($key))) {
93
  // This checks if property exists as camelCase, leaving it in array as snake_case
94
  // in case of backwards compatibility issues.
95
  $this->$camelKey = $val;
136
  */
137
  private function getSimpleValue($value)
138
  {
139
+ if ($value instanceof GoogleGAL_Model) {
140
  return $value->toSimpleObject();
141
  } else if (is_array($value)) {
142
  $return = array();
185
 
186
  /**
187
  * Verify if $obj is an array.
188
+ * @throws GoogleGAL_Exception Thrown if $obj isn't an array.
189
  * @param array $obj Items that should be validated.
190
  * @param string $method Method expecting an array as an argument.
191
  */
192
  public function assertIsArray($obj, $method)
193
  {
194
  if ($obj && !is_array($obj)) {
195
+ throw new GoogleGAL_Exception(
196
  "Incorrect parameter type passed to $method(). Expected an array."
197
  );
198
  }
core/Google/README.md CHANGED
@@ -18,10 +18,10 @@ See the examples/ directory for examples of the key client features.
18
  <?php
19
  require_once 'Google/Client.php';
20
  require_once 'Google/Service/Books.php';
21
- $client = new Google_Client();
22
  $client->setApplicationName("Client_Library_Examples");
23
  $client->setDeveloperKey("YOUR_APP_KEY");
24
- $service = new Google_Service_Books($client);
25
  $optParams = array('filter' => 'free-ebooks');
26
  $results = $service->volumes->listVolumes('Henry David Thoreau', $optParams);
27
 
@@ -46,7 +46,7 @@ We accept contributions via Github Pull Requests, but all contributors need to b
46
 
47
  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.
48
 
49
- ### Why does Google_..._Service have weird names? ###
50
 
51
  The _Service classes are generally automatically generated from the API discovery documents: https://developers.google.com/discovery/. Sometimes new features are added to APIs with unusual names, which can cause some unexpected or non-standard style naming in the PHP classes.
52
 
18
  <?php
19
  require_once 'Google/Client.php';
20
  require_once 'Google/Service/Books.php';
21
+ $client = new GoogleGAL_Client();
22
  $client->setApplicationName("Client_Library_Examples");
23
  $client->setDeveloperKey("YOUR_APP_KEY");
24
+ $service = new GoogleGAL_Service_Books($client);
25
  $optParams = array('filter' => 'free-ebooks');
26
  $results = $service->volumes->listVolumes('Henry David Thoreau', $optParams);
27
 
46
 
47
  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.
48
 
49
+ ### Why does GoogleGAL_..._Service have weird names? ###
50
 
51
  The _Service classes are generally automatically generated from the API discovery documents: https://developers.google.com/discovery/. Sometimes new features are added to APIs with unusual names, which can cause some unexpected or non-standard style naming in the PHP classes.
52
 
core/Google/Service.php CHANGED
@@ -15,7 +15,7 @@
15
  * limitations under the License.
16
  */
17
 
18
- class Google_Service
19
  {
20
  public $version;
21
  public $servicePath;
@@ -23,14 +23,14 @@ class Google_Service
23
  public $resource;
24
  private $client;
25
 
26
- public function __construct(Google_Client $client)
27
  {
28
  $this->client = $client;
29
  }
30
 
31
  /**
32
- * Return the associated Google_Client class.
33
- * @return Google_Client
34
  */
35
  public function getClient()
36
  {
15
  * limitations under the License.
16
  */
17
 
18
+ class GoogleGAL_Service
19
  {
20
  public $version;
21
  public $servicePath;
23
  public $resource;
24
  private $client;
25
 
26
+ public function __construct(GoogleGAL_Client $client)
27
  {
28
  $this->client = $client;
29
  }
30
 
31
  /**
32
+ * Return the associated GoogleGAL_Client class.
33
+ * @return GoogleGAL_Client
34
  */
35
  public function getClient()
36
  {
core/Google/Service/AdExchangeBuyer.php CHANGED
@@ -29,7 +29,7 @@
29
  *
30
  * @author Google, Inc.
31
  */
32
- class Google_Service_AdExchangeBuyer extends Google_Service
33
  {
34
  /** Manage your Ad Exchange buyer account configuration. */
35
  const ADEXCHANGE_BUYER = "https://www.googleapis.com/auth/adexchange.buyer";
@@ -43,16 +43,16 @@ class Google_Service_AdExchangeBuyer extends Google_Service
43
  /**
44
  * Constructs the internal representation of the AdExchangeBuyer service.
45
  *
46
- * @param Google_Client $client
47
  */
48
- public function __construct(Google_Client $client)
49
  {
50
  parent::__construct($client);
51
  $this->servicePath = 'adexchangebuyer/v1.3/';
52
  $this->version = 'v1.3';
53
  $this->serviceName = 'adexchangebuyer';
54
 
55
- $this->accounts = new Google_Service_AdExchangeBuyer_Accounts_Resource(
56
  $this,
57
  $this->serviceName,
58
  'accounts',
@@ -96,7 +96,7 @@ class Google_Service_AdExchangeBuyer extends Google_Service
96
  )
97
  )
98
  );
99
- $this->creatives = new Google_Service_AdExchangeBuyer_Creatives_Resource(
100
  $this,
101
  $this->serviceName,
102
  'creatives',
@@ -142,7 +142,7 @@ class Google_Service_AdExchangeBuyer extends Google_Service
142
  )
143
  )
144
  );
145
- $this->directDeals = new Google_Service_AdExchangeBuyer_DirectDeals_Resource(
146
  $this,
147
  $this->serviceName,
148
  'directDeals',
@@ -166,7 +166,7 @@ class Google_Service_AdExchangeBuyer extends Google_Service
166
  )
167
  )
168
  );
169
- $this->performanceReport = new Google_Service_AdExchangeBuyer_PerformanceReport_Resource(
170
  $this,
171
  $this->serviceName,
172
  'performanceReport',
@@ -212,11 +212,11 @@ class Google_Service_AdExchangeBuyer extends Google_Service
212
  * The "accounts" collection of methods.
213
  * Typical usage is:
214
  * <code>
215
- * $adexchangebuyerService = new Google_Service_AdExchangeBuyer(...);
216
  * $accounts = $adexchangebuyerService->accounts;
217
  * </code>
218
  */
219
- class Google_Service_AdExchangeBuyer_Accounts_Resource extends Google_Service_Resource
220
  {
221
 
222
  /**
@@ -225,25 +225,25 @@ class Google_Service_AdExchangeBuyer_Accounts_Resource extends Google_Service_Re
225
  * @param int $id
226
  * The account id
227
  * @param array $optParams Optional parameters.
228
- * @return Google_Service_AdExchangeBuyer_Account
229
  */
230
  public function get($id, $optParams = array())
231
  {
232
  $params = array('id' => $id);
233
  $params = array_merge($params, $optParams);
234
- return $this->call('get', array($params), "Google_Service_AdExchangeBuyer_Account");
235
  }
236
  /**
237
  * Retrieves the authenticated user's list of accounts. (accounts.listAccounts)
238
  *
239
  * @param array $optParams Optional parameters.
240
- * @return Google_Service_AdExchangeBuyer_AccountsList
241
  */
242
  public function listAccounts($optParams = array())
243
  {
244
  $params = array();
245
  $params = array_merge($params, $optParams);
246
- return $this->call('list', array($params), "Google_Service_AdExchangeBuyer_AccountsList");
247
  }
248
  /**
249
  * Updates an existing account. This method supports patch semantics.
@@ -251,30 +251,30 @@ class Google_Service_AdExchangeBuyer_Accounts_Resource extends Google_Service_Re
251
  *
252
  * @param int $id
253
  * The account id
254
- * @param Google_Account $postBody
255
  * @param array $optParams Optional parameters.
256
- * @return Google_Service_AdExchangeBuyer_Account
257
  */
258
- public function patch($id, Google_Service_AdExchangeBuyer_Account $postBody, $optParams = array())
259
  {
260
  $params = array('id' => $id, 'postBody' => $postBody);
261
  $params = array_merge($params, $optParams);
262
- return $this->call('patch', array($params), "Google_Service_AdExchangeBuyer_Account");
263
  }
264
  /**
265
  * Updates an existing account. (accounts.update)
266
  *
267
  * @param int $id
268
  * The account id
269
- * @param Google_Account $postBody
270
  * @param array $optParams Optional parameters.
271
- * @return Google_Service_AdExchangeBuyer_Account
272
  */
273
- public function update($id, Google_Service_AdExchangeBuyer_Account $postBody, $optParams = array())
274
  {
275
  $params = array('id' => $id, 'postBody' => $postBody);
276
  $params = array_merge($params, $optParams);
277
- return $this->call('update', array($params), "Google_Service_AdExchangeBuyer_Account");
278
  }
279
  }
280
 
@@ -282,11 +282,11 @@ class Google_Service_AdExchangeBuyer_Accounts_Resource extends Google_Service_Re
282
  * The "creatives" collection of methods.
283
  * Typical usage is:
284
  * <code>
285
- * $adexchangebuyerService = new Google_Service_AdExchangeBuyer(...);
286
  * $creatives = $adexchangebuyerService->creatives;
287
  * </code>
288
  */
289
- class Google_Service_AdExchangeBuyer_Creatives_Resource extends Google_Service_Resource
290
  {
291
 
292
  /**
@@ -298,26 +298,26 @@ class Google_Service_AdExchangeBuyer_Creatives_Resource extends Google_Service_R
298
  * @param string $buyerCreativeId
299
  * The buyer-specific id for this creative.
300
  * @param array $optParams Optional parameters.
301
- * @return Google_Service_AdExchangeBuyer_Creative
302
  */
303
  public function get($accountId, $buyerCreativeId, $optParams = array())
304
  {
305
  $params = array('accountId' => $accountId, 'buyerCreativeId' => $buyerCreativeId);
306
  $params = array_merge($params, $optParams);
307
- return $this->call('get', array($params), "Google_Service_AdExchangeBuyer_Creative");
308
  }
309
  /**
310
  * Submit a new creative. (creatives.insert)
311
  *
312
- * @param Google_Creative $postBody
313
  * @param array $optParams Optional parameters.
314
- * @return Google_Service_AdExchangeBuyer_Creative
315
  */
316
- public function insert(Google_Service_AdExchangeBuyer_Creative $postBody, $optParams = array())
317
  {
318
  $params = array('postBody' => $postBody);
319
  $params = array_merge($params, $optParams);
320
- return $this->call('insert', array($params), "Google_Service_AdExchangeBuyer_Creative");
321
  }
322
  /**
323
  * Retrieves a list of the authenticated user's active creatives. A creative
@@ -332,13 +332,13 @@ class Google_Service_AdExchangeBuyer_Creatives_Resource extends Google_Service_R
332
  * parameter to the value of "nextPageToken" from the previous response. Optional.
333
  * @opt_param string maxResults
334
  * Maximum number of entries returned on one result page. If not set, the default is 100. Optional.
335
- * @return Google_Service_AdExchangeBuyer_CreativesList
336
  */
337
  public function listCreatives($optParams = array())
338
  {
339
  $params = array();
340
  $params = array_merge($params, $optParams);
341
- return $this->call('list', array($params), "Google_Service_AdExchangeBuyer_CreativesList");
342
  }
343
  }
344
 
@@ -346,11 +346,11 @@ class Google_Service_AdExchangeBuyer_Creatives_Resource extends Google_Service_R
346
  * The "directDeals" collection of methods.
347
  * Typical usage is:
348
  * <code>
349
- * $adexchangebuyerService = new Google_Service_AdExchangeBuyer(...);
350
  * $directDeals = $adexchangebuyerService->directDeals;
351
  * </code>
352
  */
353
- class Google_Service_AdExchangeBuyer_DirectDeals_Resource extends Google_Service_Resource
354
  {
355
 
356
  /**
@@ -359,26 +359,26 @@ class Google_Service_AdExchangeBuyer_DirectDeals_Resource extends Google_Service
359
  * @param string $id
360
  * The direct deal id
361
  * @param array $optParams Optional parameters.
362
- * @return Google_Service_AdExchangeBuyer_DirectDeal
363
  */
364
  public function get($id, $optParams = array())
365
  {
366
  $params = array('id' => $id);
367
  $params = array_merge($params, $optParams);
368
- return $this->call('get', array($params), "Google_Service_AdExchangeBuyer_DirectDeal");
369
  }
370
  /**
371
  * Retrieves the authenticated user's list of direct deals.
372
  * (directDeals.listDirectDeals)
373
  *
374
  * @param array $optParams Optional parameters.
375
- * @return Google_Service_AdExchangeBuyer_DirectDealsList
376
  */
377
  public function listDirectDeals($optParams = array())
378
  {
379
  $params = array();
380
  $params = array_merge($params, $optParams);
381
- return $this->call('list', array($params), "Google_Service_AdExchangeBuyer_DirectDealsList");
382
  }
383
  }
384
 
@@ -386,11 +386,11 @@ class Google_Service_AdExchangeBuyer_DirectDeals_Resource extends Google_Service
386
  * The "performanceReport" collection of methods.
387
  * Typical usage is:
388
  * <code>
389
- * $adexchangebuyerService = new Google_Service_AdExchangeBuyer(...);
390
  * $performanceReport = $adexchangebuyerService->performanceReport;
391
  * </code>
392
  */
393
- class Google_Service_AdExchangeBuyer_PerformanceReport_Resource extends Google_Service_Resource
394
  {
395
 
396
  /**
@@ -410,22 +410,22 @@ class Google_Service_AdExchangeBuyer_PerformanceReport_Resource extends Google_S
410
  * this parameter to the value of "nextPageToken" from the previous response. Optional.
411
  * @opt_param string maxResults
412
  * Maximum number of entries returned on one result page. If not set, the default is 100. Optional.
413
- * @return Google_Service_AdExchangeBuyer_PerformanceReportList
414
  */
415
  public function listPerformanceReport($accountId, $endDateTime, $startDateTime, $optParams = array())
416
  {
417
  $params = array('accountId' => $accountId, 'endDateTime' => $endDateTime, 'startDateTime' => $startDateTime);
418
  $params = array_merge($params, $optParams);
419
- return $this->call('list', array($params), "Google_Service_AdExchangeBuyer_PerformanceReportList");
420
  }
421
  }
422
 
423
 
424
 
425
 
426
- class Google_Service_AdExchangeBuyer_Account extends Google_Collection
427
  {
428
- protected $bidderLocationType = 'Google_Service_AdExchangeBuyer_AccountBidderLocation';
429
  protected $bidderLocationDataType = 'array';
430
  public $cookieMatchingNid;
431
  public $cookieMatchingUrl;
@@ -494,7 +494,7 @@ class Google_Service_AdExchangeBuyer_Account extends Google_Collection
494
  }
495
  }
496
 
497
- class Google_Service_AdExchangeBuyer_AccountBidderLocation extends Google_Model
498
  {
499
  public $maximumQps;
500
  public $region;
@@ -531,9 +531,9 @@ class Google_Service_AdExchangeBuyer_AccountBidderLocation extends Google_Model
531
  }
532
  }
533
 
534
- class Google_Service_AdExchangeBuyer_AccountsList extends Google_Collection
535
  {
536
- protected $itemsType = 'Google_Service_AdExchangeBuyer_Account';
537
  protected $itemsDataType = 'array';
538
  public $kind;
539
 
@@ -558,7 +558,7 @@ class Google_Service_AdExchangeBuyer_AccountsList extends Google_Collection
558
  }
559
  }
560
 
561
- class Google_Service_AdExchangeBuyer_Creative extends Google_Collection
562
  {
563
  public $hTMLSnippet;
564
  public $accountId;
@@ -568,11 +568,11 @@ class Google_Service_AdExchangeBuyer_Creative extends Google_Collection
568
  public $attribute;
569
  public $buyerCreativeId;
570
  public $clickThroughUrl;
571
- protected $correctionsType = 'Google_Service_AdExchangeBuyer_CreativeCorrections';
572
  protected $correctionsDataType = 'array';
573
- protected $disapprovalReasonsType = 'Google_Service_AdExchangeBuyer_CreativeDisapprovalReasons';
574
  protected $disapprovalReasonsDataType = 'array';
575
- protected $filteringReasonsType = 'Google_Service_AdExchangeBuyer_CreativeFilteringReasons';
576
  protected $filteringReasonsDataType = '';
577
  public $height;
578
  public $kind;
@@ -684,7 +684,7 @@ class Google_Service_AdExchangeBuyer_Creative extends Google_Collection
684
  return $this->disapprovalReasons;
685
  }
686
 
687
- public function setFilteringReasons(Google_Service_AdExchangeBuyer_CreativeFilteringReasons $filteringReasons)
688
  {
689
  $this->filteringReasons = $filteringReasons;
690
  }
@@ -785,7 +785,7 @@ class Google_Service_AdExchangeBuyer_Creative extends Google_Collection
785
  }
786
  }
787
 
788
- class Google_Service_AdExchangeBuyer_CreativeCorrections extends Google_Collection
789
  {
790
  public $details;
791
  public $reason;
@@ -811,7 +811,7 @@ class Google_Service_AdExchangeBuyer_CreativeCorrections extends Google_Collecti
811
  }
812
  }
813
 
814
- class Google_Service_AdExchangeBuyer_CreativeDisapprovalReasons extends Google_Collection
815
  {
816
  public $details;
817
  public $reason;
@@ -837,10 +837,10 @@ class Google_Service_AdExchangeBuyer_CreativeDisapprovalReasons extends Google_C
837
  }
838
  }
839
 
840
- class Google_Service_AdExchangeBuyer_CreativeFilteringReasons extends Google_Collection
841
  {
842
  public $date;
843
- protected $reasonsType = 'Google_Service_AdExchangeBuyer_CreativeFilteringReasonsReasons';
844
  protected $reasonsDataType = 'array';
845
 
846
  public function setDate($date)
@@ -864,7 +864,7 @@ class Google_Service_AdExchangeBuyer_CreativeFilteringReasons extends Google_Col
864
  }
865
  }
866
 
867
- class Google_Service_AdExchangeBuyer_CreativeFilteringReasonsReasons extends Google_Model
868
  {
869
  public $filteringCount;
870
  public $filteringStatus;
@@ -890,9 +890,9 @@ class Google_Service_AdExchangeBuyer_CreativeFilteringReasonsReasons extends Goo
890
  }
891
  }
892
 
893
- class Google_Service_AdExchangeBuyer_CreativesList extends Google_Collection
894
  {
895
- protected $itemsType = 'Google_Service_AdExchangeBuyer_Creative';
896
  protected $itemsDataType = 'array';
897
  public $kind;
898
  public $nextPageToken;
@@ -928,7 +928,7 @@ class Google_Service_AdExchangeBuyer_CreativesList extends Google_Collection
928
  }
929
  }
930
 
931
- class Google_Service_AdExchangeBuyer_DirectDeal extends Google_Model
932
  {
933
  public $accountId;
934
  public $advertiser;
@@ -1053,9 +1053,9 @@ class Google_Service_AdExchangeBuyer_DirectDeal extends Google_Model
1053
  }
1054
  }
1055
 
1056
- class Google_Service_AdExchangeBuyer_DirectDealsList extends Google_Collection
1057
  {
1058
- protected $directDealsType = 'Google_Service_AdExchangeBuyer_DirectDeal';
1059
  protected $directDealsDataType = 'array';
1060
  public $kind;
1061
 
@@ -1080,7 +1080,7 @@ class Google_Service_AdExchangeBuyer_DirectDealsList extends Google_Collection
1080
  }
1081
  }
1082
 
1083
- class Google_Service_AdExchangeBuyer_PerformanceReport extends Google_Collection
1084
  {
1085
  public $calloutStatusRate;
1086
  public $cookieMatcherStatusRate;
@@ -1260,10 +1260,10 @@ class Google_Service_AdExchangeBuyer_PerformanceReport extends Google_Collection
1260
  }
1261
  }
1262
 
1263
- class Google_Service_AdExchangeBuyer_PerformanceReportList extends Google_Collection
1264
  {
1265
  public $kind;
1266
- protected $performanceReportType = 'Google_Service_AdExchangeBuyer_PerformanceReport';
1267
  protected $performanceReportDataType = 'array';
1268
 
1269
  public function setKind($kind)
29
  *
30
  * @author Google, Inc.
31
  */
32
+ class GoogleGAL_Service_AdExchangeBuyer extends GoogleGAL_Service
33
  {
34
  /** Manage your Ad Exchange buyer account configuration. */
35
  const ADEXCHANGE_BUYER = "https://www.googleapis.com/auth/adexchange.buyer";
43
  /**
44
  * Constructs the internal representation of the AdExchangeBuyer service.
45
  *
46
+ * @param GoogleGAL_Client $client
47
  */
48
+ public function __construct(GoogleGAL_Client $client)
49
  {
50
  parent::__construct($client);
51
  $this->servicePath = 'adexchangebuyer/v1.3/';
52
  $this->version = 'v1.3';
53
  $this->serviceName = 'adexchangebuyer';
54
 
55
+ $this->accounts = new GoogleGAL_Service_AdExchangeBuyer_Accounts_Resource(
56
  $this,
57
  $this->serviceName,
58
  'accounts',
96
  )
97
  )
98
  );
99
+ $this->creatives = new GoogleGAL_Service_AdExchangeBuyer_Creatives_Resource(
100
  $this,
101
  $this->serviceName,
102
  'creatives',
142
  )
143
  )
144
  );
145
+ $this->directDeals = new GoogleGAL_Service_AdExchangeBuyer_DirectDeals_Resource(
146
  $this,
147
  $this->serviceName,
148
  'directDeals',
166
  )
167
  )
168
  );
169
+ $this->performanceReport = new GoogleGAL_Service_AdExchangeBuyer_PerformanceReport_Resource(
170
  $this,
171
  $this->serviceName,
172
  'performanceReport',
212
  * The "accounts" collection of methods.
213
  * Typical usage is:
214
  * <code>
215
+ * $adexchangebuyerService = new GoogleGAL_Service_AdExchangeBuyer(...);
216
  * $accounts = $adexchangebuyerService->accounts;
217
  * </code>
218
  */
219
+ class GoogleGAL_Service_AdExchangeBuyer_Accounts_Resource extends GoogleGAL_Service_Resource
220
  {
221
 
222
  /**
225
  * @param int $id
226
  * The account id
227
  * @param array $optParams Optional parameters.
228
+ * @return GoogleGAL_Service_AdExchangeBuyer_Account
229
  */
230
  public function get($id, $optParams = array())
231
  {
232
  $params = array('id' => $id);
233
  $params = array_merge($params, $optParams);
234
+ return $this->call('get', array($params), "GoogleGAL_Service_AdExchangeBuyer_Account");
235
  }
236
  /**
237
  * Retrieves the authenticated user's list of accounts. (accounts.listAccounts)
238
  *
239
  * @param array $optParams Optional parameters.
240
+ * @return GoogleGAL_Service_AdExchangeBuyer_AccountsList
241
  */
242
  public function listAccounts($optParams = array())
243
  {
244
  $params = array();
245
  $params = array_merge($params, $optParams);
246
+ return $this->call('list', array($params), "GoogleGAL_Service_AdExchangeBuyer_AccountsList");
247
  }
248
  /**
249
  * Updates an existing account. This method supports patch semantics.
251
  *
252
  * @param int $id
253
  * The account id
254
+ * @param GoogleGAL_Account $postBody
255
  * @param array $optParams Optional parameters.
256
+ * @return GoogleGAL_Service_AdExchangeBuyer_Account
257
  */
258
+ public function patch($id, GoogleGAL_Service_AdExchangeBuyer_Account $postBody, $optParams = array())
259
  {
260
  $params = array('id' => $id, 'postBody' => $postBody);
261
  $params = array_merge($params, $optParams);
262
+ return $this->call('patch', array($params), "GoogleGAL_Service_AdExchangeBuyer_Account");
263
  }
264
  /**
265
  * Updates an existing account. (accounts.update)
266
  *
267
  * @param int $id
268
  * The account id
269
+ * @param GoogleGAL_Account $postBody
270
  * @param array $optParams Optional parameters.
271
+ * @return GoogleGAL_Service_AdExchangeBuyer_Account
272
  */
273
+ public function update($id, GoogleGAL_Service_AdExchangeBuyer_Account $postBody, $optParams = array())
274
  {
275
  $params = array('id' => $id, 'postBody' => $postBody);
276
  $params = array_merge($params, $optParams);
277
+ return $this->call('update', array($params), "GoogleGAL_Service_AdExchangeBuyer_Account");
278
  }
279
  }
280
 
282
  * The "creatives" collection of methods.
283
  * Typical usage is:
284
  * <code>
285
+ * $adexchangebuyerService = new GoogleGAL_Service_AdExchangeBuyer(...);
286
  * $creatives = $adexchangebuyerService->creatives;
287
  * </code>
288
  */
289
+ class GoogleGAL_Service_AdExchangeBuyer_Creatives_Resource extends GoogleGAL_Service_Resource
290
  {
291
 
292
  /**
298
  * @param string $buyerCreativeId
299
  * The buyer-specific id for this creative.
300
  * @param array $optParams Optional parameters.
301
+ * @return GoogleGAL_Service_AdExchangeBuyer_Creative
302
  */
303
  public function get($accountId, $buyerCreativeId, $optParams = array())
304
  {
305
  $params = array('accountId' => $accountId, 'buyerCreativeId' => $buyerCreativeId);
306
  $params = array_merge($params, $optParams);
307
+ return $this->call('get', array($params), "GoogleGAL_Service_AdExchangeBuyer_Creative");
308
  }
309
  /**
310
  * Submit a new creative. (creatives.insert)
311
  *
312
+ * @param GoogleGAL_Creative $postBody
313
  * @param array $optParams Optional parameters.
314
+ * @return GoogleGAL_Service_AdExchangeBuyer_Creative
315
  */
316
+ public function insert(GoogleGAL_Service_AdExchangeBuyer_Creative $postBody, $optParams = array())
317
  {
318
  $params = array('postBody' => $postBody);
319
  $params = array_merge($params, $optParams);
320
+ return $this->call('insert', array($params), "GoogleGAL_Service_AdExchangeBuyer_Creative");
321
  }
322
  /**
323
  * Retrieves a list of the authenticated user's active creatives. A creative
332
  * parameter to the value of "nextPageToken" from the previous response. Optional.
333
  * @opt_param string maxResults
334
  * Maximum number of entries returned on one result page. If not set, the default is 100. Optional.
335
+ * @return GoogleGAL_Service_AdExchangeBuyer_CreativesList
336
  */
337
  public function listCreatives($optParams = array())
338
  {
339
  $params = array();
340
  $params = array_merge($params, $optParams);
341
+ return $this->call('list', array($params), "GoogleGAL_Service_AdExchangeBuyer_CreativesList");
342
  }
343
  }
344
 
346
  * The "directDeals" collection of methods.
347
  * Typical usage is:
348
  * <code>
349
+ * $adexchangebuyerService = new GoogleGAL_Service_AdExchangeBuyer(...);
350
  * $directDeals = $adexchangebuyerService->directDeals;
351
  * </code>
352
  */
353
+ class GoogleGAL_Service_AdExchangeBuyer_DirectDeals_Resource extends GoogleGAL_Service_Resource
354
  {
355
 
356
  /**
359
  * @param string $id
360
  * The direct deal id
361
  * @param array $optParams Optional parameters.
362
+ * @return GoogleGAL_Service_AdExchangeBuyer_DirectDeal
363
  */
364
  public function get($id, $optParams = array())
365
  {
366
  $params = array('id' => $id);
367
  $params = array_merge($params, $optParams);
368
+ return $this->call('get', array($params), "GoogleGAL_Service_AdExchangeBuyer_DirectDeal");
369
  }
370
  /**
371
  * Retrieves the authenticated user's list of direct deals.
372
  * (directDeals.listDirectDeals)
373
  *
374
  * @param array $optParams Optional parameters.
375
+ * @return GoogleGAL_Service_AdExchangeBuyer_DirectDealsList
376
  */
377
  public function listDirectDeals($optParams = array())
378
  {
379
  $params = array();
380
  $params = array_merge($params, $optParams);
381
+ return $this->call('list', array($params), "GoogleGAL_Service_AdExchangeBuyer_DirectDealsList");
382
  }
383
  }
384
 
386
  * The "performanceReport" collection of methods.
387
  * Typical usage is:
388
  * <code>
389
+ * $adexchangebuyerService = new GoogleGAL_Service_AdExchangeBuyer(...);
390
  * $performanceReport = $adexchangebuyerService->performanceReport;
391
  * </code>
392
  */
393
+ class GoogleGAL_Service_AdExchangeBuyer_PerformanceReport_Resource extends GoogleGAL_Service_Resource
394
  {
395
 
396
  /**
410
  * this parameter to the value of "nextPageToken" from the previous response. Optional.
411
  * @opt_param string maxResults
412
  * Maximum number of entries returned on one result page. If not set, the default is 100. Optional.
413
+ * @return GoogleGAL_Service_AdExchangeBuyer_PerformanceReportList
414
  */
415
  public function listPerformanceReport($accountId, $endDateTime, $startDateTime, $optParams = array())
416
  {
417
  $params = array('accountId' => $accountId, 'endDateTime' => $endDateTime, 'startDateTime' => $startDateTime);
418
  $params = array_merge($params, $optParams);
419
+ return $this->call('list', array($params), "GoogleGAL_Service_AdExchangeBuyer_PerformanceReportList");
420
  }
421
  }
422
 
423
 
424
 
425
 
426
+ class GoogleGAL_Service_AdExchangeBuyer_Account extends GoogleGAL_Collection
427
  {
428
+ protected $bidderLocationType = 'GoogleGAL_Service_AdExchangeBuyer_AccountBidderLocation';
429
  protected $bidderLocationDataType = 'array';
430
  public $cookieMatchingNid;
431
  public $cookieMatchingUrl;
494
  }
495
  }
496
 
497
+ class GoogleGAL_Service_AdExchangeBuyer_AccountBidderLocation extends GoogleGAL_Model
498
  {
499
  public $maximumQps;
500
  public $region;
531
  }
532
  }
533
 
534
+ class GoogleGAL_Service_AdExchangeBuyer_AccountsList extends GoogleGAL_Collection
535
  {
536
+ protected $itemsType = 'GoogleGAL_Service_AdExchangeBuyer_Account';
537
  protected $itemsDataType = 'array';
538
  public $kind;
539
 
558
  }
559
  }
560
 
561
+ class GoogleGAL_Service_AdExchangeBuyer_Creative extends GoogleGAL_Collection
562
  {
563
  public $hTMLSnippet;
564
  public $accountId;
568
  public $attribute;
569
  public $buyerCreativeId;
570
  public $clickThroughUrl;
571
+ protected $correctionsType = 'GoogleGAL_Service_AdExchangeBuyer_CreativeCorrections';
572
  protected $correctionsDataType = 'array';
573
+ protected $disapprovalReasonsType = 'GoogleGAL_Service_AdExchangeBuyer_CreativeDisapprovalReasons';
574
  protected $disapprovalReasonsDataType = 'array';
575
+ protected $filteringReasonsType = 'GoogleGAL_Service_AdExchangeBuyer_CreativeFilteringReasons';
576
  protected $filteringReasonsDataType = '';
577
  public $height;
578
  public $kind;
684
  return $this->disapprovalReasons;
685
  }
686
 
687
+ public function setFilteringReasons(GoogleGAL_Service_AdExchangeBuyer_CreativeFilteringReasons $filteringReasons)
688
  {
689
  $this->filteringReasons = $filteringReasons;
690
  }
785
  }
786
  }
787
 
788
+ class GoogleGAL_Service_AdExchangeBuyer_CreativeCorrections extends GoogleGAL_Collection
789
  {
790
  public $details;
791
  public $reason;
811
  }
812
  }
813
 
814
+ class GoogleGAL_Service_AdExchangeBuyer_CreativeDisapprovalReasons extends GoogleGAL_Collection
815
  {
816
  public $details;
817
  public $reason;
837
  }
838
  }
839
 
840
+ class GoogleGAL_Service_AdExchangeBuyer_CreativeFilteringReasons extends GoogleGAL_Collection
841
  {
842
  public $date;
843
+ protected $reasonsType = 'GoogleGAL_Service_AdExchangeBuyer_CreativeFilteringReasonsReasons';
844
  protected $reasonsDataType = 'array';
845
 
846
  public function setDate($date)
864
  }
865
  }
866
 
867
+ class GoogleGAL_Service_AdExchangeBuyer_CreativeFilteringReasonsReasons extends GoogleGAL_Model
868
  {
869
  public $filteringCount;
870
  public $filteringStatus;
890
  }
891
  }
892
 
893
+ class GoogleGAL_Service_AdExchangeBuyer_CreativesList extends GoogleGAL_Collection
894
  {
895
+ protected $itemsType = 'GoogleGAL_Service_AdExchangeBuyer_Creative';
896
  protected $itemsDataType = 'array';
897
  public $kind;
898
  public $nextPageToken;
928
  }
929
  }
930
 
931
+ class GoogleGAL_Service_AdExchangeBuyer_DirectDeal extends GoogleGAL_Model
932
  {
933
  public $accountId;
934
  public $advertiser;
1053
  }
1054
  }
1055
 
1056
+ class GoogleGAL_Service_AdExchangeBuyer_DirectDealsList extends GoogleGAL_Collection
1057
  {
1058
+ protected $directDealsType = 'GoogleGAL_Service_AdExchangeBuyer_DirectDeal';
1059
  protected $directDealsDataType = 'array';
1060
  public $kind;
1061
 
1080
  }
1081
  }
1082
 
1083
+ class GoogleGAL_Service_AdExchangeBuyer_PerformanceReport extends GoogleGAL_Collection
1084
  {
1085
  public $calloutStatusRate;
1086
  public $cookieMatcherStatusRate;
1260
  }
1261
  }
1262
 
1263
+ class GoogleGAL_Service_AdExchangeBuyer_PerformanceReportList extends GoogleGAL_Collection
1264
  {
1265
  public $kind;
1266
+ protected $performanceReportType = 'GoogleGAL_Service_AdExchangeBuyer_PerformanceReport';
1267
  protected $performanceReportDataType = 'array';
1268
 
1269
  public function setKind($kind)
core/Google/Service/AdExchangeSeller.php CHANGED
@@ -29,7 +29,7 @@
29
  *
30
  * @author Google, Inc.
31
  */
32
- class Google_Service_AdExchangeSeller extends Google_Service
33
  {
34
  /** View and manage your Ad Exchange data. */
35
  const ADEXCHANGE_SELLER = "https://www.googleapis.com/auth/adexchange.seller";
@@ -54,16 +54,16 @@ class Google_Service_AdExchangeSeller extends Google_Service
54
  /**
55
  * Constructs the internal representation of the AdExchangeSeller service.
56
  *
57
- * @param Google_Client $client
58
  */
59
- public function __construct(Google_Client $client)
60
  {
61
  parent::__construct($client);
62
  $this->servicePath = 'adexchangeseller/v1.1/';
63
  $this->version = 'v1.1';
64
  $this->serviceName = 'adexchangeseller';
65
 
66
- $this->accounts = new Google_Service_AdExchangeSeller_Accounts_Resource(
67
  $this,
68
  $this->serviceName,
69
  'accounts',
@@ -83,7 +83,7 @@ class Google_Service_AdExchangeSeller extends Google_Service
83
  )
84
  )
85
  );
86
- $this->adclients = new Google_Service_AdExchangeSeller_Adclients_Resource(
87
  $this,
88
  $this->serviceName,
89
  'adclients',
@@ -106,7 +106,7 @@ class Google_Service_AdExchangeSeller extends Google_Service
106
  )
107
  )
108
  );
109
- $this->adunits = new Google_Service_AdExchangeSeller_Adunits_Resource(
110
  $this,
111
  $this->serviceName,
112
  'adunits',
@@ -153,7 +153,7 @@ class Google_Service_AdExchangeSeller extends Google_Service
153
  )
154
  )
155
  );
156
- $this->adunits_customchannels = new Google_Service_AdExchangeSeller_AdunitsCustomchannels_Resource(
157
  $this,
158
  $this->serviceName,
159
  'customchannels',
@@ -186,7 +186,7 @@ class Google_Service_AdExchangeSeller extends Google_Service
186
  )
187
  )
188
  );
189
- $this->alerts = new Google_Service_AdExchangeSeller_Alerts_Resource(
190
  $this,
191
  $this->serviceName,
192
  'alerts',
@@ -205,7 +205,7 @@ class Google_Service_AdExchangeSeller extends Google_Service
205
  )
206
  )
207
  );
208
- $this->customchannels = new Google_Service_AdExchangeSeller_Customchannels_Resource(
209
  $this,
210
  $this->serviceName,
211
  'customchannels',
@@ -248,7 +248,7 @@ class Google_Service_AdExchangeSeller extends Google_Service
248
  )
249
  )
250
  );
251
- $this->customchannels_adunits = new Google_Service_AdExchangeSeller_CustomchannelsAdunits_Resource(
252
  $this,
253
  $this->serviceName,
254
  'adunits',
@@ -285,7 +285,7 @@ class Google_Service_AdExchangeSeller extends Google_Service
285
  )
286
  )
287
  );
288
- $this->metadata_dimensions = new Google_Service_AdExchangeSeller_MetadataDimensions_Resource(
289
  $this,
290
  $this->serviceName,
291
  'dimensions',
@@ -299,7 +299,7 @@ class Google_Service_AdExchangeSeller extends Google_Service
299
  )
300
  )
301
  );
302
- $this->metadata_metrics = new Google_Service_AdExchangeSeller_MetadataMetrics_Resource(
303
  $this,
304
  $this->serviceName,
305
  'metrics',
@@ -313,7 +313,7 @@ class Google_Service_AdExchangeSeller extends Google_Service
313
  )
314
  )
315
  );
316
- $this->preferreddeals = new Google_Service_AdExchangeSeller_Preferreddeals_Resource(
317
  $this,
318
  $this->serviceName,
319
  'preferreddeals',
@@ -337,7 +337,7 @@ class Google_Service_AdExchangeSeller extends Google_Service
337
  )
338
  )
339
  );
340
- $this->reports = new Google_Service_AdExchangeSeller_Reports_Resource(
341
  $this,
342
  $this->serviceName,
343
  'reports',
@@ -394,7 +394,7 @@ class Google_Service_AdExchangeSeller extends Google_Service
394
  )
395
  )
396
  );
397
- $this->reports_saved = new Google_Service_AdExchangeSeller_ReportsSaved_Resource(
398
  $this,
399
  $this->serviceName,
400
  'saved',
@@ -439,7 +439,7 @@ class Google_Service_AdExchangeSeller extends Google_Service
439
  )
440
  )
441
  );
442
- $this->urlchannels = new Google_Service_AdExchangeSeller_Urlchannels_Resource(
443
  $this,
444
  $this->serviceName,
445
  'urlchannels',
@@ -475,11 +475,11 @@ class Google_Service_AdExchangeSeller extends Google_Service
475
  * The "accounts" collection of methods.
476
  * Typical usage is:
477
  * <code>
478
- * $adexchangesellerService = new Google_Service_AdExchangeSeller(...);
479
  * $accounts = $adexchangesellerService->accounts;
480
  * </code>
481
  */
482
- class Google_Service_AdExchangeSeller_Accounts_Resource extends Google_Service_Resource
483
  {
484
 
485
  /**
@@ -488,13 +488,13 @@ class Google_Service_AdExchangeSeller_Accounts_Resource extends Google_Service_R
488
  * @param string $accountId
489
  * Account to get information about. Tip: 'myaccount' is a valid ID.
490
  * @param array $optParams Optional parameters.
491
- * @return Google_Service_AdExchangeSeller_Account
492
  */
493
  public function get($accountId, $optParams = array())
494
  {
495
  $params = array('accountId' => $accountId);
496
  $params = array_merge($params, $optParams);
497
- return $this->call('get', array($params), "Google_Service_AdExchangeSeller_Account");
498
  }
499
  }
500
 
@@ -502,11 +502,11 @@ class Google_Service_AdExchangeSeller_Accounts_Resource extends Google_Service_R
502
  * The "adclients" collection of methods.
503
  * Typical usage is:
504
  * <code>
505
- * $adexchangesellerService = new Google_Service_AdExchangeSeller(...);
506
  * $adclients = $adexchangesellerService->adclients;
507
  * </code>
508
  */
509
- class Google_Service_AdExchangeSeller_Adclients_Resource extends Google_Service_Resource
510
  {
511
 
512
  /**
@@ -519,13 +519,13 @@ class Google_Service_AdExchangeSeller_Adclients_Resource extends Google_Service_
519
  * parameter to the value of "nextPageToken" from the previous response.
520
  * @opt_param string maxResults
521
  * The maximum number of ad clients to include in the response, used for paging.
522
- * @return Google_Service_AdExchangeSeller_AdClients
523
  */
524
  public function listAdclients($optParams = array())
525
  {
526
  $params = array();
527
  $params = array_merge($params, $optParams);
528
- return $this->call('list', array($params), "Google_Service_AdExchangeSeller_AdClients");
529
  }
530
  }
531
 
@@ -533,11 +533,11 @@ class Google_Service_AdExchangeSeller_Adclients_Resource extends Google_Service_
533
  * The "adunits" collection of methods.
534
  * Typical usage is:
535
  * <code>
536
- * $adexchangesellerService = new Google_Service_AdExchangeSeller(...);
537
  * $adunits = $adexchangesellerService->adunits;
538
  * </code>
539
  */
540
- class Google_Service_AdExchangeSeller_Adunits_Resource extends Google_Service_Resource
541
  {
542
 
543
  /**
@@ -548,13 +548,13 @@ class Google_Service_AdExchangeSeller_Adunits_Resource extends Google_Service_Re
548
  * @param string $adUnitId
549
  * Ad unit to retrieve.
550
  * @param array $optParams Optional parameters.
551
- * @return Google_Service_AdExchangeSeller_AdUnit
552
  */
553
  public function get($adClientId, $adUnitId, $optParams = array())
554
  {
555
  $params = array('adClientId' => $adClientId, 'adUnitId' => $adUnitId);
556
  $params = array_merge($params, $optParams);
557
- return $this->call('get', array($params), "Google_Service_AdExchangeSeller_AdUnit");
558
  }
559
  /**
560
  * List all ad units in the specified ad client for this Ad Exchange account.
@@ -571,13 +571,13 @@ class Google_Service_AdExchangeSeller_Adunits_Resource extends Google_Service_Re
571
  * parameter to the value of "nextPageToken" from the previous response.
572
  * @opt_param string maxResults
573
  * The maximum number of ad units to include in the response, used for paging.
574
- * @return Google_Service_AdExchangeSeller_AdUnits
575
  */
576
  public function listAdunits($adClientId, $optParams = array())
577
  {
578
  $params = array('adClientId' => $adClientId);
579
  $params = array_merge($params, $optParams);
580
- return $this->call('list', array($params), "Google_Service_AdExchangeSeller_AdUnits");
581
  }
582
  }
583
 
@@ -585,11 +585,11 @@ class Google_Service_AdExchangeSeller_Adunits_Resource extends Google_Service_Re
585
  * The "customchannels" collection of methods.
586
  * Typical usage is:
587
  * <code>
588
- * $adexchangesellerService = new Google_Service_AdExchangeSeller(...);
589
  * $customchannels = $adexchangesellerService->customchannels;
590
  * </code>
591
  */
592
- class Google_Service_AdExchangeSeller_AdunitsCustomchannels_Resource extends Google_Service_Resource
593
  {
594
 
595
  /**
@@ -607,13 +607,13 @@ class Google_Service_AdExchangeSeller_AdunitsCustomchannels_Resource extends Goo
607
  * parameter to the value of "nextPageToken" from the previous response.
608
  * @opt_param string maxResults
609
  * The maximum number of custom channels to include in the response, used for paging.
610
- * @return Google_Service_AdExchangeSeller_CustomChannels
611
  */
612
  public function listAdunitsCustomchannels($adClientId, $adUnitId, $optParams = array())
613
  {
614
  $params = array('adClientId' => $adClientId, 'adUnitId' => $adUnitId);
615
  $params = array_merge($params, $optParams);
616
- return $this->call('list', array($params), "Google_Service_AdExchangeSeller_CustomChannels");
617
  }
618
  }
619
 
@@ -621,11 +621,11 @@ class Google_Service_AdExchangeSeller_AdunitsCustomchannels_Resource extends Goo
621
  * The "alerts" collection of methods.
622
  * Typical usage is:
623
  * <code>
624
- * $adexchangesellerService = new Google_Service_AdExchangeSeller(...);
625
  * $alerts = $adexchangesellerService->alerts;
626
  * </code>
627
  */
628
- class Google_Service_AdExchangeSeller_Alerts_Resource extends Google_Service_Resource
629
  {
630
 
631
  /**
@@ -637,13 +637,13 @@ class Google_Service_AdExchangeSeller_Alerts_Resource extends Google_Service_Res
637
  * The locale to use for translating alert messages. The account locale will be used if this is not
638
  * supplied. The AdSense default (English) will be used if the supplied locale is invalid or
639
  * unsupported.
640
- * @return Google_Service_AdExchangeSeller_Alerts
641
  */
642
  public function listAlerts($optParams = array())
643
  {
644
  $params = array();
645
  $params = array_merge($params, $optParams);
646
- return $this->call('list', array($params), "Google_Service_AdExchangeSeller_Alerts");
647
  }
648
  }
649
 
@@ -651,11 +651,11 @@ class Google_Service_AdExchangeSeller_Alerts_Resource extends Google_Service_Res
651
  * The "customchannels" collection of methods.
652
  * Typical usage is:
653
  * <code>
654
- * $adexchangesellerService = new Google_Service_AdExchangeSeller(...);
655
  * $customchannels = $adexchangesellerService->customchannels;
656
  * </code>
657
  */
658
- class Google_Service_AdExchangeSeller_Customchannels_Resource extends Google_Service_Resource
659
  {
660
 
661
  /**
@@ -667,13 +667,13 @@ class Google_Service_AdExchangeSeller_Customchannels_Resource extends Google_Ser
667
  * @param string $customChannelId
668
  * Custom channel to retrieve.
669
  * @param array $optParams Optional parameters.
670
- * @return Google_Service_AdExchangeSeller_CustomChannel
671
  */
672
  public function get($adClientId, $customChannelId, $optParams = array())
673
  {
674
  $params = array('adClientId' => $adClientId, 'customChannelId' => $customChannelId);
675
  $params = array_merge($params, $optParams);
676
- return $this->call('get', array($params), "Google_Service_AdExchangeSeller_CustomChannel");
677
  }
678
  /**
679
  * List all custom channels in the specified ad client for this Ad Exchange
@@ -688,13 +688,13 @@ class Google_Service_AdExchangeSeller_Customchannels_Resource extends Google_Ser
688
  * parameter to the value of "nextPageToken" from the previous response.
689
  * @opt_param string maxResults
690
  * The maximum number of custom channels to include in the response, used for paging.
691
- * @return Google_Service_AdExchangeSeller_CustomChannels
692
  */
693
  public function listCustomchannels($adClientId, $optParams = array())
694
  {
695
  $params = array('adClientId' => $adClientId);
696
  $params = array_merge($params, $optParams);
697
- return $this->call('list', array($params), "Google_Service_AdExchangeSeller_CustomChannels");
698
  }
699
  }
700
 
@@ -702,11 +702,11 @@ class Google_Service_AdExchangeSeller_Customchannels_Resource extends Google_Ser
702
  * The "adunits" collection of methods.
703
  * Typical usage is:
704
  * <code>
705
- * $adexchangesellerService = new Google_Service_AdExchangeSeller(...);
706
  * $adunits = $adexchangesellerService->adunits;
707
  * </code>
708
  */
709
- class Google_Service_AdExchangeSeller_CustomchannelsAdunits_Resource extends Google_Service_Resource
710
  {
711
 
712
  /**
@@ -726,13 +726,13 @@ class Google_Service_AdExchangeSeller_CustomchannelsAdunits_Resource extends Goo
726
  * parameter to the value of "nextPageToken" from the previous response.
727
  * @opt_param string maxResults
728
  * The maximum number of ad units to include in the response, used for paging.
729
- * @return Google_Service_AdExchangeSeller_AdUnits
730
  */
731
  public function listCustomchannelsAdunits($adClientId, $customChannelId, $optParams = array())
732
  {
733
  $params = array('adClientId' => $adClientId, 'customChannelId' => $customChannelId);
734
  $params = array_merge($params, $optParams);
735
- return $this->call('list', array($params), "Google_Service_AdExchangeSeller_AdUnits");
736
  }
737
  }
738
 
@@ -740,11 +740,11 @@ class Google_Service_AdExchangeSeller_CustomchannelsAdunits_Resource extends Goo
740
  * The "metadata" collection of methods.
741
  * Typical usage is:
742
  * <code>
743
- * $adexchangesellerService = new Google_Service_AdExchangeSeller(...);
744
  * $metadata = $adexchangesellerService->metadata;
745
  * </code>
746
  */
747
- class Google_Service_AdExchangeSeller_Metadata_Resource extends Google_Service_Resource
748
  {
749
 
750
  }
@@ -753,11 +753,11 @@ class Google_Service_AdExchangeSeller_Metadata_Resource extends Google_Service_R
753
  * The "dimensions" collection of methods.
754
  * Typical usage is:
755
  * <code>
756
- * $adexchangesellerService = new Google_Service_AdExchangeSeller(...);
757
  * $dimensions = $adexchangesellerService->dimensions;
758
  * </code>
759
  */
760
- class Google_Service_AdExchangeSeller_MetadataDimensions_Resource extends Google_Service_Resource
761
  {
762
 
763
  /**
@@ -765,24 +765,24 @@ class Google_Service_AdExchangeSeller_MetadataDimensions_Resource extends Google
765
  * (dimensions.listMetadataDimensions)
766
  *
767
  * @param array $optParams Optional parameters.
768
- * @return Google_Service_AdExchangeSeller_Metadata
769
  */
770
  public function listMetadataDimensions($optParams = array())
771
  {
772
  $params = array();
773
  $params = array_merge($params, $optParams);
774
- return $this->call('list', array($params), "Google_Service_AdExchangeSeller_Metadata");
775
  }
776
  }
777
  /**
778
  * The "metrics" collection of methods.
779
  * Typical usage is:
780
  * <code>
781
- * $adexchangesellerService = new Google_Service_AdExchangeSeller(...);
782
  * $metrics = $adexchangesellerService->metrics;
783
  * </code>
784
  */
785
- class Google_Service_AdExchangeSeller_MetadataMetrics_Resource extends Google_Service_Resource
786
  {
787
 
788
  /**
@@ -790,13 +790,13 @@ class Google_Service_AdExchangeSeller_MetadataMetrics_Resource extends Google_Se
790
  * (metrics.listMetadataMetrics)
791
  *
792
  * @param array $optParams Optional parameters.
793
- * @return Google_Service_AdExchangeSeller_Metadata
794
  */
795
  public function listMetadataMetrics($optParams = array())
796
  {
797
  $params = array();
798
  $params = array_merge($params, $optParams);
799
- return $this->call('list', array($params), "Google_Service_AdExchangeSeller_Metadata");
800
  }
801
  }
802
 
@@ -804,11 +804,11 @@ class Google_Service_AdExchangeSeller_MetadataMetrics_Resource extends Google_Se
804
  * The "preferreddeals" collection of methods.
805
  * Typical usage is:
806
  * <code>
807
- * $adexchangesellerService = new Google_Service_AdExchangeSeller(...);
808
  * $preferreddeals = $adexchangesellerService->preferreddeals;
809
  * </code>
810
  */
811
- class Google_Service_AdExchangeSeller_Preferreddeals_Resource extends Google_Service_Resource
812
  {
813
 
814
  /**
@@ -818,26 +818,26 @@ class Google_Service_AdExchangeSeller_Preferreddeals_Resource extends Google_Ser
818
  * @param string $dealId
819
  * Preferred deal to get information about.
820
  * @param array $optParams Optional parameters.
821
- * @return Google_Service_AdExchangeSeller_PreferredDeal
822
  */
823
  public function get($dealId, $optParams = array())
824
  {
825
  $params = array('dealId' => $dealId);
826
  $params = array_merge($params, $optParams);
827
- return $this->call('get', array($params), "Google_Service_AdExchangeSeller_PreferredDeal");
828
  }
829
  /**
830
  * List the preferred deals for this Ad Exchange account.
831
  * (preferreddeals.listPreferreddeals)
832
  *
833
  * @param array $optParams Optional parameters.
834
- * @return Google_Service_AdExchangeSeller_PreferredDeals
835
  */
836
  public function listPreferreddeals($optParams = array())
837
  {
838
  $params = array();
839
  $params = array_merge($params, $optParams);
840
- return $this->call('list', array($params), "Google_Service_AdExchangeSeller_PreferredDeals");
841
  }
842
  }
843
 
@@ -845,11 +845,11 @@ class Google_Service_AdExchangeSeller_Preferreddeals_Resource extends Google_Ser
845
  * The "reports" collection of methods.
846
  * Typical usage is:
847
  * <code>
848
- * $adexchangesellerService = new Google_Service_AdExchangeSeller(...);
849
  * $reports = $adexchangesellerService->reports;
850
  * </code>
851
  */
852
- class Google_Service_AdExchangeSeller_Reports_Resource extends Google_Service_Resource
853
  {
854
 
855
  /**
@@ -880,13 +880,13 @@ class Google_Service_AdExchangeSeller_Reports_Resource extends Google_Service_Re
880
  * Index of the first row of report data to return.
881
  * @opt_param string dimension
882
  * Dimensions to base the report on.
883
- * @return Google_Service_AdExchangeSeller_Report
884
  */
885
  public function generate($startDate, $endDate, $optParams = array())
886
  {
887
  $params = array('startDate' => $startDate, 'endDate' => $endDate);
888
  $params = array_merge($params, $optParams);
889
- return $this->call('generate', array($params), "Google_Service_AdExchangeSeller_Report");
890
  }
891
  }
892
 
@@ -894,11 +894,11 @@ class Google_Service_AdExchangeSeller_Reports_Resource extends Google_Service_Re
894
  * The "saved" collection of methods.
895
  * Typical usage is:
896
  * <code>
897
- * $adexchangesellerService = new Google_Service_AdExchangeSeller(...);
898
  * $saved = $adexchangesellerService->saved;
899
  * </code>
900
  */
901
- class Google_Service_AdExchangeSeller_ReportsSaved_Resource extends Google_Service_Resource
902
  {
903
 
904
  /**
@@ -916,13 +916,13 @@ class Google_Service_AdExchangeSeller_ReportsSaved_Resource extends Google_Servi
916
  * Index of the first row of report data to return.
917
  * @opt_param int maxResults
918
  * The maximum number of rows of report data to return.
919
- * @return Google_Service_AdExchangeSeller_Report
920
  */
921
  public function generate($savedReportId, $optParams = array())
922
  {
923
  $params = array('savedReportId' => $savedReportId);
924
  $params = array_merge($params, $optParams);
925
- return $this->call('generate', array($params), "Google_Service_AdExchangeSeller_Report");
926
  }
927
  /**
928
  * List all saved reports in this Ad Exchange account. (saved.listReportsSaved)
@@ -934,13 +934,13 @@ class Google_Service_AdExchangeSeller_ReportsSaved_Resource extends Google_Servi
934
  * parameter to the value of "nextPageToken" from the previous response.
935
  * @opt_param int maxResults
936
  * The maximum number of saved reports to include in the response, used for paging.
937
- * @return Google_Service_AdExchangeSeller_SavedReports
938
  */
939
  public function listReportsSaved($optParams = array())
940
  {
941
  $params = array();
942
  $params = array_merge($params, $optParams);
943
- return $this->call('list', array($params), "Google_Service_AdExchangeSeller_SavedReports");
944
  }
945
  }
946
 
@@ -948,11 +948,11 @@ class Google_Service_AdExchangeSeller_ReportsSaved_Resource extends Google_Servi
948
  * The "urlchannels" collection of methods.
949
  * Typical usage is:
950
  * <code>
951
- * $adexchangesellerService = new Google_Service_AdExchangeSeller(...);
952
  * $urlchannels = $adexchangesellerService->urlchannels;
953
  * </code>
954
  */
955
- class Google_Service_AdExchangeSeller_Urlchannels_Resource extends Google_Service_Resource
956
  {
957
 
958
  /**
@@ -968,20 +968,20 @@ class Google_Service_AdExchangeSeller_Urlchannels_Resource extends Google_Servic
968
  * parameter to the value of "nextPageToken" from the previous response.
969
  * @opt_param string maxResults
970
  * The maximum number of URL channels to include in the response, used for paging.
971
- * @return Google_Service_AdExchangeSeller_UrlChannels
972
  */
973
  public function listUrlchannels($adClientId, $optParams = array())
974
  {
975
  $params = array('adClientId' => $adClientId);
976
  $params = array_merge($params, $optParams);
977
- return $this->call('list', array($params), "Google_Service_AdExchangeSeller_UrlChannels");
978
  }
979
  }
980
 
981
 
982
 
983
 
984
- class Google_Service_AdExchangeSeller_Account extends Google_Model
985
  {
986
  public $id;
987
  public $kind;
@@ -1018,7 +1018,7 @@ class Google_Service_AdExchangeSeller_Account extends Google_Model
1018
  }
1019
  }
1020
 
1021
- class Google_Service_AdExchangeSeller_AdClient extends Google_Model
1022
  {
1023
  public $arcOptIn;
1024
  public $id;
@@ -1077,10 +1077,10 @@ class Google_Service_AdExchangeSeller_AdClient extends Google_Model
1077
  }
1078
  }
1079
 
1080
- class Google_Service_AdExchangeSeller_AdClients extends Google_Collection
1081
  {
1082
  public $etag;
1083
- protected $itemsType = 'Google_Service_AdExchangeSeller_AdClient';
1084
  protected $itemsDataType = 'array';
1085
  public $kind;
1086
  public $nextPageToken;
@@ -1126,7 +1126,7 @@ class Google_Service_AdExchangeSeller_AdClients extends Google_Collection
1126
  }
1127
  }
1128
 
1129
- class Google_Service_AdExchangeSeller_AdUnit extends Google_Model
1130
  {
1131
  public $code;
1132
  public $id;
@@ -1185,10 +1185,10 @@ class Google_Service_AdExchangeSeller_AdUnit extends Google_Model
1185
  }
1186
  }
1187
 
1188
- class Google_Service_AdExchangeSeller_AdUnits extends Google_Collection
1189
  {
1190
  public $etag;
1191
- protected $itemsType = 'Google_Service_AdExchangeSeller_AdUnit';
1192
  protected $itemsDataType = 'array';
1193
  public $kind;
1194
  public $nextPageToken;
@@ -1234,7 +1234,7 @@ class Google_Service_AdExchangeSeller_AdUnits extends Google_Collection
1234
  }
1235
  }
1236
 
1237
- class Google_Service_AdExchangeSeller_Alert extends Google_Model
1238
  {
1239
  public $id;
1240
  public $kind;
@@ -1293,9 +1293,9 @@ class Google_Service_AdExchangeSeller_Alert extends Google_Model
1293
  }
1294
  }
1295
 
1296
- class Google_Service_AdExchangeSeller_Alerts extends Google_Collection
1297
  {
1298
- protected $itemsType = 'Google_Service_AdExchangeSeller_Alert';
1299
  protected $itemsDataType = 'array';
1300
  public $kind;
1301
 
@@ -1320,13 +1320,13 @@ class Google_Service_AdExchangeSeller_Alerts extends Google_Collection
1320
  }
1321
  }
1322
 
1323
- class Google_Service_AdExchangeSeller_CustomChannel extends Google_Model
1324
  {
1325
  public $code;
1326
  public $id;
1327
  public $kind;
1328
  public $name;
1329
- protected $targetingInfoType = 'Google_Service_AdExchangeSeller_CustomChannelTargetingInfo';
1330
  protected $targetingInfoDataType = '';
1331
 
1332
  public function setCode($code)
@@ -1369,7 +1369,7 @@ class Google_Service_AdExchangeSeller_CustomChannel extends Google_Model
1369
  return $this->name;
1370
  }
1371
 
1372
- public function setTargetingInfo(Google_Service_AdExchangeSeller_CustomChannelTargetingInfo $targetingInfo)
1373
  {
1374
  $this->targetingInfo = $targetingInfo;
1375
  }
@@ -1380,7 +1380,7 @@ class Google_Service_AdExchangeSeller_CustomChannel extends Google_Model
1380
  }
1381
  }
1382
 
1383
- class Google_Service_AdExchangeSeller_CustomChannelTargetingInfo extends Google_Model
1384
  {
1385
  public $adsAppearOn;
1386
  public $description;
@@ -1428,10 +1428,10 @@ class Google_Service_AdExchangeSeller_CustomChannelTargetingInfo extends Google_
1428
  }
1429
  }
1430
 
1431
- class Google_Service_AdExchangeSeller_CustomChannels extends Google_Collection
1432
  {
1433
  public $etag;
1434
- protected $itemsType = 'Google_Service_AdExchangeSeller_CustomChannel';
1435
  protected $itemsDataType = 'array';
1436
  public $kind;
1437
  public $nextPageToken;
@@ -1477,9 +1477,9 @@ class Google_Service_AdExchangeSeller_CustomChannels extends Google_Collection
1477
  }
1478
  }
1479
 
1480
- class Google_Service_AdExchangeSeller_Metadata extends Google_Collection
1481
  {
1482
- protected $itemsType = 'Google_Service_AdExchangeSeller_ReportingMetadataEntry';
1483
  protected $itemsDataType = 'array';
1484
  public $kind;
1485
 
@@ -1504,7 +1504,7 @@ class Google_Service_AdExchangeSeller_Metadata extends Google_Collection
1504
  }
1505
  }
1506
 
1507
- class Google_Service_AdExchangeSeller_PreferredDeal extends Google_Model
1508
  {
1509
  public $advertiserName;
1510
  public $buyerNetworkName;
@@ -1596,9 +1596,9 @@ class Google_Service_AdExchangeSeller_PreferredDeal extends Google_Model
1596
  }
1597
  }
1598
 
1599
- class Google_Service_AdExchangeSeller_PreferredDeals extends Google_Collection
1600
  {
1601
- protected $itemsType = 'Google_Service_AdExchangeSeller_PreferredDeal';
1602
  protected $itemsDataType = 'array';
1603
  public $kind;
1604
 
@@ -1623,10 +1623,10 @@ class Google_Service_AdExchangeSeller_PreferredDeals extends Google_Collection
1623
  }
1624
  }
1625
 
1626
- class Google_Service_AdExchangeSeller_Report extends Google_Collection
1627
  {
1628
  public $averages;
1629
- protected $headersType = 'Google_Service_AdExchangeSeller_ReportHeaders';
1630
  protected $headersDataType = 'array';
1631
  public $kind;
1632
  public $rows;
@@ -1705,7 +1705,7 @@ class Google_Service_AdExchangeSeller_Report extends Google_Collection
1705
  }
1706
  }
1707
 
1708
- class Google_Service_AdExchangeSeller_ReportHeaders extends Google_Model
1709
  {
1710
  public $currency;
1711
  public $name;
@@ -1742,7 +1742,7 @@ class Google_Service_AdExchangeSeller_ReportHeaders extends Google_Model
1742
  }
1743
  }
1744
 
1745
- class Google_Service_AdExchangeSeller_ReportingMetadataEntry extends Google_Collection
1746
  {
1747
  public $compatibleDimensions;
1748
  public $compatibleMetrics;
@@ -1823,7 +1823,7 @@ class Google_Service_AdExchangeSeller_ReportingMetadataEntry extends Google_Coll
1823
  }
1824
  }
1825
 
1826
- class Google_Service_AdExchangeSeller_SavedReport extends Google_Model
1827
  {
1828
  public $id;
1829
  public $kind;
@@ -1860,10 +1860,10 @@ class Google_Service_AdExchangeSeller_SavedReport extends Google_Model
1860
  }
1861
  }
1862
 
1863
- class Google_Service_AdExchangeSeller_SavedReports extends Google_Collection
1864
  {
1865
  public $etag;
1866
- protected $itemsType = 'Google_Service_AdExchangeSeller_SavedReport';
1867
  protected $itemsDataType = 'array';
1868
  public $kind;
1869
  public $nextPageToken;
@@ -1909,7 +1909,7 @@ class Google_Service_AdExchangeSeller_SavedReports extends Google_Collection
1909
  }
1910
  }
1911
 
1912
- class Google_Service_AdExchangeSeller_UrlChannel extends Google_Model
1913
  {
1914
  public $id;
1915
  public $kind;
@@ -1946,10 +1946,10 @@ class Google_Service_AdExchangeSeller_UrlChannel extends Google_Model
1946
  }
1947
  }
1948
 
1949
- class Google_Service_AdExchangeSeller_UrlChannels extends Google_Collection
1950
  {
1951
  public $etag;
1952
- protected $itemsType = 'Google_Service_AdExchangeSeller_UrlChannel';
1953
  protected $itemsDataType = 'array';
1954
  public $kind;
1955
  public $nextPageToken;
29
  *
30
  * @author Google, Inc.
31
  */
32
+ class GoogleGAL_Service_AdExchangeSeller extends GoogleGAL_Service
33
  {
34
  /** View and manage your Ad Exchange data. */
35
  const ADEXCHANGE_SELLER = "https://www.googleapis.com/auth/adexchange.seller";
54
  /**
55
  * Constructs the internal representation of the AdExchangeSeller service.
56
  *
57
+ * @param GoogleGAL_Client $client
58
  */
59
+ public function __construct(GoogleGAL_Client $client)
60
  {
61
  parent::__construct($client);
62
  $this->servicePath = 'adexchangeseller/v1.1/';
63
  $this->version = 'v1.1';
64
  $this->serviceName = 'adexchangeseller';
65
 
66
+ $this->accounts = new GoogleGAL_Service_AdExchangeSeller_Accounts_Resource(
67
  $this,
68
  $this->serviceName,
69
  'accounts',
83
  )
84
  )
85
  );
86
+ $this->adclients = new GoogleGAL_Service_AdExchangeSeller_Adclients_Resource(
87
  $this,
88
  $this->serviceName,
89
  'adclients',
106
  )
107
  )
108
  );
109
+ $this->adunits = new GoogleGAL_Service_AdExchangeSeller_Adunits_Resource(
110
  $this,
111
  $this->serviceName,
112
  'adunits',
153
  )
154
  )
155
  );
156
+ $this->adunits_customchannels = new GoogleGAL_Service_AdExchangeSeller_AdunitsCustomchannels_Resource(
157
  $this,
158
  $this->serviceName,
159
  'customchannels',
186
  )
187
  )
188
  );
189
+ $this->alerts = new GoogleGAL_Service_AdExchangeSeller_Alerts_Resource(
190
  $this,
191
  $this->serviceName,
192
  'alerts',
205
  )
206
  )
207
  );
208
+ $this->customchannels = new GoogleGAL_Service_AdExchangeSeller_Customchannels_Resource(
209
  $this,
210
  $this->serviceName,
211
  'customchannels',
248
  )
249
  )
250
  );
251
+ $this->customchannels_adunits = new GoogleGAL_Service_AdExchangeSeller_CustomchannelsAdunits_Resource(
252
  $this,
253
  $this->serviceName,
254
  'adunits',
285
  )
286
  )
287
  );
288
+ $this->metadata_dimensions = new GoogleGAL_Service_AdExchangeSeller_MetadataDimensions_Resource(
289
  $this,
290
  $this->serviceName,
291
  'dimensions',
299
  )
300
  )
301
  );
302
+ $this->metadata_metrics = new GoogleGAL_Service_AdExchangeSeller_MetadataMetrics_Resource(
303
  $this,
304
  $this->serviceName,
305
  'metrics',
313
  )
314
  )
315
  );
316
+ $this->preferreddeals = new GoogleGAL_Service_AdExchangeSeller_Preferreddeals_Resource(
317
  $this,
318
  $this->serviceName,
319
  'preferreddeals',
337
  )
338
  )
339
  );
340
+ $this->reports = new GoogleGAL_Service_AdExchangeSeller_Reports_Resource(
341
  $this,
342
  $this->serviceName,
343
  'reports',
394
  )
395
  )
396
  );
397
+ $this->reports_saved = new GoogleGAL_Service_AdExchangeSeller_ReportsSaved_Resource(
398
  $this,
399
  $this->serviceName,
400
  'saved',
439
  )
440
  )
441
  );
442
+ $this->urlchannels = new GoogleGAL_Service_AdExchangeSeller_Urlchannels_Resource(
443
  $this,
444
  $this->serviceName,
445
  'urlchannels',
475
  * The "accounts" collection of methods.
476
  * Typical usage is:
477
  * <code>
478
+ * $adexchangesellerService = new GoogleGAL_Service_AdExchangeSeller(...);
479
  * $accounts = $adexchangesellerService->accounts;
480
  * </code>
481
  */
482
+ class GoogleGAL_Service_AdExchangeSeller_Accounts_Resource extends GoogleGAL_Service_Resource
483
  {
484
 
485
  /**
488
  * @param string $accountId
489
  * Account to get information about. Tip: 'myaccount' is a valid ID.
490
  * @param array $optParams Optional parameters.
491
+ * @return GoogleGAL_Service_AdExchangeSeller_Account
492
  */
493
  public function get($accountId, $optParams = array())
494
  {
495
  $params = array('accountId' => $accountId);
496
  $params = array_merge($params, $optParams);
497
+ return $this->call('get', array($params), "GoogleGAL_Service_AdExchangeSeller_Account");
498
  }
499
  }
500
 
502
  * The "adclients" collection of methods.
503
  * Typical usage is:
504
  * <code>
505
+ * $adexchangesellerService = new GoogleGAL_Service_AdExchangeSeller(...);
506
  * $adclients = $adexchangesellerService->adclients;
507
  * </code>
508
  */
509
+ class GoogleGAL_Service_AdExchangeSeller_Adclients_Resource extends GoogleGAL_Service_Resource
510
  {
511
 
512
  /**
519
  * parameter to the value of "nextPageToken" from the previous response.
520
  * @opt_param string maxResults
521
  * The maximum number of ad clients to include in the response, used for paging.
522
+ * @return GoogleGAL_Service_AdExchangeSeller_AdClients
523
  */
524
  public function listAdclients($optParams = array())
525
  {
526
  $params = array();
527
  $params = array_merge($params, $optParams);
528
+ return $this->call('list', array($params), "GoogleGAL_Service_AdExchangeSeller_AdClients");
529
  }
530
  }
531
 
533
  * The "adunits" collection of methods.
534
  * Typical usage is:
535
  * <code>
536
+ * $adexchangesellerService = new GoogleGAL_Service_AdExchangeSeller(...);
537
  * $adunits = $adexchangesellerService->adunits;
538
  * </code>
539
  */
540
+ class GoogleGAL_Service_AdExchangeSeller_Adunits_Resource extends GoogleGAL_Service_Resource
541
  {
542
 
543
  /**
548
  * @param string $adUnitId
549
  * Ad unit to retrieve.
550
  * @param array $optParams Optional parameters.
551
+ * @return GoogleGAL_Service_AdExchangeSeller_AdUnit
552
  */
553
  public function get($adClientId, $adUnitId, $optParams = array())
554
  {
555
  $params = array('adClientId' => $adClientId, 'adUnitId' => $adUnitId);
556
  $params = array_merge($params, $optParams);
557
+ return $this->call('get', array($params), "GoogleGAL_Service_AdExchangeSeller_AdUnit");
558
  }
559
  /**
560
  * List all ad units in the specified ad client for this Ad Exchange account.
571
  * parameter to the value of "nextPageToken" from the previous response.
572
  * @opt_param string maxResults
573
  * The maximum number of ad units to include in the response, used for paging.
574
+ * @return GoogleGAL_Service_AdExchangeSeller_AdUnits
575
  */
576
  public function listAdunits($adClientId, $optParams = array())
577
  {
578
  $params = array('adClientId' => $adClientId);
579
  $params = array_merge($params, $optParams);
580
+ return $this->call('list', array($params), "GoogleGAL_Service_AdExchangeSeller_AdUnits");
581
  }
582
  }
583
 
585
  * The "customchannels" collection of methods.
586
  * Typical usage is:
587
  * <code>
588
+ * $adexchangesellerService = new GoogleGAL_Service_AdExchangeSeller(...);
589
  * $customchannels = $adexchangesellerService->customchannels;
590
  * </code>
591
  */
592
+ class GoogleGAL_Service_AdExchangeSeller_AdunitsCustomchannels_Resource extends GoogleGAL_Service_Resource
593
  {
594
 
595
  /**
607
  * parameter to the value of "nextPageToken" from the previous response.
608
  * @opt_param string maxResults
609
  * The maximum number of custom channels to include in the response, used for paging.
610
+ * @return GoogleGAL_Service_AdExchangeSeller_CustomChannels
611
  */
612
  public function listAdunitsCustomchannels($adClientId, $adUnitId, $optParams = array())
613
  {
614
  $params = array('adClientId' => $adClientId, 'adUnitId' => $adUnitId);
615
  $params = array_merge($params, $optParams);
616
+ return $this->call('list', array($params), "GoogleGAL_Service_AdExchangeSeller_CustomChannels");
617
  }
618
  }
619
 
621
  * The "alerts" collection of methods.
622
  * Typical usage is:
623
  * <code>
624
+ * $adexchangesellerService = new GoogleGAL_Service_AdExchangeSeller(...);
625
  * $alerts = $adexchangesellerService->alerts;
626
  * </code>
627
  */
628
+ class GoogleGAL_Service_AdExchangeSeller_Alerts_Resource extends GoogleGAL_Service_Resource
629
  {
630
 
631
  /**
637
  * The locale to use for translating alert messages. The account locale will be used if this is not
638
  * supplied. The AdSense default (English) will be used if the supplied locale is invalid or
639
  * unsupported.
640
+ * @return GoogleGAL_Service_AdExchangeSeller_Alerts
641
  */
642
  public function listAlerts($optParams = array())
643
  {
644
  $params = array();
645
  $params = array_merge($params, $optParams);
646
+ return $this->call('list', array($params), "GoogleGAL_Service_AdExchangeSeller_Alerts");
647
  }
648
  }
649
 
651
  * The "customchannels" collection of methods.
652
  * Typical usage is:
653
  * <code>
654
+ * $adexchangesellerService = new GoogleGAL_Service_AdExchangeSeller(...);
655
  * $customchannels = $adexchangesellerService->customchannels;
656
  * </code>
657
  */
658
+ class GoogleGAL_Service_AdExchangeSeller_Customchannels_Resource extends GoogleGAL_Service_Resource
659
  {
660
 
661
  /**
667
  * @param string $customChannelId
668
  * Custom channel to retrieve.
669
  * @param array $optParams Optional parameters.
670
+ * @return GoogleGAL_Service_AdExchangeSeller_CustomChannel
671
  */
672
  public function get($adClientId, $customChannelId, $optParams = array())
673
  {
674
  $params = array('adClientId' => $adClientId, 'customChannelId' => $customChannelId);
675
  $params = array_merge($params, $optParams);
676
+ return $this->call('get', array($params), "GoogleGAL_Service_AdExchangeSeller_CustomChannel");
677
  }
678
  /**
679
  * List all custom channels in the specified ad client for this Ad Exchange
688
  * parameter to the value of "nextPageToken" from the previous response.
689
  * @opt_param string maxResults
690
  * The maximum number of custom channels to include in the response, used for paging.
691
+ * @return GoogleGAL_Service_AdExchangeSeller_CustomChannels
692
  */
693
  public function listCustomchannels($adClientId, $optParams = array())
694
  {
695
  $params = array('adClientId' => $adClientId);
696
  $params = array_merge($params, $optParams);
697
+ return $this->call('list', array($params), "GoogleGAL_Service_AdExchangeSeller_CustomChannels");
698
  }
699
  }
700
 
702
  * The "adunits" collection of methods.
703
  * Typical usage is:
704
  * <code>
705
+ * $adexchangesellerService = new GoogleGAL_Service_AdExchangeSeller(...);
706
  * $adunits = $adexchangesellerService->adunits;
707
  * </code>
708
  */
709
+ class GoogleGAL_Service_AdExchangeSeller_CustomchannelsAdunits_Resource extends GoogleGAL_Service_Resource
710
  {
711
 
712
  /**
726
  * parameter to the value of "nextPageToken" from the previous response.
727
  * @opt_param string maxResults
728
  * The maximum number of ad units to include in the response, used for paging.
729
+ * @return GoogleGAL_Service_AdExchangeSeller_AdUnits
730
  */
731
  public function listCustomchannelsAdunits($adClientId, $customChannelId, $optParams = array())
732
  {
733
  $params = array('adClientId' => $adClientId, 'customChannelId' => $customChannelId);
734
  $params = array_merge($params, $optParams);
735
+ return $this->call('list', array($params), "GoogleGAL_Service_AdExchangeSeller_AdUnits");
736
  }
737
  }
738
 
740
  * The "metadata" collection of methods.
741
  * Typical usage is:
742
  * <code>
743
+ * $adexchangesellerService = new GoogleGAL_Service_AdExchangeSeller(...);
744
  * $metadata = $adexchangesellerService->metadata;
745
  * </code>
746
  */
747
+ class GoogleGAL_Service_AdExchangeSeller_Metadata_Resource extends GoogleGAL_Service_Resource
748
  {
749
 
750
  }
753
  * The "dimensions" collection of methods.
754
  * Typical usage is:
755
  * <code>
756
+ * $adexchangesellerService = new GoogleGAL_Service_AdExchangeSeller(...);
757
  * $dimensions = $adexchangesellerService->dimensions;
758
  * </code>
759
  */
760
+ class GoogleGAL_Service_AdExchangeSeller_MetadataDimensions_Resource extends GoogleGAL_Service_Resource
761
  {
762
 
763
  /**
765
  * (dimensions.listMetadataDimensions)
766
  *
767
  * @param array $optParams Optional parameters.
768
+ * @return GoogleGAL_Service_AdExchangeSeller_Metadata
769
  */
770
  public function listMetadataDimensions($optParams = array())
771
  {
772
  $params = array();
773
  $params = array_merge($params, $optParams);
774
+ return $this->call('list', array($params), "GoogleGAL_Service_AdExchangeSeller_Metadata");
775
  }
776
  }
777
  /**
778
  * The "metrics" collection of methods.
779
  * Typical usage is:
780
  * <code>
781
+ * $adexchangesellerService = new GoogleGAL_Service_AdExchangeSeller(...);
782
  * $metrics = $adexchangesellerService->metrics;
783
  * </code>
784
  */
785
+ class GoogleGAL_Service_AdExchangeSeller_MetadataMetrics_Resource extends GoogleGAL_Service_Resource
786
  {
787
 
788
  /**
790
  * (metrics.listMetadataMetrics)
791
  *
792
  * @param array $optParams Optional parameters.
793
+ * @return GoogleGAL_Service_AdExchangeSeller_Metadata
794
  */
795
  public function listMetadataMetrics($optParams = array())
796
  {
797
  $params = array();
798
  $params = array_merge($params, $optParams);
799
+ return $this->call('list', array($params), "GoogleGAL_Service_AdExchangeSeller_Metadata");
800
  }
801
  }
802
 
804
  * The "preferreddeals" collection of methods.
805
  * Typical usage is:
806
  * <code>
807
+ * $adexchangesellerService = new GoogleGAL_Service_AdExchangeSeller(...);
808
  * $preferreddeals = $adexchangesellerService->preferreddeals;
809
  * </code>
810
  */
811
+ class GoogleGAL_Service_AdExchangeSeller_Preferreddeals_Resource extends GoogleGAL_Service_Resource
812
  {
813
 
814
  /**
818
  * @param string $dealId
819
  * Preferred deal to get information about.
820
  * @param array $optParams Optional parameters.
821
+ * @return GoogleGAL_Service_AdExchangeSeller_PreferredDeal
822
  */
823
  public function get($dealId, $optParams = array())
824
  {
825
  $params = array('dealId' => $dealId);
826
  $params = array_merge($params, $optParams);
827
+ return $this->call('get', array($params), "GoogleGAL_Service_AdExchangeSeller_PreferredDeal");
828
  }
829
  /**
830
  * List the preferred deals for this Ad Exchange account.
831
  * (preferreddeals.listPreferreddeals)
832
  *
833
  * @param array $optParams Optional parameters.
834
+ * @return GoogleGAL_Service_AdExchangeSeller_PreferredDeals
835
  */
836
  public function listPreferreddeals($optParams = array())
837
  {
838
  $params = array();
839
  $params = array_merge($params, $optParams);
840
+ return $this->call('list', array($params), "GoogleGAL_Service_AdExchangeSeller_PreferredDeals");
841
  }
842
  }
843
 
845
  * The "reports" collection of methods.
846
  * Typical usage is:
847
  * <code>
848
+ * $adexchangesellerService = new GoogleGAL_Service_AdExchangeSeller(...);
849
  * $reports = $adexchangesellerService->reports;
850
  * </code>
851
  */
852
+ class GoogleGAL_Service_AdExchangeSeller_Reports_Resource extends GoogleGAL_Service_Resource
853
  {
854
 
855
  /**
880
  * Index of the first row of report data to return.
881
  * @opt_param string dimension
882
  * Dimensions to base the report on.
883
+ * @return GoogleGAL_Service_AdExchangeSeller_Report
884
  */
885
  public function generate($startDate, $endDate, $optParams = array())
886
  {
887
  $params = array('startDate' => $startDate, 'endDate' => $endDate);
888
  $params = array_merge($params, $optParams);
889
+ return $this->call('generate', array($params), "GoogleGAL_Service_AdExchangeSeller_Report");
890
  }
891
  }
892
 
894
  * The "saved" collection of methods.
895
  * Typical usage is:
896
  * <code>
897
+ * $adexchangesellerService = new GoogleGAL_Service_AdExchangeSeller(...);
898
  * $saved = $adexchangesellerService->saved;
899
  * </code>
900
  */
901
+ class GoogleGAL_Service_AdExchangeSeller_ReportsSaved_Resource extends GoogleGAL_Service_Resource
902
  {
903
 
904
  /**
916
  * Index of the first row of report data to return.
917
  * @opt_param int maxResults
918
  * The maximum number of rows of report data to return.
919
+ * @return GoogleGAL_Service_AdExchangeSeller_Report
920
  */
921
  public function generate($savedReportId, $optParams = array())
922
  {
923
  $params = array('savedReportId' => $savedReportId);
924
  $params = array_merge($params, $optParams);
925
+ return $this->call('generate', array($params), "GoogleGAL_Service_AdExchangeSeller_Report");
926
  }
927
  /**
928
  * List all saved reports in this Ad Exchange account. (saved.listReportsSaved)
934
  * parameter to the value of "nextPageToken" from the previous response.
935
  * @opt_param int maxResults
936
  * The maximum number of saved reports to include in the response, used for paging.
937
+ * @return GoogleGAL_Service_AdExchangeSeller_SavedReports
938
  */
939
  public function listReportsSaved($optParams = array())
940
  {
941
  $params = array();
942
  $params = array_merge($params, $optParams);
943
+ return $this->call('list', array($params), "GoogleGAL_Service_AdExchangeSeller_SavedReports");
944
  }
945
  }
946
 
948
  * The "urlchannels" collection of methods.
949
  * Typical usage is:
950
  * <code>
951
+ * $adexchangesellerService = new GoogleGAL_Service_AdExchangeSeller(...);
952
  * $urlchannels = $adexchangesellerService->urlchannels;
953
  * </code>
954
  */
955
+ class GoogleGAL_Service_AdExchangeSeller_Urlchannels_Resource extends GoogleGAL_Service_Resource
956
  {
957
 
958
  /**
968
  * parameter to the value of "nextPageToken" from the previous response.
969
  * @opt_param string maxResults
970
  * The maximum number of URL channels to include in the response, used for paging.
971
+ * @return GoogleGAL_Service_AdExchangeSeller_UrlChannels
972
  */
973
  public function listUrlchannels($adClientId, $optParams = array())
974
  {
975
  $params = array('adClientId' => $adClientId);
976
  $params = array_merge($params, $optParams);
977
+ return $this->call('list', array($params), "GoogleGAL_Service_AdExchangeSeller_UrlChannels");
978
  }
979
  }
980
 
981
 
982
 
983
 
984
+ class GoogleGAL_Service_AdExchangeSeller_Account extends GoogleGAL_Model
985
  {
986
  public $id;
987
  public $kind;
1018
  }
1019
  }
1020
 
1021
+ class GoogleGAL_Service_AdExchangeSeller_AdClient extends GoogleGAL_Model
1022
  {
1023
  public $arcOptIn;
1024
  public $id;
1077
  }
1078
  }
1079
 
1080
+ class GoogleGAL_Service_AdExchangeSeller_AdClients extends GoogleGAL_Collection
1081
  {
1082
  public $etag;
1083
+ protected $itemsType = 'GoogleGAL_Service_AdExchangeSeller_AdClient';
1084
  protected $itemsDataType = 'array';
1085
  public $kind;
1086
  public $nextPageToken;
1126
  }
1127
  }
1128
 
1129
+ class GoogleGAL_Service_AdExchangeSeller_AdUnit extends GoogleGAL_Model
1130
  {
1131
  public $code;
1132
  public $id;
1185
  }
1186
  }
1187
 
1188
+ class GoogleGAL_Service_AdExchangeSeller_AdUnits extends GoogleGAL_Collection
1189
  {
1190
  public $etag;
1191
+ protected $itemsType = 'GoogleGAL_Service_AdExchangeSeller_AdUnit';
1192
  protected $itemsDataType = 'array';
1193
  public $kind;
1194
  public $nextPageToken;
1234
  }
1235
  }
1236
 
1237
+ class GoogleGAL_Service_AdExchangeSeller_Alert extends GoogleGAL_Model
1238
  {
1239
  public $id;
1240
  public $kind;
1293
  }
1294
  }
1295
 
1296
+ class GoogleGAL_Service_AdExchangeSeller_Alerts extends GoogleGAL_Collection
1297
  {
1298
+ protected $itemsType = 'GoogleGAL_Service_AdExchangeSeller_Alert';
1299
  protected $itemsDataType = 'array';
1300
  public $kind;
1301
 
1320
  }
1321
  }
1322
 
1323
+ class GoogleGAL_Service_AdExchangeSeller_CustomChannel extends GoogleGAL_Model
1324
  {
1325
  public $code;
1326
  public $id;
1327
  public $kind;
1328
  public $name;
1329
+ protected $targetingInfoType = 'GoogleGAL_Service_AdExchangeSeller_CustomChannelTargetingInfo';
1330
  protected $targetingInfoDataType = '';
1331
 
1332
  public function setCode($code)
1369
  return $this->name;
1370
  }
1371
 
1372
+ public function setTargetingInfo(GoogleGAL_Service_AdExchangeSeller_CustomChannelTargetingInfo $targetingInfo)
1373
  {
1374
  $this->targetingInfo = $targetingInfo;
1375
  }
1380
  }
1381
  }
1382
 
1383
+ class GoogleGAL_Service_AdExchangeSeller_CustomChannelTargetingInfo extends GoogleGAL_Model
1384
  {
1385
  public $adsAppearOn;
1386
  public $description;
1428
  }
1429
  }
1430
 
1431
+ class GoogleGAL_Service_AdExchangeSeller_CustomChannels extends GoogleGAL_Collection
1432
  {
1433
  public $etag;
1434
+ protected $itemsType = 'GoogleGAL_Service_AdExchangeSeller_CustomChannel';
1435
  protected $itemsDataType = 'array';
1436
  public $kind;
1437
  public $nextPageToken;
1477
  }
1478
  }
1479
 
1480
+ class GoogleGAL_Service_AdExchangeSeller_Metadata extends GoogleGAL_Collection
1481
  {
1482
+ protected $itemsType = 'GoogleGAL_Service_AdExchangeSeller_ReportingMetadataEntry';
1483
  protected $itemsDataType = 'array';
1484
  public $kind;
1485
 
1504
  }
1505
  }
1506
 
1507
+ class GoogleGAL_Service_AdExchangeSeller_PreferredDeal extends GoogleGAL_Model
1508
  {
1509
  public $advertiserName;
1510
  public $buyerNetworkName;
1596
  }
1597
  }
1598
 
1599
+ class GoogleGAL_Service_AdExchangeSeller_PreferredDeals extends GoogleGAL_Collection
1600
  {
1601
+ protected $itemsType = 'GoogleGAL_Service_AdExchangeSeller_PreferredDeal';
1602
  protected $itemsDataType = 'array';
1603
  public $kind;
1604
 
1623
  }
1624
  }
1625
 
1626
+ class GoogleGAL_Service_AdExchangeSeller_Report extends GoogleGAL_Collection
1627
  {
1628
  public $averages;
1629
+ protected $headersType = 'GoogleGAL_Service_AdExchangeSeller_ReportHeaders';
1630
  protected $headersDataType = 'array';
1631
  public $kind;
1632
  public $rows;
1705
  }
1706
  }
1707
 
1708
+ class GoogleGAL_Service_AdExchangeSeller_ReportHeaders extends GoogleGAL_Model
1709
  {
1710
  public $currency;
1711
  public $name;
1742
  }
1743
  }
1744
 
1745
+ class GoogleGAL_Service_AdExchangeSeller_ReportingMetadataEntry extends GoogleGAL_Collection
1746
  {
1747
  public $compatibleDimensions;
1748
  public $compatibleMetrics;
1823
  }
1824
  }
1825
 
1826
+ class GoogleGAL_Service_AdExchangeSeller_SavedReport extends GoogleGAL_Model
1827
  {
1828
  public $id;
1829
  public $kind;
1860
  }
1861
  }
1862
 
1863
+ class GoogleGAL_Service_AdExchangeSeller_SavedReports extends GoogleGAL_Collection
1864
  {
1865
  public $etag;
1866
+ protected $itemsType = 'GoogleGAL_Service_AdExchangeSeller_SavedReport';
1867
  protected $itemsDataType = 'array';
1868
  public $kind;
1869
  public $nextPageToken;
1909
  }
1910
  }
1911
 
1912
+ class GoogleGAL_Service_AdExchangeSeller_UrlChannel extends GoogleGAL_Model
1913
  {
1914
  public $id;
1915
  public $kind;
1946
  }
1947
  }
1948
 
1949
+ class GoogleGAL_Service_AdExchangeSeller_UrlChannels extends GoogleGAL_Collection
1950
  {
1951
  public $etag;
1952
+ protected $itemsType = 'GoogleGAL_Service_AdExchangeSeller_UrlChannel';
1953
  protected $itemsDataType = 'array';
1954
  public $kind;
1955
  public $nextPageToken;
core/Google/Service/AdSense.php CHANGED
@@ -29,7 +29,7 @@
29
  *
30
  * @author Google, Inc.
31
  */
32
- class Google_Service_AdSense extends Google_Service
33
  {
34
  /** View and manage your AdSense data. */
35
  const ADSENSE = "https://www.googleapis.com/auth/adsense";
@@ -66,16 +66,16 @@ class Google_Service_AdSense extends Google_Service
66
  /**
67
  * Constructs the internal representation of the AdSense service.
68
  *
69
- * @param Google_Client $client
70
  */
71
- public function __construct(Google_Client $client)
72
  {
73
  parent::__construct($client);
74
  $this->servicePath = 'adsense/v1.4/';
75
  $this->version = 'v1.4';
76
  $this->serviceName = 'adsense';
77
 
78
- $this->accounts = new Google_Service_AdSense_Accounts_Resource(
79
  $this,
80
  $this->serviceName,
81
  'accounts',
@@ -112,7 +112,7 @@ class Google_Service_AdSense extends Google_Service
112
  )
113
  )
114
  );
115
- $this->accounts_adclients = new Google_Service_AdSense_AccountsAdclients_Resource(
116
  $this,
117
  $this->serviceName,
118
  'adclients',
@@ -140,7 +140,7 @@ class Google_Service_AdSense extends Google_Service
140
  )
141
  )
142
  );
143
- $this->accounts_adunits = new Google_Service_AdSense_AccountsAdunits_Resource(
144
  $this,
145
  $this->serviceName,
146
  'adunits',
@@ -217,7 +217,7 @@ class Google_Service_AdSense extends Google_Service
217
  )
218
  )
219
  );
220
- $this->accounts_adunits_customchannels = new Google_Service_AdSense_AccountsAdunitsCustomchannels_Resource(
221
  $this,
222
  $this->serviceName,
223
  'customchannels',
@@ -255,7 +255,7 @@ class Google_Service_AdSense extends Google_Service
255
  )
256
  )
257
  );
258
- $this->accounts_alerts = new Google_Service_AdSense_AccountsAlerts_Resource(
259
  $this,
260
  $this->serviceName,
261
  'alerts',
@@ -294,7 +294,7 @@ class Google_Service_AdSense extends Google_Service
294
  )
295
  )
296
  );
297
- $this->accounts_customchannels = new Google_Service_AdSense_AccountsCustomchannels_Resource(
298
  $this,
299
  $this->serviceName,
300
  'customchannels',
@@ -347,7 +347,7 @@ class Google_Service_AdSense extends Google_Service
347
  )
348
  )
349
  );
350
- $this->accounts_customchannels_adunits = new Google_Service_AdSense_AccountsCustomchannelsAdunits_Resource(
351
  $this,
352
  $this->serviceName,
353
  'adunits',
@@ -389,7 +389,7 @@ class Google_Service_AdSense extends Google_Service
389
  )
390
  )
391
  );
392
- $this->accounts_payments = new Google_Service_AdSense_AccountsPayments_Resource(
393
  $this,
394
  $this->serviceName,
395
  'payments',
@@ -409,7 +409,7 @@ class Google_Service_AdSense extends Google_Service
409
  )
410
  )
411
  );
412
- $this->accounts_reports = new Google_Service_AdSense_AccountsReports_Resource(
413
  $this,
414
  $this->serviceName,
415
  'reports',
@@ -479,7 +479,7 @@ class Google_Service_AdSense extends Google_Service
479
  )
480
  )
481
  );
482
- $this->accounts_reports_saved = new Google_Service_AdSense_AccountsReportsSaved_Resource(
483
  $this,
484
  $this->serviceName,
485
  'saved',
@@ -534,7 +534,7 @@ class Google_Service_AdSense extends Google_Service
534
  )
535
  )
536
  );
537
- $this->accounts_savedadstyles = new Google_Service_AdSense_AccountsSavedadstyles_Resource(
538
  $this,
539
  $this->serviceName,
540
  'savedadstyles',
@@ -577,7 +577,7 @@ class Google_Service_AdSense extends Google_Service
577
  )
578
  )
579
  );
580
- $this->accounts_urlchannels = new Google_Service_AdSense_AccountsUrlchannels_Resource(
581
  $this,
582
  $this->serviceName,
583
  'urlchannels',
@@ -610,7 +610,7 @@ class Google_Service_AdSense extends Google_Service
610
  )
611
  )
612
  );
613
- $this->adclients = new Google_Service_AdSense_Adclients_Resource(
614
  $this,
615
  $this->serviceName,
616
  'adclients',
@@ -633,7 +633,7 @@ class Google_Service_AdSense extends Google_Service
633
  )
634
  )
635
  );
636
- $this->adunits = new Google_Service_AdSense_Adunits_Resource(
637
  $this,
638
  $this->serviceName,
639
  'adunits',
@@ -695,7 +695,7 @@ class Google_Service_AdSense extends Google_Service
695
  )
696
  )
697
  );
698
- $this->adunits_customchannels = new Google_Service_AdSense_AdunitsCustomchannels_Resource(
699
  $this,
700
  $this->serviceName,
701
  'customchannels',
@@ -728,7 +728,7 @@ class Google_Service_AdSense extends Google_Service
728
  )
729
  )
730
  );
731
- $this->alerts = new Google_Service_AdSense_Alerts_Resource(
732
  $this,
733
  $this->serviceName,
734
  'alerts',
@@ -757,7 +757,7 @@ class Google_Service_AdSense extends Google_Service
757
  )
758
  )
759
  );
760
- $this->customchannels = new Google_Service_AdSense_Customchannels_Resource(
761
  $this,
762
  $this->serviceName,
763
  'customchannels',
@@ -800,7 +800,7 @@ class Google_Service_AdSense extends Google_Service
800
  )
801
  )
802
  );
803
- $this->customchannels_adunits = new Google_Service_AdSense_CustomchannelsAdunits_Resource(
804
  $this,
805
  $this->serviceName,
806
  'adunits',
@@ -837,7 +837,7 @@ class Google_Service_AdSense extends Google_Service
837
  )
838
  )
839
  );
840
- $this->metadata_dimensions = new Google_Service_AdSense_MetadataDimensions_Resource(
841
  $this,
842
  $this->serviceName,
843
  'dimensions',
@@ -851,7 +851,7 @@ class Google_Service_AdSense extends Google_Service
851
  )
852
  )
853
  );
854
- $this->metadata_metrics = new Google_Service_AdSense_MetadataMetrics_Resource(
855
  $this,
856
  $this->serviceName,
857
  'metrics',
@@ -865,7 +865,7 @@ class Google_Service_AdSense extends Google_Service
865
  )
866
  )
867
  );
868
- $this->payments = new Google_Service_AdSense_Payments_Resource(
869
  $this,
870
  $this->serviceName,
871
  'payments',
@@ -879,7 +879,7 @@ class Google_Service_AdSense extends Google_Service
879
  )
880
  )
881
  );
882
- $this->reports = new Google_Service_AdSense_Reports_Resource(
883
  $this,
884
  $this->serviceName,
885
  'reports',
@@ -949,7 +949,7 @@ class Google_Service_AdSense extends Google_Service
949
  )
950
  )
951
  );
952
- $this->reports_saved = new Google_Service_AdSense_ReportsSaved_Resource(
953
  $this,
954
  $this->serviceName,
955
  'saved',
@@ -994,7 +994,7 @@ class Google_Service_AdSense extends Google_Service
994
  )
995
  )
996
  );
997
- $this->savedadstyles = new Google_Service_AdSense_Savedadstyles_Resource(
998
  $this,
999
  $this->serviceName,
1000
  'savedadstyles',
@@ -1027,7 +1027,7 @@ class Google_Service_AdSense extends Google_Service
1027
  )
1028
  )
1029
  );
1030
- $this->urlchannels = new Google_Service_AdSense_Urlchannels_Resource(
1031
  $this,
1032
  $this->serviceName,
1033
  'urlchannels',
@@ -1063,11 +1063,11 @@ class Google_Service_AdSense extends Google_Service
1063
  * The "accounts" collection of methods.
1064
  * Typical usage is:
1065
  * <code>
1066
- * $adsenseService = new Google_Service_AdSense(...);
1067
  * $accounts = $adsenseService->accounts;
1068
  * </code>
1069
  */
1070
- class Google_Service_AdSense_Accounts_Resource extends Google_Service_Resource
1071
  {
1072
 
1073
  /**
@@ -1079,13 +1079,13 @@ class Google_Service_AdSense_Accounts_Resource extends Google_Service_Resource
1079
  *
1080
  * @opt_param bool tree
1081
  * Whether the tree of sub accounts should be returned.
1082
- * @return Google_Service_AdSense_Account
1083
  */
1084
  public function get($accountId, $optParams = array())
1085
  {
1086
  $params = array('accountId' => $accountId);
1087
  $params = array_merge($params, $optParams);
1088
- return $this->call('get', array($params), "Google_Service_AdSense_Account");
1089
  }
1090
  /**
1091
  * List all accounts available to this AdSense account. (accounts.listAccounts)
@@ -1097,13 +1097,13 @@ class Google_Service_AdSense_Accounts_Resource extends Google_Service_Resource
1097
  * parameter to the value of "nextPageToken" from the previous response.
1098
  * @opt_param int maxResults
1099
  * The maximum number of accounts to include in the response, used for paging.
1100
- * @return Google_Service_AdSense_Accounts
1101
  */
1102
  public function listAccounts($optParams = array())
1103
  {
1104
  $params = array();
1105
  $params = array_merge($params, $optParams);
1106
- return $this->call('list', array($params), "Google_Service_AdSense_Accounts");
1107
  }
1108
  }
1109
 
@@ -1111,11 +1111,11 @@ class Google_Service_AdSense_Accounts_Resource extends Google_Service_Resource
1111
  * The "adclients" collection of methods.
1112
  * Typical usage is:
1113
  * <code>
1114
- * $adsenseService = new Google_Service_AdSense(...);
1115
  * $adclients = $adsenseService->adclients;
1116
  * </code>
1117
  */
1118
- class Google_Service_AdSense_AccountsAdclients_Resource extends Google_Service_Resource
1119
  {
1120
 
1121
  /**
@@ -1131,24 +1131,24 @@ class Google_Service_AdSense_AccountsAdclients_Resource extends Google_Service_R
1131
  * parameter to the value of "nextPageToken" from the previous response.
1132
  * @opt_param int maxResults
1133
  * The maximum number of ad clients to include in the response, used for paging.
1134
- * @return Google_Service_AdSense_AdClients
1135
  */
1136
  public function listAccountsAdclients($accountId, $optParams = array())
1137
  {
1138
  $params = array('accountId' => $accountId);
1139
  $params = array_merge($params, $optParams);
1140
- return $this->call('list', array($params), "Google_Service_AdSense_AdClients");
1141
  }
1142
  }
1143
  /**
1144
  * The "adunits" collection of methods.
1145
  * Typical usage is:
1146
  * <code>
1147
- * $adsenseService = new Google_Service_AdSense(...);
1148
  * $adunits = $adsenseService->adunits;
1149
  * </code>
1150
  */
1151
- class Google_Service_AdSense_AccountsAdunits_Resource extends Google_Service_Resource
1152
  {
1153
 
1154
  /**
@@ -1162,13 +1162,13 @@ class Google_Service_AdSense_AccountsAdunits_Resource extends Google_Service_Res
1162
  * @param string $adUnitId
1163
  * Ad unit to retrieve.
1164
  * @param array $optParams Optional parameters.
1165
- * @return Google_Service_AdSense_AdUnit
1166
  */
1167
  public function get($accountId, $adClientId, $adUnitId, $optParams = array())
1168
  {
1169
  $params = array('accountId' => $accountId, 'adClientId' => $adClientId, 'adUnitId' => $adUnitId);
1170
  $params = array_merge($params, $optParams);
1171
- return $this->call('get', array($params), "Google_Service_AdSense_AdUnit");
1172
  }
1173
  /**
1174
  * Get ad code for the specified ad unit. (adunits.getAdCode)
@@ -1180,13 +1180,13 @@ class Google_Service_AdSense_AccountsAdunits_Resource extends Google_Service_Res
1180
  * @param string $adUnitId
1181
  * Ad unit to get the code for.
1182
  * @param array $optParams Optional parameters.
1183
- * @return Google_Service_AdSense_AdCode
1184
  */
1185
  public function getAdCode($accountId, $adClientId, $adUnitId, $optParams = array())
1186
  {
1187
  $params = array('accountId' => $accountId, 'adClientId' => $adClientId, 'adUnitId' => $adUnitId);
1188
  $params = array_merge($params, $optParams);
1189
- return $this->call('getAdCode', array($params), "Google_Service_AdSense_AdCode");
1190
  }
1191
  /**
1192
  * List all ad units in the specified ad client for the specified account.
@@ -1205,13 +1205,13 @@ class Google_Service_AdSense_AccountsAdunits_Resource extends Google_Service_Res
1205
  * parameter to the value of "nextPageToken" from the previous response.
1206
  * @opt_param int maxResults
1207
  * The maximum number of ad units to include in the response, used for paging.
1208
- * @return Google_Service_AdSense_AdUnits
1209
  */
1210
  public function listAccountsAdunits($accountId, $adClientId, $optParams = array())
1211
  {
1212
  $params = array('accountId' => $accountId, 'adClientId' => $adClientId);
1213
  $params = array_merge($params, $optParams);
1214
- return $this->call('list', array($params), "Google_Service_AdSense_AdUnits");
1215
  }
1216
  }
1217
 
@@ -1219,11 +1219,11 @@ class Google_Service_AdSense_AccountsAdunits_Resource extends Google_Service_Res
1219
  * The "customchannels" collection of methods.
1220
  * Typical usage is:
1221
  * <code>
1222
- * $adsenseService = new Google_Service_AdSense(...);
1223
  * $customchannels = $adsenseService->customchannels;
1224
  * </code>
1225
  */
1226
- class Google_Service_AdSense_AccountsAdunitsCustomchannels_Resource extends Google_Service_Resource
1227
  {
1228
 
1229
  /**
@@ -1243,24 +1243,24 @@ class Google_Service_AdSense_AccountsAdunitsCustomchannels_Resource extends Goog
1243
  * parameter to the value of "nextPageToken" from the previous response.
1244
  * @opt_param int maxResults
1245
  * The maximum number of custom channels to include in the response, used for paging.
1246
- * @return Google_Service_AdSense_CustomChannels
1247
  */
1248
  public function listAccountsAdunitsCustomchannels($accountId, $adClientId, $adUnitId, $optParams = array())
1249
  {
1250
  $params = array('accountId' => $accountId, 'adClientId' => $adClientId, 'adUnitId' => $adUnitId);
1251
  $params = array_merge($params, $optParams);
1252
- return $this->call('list', array($params), "Google_Service_AdSense_CustomChannels");
1253
  }
1254
  }
1255
  /**
1256
  * The "alerts" collection of methods.
1257
  * Typical usage is:
1258
  * <code>
1259
- * $adsenseService = new Google_Service_AdSense(...);
1260
  * $alerts = $adsenseService->alerts;
1261
  * </code>
1262
  */
1263
- class Google_Service_AdSense_AccountsAlerts_Resource extends Google_Service_Resource
1264
  {
1265
 
1266
  /**
@@ -1291,24 +1291,24 @@ class Google_Service_AdSense_AccountsAlerts_Resource extends Google_Service_Reso
1291
  * The locale to use for translating alert messages. The account locale will be used if this is not
1292
  * supplied. The AdSense default (English) will be used if the supplied locale is invalid or
1293
  * unsupported.
1294
- * @return Google_Service_AdSense_Alerts
1295
  */
1296
  public function listAccountsAlerts($accountId, $optParams = array())
1297
  {
1298
  $params = array('accountId' => $accountId);
1299
  $params = array_merge($params, $optParams);
1300
- return $this->call('list', array($params), "Google_Service_AdSense_Alerts");
1301
  }
1302
  }
1303
  /**
1304
  * The "customchannels" collection of methods.
1305
  * Typical usage is:
1306
  * <code>
1307
- * $adsenseService = new Google_Service_AdSense(...);
1308
  * $customchannels = $adsenseService->customchannels;
1309
  * </code>
1310
  */
1311
- class Google_Service_AdSense_AccountsCustomchannels_Resource extends Google_Service_Resource
1312
  {
1313
 
1314
  /**
@@ -1322,13 +1322,13 @@ class Google_Service_AdSense_AccountsCustomchannels_Resource extends Google_Serv
1322
  * @param string $customChannelId
1323
  * Custom channel to retrieve.
1324
  * @param array $optParams Optional parameters.
1325
- * @return Google_Service_AdSense_CustomChannel
1326
  */
1327
  public function get($accountId, $adClientId, $customChannelId, $optParams = array())
1328
  {
1329
  $params = array('accountId' => $accountId, 'adClientId' => $adClientId, 'customChannelId' => $customChannelId);
1330
  $params = array_merge($params, $optParams);
1331
- return $this->call('get', array($params), "Google_Service_AdSense_CustomChannel");
1332
  }
1333
  /**
1334
  * List all custom channels in the specified ad client for the specified
@@ -1345,13 +1345,13 @@ class Google_Service_AdSense_AccountsCustomchannels_Resource extends Google_Serv
1345
  * parameter to the value of "nextPageToken" from the previous response.
1346
  * @opt_param int maxResults
1347
  * The maximum number of custom channels to include in the response, used for paging.
1348
- * @return Google_Service_AdSense_CustomChannels
1349
  */
1350
  public function listAccountsCustomchannels($accountId, $adClientId, $optParams = array())
1351
  {
1352
  $params = array('accountId' => $accountId, 'adClientId' => $adClientId);
1353
  $params = array_merge($params, $optParams);
1354
- return $this->call('list', array($params), "Google_Service_AdSense_CustomChannels");
1355
  }
1356
  }
1357
 
@@ -1359,11 +1359,11 @@ class Google_Service_AdSense_AccountsCustomchannels_Resource extends Google_Serv
1359
  * The "adunits" collection of methods.
1360
  * Typical usage is:
1361
  * <code>
1362
- * $adsenseService = new Google_Service_AdSense(...);
1363
  * $adunits = $adsenseService->adunits;
1364
  * </code>
1365
  */
1366
- class Google_Service_AdSense_AccountsCustomchannelsAdunits_Resource extends Google_Service_Resource
1367
  {
1368
 
1369
  /**
@@ -1385,24 +1385,24 @@ class Google_Service_AdSense_AccountsCustomchannelsAdunits_Resource extends Goog
1385
  * @opt_param string pageToken
1386
  * A continuation token, used to page through ad units. To retrieve the next page, set this
1387
  * parameter to the value of "nextPageToken" from the previous response.
1388
- * @return Google_Service_AdSense_AdUnits
1389
  */
1390
  public function listAccountsCustomchannelsAdunits($accountId, $adClientId, $customChannelId, $optParams = array())
1391
  {
1392
  $params = array('accountId' => $accountId, 'adClientId' => $adClientId, 'customChannelId' => $customChannelId);
1393
  $params = array_merge($params, $optParams);
1394
- return $this->call('list', array($params), "Google_Service_AdSense_AdUnits");
1395
  }
1396
  }
1397
  /**
1398
  * The "payments" collection of methods.
1399
  * Typical usage is:
1400
  * <code>
1401
- * $adsenseService = new Google_Service_AdSense(...);
1402
  * $payments = $adsenseService->payments;
1403
  * </code>
1404
  */
1405
- class Google_Service_AdSense_AccountsPayments_Resource extends Google_Service_Resource
1406
  {
1407
 
1408
  /**
@@ -1412,24 +1412,24 @@ class Google_Service_AdSense_AccountsPayments_Resource extends Google_Service_Re
1412
  * @param string $accountId
1413
  * Account for which to retrieve the payments.
1414
  * @param array $optParams Optional parameters.
1415
- * @return Google_Service_AdSense_Payments
1416
  */
1417
  public function listAccountsPayments($accountId, $optParams = array())
1418
  {
1419
  $params = array('accountId' => $accountId);
1420
  $params = array_merge($params, $optParams);
1421
- return $this->call('list', array($params), "Google_Service_AdSense_Payments");
1422
  }
1423
  }
1424
  /**
1425
  * The "reports" collection of methods.
1426
  * Typical usage is:
1427
  * <code>
1428
- * $adsenseService = new Google_Service_AdSense(...);
1429
  * $reports = $adsenseService->reports;
1430
  * </code>
1431
  */
1432
- class Google_Service_AdSense_AccountsReports_Resource extends Google_Service_Resource
1433
  {
1434
 
1435
  /**
@@ -1468,13 +1468,13 @@ class Google_Service_AdSense_AccountsReports_Resource extends Google_Service_Res
1468
  * PST/PDT timezone will be used.
1469
  * @opt_param string dimension
1470
  * Dimensions to base the report on.
1471
- * @return Google_Service_AdSense_AdsenseReportsGenerateResponse
1472
  */
1473
  public function generate($accountId, $startDate, $endDate, $optParams = array())
1474
  {
1475
  $params = array('accountId' => $accountId, 'startDate' => $startDate, 'endDate' => $endDate);
1476
  $params = array_merge($params, $optParams);
1477
- return $this->call('generate', array($params), "Google_Service_AdSense_AdsenseReportsGenerateResponse");
1478
  }
1479
  }
1480
 
@@ -1482,11 +1482,11 @@ class Google_Service_AdSense_AccountsReports_Resource extends Google_Service_Res
1482
  * The "saved" collection of methods.
1483
  * Typical usage is:
1484
  * <code>
1485
- * $adsenseService = new Google_Service_AdSense(...);
1486
  * $saved = $adsenseService->saved;
1487
  * </code>
1488
  */
1489
- class Google_Service_AdSense_AccountsReportsSaved_Resource extends Google_Service_Resource
1490
  {
1491
 
1492
  /**
@@ -1506,13 +1506,13 @@ class Google_Service_AdSense_AccountsReportsSaved_Resource extends Google_Servic
1506
  * Index of the first row of report data to return.
1507
  * @opt_param int maxResults
1508
  * The maximum number of rows of report data to return.
1509
- * @return Google_Service_AdSense_AdsenseReportsGenerateResponse
1510
  */
1511
  public function generate($accountId, $savedReportId, $optParams = array())
1512
  {
1513
  $params = array('accountId' => $accountId, 'savedReportId' => $savedReportId);
1514
  $params = array_merge($params, $optParams);
1515
- return $this->call('generate', array($params), "Google_Service_AdSense_AdsenseReportsGenerateResponse");
1516
  }
1517
  /**
1518
  * List all saved reports in the specified AdSense account.
@@ -1527,24 +1527,24 @@ class Google_Service_AdSense_AccountsReportsSaved_Resource extends Google_Servic
1527
  * parameter to the value of "nextPageToken" from the previous response.
1528
  * @opt_param int maxResults
1529
  * The maximum number of saved reports to include in the response, used for paging.
1530
- * @return Google_Service_AdSense_SavedReports
1531
  */
1532
  public function listAccountsReportsSaved($accountId, $optParams = array())
1533
  {
1534
  $params = array('accountId' => $accountId);
1535
  $params = array_merge($params, $optParams);
1536
- return $this->call('list', array($params), "Google_Service_AdSense_SavedReports");
1537
  }
1538
  }
1539
  /**
1540
  * The "savedadstyles" collection of methods.
1541
  * Typical usage is:
1542
  * <code>
1543
- * $adsenseService = new Google_Service_AdSense(...);
1544
  * $savedadstyles = $adsenseService->savedadstyles;
1545
  * </code>
1546
  */
1547
- class Google_Service_AdSense_AccountsSavedadstyles_Resource extends Google_Service_Resource
1548
  {
1549
 
1550
  /**
@@ -1555,13 +1555,13 @@ class Google_Service_AdSense_AccountsSavedadstyles_Resource extends Google_Servi
1555
  * @param string $savedAdStyleId
1556
  * Saved ad style to retrieve.
1557
  * @param array $optParams Optional parameters.
1558
- * @return Google_Service_AdSense_SavedAdStyle
1559
  */
1560
  public function get($accountId, $savedAdStyleId, $optParams = array())
1561
  {
1562
  $params = array('accountId' => $accountId, 'savedAdStyleId' => $savedAdStyleId);
1563
  $params = array_merge($params, $optParams);
1564
- return $this->call('get', array($params), "Google_Service_AdSense_SavedAdStyle");
1565
  }
1566
  /**
1567
  * List all saved ad styles in the specified account.
@@ -1576,24 +1576,24 @@ class Google_Service_AdSense_AccountsSavedadstyles_Resource extends Google_Servi
1576
  * parameter to the value of "nextPageToken" from the previous response.
1577
  * @opt_param int maxResults
1578
  * The maximum number of saved ad styles to include in the response, used for paging.
1579
- * @return Google_Service_AdSense_SavedAdStyles
1580
  */
1581
  public function listAccountsSavedadstyles($accountId, $optParams = array())
1582
  {
1583
  $params = array('accountId' => $accountId);
1584
  $params = array_merge($params, $optParams);
1585
- return $this->call('list', array($params), "Google_Service_AdSense_SavedAdStyles");
1586
  }
1587
  }
1588
  /**
1589
  * The "urlchannels" collection of methods.
1590
  * Typical usage is:
1591
  * <code>
1592
- * $adsenseService = new Google_Service_AdSense(...);
1593
  * $urlchannels = $adsenseService->urlchannels;
1594
  * </code>
1595
  */
1596
- class Google_Service_AdSense_AccountsUrlchannels_Resource extends Google_Service_Resource
1597
  {
1598
 
1599
  /**
@@ -1611,13 +1611,13 @@ class Google_Service_AdSense_AccountsUrlchannels_Resource extends Google_Service
1611
  * parameter to the value of "nextPageToken" from the previous response.
1612
  * @opt_param int maxResults
1613
  * The maximum number of URL channels to include in the response, used for paging.
1614
- * @return Google_Service_AdSense_UrlChannels
1615
  */
1616
  public function listAccountsUrlchannels($accountId, $adClientId, $optParams = array())
1617
  {
1618
  $params = array('accountId' => $accountId, 'adClientId' => $adClientId);
1619
  $params = array_merge($params, $optParams);
1620
- return $this->call('list', array($params), "Google_Service_AdSense_UrlChannels");
1621
  }
1622
  }
1623
 
@@ -1625,11 +1625,11 @@ class Google_Service_AdSense_AccountsUrlchannels_Resource extends Google_Service
1625
  * The "adclients" collection of methods.
1626
  * Typical usage is:
1627
  * <code>
1628
- * $adsenseService = new Google_Service_AdSense(...);
1629
  * $adclients = $adsenseService->adclients;
1630
  * </code>
1631
  */
1632
- class Google_Service_AdSense_Adclients_Resource extends Google_Service_Resource
1633
  {
1634
 
1635
  /**
@@ -1642,13 +1642,13 @@ class Google_Service_AdSense_Adclients_Resource extends Google_Service_Resource
1642
  * parameter to the value of "nextPageToken" from the previous response.
1643
  * @opt_param int maxResults
1644
  * The maximum number of ad clients to include in the response, used for paging.
1645
- * @return Google_Service_AdSense_AdClients
1646
  */
1647
  public function listAdclients($optParams = array())
1648
  {
1649
  $params = array();
1650
  $params = array_merge($params, $optParams);
1651
- return $this->call('list', array($params), "Google_Service_AdSense_AdClients");
1652
  }
1653
  }
1654
 
@@ -1656,11 +1656,11 @@ class Google_Service_AdSense_Adclients_Resource extends Google_Service_Resource
1656
  * The "adunits" collection of methods.
1657
  * Typical usage is:
1658
  * <code>
1659
- * $adsenseService = new Google_Service_AdSense(...);
1660
  * $adunits = $adsenseService->adunits;
1661
  * </code>
1662
  */
1663
- class Google_Service_AdSense_Adunits_Resource extends Google_Service_Resource
1664
  {
1665
 
1666
  /**
@@ -1671,13 +1671,13 @@ class Google_Service_AdSense_Adunits_Resource extends Google_Service_Resource
1671
  * @param string $adUnitId
1672
  * Ad unit to retrieve.
1673
  * @param array $optParams Optional parameters.
1674
- * @return Google_Service_AdSense_AdUnit
1675
  */
1676
  public function get($adClientId, $adUnitId, $optParams = array())
1677
  {
1678
  $params = array('adClientId' => $adClientId, 'adUnitId' => $adUnitId);
1679
  $params = array_merge($params, $optParams);
1680
- return $this->call('get', array($params), "Google_Service_AdSense_AdUnit");
1681
  }
1682
  /**
1683
  * Get ad code for the specified ad unit. (adunits.getAdCode)
@@ -1687,13 +1687,13 @@ class Google_Service_AdSense_Adunits_Resource extends Google_Service_Resource
1687
  * @param string $adUnitId
1688
  * Ad unit to get the code for.
1689
  * @param array $optParams Optional parameters.
1690
- * @return Google_Service_AdSense_AdCode
1691
  */
1692
  public function getAdCode($adClientId, $adUnitId, $optParams = array())
1693
  {
1694
  $params = array('adClientId' => $adClientId, 'adUnitId' => $adUnitId);
1695
  $params = array_merge($params, $optParams);
1696
- return $this->call('getAdCode', array($params), "Google_Service_AdSense_AdCode");
1697
  }
1698
  /**
1699
  * List all ad units in the specified ad client for this AdSense account.
@@ -1710,13 +1710,13 @@ class Google_Service_AdSense_Adunits_Resource extends Google_Service_Resource
1710
  * parameter to the value of "nextPageToken" from the previous response.
1711
  * @opt_param int maxResults
1712
  * The maximum number of ad units to include in the response, used for paging.
1713
- * @return Google_Service_AdSense_AdUnits
1714
  */
1715
  public function listAdunits($adClientId, $optParams = array())
1716
  {
1717
  $params = array('adClientId' => $adClientId);
1718
  $params = array_merge($params, $optParams);
1719
- return $this->call('list', array($params), "Google_Service_AdSense_AdUnits");
1720
  }
1721
  }
1722
 
@@ -1724,11 +1724,11 @@ class Google_Service_AdSense_Adunits_Resource extends Google_Service_Resource
1724
  * The "customchannels" collection of methods.
1725
  * Typical usage is:
1726
  * <code>
1727
- * $adsenseService = new Google_Service_AdSense(...);
1728
  * $customchannels = $adsenseService->customchannels;
1729
  * </code>
1730
  */
1731
- class Google_Service_AdSense_AdunitsCustomchannels_Resource extends Google_Service_Resource
1732
  {
1733
 
1734
  /**
@@ -1746,13 +1746,13 @@ class Google_Service_AdSense_AdunitsCustomchannels_Resource extends Google_Servi
1746
  * parameter to the value of "nextPageToken" from the previous response.
1747
  * @opt_param int maxResults
1748
  * The maximum number of custom channels to include in the response, used for paging.
1749
- * @return Google_Service_AdSense_CustomChannels
1750
  */
1751
  public function listAdunitsCustomchannels($adClientId, $adUnitId, $optParams = array())
1752
  {
1753
  $params = array('adClientId' => $adClientId, 'adUnitId' => $adUnitId);
1754
  $params = array_merge($params, $optParams);
1755
- return $this->call('list', array($params), "Google_Service_AdSense_CustomChannels");
1756
  }
1757
  }
1758
 
@@ -1760,11 +1760,11 @@ class Google_Service_AdSense_AdunitsCustomchannels_Resource extends Google_Servi
1760
  * The "alerts" collection of methods.
1761
  * Typical usage is:
1762
  * <code>
1763
- * $adsenseService = new Google_Service_AdSense(...);
1764
  * $alerts = $adsenseService->alerts;
1765
  * </code>
1766
  */
1767
- class Google_Service_AdSense_Alerts_Resource extends Google_Service_Resource
1768
  {
1769
 
1770
  /**
@@ -1790,13 +1790,13 @@ class Google_Service_AdSense_Alerts_Resource extends Google_Service_Resource
1790
  * The locale to use for translating alert messages. The account locale will be used if this is not
1791
  * supplied. The AdSense default (English) will be used if the supplied locale is invalid or
1792
  * unsupported.
1793
- * @return Google_Service_AdSense_Alerts
1794
  */
1795
  public function listAlerts($optParams = array())
1796
  {
1797
  $params = array();
1798
  $params = array_merge($params, $optParams);
1799
- return $this->call('list', array($params), "Google_Service_AdSense_Alerts");
1800
  }
1801
  }
1802
 
@@ -1804,11 +1804,11 @@ class Google_Service_AdSense_Alerts_Resource extends Google_Service_Resource
1804
  * The "customchannels" collection of methods.
1805
  * Typical usage is:
1806
  * <code>
1807
- * $adsenseService = new Google_Service_AdSense(...);
1808
  * $customchannels = $adsenseService->customchannels;
1809
  * </code>
1810
  */
1811
- class Google_Service_AdSense_Customchannels_Resource extends Google_Service_Resource
1812
  {
1813
 
1814
  /**
@@ -1820,13 +1820,13 @@ class Google_Service_AdSense_Customchannels_Resource extends Google_Service_Reso
1820
  * @param string $customChannelId
1821
  * Custom channel to retrieve.
1822
  * @param array $optParams Optional parameters.
1823
- * @return Google_Service_AdSense_CustomChannel
1824
  */
1825
  public function get($adClientId, $customChannelId, $optParams = array())
1826
  {
1827
  $params = array('adClientId' => $adClientId, 'customChannelId' => $customChannelId);
1828
  $params = array_merge($params, $optParams);
1829
- return $this->call('get', array($params), "Google_Service_AdSense_CustomChannel");
1830
  }
1831
  /**
1832
  * List all custom channels in the specified ad client for this AdSense account.
@@ -1841,13 +1841,13 @@ class Google_Service_AdSense_Customchannels_Resource extends Google_Service_Reso
1841
  * parameter to the value of "nextPageToken" from the previous response.
1842
  * @opt_param int maxResults
1843
  * The maximum number of custom channels to include in the response, used for paging.
1844
- * @return Google_Service_AdSense_CustomChannels
1845
  */
1846
  public function listCustomchannels($adClientId, $optParams = array())
1847
  {
1848
  $params = array('adClientId' => $adClientId);
1849
  $params = array_merge($params, $optParams);
1850
- return $this->call('list', array($params), "Google_Service_AdSense_CustomChannels");
1851
  }
1852
  }
1853
 
@@ -1855,11 +1855,11 @@ class Google_Service_AdSense_Customchannels_Resource extends Google_Service_Reso
1855
  * The "adunits" collection of methods.
1856
  * Typical usage is:
1857
  * <code>
1858
- * $adsenseService = new Google_Service_AdSense(...);
1859
  * $adunits = $adsenseService->adunits;
1860
  * </code>
1861
  */
1862
- class Google_Service_AdSense_CustomchannelsAdunits_Resource extends Google_Service_Resource
1863
  {
1864
 
1865
  /**
@@ -1879,13 +1879,13 @@ class Google_Service_AdSense_CustomchannelsAdunits_Resource extends Google_Servi
1879
  * parameter to the value of "nextPageToken" from the previous response.
1880
  * @opt_param int maxResults
1881
  * The maximum number of ad units to include in the response, used for paging.
1882
- * @return Google_Service_AdSense_AdUnits
1883
  */
1884
  public function listCustomchannelsAdunits($adClientId, $customChannelId, $optParams = array())
1885
  {
1886
  $params = array('adClientId' => $adClientId, 'customChannelId' => $customChannelId);
1887
  $params = array_merge($params, $optParams);
1888
- return $this->call('list', array($params), "Google_Service_AdSense_AdUnits");
1889
  }
1890
  }
1891
 
@@ -1893,11 +1893,11 @@ class Google_Service_AdSense_CustomchannelsAdunits_Resource extends Google_Servi
1893
  * The "metadata" collection of methods.
1894
  * Typical usage is:
1895
  * <code>
1896
- * $adsenseService = new Google_Service_AdSense(...);
1897
  * $metadata = $adsenseService->metadata;
1898
  * </code>
1899
  */
1900
- class Google_Service_AdSense_Metadata_Resource extends Google_Service_Resource
1901
  {
1902
 
1903
  }
@@ -1906,11 +1906,11 @@ class Google_Service_AdSense_Metadata_Resource extends Google_Service_Resource
1906
  * The "dimensions" collection of methods.
1907
  * Typical usage is:
1908
  * <code>
1909
- * $adsenseService = new Google_Service_AdSense(...);
1910
  * $dimensions = $adsenseService->dimensions;
1911
  * </code>
1912
  */
1913
- class Google_Service_AdSense_MetadataDimensions_Resource extends Google_Service_Resource
1914
  {
1915
 
1916
  /**
@@ -1918,24 +1918,24 @@ class Google_Service_AdSense_MetadataDimensions_Resource extends Google_Service_
1918
  * (dimensions.listMetadataDimensions)
1919
  *
1920
  * @param array $optParams Optional parameters.
1921
- * @return Google_Service_AdSense_Metadata
1922
  */
1923
  public function listMetadataDimensions($optParams = array())
1924
  {
1925
  $params = array();
1926
  $params = array_merge($params, $optParams);
1927
- return $this->call('list', array($params), "Google_Service_AdSense_Metadata");
1928
  }
1929
  }
1930
  /**
1931
  * The "metrics" collection of methods.
1932
  * Typical usage is:
1933
  * <code>
1934
- * $adsenseService = new Google_Service_AdSense(...);
1935
  * $metrics = $adsenseService->metrics;
1936
  * </code>
1937
  */
1938
- class Google_Service_AdSense_MetadataMetrics_Resource extends Google_Service_Resource
1939
  {
1940
 
1941
  /**
@@ -1943,13 +1943,13 @@ class Google_Service_AdSense_MetadataMetrics_Resource extends Google_Service_Res
1943
  * (metrics.listMetadataMetrics)
1944
  *
1945
  * @param array $optParams Optional parameters.
1946
- * @return Google_Service_AdSense_Metadata
1947
  */
1948
  public function listMetadataMetrics($optParams = array())
1949
  {
1950
  $params = array();
1951
  $params = array_merge($params, $optParams);
1952
- return $this->call('list', array($params), "Google_Service_AdSense_Metadata");
1953
  }
1954
  }
1955
 
@@ -1957,24 +1957,24 @@ class Google_Service_AdSense_MetadataMetrics_Resource extends Google_Service_Res
1957
  * The "payments" collection of methods.
1958
  * Typical usage is:
1959
  * <code>
1960
- * $adsenseService = new Google_Service_AdSense(...);
1961
  * $payments = $adsenseService->payments;
1962
  * </code>
1963
  */
1964
- class Google_Service_AdSense_Payments_Resource extends Google_Service_Resource
1965
  {
1966
 
1967
  /**
1968
  * List the payments for this AdSense account. (payments.listPayments)
1969
  *
1970
  * @param array $optParams Optional parameters.
1971
- * @return Google_Service_AdSense_Payments
1972
  */
1973
  public function listPayments($optParams = array())
1974
  {
1975
  $params = array();
1976
  $params = array_merge($params, $optParams);
1977
- return $this->call('list', array($params), "Google_Service_AdSense_Payments");
1978
  }
1979
  }
1980
 
@@ -1982,11 +1982,11 @@ class Google_Service_AdSense_Payments_Resource extends Google_Service_Resource
1982
  * The "reports" collection of methods.
1983
  * Typical usage is:
1984
  * <code>
1985
- * $adsenseService = new Google_Service_AdSense(...);
1986
  * $reports = $adsenseService->reports;
1987
  * </code>
1988
  */
1989
- class Google_Service_AdSense_Reports_Resource extends Google_Service_Resource
1990
  {
1991
 
1992
  /**
@@ -2025,13 +2025,13 @@ class Google_Service_AdSense_Reports_Resource extends Google_Service_Resource
2025
  * Dimensions to base the report on.
2026
  * @opt_param string accountId
2027
  * Accounts upon which to report.
2028
- * @return Google_Service_AdSense_AdsenseReportsGenerateResponse
2029
  */
2030
  public function generate($startDate, $endDate, $optParams = array())
2031
  {
2032
  $params = array('startDate' => $startDate, 'endDate' => $endDate);
2033
  $params = array_merge($params, $optParams);
2034
- return $this->call('generate', array($params), "Google_Service_AdSense_AdsenseReportsGenerateResponse");
2035
  }
2036
  }
2037
 
@@ -2039,11 +2039,11 @@ class Google_Service_AdSense_Reports_Resource extends Google_Service_Resource
2039
  * The "saved" collection of methods.
2040
  * Typical usage is:
2041
  * <code>
2042
- * $adsenseService = new Google_Service_AdSense(...);
2043
  * $saved = $adsenseService->saved;
2044
  * </code>
2045
  */
2046
- class Google_Service_AdSense_ReportsSaved_Resource extends Google_Service_Resource
2047
  {
2048
 
2049
  /**
@@ -2061,13 +2061,13 @@ class Google_Service_AdSense_ReportsSaved_Resource extends Google_Service_Resour
2061
  * Index of the first row of report data to return.
2062
  * @opt_param int maxResults
2063
  * The maximum number of rows of report data to return.
2064
- * @return Google_Service_AdSense_AdsenseReportsGenerateResponse
2065
  */
2066
  public function generate($savedReportId, $optParams = array())
2067
  {
2068
  $params = array('savedReportId' => $savedReportId);
2069
  $params = array_merge($params, $optParams);
2070
- return $this->call('generate', array($params), "Google_Service_AdSense_AdsenseReportsGenerateResponse");
2071
  }
2072
  /**
2073
  * List all saved reports in this AdSense account. (saved.listReportsSaved)
@@ -2079,13 +2079,13 @@ class Google_Service_AdSense_ReportsSaved_Resource extends Google_Service_Resour
2079
  * parameter to the value of "nextPageToken" from the previous response.
2080
  * @opt_param int maxResults
2081
  * The maximum number of saved reports to include in the response, used for paging.
2082
- * @return Google_Service_AdSense_SavedReports
2083
  */
2084
  public function listReportsSaved($optParams = array())
2085
  {
2086
  $params = array();
2087
  $params = array_merge($params, $optParams);
2088
- return $this->call('list', array($params), "Google_Service_AdSense_SavedReports");
2089
  }
2090
  }
2091
 
@@ -2093,11 +2093,11 @@ class Google_Service_AdSense_ReportsSaved_Resource extends Google_Service_Resour
2093
  * The "savedadstyles" collection of methods.
2094
  * Typical usage is:
2095
  * <code>
2096
- * $adsenseService = new Google_Service_AdSense(...);
2097
  * $savedadstyles = $adsenseService->savedadstyles;
2098
  * </code>
2099
  */
2100
- class Google_Service_AdSense_Savedadstyles_Resource extends Google_Service_Resource
2101
  {
2102
 
2103
  /**
@@ -2106,13 +2106,13 @@ class Google_Service_AdSense_Savedadstyles_Resource extends Google_Service_Resou
2106
  * @param string $savedAdStyleId
2107
  * Saved ad style to retrieve.
2108
  * @param array $optParams Optional parameters.
2109
- * @return Google_Service_AdSense_SavedAdStyle
2110
  */
2111
  public function get($savedAdStyleId, $optParams = array())
2112
  {
2113
  $params = array('savedAdStyleId' => $savedAdStyleId);
2114
  $params = array_merge($params, $optParams);
2115
- return $this->call('get', array($params), "Google_Service_AdSense_SavedAdStyle");
2116
  }
2117
  /**
2118
  * List all saved ad styles in the user's account.
@@ -2125,13 +2125,13 @@ class Google_Service_AdSense_Savedadstyles_Resource extends Google_Service_Resou
2125
  * parameter to the value of "nextPageToken" from the previous response.
2126
  * @opt_param int maxResults
2127
  * The maximum number of saved ad styles to include in the response, used for paging.
2128
- * @return Google_Service_AdSense_SavedAdStyles
2129
  */
2130
  public function listSavedadstyles($optParams = array())
2131
  {
2132
  $params = array();
2133
  $params = array_merge($params, $optParams);
2134
- return $this->call('list', array($params), "Google_Service_AdSense_SavedAdStyles");
2135
  }
2136
  }
2137
 
@@ -2139,11 +2139,11 @@ class Google_Service_AdSense_Savedadstyles_Resource extends Google_Service_Resou
2139
  * The "urlchannels" collection of methods.
2140
  * Typical usage is:
2141
  * <code>
2142
- * $adsenseService = new Google_Service_AdSense(...);
2143
  * $urlchannels = $adsenseService->urlchannels;
2144
  * </code>
2145
  */
2146
- class Google_Service_AdSense_Urlchannels_Resource extends Google_Service_Resource
2147
  {
2148
 
2149
  /**
@@ -2159,26 +2159,26 @@ class Google_Service_AdSense_Urlchannels_Resource extends Google_Service_Resourc
2159
  * parameter to the value of "nextPageToken" from the previous response.
2160
  * @opt_param int maxResults
2161
  * The maximum number of URL channels to include in the response, used for paging.
2162
- * @return Google_Service_AdSense_UrlChannels
2163
  */
2164
  public function listUrlchannels($adClientId, $optParams = array())
2165
  {
2166
  $params = array('adClientId' => $adClientId);
2167
  $params = array_merge($params, $optParams);
2168
- return $this->call('list', array($params), "Google_Service_AdSense_UrlChannels");
2169
  }
2170
  }
2171
 
2172
 
2173
 
2174
 
2175
- class Google_Service_AdSense_Account extends Google_Collection
2176
  {
2177
  public $id;
2178
  public $kind;
2179
  public $name;
2180
  public $premium;
2181
- protected $subAccountsType = 'Google_Service_AdSense_Account';
2182
  protected $subAccountsDataType = 'array';
2183
  public $timezone;
2184
 
@@ -2243,10 +2243,10 @@ class Google_Service_AdSense_Account extends Google_Collection
2243
  }
2244
  }
2245
 
2246
- class Google_Service_AdSense_Accounts extends Google_Collection
2247
  {
2248
  public $etag;
2249
- protected $itemsType = 'Google_Service_AdSense_Account';
2250
  protected $itemsDataType = 'array';
2251
  public $kind;
2252
  public $nextPageToken;
@@ -2292,7 +2292,7 @@ class Google_Service_AdSense_Accounts extends Google_Collection
2292
  }
2293
  }
2294
 
2295
- class Google_Service_AdSense_AdClient extends Google_Model
2296
  {
2297
  public $arcOptIn;
2298
  public $arcReviewMode;
@@ -2362,10 +2362,10 @@ class Google_Service_AdSense_AdClient extends Google_Model
2362
  }
2363
  }
2364
 
2365
- class Google_Service_AdSense_AdClients extends Google_Collection
2366
  {
2367
  public $etag;
2368
- protected $itemsType = 'Google_Service_AdSense_AdClient';
2369
  protected $itemsDataType = 'array';
2370
  public $kind;
2371
  public $nextPageToken;
@@ -2411,7 +2411,7 @@ class Google_Service_AdSense_AdClients extends Google_Collection
2411
  }
2412
  }
2413
 
2414
- class Google_Service_AdSense_AdCode extends Google_Model
2415
  {
2416
  public $adCode;
2417
  public $kind;
@@ -2437,16 +2437,16 @@ class Google_Service_AdSense_AdCode extends Google_Model
2437
  }
2438
  }
2439
 
2440
- class Google_Service_AdSense_AdStyle extends Google_Model
2441
  {
2442
- protected $colorsType = 'Google_Service_AdSense_AdStyleColors';
2443
  protected $colorsDataType = '';
2444
  public $corners;
2445
- protected $fontType = 'Google_Service_AdSense_AdStyleFont';
2446
  protected $fontDataType = '';
2447
  public $kind;
2448
 
2449
- public function setColors(Google_Service_AdSense_AdStyleColors $colors)
2450
  {
2451
  $this->colors = $colors;
2452
  }
@@ -2466,7 +2466,7 @@ class Google_Service_AdSense_AdStyle extends Google_Model
2466
  return $this->corners;
2467
  }
2468
 
2469
- public function setFont(Google_Service_AdSense_AdStyleFont $font)
2470
  {
2471
  $this->font = $font;
2472
  }
@@ -2487,7 +2487,7 @@ class Google_Service_AdSense_AdStyle extends Google_Model
2487
  }
2488
  }
2489
 
2490
- class Google_Service_AdSense_AdStyleColors extends Google_Model
2491
  {
2492
  public $background;
2493
  public $border;
@@ -2546,7 +2546,7 @@ class Google_Service_AdSense_AdStyleColors extends Google_Model
2546
  }
2547
  }
2548
 
2549
- class Google_Service_AdSense_AdStyleFont extends Google_Model
2550
  {
2551
  public $family;
2552
  public $size;
@@ -2572,18 +2572,18 @@ class Google_Service_AdSense_AdStyleFont extends Google_Model
2572
  }
2573
  }
2574
 
2575
- class Google_Service_AdSense_AdUnit extends Google_Model
2576
  {
2577
  public $code;
2578
- protected $contentAdsSettingsType = 'Google_Service_AdSense_AdUnitContentAdsSettings';
2579
  protected $contentAdsSettingsDataType = '';
2580
- protected $customStyleType = 'Google_Service_AdSense_AdStyle';
2581
  protected $customStyleDataType = '';
2582
- protected $feedAdsSettingsType = 'Google_Service_AdSense_AdUnitFeedAdsSettings';
2583
  protected $feedAdsSettingsDataType = '';
2584
  public $id;
2585
  public $kind;
2586
- protected $mobileContentAdsSettingsType = 'Google_Service_AdSense_AdUnitMobileContentAdsSettings';
2587
  protected $mobileContentAdsSettingsDataType = '';
2588
  public $name;
2589
  public $savedStyleId;
@@ -2599,7 +2599,7 @@ class Google_Service_AdSense_AdUnit extends Google_Model
2599
  return $this->code;
2600
  }
2601
 
2602
- public function setContentAdsSettings(Google_Service_AdSense_AdUnitContentAdsSettings $contentAdsSettings)
2603
  {
2604
  $this->contentAdsSettings = $contentAdsSettings;
2605
  }
@@ -2609,7 +2609,7 @@ class Google_Service_AdSense_AdUnit extends Google_Model
2609
  return $this->contentAdsSettings;
2610
  }
2611
 
2612
- public function setCustomStyle(Google_Service_AdSense_AdStyle $customStyle)
2613
  {
2614
  $this->customStyle = $customStyle;
2615
  }
@@ -2619,7 +2619,7 @@ class Google_Service_AdSense_AdUnit extends Google_Model
2619
  return $this->customStyle;
2620
  }
2621
 
2622
- public function setFeedAdsSettings(Google_Service_AdSense_AdUnitFeedAdsSettings $feedAdsSettings)
2623
  {
2624
  $this->feedAdsSettings = $feedAdsSettings;
2625
  }
@@ -2649,7 +2649,7 @@ class Google_Service_AdSense_AdUnit extends Google_Model
2649
  return $this->kind;
2650
  }
2651
 
2652
- public function setMobileContentAdsSettings(Google_Service_AdSense_AdUnitMobileContentAdsSettings $mobileContentAdsSettings)
2653
  {
2654
  $this->mobileContentAdsSettings = $mobileContentAdsSettings;
2655
  }
@@ -2690,14 +2690,14 @@ class Google_Service_AdSense_AdUnit extends Google_Model
2690
  }
2691
  }
2692
 
2693
- class Google_Service_AdSense_AdUnitContentAdsSettings extends Google_Model
2694
  {
2695
- protected $backupOptionType = 'Google_Service_AdSense_AdUnitContentAdsSettingsBackupOption';
2696
  protected $backupOptionDataType = '';
2697
  public $size;
2698
  public $type;
2699
 
2700
- public function setBackupOption(Google_Service_AdSense_AdUnitContentAdsSettingsBackupOption $backupOption)
2701
  {
2702
  $this->backupOption = $backupOption;
2703
  }
@@ -2728,7 +2728,7 @@ class Google_Service_AdSense_AdUnitContentAdsSettings extends Google_Model
2728
  }
2729
  }
2730
 
2731
- class Google_Service_AdSense_AdUnitContentAdsSettingsBackupOption extends Google_Model
2732
  {
2733
  public $color;
2734
  public $type;
@@ -2765,7 +2765,7 @@ class Google_Service_AdSense_AdUnitContentAdsSettingsBackupOption extends Google
2765
  }
2766
  }
2767
 
2768
- class Google_Service_AdSense_AdUnitFeedAdsSettings extends Google_Model
2769
  {
2770
  public $adPosition;
2771
  public $frequency;
@@ -2813,7 +2813,7 @@ class Google_Service_AdSense_AdUnitFeedAdsSettings extends Google_Model
2813
  }
2814
  }
2815
 
2816
- class Google_Service_AdSense_AdUnitMobileContentAdsSettings extends Google_Model
2817
  {
2818
  public $markupLanguage;
2819
  public $scriptingLanguage;
@@ -2861,10 +2861,10 @@ class Google_Service_AdSense_AdUnitMobileContentAdsSettings extends Google_Model
2861
  }
2862
  }
2863
 
2864
- class Google_Service_AdSense_AdUnits extends Google_Collection
2865
  {
2866
  public $etag;
2867
- protected $itemsType = 'Google_Service_AdSense_AdUnit';
2868
  protected $itemsDataType = 'array';
2869
  public $kind;
2870
  public $nextPageToken;
@@ -2910,11 +2910,11 @@ class Google_Service_AdSense_AdUnits extends Google_Collection
2910
  }
2911
  }
2912
 
2913
- class Google_Service_AdSense_AdsenseReportsGenerateResponse extends Google_Collection
2914
  {
2915
  public $averages;
2916
  public $endDate;
2917
- protected $headersType = 'Google_Service_AdSense_AdsenseReportsGenerateResponseHeaders';
2918
  protected $headersDataType = 'array';
2919
  public $kind;
2920
  public $rows;
@@ -3014,7 +3014,7 @@ class Google_Service_AdSense_AdsenseReportsGenerateResponse extends Google_Colle
3014
  }
3015
  }
3016
 
3017
- class Google_Service_AdSense_AdsenseReportsGenerateResponseHeaders extends Google_Model
3018
  {
3019
  public $currency;
3020
  public $name;
@@ -3051,7 +3051,7 @@ class Google_Service_AdSense_AdsenseReportsGenerateResponseHeaders extends Googl
3051
  }
3052
  }
3053
 
3054
- class Google_Service_AdSense_Alert extends Google_Model
3055
  {
3056
  public $id;
3057
  public $isDismissible;
@@ -3121,9 +3121,9 @@ class Google_Service_AdSense_Alert extends Google_Model
3121
  }
3122
  }
3123
 
3124
- class Google_Service_AdSense_Alerts extends Google_Collection
3125
  {
3126
- protected $itemsType = 'Google_Service_AdSense_Alert';
3127
  protected $itemsDataType = 'array';
3128
  public $kind;
3129
 
@@ -3148,13 +3148,13 @@ class Google_Service_AdSense_Alerts extends Google_Collection
3148
  }
3149
  }
3150
 
3151
- class Google_Service_AdSense_CustomChannel extends Google_Model
3152
  {
3153
  public $code;
3154
  public $id;
3155
  public $kind;
3156
  public $name;
3157
- protected $targetingInfoType = 'Google_Service_AdSense_CustomChannelTargetingInfo';
3158
  protected $targetingInfoDataType = '';
3159
 
3160
  public function setCode($code)
@@ -3197,7 +3197,7 @@ class Google_Service_AdSense_CustomChannel extends Google_Model
3197
  return $this->name;
3198
  }
3199
 
3200
- public function setTargetingInfo(Google_Service_AdSense_CustomChannelTargetingInfo $targetingInfo)
3201
  {
3202
  $this->targetingInfo = $targetingInfo;
3203
  }
@@ -3208,7 +3208,7 @@ class Google_Service_AdSense_CustomChannel extends Google_Model
3208
  }
3209
  }
3210
 
3211
- class Google_Service_AdSense_CustomChannelTargetingInfo extends Google_Model
3212
  {
3213
  public $adsAppearOn;
3214
  public $description;
@@ -3256,10 +3256,10 @@ class Google_Service_AdSense_CustomChannelTargetingInfo extends Google_Model
3256
  }
3257
  }
3258
 
3259
- class Google_Service_AdSense_CustomChannels extends Google_Collection
3260
  {
3261
  public $etag;
3262
- protected $itemsType = 'Google_Service_AdSense_CustomChannel';
3263
  protected $itemsDataType = 'array';
3264
  public $kind;
3265
  public $nextPageToken;
@@ -3305,9 +3305,9 @@ class Google_Service_AdSense_CustomChannels extends Google_Collection
3305
  }
3306
  }
3307
 
3308
- class Google_Service_AdSense_Metadata extends Google_Collection
3309
  {
3310
- protected $itemsType = 'Google_Service_AdSense_ReportingMetadataEntry';
3311
  protected $itemsDataType = 'array';
3312
  public $kind;
3313
 
@@ -3332,7 +3332,7 @@ class Google_Service_AdSense_Metadata extends Google_Collection
3332
  }
3333
  }
3334
 
3335
- class Google_Service_AdSense_Payment extends Google_Model
3336
  {
3337
  public $id;
3338
  public $kind;
@@ -3391,9 +3391,9 @@ class Google_Service_AdSense_Payment extends Google_Model
3391
  }
3392
  }
3393
 
3394
- class Google_Service_AdSense_Payments extends Google_Collection
3395
  {
3396
- protected $itemsType = 'Google_Service_AdSense_Payment';
3397
  protected $itemsDataType = 'array';
3398
  public $kind;
3399
 
@@ -3418,7 +3418,7 @@ class Google_Service_AdSense_Payments extends Google_Collection
3418
  }
3419
  }
3420
 
3421
- class Google_Service_AdSense_ReportingMetadataEntry extends Google_Collection
3422
  {
3423
  public $compatibleDimensions;
3424
  public $compatibleMetrics;
@@ -3499,15 +3499,15 @@ class Google_Service_AdSense_ReportingMetadataEntry extends Google_Collection
3499
  }
3500
  }
3501
 
3502
- class Google_Service_AdSense_SavedAdStyle extends Google_Model
3503
  {
3504
- protected $adStyleType = 'Google_Service_AdSense_AdStyle';
3505
  protected $adStyleDataType = '';
3506
  public $id;
3507
  public $kind;
3508
  public $name;
3509
 
3510
- public function setAdStyle(Google_Service_AdSense_AdStyle $adStyle)
3511
  {
3512
  $this->adStyle = $adStyle;
3513
  }
@@ -3548,10 +3548,10 @@ class Google_Service_AdSense_SavedAdStyle extends Google_Model
3548
  }
3549
  }
3550
 
3551
- class Google_Service_AdSense_SavedAdStyles extends Google_Collection
3552
  {
3553
  public $etag;
3554
- protected $itemsType = 'Google_Service_AdSense_SavedAdStyle';
3555
  protected $itemsDataType = 'array';
3556
  public $kind;
3557
  public $nextPageToken;
@@ -3597,7 +3597,7 @@ class Google_Service_AdSense_SavedAdStyles extends Google_Collection
3597
  }
3598
  }
3599
 
3600
- class Google_Service_AdSense_SavedReport extends Google_Model
3601
  {
3602
  public $id;
3603
  public $kind;
@@ -3634,10 +3634,10 @@ class Google_Service_AdSense_SavedReport extends Google_Model
3634
  }
3635
  }
3636
 
3637
- class Google_Service_AdSense_SavedReports extends Google_Collection
3638
  {
3639
  public $etag;
3640
- protected $itemsType = 'Google_Service_AdSense_SavedReport';
3641
  protected $itemsDataType = 'array';
3642
  public $kind;
3643
  public $nextPageToken;
@@ -3683,7 +3683,7 @@ class Google_Service_AdSense_SavedReports extends Google_Collection
3683
  }
3684
  }
3685
 
3686
- class Google_Service_AdSense_UrlChannel extends Google_Model
3687
  {
3688
  public $id;
3689
  public $kind;
@@ -3720,10 +3720,10 @@ class Google_Service_AdSense_UrlChannel extends Google_Model
3720
  }
3721
  }
3722
 
3723
- class Google_Service_AdSense_UrlChannels extends Google_Collection
3724
  {
3725
  public $etag;
3726
- protected $itemsType = 'Google_Service_AdSense_UrlChannel';
3727
  protected $itemsDataType = 'array';
3728
  public $kind;
3729
  public $nextPageToken;
29
  *
30
  * @author Google, Inc.
31
  */
32
+ class GoogleGAL_Service_AdSense extends GoogleGAL_Service
33
  {
34
  /** View and manage your AdSense data. */
35
  const ADSENSE = "https://www.googleapis.com/auth/adsense";
66
  /**
67
  * Constructs the internal representation of the AdSense service.
68
  *
69
+ * @param GoogleGAL_Client $client
70
  */
71
+ public function __construct(GoogleGAL_Client $client)
72
  {
73
  parent::__construct($client);
74
  $this->servicePath = 'adsense/v1.4/';
75
  $this->version = 'v1.4';
76
  $this->serviceName = 'adsense';
77
 
78
+ $this->accounts = new GoogleGAL_Service_AdSense_Accounts_Resource(
79
  $this,
80
  $this->serviceName,
81
  'accounts',
112
  )
113
  )
114
  );
115
+ $this->accounts_adclients = new GoogleGAL_Service_AdSense_AccountsAdclients_Resource(
116
  $this,
117
  $this->serviceName,
118
  'adclients',
140
  )
141
  )
142
  );
143
+ $this->accounts_adunits = new GoogleGAL_Service_AdSense_AccountsAdunits_Resource(
144
  $this,
145
  $this->serviceName,
146
  'adunits',
217
  )
218
  )
219
  );
220
+ $this->accounts_adunits_customchannels = new GoogleGAL_Service_AdSense_AccountsAdunitsCustomchannels_Resource(
221
  $this,
222
  $this->serviceName,
223
  'customchannels',
255
  )
256
  )
257
  );
258
+ $this->accounts_alerts = new GoogleGAL_Service_AdSense_AccountsAlerts_Resource(
259
  $this,
260
  $this->serviceName,
261
  'alerts',
294
  )
295
  )
296
  );
297
+ $this->accounts_customchannels = new GoogleGAL_Service_AdSense_AccountsCustomchannels_Resource(
298
  $this,
299
  $this->serviceName,
300
  'customchannels',
347
  )
348
  )
349
  );
350
+ $this->accounts_customchannels_adunits = new GoogleGAL_Service_AdSense_AccountsCustomchannelsAdunits_Resource(
351
  $this,
352
  $this->serviceName,
353
  'adunits',
389
  )
390
  )
391
  );
392
+ $this->accounts_payments = new GoogleGAL_Service_AdSense_AccountsPayments_Resource(
393
  $this,
394
  $this->serviceName,
395
  'payments',
409
  )
410
  )
411
  );
412
+ $this->accounts_reports = new GoogleGAL_Service_AdSense_AccountsReports_Resource(
413
  $this,
414
  $this->serviceName,
415
  'reports',
479
  )
480
  )
481
  );
482
+ $this->accounts_reports_saved = new GoogleGAL_Service_AdSense_AccountsReportsSaved_Resource(
483
  $this,
484
  $this->serviceName,
485
  'saved',
534
  )
535
  )
536
  );
537
+ $this->accounts_savedadstyles = new GoogleGAL_Service_AdSense_AccountsSavedadstyles_Resource(
538
  $this,
539
  $this->serviceName,
540
  'savedadstyles',
577
  )
578
  )
579
  );
580
+ $this->accounts_urlchannels = new GoogleGAL_Service_AdSense_AccountsUrlchannels_Resource(
581
  $this,
582
  $this->serviceName,
583
  'urlchannels',
610
  )
611
  )
612
  );
613
+ $this->adclients = new GoogleGAL_Service_AdSense_Adclients_Resource(
614
  $this,
615
  $this->serviceName,
616
  'adclients',
633
  )
634
  )
635
  );
636
+ $this->adunits = new GoogleGAL_Service_AdSense_Adunits_Resource(
637
  $this,
638
  $this->serviceName,
639
  'adunits',
695
  )
696
  )
697
  );
698
+ $this->adunits_customchannels = new GoogleGAL_Service_AdSense_AdunitsCustomchannels_Resource(
699
  $this,
700
  $this->serviceName,
701
  'customchannels',
728
  )
729
  )
730
  );
731
+ $this->alerts = new GoogleGAL_Service_AdSense_Alerts_Resource(
732
  $this,
733
  $this->serviceName,
734
  'alerts',
757
  )
758
  )
759
  );
760
+ $this->customchannels = new GoogleGAL_Service_AdSense_Customchannels_Resource(
761
  $this,
762
  $this->serviceName,
763
  'customchannels',
800
  )
801
  )
802
  );
803
+ $this->customchannels_adunits = new GoogleGAL_Service_AdSense_CustomchannelsAdunits_Resource(
804
  $this,
805
  $this->serviceName,
806
  'adunits',
837
  )
838
  )
839
  );
840
+ $this->metadata_dimensions = new GoogleGAL_Service_AdSense_MetadataDimensions_Resource(
841
  $this,
842
  $this->serviceName,
843
  'dimensions',
851
  )
852
  )
853
  );
854
+ $this->metadata_metrics = new GoogleGAL_Service_AdSense_MetadataMetrics_Resource(
855
  $this,
856
  $this->serviceName,
857
  'metrics',
865
  )
866
  )
867
  );
868
+ $this->payments = new GoogleGAL_Service_AdSense_Payments_Resource(
869
  $this,
870
  $this->serviceName,
871
  'payments',
879
  )
880
  )
881
  );
882
+ $this->reports = new GoogleGAL_Service_AdSense_Reports_Resource(
883
  $this,
884
  $this->serviceName,
885
  'reports',
949
  )
950
  )
951
  );
952
+ $this->reports_saved = new GoogleGAL_Service_AdSense_ReportsSaved_Resource(
953
  $this,
954
  $this->serviceName,
955
  'saved',
994
  )
995
  )
996
  );
997
+ $this->savedadstyles = new GoogleGAL_Service_AdSense_Savedadstyles_Resource(
998
  $this,
999
  $this->serviceName,
1000
  'savedadstyles',
1027
  )
1028
  )
1029
  );
1030
+ $this->urlchannels = new GoogleGAL_Service_AdSense_Urlchannels_Resource(
1031
  $this,
1032
  $this->serviceName,
1033
  'urlchannels',
1063
  * The "accounts" collection of methods.
1064
  * Typical usage is:
1065
  * <code>
1066
+ * $adsenseService = new GoogleGAL_Service_AdSense(...);
1067
  * $accounts = $adsenseService->accounts;
1068
  * </code>
1069
  */
1070
+ class GoogleGAL_Service_AdSense_Accounts_Resource extends GoogleGAL_Service_Resource
1071
  {
1072
 
1073
  /**
1079
  *
1080
  * @opt_param bool tree
1081
  * Whether the tree of sub accounts should be returned.
1082
+ * @return GoogleGAL_Service_AdSense_Account
1083
  */
1084
  public function get($accountId, $optParams = array())
1085
  {
1086
  $params = array('accountId' => $accountId);
1087
  $params = array_merge($params, $optParams);
1088
+ return $this->call('get', array($params), "GoogleGAL_Service_AdSense_Account");
1089
  }
1090
  /**
1091
  * List all accounts available to this AdSense account. (accounts.listAccounts)
1097
  * parameter to the value of "nextPageToken" from the previous response.
1098
  * @opt_param int maxResults
1099
  * The maximum number of accounts to include in the response, used for paging.
1100
+ * @return GoogleGAL_Service_AdSense_Accounts
1101
  */
1102
  public function listAccounts($optParams = array())
1103
  {
1104
  $params = array();
1105
  $params = array_merge($params, $optParams);
1106
+ return $this->call('list', array($params), "GoogleGAL_Service_AdSense_Accounts");
1107
  }
1108
  }
1109
 
1111
  * The "adclients" collection of methods.
1112
  * Typical usage is:
1113
  * <code>
1114
+ * $adsenseService = new GoogleGAL_Service_AdSense(...);
1115
  * $adclients = $adsenseService->adclients;
1116
  * </code>
1117
  */
1118
+ class GoogleGAL_Service_AdSense_AccountsAdclients_Resource extends GoogleGAL_Service_Resource
1119
  {
1120
 
1121
  /**
1131
  * parameter to the value of "nextPageToken" from the previous response.
1132
  * @opt_param int maxResults
1133
  * The maximum number of ad clients to include in the response, used for paging.
1134
+ * @return GoogleGAL_Service_AdSense_AdClients
1135
  */
1136
  public function listAccountsAdclients($accountId, $optParams = array())
1137
  {
1138
  $params = array('accountId' => $accountId);
1139
  $params = array_merge($params, $optParams);
1140
+ return $this->call('list', array($params), "GoogleGAL_Service_AdSense_AdClients");
1141
  }
1142
  }
1143
  /**
1144
  * The "adunits" collection of methods.
1145
  * Typical usage is:
1146
  * <code>
1147
+ * $adsenseService = new GoogleGAL_Service_AdSense(...);
1148
  * $adunits = $adsenseService->adunits;
1149
  * </code>
1150
  */
1151
+ class GoogleGAL_Service_AdSense_AccountsAdunits_Resource extends GoogleGAL_Service_Resource
1152
  {
1153
 
1154
  /**
1162
  * @param string $adUnitId
1163
  * Ad unit to retrieve.
1164
  * @param array $optParams Optional parameters.
1165
+ * @return GoogleGAL_Service_AdSense_AdUnit
1166
  */
1167
  public function get($accountId, $adClientId, $adUnitId, $optParams = array())
1168
  {
1169
  $params = array('accountId' => $accountId, 'adClientId' => $adClientId, 'adUnitId' => $adUnitId);
1170
  $params = array_merge($params, $optParams);
1171
+ return $this->call('get', array($params), "GoogleGAL_Service_AdSense_AdUnit");
1172
  }
1173
  /**
1174
  * Get ad code for the specified ad unit. (adunits.getAdCode)
1180
  * @param string $adUnitId
1181
  * Ad unit to get the code for.
1182
  * @param array $optParams Optional parameters.
1183
+ * @return GoogleGAL_Service_AdSense_AdCode
1184
  */
1185
  public function getAdCode($accountId, $adClientId, $adUnitId, $optParams = array())
1186
  {
1187
  $params = array('accountId' => $accountId, 'adClientId' => $adClientId, 'adUnitId' => $adUnitId);
1188
  $params = array_merge($params, $optParams);
1189
+ return $this->call('getAdCode', array($params), "GoogleGAL_Service_AdSense_AdCode");
1190
  }
1191
  /**
1192
  * List all ad units in the specified ad client for the specified account.
1205
  * parameter to the value of "nextPageToken" from the previous response.
1206
  * @opt_param int maxResults
1207
  * The maximum number of ad units to include in the response, used for paging.
1208
+ * @return GoogleGAL_Service_AdSense_AdUnits
1209
  */
1210
  public function listAccountsAdunits($accountId, $adClientId, $optParams = array())
1211
  {
1212
  $params = array('accountId' => $accountId, 'adClientId' => $adClientId);
1213
  $params = array_merge($params, $optParams);
1214
+ return $this->call('list', array($params), "GoogleGAL_Service_AdSense_AdUnits");
1215
  }
1216
  }
1217
 
1219
  * The "customchannels" collection of methods.
1220
  * Typical usage is:
1221
  * <code>
1222
+ * $adsenseService = new GoogleGAL_Service_AdSense(...);
1223
  * $customchannels = $adsenseService->customchannels;
1224
  * </code>
1225
  */
1226
+ class GoogleGAL_Service_AdSense_AccountsAdunitsCustomchannels_Resource extends GoogleGAL_Service_Resource
1227
  {
1228
 
1229
  /**
1243
  * parameter to the value of "nextPageToken" from the previous response.
1244
  * @opt_param int maxResults
1245
  * The maximum number of custom channels to include in the response, used for paging.
1246
+ * @return GoogleGAL_Service_AdSense_CustomChannels
1247
  */
1248
  public function listAccountsAdunitsCustomchannels($accountId, $adClientId, $adUnitId, $optParams = array())
1249
  {
1250
  $params = array('accountId' => $accountId, 'adClientId' => $adClientId, 'adUnitId' => $adUnitId);
1251
  $params = array_merge($params, $optParams);
1252
+ return $this->call('list', array($params), "GoogleGAL_Service_AdSense_CustomChannels");
1253
  }
1254
  }
1255
  /**
1256
  * The "alerts" collection of methods.
1257
  * Typical usage is:
1258
  * <code>
1259
+ * $adsenseService = new GoogleGAL_Service_AdSense(...);
1260
  * $alerts = $adsenseService->alerts;
1261
  * </code>
1262
  */
1263
+ class GoogleGAL_Service_AdSense_AccountsAlerts_Resource extends GoogleGAL_Service_Resource
1264
  {
1265
 
1266
  /**
1291
  * The locale to use for translating alert messages. The account locale will be used if this is not
1292
  * supplied. The AdSense default (English) will be used if the supplied locale is invalid or
1293
  * unsupported.
1294
+ * @return GoogleGAL_Service_AdSense_Alerts
1295
  */
1296
  public function listAccountsAlerts($accountId, $optParams = array())
1297
  {
1298
  $params = array('accountId' => $accountId);
1299
  $params = array_merge($params, $optParams);
1300
+ return $this->call('list', array($params), "GoogleGAL_Service_AdSense_Alerts");
1301
  }
1302
  }
1303
  /**
1304
  * The "customchannels" collection of methods.
1305
  * Typical usage is:
1306
  * <code>
1307
+ * $adsenseService = new GoogleGAL_Service_AdSense(...);
1308
  * $customchannels = $adsenseService->customchannels;
1309
  * </code>
1310
  */
1311
+ class GoogleGAL_Service_AdSense_AccountsCustomchannels_Resource extends GoogleGAL_Service_Resource
1312
  {
1313
 
1314
  /**
1322
  * @param string $customChannelId
1323
  * Custom channel to retrieve.
1324
  * @param array $optParams Optional parameters.
1325
+ * @return GoogleGAL_Service_AdSense_CustomChannel
1326
  */
1327
  public function get($accountId, $adClientId, $customChannelId, $optParams = array())
1328
  {
1329
  $params = array('accountId' => $accountId, 'adClientId' => $adClientId, 'customChannelId' => $customChannelId);
1330
  $params = array_merge($params, $optParams);
1331
+ return $this->call('get', array($params), "GoogleGAL_Service_AdSense_CustomChannel");
1332
  }
1333
  /**
1334
  * List all custom channels in the specified ad client for the specified
1345
  * parameter to the value of "nextPageToken" from the previous response.
1346
  * @opt_param int maxResults
1347
  * The maximum number of custom channels to include in the response, used for paging.
1348
+ * @return GoogleGAL_Service_AdSense_CustomChannels
1349
  */
1350
  public function listAccountsCustomchannels($accountId, $adClientId, $optParams = array())
1351
  {
1352
  $params = array('accountId' => $accountId, 'adClientId' => $adClientId);
1353
  $params = array_merge($params, $optParams);
1354
+ return $this->call('list', array($params), "GoogleGAL_Service_AdSense_CustomChannels");
1355
  }
1356
  }
1357
 
1359
  * The "adunits" collection of methods.
1360
  * Typical usage is:
1361
  * <code>
1362
+ * $adsenseService = new GoogleGAL_Service_AdSense(...);
1363
  * $adunits = $adsenseService->adunits;
1364
  * </code>
1365
  */
1366
+ class GoogleGAL_Service_AdSense_AccountsCustomchannelsAdunits_Resource extends GoogleGAL_Service_Resource
1367
  {
1368
 
1369
  /**
1385
  * @opt_param string pageToken
1386
  * A continuation token, used to page through ad units. To retrieve the next page, set this
1387
  * parameter to the value of "nextPageToken" from the previous response.
1388
+ * @return GoogleGAL_Service_AdSense_AdUnits
1389
  */
1390
  public function listAccountsCustomchannelsAdunits($accountId, $adClientId, $customChannelId, $optParams = array())
1391
  {
1392
  $params = array('accountId' => $accountId, 'adClientId' => $adClientId, 'customChannelId' => $customChannelId);
1393
  $params = array_merge($params, $optParams);
1394
+ return $this->call('list', array($params), "GoogleGAL_Service_AdSense_AdUnits");
1395
  }
1396
  }
1397
  /**
1398
  * The "payments" collection of methods.
1399
  * Typical usage is:
1400
  * <code>
1401
+ * $adsenseService = new GoogleGAL_Service_AdSense(...);
1402
  * $payments = $adsenseService->payments;
1403
  * </code>
1404
  */
1405
+ class GoogleGAL_Service_AdSense_AccountsPayments_Resource extends GoogleGAL_Service_Resource
1406
  {
1407
 
1408
  /**
1412
  * @param string $accountId
1413
  * Account for which to retrieve the payments.
1414
  * @param array $optParams Optional parameters.
1415
+ * @return GoogleGAL_Service_AdSense_Payments
1416
  */
1417
  public function listAccountsPayments($accountId, $optParams = array())
1418
  {
1419
  $params = array('accountId' => $accountId);
1420
  $params = array_merge($params, $optParams);
1421
+ return $this->call('list', array($params), "GoogleGAL_Service_AdSense_Payments");
1422
  }
1423
  }
1424
  /**
1425
  * The "reports" collection of methods.
1426
  * Typical usage is:
1427
  * <code>
1428
+ * $adsenseService = new GoogleGAL_Service_AdSense(...);
1429
  * $reports = $adsenseService->reports;
1430
  * </code>
1431
  */
1432
+ class GoogleGAL_Service_AdSense_AccountsReports_Resource extends GoogleGAL_Service_Resource
1433
  {
1434
 
1435
  /**
1468
  * PST/PDT timezone will be used.
1469
  * @opt_param string dimension
1470
  * Dimensions to base the report on.
1471
+ * @return GoogleGAL_Service_AdSense_AdsenseReportsGenerateResponse
1472
  */
1473
  public function generate($accountId, $startDate, $endDate, $optParams = array())
1474
  {
1475
  $params = array('accountId' => $accountId, 'startDate' => $startDate, 'endDate' => $endDate);
1476
  $params = array_merge($params, $optParams);
1477
+ return $this->call('generate', array($params), "GoogleGAL_Service_AdSense_AdsenseReportsGenerateResponse");
1478
  }
1479
  }
1480
 
1482
  * The "saved" collection of methods.
1483
  * Typical usage is:
1484
  * <code>
1485
+ * $adsenseService = new GoogleGAL_Service_AdSense(...);
1486
  * $saved = $adsenseService->saved;
1487
  * </code>
1488
  */
1489
+ class GoogleGAL_Service_AdSense_AccountsReportsSaved_Resource extends GoogleGAL_Service_Resource
1490
  {
1491
 
1492
  /**
1506
  * Index of the first row of report data to return.
1507
  * @opt_param int maxResults
1508
  * The maximum number of rows of report data to return.
1509
+ * @return GoogleGAL_Service_AdSense_AdsenseReportsGenerateResponse
1510
  */
1511
  public function generate($accountId, $savedReportId, $optParams = array())
1512
  {
1513
  $params = array('accountId' => $accountId, 'savedReportId' => $savedReportId);
1514
  $params = array_merge($params, $optParams);
1515
+ return $this->call('generate', array($params), "GoogleGAL_Service_AdSense_AdsenseReportsGenerateResponse");
1516
  }
1517
  /**
1518
  * List all saved reports in the specified AdSense account.
1527
  * parameter to the value of "nextPageToken" from the previous response.
1528
  * @opt_param int maxResults
1529
  * The maximum number of saved reports to include in the response, used for paging.
1530
+ * @return GoogleGAL_Service_AdSense_SavedReports
1531
  */
1532
  public function listAccountsReportsSaved($accountId, $optParams = array())
1533
  {
1534
  $params = array('accountId' => $accountId);
1535
  $params = array_merge($params, $optParams);
1536
+ return $this->call('list', array($params), "GoogleGAL_Service_AdSense_SavedReports");
1537
  }
1538
  }
1539
  /**
1540
  * The "savedadstyles" collection of methods.
1541
  * Typical usage is:
1542
  * <code>
1543
+ * $adsenseService = new GoogleGAL_Service_AdSense(...);
1544
  * $savedadstyles = $adsenseService->savedadstyles;
1545
  * </code>
1546
  */
1547
+ class GoogleGAL_Service_AdSense_AccountsSavedadstyles_Resource extends GoogleGAL_Service_Resource
1548
  {
1549
 
1550
  /**
1555
  * @param string $savedAdStyleId
1556
  * Saved ad style to retrieve.
1557
  * @param array $optParams Optional parameters.
1558
+ * @return GoogleGAL_Service_AdSense_SavedAdStyle
1559
  */
1560
  public function get($accountId, $savedAdStyleId, $optParams = array())
1561
  {
1562
  $params = array('accountId' => $accountId, 'savedAdStyleId' => $savedAdStyleId);
1563
  $params = array_merge($params, $optParams);
1564
+ return $this->call('get', array($params), "GoogleGAL_Service_AdSense_SavedAdStyle");
1565
  }
1566
  /**
1567
  * List all saved ad styles in the specified account.
1576
  * parameter to the value of "nextPageToken" from the previous response.
1577
  * @opt_param int maxResults
1578
  * The maximum number of saved ad styles to include in the response, used for paging.
1579
+ * @return GoogleGAL_Service_AdSense_SavedAdStyles
1580
  */
1581
  public function listAccountsSavedadstyles($accountId, $optParams = array())
1582
  {
1583
  $params = array('accountId' => $accountId);
1584
  $params = array_merge($params, $optParams);
1585
+ return $this->call('list', array($params), "GoogleGAL_Service_AdSense_SavedAdStyles");
1586
  }
1587
  }
1588
  /**
1589
  * The "urlchannels" collection of methods.
1590
  * Typical usage is:
1591
  * <code>
1592
+ * $adsenseService = new GoogleGAL_Service_AdSense(...);
1593
  * $urlchannels = $adsenseService->urlchannels;
1594
  * </code>
1595
  */
1596
+ class GoogleGAL_Service_AdSense_AccountsUrlchannels_Resource extends GoogleGAL_Service_Resource
1597
  {
1598
 
1599
  /**
1611
  * parameter to the value of "nextPageToken" from the previous response.
1612
  * @opt_param int maxResults
1613
  * The maximum number of URL channels to include in the response, used for paging.
1614
+ * @return GoogleGAL_Service_AdSense_UrlChannels
1615
  */
1616
  public function listAccountsUrlchannels($accountId, $adClientId, $optParams = array())
1617
  {
1618
  $params = array('accountId' => $accountId, 'adClientId' => $adClientId);
1619
  $params = array_merge($params, $optParams);
1620
+ return $this->call('list', array($params), "GoogleGAL_Service_AdSense_UrlChannels");
1621
  }
1622
  }
1623
 
1625
  * The "adclients" collection of methods.
1626
  * Typical usage is:
1627
  * <code>
1628
+ * $adsenseService = new GoogleGAL_Service_AdSense(...);
1629
  * $adclients = $adsenseService->adclients;
1630
  * </code>
1631
  */
1632
+ class GoogleGAL_Service_AdSense_Adclients_Resource extends GoogleGAL_Service_Resource
1633
  {
1634
 
1635
  /**
1642
  * parameter to the value of "nextPageToken" from the previous response.
1643
  * @opt_param int maxResults
1644
  * The maximum number of ad clients to include in the response, used for paging.
1645
+ * @return GoogleGAL_Service_AdSense_AdClients
1646
  */
1647
  public function listAdclients($optParams = array())
1648
  {
1649
  $params = array();
1650
  $params = array_merge($params, $optParams);
1651
+ return $this->call('list', array($params), "GoogleGAL_Service_AdSense_AdClients");
1652
  }
1653
  }
1654
 
1656
  * The "adunits" collection of methods.
1657
  * Typical usage is:
1658
  * <code>
1659
+ * $adsenseService = new GoogleGAL_Service_AdSense(...);
1660
  * $adunits = $adsenseService->adunits;
1661
  * </code>
1662
  */
1663
+ class GoogleGAL_Service_AdSense_Adunits_Resource extends GoogleGAL_Service_Resource
1664
  {
1665
 
1666
  /**
1671
  * @param string $adUnitId
1672
  * Ad unit to retrieve.
1673
  * @param array $optParams Optional parameters.
1674
+ * @return GoogleGAL_Service_AdSense_AdUnit
1675
  */
1676
  public function get($adClientId, $adUnitId, $optParams = array())
1677
  {
1678
  $params = array('adClientId' => $adClientId, 'adUnitId' => $adUnitId);
1679
  $params = array_merge($params, $optParams);
1680
+ return $this->call('get', array($params), "GoogleGAL_Service_AdSense_AdUnit");
1681
  }
1682
  /**
1683
  * Get ad code for the specified ad unit. (adunits.getAdCode)
1687
  * @param string $adUnitId
1688
  * Ad unit to get the code for.
1689
  * @param array $optParams Optional parameters.
1690
+ * @return GoogleGAL_Service_AdSense_AdCode
1691
  */
1692
  public function getAdCode($adClientId, $adUnitId, $optParams = array())
1693
  {
1694
  $params = array('adClientId' => $adClientId, 'adUnitId' => $adUnitId);
1695
  $params = array_merge($params, $optParams);
1696
+ return $this->call('getAdCode', array($params), "GoogleGAL_Service_AdSense_AdCode");
1697
  }
1698
  /**
1699
  * List all ad units in the specified ad client for this AdSense account.
1710
  * parameter to the value of "nextPageToken" from the previous response.
1711
  * @opt_param int maxResults
1712
  * The maximum number of ad units to include in the response, used for paging.
1713
+ * @return GoogleGAL_Service_AdSense_AdUnits
1714
  */
1715
  public function listAdunits($adClientId, $optParams = array())
1716
  {
1717
  $params = array('adClientId' => $adClientId);
1718
  $params = array_merge($params, $optParams);
1719
+ return $this->call('list', array($params), "GoogleGAL_Service_AdSense_AdUnits");
1720
  }
1721
  }
1722
 
1724
  * The "customchannels" collection of methods.
1725
  * Typical usage is:
1726
  * <code>
1727
+ * $adsenseService = new GoogleGAL_Service_AdSense(...);
1728
  * $customchannels = $adsenseService->customchannels;
1729
  * </code>
1730
  */
1731
+ class GoogleGAL_Service_AdSense_AdunitsCustomchannels_Resource extends GoogleGAL_Service_Resource
1732
  {
1733
 
1734
  /**
1746
  * parameter to the value of "nextPageToken" from the previous response.
1747
  * @opt_param int maxResults
1748
  * The maximum number of custom channels to include in the response, used for paging.
1749
+ * @return GoogleGAL_Service_AdSense_CustomChannels
1750
  */
1751
  public function listAdunitsCustomchannels($adClientId, $adUnitId, $optParams = array())
1752
  {
1753
  $params = array('adClientId' => $adClientId, 'adUnitId' => $adUnitId);
1754
  $params = array_merge($params, $optParams);
1755
+ return $this->call('list', array($params), "GoogleGAL_Service_AdSense_CustomChannels");
1756
  }
1757
  }
1758
 
1760
  * The "alerts" collection of methods.
1761
  * Typical usage is:
1762
  * <code>
1763
+ * $adsenseService = new GoogleGAL_Service_AdSense(...);
1764
  * $alerts = $adsenseService->alerts;
1765
  * </code>
1766
  */
1767
+ class GoogleGAL_Service_AdSense_Alerts_Resource extends GoogleGAL_Service_Resource
1768
  {
1769
 
1770
  /**
1790
  * The locale to use for translating alert messages. The account locale will be used if this is not
1791
  * supplied. The AdSense default (English) will be used if the supplied locale is invalid or
1792
  * unsupported.
1793
+ * @return GoogleGAL_Service_AdSense_Alerts
1794
  */
1795
  public function listAlerts($optParams = array())
1796
  {
1797
  $params = array();
1798
  $params = array_merge($params, $optParams);
1799
+ return $this->call('list', array($params), "GoogleGAL_Service_AdSense_Alerts");
1800
  }
1801
  }
1802
 
1804
  * The "customchannels" collection of methods.
1805
  * Typical usage is:
1806
  * <code>
1807
+ * $adsenseService = new GoogleGAL_Service_AdSense(...);
1808
  * $customchannels = $adsenseService->customchannels;
1809
  * </code>
1810
  */
1811
+ class GoogleGAL_Service_AdSense_Customchannels_Resource extends GoogleGAL_Service_Resource
1812
  {
1813
 
1814
  /**
1820
  * @param string $customChannelId
1821
  * Custom channel to retrieve.
1822
  * @param array $optParams Optional parameters.
1823
+ * @return GoogleGAL_Service_AdSense_CustomChannel
1824
  */
1825
  public function get($adClientId, $customChannelId, $optParams = array())
1826
  {
1827
  $params = array('adClientId' => $adClientId, 'customChannelId' => $customChannelId);
1828
  $params = array_merge($params, $optParams);
1829
+ return $this->call('get', array($params), "GoogleGAL_Service_AdSense_CustomChannel");
1830
  }
1831
  /**
1832
  * List all custom channels in the specified ad client for this AdSense account.
1841
  * parameter to the value of "nextPageToken" from the previous response.
1842
  * @opt_param int maxResults
1843
  * The maximum number of custom channels to include in the response, used for paging.
1844
+ * @return GoogleGAL_Service_AdSense_CustomChannels
1845
  */
1846
  public function listCustomchannels($adClientId, $optParams = array())
1847
  {
1848
  $params = array('adClientId' => $adClientId);
1849
  $params = array_merge($params, $optParams);
1850
+ return $this->call('list', array($params), "GoogleGAL_Service_AdSense_CustomChannels");
1851
  }
1852
  }
1853
 
1855
  * The "adunits" collection of methods.
1856
  * Typical usage is:
1857
  * <code>
1858
+ * $adsenseService = new GoogleGAL_Service_AdSense(...);
1859
  * $adunits = $adsenseService->adunits;
1860
  * </code>
1861
  */
1862
+ class GoogleGAL_Service_AdSense_CustomchannelsAdunits_Resource extends GoogleGAL_Service_Resource
1863
  {
1864
 
1865
  /**
1879
  * parameter to the value of "nextPageToken" from the previous response.
1880
  * @opt_param int maxResults
1881
  * The maximum number of ad units to include in the response, used for paging.
1882
+ * @return GoogleGAL_Service_AdSense_AdUnits
1883
  */
1884
  public function listCustomchannelsAdunits($adClientId, $customChannelId, $optParams = array())
1885
  {
1886
  $params = array('adClientId' => $adClientId, 'customChannelId' => $customChannelId);
1887
  $params = array_merge($params, $optParams);
1888
+ return $this->call('list', array($params), "GoogleGAL_Service_AdSense_AdUnits");
1889
  }
1890
  }
1891
 
1893
  * The "metadata" collection of methods.
1894
  * Typical usage is:
1895
  * <code>
1896
+ * $adsenseService = new GoogleGAL_Service_AdSense(...);
1897
  * $metadata = $adsenseService->metadata;
1898
  * </code>
1899
  */
1900
+ class GoogleGAL_Service_AdSense_Metadata_Resource extends GoogleGAL_Service_Resource
1901
  {
1902
 
1903
  }
1906
  * The "dimensions" collection of methods.
1907
  * Typical usage is:
1908
  * <code>
1909
+ * $adsenseService = new GoogleGAL_Service_AdSense(...);
1910
  * $dimensions = $adsenseService->dimensions;
1911
  * </code>
1912
  */
1913
+ class GoogleGAL_Service_AdSense_MetadataDimensions_Resource extends GoogleGAL_Service_Resource
1914
  {
1915
 
1916
  /**
1918
  * (dimensions.listMetadataDimensions)
1919
  *
1920
  * @param array $optParams Optional parameters.
1921
+ * @return GoogleGAL_Service_AdSense_Metadata
1922
  */
1923
  public function listMetadataDimensions($optParams = array())
1924
  {
1925
  $params = array();
1926
  $params = array_merge($params, $optParams);
1927
+ return $this->call('list', array($params), "GoogleGAL_Service_AdSense_Metadata");
1928
  }
1929
  }
1930
  /**
1931
  * The "metrics" collection of methods.
1932
  * Typical usage is:
1933
  * <code>
1934
+ * $adsenseService = new GoogleGAL_Service_AdSense(...);
1935
  * $metrics = $adsenseService->metrics;
1936
  * </code>
1937
  */
1938
+ class GoogleGAL_Service_AdSense_MetadataMetrics_Resource extends GoogleGAL_Service_Resource
1939
  {
1940
 
1941
  /**
1943
  * (metrics.listMetadataMetrics)
1944
  *
1945
  * @param array $optParams Optional parameters.
1946
+ * @return GoogleGAL_Service_AdSense_Metadata
1947
  */
1948
  public function listMetadataMetrics($optParams = array())
1949
  {
1950
  $params = array();
1951
  $params = array_merge($params, $optParams);
1952
+ return $this->call('list', array($params), "GoogleGAL_Service_AdSense_Metadata");
1953
  }
1954
  }
1955
 
1957
  * The "payments" collection of methods.
1958
  * Typical usage is:
1959
  * <code>
1960
+ * $adsenseService = new GoogleGAL_Service_AdSense(...);
1961
  * $payments = $adsenseService->payments;
1962
  * </code>
1963
  */
1964
+ class GoogleGAL_Service_AdSense_Payments_Resource extends GoogleGAL_Service_Resource
1965
  {
1966
 
1967
  /**
1968
  * List the payments for this AdSense account. (payments.listPayments)
1969
  *
1970
  * @param array $optParams Optional parameters.
1971
+ * @return GoogleGAL_Service_AdSense_Payments
1972
  */
1973
  public function listPayments($optParams = array())
1974
  {
1975
  $params = array();
1976
  $params = array_merge($params, $optParams);
1977
+ return $this->call('list', array($params), "GoogleGAL_Service_AdSense_Payments");
1978
  }
1979
  }
1980
 
1982
  * The "reports" collection of methods.
1983
  * Typical usage is:
1984
  * <code>
1985
+ * $adsenseService = new GoogleGAL_Service_AdSense(...);
1986
  * $reports = $adsenseService->reports;
1987
  * </code>
1988
  */
1989
+ class GoogleGAL_Service_AdSense_Reports_Resource extends GoogleGAL_Service_Resource
1990
  {
1991
 
1992
  /**
2025
  * Dimensions to base the report on.
2026
  * @opt_param string accountId
2027
  * Accounts upon which to report.
2028
+ * @return GoogleGAL_Service_AdSense_AdsenseReportsGenerateResponse
2029
  */
2030
  public function generate($startDate, $endDate, $optParams = array())
2031
  {
2032
  $params = array('startDate' => $startDate, 'endDate' => $endDate);
2033
  $params = array_merge($params, $optParams);
2034
+ return $this->call('generate', array($params), "GoogleGAL_Service_AdSense_AdsenseReportsGenerateResponse");
2035
  }
2036
  }
2037
 
2039
  * The "saved" collection of methods.
2040
  * Typical usage is:
2041
  * <code>
2042
+ * $adsenseService = new GoogleGAL_Service_AdSense(...);
2043
  * $saved = $adsenseService->saved;
2044
  * </code>
2045
  */
2046
+ class GoogleGAL_Service_AdSense_ReportsSaved_Resource extends GoogleGAL_Service_Resource
2047
  {
2048
 
2049
  /**
2061
  * Index of the first row of report data to return.
2062
  * @opt_param int maxResults
2063
  * The maximum number of rows of report data to return.
2064
+ * @return GoogleGAL_Service_AdSense_AdsenseReportsGenerateResponse
2065
  */
2066
  public function generate($savedReportId, $optParams = array())
2067
  {
2068
  $params = array('savedReportId' => $savedReportId);
2069
  $params = array_merge($params, $optParams);
2070
+ return $this->call('generate', array($params), "GoogleGAL_Service_AdSense_AdsenseReportsGenerateResponse");
2071
  }
2072
  /**
2073
  * List all saved reports in this AdSense account. (saved.listReportsSaved)
2079
  * parameter to the value of "nextPageToken" from the previous response.
2080
  * @opt_param int maxResults
2081
  * The maximum number of saved reports to include in the response, used for paging.
2082
+ * @return GoogleGAL_Service_AdSense_SavedReports
2083
  */
2084
  public function listReportsSaved($optParams = array())
2085
  {
2086
  $params = array();
2087
  $params = array_merge($params, $optParams);
2088
+ return $this->call('list', array($params), "GoogleGAL_Service_AdSense_SavedReports");
2089
  }
2090
  }
2091
 
2093
  * The "savedadstyles" collection of methods.
2094
  * Typical usage is:
2095
  * <code>
2096
+ * $adsenseService = new GoogleGAL_Service_AdSense(...);
2097
  * $savedadstyles = $adsenseService->savedadstyles;
2098
  * </code>
2099
  */
2100
+ class GoogleGAL_Service_AdSense_Savedadstyles_Resource extends GoogleGAL_Service_Resource
2101
  {
2102
 
2103
  /**
2106
  * @param string $savedAdStyleId
2107
  * Saved ad style to retrieve.
2108
  * @param array $optParams Optional parameters.
2109
+ * @return GoogleGAL_Service_AdSense_SavedAdStyle
2110
  */
2111
  public function get($savedAdStyleId, $optParams = array())
2112
  {
2113
  $params = array('savedAdStyleId' => $savedAdStyleId);
2114
  $params = array_merge($params, $optParams);
2115
+ return $this->call('get', array($params), "GoogleGAL_Service_AdSense_SavedAdStyle");
2116
  }
2117
  /**
2118
  * List all saved ad styles in the user's account.
2125
  * parameter to the value of "nextPageToken" from the previous response.
2126
  * @opt_param int maxResults
2127
  * The maximum number of saved ad styles to include in the response, used for paging.
2128
+ * @return GoogleGAL_Service_AdSense_SavedAdStyles
2129
  */
2130
  public function listSavedadstyles($optParams = array())
2131
  {
2132
  $params = array();
2133
  $params = array_merge($params, $optParams);
2134
+ return $this->call('list', array($params), "GoogleGAL_Service_AdSense_SavedAdStyles");
2135
  }
2136
  }
2137
 
2139
  * The "urlchannels" collection of methods.
2140
  * Typical usage is:
2141
  * <code>
2142
+ * $adsenseService = new GoogleGAL_Service_AdSense(...);
2143
  * $urlchannels = $adsenseService->urlchannels;
2144
  * </code>
2145
  */
2146
+ class GoogleGAL_Service_AdSense_Urlchannels_Resource extends GoogleGAL_Service_Resource
2147
  {
2148
 
2149
  /**
2159
  * parameter to the value of "nextPageToken" from the previous response.
2160
  * @opt_param int maxResults
2161
  * The maximum number of URL channels to include in the response, used for paging.
2162
+ * @return GoogleGAL_Service_AdSense_UrlChannels
2163
  */
2164
  public function listUrlchannels($adClientId, $optParams = array())
2165
  {
2166
  $params = array('adClientId' => $adClientId);
2167
  $params = array_merge($params, $optParams);
2168
+ return $this->call('list', array($params), "GoogleGAL_Service_AdSense_UrlChannels");
2169
  }
2170
  }
2171
 
2172
 
2173
 
2174
 
2175
+ class GoogleGAL_Service_AdSense_Account extends GoogleGAL_Collection
2176
  {
2177
  public $id;
2178
  public $kind;
2179
  public $name;
2180
  public $premium;
2181
+ protected $subAccountsType = 'GoogleGAL_Service_AdSense_Account';
2182
  protected $subAccountsDataType = 'array';
2183
  public $timezone;
2184
 
2243
  }
2244
  }
2245
 
2246
+ class GoogleGAL_Service_AdSense_Accounts extends GoogleGAL_Collection
2247
  {
2248
  public $etag;
2249
+ protected $itemsType = 'GoogleGAL_Service_AdSense_Account';
2250
  protected $itemsDataType = 'array';
2251
  public $kind;
2252
  public $nextPageToken;
2292
  }
2293
  }
2294
 
2295
+ class GoogleGAL_Service_AdSense_AdClient extends GoogleGAL_Model
2296
  {
2297
  public $arcOptIn;
2298
  public $arcReviewMode;
2362
  }
2363
  }
2364
 
2365
+ class GoogleGAL_Service_AdSense_AdClients extends GoogleGAL_Collection
2366
  {
2367
  public $etag;
2368
+ protected $itemsType = 'GoogleGAL_Service_AdSense_AdClient';
2369
  protected $itemsDataType = 'array';
2370
  public $kind;
2371
  public $nextPageToken;
2411
  }
2412
  }
2413
 
2414
+ class GoogleGAL_Service_AdSense_AdCode extends GoogleGAL_Model
2415
  {
2416
  public $adCode;
2417
  public $kind;
2437
  }
2438
  }
2439
 
2440
+ class GoogleGAL_Service_AdSense_AdStyle extends GoogleGAL_Model
2441
  {
2442
+ protected $colorsType = 'GoogleGAL_Service_AdSense_AdStyleColors';
2443
  protected $colorsDataType = '';
2444
  public $corners;
2445
+ protected $fontType = 'GoogleGAL_Service_AdSense_AdStyleFont';
2446
  protected $fontDataType = '';
2447
  public $kind;
2448
 
2449
+ public function setColors(GoogleGAL_Service_AdSense_AdStyleColors $colors)
2450
  {
2451
  $this->colors = $colors;
2452
  }
2466
  return $this->corners;
2467
  }
2468
 
2469
+ public function setFont(GoogleGAL_Service_AdSense_AdStyleFont $font)
2470
  {
2471
  $this->font = $font;
2472
  }
2487
  }
2488
  }
2489
 
2490
+ class GoogleGAL_Service_AdSense_AdStyleColors extends GoogleGAL_Model
2491
  {
2492
  public $background;
2493
  public $border;
2546
  }
2547
  }
2548
 
2549
+ class GoogleGAL_Service_AdSense_AdStyleFont extends GoogleGAL_Model
2550
  {
2551
  public $family;
2552
  public $size;
2572
  }
2573
  }
2574
 
2575
+ class GoogleGAL_Service_AdSense_AdUnit extends GoogleGAL_Model
2576
  {
2577
  public $code;
2578
+ protected $contentAdsSettingsType = 'GoogleGAL_Service_AdSense_AdUnitContentAdsSettings';
2579
  protected $contentAdsSettingsDataType = '';
2580
+ protected $customStyleType = 'GoogleGAL_Service_AdSense_AdStyle';
2581
  protected $customStyleDataType = '';
2582
+ protected $feedAdsSettingsType = 'GoogleGAL_Service_AdSense_AdUnitFeedAdsSettings';
2583
  protected $feedAdsSettingsDataType = '';
2584
  public $id;
2585
  public $kind;
2586
+ protected $mobileContentAdsSettingsType = 'GoogleGAL_Service_AdSense_AdUnitMobileContentAdsSettings';
2587
  protected $mobileContentAdsSettingsDataType = '';
2588
  public $name;
2589
  public $savedStyleId;
2599
  return $this->code;
2600
  }
2601
 
2602
+ public function setContentAdsSettings(GoogleGAL_Service_AdSense_AdUnitContentAdsSettings $contentAdsSettings)
2603
  {
2604
  $this->contentAdsSettings = $contentAdsSettings;
2605
  }
2609
  return $this->contentAdsSettings;
2610
  }
2611
 
2612
+ public function setCustomStyle(GoogleGAL_Service_AdSense_AdStyle $customStyle)
2613
  {
2614
  $this->customStyle = $customStyle;
2615
  }
2619
  return $this->customStyle;
2620
  }
2621
 
2622
+ public function setFeedAdsSettings(GoogleGAL_Service_AdSense_AdUnitFeedAdsSettings $feedAdsSettings)
2623
  {
2624
  $this->feedAdsSettings = $feedAdsSettings;
2625
  }
2649
  return $this->kind;
2650
  }
2651
 
2652
+ public function setMobileContentAdsSettings(GoogleGAL_Service_AdSense_AdUnitMobileContentAdsSettings $mobileContentAdsSettings)
2653
  {
2654
  $this->mobileContentAdsSettings = $mobileContentAdsSettings;
2655
  }
2690
  }
2691
  }
2692
 
2693
+ class GoogleGAL_Service_AdSense_AdUnitContentAdsSettings extends GoogleGAL_Model
2694
  {
2695
+ protected $backupOptionType = 'GoogleGAL_Service_AdSense_AdUnitContentAdsSettingsBackupOption';
2696
  protected $backupOptionDataType = '';
2697
  public $size;
2698
  public $type;
2699
 
2700
+ public function setBackupOption(GoogleGAL_Service_AdSense_AdUnitContentAdsSettingsBackupOption $backupOption)
2701
  {
2702
  $this->backupOption = $backupOption;
2703
  }
2728
  }
2729
  }
2730
 
2731
+ class GoogleGAL_Service_AdSense_AdUnitContentAdsSettingsBackupOption extends GoogleGAL_Model
2732
  {
2733
  public $color;
2734
  public $type;
2765
  }
2766
  }
2767
 
2768
+ class GoogleGAL_Service_AdSense_AdUnitFeedAdsSettings extends GoogleGAL_Model
2769
  {
2770
  public $adPosition;
2771
  public $frequency;
2813
  }
2814
  }
2815
 
2816
+ class GoogleGAL_Service_AdSense_AdUnitMobileContentAdsSettings extends GoogleGAL_Model
2817
  {
2818
  public $markupLanguage;
2819
  public $scriptingLanguage;
2861
  }
2862
  }
2863
 
2864
+ class GoogleGAL_Service_AdSense_AdUnits extends GoogleGAL_Collection
2865
  {
2866
  public $etag;
2867
+ protected $itemsType = 'GoogleGAL_Service_AdSense_AdUnit';
2868
  protected $itemsDataType = 'array';
2869
  public $kind;
2870
  public $nextPageToken;
2910
  }
2911
  }
2912
 
2913
+ class GoogleGAL_Service_AdSense_AdsenseReportsGenerateResponse extends GoogleGAL_Collection
2914
  {
2915
  public $averages;
2916
  public $endDate;
2917
+ protected $headersType = 'GoogleGAL_Service_AdSense_AdsenseReportsGenerateResponseHeaders';
2918
  protected $headersDataType = 'array';
2919
  public $kind;
2920
  public $rows;
3014
  }
3015
  }
3016
 
3017
+ class GoogleGAL_Service_AdSense_AdsenseReportsGenerateResponseHeaders extends GoogleGAL_Model
3018
  {
3019
  public $currency;
3020
  public $name;
3051
  }
3052
  }
3053
 
3054
+ class GoogleGAL_Service_AdSense_Alert extends GoogleGAL_Model
3055
  {
3056
  public $id;
3057
  public $isDismissible;
3121
  }
3122
  }
3123
 
3124
+ class GoogleGAL_Service_AdSense_Alerts extends GoogleGAL_Collection
3125
  {
3126
+ protected $itemsType = 'GoogleGAL_Service_AdSense_Alert';
3127
  protected $itemsDataType = 'array';
3128
  public $kind;
3129
 
3148
  }
3149
  }
3150
 
3151
+ class GoogleGAL_Service_AdSense_CustomChannel extends GoogleGAL_Model
3152
  {
3153
  public $code;
3154
  public $id;
3155
  public $kind;
3156
  public $name;
3157
+ protected $targetingInfoType = 'GoogleGAL_Service_AdSense_CustomChannelTargetingInfo';
3158
  protected $targetingInfoDataType = '';
3159
 
3160
  public function setCode($code)
3197
  return $this->name;
3198
  }
3199
 
3200
+ public function setTargetingInfo(GoogleGAL_Service_AdSense_CustomChannelTargetingInfo $targetingInfo)
3201
  {
3202
  $this->targetingInfo = $targetingInfo;
3203
  }
3208
  }
3209
  }
3210
 
3211
+ class GoogleGAL_Service_AdSense_CustomChannelTargetingInfo extends GoogleGAL_Model
3212
  {
3213
  public $adsAppearOn;
3214
  public $description;
3256
  }
3257
  }
3258
 
3259
+ class GoogleGAL_Service_AdSense_CustomChannels extends GoogleGAL_Collection
3260
  {
3261
  public $etag;
3262
+ protected $itemsType = 'GoogleGAL_Service_AdSense_CustomChannel';
3263
  protected $itemsDataType = 'array';
3264
  public $kind;
3265
  public $nextPageToken;
3305
  }
3306
  }
3307
 
3308
+ class GoogleGAL_Service_AdSense_Metadata extends GoogleGAL_Collection
3309
  {
3310
+ protected $itemsType = 'GoogleGAL_Service_AdSense_ReportingMetadataEntry';
3311
  protected $itemsDataType = 'array';
3312
  public $kind;
3313
 
3332
  }
3333
  }
3334
 
3335
+ class GoogleGAL_Service_AdSense_Payment extends GoogleGAL_Model
3336
  {
3337
  public $id;
3338
  public $kind;
3391
  }
3392
  }
3393
 
3394
+ class GoogleGAL_Service_AdSense_Payments extends GoogleGAL_Collection
3395
  {
3396
+ protected $itemsType = 'GoogleGAL_Service_AdSense_Payment';
3397
  protected $itemsDataType = 'array';
3398
  public $kind;
3399
 
3418
  }
3419
  }
3420
 
3421
+ class GoogleGAL_Service_AdSense_ReportingMetadataEntry extends GoogleGAL_Collection
3422
  {
3423
  public $compatibleDimensions;
3424
  public $compatibleMetrics;
3499
  }
3500
  }
3501
 
3502
+ class GoogleGAL_Service_AdSense_SavedAdStyle extends GoogleGAL_Model
3503
  {
3504
+ protected $adStyleType = 'GoogleGAL_Service_AdSense_AdStyle';
3505
  protected $adStyleDataType = '';
3506
  public $id;
3507
  public $kind;
3508
  public $name;
3509
 
3510
+ public function setAdStyle(GoogleGAL_Service_AdSense_AdStyle $adStyle)
3511
  {
3512
  $this->adStyle = $adStyle;
3513
  }
3548
  }
3549
  }
3550
 
3551
+ class GoogleGAL_Service_AdSense_SavedAdStyles extends GoogleGAL_Collection
3552
  {
3553
  public $etag;
3554
+ protected $itemsType = 'GoogleGAL_Service_AdSense_SavedAdStyle';
3555
  protected $itemsDataType = 'array';
3556
  public $kind;
3557
  public $nextPageToken;
3597
  }
3598
  }
3599
 
3600
+ class GoogleGAL_Service_AdSense_SavedReport extends GoogleGAL_Model
3601
  {
3602
  public $id;
3603
  public $kind;
3634
  }
3635
  }
3636
 
3637
+ class GoogleGAL_Service_AdSense_SavedReports extends GoogleGAL_Collection
3638
  {
3639
  public $etag;
3640
+ protected $itemsType = 'GoogleGAL_Service_AdSense_SavedReport';
3641
  protected $itemsDataType = 'array';
3642
  public $kind;
3643
  public $nextPageToken;
3683
  }
3684
  }
3685
 
3686
+ class GoogleGAL_Service_AdSense_UrlChannel extends GoogleGAL_Model
3687
  {
3688
  public $id;
3689
  public $kind;
3720
  }
3721
  }
3722
 
3723
+ class GoogleGAL_Service_AdSense_UrlChannels extends GoogleGAL_Collection
3724
  {
3725
  public $etag;
3726
+ protected $itemsType = 'GoogleGAL_Service_AdSense_UrlChannel';
3727
  protected $itemsDataType = 'array';
3728
  public $kind;
3729
  public $nextPageToken;
core/Google/Service/AdSenseHost.php CHANGED
@@ -29,7 +29,7 @@
29
  *
30
  * @author Google, Inc.
31
  */
32
- class Google_Service_AdSenseHost extends Google_Service
33
  {
34
  /** View and manage your AdSense host data and associated accounts. */
35
  const ADSENSEHOST = "https://www.googleapis.com/auth/adsensehost";
@@ -48,16 +48,16 @@ class Google_Service_AdSenseHost extends Google_Service
48
  /**
49
  * Constructs the internal representation of the AdSenseHost service.
50
  *
51
- * @param Google_Client $client
52
  */
53
- public function __construct(Google_Client $client)
54
  {
55
  parent::__construct($client);
56
  $this->servicePath = 'adsensehost/v4.1/';
57
  $this->version = 'v4.1';
58
  $this->serviceName = 'adsensehost';
59
 
60
- $this->accounts = new Google_Service_AdSenseHost_Accounts_Resource(
61
  $this,
62
  $this->serviceName,
63
  'accounts',
@@ -88,7 +88,7 @@ class Google_Service_AdSenseHost extends Google_Service
88
  )
89
  )
90
  );
91
- $this->accounts_adclients = new Google_Service_AdSenseHost_AccountsAdclients_Resource(
92
  $this,
93
  $this->serviceName,
94
  'adclients',
@@ -131,7 +131,7 @@ class Google_Service_AdSenseHost extends Google_Service
131
  )
132
  )
133
  );
134
- $this->accounts_adunits = new Google_Service_AdSenseHost_AccountsAdunits_Resource(
135
  $this,
136
  $this->serviceName,
137
  'adunits',
@@ -283,7 +283,7 @@ class Google_Service_AdSenseHost extends Google_Service
283
  )
284
  )
285
  );
286
- $this->accounts_reports = new Google_Service_AdSenseHost_AccountsReports_Resource(
287
  $this,
288
  $this->serviceName,
289
  'reports',
@@ -345,7 +345,7 @@ class Google_Service_AdSenseHost extends Google_Service
345
  )
346
  )
347
  );
348
- $this->adclients = new Google_Service_AdSenseHost_Adclients_Resource(
349
  $this,
350
  $this->serviceName,
351
  'adclients',
@@ -378,7 +378,7 @@ class Google_Service_AdSenseHost extends Google_Service
378
  )
379
  )
380
  );
381
- $this->associationsessions = new Google_Service_AdSenseHost_Associationsessions_Resource(
382
  $this,
383
  $this->serviceName,
384
  'associationsessions',
@@ -422,7 +422,7 @@ class Google_Service_AdSenseHost extends Google_Service
422
  )
423
  )
424
  );
425
- $this->customchannels = new Google_Service_AdSenseHost_Customchannels_Resource(
426
  $this,
427
  $this->serviceName,
428
  'customchannels',
@@ -515,7 +515,7 @@ class Google_Service_AdSenseHost extends Google_Service
515
  )
516
  )
517
  );
518
- $this->reports = new Google_Service_AdSenseHost_Reports_Resource(
519
  $this,
520
  $this->serviceName,
521
  'reports',
@@ -572,7 +572,7 @@ class Google_Service_AdSenseHost extends Google_Service
572
  )
573
  )
574
  );
575
- $this->urlchannels = new Google_Service_AdSenseHost_Urlchannels_Resource(
576
  $this,
577
  $this->serviceName,
578
  'urlchannels',
@@ -633,11 +633,11 @@ class Google_Service_AdSenseHost extends Google_Service
633
  * The "accounts" collection of methods.
634
  * Typical usage is:
635
  * <code>
636
- * $adsensehostService = new Google_Service_AdSenseHost(...);
637
  * $accounts = $adsensehostService->accounts;
638
  * </code>
639
  */
640
- class Google_Service_AdSenseHost_Accounts_Resource extends Google_Service_Resource
641
  {
642
 
643
  /**
@@ -646,13 +646,13 @@ class Google_Service_AdSenseHost_Accounts_Resource extends Google_Service_Resour
646
  * @param string $accountId
647
  * Account to get information about.
648
  * @param array $optParams Optional parameters.
649
- * @return Google_Service_AdSenseHost_Account
650
  */
651
  public function get($accountId, $optParams = array())
652
  {
653
  $params = array('accountId' => $accountId);
654
  $params = array_merge($params, $optParams);
655
- return $this->call('get', array($params), "Google_Service_AdSenseHost_Account");
656
  }
657
  /**
658
  * List hosted accounts associated with this AdSense account by ad client id.
@@ -661,13 +661,13 @@ class Google_Service_AdSenseHost_Accounts_Resource extends Google_Service_Resour
661
  * @param string $filterAdClientId
662
  * Ad clients to list accounts for.
663
  * @param array $optParams Optional parameters.
664
- * @return Google_Service_AdSenseHost_Accounts
665
  */
666
  public function listAccounts($filterAdClientId, $optParams = array())
667
  {
668
  $params = array('filterAdClientId' => $filterAdClientId);
669
  $params = array_merge($params, $optParams);
670
- return $this->call('list', array($params), "Google_Service_AdSenseHost_Accounts");
671
  }
672
  }
673
 
@@ -675,11 +675,11 @@ class Google_Service_AdSenseHost_Accounts_Resource extends Google_Service_Resour
675
  * The "adclients" collection of methods.
676
  * Typical usage is:
677
  * <code>
678
- * $adsensehostService = new Google_Service_AdSenseHost(...);
679
  * $adclients = $adsensehostService->adclients;
680
  * </code>
681
  */
682
- class Google_Service_AdSenseHost_AccountsAdclients_Resource extends Google_Service_Resource
683
  {
684
 
685
  /**
@@ -691,13 +691,13 @@ class Google_Service_AdSenseHost_AccountsAdclients_Resource extends Google_Servi
691
  * @param string $adClientId
692
  * Ad client to get.
693
  * @param array $optParams Optional parameters.
694
- * @return Google_Service_AdSenseHost_AdClient
695
  */
696
  public function get($accountId, $adClientId, $optParams = array())
697
  {
698
  $params = array('accountId' => $accountId, 'adClientId' => $adClientId);
699
  $params = array_merge($params, $optParams);
700
- return $this->call('get', array($params), "Google_Service_AdSenseHost_AdClient");
701
  }
702
  /**
703
  * List all hosted ad clients in the specified hosted account.
@@ -712,24 +712,24 @@ class Google_Service_AdSenseHost_AccountsAdclients_Resource extends Google_Servi
712
  * parameter to the value of "nextPageToken" from the previous response.
713
  * @opt_param string maxResults
714
  * The maximum number of ad clients to include in the response, used for paging.
715
- * @return Google_Service_AdSenseHost_AdClients
716
  */
717
  public function listAccountsAdclients($accountId, $optParams = array())
718
  {
719
  $params = array('accountId' => $accountId);
720
  $params = array_merge($params, $optParams);
721
- return $this->call('list', array($params), "Google_Service_AdSenseHost_AdClients");
722
  }
723
  }
724
  /**
725
  * The "adunits" collection of methods.
726
  * Typical usage is:
727
  * <code>
728
- * $adsensehostService = new Google_Service_AdSenseHost(...);
729
  * $adunits = $adsensehostService->adunits;
730
  * </code>
731
  */
732
- class Google_Service_AdSenseHost_AccountsAdunits_Resource extends Google_Service_Resource
733
  {
734
 
735
  /**
@@ -743,13 +743,13 @@ class Google_Service_AdSenseHost_AccountsAdunits_Resource extends Google_Service
743
  * @param string $adUnitId
744
  * Ad unit to delete.
745
  * @param array $optParams Optional parameters.
746
- * @return Google_Service_AdSenseHost_AdUnit
747
  */
748
  public function delete($accountId, $adClientId, $adUnitId, $optParams = array())
749
  {
750
  $params = array('accountId' => $accountId, 'adClientId' => $adClientId, 'adUnitId' => $adUnitId);
751
  $params = array_merge($params, $optParams);
752
- return $this->call('delete', array($params), "Google_Service_AdSenseHost_AdUnit");
753
  }
754
  /**
755
  * Get the specified host ad unit in this AdSense account. (adunits.get)
@@ -761,13 +761,13 @@ class Google_Service_AdSenseHost_AccountsAdunits_Resource extends Google_Service
761
  * @param string $adUnitId
762
  * Ad unit to get.
763
  * @param array $optParams Optional parameters.
764
- * @return Google_Service_AdSenseHost_AdUnit
765
  */
766
  public function get($accountId, $adClientId, $adUnitId, $optParams = array())
767
  {
768
  $params = array('accountId' => $accountId, 'adClientId' => $adClientId, 'adUnitId' => $adUnitId);
769
  $params = array_merge($params, $optParams);
770
- return $this->call('get', array($params), "Google_Service_AdSenseHost_AdUnit");
771
  }
772
  /**
773
  * Get ad code for the specified ad unit, attaching the specified host custom
@@ -783,13 +783,13 @@ class Google_Service_AdSenseHost_AccountsAdunits_Resource extends Google_Service
783
  *
784
  * @opt_param string hostCustomChannelId
785
  * Host custom channel to attach to the ad code.
786
- * @return Google_Service_AdSenseHost_AdCode
787
  */
788
  public function getAdCode($accountId, $adClientId, $adUnitId, $optParams = array())
789
  {
790
  $params = array('accountId' => $accountId, 'adClientId' => $adClientId, 'adUnitId' => $adUnitId);
791
  $params = array_merge($params, $optParams);
792
- return $this->call('getAdCode', array($params), "Google_Service_AdSenseHost_AdCode");
793
  }
794
  /**
795
  * Insert the supplied ad unit into the specified publisher AdSense account.
@@ -799,15 +799,15 @@ class Google_Service_AdSenseHost_AccountsAdunits_Resource extends Google_Service
799
  * Account which will contain the ad unit.
800
  * @param string $adClientId
801
  * Ad client into which to insert the ad unit.
802
- * @param Google_AdUnit $postBody
803
  * @param array $optParams Optional parameters.
804
- * @return Google_Service_AdSenseHost_AdUnit
805
  */
806
- public function insert($accountId, $adClientId, Google_Service_AdSenseHost_AdUnit $postBody, $optParams = array())
807
  {
808
  $params = array('accountId' => $accountId, 'adClientId' => $adClientId, 'postBody' => $postBody);
809
  $params = array_merge($params, $optParams);
810
- return $this->call('insert', array($params), "Google_Service_AdSenseHost_AdUnit");
811
  }
812
  /**
813
  * List all ad units in the specified publisher's AdSense account.
@@ -826,13 +826,13 @@ class Google_Service_AdSenseHost_AccountsAdunits_Resource extends Google_Service
826
  * parameter to the value of "nextPageToken" from the previous response.
827
  * @opt_param string maxResults
828
  * The maximum number of ad units to include in the response, used for paging.
829
- * @return Google_Service_AdSenseHost_AdUnits
830
  */
831
  public function listAccountsAdunits($accountId, $adClientId, $optParams = array())
832
  {
833
  $params = array('accountId' => $accountId, 'adClientId' => $adClientId);
834
  $params = array_merge($params, $optParams);
835
- return $this->call('list', array($params), "Google_Service_AdSenseHost_AdUnits");
836
  }
837
  /**
838
  * Update the supplied ad unit in the specified publisher AdSense account. This
@@ -844,15 +844,15 @@ class Google_Service_AdSenseHost_AccountsAdunits_Resource extends Google_Service
844
  * Ad client which contains the ad unit.
845
  * @param string $adUnitId
846
  * Ad unit to get.
847
- * @param Google_AdUnit $postBody
848
  * @param array $optParams Optional parameters.
849
- * @return Google_Service_AdSenseHost_AdUnit
850
  */
851
- public function patch($accountId, $adClientId, $adUnitId, Google_Service_AdSenseHost_AdUnit $postBody, $optParams = array())
852
  {
853
  $params = array('accountId' => $accountId, 'adClientId' => $adClientId, 'adUnitId' => $adUnitId, 'postBody' => $postBody);
854
  $params = array_merge($params, $optParams);
855
- return $this->call('patch', array($params), "Google_Service_AdSenseHost_AdUnit");
856
  }
857
  /**
858
  * Update the supplied ad unit in the specified publisher AdSense account.
@@ -862,26 +862,26 @@ class Google_Service_AdSenseHost_AccountsAdunits_Resource extends Google_Service
862
  * Account which contains the ad client.
863
  * @param string $adClientId
864
  * Ad client which contains the ad unit.
865
- * @param Google_AdUnit $postBody
866
  * @param array $optParams Optional parameters.
867
- * @return Google_Service_AdSenseHost_AdUnit
868
  */
869
- public function update($accountId, $adClientId, Google_Service_AdSenseHost_AdUnit $postBody, $optParams = array())
870
  {
871
  $params = array('accountId' => $accountId, 'adClientId' => $adClientId, 'postBody' => $postBody);
872
  $params = array_merge($params, $optParams);
873
- return $this->call('update', array($params), "Google_Service_AdSenseHost_AdUnit");
874
  }
875
  }
876
  /**
877
  * The "reports" collection of methods.
878
  * Typical usage is:
879
  * <code>
880
- * $adsensehostService = new Google_Service_AdSenseHost(...);
881
  * $reports = $adsensehostService->reports;
882
  * </code>
883
  */
884
- class Google_Service_AdSenseHost_AccountsReports_Resource extends Google_Service_Resource
885
  {
886
 
887
  /**
@@ -914,13 +914,13 @@ class Google_Service_AdSenseHost_AccountsReports_Resource extends Google_Service
914
  * Index of the first row of report data to return.
915
  * @opt_param string dimension
916
  * Dimensions to base the report on.
917
- * @return Google_Service_AdSenseHost_Report
918
  */
919
  public function generate($accountId, $startDate, $endDate, $optParams = array())
920
  {
921
  $params = array('accountId' => $accountId, 'startDate' => $startDate, 'endDate' => $endDate);
922
  $params = array_merge($params, $optParams);
923
- return $this->call('generate', array($params), "Google_Service_AdSenseHost_Report");
924
  }
925
  }
926
 
@@ -928,11 +928,11 @@ class Google_Service_AdSenseHost_AccountsReports_Resource extends Google_Service
928
  * The "adclients" collection of methods.
929
  * Typical usage is:
930
  * <code>
931
- * $adsensehostService = new Google_Service_AdSenseHost(...);
932
  * $adclients = $adsensehostService->adclients;
933
  * </code>
934
  */
935
- class Google_Service_AdSenseHost_Adclients_Resource extends Google_Service_Resource
936
  {
937
 
938
  /**
@@ -942,13 +942,13 @@ class Google_Service_AdSenseHost_Adclients_Resource extends Google_Service_Resou
942
  * @param string $adClientId
943
  * Ad client to get.
944
  * @param array $optParams Optional parameters.
945
- * @return Google_Service_AdSenseHost_AdClient
946
  */
947
  public function get($adClientId, $optParams = array())
948
  {
949
  $params = array('adClientId' => $adClientId);
950
  $params = array_merge($params, $optParams);
951
- return $this->call('get', array($params), "Google_Service_AdSenseHost_AdClient");
952
  }
953
  /**
954
  * List all host ad clients in this AdSense account. (adclients.listAdclients)
@@ -960,13 +960,13 @@ class Google_Service_AdSenseHost_Adclients_Resource extends Google_Service_Resou
960
  * parameter to the value of "nextPageToken" from the previous response.
961
  * @opt_param string maxResults
962
  * The maximum number of ad clients to include in the response, used for paging.
963
- * @return Google_Service_AdSenseHost_AdClients
964
  */
965
  public function listAdclients($optParams = array())
966
  {
967
  $params = array();
968
  $params = array_merge($params, $optParams);
969
- return $this->call('list', array($params), "Google_Service_AdSenseHost_AdClients");
970
  }
971
  }
972
 
@@ -974,11 +974,11 @@ class Google_Service_AdSenseHost_Adclients_Resource extends Google_Service_Resou
974
  * The "associationsessions" collection of methods.
975
  * Typical usage is:
976
  * <code>
977
- * $adsensehostService = new Google_Service_AdSenseHost(...);
978
  * $associationsessions = $adsensehostService->associationsessions;
979
  * </code>
980
  */
981
- class Google_Service_AdSenseHost_Associationsessions_Resource extends Google_Service_Resource
982
  {
983
 
984
  /**
@@ -995,13 +995,13 @@ class Google_Service_AdSenseHost_Associationsessions_Resource extends Google_Ser
995
  * The locale of the user's hosted website.
996
  * @opt_param string userLocale
997
  * The preferred locale of the user.
998
- * @return Google_Service_AdSenseHost_AssociationSession
999
  */
1000
  public function start($productCode, $websiteUrl, $optParams = array())
1001
  {
1002
  $params = array('productCode' => $productCode, 'websiteUrl' => $websiteUrl);
1003
  $params = array_merge($params, $optParams);
1004
- return $this->call('start', array($params), "Google_Service_AdSenseHost_AssociationSession");
1005
  }
1006
  /**
1007
  * Verify an association session after the association callback returns from
@@ -1010,13 +1010,13 @@ class Google_Service_AdSenseHost_Associationsessions_Resource extends Google_Ser
1010
  * @param string $token
1011
  * The token returned to the association callback URL.
1012
  * @param array $optParams Optional parameters.
1013
- * @return Google_Service_AdSenseHost_AssociationSession
1014
  */
1015
  public function verify($token, $optParams = array())
1016
  {
1017
  $params = array('token' => $token);
1018
  $params = array_merge($params, $optParams);
1019
- return $this->call('verify', array($params), "Google_Service_AdSenseHost_AssociationSession");
1020
  }
1021
  }
1022
 
@@ -1024,11 +1024,11 @@ class Google_Service_AdSenseHost_Associationsessions_Resource extends Google_Ser
1024
  * The "customchannels" collection of methods.
1025
  * Typical usage is:
1026
  * <code>
1027
- * $adsensehostService = new Google_Service_AdSenseHost(...);
1028
  * $customchannels = $adsensehostService->customchannels;
1029
  * </code>
1030
  */
1031
- class Google_Service_AdSenseHost_Customchannels_Resource extends Google_Service_Resource
1032
  {
1033
 
1034
  /**
@@ -1040,13 +1040,13 @@ class Google_Service_AdSenseHost_Customchannels_Resource extends Google_Service_
1040
  * @param string $customChannelId
1041
  * Custom channel to delete.
1042
  * @param array $optParams Optional parameters.
1043
- * @return Google_Service_AdSenseHost_CustomChannel
1044
  */
1045
  public function delete($adClientId, $customChannelId, $optParams = array())
1046
  {
1047
  $params = array('adClientId' => $adClientId, 'customChannelId' => $customChannelId);
1048
  $params = array_merge($params, $optParams);
1049
- return $this->call('delete', array($params), "Google_Service_AdSenseHost_CustomChannel");
1050
  }
1051
  /**
1052
  * Get a specific custom channel from the host AdSense account.
@@ -1057,28 +1057,28 @@ class Google_Service_AdSenseHost_Customchannels_Resource extends Google_Service_
1057
  * @param string $customChannelId
1058
  * Custom channel to get.
1059
  * @param array $optParams Optional parameters.
1060
- * @return Google_Service_AdSenseHost_CustomChannel
1061
  */
1062
  public function get($adClientId, $customChannelId, $optParams = array())
1063
  {
1064
  $params = array('adClientId' => $adClientId, 'customChannelId' => $customChannelId);
1065
  $params = array_merge($params, $optParams);
1066
- return $this->call('get', array($params), "Google_Service_AdSenseHost_CustomChannel");
1067
  }
1068
  /**
1069
  * Add a new custom channel to the host AdSense account. (customchannels.insert)
1070
  *
1071
  * @param string $adClientId
1072
  * Ad client to which the new custom channel will be added.
1073
- * @param Google_CustomChannel $postBody
1074
  * @param array $optParams Optional parameters.
1075
- * @return Google_Service_AdSenseHost_CustomChannel
1076
  */
1077
- public function insert($adClientId, Google_Service_AdSenseHost_CustomChannel $postBody, $optParams = array())
1078
  {
1079
  $params = array('adClientId' => $adClientId, 'postBody' => $postBody);
1080
  $params = array_merge($params, $optParams);
1081
- return $this->call('insert', array($params), "Google_Service_AdSenseHost_CustomChannel");
1082
  }
1083
  /**
1084
  * List all host custom channels in this AdSense account.
@@ -1093,13 +1093,13 @@ class Google_Service_AdSenseHost_Customchannels_Resource extends Google_Service_
1093
  * parameter to the value of "nextPageToken" from the previous response.
1094
  * @opt_param string maxResults
1095
  * The maximum number of custom channels to include in the response, used for paging.
1096
- * @return Google_Service_AdSenseHost_CustomChannels
1097
  */
1098
  public function listCustomchannels($adClientId, $optParams = array())
1099
  {
1100
  $params = array('adClientId' => $adClientId);
1101
  $params = array_merge($params, $optParams);
1102
- return $this->call('list', array($params), "Google_Service_AdSenseHost_CustomChannels");
1103
  }
1104
  /**
1105
  * Update a custom channel in the host AdSense account. This method supports
@@ -1109,30 +1109,30 @@ class Google_Service_AdSenseHost_Customchannels_Resource extends Google_Service_
1109
  * Ad client in which the custom channel will be updated.
1110
  * @param string $customChannelId
1111
  * Custom channel to get.
1112
- * @param Google_CustomChannel $postBody
1113
  * @param array $optParams Optional parameters.
1114
- * @return Google_Service_AdSenseHost_CustomChannel
1115
  */
1116
- public function patch($adClientId, $customChannelId, Google_Service_AdSenseHost_CustomChannel $postBody, $optParams = array())
1117
  {
1118
  $params = array('adClientId' => $adClientId, 'customChannelId' => $customChannelId, 'postBody' => $postBody);
1119
  $params = array_merge($params, $optParams);
1120
- return $this->call('patch', array($params), "Google_Service_AdSenseHost_CustomChannel");
1121
  }
1122
  /**
1123
  * Update a custom channel in the host AdSense account. (customchannels.update)
1124
  *
1125
  * @param string $adClientId
1126
  * Ad client in which the custom channel will be updated.
1127
- * @param Google_CustomChannel $postBody
1128
  * @param array $optParams Optional parameters.
1129
- * @return Google_Service_AdSenseHost_CustomChannel
1130
  */
1131
- public function update($adClientId, Google_Service_AdSenseHost_CustomChannel $postBody, $optParams = array())
1132
  {
1133
  $params = array('adClientId' => $adClientId, 'postBody' => $postBody);
1134
  $params = array_merge($params, $optParams);
1135
- return $this->call('update', array($params), "Google_Service_AdSenseHost_CustomChannel");
1136
  }
1137
  }
1138
 
@@ -1140,11 +1140,11 @@ class Google_Service_AdSenseHost_Customchannels_Resource extends Google_Service_
1140
  * The "reports" collection of methods.
1141
  * Typical usage is:
1142
  * <code>
1143
- * $adsensehostService = new Google_Service_AdSenseHost(...);
1144
  * $reports = $adsensehostService->reports;
1145
  * </code>
1146
  */
1147
- class Google_Service_AdSenseHost_Reports_Resource extends Google_Service_Resource
1148
  {
1149
 
1150
  /**
@@ -1175,13 +1175,13 @@ class Google_Service_AdSenseHost_Reports_Resource extends Google_Service_Resourc
1175
  * Index of the first row of report data to return.
1176
  * @opt_param string dimension
1177
  * Dimensions to base the report on.
1178
- * @return Google_Service_AdSenseHost_Report
1179
  */
1180
  public function generate($startDate, $endDate, $optParams = array())
1181
  {
1182
  $params = array('startDate' => $startDate, 'endDate' => $endDate);
1183
  $params = array_merge($params, $optParams);
1184
- return $this->call('generate', array($params), "Google_Service_AdSenseHost_Report");
1185
  }
1186
  }
1187
 
@@ -1189,11 +1189,11 @@ class Google_Service_AdSenseHost_Reports_Resource extends Google_Service_Resourc
1189
  * The "urlchannels" collection of methods.
1190
  * Typical usage is:
1191
  * <code>
1192
- * $adsensehostService = new Google_Service_AdSenseHost(...);
1193
  * $urlchannels = $adsensehostService->urlchannels;
1194
  * </code>
1195
  */
1196
- class Google_Service_AdSenseHost_Urlchannels_Resource extends Google_Service_Resource
1197
  {
1198
 
1199
  /**
@@ -1204,28 +1204,28 @@ class Google_Service_AdSenseHost_Urlchannels_Resource extends Google_Service_Res
1204
  * @param string $urlChannelId
1205
  * URL channel to delete.
1206
  * @param array $optParams Optional parameters.
1207
- * @return Google_Service_AdSenseHost_UrlChannel
1208
  */
1209
  public function delete($adClientId, $urlChannelId, $optParams = array())
1210
  {
1211
  $params = array('adClientId' => $adClientId, 'urlChannelId' => $urlChannelId);
1212
  $params = array_merge($params, $optParams);
1213
- return $this->call('delete', array($params), "Google_Service_AdSenseHost_UrlChannel");
1214
  }
1215
  /**
1216
  * Add a new URL channel to the host AdSense account. (urlchannels.insert)
1217
  *
1218
  * @param string $adClientId
1219
  * Ad client to which the new URL channel will be added.
1220
- * @param Google_UrlChannel $postBody
1221
  * @param array $optParams Optional parameters.
1222
- * @return Google_Service_AdSenseHost_UrlChannel
1223
  */
1224
- public function insert($adClientId, Google_Service_AdSenseHost_UrlChannel $postBody, $optParams = array())
1225
  {
1226
  $params = array('adClientId' => $adClientId, 'postBody' => $postBody);
1227
  $params = array_merge($params, $optParams);
1228
- return $this->call('insert', array($params), "Google_Service_AdSenseHost_UrlChannel");
1229
  }
1230
  /**
1231
  * List all host URL channels in the host AdSense account.
@@ -1240,20 +1240,20 @@ class Google_Service_AdSenseHost_Urlchannels_Resource extends Google_Service_Res
1240
  * parameter to the value of "nextPageToken" from the previous response.
1241
  * @opt_param string maxResults
1242
  * The maximum number of URL channels to include in the response, used for paging.
1243
- * @return Google_Service_AdSenseHost_UrlChannels
1244
  */
1245
  public function listUrlchannels($adClientId, $optParams = array())
1246
  {
1247
  $params = array('adClientId' => $adClientId);
1248
  $params = array_merge($params, $optParams);
1249
- return $this->call('list', array($params), "Google_Service_AdSenseHost_UrlChannels");
1250
  }
1251
  }
1252
 
1253
 
1254
 
1255
 
1256
- class Google_Service_AdSenseHost_Account extends Google_Model
1257
  {
1258
  public $id;
1259
  public $kind;
@@ -1301,10 +1301,10 @@ class Google_Service_AdSenseHost_Account extends Google_Model
1301
  }
1302
  }
1303
 
1304
- class Google_Service_AdSenseHost_Accounts extends Google_Collection
1305
  {
1306
  public $etag;
1307
- protected $itemsType = 'Google_Service_AdSenseHost_Account';
1308
  protected $itemsDataType = 'array';
1309
  public $kind;
1310
 
@@ -1339,7 +1339,7 @@ class Google_Service_AdSenseHost_Accounts extends Google_Collection
1339
  }
1340
  }
1341
 
1342
- class Google_Service_AdSenseHost_AdClient extends Google_Model
1343
  {
1344
  public $arcOptIn;
1345
  public $id;
@@ -1398,10 +1398,10 @@ class Google_Service_AdSenseHost_AdClient extends Google_Model
1398
  }
1399
  }
1400
 
1401
- class Google_Service_AdSenseHost_AdClients extends Google_Collection
1402
  {
1403
  public $etag;
1404
- protected $itemsType = 'Google_Service_AdSenseHost_AdClient';
1405
  protected $itemsDataType = 'array';
1406
  public $kind;
1407
  public $nextPageToken;
@@ -1447,7 +1447,7 @@ class Google_Service_AdSenseHost_AdClients extends Google_Collection
1447
  }
1448
  }
1449
 
1450
- class Google_Service_AdSenseHost_AdCode extends Google_Model
1451
  {
1452
  public $adCode;
1453
  public $kind;
@@ -1473,16 +1473,16 @@ class Google_Service_AdSenseHost_AdCode extends Google_Model
1473
  }
1474
  }
1475
 
1476
- class Google_Service_AdSenseHost_AdStyle extends Google_Model
1477
  {
1478
- protected $colorsType = 'Google_Service_AdSenseHost_AdStyleColors';
1479
  protected $colorsDataType = '';
1480
  public $corners;
1481
- protected $fontType = 'Google_Service_AdSenseHost_AdStyleFont';
1482
  protected $fontDataType = '';
1483
  public $kind;
1484
 
1485
- public function setColors(Google_Service_AdSenseHost_AdStyleColors $colors)
1486
  {
1487
  $this->colors = $colors;
1488
  }
@@ -1502,7 +1502,7 @@ class Google_Service_AdSenseHost_AdStyle extends Google_Model
1502
  return $this->corners;
1503
  }
1504
 
1505
- public function setFont(Google_Service_AdSenseHost_AdStyleFont $font)
1506
  {
1507
  $this->font = $font;
1508
  }
@@ -1523,7 +1523,7 @@ class Google_Service_AdSenseHost_AdStyle extends Google_Model
1523
  }
1524
  }
1525
 
1526
- class Google_Service_AdSenseHost_AdStyleColors extends Google_Model
1527
  {
1528
  public $background;
1529
  public $border;
@@ -1582,7 +1582,7 @@ class Google_Service_AdSenseHost_AdStyleColors extends Google_Model
1582
  }
1583
  }
1584
 
1585
- class Google_Service_AdSenseHost_AdStyleFont extends Google_Model
1586
  {
1587
  public $family;
1588
  public $size;
@@ -1608,16 +1608,16 @@ class Google_Service_AdSenseHost_AdStyleFont extends Google_Model
1608
  }
1609
  }
1610
 
1611
- class Google_Service_AdSenseHost_AdUnit extends Google_Model
1612
  {
1613
  public $code;
1614
- protected $contentAdsSettingsType = 'Google_Service_AdSenseHost_AdUnitContentAdsSettings';
1615
  protected $contentAdsSettingsDataType = '';
1616
- protected $customStyleType = 'Google_Service_AdSenseHost_AdStyle';
1617
  protected $customStyleDataType = '';
1618
  public $id;
1619
  public $kind;
1620
- protected $mobileContentAdsSettingsType = 'Google_Service_AdSenseHost_AdUnitMobileContentAdsSettings';
1621
  protected $mobileContentAdsSettingsDataType = '';
1622
  public $name;
1623
  public $status;
@@ -1632,7 +1632,7 @@ class Google_Service_AdSenseHost_AdUnit extends Google_Model
1632
  return $this->code;
1633
  }
1634
 
1635
- public function setContentAdsSettings(Google_Service_AdSenseHost_AdUnitContentAdsSettings $contentAdsSettings)
1636
  {
1637
  $this->contentAdsSettings = $contentAdsSettings;
1638
  }
@@ -1642,7 +1642,7 @@ class Google_Service_AdSenseHost_AdUnit extends Google_Model
1642
  return $this->contentAdsSettings;
1643
  }
1644
 
1645
- public function setCustomStyle(Google_Service_AdSenseHost_AdStyle $customStyle)
1646
  {
1647
  $this->customStyle = $customStyle;
1648
  }
@@ -1672,7 +1672,7 @@ class Google_Service_AdSenseHost_AdUnit extends Google_Model
1672
  return $this->kind;
1673
  }
1674
 
1675
- public function setMobileContentAdsSettings(Google_Service_AdSenseHost_AdUnitMobileContentAdsSettings $mobileContentAdsSettings)
1676
  {
1677
  $this->mobileContentAdsSettings = $mobileContentAdsSettings;
1678
  }
@@ -1703,14 +1703,14 @@ class Google_Service_AdSenseHost_AdUnit extends Google_Model
1703
  }
1704
  }
1705
 
1706
- class Google_Service_AdSenseHost_AdUnitContentAdsSettings extends Google_Model
1707
  {
1708
- protected $backupOptionType = 'Google_Service_AdSenseHost_AdUnitContentAdsSettingsBackupOption';
1709
  protected $backupOptionDataType = '';
1710
  public $size;
1711
  public $type;
1712
 
1713
- public function setBackupOption(Google_Service_AdSenseHost_AdUnitContentAdsSettingsBackupOption $backupOption)
1714
  {
1715
  $this->backupOption = $backupOption;
1716
  }
@@ -1741,7 +1741,7 @@ class Google_Service_AdSenseHost_AdUnitContentAdsSettings extends Google_Model
1741
  }
1742
  }
1743
 
1744
- class Google_Service_AdSenseHost_AdUnitContentAdsSettingsBackupOption extends Google_Model
1745
  {
1746
  public $color;
1747
  public $type;
@@ -1778,7 +1778,7 @@ class Google_Service_AdSenseHost_AdUnitContentAdsSettingsBackupOption extends Go
1778
  }
1779
  }
1780
 
1781
- class Google_Service_AdSenseHost_AdUnitMobileContentAdsSettings extends Google_Model
1782
  {
1783
  public $markupLanguage;
1784
  public $scriptingLanguage;
@@ -1826,10 +1826,10 @@ class Google_Service_AdSenseHost_AdUnitMobileContentAdsSettings extends Google_M
1826
  }
1827
  }
1828
 
1829
- class Google_Service_AdSenseHost_AdUnits extends Google_Collection
1830
  {
1831
  public $etag;
1832
- protected $itemsType = 'Google_Service_AdSenseHost_AdUnit';
1833
  protected $itemsDataType = 'array';
1834
  public $kind;
1835
  public $nextPageToken;
@@ -1875,7 +1875,7 @@ class Google_Service_AdSenseHost_AdUnits extends Google_Collection
1875
  }
1876
  }
1877
 
1878
- class Google_Service_AdSenseHost_AssociationSession extends Google_Collection
1879
  {
1880
  public $accountId;
1881
  public $id;
@@ -1978,7 +1978,7 @@ class Google_Service_AdSenseHost_AssociationSession extends Google_Collection
1978
  }
1979
  }
1980
 
1981
- class Google_Service_AdSenseHost_CustomChannel extends Google_Model
1982
  {
1983
  public $code;
1984
  public $id;
@@ -2026,10 +2026,10 @@ class Google_Service_AdSenseHost_CustomChannel extends Google_Model
2026
  }
2027
  }
2028
 
2029
- class Google_Service_AdSenseHost_CustomChannels extends Google_Collection
2030
  {
2031
  public $etag;
2032
- protected $itemsType = 'Google_Service_AdSenseHost_CustomChannel';
2033
  protected $itemsDataType = 'array';
2034
  public $kind;
2035
  public $nextPageToken;
@@ -2075,10 +2075,10 @@ class Google_Service_AdSenseHost_CustomChannels extends Google_Collection
2075
  }
2076
  }
2077
 
2078
- class Google_Service_AdSenseHost_Report extends Google_Collection
2079
  {
2080
  public $averages;
2081
- protected $headersType = 'Google_Service_AdSenseHost_ReportHeaders';
2082
  protected $headersDataType = 'array';
2083
  public $kind;
2084
  public $rows;
@@ -2157,7 +2157,7 @@ class Google_Service_AdSenseHost_Report extends Google_Collection
2157
  }
2158
  }
2159
 
2160
- class Google_Service_AdSenseHost_ReportHeaders extends Google_Model
2161
  {
2162
  public $currency;
2163
  public $name;
@@ -2194,7 +2194,7 @@ class Google_Service_AdSenseHost_ReportHeaders extends Google_Model
2194
  }
2195
  }
2196
 
2197
- class Google_Service_AdSenseHost_UrlChannel extends Google_Model
2198
  {
2199
  public $id;
2200
  public $kind;
@@ -2231,10 +2231,10 @@ class Google_Service_AdSenseHost_UrlChannel extends Google_Model
2231
  }
2232
  }
2233
 
2234
- class Google_Service_AdSenseHost_UrlChannels extends Google_Collection
2235
  {
2236
  public $etag;
2237
- protected $itemsType = 'Google_Service_AdSenseHost_UrlChannel';
2238
  protected $itemsDataType = 'array';
2239
  public $kind;
2240
  public $nextPageToken;
29
  *
30
  * @author Google, Inc.
31
  */
32
+ class GoogleGAL_Service_AdSenseHost extends GoogleGAL_Service
33
  {
34
  /** View and manage your AdSense host data and associated accounts. */
35
  const ADSENSEHOST = "https://www.googleapis.com/auth/adsensehost";
48
  /**
49
  * Constructs the internal representation of the AdSenseHost service.
50
  *
51
+ * @param GoogleGAL_Client $client
52
  */
53
+ public function __construct(GoogleGAL_Client $client)
54
  {
55
  parent::__construct($client);
56
  $this->servicePath = 'adsensehost/v4.1/';
57
  $this->version = 'v4.1';
58
  $this->serviceName = 'adsensehost';
59
 
60
+ $this->accounts = new GoogleGAL_Service_AdSenseHost_Accounts_Resource(
61
  $this,
62
  $this->serviceName,
63
  'accounts',
88
  )
89
  )
90
  );
91
+ $this->accounts_adclients = new GoogleGAL_Service_AdSenseHost_AccountsAdclients_Resource(
92
  $this,
93
  $this->serviceName,
94
  'adclients',
131
  )
132
  )
133
  );
134
+ $this->accounts_adunits = new GoogleGAL_Service_AdSenseHost_AccountsAdunits_Resource(
135
  $this,
136
  $this->serviceName,
137
  'adunits',
283
  )
284
  )
285
  );
286
+ $this->accounts_reports = new GoogleGAL_Service_AdSenseHost_AccountsReports_Resource(
287
  $this,
288
  $this->serviceName,
289
  'reports',
345
  )
346
  )
347
  );
348
+ $this->adclients = new GoogleGAL_Service_AdSenseHost_Adclients_Resource(
349
  $this,
350
  $this->serviceName,
351
  'adclients',
378
  )
379
  )
380
  );
381
+ $this->associationsessions = new GoogleGAL_Service_AdSenseHost_Associationsessions_Resource(
382
  $this,
383
  $this->serviceName,
384
  'associationsessions',
422
  )
423
  )
424
  );
425
+ $this->customchannels = new GoogleGAL_Service_AdSenseHost_Customchannels_Resource(
426
  $this,
427
  $this->serviceName,
428
  'customchannels',
515
  )
516
  )
517
  );
518
+ $this->reports = new GoogleGAL_Service_AdSenseHost_Reports_Resource(
519
  $this,
520
  $this->serviceName,
521
  'reports',
572
  )
573
  )
574
  );
575
+ $this->urlchannels = new GoogleGAL_Service_AdSenseHost_Urlchannels_Resource(
576
  $this,
577
  $this->serviceName,
578
  'urlchannels',
633
  * The "accounts" collection of methods.
634
  * Typical usage is:
635
  * <code>
636
+ * $adsensehostService = new GoogleGAL_Service_AdSenseHost(...);
637
  * $accounts = $adsensehostService->accounts;
638
  * </code>
639
  */
640
+ class GoogleGAL_Service_AdSenseHost_Accounts_Resource extends GoogleGAL_Service_Resource
641
  {
642
 
643
  /**
646
  * @param string $accountId
647
  * Account to get information about.
648
  * @param array $optParams Optional parameters.
649
+ * @return GoogleGAL_Service_AdSenseHost_Account
650
  */
651
  public function get($accountId, $optParams = array())
652
  {
653
  $params = array('accountId' => $accountId);
654
  $params = array_merge($params, $optParams);
655
+ return $this->call('get', array($params), "GoogleGAL_Service_AdSenseHost_Account");
656
  }
657
  /**
658
  * List hosted accounts associated with this AdSense account by ad client id.
661
  * @param string $filterAdClientId
662
  * Ad clients to list accounts for.
663
  * @param array $optParams Optional parameters.
664
+ * @return GoogleGAL_Service_AdSenseHost_Accounts
665
  */
666
  public function listAccounts($filterAdClientId, $optParams = array())
667
  {
668
  $params = array('filterAdClientId' => $filterAdClientId);
669
  $params = array_merge($params, $optParams);
670
+ return $this->call('list', array($params), "GoogleGAL_Service_AdSenseHost_Accounts");
671
  }
672
  }
673
 
675
  * The "adclients" collection of methods.
676
  * Typical usage is:
677
  * <code>
678
+ * $adsensehostService = new GoogleGAL_Service_AdSenseHost(...);
679
  * $adclients = $adsensehostService->adclients;
680
  * </code>
681
  */
682
+ class GoogleGAL_Service_AdSenseHost_AccountsAdclients_Resource extends GoogleGAL_Service_Resource
683
  {
684
 
685
  /**
691
  * @param string $adClientId
692
  * Ad client to get.
693
  * @param array $optParams Optional parameters.
694
+ * @return GoogleGAL_Service_AdSenseHost_AdClient
695
  */
696
  public function get($accountId, $adClientId, $optParams = array())
697
  {
698
  $params = array('accountId' => $accountId, 'adClientId' => $adClientId);
699
  $params = array_merge($params, $optParams);
700
+ return $this->call('get', array($params), "GoogleGAL_Service_AdSenseHost_AdClient");
701
  }
702
  /**
703
  * List all hosted ad clients in the specified hosted account.
712
  * parameter to the value of "nextPageToken" from the previous response.
713
  * @opt_param string maxResults
714
  * The maximum number of ad clients to include in the response, used for paging.
715
+ * @return GoogleGAL_Service_AdSenseHost_AdClients
716
  */
717
  public function listAccountsAdclients($accountId, $optParams = array())
718
  {
719
  $params = array('accountId' => $accountId);
720
  $params = array_merge($params, $optParams);
721
+ return $this->call('list', array($params), "GoogleGAL_Service_AdSenseHost_AdClients");
722
  }
723
  }
724
  /**
725
  * The "adunits" collection of methods.
726
  * Typical usage is:
727
  * <code>
728
+ * $adsensehostService = new GoogleGAL_Service_AdSenseHost(...);
729
  * $adunits = $adsensehostService->adunits;
730
  * </code>
731
  */
732
+ class GoogleGAL_Service_AdSenseHost_AccountsAdunits_Resource extends GoogleGAL_Service_Resource
733
  {
734
 
735
  /**
743
  * @param string $adUnitId
744
  * Ad unit to delete.
745
  * @param array $optParams Optional parameters.
746
+ * @return GoogleGAL_Service_AdSenseHost_AdUnit
747
  */
748
  public function delete($accountId, $adClientId, $adUnitId, $optParams = array())
749
  {
750
  $params = array('accountId' => $accountId, 'adClientId' => $adClientId, 'adUnitId' => $adUnitId);
751
  $params = array_merge($params, $optParams);
752
+ return $this->call('delete', array($params), "GoogleGAL_Service_AdSenseHost_AdUnit");
753
  }
754
  /**
755
  * Get the specified host ad unit in this AdSense account. (adunits.get)
761
  * @param string $adUnitId
762
  * Ad unit to get.
763
  * @param array $optParams Optional parameters.
764
+ * @return GoogleGAL_Service_AdSenseHost_AdUnit
765
  */
766
  public function get($accountId, $adClientId, $adUnitId, $optParams = array())
767
  {
768
  $params = array('accountId' => $accountId, 'adClientId' => $adClientId, 'adUnitId' => $adUnitId);
769
  $params = array_merge($params, $optParams);
770
+ return $this->call('get', array($params), "GoogleGAL_Service_AdSenseHost_AdUnit");
771
  }
772
  /**
773
  * Get ad code for the specified ad unit, attaching the specified host custom
783
  *
784
  * @opt_param string hostCustomChannelId
785
  * Host custom channel to attach to the ad code.
786
+ * @return GoogleGAL_Service_AdSenseHost_AdCode
787
  */
788
  public function getAdCode($accountId, $adClientId, $adUnitId, $optParams = array())
789
  {
790
  $params = array('accountId' => $accountId, 'adClientId' => $adClientId, 'adUnitId' => $adUnitId);
791
  $params = array_merge($params, $optParams);
792
+ return $this->call('getAdCode', array($params), "GoogleGAL_Service_AdSenseHost_AdCode");
793
  }
794
  /**
795
  * Insert the supplied ad unit into the specified publisher AdSense account.
799
  * Account which will contain the ad unit.
800
  * @param string $adClientId
801
  * Ad client into which to insert the ad unit.
802
+ * @param GoogleGAL_AdUnit $postBody
803
  * @param array $optParams Optional parameters.
804
+ * @return GoogleGAL_Service_AdSenseHost_AdUnit
805
  */
806
+ public function insert($accountId, $adClientId, GoogleGAL_Service_AdSenseHost_AdUnit $postBody, $optParams = array())
807
  {
808
  $params = array('accountId' => $accountId, 'adClientId' => $adClientId, 'postBody' => $postBody);
809
  $params = array_merge($params, $optParams);
810
+ return $this->call('insert', array($params), "GoogleGAL_Service_AdSenseHost_AdUnit");
811
  }
812
  /**
813
  * List all ad units in the specified publisher's AdSense account.
826
  * parameter to the value of "nextPageToken" from the previous response.
827
  * @opt_param string maxResults
828
  * The maximum number of ad units to include in the response, used for paging.
829
+ * @return GoogleGAL_Service_AdSenseHost_AdUnits
830
  */
831
  public function listAccountsAdunits($accountId, $adClientId, $optParams = array())
832
  {
833
  $params = array('accountId' => $accountId, 'adClientId' => $adClientId);
834
  $params = array_merge($params, $optParams);
835
+ return $this->call('list', array($params), "GoogleGAL_Service_AdSenseHost_AdUnits");
836
  }
837
  /**
838
  * Update the supplied ad unit in the specified publisher AdSense account. This
844
  * Ad client which contains the ad unit.
845
  * @param string $adUnitId
846
  * Ad unit to get.
847
+ * @param GoogleGAL_AdUnit $postBody
848
  * @param array $optParams Optional parameters.
849
+ * @return GoogleGAL_Service_AdSenseHost_AdUnit
850
  */
851
+ public function patch($accountId, $adClientId, $adUnitId, GoogleGAL_Service_AdSenseHost_AdUnit $postBody, $optParams = array())
852
  {
853
  $params = array('accountId' => $accountId, 'adClientId' => $adClientId, 'adUnitId' => $adUnitId, 'postBody' => $postBody);
854
  $params = array_merge($params, $optParams);
855
+ return $this->call('patch', array($params), "GoogleGAL_Service_AdSenseHost_AdUnit");
856
  }
857
  /**
858
  * Update the supplied ad unit in the specified publisher AdSense account.
862
  * Account which contains the ad client.
863
  * @param string $adClientId
864
  * Ad client which contains the ad unit.
865
+ * @param GoogleGAL_AdUnit $postBody
866
  * @param array $optParams Optional parameters.
867
+ * @return GoogleGAL_Service_AdSenseHost_AdUnit
868
  */
869
+ public function update($accountId, $adClientId, GoogleGAL_Service_AdSenseHost_AdUnit $postBody, $optParams = array())
870
  {
871
  $params = array('accountId' => $accountId, 'adClientId' => $adClientId, 'postBody' => $postBody);
872
  $params = array_merge($params, $optParams);
873
+ return $this->call('update', array($params), "GoogleGAL_Service_AdSenseHost_AdUnit");
874
  }
875
  }
876
  /**
877
  * The "reports" collection of methods.
878
  * Typical usage is:
879
  * <code>
880
+ * $adsensehostService = new GoogleGAL_Service_AdSenseHost(...);
881
  * $reports = $adsensehostService->reports;
882
  * </code>
883
  */
884
+ class GoogleGAL_Service_AdSenseHost_AccountsReports_Resource extends GoogleGAL_Service_Resource
885
  {
886
 
887
  /**
914
  * Index of the first row of report data to return.
915
  * @opt_param string dimension
916
  * Dimensions to base the report on.
917
+ * @return GoogleGAL_Service_AdSenseHost_Report
918
  */
919
  public function generate($accountId, $startDate, $endDate, $optParams = array())
920
  {
921
  $params = array('accountId' => $accountId, 'startDate' => $startDate, 'endDate' => $endDate);
922
  $params = array_merge($params, $optParams);
923
+ return $this->call('generate', array($params), "GoogleGAL_Service_AdSenseHost_Report");
924
  }
925
  }
926
 
928
  * The "adclients" collection of methods.
929
  * Typical usage is:
930
  * <code>
931
+ * $adsensehostService = new GoogleGAL_Service_AdSenseHost(...);
932
  * $adclients = $adsensehostService->adclients;
933
  * </code>
934
  */
935
+ class GoogleGAL_Service_AdSenseHost_Adclients_Resource extends GoogleGAL_Service_Resource
936
  {
937
 
938
  /**
942
  * @param string $adClientId
943
  * Ad client to get.
944
  * @param array $optParams Optional parameters.
945
+ * @return GoogleGAL_Service_AdSenseHost_AdClient
946
  */
947
  public function get($adClientId, $optParams = array())
948
  {
949
  $params = array('adClientId' => $adClientId);
950
  $params = array_merge($params, $optParams);
951
+ return $this->call('get', array($params), "GoogleGAL_Service_AdSenseHost_AdClient");
952
  }
953
  /**
954
  * List all host ad clients in this AdSense account. (adclients.listAdclients)
960
  * parameter to the value of "nextPageToken" from the previous response.
961
  * @opt_param string maxResults
962
  * The maximum number of ad clients to include in the response, used for paging.
963
+ * @return GoogleGAL_Service_AdSenseHost_AdClients
964
  */
965
  public function listAdclients($optParams = array())
966
  {
967
  $params = array();
968
  $params = array_merge($params, $optParams);
969
+ return $this->call('list', array($params), "GoogleGAL_Service_AdSenseHost_AdClients");
970
  }
971
  }
972
 
974
  * The "associationsessions" collection of methods.
975
  * Typical usage is:
976
  * <code>
977
+ * $adsensehostService = new GoogleGAL_Service_AdSenseHost(...);
978
  * $associationsessions = $adsensehostService->associationsessions;
979
  * </code>
980
  */
981
+ class GoogleGAL_Service_AdSenseHost_Associationsessions_Resource extends GoogleGAL_Service_Resource
982
  {
983
 
984
  /**
995
  * The locale of the user's hosted website.
996
  * @opt_param string userLocale
997
  * The preferred locale of the user.
998
+ * @return GoogleGAL_Service_AdSenseHost_AssociationSession
999
  */
1000
  public function start($productCode, $websiteUrl, $optParams = array())
1001
  {
1002
  $params = array('productCode' => $productCode, 'websiteUrl' => $websiteUrl);
1003
  $params = array_merge($params, $optParams);
1004
+ return $this->call('start', array($params), "GoogleGAL_Service_AdSenseHost_AssociationSession");
1005
  }
1006
  /**
1007
  * Verify an association session after the association callback returns from
1010
  * @param string $token
1011
  * The token returned to the association callback URL.
1012
  * @param array $optParams Optional parameters.
1013
+ * @return GoogleGAL_Service_AdSenseHost_AssociationSession
1014
  */
1015
  public function verify($token, $optParams = array())
1016
  {
1017
  $params = array('token' => $token);
1018
  $params = array_merge($params, $optParams);
1019
+ return $this->call('verify', array($params), "GoogleGAL_Service_AdSenseHost_AssociationSession");
1020
  }
1021
  }
1022
 
1024
  * The "customchannels" collection of methods.
1025
  * Typical usage is:
1026
  * <code>
1027
+ * $adsensehostService = new GoogleGAL_Service_AdSenseHost(...);
1028
  * $customchannels = $adsensehostService->customchannels;
1029
  * </code>
1030
  */
1031
+ class GoogleGAL_Service_AdSenseHost_Customchannels_Resource extends GoogleGAL_Service_Resource
1032
  {
1033
 
1034
  /**
1040
  * @param string $customChannelId
1041
  * Custom channel to delete.
1042
  * @param array $optParams Optional parameters.
1043
+ * @return GoogleGAL_Service_AdSenseHost_CustomChannel
1044
  */
1045
  public function delete($adClientId, $customChannelId, $optParams = array())
1046
  {
1047
  $params = array('adClientId' => $adClientId, 'customChannelId' => $customChannelId);
1048
  $params = array_merge($params, $optParams);
1049
+ return $this->call('delete', array($params), "GoogleGAL_Service_AdSenseHost_CustomChannel");
1050
  }
1051
  /**
1052
  * Get a specific custom channel from the host AdSense account.
1057
  * @param string $customChannelId
1058
  * Custom channel to get.
1059
  * @param array $optParams Optional parameters.
1060
+ * @return GoogleGAL_Service_AdSenseHost_CustomChannel
1061
  */
1062
  public function get($adClientId, $customChannelId, $optParams = array())
1063
  {
1064
  $params = array('adClientId' => $adClientId, 'customChannelId' => $customChannelId);
1065
  $params = array_merge($params, $optParams);
1066
+ return $this->call('get', array($params), "GoogleGAL_Service_AdSenseHost_CustomChannel");
1067
  }
1068
  /**
1069
  * Add a new custom channel to the host AdSense account. (customchannels.insert)
1070
  *
1071
  * @param string $adClientId
1072
  * Ad client to which the new custom channel will be added.
1073
+ * @param GoogleGAL_CustomChannel $postBody
1074
  * @param array $optParams Optional parameters.
1075
+ * @return GoogleGAL_Service_AdSenseHost_CustomChannel
1076
  */
1077
+ public function insert($adClientId, GoogleGAL_Service_AdSenseHost_CustomChannel $postBody, $optParams = array())
1078
  {
1079
  $params = array('adClientId' => $adClientId, 'postBody' => $postBody);
1080
  $params = array_merge($params, $optParams);
1081
+ return $this->call('insert', array($params), "GoogleGAL_Service_AdSenseHost_CustomChannel");
1082
  }
1083
  /**
1084
  * List all host custom channels in this AdSense account.
1093
  * parameter to the value of "nextPageToken" from the previous response.
1094
  * @opt_param string maxResults
1095
  * The maximum number of custom channels to include in the response, used for paging.
1096
+ * @return GoogleGAL_Service_AdSenseHost_CustomChannels
1097
  */
1098
  public function listCustomchannels($adClientId, $optParams = array())
1099
  {
1100
  $params = array('adClientId' => $adClientId);
1101
  $params = array_merge($params, $optParams);
1102
+ return $this->call('list', array($params), "GoogleGAL_Service_AdSenseHost_CustomChannels");
1103
  }
1104
  /**
1105
  * Update a custom channel in the host AdSense account. This method supports
1109
  * Ad client in which the custom channel will be updated.
1110
  * @param string $customChannelId
1111
  * Custom channel to get.
1112
+ * @param GoogleGAL_CustomChannel $postBody
1113
  * @param array $optParams Optional parameters.
1114
+ * @return GoogleGAL_Service_AdSenseHost_CustomChannel
1115
  */
1116
+ public function patch($adClientId, $customChannelId, GoogleGAL_Service_AdSenseHost_CustomChannel $postBody, $optParams = array())
1117
  {
1118
  $params = array('adClientId' => $adClientId, 'customChannelId' => $customChannelId, 'postBody' => $postBody);
1119
  $params = array_merge($params, $optParams);
1120
+ return $this->call('patch', array($params), "GoogleGAL_Service_AdSenseHost_CustomChannel");
1121
  }
1122
  /**
1123
  * Update a custom channel in the host AdSense account. (customchannels.update)
1124
  *
1125
  * @param string $adClientId
1126
  * Ad client in which the custom channel will be updated.
1127
+ * @param GoogleGAL_CustomChannel $postBody
1128
  * @param array $optParams Optional parameters.
1129
+ * @return GoogleGAL_Service_AdSenseHost_CustomChannel
1130
  */
1131
+ public function update($adClientId, GoogleGAL_Service_AdSenseHost_CustomChannel $postBody, $optParams = array())
1132
  {
1133
  $params = array('adClientId' => $adClientId, 'postBody' => $postBody);
1134
  $params = array_merge($params, $optParams);
1135
+ return $this->call('update', array($params), "GoogleGAL_Service_AdSenseHost_CustomChannel");
1136
  }
1137
  }
1138
 
1140
  * The "reports" collection of methods.
1141
  * Typical usage is:
1142
  * <code>
1143
+ * $adsensehostService = new GoogleGAL_Service_AdSenseHost(...);
1144
  * $reports = $adsensehostService->reports;
1145
  * </code>
1146
  */
1147
+ class GoogleGAL_Service_AdSenseHost_Reports_Resource extends GoogleGAL_Service_Resource
1148
  {
1149
 
1150
  /**
1175
  * Index of the first row of report data to return.
1176
  * @opt_param string dimension
1177
  * Dimensions to base the report on.
1178
+ * @return GoogleGAL_Service_AdSenseHost_Report
1179
  */
1180
  public function generate($startDate, $endDate, $optParams = array())
1181
  {
1182
  $params = array('startDate' => $startDate, 'endDate' => $endDate);
1183
  $params = array_merge($params, $optParams);
1184
+ return $this->call('generate', array($params), "GoogleGAL_Service_AdSenseHost_Report");
1185
  }
1186
  }
1187
 
1189
  * The "urlchannels" collection of methods.
1190
  * Typical usage is:
1191
  * <code>
1192
+ * $adsensehostService = new GoogleGAL_Service_AdSenseHost(...);
1193
  * $urlchannels = $adsensehostService->urlchannels;
1194
  * </code>
1195
  */
1196
+ class GoogleGAL_Service_AdSenseHost_Urlchannels_Resource extends GoogleGAL_Service_Resource
1197
  {
1198
 
1199
  /**
1204
  * @param string $urlChannelId
1205
  * URL channel to delete.
1206
  * @param array $optParams Optional parameters.
1207
+ * @return GoogleGAL_Service_AdSenseHost_UrlChannel
1208
  */
1209
  public function delete($adClientId, $urlChannelId, $optParams = array())
1210
  {
1211
  $params = array('adClientId' => $adClientId, 'urlChannelId' => $urlChannelId);
1212
  $params = array_merge($params, $optParams);
1213
+ return $this->call('delete', array($params), "GoogleGAL_Service_AdSenseHost_UrlChannel");
1214
  }
1215
  /**
1216
  * Add a new URL channel to the host AdSense account. (urlchannels.insert)
1217
  *
1218
  * @param string $adClientId
1219
  * Ad client to which the new URL channel will be added.
1220
+ * @param GoogleGAL_UrlChannel $postBody
1221
  * @param array $optParams Optional parameters.
1222
+ * @return GoogleGAL_Service_AdSenseHost_UrlChannel
1223
  */
1224
+ public function insert($adClientId, GoogleGAL_Service_AdSenseHost_UrlChannel $postBody, $optParams = array())
1225
  {
1226
  $params = array('adClientId' => $adClientId, 'postBody' => $postBody);
1227
  $params = array_merge($params, $optParams);
1228
+ return $this->call('insert', array($params), "GoogleGAL_Service_AdSenseHost_UrlChannel");
1229
  }
1230
  /**
1231
  * List all host URL channels in the host AdSense account.
1240
  * parameter to the value of "nextPageToken" from the previous response.
1241
  * @opt_param string maxResults
1242
  * The maximum number of URL channels to include in the response, used for paging.
1243
+ * @return GoogleGAL_Service_AdSenseHost_UrlChannels
1244
  */
1245
  public function listUrlchannels($adClientId, $optParams = array())
1246
  {
1247
  $params = array('adClientId' => $adClientId);
1248
  $params = array_merge($params, $optParams);
1249
+ return $this->call('list', array($params), "GoogleGAL_Service_AdSenseHost_UrlChannels");
1250
  }
1251
  }
1252
 
1253
 
1254
 
1255
 
1256
+ class GoogleGAL_Service_AdSenseHost_Account extends GoogleGAL_Model
1257
  {
1258
  public $id;
1259
  public $kind;
1301
  }
1302
  }
1303
 
1304
+ class GoogleGAL_Service_AdSenseHost_Accounts extends GoogleGAL_Collection
1305
  {
1306
  public $etag;
1307
+ protected $itemsType = 'GoogleGAL_Service_AdSenseHost_Account';
1308
  protected $itemsDataType = 'array';
1309
  public $kind;
1310
 
1339
  }
1340
  }
1341
 
1342
+ class GoogleGAL_Service_AdSenseHost_AdClient extends GoogleGAL_Model
1343
  {
1344
  public $arcOptIn;
1345
  public $id;
1398
  }
1399
  }
1400
 
1401
+ class GoogleGAL_Service_AdSenseHost_AdClients extends GoogleGAL_Collection
1402
  {
1403
  public $etag;
1404
+ protected $itemsType = 'GoogleGAL_Service_AdSenseHost_AdClient';
1405
  protected $itemsDataType = 'array';
1406
  public $kind;
1407
  public $nextPageToken;
1447
  }
1448
  }
1449
 
1450
+ class GoogleGAL_Service_AdSenseHost_AdCode extends GoogleGAL_Model
1451
  {
1452
  public $adCode;
1453
  public $kind;
1473
  }
1474
  }
1475
 
1476
+ class GoogleGAL_Service_AdSenseHost_AdStyle extends GoogleGAL_Model
1477
  {
1478
+ protected $colorsType = 'GoogleGAL_Service_AdSenseHost_AdStyleColors';
1479
  protected $colorsDataType = '';
1480
  public $corners;
1481
+ protected $fontType = 'GoogleGAL_Service_AdSenseHost_AdStyleFont';
1482
  protected $fontDataType = '';
1483
  public $kind;
1484
 
1485
+ public function setColors(GoogleGAL_Service_AdSenseHost_AdStyleColors $colors)
1486
  {
1487
  $this->colors = $colors;
1488
  }
1502
  return $this->corners;
1503
  }
1504
 
1505
+ public function setFont(GoogleGAL_Service_AdSenseHost_AdStyleFont $font)
1506
  {
1507
  $this->font = $font;
1508
  }
1523
  }
1524
  }
1525
 
1526
+ class GoogleGAL_Service_AdSenseHost_AdStyleColors extends GoogleGAL_Model
1527
  {
1528
  public $background;
1529
  public $border;
1582
  }
1583
  }
1584
 
1585
+ class GoogleGAL_Service_AdSenseHost_AdStyleFont extends GoogleGAL_Model
1586
  {
1587
  public $family;
1588
  public $size;
1608
  }
1609
  }
1610
 
1611
+ class GoogleGAL_Service_AdSenseHost_AdUnit extends GoogleGAL_Model
1612
  {
1613
  public $code;
1614
+ protected $contentAdsSettingsType = 'GoogleGAL_Service_AdSenseHost_AdUnitContentAdsSettings';
1615
  protected $contentAdsSettingsDataType = '';
1616
+ protected $customStyleType = 'GoogleGAL_Service_AdSenseHost_AdStyle';
1617
  protected $customStyleDataType = '';
1618
  public $id;
1619
  public $kind;
1620
+ protected $mobileContentAdsSettingsType = 'GoogleGAL_Service_AdSenseHost_AdUnitMobileContentAdsSettings';
1621
  protected $mobileContentAdsSettingsDataType = '';
1622
  public $name;
1623
  public $status;
1632
  return $this->code;
1633
  }
1634
 
1635
+ public function setContentAdsSettings(GoogleGAL_Service_AdSenseHost_AdUnitContentAdsSettings $contentAdsSettings)
1636
  {
1637
  $this->contentAdsSettings = $contentAdsSettings;
1638
  }
1642
  return $this->contentAdsSettings;
1643
  }
1644
 
1645
+ public function setCustomStyle(GoogleGAL_Service_AdSenseHost_AdStyle $customStyle)
1646
  {
1647
  $this->customStyle = $customStyle;
1648
  }
1672
  return $this->kind;
1673
  }
1674
 
1675
+ public function setMobileContentAdsSettings(GoogleGAL_Service_AdSenseHost_AdUnitMobileContentAdsSettings $mobileContentAdsSettings)
1676
  {
1677
  $this->mobileContentAdsSettings = $mobileContentAdsSettings;
1678
  }
1703
  }
1704
  }
1705
 
1706
+ class GoogleGAL_Service_AdSenseHost_AdUnitContentAdsSettings extends GoogleGAL_Model
1707
  {
1708
+ protected $backupOptionType = 'GoogleGAL_Service_AdSenseHost_AdUnitContentAdsSettingsBackupOption';
1709
  protected $backupOptionDataType = '';
1710
  public $size;
1711
  public $type;
1712
 
1713
+ public function setBackupOption(GoogleGAL_Service_AdSenseHost_AdUnitContentAdsSettingsBackupOption $backupOption)
1714
  {
1715
  $this->backupOption = $backupOption;
1716
  }
1741
  }
1742
  }
1743
 
1744
+ class GoogleGAL_Service_AdSenseHost_AdUnitContentAdsSettingsBackupOption extends GoogleGAL_Model
1745
  {
1746
  public $color;
1747
  public $type;
1778
  }
1779
  }
1780
 
1781
+ class GoogleGAL_Service_AdSenseHost_AdUnitMobileContentAdsSettings extends GoogleGAL_Model
1782
  {
1783
  public $markupLanguage;
1784
  public $scriptingLanguage;
1826
  }
1827
  }
1828
 
1829
+ class GoogleGAL_Service_AdSenseHost_AdUnits extends GoogleGAL_Collection
1830
  {
1831
  public $etag;
1832
+ protected $itemsType = 'GoogleGAL_Service_AdSenseHost_AdUnit';
1833
  protected $itemsDataType = 'array';
1834
  public $kind;
1835
  public $nextPageToken;
1875
  }
1876
  }
1877
 
1878
+ class GoogleGAL_Service_AdSenseHost_AssociationSession extends GoogleGAL_Collection
1879
  {
1880
  public $accountId;
1881
  public $id;
1978
  }
1979
  }
1980
 
1981
+ class GoogleGAL_Service_AdSenseHost_CustomChannel extends GoogleGAL_Model
1982
  {
1983
  public $code;
1984
  public $id;
2026
  }
2027
  }
2028
 
2029
+ class GoogleGAL_Service_AdSenseHost_CustomChannels extends GoogleGAL_Collection
2030
  {
2031
  public $etag;
2032
+ protected $itemsType = 'GoogleGAL_Service_AdSenseHost_CustomChannel';
2033
  protected $itemsDataType = 'array';
2034
  public $kind;
2035
  public $nextPageToken;
2075
  }
2076
  }
2077
 
2078
+ class GoogleGAL_Service_AdSenseHost_Report extends GoogleGAL_Collection
2079
  {
2080
  public $averages;
2081
+ protected $headersType = 'GoogleGAL_Service_AdSenseHost_ReportHeaders';
2082
  protected $headersDataType = 'array';
2083
  public $kind;
2084
  public $rows;
2157
  }
2158
  }
2159
 
2160
+ class GoogleGAL_Service_AdSenseHost_ReportHeaders extends GoogleGAL_Model
2161
  {
2162
  public $currency;
2163
  public $name;
2194
  }
2195
  }
2196
 
2197
+ class GoogleGAL_Service_AdSenseHost_UrlChannel extends GoogleGAL_Model
2198
  {
2199
  public $id;
2200
  public $kind;
2231
  }
2232
  }
2233
 
2234
+ class GoogleGAL_Service_AdSenseHost_UrlChannels extends GoogleGAL_Collection
2235
  {
2236
  public $etag;
2237
+ protected $itemsType = 'GoogleGAL_Service_AdSenseHost_UrlChannel';
2238
  protected $itemsDataType = 'array';
2239
  public $kind;
2240
  public $nextPageToken;
core/Google/Service/Admin.php CHANGED
@@ -29,7 +29,7 @@
29
  *
30
  * @author Google, Inc.
31
  */
32
- class Google_Service_Admin extends Google_Service
33
  {
34
  /** Manage email messages of users on your domain. */
35
  const EMAIL_MIGRATION = "https://www.googleapis.com/auth/email.migration";
@@ -40,16 +40,16 @@ class Google_Service_Admin extends Google_Service
40
  /**
41
  * Constructs the internal representation of the Admin service.
42
  *
43
- * @param Google_Client $client
44
  */
45
- public function __construct(Google_Client $client)
46
  {
47
  parent::__construct($client);
48
  $this->servicePath = 'email/v2/users/';
49
  $this->version = 'email_migration_v2';
50
  $this->serviceName = 'admin';
51
 
52
- $this->mail = new Google_Service_Admin_Mail_Resource(
53
  $this,
54
  $this->serviceName,
55
  'mail',
@@ -77,11 +77,11 @@ class Google_Service_Admin extends Google_Service
77
  * The "mail" collection of methods.
78
  * Typical usage is:
79
  * <code>
80
- * $adminService = new Google_Service_Admin(...);
81
  * $mail = $adminService->mail;
82
  * </code>
83
  */
84
- class Google_Service_Admin_Mail_Resource extends Google_Service_Resource
85
  {
86
 
87
  /**
@@ -89,10 +89,10 @@ class Google_Service_Admin_Mail_Resource extends Google_Service_Resource
89
  *
90
  * @param string $userKey
91
  * The email or immutable id of the user
92
- * @param Google_MailItem $postBody
93
  * @param array $optParams Optional parameters.
94
  */
95
- public function insert($userKey, Google_Service_Admin_MailItem $postBody, $optParams = array())
96
  {
97
  $params = array('userKey' => $userKey, 'postBody' => $postBody);
98
  $params = array_merge($params, $optParams);
@@ -103,7 +103,7 @@ class Google_Service_Admin_Mail_Resource extends Google_Service_Resource
103
 
104
 
105
 
106
- class Google_Service_Admin_MailItem extends Google_Collection
107
  {
108
  public $isDeleted;
109
  public $isDraft;
29
  *
30
  * @author Google, Inc.
31
  */
32
+ class GoogleGAL_Service_Admin extends GoogleGAL_Service
33
  {
34
  /** Manage email messages of users on your domain. */
35
  const EMAIL_MIGRATION = "https://www.googleapis.com/auth/email.migration";
40
  /**
41
  * Constructs the internal representation of the Admin service.
42
  *
43
+ * @param GoogleGAL_Client $client
44
  */
45
+ public function __construct(GoogleGAL_Client $client)
46
  {
47
  parent::__construct($client);
48
  $this->servicePath = 'email/v2/users/';
49
  $this->version = 'email_migration_v2';
50
  $this->serviceName = 'admin';
51
 
52
+ $this->mail = new GoogleGAL_Service_Admin_Mail_Resource(
53
  $this,
54
  $this->serviceName,
55
  'mail',
77
  * The "mail" collection of methods.
78
  * Typical usage is:
79
  * <code>
80
+ * $adminService = new GoogleGAL_Service_Admin(...);
81
  * $mail = $adminService->mail;
82
  * </code>
83
  */
84
+ class GoogleGAL_Service_Admin_Mail_Resource extends GoogleGAL_Service_Resource
85
  {
86
 
87
  /**
89
  *
90
  * @param string $userKey
91
  * The email or immutable id of the user
92
+ * @param GoogleGAL_MailItem $postBody
93
  * @param array $optParams Optional parameters.
94
  */
95
+ public function insert($userKey, GoogleGAL_Service_Admin_MailItem $postBody, $optParams = array())
96
  {
97
  $params = array('userKey' => $userKey, 'postBody' => $postBody);
98
  $params = array_merge($params, $optParams);
103
 
104
 
105
 
106
+ class GoogleGAL_Service_Admin_MailItem extends GoogleGAL_Collection
107
  {
108
  public $isDeleted;
109
  public $isDraft;
core/Google/Service/Analytics.php CHANGED
@@ -29,7 +29,7 @@
29
  *
30
  * @author Google, Inc.
31
  */
32
- class Google_Service_Analytics extends Google_Service
33
  {
34
  /** View and manage your Google Analytics data. */
35
  const ANALYTICS = "https://www.googleapis.com/auth/analytics";
@@ -62,16 +62,16 @@ class Google_Service_Analytics extends Google_Service
62
  /**
63
  * Constructs the internal representation of the Analytics service.
64
  *
65
- * @param Google_Client $client
66
  */
67
- public function __construct(Google_Client $client)
68
  {
69
  parent::__construct($client);
70
  $this->servicePath = 'analytics/v3/';
71
  $this->version = 'v3';
72
  $this->serviceName = 'analytics';
73
 
74
- $this->data_ga = new Google_Service_Analytics_DataGa_Resource(
75
  $this,
76
  $this->serviceName,
77
  'ga',
@@ -138,7 +138,7 @@ class Google_Service_Analytics extends Google_Service
138
  )
139
  )
140
  );
141
- $this->data_mcf = new Google_Service_Analytics_DataMcf_Resource(
142
  $this,
143
  $this->serviceName,
144
  'mcf',
@@ -197,7 +197,7 @@ class Google_Service_Analytics extends Google_Service
197
  )
198
  )
199
  );
200
- $this->data_realtime = new Google_Service_Analytics_DataRealtime_Resource(
201
  $this,
202
  $this->serviceName,
203
  'realtime',
@@ -238,7 +238,7 @@ class Google_Service_Analytics extends Google_Service
238
  )
239
  )
240
  );
241
- $this->management_accountSummaries = new Google_Service_Analytics_ManagementAccountSummaries_Resource(
242
  $this,
243
  $this->serviceName,
244
  'accountSummaries',
@@ -261,7 +261,7 @@ class Google_Service_Analytics extends Google_Service
261
  )
262
  )
263
  );
264
- $this->management_accountUserLinks = new Google_Service_Analytics_ManagementAccountUserLinks_Resource(
265
  $this,
266
  $this->serviceName,
267
  'accountUserLinks',
@@ -329,7 +329,7 @@ class Google_Service_Analytics extends Google_Service
329
  )
330
  )
331
  );
332
- $this->management_accounts = new Google_Service_Analytics_ManagementAccounts_Resource(
333
  $this,
334
  $this->serviceName,
335
  'accounts',
@@ -352,7 +352,7 @@ class Google_Service_Analytics extends Google_Service
352
  )
353
  )
354
  );
355
- $this->management_customDataSources = new Google_Service_Analytics_ManagementCustomDataSources_Resource(
356
  $this,
357
  $this->serviceName,
358
  'customDataSources',
@@ -385,7 +385,7 @@ class Google_Service_Analytics extends Google_Service
385
  )
386
  )
387
  );
388
- $this->management_dailyUploads = new Google_Service_Analytics_ManagementDailyUploads_Resource(
389
  $this,
390
  $this->serviceName,
391
  'dailyUploads',
@@ -502,7 +502,7 @@ class Google_Service_Analytics extends Google_Service
502
  )
503
  )
504
  );
505
- $this->management_experiments = new Google_Service_Analytics_ManagementExperiments_Resource(
506
  $this,
507
  $this->serviceName,
508
  'experiments',
@@ -660,7 +660,7 @@ class Google_Service_Analytics extends Google_Service
660
  )
661
  )
662
  );
663
- $this->management_goals = new Google_Service_Analytics_ManagementGoals_Resource(
664
  $this,
665
  $this->serviceName,
666
  'goals',
@@ -793,7 +793,7 @@ class Google_Service_Analytics extends Google_Service
793
  )
794
  )
795
  );
796
- $this->management_profileUserLinks = new Google_Service_Analytics_ManagementProfileUserLinks_Resource(
797
  $this,
798
  $this->serviceName,
799
  'profileUserLinks',
@@ -901,7 +901,7 @@ class Google_Service_Analytics extends Google_Service
901
  )
902
  )
903
  );
904
- $this->management_profiles = new Google_Service_Analytics_ManagementProfiles_Resource(
905
  $this,
906
  $this->serviceName,
907
  'profiles',
@@ -1029,7 +1029,7 @@ class Google_Service_Analytics extends Google_Service
1029
  )
1030
  )
1031
  );
1032
- $this->management_segments = new Google_Service_Analytics_ManagementSegments_Resource(
1033
  $this,
1034
  $this->serviceName,
1035
  'segments',
@@ -1052,7 +1052,7 @@ class Google_Service_Analytics extends Google_Service
1052
  )
1053
  )
1054
  );
1055
- $this->management_uploads = new Google_Service_Analytics_ManagementUploads_Resource(
1056
  $this,
1057
  $this->serviceName,
1058
  'uploads',
@@ -1155,7 +1155,7 @@ class Google_Service_Analytics extends Google_Service
1155
  )
1156
  )
1157
  );
1158
- $this->management_webproperties = new Google_Service_Analytics_ManagementWebproperties_Resource(
1159
  $this,
1160
  $this->serviceName,
1161
  'webproperties',
@@ -1238,7 +1238,7 @@ class Google_Service_Analytics extends Google_Service
1238
  )
1239
  )
1240
  );
1241
- $this->management_webpropertyUserLinks = new Google_Service_Analytics_ManagementWebpropertyUserLinks_Resource(
1242
  $this,
1243
  $this->serviceName,
1244
  'webpropertyUserLinks',
@@ -1326,7 +1326,7 @@ class Google_Service_Analytics extends Google_Service
1326
  )
1327
  )
1328
  );
1329
- $this->metadata_columns = new Google_Service_Analytics_MetadataColumns_Resource(
1330
  $this,
1331
  $this->serviceName,
1332
  'columns',
@@ -1354,11 +1354,11 @@ class Google_Service_Analytics extends Google_Service
1354
  * The "data" collection of methods.
1355
  * Typical usage is:
1356
  * <code>
1357
- * $analyticsService = new Google_Service_Analytics(...);
1358
  * $data = $analyticsService->data;
1359
  * </code>
1360
  */
1361
- class Google_Service_Analytics_Data_Resource extends Google_Service_Resource
1362
  {
1363
 
1364
  }
@@ -1367,11 +1367,11 @@ class Google_Service_Analytics_Data_Resource extends Google_Service_Resource
1367
  * The "ga" collection of methods.
1368
  * Typical usage is:
1369
  * <code>
1370
- * $analyticsService = new Google_Service_Analytics(...);
1371
  * $ga = $analyticsService->ga;
1372
  * </code>
1373
  */
1374
- class Google_Service_Analytics_DataGa_Resource extends Google_Service_Resource
1375
  {
1376
 
1377
  /**
@@ -1410,24 +1410,24 @@ class Google_Service_Analytics_DataGa_Resource extends Google_Service_Resource
1410
  * A comma-separated list of dimension or metric filters to be applied to Analytics data.
1411
  * @opt_param string output
1412
  * The selected format for the response. Default format is JSON.
1413
- * @return Google_Service_Analytics_GaData
1414
  */
1415
  public function get($ids, $startDate, $endDate, $metrics, $optParams = array())
1416
  {
1417
  $params = array('ids' => $ids, 'start-date' => $startDate, 'end-date' => $endDate, 'metrics' => $metrics);
1418
  $params = array_merge($params, $optParams);
1419
- return $this->call('get', array($params), "Google_Service_Analytics_GaData");
1420
  }
1421
  }
1422
  /**
1423
  * The "mcf" collection of methods.
1424
  * Typical usage is:
1425
  * <code>
1426
- * $analyticsService = new Google_Service_Analytics(...);
1427
  * $mcf = $analyticsService->mcf;
1428
  * </code>
1429
  */
1430
- class Google_Service_Analytics_DataMcf_Resource extends Google_Service_Resource
1431
  {
1432
 
1433
  /**
@@ -1461,24 +1461,24 @@ class Google_Service_Analytics_DataMcf_Resource extends Google_Service_Resource
1461
  * The desired sampling level.
1462
  * @opt_param string filters
1463
  * A comma-separated list of dimension or metric filters to be applied to the Analytics data.
1464
- * @return Google_Service_Analytics_McfData
1465
  */
1466
  public function get($ids, $startDate, $endDate, $metrics, $optParams = array())
1467
  {
1468
  $params = array('ids' => $ids, 'start-date' => $startDate, 'end-date' => $endDate, 'metrics' => $metrics);
1469
  $params = array_merge($params, $optParams);
1470
- return $this->call('get', array($params), "Google_Service_Analytics_McfData");
1471
  }
1472
  }
1473
  /**
1474
  * The "realtime" collection of methods.
1475
  * Typical usage is:
1476
  * <code>
1477
- * $analyticsService = new Google_Service_Analytics(...);
1478
  * $realtime = $analyticsService->realtime;
1479
  * </code>
1480
  */
1481
- class Google_Service_Analytics_DataRealtime_Resource extends Google_Service_Resource
1482
  {
1483
 
1484
  /**
@@ -1501,13 +1501,13 @@ class Google_Service_Analytics_DataRealtime_Resource extends Google_Service_Reso
1501
  * A comma-separated list of real time dimensions. E.g., 'rt:medium,rt:city'.
1502
  * @opt_param string filters
1503
  * A comma-separated list of dimension or metric filters to be applied to real time data.
1504
- * @return Google_Service_Analytics_RealtimeData
1505
  */
1506
  public function get($ids, $metrics, $optParams = array())
1507
  {
1508
  $params = array('ids' => $ids, 'metrics' => $metrics);
1509
  $params = array_merge($params, $optParams);
1510
- return $this->call('get', array($params), "Google_Service_Analytics_RealtimeData");
1511
  }
1512
  }
1513
 
@@ -1515,11 +1515,11 @@ class Google_Service_Analytics_DataRealtime_Resource extends Google_Service_Reso
1515
  * The "management" collection of methods.
1516
  * Typical usage is:
1517
  * <code>
1518
- * $analyticsService = new Google_Service_Analytics(...);
1519
  * $management = $analyticsService->management;
1520
  * </code>
1521
  */
1522
- class Google_Service_Analytics_Management_Resource extends Google_Service_Resource
1523
  {
1524
 
1525
  }
@@ -1528,11 +1528,11 @@ class Google_Service_Analytics_Management_Resource extends Google_Service_Resour
1528
  * The "accountSummaries" collection of methods.
1529
  * Typical usage is:
1530
  * <code>
1531
- * $analyticsService = new Google_Service_Analytics(...);
1532
  * $accountSummaries = $analyticsService->accountSummaries;
1533
  * </code>
1534
  */
1535
- class Google_Service_Analytics_ManagementAccountSummaries_Resource extends Google_Service_Resource
1536
  {
1537
 
1538
  /**
@@ -1547,24 +1547,24 @@ class Google_Service_Analytics_ManagementAccountSummaries_Resource extends Googl
1547
  * @opt_param int start-index
1548
  * An index of the first entity to retrieve. Use this parameter as a pagination mechanism along
1549
  * with the max-results parameter.
1550
- * @return Google_Service_Analytics_AccountSummaries
1551
  */
1552
  public function listManagementAccountSummaries($optParams = array())
1553
  {
1554
  $params = array();
1555
  $params = array_merge($params, $optParams);
1556
- return $this->call('list', array($params), "Google_Service_Analytics_AccountSummaries");
1557
  }
1558
  }
1559
  /**
1560
  * The "accountUserLinks" collection of methods.
1561
  * Typical usage is:
1562
  * <code>
1563
- * $analyticsService = new Google_Service_Analytics(...);
1564
  * $accountUserLinks = $analyticsService->accountUserLinks;
1565
  * </code>
1566
  */
1567
- class Google_Service_Analytics_ManagementAccountUserLinks_Resource extends Google_Service_Resource
1568
  {
1569
 
1570
  /**
@@ -1587,15 +1587,15 @@ class Google_Service_Analytics_ManagementAccountUserLinks_Resource extends Googl
1587
  *
1588
  * @param string $accountId
1589
  * Account ID to create the user link for.
1590
- * @param Google_EntityUserLink $postBody
1591
  * @param array $optParams Optional parameters.
1592
- * @return Google_Service_Analytics_EntityUserLink
1593
  */
1594
- public function insert($accountId, Google_Service_Analytics_EntityUserLink $postBody, $optParams = array())
1595
  {
1596
  $params = array('accountId' => $accountId, 'postBody' => $postBody);
1597
  $params = array_merge($params, $optParams);
1598
- return $this->call('insert', array($params), "Google_Service_Analytics_EntityUserLink");
1599
  }
1600
  /**
1601
  * Lists account-user links for a given account.
@@ -1610,13 +1610,13 @@ class Google_Service_Analytics_ManagementAccountUserLinks_Resource extends Googl
1610
  * @opt_param int start-index
1611
  * An index of the first account-user link to retrieve. Use this parameter as a pagination
1612
  * mechanism along with the max-results parameter.
1613
- * @return Google_Service_Analytics_EntityUserLinks
1614
  */
1615
  public function listManagementAccountUserLinks($accountId, $optParams = array())
1616
  {
1617
  $params = array('accountId' => $accountId);
1618
  $params = array_merge($params, $optParams);
1619
- return $this->call('list', array($params), "Google_Service_Analytics_EntityUserLinks");
1620
  }
1621
  /**
1622
  * Updates permissions for an existing user on the given account.
@@ -1626,26 +1626,26 @@ class Google_Service_Analytics_ManagementAccountUserLinks_Resource extends Googl
1626
  * Account ID to update the account-user link for.
1627
  * @param string $linkId
1628
  * Link ID to update the account-user link for.
1629
- * @param Google_EntityUserLink $postBody
1630
  * @param array $optParams Optional parameters.
1631
- * @return Google_Service_Analytics_EntityUserLink
1632
  */
1633
- public function update($accountId, $linkId, Google_Service_Analytics_EntityUserLink $postBody, $optParams = array())
1634
  {
1635
  $params = array('accountId' => $accountId, 'linkId' => $linkId, 'postBody' => $postBody);
1636
  $params = array_merge($params, $optParams);
1637
- return $this->call('update', array($params), "Google_Service_Analytics_EntityUserLink");
1638
  }
1639
  }
1640
  /**
1641
  * The "accounts" collection of methods.
1642
  * Typical usage is:
1643
  * <code>
1644
- * $analyticsService = new Google_Service_Analytics(...);
1645
  * $accounts = $analyticsService->accounts;
1646
  * </code>
1647
  */
1648
- class Google_Service_Analytics_ManagementAccounts_Resource extends Google_Service_Resource
1649
  {
1650
 
1651
  /**
@@ -1659,24 +1659,24 @@ class Google_Service_Analytics_ManagementAccounts_Resource extends Google_Servic
1659
  * @opt_param int start-index
1660
  * An index of the first account to retrieve. Use this parameter as a pagination mechanism along
1661
  * with the max-results parameter.
1662
- * @return Google_Service_Analytics_Accounts
1663
  */
1664
  public function listManagementAccounts($optParams = array())
1665
  {
1666
  $params = array();
1667
  $params = array_merge($params, $optParams);
1668
- return $this->call('list', array($params), "Google_Service_Analytics_Accounts");
1669
  }
1670
  }
1671
  /**
1672
  * The "customDataSources" collection of methods.
1673
  * Typical usage is:
1674
  * <code>
1675
- * $analyticsService = new Google_Service_Analytics(...);
1676
  * $customDataSources = $analyticsService->customDataSources;
1677
  * </code>
1678
  */
1679
- class Google_Service_Analytics_ManagementCustomDataSources_Resource extends Google_Service_Resource
1680
  {
1681
 
1682
  /**
@@ -1694,24 +1694,24 @@ class Google_Service_Analytics_ManagementCustomDataSources_Resource extends Goog
1694
  * @opt_param int start-index
1695
  * A 1-based index of the first custom data source to retrieve. Use this parameter as a pagination
1696
  * mechanism along with the max-results parameter.
1697
- * @return Google_Service_Analytics_CustomDataSources
1698
  */
1699
  public function listManagementCustomDataSources($accountId, $webPropertyId, $optParams = array())
1700
  {
1701
  $params = array('accountId' => $accountId, 'webPropertyId' => $webPropertyId);
1702
  $params = array_merge($params, $optParams);
1703
- return $this->call('list', array($params), "Google_Service_Analytics_CustomDataSources");
1704
  }
1705
  }
1706
  /**
1707
  * The "dailyUploads" collection of methods.
1708
  * Typical usage is:
1709
  * <code>
1710
- * $analyticsService = new Google_Service_Analytics(...);
1711
  * $dailyUploads = $analyticsService->dailyUploads;
1712
  * </code>
1713
  */
1714
- class Google_Service_Analytics_ManagementDailyUploads_Resource extends Google_Service_Resource
1715
  {
1716
 
1717
  /**
@@ -1756,13 +1756,13 @@ class Google_Service_Analytics_ManagementDailyUploads_Resource extends Google_Se
1756
  * @opt_param int start-index
1757
  * A 1-based index of the first daily upload to retrieve. Use this parameter as a pagination
1758
  * mechanism along with the max-results parameter.
1759
- * @return Google_Service_Analytics_DailyUploads
1760
  */
1761
  public function listManagementDailyUploads($accountId, $webPropertyId, $customDataSourceId, $startDate, $endDate, $optParams = array())
1762
  {
1763
  $params = array('accountId' => $accountId, 'webPropertyId' => $webPropertyId, 'customDataSourceId' => $customDataSourceId, 'start-date' => $startDate, 'end-date' => $endDate);
1764
  $params = array_merge($params, $optParams);
1765
- return $this->call('list', array($params), "Google_Service_Analytics_DailyUploads");
1766
  }
1767
  /**
1768
  * Update/Overwrite data for a custom data source. (dailyUploads.upload)
@@ -1784,24 +1784,24 @@ class Google_Service_Analytics_ManagementDailyUploads_Resource extends Google_Se
1784
  * @opt_param bool reset
1785
  * Reset/Overwrite all previous appends for this date and start over with this file as the first
1786
  * upload.
1787
- * @return Google_Service_Analytics_DailyUploadAppend
1788
  */
1789
  public function upload($accountId, $webPropertyId, $customDataSourceId, $date, $appendNumber, $type, $optParams = array())
1790
  {
1791
  $params = array('accountId' => $accountId, 'webPropertyId' => $webPropertyId, 'customDataSourceId' => $customDataSourceId, 'date' => $date, 'appendNumber' => $appendNumber, 'type' => $type);
1792
  $params = array_merge($params, $optParams);
1793
- return $this->call('upload', array($params), "Google_Service_Analytics_DailyUploadAppend");
1794
  }
1795
  }
1796
  /**
1797
  * The "experiments" collection of methods.
1798
  * Typical usage is:
1799
  * <code>
1800
- * $analyticsService = new Google_Service_Analytics(...);
1801
  * $experiments = $analyticsService->experiments;
1802
  * </code>
1803
  */
1804
- class Google_Service_Analytics_ManagementExperiments_Resource extends Google_Service_Resource
1805
  {
1806
 
1807
  /**
@@ -1835,13 +1835,13 @@ class Google_Service_Analytics_ManagementExperiments_Resource extends Google_Ser
1835
  * @param string $experimentId
1836
  * Experiment ID to retrieve the experiment for.
1837
  * @param array $optParams Optional parameters.
1838
- * @return Google_Service_Analytics_Experiment
1839
  */
1840
  public function get($accountId, $webPropertyId, $profileId, $experimentId, $optParams = array())
1841
  {
1842
  $params = array('accountId' => $accountId, 'webPropertyId' => $webPropertyId, 'profileId' => $profileId, 'experimentId' => $experimentId);
1843
  $params = array_merge($params, $optParams);
1844
- return $this->call('get', array($params), "Google_Service_Analytics_Experiment");
1845
  }
1846
  /**
1847
  * Create a new experiment. (experiments.insert)
@@ -1852,15 +1852,15 @@ class Google_Service_Analytics_ManagementExperiments_Resource extends Google_Ser
1852
  * Web property ID to create the experiment for.
1853
  * @param string $profileId
1854
  * View (Profile) ID to create the experiment for.
1855
- * @param Google_Experiment $postBody
1856
  * @param array $optParams Optional parameters.
1857
- * @return Google_Service_Analytics_Experiment
1858
  */
1859
- public function insert($accountId, $webPropertyId, $profileId, Google_Service_Analytics_Experiment $postBody, $optParams = array())
1860
  {
1861
  $params = array('accountId' => $accountId, 'webPropertyId' => $webPropertyId, 'profileId' => $profileId, 'postBody' => $postBody);
1862
  $params = array_merge($params, $optParams);
1863
- return $this->call('insert', array($params), "Google_Service_Analytics_Experiment");
1864
  }
1865
  /**
1866
  * Lists experiments to which the user has access.
@@ -1879,13 +1879,13 @@ class Google_Service_Analytics_ManagementExperiments_Resource extends Google_Ser
1879
  * @opt_param int start-index
1880
  * An index of the first experiment to retrieve. Use this parameter as a pagination mechanism along
1881
  * with the max-results parameter.
1882
- * @return Google_Service_Analytics_Experiments
1883
  */
1884
  public function listManagementExperiments($accountId, $webPropertyId, $profileId, $optParams = array())
1885
  {
1886
  $params = array('accountId' => $accountId, 'webPropertyId' => $webPropertyId, 'profileId' => $profileId);
1887
  $params = array_merge($params, $optParams);
1888
- return $this->call('list', array($params), "Google_Service_Analytics_Experiments");
1889
  }
1890
  /**
1891
  * Update an existing experiment. This method supports patch semantics.
@@ -1899,15 +1899,15 @@ class Google_Service_Analytics_ManagementExperiments_Resource extends Google_Ser
1899
  * View (Profile) ID of the experiment to update.
1900
  * @param string $experimentId
1901
  * Experiment ID of the experiment to update.
1902
- * @param Google_Experiment $postBody
1903
  * @param array $optParams Optional parameters.
1904
- * @return Google_Service_Analytics_Experiment
1905
  */
1906
- public function patch($accountId, $webPropertyId, $profileId, $experimentId, Google_Service_Analytics_Experiment $postBody, $optParams = array())
1907
  {
1908
  $params = array('accountId' => $accountId, 'webPropertyId' => $webPropertyId, 'profileId' => $profileId, 'experimentId' => $experimentId, 'postBody' => $postBody);
1909
  $params = array_merge($params, $optParams);
1910
- return $this->call('patch', array($params), "Google_Service_Analytics_Experiment");
1911
  }
1912
  /**
1913
  * Update an existing experiment. (experiments.update)
@@ -1920,26 +1920,26 @@ class Google_Service_Analytics_ManagementExperiments_Resource extends Google_Ser
1920
  * View (Profile) ID of the experiment to update.
1921
  * @param string $experimentId
1922
  * Experiment ID of the experiment to update.
1923
- * @param Google_Experiment $postBody
1924
  * @param array $optParams Optional parameters.
1925
- * @return Google_Service_Analytics_Experiment
1926
  */
1927
- public function update($accountId, $webPropertyId, $profileId, $experimentId, Google_Service_Analytics_Experiment $postBody, $optParams = array())
1928
  {
1929
  $params = array('accountId' => $accountId, 'webPropertyId' => $webPropertyId, 'profileId' => $profileId, 'experimentId' => $experimentId, 'postBody' => $postBody);
1930
  $params = array_merge($params, $optParams);
1931
- return $this->call('update', array($params), "Google_Service_Analytics_Experiment");
1932
  }
1933
  }
1934
  /**
1935
  * The "goals" collection of methods.
1936
  * Typical usage is:
1937
  * <code>
1938
- * $analyticsService = new Google_Service_Analytics(...);
1939
  * $goals = $analyticsService->goals;
1940
  * </code>
1941
  */
1942
- class Google_Service_Analytics_ManagementGoals_Resource extends Google_Service_Resource
1943
  {
1944
 
1945
  /**
@@ -1954,13 +1954,13 @@ class Google_Service_Analytics_ManagementGoals_Resource extends Google_Service_R
1954
  * @param string $goalId
1955
  * Goal ID to retrieve the goal for.
1956
  * @param array $optParams Optional parameters.
1957
- * @return Google_Service_Analytics_Goal
1958
  */
1959
  public function get($accountId, $webPropertyId, $profileId, $goalId, $optParams = array())
1960
  {
1961
  $params = array('accountId' => $accountId, 'webPropertyId' => $webPropertyId, 'profileId' => $profileId, 'goalId' => $goalId);
1962
  $params = array_merge($params, $optParams);
1963
- return $this->call('get', array($params), "Google_Service_Analytics_Goal");
1964
  }
1965
  /**
1966
  * Create a new goal. (goals.insert)
@@ -1971,15 +1971,15 @@ class Google_Service_Analytics_ManagementGoals_Resource extends Google_Service_R
1971
  * Web property ID to create the goal for.
1972
  * @param string $profileId
1973
  * View (Profile) ID to create the goal for.
1974
- * @param Google_Goal $postBody
1975
  * @param array $optParams Optional parameters.
1976
- * @return Google_Service_Analytics_Goal
1977
  */
1978
- public function insert($accountId, $webPropertyId, $profileId, Google_Service_Analytics_Goal $postBody, $optParams = array())
1979
  {
1980
  $params = array('accountId' => $accountId, 'webPropertyId' => $webPropertyId, 'profileId' => $profileId, 'postBody' => $postBody);
1981
  $params = array_merge($params, $optParams);
1982
- return $this->call('insert', array($params), "Google_Service_Analytics_Goal");
1983
  }
1984
  /**
1985
  * Lists goals to which the user has access. (goals.listManagementGoals)
@@ -2000,13 +2000,13 @@ class Google_Service_Analytics_ManagementGoals_Resource extends Google_Service_R
2000
  * @opt_param int start-index
2001
  * An index of the first goal to retrieve. Use this parameter as a pagination mechanism along with
2002
  * the max-results parameter.
2003
- * @return Google_Service_Analytics_Goals
2004
  */
2005
  public function listManagementGoals($accountId, $webPropertyId, $profileId, $optParams = array())
2006
  {
2007
  $params = array('accountId' => $accountId, 'webPropertyId' => $webPropertyId, 'profileId' => $profileId);
2008
  $params = array_merge($params, $optParams);
2009
- return $this->call('list', array($params), "Google_Service_Analytics_Goals");
2010
  }
2011
  /**
2012
  * Updates an existing view (profile). This method supports patch semantics.
@@ -2020,15 +2020,15 @@ class Google_Service_Analytics_ManagementGoals_Resource extends Google_Service_R
2020
  * View (Profile) ID to update the goal.
2021
  * @param string $goalId
2022
  * Index of the goal to be updated.
2023
- * @param Google_Goal $postBody
2024
  * @param array $optParams Optional parameters.
2025
- * @return Google_Service_Analytics_Goal
2026
  */
2027
- public function patch($accountId, $webPropertyId, $profileId, $goalId, Google_Service_Analytics_Goal $postBody, $optParams = array())
2028
  {
2029
  $params = array('accountId' => $accountId, 'webPropertyId' => $webPropertyId, 'profileId' => $profileId, 'goalId' => $goalId, 'postBody' => $postBody);
2030
  $params = array_merge($params, $optParams);
2031
- return $this->call('patch', array($params), "Google_Service_Analytics_Goal");
2032
  }
2033
  /**
2034
  * Updates an existing view (profile). (goals.update)
@@ -2041,26 +2041,26 @@ class Google_Service_Analytics_ManagementGoals_Resource extends Google_Service_R
2041
  * View (Profile) ID to update the goal.
2042
  * @param string $goalId
2043
  * Index of the goal to be updated.
2044
- * @param Google_Goal $postBody
2045
  * @param array $optParams Optional parameters.
2046
- * @return Google_Service_Analytics_Goal
2047
  */
2048
- public function update($accountId, $webPropertyId, $profileId, $goalId, Google_Service_Analytics_Goal $postBody, $optParams = array())
2049
  {
2050
  $params = array('accountId' => $accountId, 'webPropertyId' => $webPropertyId, 'profileId' => $profileId, 'goalId' => $goalId, 'postBody' => $postBody);
2051
  $params = array_merge($params, $optParams);
2052
- return $this->call('update', array($params), "Google_Service_Analytics_Goal");
2053
  }
2054
  }
2055
  /**
2056
  * The "profileUserLinks" collection of methods.
2057
  * Typical usage is:
2058
  * <code>
2059
- * $analyticsService = new Google_Service_Analytics(...);
2060
  * $profileUserLinks = $analyticsService->profileUserLinks;
2061
  * </code>
2062
  */
2063
- class Google_Service_Analytics_ManagementProfileUserLinks_Resource extends Google_Service_Resource
2064
  {
2065
 
2066
  /**
@@ -2091,15 +2091,15 @@ class Google_Service_Analytics_ManagementProfileUserLinks_Resource extends Googl
2091
  * Web Property ID to create the user link for.
2092
  * @param string $profileId
2093
  * View (Profile) ID to create the user link for.
2094
- * @param Google_EntityUserLink $postBody
2095
  * @param array $optParams Optional parameters.
2096
- * @return Google_Service_Analytics_EntityUserLink
2097
  */
2098
- public function insert($accountId, $webPropertyId, $profileId, Google_Service_Analytics_EntityUserLink $postBody, $optParams = array())
2099
  {
2100
  $params = array('accountId' => $accountId, 'webPropertyId' => $webPropertyId, 'profileId' => $profileId, 'postBody' => $postBody);
2101
  $params = array_merge($params, $optParams);
2102
- return $this->call('insert', array($params), "Google_Service_Analytics_EntityUserLink");
2103
  }
2104
  /**
2105
  * Lists profile-user links for a given view (profile).
@@ -2118,13 +2118,13 @@ class Google_Service_Analytics_ManagementProfileUserLinks_Resource extends Googl
2118
  * @opt_param int start-index
2119
  * An index of the first profile-user link to retrieve. Use this parameter as a pagination
2120
  * mechanism along with the max-results parameter.
2121
- * @return Google_Service_Analytics_EntityUserLinks
2122
  */
2123
  public function listManagementProfileUserLinks($accountId, $webPropertyId, $profileId, $optParams = array())
2124
  {
2125
  $params = array('accountId' => $accountId, 'webPropertyId' => $webPropertyId, 'profileId' => $profileId);
2126
  $params = array_merge($params, $optParams);
2127
- return $this->call('list', array($params), "Google_Service_Analytics_EntityUserLinks");
2128
  }
2129
  /**
2130
  * Updates permissions for an existing user on the given view (profile).
@@ -2138,26 +2138,26 @@ class Google_Service_Analytics_ManagementProfileUserLinks_Resource extends Googl
2138
  * View (Profile ID) to update the user link for.
2139
  * @param string $linkId
2140
  * Link ID to update the user link for.
2141
- * @param Google_EntityUserLink $postBody
2142
  * @param array $optParams Optional parameters.
2143
- * @return Google_Service_Analytics_EntityUserLink
2144
  */
2145
- public function update($accountId, $webPropertyId, $profileId, $linkId, Google_Service_Analytics_EntityUserLink $postBody, $optParams = array())
2146
  {
2147
  $params = array('accountId' => $accountId, 'webPropertyId' => $webPropertyId, 'profileId' => $profileId, 'linkId' => $linkId, 'postBody' => $postBody);
2148
  $params = array_merge($params, $optParams);
2149
- return $this->call('update', array($params), "Google_Service_Analytics_EntityUserLink");
2150
  }
2151
  }
2152
  /**
2153
  * The "profiles" collection of methods.
2154
  * Typical usage is:
2155
  * <code>
2156
- * $analyticsService = new Google_Service_Analytics(...);
2157
  * $profiles = $analyticsService->profiles;
2158
  * </code>
2159
  */
2160
- class Google_Service_Analytics_ManagementProfiles_Resource extends Google_Service_Resource
2161
  {
2162
 
2163
  /**
@@ -2187,13 +2187,13 @@ class Google_Service_Analytics_ManagementProfiles_Resource extends Google_Servic
2187
  * @param string $profileId
2188
  * View (Profile) ID to retrieve the goal for.
2189
  * @param array $optParams Optional parameters.
2190
- * @return Google_Service_Analytics_Profile
2191
  */
2192
  public function get($accountId, $webPropertyId, $profileId, $optParams = array())
2193
  {
2194
  $params = array('accountId' => $accountId, 'webPropertyId' => $webPropertyId, 'profileId' => $profileId);
2195
  $params = array_merge($params, $optParams);
2196
- return $this->call('get', array($params), "Google_Service_Analytics_Profile");
2197
  }
2198
  /**
2199
  * Create a new view (profile). (profiles.insert)
@@ -2202,15 +2202,15 @@ class Google_Service_Analytics_ManagementProfiles_Resource extends Google_Servic
2202
  * Account ID to create the view (profile) for.
2203
  * @param string $webPropertyId
2204
  * Web property ID to create the view (profile) for.
2205
- * @param Google_Profile $postBody
2206
  * @param array $optParams Optional parameters.
2207
- * @return Google_Service_Analytics_Profile
2208
  */
2209
- public function insert($accountId, $webPropertyId, Google_Service_Analytics_Profile $postBody, $optParams = array())
2210
  {
2211
  $params = array('accountId' => $accountId, 'webPropertyId' => $webPropertyId, 'postBody' => $postBody);
2212
  $params = array_merge($params, $optParams);
2213
- return $this->call('insert', array($params), "Google_Service_Analytics_Profile");
2214
  }
2215
  /**
2216
  * Lists views (profiles) to which the user has access.
@@ -2229,13 +2229,13 @@ class Google_Service_Analytics_ManagementProfiles_Resource extends Google_Servic
2229
  * @opt_param int start-index
2230
  * An index of the first entity to retrieve. Use this parameter as a pagination mechanism along
2231
  * with the max-results parameter.
2232
- * @return Google_Service_Analytics_Profiles
2233
  */
2234
  public function listManagementProfiles($accountId, $webPropertyId, $optParams = array())
2235
  {
2236
  $params = array('accountId' => $accountId, 'webPropertyId' => $webPropertyId);
2237
  $params = array_merge($params, $optParams);
2238
- return $this->call('list', array($params), "Google_Service_Analytics_Profiles");
2239
  }
2240
  /**
2241
  * Updates an existing view (profile). This method supports patch semantics.
@@ -2247,15 +2247,15 @@ class Google_Service_Analytics_ManagementProfiles_Resource extends Google_Servic
2247
  * Web property ID to which the view (profile) belongs
2248
  * @param string $profileId
2249
  * ID of the view (profile) to be updated.
2250
- * @param Google_Profile $postBody
2251
  * @param array $optParams Optional parameters.
2252
- * @return Google_Service_Analytics_Profile
2253
  */
2254
- public function patch($accountId, $webPropertyId, $profileId, Google_Service_Analytics_Profile $postBody, $optParams = array())
2255
  {
2256
  $params = array('accountId' => $accountId, 'webPropertyId' => $webPropertyId, 'profileId' => $profileId, 'postBody' => $postBody);
2257
  $params = array_merge($params, $optParams);
2258
- return $this->call('patch', array($params), "Google_Service_Analytics_Profile");
2259
  }
2260
  /**
2261
  * Updates an existing view (profile). (profiles.update)
@@ -2266,26 +2266,26 @@ class Google_Service_Analytics_ManagementProfiles_Resource extends Google_Servic
2266
  * Web property ID to which the view (profile) belongs
2267
  * @param string $profileId
2268
  * ID of the view (profile) to be updated.
2269
- * @param Google_Profile $postBody
2270
  * @param array $optParams Optional parameters.
2271
- * @return Google_Service_Analytics_Profile
2272
  */
2273
- public function update($accountId, $webPropertyId, $profileId, Google_Service_Analytics_Profile $postBody, $optParams = array())
2274
  {
2275
  $params = array('accountId' => $accountId, 'webPropertyId' => $webPropertyId, 'profileId' => $profileId, 'postBody' => $postBody);
2276
  $params = array_merge($params, $optParams);
2277
- return $this->call('update', array($params), "Google_Service_Analytics_Profile");
2278
  }
2279
  }
2280
  /**
2281
  * The "segments" collection of methods.
2282
  * Typical usage is:
2283
  * <code>
2284
- * $analyticsService = new Google_Service_Analytics(...);
2285
  * $segments = $analyticsService->segments;
2286
  * </code>
2287
  */
2288
- class Google_Service_Analytics_ManagementSegments_Resource extends Google_Service_Resource
2289
  {
2290
 
2291
  /**
@@ -2299,24 +2299,24 @@ class Google_Service_Analytics_ManagementSegments_Resource extends Google_Servic
2299
  * @opt_param int start-index
2300
  * An index of the first advanced segment to retrieve. Use this parameter as a pagination mechanism
2301
  * along with the max-results parameter.
2302
- * @return Google_Service_Analytics_Segments
2303
  */
2304
  public function listManagementSegments($optParams = array())
2305
  {
2306
  $params = array();
2307
  $params = array_merge($params, $optParams);
2308
- return $this->call('list', array($params), "Google_Service_Analytics_Segments");
2309
  }
2310
  }
2311
  /**
2312
  * The "uploads" collection of methods.
2313
  * Typical usage is:
2314
  * <code>
2315
- * $analyticsService = new Google_Service_Analytics(...);
2316
  * $uploads = $analyticsService->uploads;
2317
  * </code>
2318
  */
2319
- class Google_Service_Analytics_ManagementUploads_Resource extends Google_Service_Resource
2320
  {
2321
 
2322
  /**
@@ -2328,10 +2328,10 @@ class Google_Service_Analytics_ManagementUploads_Resource extends Google_Service
2328
  * Web property Id for the uploads to be deleted.
2329
  * @param string $customDataSourceId
2330
  * Custom data source Id for the uploads to be deleted.
2331
- * @param Google_AnalyticsDataimportDeleteUploadDataRequest $postBody
2332
  * @param array $optParams Optional parameters.
2333
  */
2334
- public function deleteUploadData($accountId, $webPropertyId, $customDataSourceId, Google_Service_Analytics_AnalyticsDataimportDeleteUploadDataRequest $postBody, $optParams = array())
2335
  {
2336
  $params = array('accountId' => $accountId, 'webPropertyId' => $webPropertyId, 'customDataSourceId' => $customDataSourceId, 'postBody' => $postBody);
2337
  $params = array_merge($params, $optParams);
@@ -2349,13 +2349,13 @@ class Google_Service_Analytics_ManagementUploads_Resource extends Google_Service
2349
  * @param string $uploadId
2350
  * Upload Id to retrieve.
2351
  * @param array $optParams Optional parameters.
2352
- * @return Google_Service_Analytics_Upload
2353
  */
2354
  public function get($accountId, $webPropertyId, $customDataSourceId, $uploadId, $optParams = array())
2355
  {
2356
  $params = array('accountId' => $accountId, 'webPropertyId' => $webPropertyId, 'customDataSourceId' => $customDataSourceId, 'uploadId' => $uploadId);
2357
  $params = array_merge($params, $optParams);
2358
- return $this->call('get', array($params), "Google_Service_Analytics_Upload");
2359
  }
2360
  /**
2361
  * List uploads to which the user has access. (uploads.listManagementUploads)
@@ -2373,13 +2373,13 @@ class Google_Service_Analytics_ManagementUploads_Resource extends Google_Service
2373
  * @opt_param int start-index
2374
  * A 1-based index of the first upload to retrieve. Use this parameter as a pagination mechanism
2375
  * along with the max-results parameter.
2376
- * @return Google_Service_Analytics_Uploads
2377
  */
2378
  public function listManagementUploads($accountId, $webPropertyId, $customDataSourceId, $optParams = array())
2379
  {
2380
  $params = array('accountId' => $accountId, 'webPropertyId' => $webPropertyId, 'customDataSourceId' => $customDataSourceId);
2381
  $params = array_merge($params, $optParams);
2382
- return $this->call('list', array($params), "Google_Service_Analytics_Uploads");
2383
  }
2384
  /**
2385
  * Upload data for a custom data source. (uploads.uploadData)
@@ -2391,24 +2391,24 @@ class Google_Service_Analytics_ManagementUploads_Resource extends Google_Service
2391
  * @param string $customDataSourceId
2392
  * Custom data source Id to which the data being uploaded belongs.
2393
  * @param array $optParams Optional parameters.
2394
- * @return Google_Service_Analytics_Upload
2395
  */
2396
  public function uploadData($accountId, $webPropertyId, $customDataSourceId, $optParams = array())
2397
  {
2398
  $params = array('accountId' => $accountId, 'webPropertyId' => $webPropertyId, 'customDataSourceId' => $customDataSourceId);
2399
  $params = array_merge($params, $optParams);
2400
- return $this->call('uploadData', array($params), "Google_Service_Analytics_Upload");
2401
  }
2402
  }
2403
  /**
2404
  * The "webproperties" collection of methods.
2405
  * Typical usage is:
2406
  * <code>
2407
- * $analyticsService = new Google_Service_Analytics(...);
2408
  * $webproperties = $analyticsService->webproperties;
2409
  * </code>
2410
  */
2411
- class Google_Service_Analytics_ManagementWebproperties_Resource extends Google_Service_Resource
2412
  {
2413
 
2414
  /**
@@ -2419,13 +2419,13 @@ class Google_Service_Analytics_ManagementWebproperties_Resource extends Google_S
2419
  * @param string $webPropertyId
2420
  * ID to retrieve the web property for.
2421
  * @param array $optParams Optional parameters.
2422
- * @return Google_Service_Analytics_Webproperty
2423
  */
2424
  public function get($accountId, $webPropertyId, $optParams = array())
2425
  {
2426
  $params = array('accountId' => $accountId, 'webPropertyId' => $webPropertyId);
2427
  $params = array_merge($params, $optParams);
2428
- return $this->call('get', array($params), "Google_Service_Analytics_Webproperty");
2429
  }
2430
  /**
2431
  * Create a new property if the account has fewer than 20 properties. Web
@@ -2434,15 +2434,15 @@ class Google_Service_Analytics_ManagementWebproperties_Resource extends Google_S
2434
  *
2435
  * @param string $accountId
2436
  * Account ID to create the web property for.
2437
- * @param Google_Webproperty $postBody
2438
  * @param array $optParams Optional parameters.
2439
- * @return Google_Service_Analytics_Webproperty
2440
  */
2441
- public function insert($accountId, Google_Service_Analytics_Webproperty $postBody, $optParams = array())
2442
  {
2443
  $params = array('accountId' => $accountId, 'postBody' => $postBody);
2444
  $params = array_merge($params, $optParams);
2445
- return $this->call('insert', array($params), "Google_Service_Analytics_Webproperty");
2446
  }
2447
  /**
2448
  * Lists web properties to which the user has access.
@@ -2458,13 +2458,13 @@ class Google_Service_Analytics_ManagementWebproperties_Resource extends Google_S
2458
  * @opt_param int start-index
2459
  * An index of the first entity to retrieve. Use this parameter as a pagination mechanism along
2460
  * with the max-results parameter.
2461
- * @return Google_Service_Analytics_Webproperties
2462
  */
2463
  public function listManagementWebproperties($accountId, $optParams = array())
2464
  {
2465
  $params = array('accountId' => $accountId);
2466
  $params = array_merge($params, $optParams);
2467
- return $this->call('list', array($params), "Google_Service_Analytics_Webproperties");
2468
  }
2469
  /**
2470
  * Updates an existing web property. This method supports patch semantics.
@@ -2474,15 +2474,15 @@ class Google_Service_Analytics_ManagementWebproperties_Resource extends Google_S
2474
  * Account ID to which the web property belongs
2475
  * @param string $webPropertyId
2476
  * Web property ID
2477
- * @param Google_Webproperty $postBody
2478
  * @param array $optParams Optional parameters.
2479
- * @return Google_Service_Analytics_Webproperty
2480
  */
2481
- public function patch($accountId, $webPropertyId, Google_Service_Analytics_Webproperty $postBody, $optParams = array())
2482
  {
2483
  $params = array('accountId' => $accountId, 'webPropertyId' => $webPropertyId, 'postBody' => $postBody);
2484
  $params = array_merge($params, $optParams);
2485
- return $this->call('patch', array($params), "Google_Service_Analytics_Webproperty");
2486
  }
2487
  /**
2488
  * Updates an existing web property. (webproperties.update)
@@ -2491,26 +2491,26 @@ class Google_Service_Analytics_ManagementWebproperties_Resource extends Google_S
2491
  * Account ID to which the web property belongs
2492
  * @param string $webPropertyId
2493
  * Web property ID
2494
- * @param Google_Webproperty $postBody
2495
  * @param array $optParams Optional parameters.
2496
- * @return Google_Service_Analytics_Webproperty
2497
  */
2498
- public function update($accountId, $webPropertyId, Google_Service_Analytics_Webproperty $postBody, $optParams = array())
2499
  {
2500
  $params = array('accountId' => $accountId, 'webPropertyId' => $webPropertyId, 'postBody' => $postBody);
2501
  $params = array_merge($params, $optParams);
2502
- return $this->call('update', array($params), "Google_Service_Analytics_Webproperty");
2503
  }
2504
  }
2505
  /**
2506
  * The "webpropertyUserLinks" collection of methods.
2507
  * Typical usage is:
2508
  * <code>
2509
- * $analyticsService = new Google_Service_Analytics(...);
2510
  * $webpropertyUserLinks = $analyticsService->webpropertyUserLinks;
2511
  * </code>
2512
  */
2513
- class Google_Service_Analytics_ManagementWebpropertyUserLinks_Resource extends Google_Service_Resource
2514
  {
2515
 
2516
  /**
@@ -2537,15 +2537,15 @@ class Google_Service_Analytics_ManagementWebpropertyUserLinks_Resource extends G
2537
  * Account ID to create the user link for.
2538
  * @param string $webPropertyId
2539
  * Web Property ID to create the user link for.
2540
- * @param Google_EntityUserLink $postBody
2541
  * @param array $optParams Optional parameters.
2542
- * @return Google_Service_Analytics_EntityUserLink
2543
  */
2544
- public function insert($accountId, $webPropertyId, Google_Service_Analytics_EntityUserLink $postBody, $optParams = array())
2545
  {
2546
  $params = array('accountId' => $accountId, 'webPropertyId' => $webPropertyId, 'postBody' => $postBody);
2547
  $params = array_merge($params, $optParams);
2548
- return $this->call('insert', array($params), "Google_Service_Analytics_EntityUserLink");
2549
  }
2550
  /**
2551
  * Lists webProperty-user links for a given web property.
@@ -2562,13 +2562,13 @@ class Google_Service_Analytics_ManagementWebpropertyUserLinks_Resource extends G
2562
  * @opt_param int start-index
2563
  * An index of the first webProperty-user link to retrieve. Use this parameter as a pagination
2564
  * mechanism along with the max-results parameter.
2565
- * @return Google_Service_Analytics_EntityUserLinks
2566
  */
2567
  public function listManagementWebpropertyUserLinks($accountId, $webPropertyId, $optParams = array())
2568
  {
2569
  $params = array('accountId' => $accountId, 'webPropertyId' => $webPropertyId);
2570
  $params = array_merge($params, $optParams);
2571
- return $this->call('list', array($params), "Google_Service_Analytics_EntityUserLinks");
2572
  }
2573
  /**
2574
  * Updates permissions for an existing user on the given web property.
@@ -2580,15 +2580,15 @@ class Google_Service_Analytics_ManagementWebpropertyUserLinks_Resource extends G
2580
  * Web property ID to update the account-user link for.
2581
  * @param string $linkId
2582
  * Link ID to update the account-user link for.
2583
- * @param Google_EntityUserLink $postBody
2584
  * @param array $optParams Optional parameters.
2585
- * @return Google_Service_Analytics_EntityUserLink
2586
  */
2587
- public function update($accountId, $webPropertyId, $linkId, Google_Service_Analytics_EntityUserLink $postBody, $optParams = array())
2588
  {
2589
  $params = array('accountId' => $accountId, 'webPropertyId' => $webPropertyId, 'linkId' => $linkId, 'postBody' => $postBody);
2590
  $params = array_merge($params, $optParams);
2591
- return $this->call('update', array($params), "Google_Service_Analytics_EntityUserLink");
2592
  }
2593
  }
2594
 
@@ -2596,11 +2596,11 @@ class Google_Service_Analytics_ManagementWebpropertyUserLinks_Resource extends G
2596
  * The "metadata" collection of methods.
2597
  * Typical usage is:
2598
  * <code>
2599
- * $analyticsService = new Google_Service_Analytics(...);
2600
  * $metadata = $analyticsService->metadata;
2601
  * </code>
2602
  */
2603
- class Google_Service_Analytics_Metadata_Resource extends Google_Service_Resource
2604
  {
2605
 
2606
  }
@@ -2609,11 +2609,11 @@ class Google_Service_Analytics_Metadata_Resource extends Google_Service_Resource
2609
  * The "columns" collection of methods.
2610
  * Typical usage is:
2611
  * <code>
2612
- * $analyticsService = new Google_Service_Analytics(...);
2613
  * $columns = $analyticsService->columns;
2614
  * </code>
2615
  */
2616
- class Google_Service_Analytics_MetadataColumns_Resource extends Google_Service_Resource
2617
  {
2618
 
2619
  /**
@@ -2622,33 +2622,33 @@ class Google_Service_Analytics_MetadataColumns_Resource extends Google_Service_R
2622
  * @param string $reportType
2623
  * Report type. Allowed Values: 'ga'. Where 'ga' corresponds to the Core Reporting API
2624
  * @param array $optParams Optional parameters.
2625
- * @return Google_Service_Analytics_Columns
2626
  */
2627
  public function listMetadataColumns($reportType, $optParams = array())
2628
  {
2629
  $params = array('reportType' => $reportType);
2630
  $params = array_merge($params, $optParams);
2631
- return $this->call('list', array($params), "Google_Service_Analytics_Columns");
2632
  }
2633
  }
2634
 
2635
 
2636
 
2637
 
2638
- class Google_Service_Analytics_Account extends Google_Model
2639
  {
2640
- protected $childLinkType = 'Google_Service_Analytics_AccountChildLink';
2641
  protected $childLinkDataType = '';
2642
  public $created;
2643
  public $id;
2644
  public $kind;
2645
  public $name;
2646
- protected $permissionsType = 'Google_Service_Analytics_AccountPermissions';
2647
  protected $permissionsDataType = '';
2648
  public $selfLink;
2649
  public $updated;
2650
 
2651
- public function setChildLink(Google_Service_Analytics_AccountChildLink $childLink)
2652
  {
2653
  $this->childLink = $childLink;
2654
  }
@@ -2698,7 +2698,7 @@ class Google_Service_Analytics_Account extends Google_Model
2698
  return $this->name;
2699
  }
2700
 
2701
- public function setPermissions(Google_Service_Analytics_AccountPermissions $permissions)
2702
  {
2703
  $this->permissions = $permissions;
2704
  }
@@ -2729,7 +2729,7 @@ class Google_Service_Analytics_Account extends Google_Model
2729
  }
2730
  }
2731
 
2732
- class Google_Service_Analytics_AccountChildLink extends Google_Model
2733
  {
2734
  public $href;
2735
  public $type;
@@ -2755,7 +2755,7 @@ class Google_Service_Analytics_AccountChildLink extends Google_Model
2755
  }
2756
  }
2757
 
2758
- class Google_Service_Analytics_AccountPermissions extends Google_Collection
2759
  {
2760
  public $effective;
2761
 
@@ -2770,7 +2770,7 @@ class Google_Service_Analytics_AccountPermissions extends Google_Collection
2770
  }
2771
  }
2772
 
2773
- class Google_Service_Analytics_AccountRef extends Google_Model
2774
  {
2775
  public $href;
2776
  public $id;
@@ -2818,9 +2818,9 @@ class Google_Service_Analytics_AccountRef extends Google_Model
2818
  }
2819
  }
2820
 
2821
- class Google_Service_Analytics_AccountSummaries extends Google_Collection
2822
  {
2823
- protected $itemsType = 'Google_Service_Analytics_AccountSummary';
2824
  protected $itemsDataType = 'array';
2825
  public $itemsPerPage;
2826
  public $kind;
@@ -2911,12 +2911,12 @@ class Google_Service_Analytics_AccountSummaries extends Google_Collection
2911
  }
2912
  }
2913
 
2914
- class Google_Service_Analytics_AccountSummary extends Google_Collection
2915
  {
2916
  public $id;
2917
  public $kind;
2918
  public $name;
2919
- protected $webPropertiesType = 'Google_Service_Analytics_WebPropertySummary';
2920
  protected $webPropertiesDataType = 'array';
2921
 
2922
  public function setId($id)
@@ -2960,9 +2960,9 @@ class Google_Service_Analytics_AccountSummary extends Google_Collection
2960
  }
2961
  }
2962
 
2963
- class Google_Service_Analytics_Accounts extends Google_Collection
2964
  {
2965
- protected $itemsType = 'Google_Service_Analytics_Account';
2966
  protected $itemsDataType = 'array';
2967
  public $itemsPerPage;
2968
  public $kind;
@@ -3053,7 +3053,7 @@ class Google_Service_Analytics_Accounts extends Google_Collection
3053
  }
3054
  }
3055
 
3056
- class Google_Service_Analytics_AnalyticsDataimportDeleteUploadDataRequest extends Google_Collection
3057
  {
3058
  public $customDataImportUids;
3059
 
@@ -3068,7 +3068,7 @@ class Google_Service_Analytics_AnalyticsDataimportDeleteUploadDataRequest extend
3068
  }
3069
  }
3070
 
3071
- class Google_Service_Analytics_Column extends Google_Model
3072
  {
3073
  public $attributes;
3074
  public $id;
@@ -3105,11 +3105,11 @@ class Google_Service_Analytics_Column extends Google_Model
3105
  }
3106
  }
3107
 
3108
- class Google_Service_Analytics_Columns extends Google_Collection
3109
  {
3110
  public $attributeNames;
3111
  public $etag;
3112
- protected $itemsType = 'Google_Service_Analytics_Column';
3113
  protected $itemsDataType = 'array';
3114
  public $kind;
3115
  public $totalResults;
@@ -3165,17 +3165,17 @@ class Google_Service_Analytics_Columns extends Google_Collection
3165
  }
3166
  }
3167
 
3168
- class Google_Service_Analytics_CustomDataSource extends Google_Collection
3169
  {
3170
  public $accountId;
3171
- protected $childLinkType = 'Google_Service_Analytics_CustomDataSourceChildLink';
3172
  protected $childLinkDataType = '';
3173
  public $created;
3174
  public $description;
3175
  public $id;
3176
  public $kind;
3177
  public $name;
3178
- protected $parentLinkType = 'Google_Service_Analytics_CustomDataSourceParentLink';
3179
  protected $parentLinkDataType = '';
3180
  public $profilesLinked;
3181
  public $selfLink;
@@ -3193,7 +3193,7 @@ class Google_Service_Analytics_CustomDataSource extends Google_Collection
3193
  return $this->accountId;
3194
  }
3195
 
3196
- public function setChildLink(Google_Service_Analytics_CustomDataSourceChildLink $childLink)
3197
  {
3198
  $this->childLink = $childLink;
3199
  }
@@ -3253,7 +3253,7 @@ class Google_Service_Analytics_CustomDataSource extends Google_Collection
3253
  return $this->name;
3254
  }
3255
 
3256
- public function setParentLink(Google_Service_Analytics_CustomDataSourceParentLink $parentLink)
3257
  {
3258
  $this->parentLink = $parentLink;
3259
  }
@@ -3314,7 +3314,7 @@ class Google_Service_Analytics_CustomDataSource extends Google_Collection
3314
  }
3315
  }
3316
 
3317
- class Google_Service_Analytics_CustomDataSourceChildLink extends Google_Model
3318
  {
3319
  public $href;
3320
  public $type;
@@ -3340,7 +3340,7 @@ class Google_Service_Analytics_CustomDataSourceChildLink extends Google_Model
3340
  }
3341
  }
3342
 
3343
- class Google_Service_Analytics_CustomDataSourceParentLink extends Google_Model
3344
  {
3345
  public $href;
3346
  public $type;
@@ -3366,9 +3366,9 @@ class Google_Service_Analytics_CustomDataSourceParentLink extends Google_Model
3366
  }
3367
  }
3368
 
3369
- class Google_Service_Analytics_CustomDataSources extends Google_Collection
3370
  {
3371
- protected $itemsType = 'Google_Service_Analytics_CustomDataSource';
3372
  protected $itemsDataType = 'array';
3373
  public $itemsPerPage;
3374
  public $kind;
@@ -3459,7 +3459,7 @@ class Google_Service_Analytics_CustomDataSources extends Google_Collection
3459
  }
3460
  }
3461
 
3462
- class Google_Service_Analytics_DailyUpload extends Google_Collection
3463
  {
3464
  public $accountId;
3465
  public $appendCount;
@@ -3468,9 +3468,9 @@ class Google_Service_Analytics_DailyUpload extends Google_Collection
3468
  public $date;
3469
  public $kind;
3470
  public $modifiedTime;
3471
- protected $parentLinkType = 'Google_Service_Analytics_DailyUploadParentLink';
3472
  protected $parentLinkDataType = '';
3473
- protected $recentChangesType = 'Google_Service_Analytics_DailyUploadRecentChanges';
3474
  protected $recentChangesDataType = 'array';
3475
  public $selfLink;
3476
  public $webPropertyId;
@@ -3545,7 +3545,7 @@ class Google_Service_Analytics_DailyUpload extends Google_Collection
3545
  return $this->modifiedTime;
3546
  }
3547
 
3548
- public function setParentLink(Google_Service_Analytics_DailyUploadParentLink $parentLink)
3549
  {
3550
  $this->parentLink = $parentLink;
3551
  }
@@ -3586,7 +3586,7 @@ class Google_Service_Analytics_DailyUpload extends Google_Collection
3586
  }
3587
  }
3588
 
3589
- class Google_Service_Analytics_DailyUploadAppend extends Google_Model
3590
  {
3591
  public $accountId;
3592
  public $appendNumber;
@@ -3667,7 +3667,7 @@ class Google_Service_Analytics_DailyUploadAppend extends Google_Model
3667
  }
3668
  }
3669
 
3670
- class Google_Service_Analytics_DailyUploadParentLink extends Google_Model
3671
  {
3672
  public $href;
3673
  public $type;
@@ -3693,7 +3693,7 @@ class Google_Service_Analytics_DailyUploadParentLink extends Google_Model
3693
  }
3694
  }
3695
 
3696
- class Google_Service_Analytics_DailyUploadRecentChanges extends Google_Model
3697
  {
3698
  public $change;
3699
  public $time;
@@ -3719,9 +3719,9 @@ class Google_Service_Analytics_DailyUploadRecentChanges extends Google_Model
3719
  }
3720
  }
3721
 
3722
- class Google_Service_Analytics_DailyUploads extends Google_Collection
3723
  {
3724
- protected $itemsType = 'Google_Service_Analytics_DailyUpload';
3725
  protected $itemsDataType = 'array';
3726
  public $itemsPerPage;
3727
  public $kind;
@@ -3812,19 +3812,19 @@ class Google_Service_Analytics_DailyUploads extends Google_Collection
3812
  }
3813
  }
3814
 
3815
- class Google_Service_Analytics_EntityUserLink extends Google_Model
3816
  {
3817
- protected $entityType = 'Google_Service_Analytics_EntityUserLinkEntity';
3818
  protected $entityDataType = '';
3819
  public $id;
3820
  public $kind;
3821
- protected $permissionsType = 'Google_Service_Analytics_EntityUserLinkPermissions';
3822
  protected $permissionsDataType = '';
3823
  public $selfLink;
3824
- protected $userRefType = 'Google_Service_Analytics_UserRef';
3825
  protected $userRefDataType = '';
3826
 
3827
- public function setEntity(Google_Service_Analytics_EntityUserLinkEntity $entity)
3828
  {
3829
  $this->entity = $entity;
3830
  }
@@ -3854,7 +3854,7 @@ class Google_Service_Analytics_EntityUserLink extends Google_Model
3854
  return $this->kind;
3855
  }
3856
 
3857
- public function setPermissions(Google_Service_Analytics_EntityUserLinkPermissions $permissions)
3858
  {
3859
  $this->permissions = $permissions;
3860
  }
@@ -3874,7 +3874,7 @@ class Google_Service_Analytics_EntityUserLink extends Google_Model
3874
  return $this->selfLink;
3875
  }
3876
 
3877
- public function setUserRef(Google_Service_Analytics_UserRef $userRef)
3878
  {
3879
  $this->userRef = $userRef;
3880
  }
@@ -3885,16 +3885,16 @@ class Google_Service_Analytics_EntityUserLink extends Google_Model
3885
  }
3886
  }
3887
 
3888
- class Google_Service_Analytics_EntityUserLinkEntity extends Google_Model
3889
  {
3890
- protected $accountRefType = 'Google_Service_Analytics_AccountRef';
3891
  protected $accountRefDataType = '';
3892
- protected $profileRefType = 'Google_Service_Analytics_ProfileRef';
3893
  protected $profileRefDataType = '';
3894
- protected $webPropertyRefType = 'Google_Service_Analytics_WebPropertyRef';
3895
  protected $webPropertyRefDataType = '';
3896
 
3897
- public function setAccountRef(Google_Service_Analytics_AccountRef $accountRef)
3898
  {
3899
  $this->accountRef = $accountRef;
3900
  }
@@ -3904,7 +3904,7 @@ class Google_Service_Analytics_EntityUserLinkEntity extends Google_Model
3904
  return $this->accountRef;
3905
  }
3906
 
3907
- public function setProfileRef(Google_Service_Analytics_ProfileRef $profileRef)
3908
  {
3909
  $this->profileRef = $profileRef;
3910
  }
@@ -3914,7 +3914,7 @@ class Google_Service_Analytics_EntityUserLinkEntity extends Google_Model
3914
  return $this->profileRef;
3915
  }
3916
 
3917
- public function setWebPropertyRef(Google_Service_Analytics_WebPropertyRef $webPropertyRef)
3918
  {
3919
  $this->webPropertyRef = $webPropertyRef;
3920
  }
@@ -3925,7 +3925,7 @@ class Google_Service_Analytics_EntityUserLinkEntity extends Google_Model
3925
  }
3926
  }
3927
 
3928
- class Google_Service_Analytics_EntityUserLinkPermissions extends Google_Collection
3929
  {
3930
  public $effective;
3931
  public $local;
@@ -3951,9 +3951,9 @@ class Google_Service_Analytics_EntityUserLinkPermissions extends Google_Collecti
3951
  }
3952
  }
3953
 
3954
- class Google_Service_Analytics_EntityUserLinks extends Google_Collection
3955
  {
3956
- protected $itemsType = 'Google_Service_Analytics_EntityUserLink';
3957
  protected $itemsDataType = 'array';
3958
  public $itemsPerPage;
3959
  public $kind;
@@ -4033,7 +4033,7 @@ class Google_Service_Analytics_EntityUserLinks extends Google_Collection
4033
  }
4034
  }
4035
 
4036
- class Google_Service_Analytics_Experiment extends Google_Collection
4037
  {
4038
  public $accountId;
4039
  public $created;
@@ -4048,7 +4048,7 @@ class Google_Service_Analytics_Experiment extends Google_Collection
4048
  public $name;
4049
  public $objectiveMetric;
4050
  public $optimizationType;
4051
- protected $parentLinkType = 'Google_Service_Analytics_ExperimentParentLink';
4052
  protected $parentLinkDataType = '';
4053
  public $profileId;
4054
  public $reasonExperimentEnded;
@@ -4060,7 +4060,7 @@ class Google_Service_Analytics_Experiment extends Google_Collection
4060
  public $status;
4061
  public $trafficCoverage;
4062
  public $updated;
4063
- protected $variationsType = 'Google_Service_Analytics_ExperimentVariations';
4064
  protected $variationsDataType = 'array';
4065
  public $webPropertyId;
4066
  public $winnerConfidenceLevel;
@@ -4196,7 +4196,7 @@ class Google_Service_Analytics_Experiment extends Google_Collection
4196
  return $this->optimizationType;
4197
  }
4198
 
4199
- public function setParentLink(Google_Service_Analytics_ExperimentParentLink $parentLink)
4200
  {
4201
  $this->parentLink = $parentLink;
4202
  }
@@ -4347,7 +4347,7 @@ class Google_Service_Analytics_Experiment extends Google_Collection
4347
  }
4348
  }
4349
 
4350
- class Google_Service_Analytics_ExperimentParentLink extends Google_Model
4351
  {
4352
  public $href;
4353
  public $type;
@@ -4373,7 +4373,7 @@ class Google_Service_Analytics_ExperimentParentLink extends Google_Model
4373
  }
4374
  }
4375
 
4376
- class Google_Service_Analytics_ExperimentVariations extends Google_Model
4377
  {
4378
  public $name;
4379
  public $status;
@@ -4432,9 +4432,9 @@ class Google_Service_Analytics_ExperimentVariations extends Google_Model
4432
  }
4433
  }
4434
 
4435
- class Google_Service_Analytics_Experiments extends Google_Collection
4436
  {
4437
- protected $itemsType = 'Google_Service_Analytics_Experiment';
4438
  protected $itemsDataType = 'array';
4439
  public $itemsPerPage;
4440
  public $kind;
@@ -4525,21 +4525,21 @@ class Google_Service_Analytics_Experiments extends Google_Collection
4525
  }
4526
  }
4527
 
4528
- class Google_Service_Analytics_GaData extends Google_Collection
4529
  {
4530
- protected $columnHeadersType = 'Google_Service_Analytics_GaDataColumnHeaders';
4531
  protected $columnHeadersDataType = 'array';
4532
  public $containsSampledData;
4533
- protected $dataTableType = 'Google_Service_Analytics_GaDataDataTable';
4534
  protected $dataTableDataType = '';
4535
  public $id;
4536
  public $itemsPerPage;
4537
  public $kind;
4538
  public $nextLink;
4539
  public $previousLink;
4540
- protected $profileInfoType = 'Google_Service_Analytics_GaDataProfileInfo';
4541
  protected $profileInfoDataType = '';
4542
- protected $queryType = 'Google_Service_Analytics_GaDataQuery';
4543
  protected $queryDataType = '';
4544
  public $rows;
4545
  public $sampleSize;
@@ -4568,7 +4568,7 @@ class Google_Service_Analytics_GaData extends Google_Collection
4568
  return $this->containsSampledData;
4569
  }
4570
 
4571
- public function setDataTable(Google_Service_Analytics_GaDataDataTable $dataTable)
4572
  {
4573
  $this->dataTable = $dataTable;
4574
  }
@@ -4628,7 +4628,7 @@ class Google_Service_Analytics_GaData extends Google_Collection
4628
  return $this->previousLink;
4629
  }
4630
 
4631
- public function setProfileInfo(Google_Service_Analytics_GaDataProfileInfo $profileInfo)
4632
  {
4633
  $this->profileInfo = $profileInfo;
4634
  }
@@ -4638,7 +4638,7 @@ class Google_Service_Analytics_GaData extends Google_Collection
4638
  return $this->profileInfo;
4639
  }
4640
 
4641
- public function setQuery(Google_Service_Analytics_GaDataQuery $query)
4642
  {
4643
  $this->query = $query;
4644
  }
@@ -4709,7 +4709,7 @@ class Google_Service_Analytics_GaData extends Google_Collection
4709
  }
4710
  }
4711
 
4712
- class Google_Service_Analytics_GaDataColumnHeaders extends Google_Model
4713
  {
4714
  public $columnType;
4715
  public $dataType;
@@ -4746,11 +4746,11 @@ class Google_Service_Analytics_GaDataColumnHeaders extends Google_Model
4746
  }
4747
  }
4748
 
4749
- class Google_Service_Analytics_GaDataDataTable extends Google_Collection
4750
  {
4751
- protected $colsType = 'Google_Service_Analytics_GaDataDataTableCols';
4752
  protected $colsDataType = 'array';
4753
- protected $rowsType = 'Google_Service_Analytics_GaDataDataTableRows';
4754
  protected $rowsDataType = 'array';
4755
 
4756
  public function setCols($cols)
@@ -4774,7 +4774,7 @@ class Google_Service_Analytics_GaDataDataTable extends Google_Collection
4774
  }
4775
  }
4776
 
4777
- class Google_Service_Analytics_GaDataDataTableCols extends Google_Model
4778
  {
4779
  public $id;
4780
  public $label;
@@ -4811,9 +4811,9 @@ class Google_Service_Analytics_GaDataDataTableCols extends Google_Model
4811
  }
4812
  }
4813
 
4814
- class Google_Service_Analytics_GaDataDataTableRows extends Google_Collection
4815
  {
4816
- protected $cType = 'Google_Service_Analytics_GaDataDataTableRowsC';
4817
  protected $cDataType = 'array';
4818
 
4819
  public function setC($c)
@@ -4827,7 +4827,7 @@ class Google_Service_Analytics_GaDataDataTableRows extends Google_Collection
4827
  }
4828
  }
4829
 
4830
- class Google_Service_Analytics_GaDataDataTableRowsC extends Google_Model
4831
  {
4832
  public $v;
4833
 
@@ -4842,7 +4842,7 @@ class Google_Service_Analytics_GaDataDataTableRowsC extends Google_Model
4842
  }
4843
  }
4844
 
4845
- class Google_Service_Analytics_GaDataProfileInfo extends Google_Model
4846
  {
4847
  public $accountId;
4848
  public $internalWebPropertyId;
@@ -4912,7 +4912,7 @@ class Google_Service_Analytics_GaDataProfileInfo extends Google_Model
4912
  }
4913
  }
4914
 
4915
- class Google_Service_Analytics_GaDataQuery extends Google_Collection
4916
  {
4917
  public $dimensions;
4918
  public $endDate;
@@ -5037,29 +5037,29 @@ class Google_Service_Analytics_GaDataQuery extends Google_Collection
5037
  }
5038
  }
5039
 
5040
- class Google_Service_Analytics_Goal extends Google_Model
5041
  {
5042
  public $accountId;
5043
  public $active;
5044
  public $created;
5045
- protected $eventDetailsType = 'Google_Service_Analytics_GoalEventDetails';
5046
  protected $eventDetailsDataType = '';
5047
  public $id;
5048
  public $internalWebPropertyId;
5049
  public $kind;
5050
  public $name;
5051
- protected $parentLinkType = 'Google_Service_Analytics_GoalParentLink';
5052
  protected $parentLinkDataType = '';
5053
  public $profileId;
5054
  public $selfLink;
5055
  public $type;
5056
  public $updated;
5057
- protected $urlDestinationDetailsType = 'Google_Service_Analytics_GoalUrlDestinationDetails';
5058
  protected $urlDestinationDetailsDataType = '';
5059
  public $value;
5060
- protected $visitNumPagesDetailsType = 'Google_Service_Analytics_GoalVisitNumPagesDetails';
5061
  protected $visitNumPagesDetailsDataType = '';
5062
- protected $visitTimeOnSiteDetailsType = 'Google_Service_Analytics_GoalVisitTimeOnSiteDetails';
5063
  protected $visitTimeOnSiteDetailsDataType = '';
5064
  public $webPropertyId;
5065
 
@@ -5093,7 +5093,7 @@ class Google_Service_Analytics_Goal extends Google_Model
5093
  return $this->created;
5094
  }
5095
 
5096
- public function setEventDetails(Google_Service_Analytics_GoalEventDetails $eventDetails)
5097
  {
5098
  $this->eventDetails = $eventDetails;
5099
  }
@@ -5143,7 +5143,7 @@ class Google_Service_Analytics_Goal extends Google_Model
5143
  return $this->name;
5144
  }
5145
 
5146
- public function setParentLink(Google_Service_Analytics_GoalParentLink $parentLink)
5147
  {
5148
  $this->parentLink = $parentLink;
5149
  }
@@ -5193,7 +5193,7 @@ class Google_Service_Analytics_Goal extends Google_Model
5193
  return $this->updated;
5194
  }
5195
 
5196
- public function setUrlDestinationDetails(Google_Service_Analytics_GoalUrlDestinationDetails $urlDestinationDetails)
5197
  {
5198
  $this->urlDestinationDetails = $urlDestinationDetails;
5199
  }
@@ -5213,7 +5213,7 @@ class Google_Service_Analytics_Goal extends Google_Model
5213
  return $this->value;
5214
  }
5215
 
5216
- public function setVisitNumPagesDetails(Google_Service_Analytics_GoalVisitNumPagesDetails $visitNumPagesDetails)
5217
  {
5218
  $this->visitNumPagesDetails = $visitNumPagesDetails;
5219
  }
@@ -5223,7 +5223,7 @@ class Google_Service_Analytics_Goal extends Google_Model
5223
  return $this->visitNumPagesDetails;
5224
  }
5225
 
5226
- public function setVisitTimeOnSiteDetails(Google_Service_Analytics_GoalVisitTimeOnSiteDetails $visitTimeOnSiteDetails)
5227
  {
5228
  $this->visitTimeOnSiteDetails = $visitTimeOnSiteDetails;
5229
  }
@@ -5244,9 +5244,9 @@ class Google_Service_Analytics_Goal extends Google_Model
5244
  }
5245
  }
5246
 
5247
- class Google_Service_Analytics_GoalEventDetails extends Google_Collection
5248
  {
5249
- protected $eventConditionsType = 'Google_Service_Analytics_GoalEventDetailsEventConditions';
5250
  protected $eventConditionsDataType = 'array';
5251
  public $useEventValue;
5252
 
@@ -5271,7 +5271,7 @@ class Google_Service_Analytics_GoalEventDetails extends Google_Collection
5271
  }
5272
  }
5273
 
5274
- class Google_Service_Analytics_GoalEventDetailsEventConditions extends Google_Model
5275
  {
5276
  public $comparisonType;
5277
  public $comparisonValue;
@@ -5330,7 +5330,7 @@ class Google_Service_Analytics_GoalEventDetailsEventConditions extends Google_Mo
5330
  }
5331
  }
5332
 
5333
- class Google_Service_Analytics_GoalParentLink extends Google_Model
5334
  {
5335
  public $href;
5336
  public $type;
@@ -5356,12 +5356,12 @@ class Google_Service_Analytics_GoalParentLink extends Google_Model
5356
  }
5357
  }
5358
 
5359
- class Google_Service_Analytics_GoalUrlDestinationDetails extends Google_Collection
5360
  {
5361
  public $caseSensitive;
5362
  public $firstStepRequired;
5363
  public $matchType;
5364
- protected $stepsType = 'Google_Service_Analytics_GoalUrlDestinationDetailsSteps';
5365
  protected $stepsDataType = 'array';
5366
  public $url;
5367
 
@@ -5416,7 +5416,7 @@ class Google_Service_Analytics_GoalUrlDestinationDetails extends Google_Collecti
5416
  }
5417
  }
5418
 
5419
- class Google_Service_Analytics_GoalUrlDestinationDetailsSteps extends Google_Model
5420
  {
5421
  public $name;
5422
  public $number;
@@ -5453,7 +5453,7 @@ class Google_Service_Analytics_GoalUrlDestinationDetailsSteps extends Google_Mod
5453
  }
5454
  }
5455
 
5456
- class Google_Service_Analytics_GoalVisitNumPagesDetails extends Google_Model
5457
  {
5458
  public $comparisonType;
5459
  public $comparisonValue;
@@ -5479,7 +5479,7 @@ class Google_Service_Analytics_GoalVisitNumPagesDetails extends Google_Model
5479
  }
5480
  }
5481
 
5482
- class Google_Service_Analytics_GoalVisitTimeOnSiteDetails extends Google_Model
5483
  {
5484
  public $comparisonType;
5485
  public $comparisonValue;
@@ -5505,9 +5505,9 @@ class Google_Service_Analytics_GoalVisitTimeOnSiteDetails extends Google_Model
5505
  }
5506
  }
5507
 
5508
- class Google_Service_Analytics_Goals extends Google_Collection
5509
  {
5510
- protected $itemsType = 'Google_Service_Analytics_Goal';
5511
  protected $itemsDataType = 'array';
5512
  public $itemsPerPage;
5513
  public $kind;
@@ -5598,9 +5598,9 @@ class Google_Service_Analytics_Goals extends Google_Collection
5598
  }
5599
  }
5600
 
5601
- class Google_Service_Analytics_McfData extends Google_Collection
5602
  {
5603
- protected $columnHeadersType = 'Google_Service_Analytics_McfDataColumnHeaders';
5604
  protected $columnHeadersDataType = 'array';
5605
  public $containsSampledData;
5606
  public $id;
@@ -5608,11 +5608,11 @@ class Google_Service_Analytics_McfData extends Google_Collection
5608
  public $kind;
5609
  public $nextLink;
5610
  public $previousLink;
5611
- protected $profileInfoType = 'Google_Service_Analytics_McfDataProfileInfo';
5612
  protected $profileInfoDataType = '';
5613
- protected $queryType = 'Google_Service_Analytics_McfDataQuery';
5614
  protected $queryDataType = '';
5615
- protected $rowsType = 'Google_Service_Analytics_McfDataRows';
5616
  protected $rowsDataType = 'array';
5617
  public $sampleSize;
5618
  public $sampleSpace;
@@ -5690,7 +5690,7 @@ class Google_Service_Analytics_McfData extends Google_Collection
5690
  return $this->previousLink;
5691
  }
5692
 
5693
- public function setProfileInfo(Google_Service_Analytics_McfDataProfileInfo $profileInfo)
5694
  {
5695
  $this->profileInfo = $profileInfo;
5696
  }
@@ -5700,7 +5700,7 @@ class Google_Service_Analytics_McfData extends Google_Collection
5700
  return $this->profileInfo;
5701
  }
5702
 
5703
- public function setQuery(Google_Service_Analytics_McfDataQuery $query)
5704
  {
5705
  $this->query = $query;
5706
  }
@@ -5771,7 +5771,7 @@ class Google_Service_Analytics_McfData extends Google_Collection
5771
  }
5772
  }
5773
 
5774
- class Google_Service_Analytics_McfDataColumnHeaders extends Google_Model
5775
  {
5776
  public $columnType;
5777
  public $dataType;
@@ -5808,7 +5808,7 @@ class Google_Service_Analytics_McfDataColumnHeaders extends Google_Model
5808
  }
5809
  }
5810
 
5811
- class Google_Service_Analytics_McfDataProfileInfo extends Google_Model
5812
  {
5813
  public $accountId;
5814
  public $internalWebPropertyId;
@@ -5878,7 +5878,7 @@ class Google_Service_Analytics_McfDataProfileInfo extends Google_Model
5878
  }
5879
  }
5880
 
5881
- class Google_Service_Analytics_McfDataQuery extends Google_Collection
5882
  {
5883
  public $dimensions;
5884
  public $endDate;
@@ -6003,9 +6003,9 @@ class Google_Service_Analytics_McfDataQuery extends Google_Collection
6003
  }
6004
  }
6005
 
6006
- class Google_Service_Analytics_McfDataRows extends Google_Collection
6007
  {
6008
- protected $conversionPathValueType = 'Google_Service_Analytics_McfDataRowsConversionPathValue';
6009
  protected $conversionPathValueDataType = 'array';
6010
  public $primitiveValue;
6011
 
@@ -6030,7 +6030,7 @@ class Google_Service_Analytics_McfDataRows extends Google_Collection
6030
  }
6031
  }
6032
 
6033
- class Google_Service_Analytics_McfDataRowsConversionPathValue extends Google_Model
6034
  {
6035
  public $interactionType;
6036
  public $nodeValue;
@@ -6056,10 +6056,10 @@ class Google_Service_Analytics_McfDataRowsConversionPathValue extends Google_Mod
6056
  }
6057
  }
6058
 
6059
- class Google_Service_Analytics_Profile extends Google_Model
6060
  {
6061
  public $accountId;
6062
- protected $childLinkType = 'Google_Service_Analytics_ProfileChildLink';
6063
  protected $childLinkDataType = '';
6064
  public $created;
6065
  public $currency;
@@ -6070,9 +6070,9 @@ class Google_Service_Analytics_Profile extends Google_Model
6070
  public $internalWebPropertyId;
6071
  public $kind;
6072
  public $name;
6073
- protected $parentLinkType = 'Google_Service_Analytics_ProfileParentLink';
6074
  protected $parentLinkDataType = '';
6075
- protected $permissionsType = 'Google_Service_Analytics_ProfilePermissions';
6076
  protected $permissionsDataType = '';
6077
  public $selfLink;
6078
  public $siteSearchCategoryParameters;
@@ -6095,7 +6095,7 @@ class Google_Service_Analytics_Profile extends Google_Model
6095
  return $this->accountId;
6096
  }
6097
 
6098
- public function setChildLink(Google_Service_Analytics_ProfileChildLink $childLink)
6099
  {
6100
  $this->childLink = $childLink;
6101
  }
@@ -6195,7 +6195,7 @@ class Google_Service_Analytics_Profile extends Google_Model
6195
  return $this->name;
6196
  }
6197
 
6198
- public function setParentLink(Google_Service_Analytics_ProfileParentLink $parentLink)
6199
  {
6200
  $this->parentLink = $parentLink;
6201
  }
@@ -6205,7 +6205,7 @@ class Google_Service_Analytics_Profile extends Google_Model
6205
  return $this->parentLink;
6206
  }
6207
 
6208
- public function setPermissions(Google_Service_Analytics_ProfilePermissions $permissions)
6209
  {
6210
  $this->permissions = $permissions;
6211
  }
@@ -6316,7 +6316,7 @@ class Google_Service_Analytics_Profile extends Google_Model
6316
  }
6317
  }
6318
 
6319
- class Google_Service_Analytics_ProfileChildLink extends Google_Model
6320
  {
6321
  public $href;
6322
  public $type;
@@ -6342,7 +6342,7 @@ class Google_Service_Analytics_ProfileChildLink extends Google_Model
6342
  }
6343
  }
6344
 
6345
- class Google_Service_Analytics_ProfileParentLink extends Google_Model
6346
  {
6347
  public $href;
6348
  public $type;
@@ -6368,7 +6368,7 @@ class Google_Service_Analytics_ProfileParentLink extends Google_Model
6368
  }
6369
  }
6370
 
6371
- class Google_Service_Analytics_ProfilePermissions extends Google_Collection
6372
  {
6373
  public $effective;
6374
 
@@ -6383,7 +6383,7 @@ class Google_Service_Analytics_ProfilePermissions extends Google_Collection
6383
  }
6384
  }
6385
 
6386
- class Google_Service_Analytics_ProfileRef extends Google_Model
6387
  {
6388
  public $accountId;
6389
  public $href;
@@ -6464,7 +6464,7 @@ class Google_Service_Analytics_ProfileRef extends Google_Model
6464
  }
6465
  }
6466
 
6467
- class Google_Service_Analytics_ProfileSummary extends Google_Model
6468
  {
6469
  public $id;
6470
  public $kind;
@@ -6512,9 +6512,9 @@ class Google_Service_Analytics_ProfileSummary extends Google_Model
6512
  }
6513
  }
6514
 
6515
- class Google_Service_Analytics_Profiles extends Google_Collection
6516
  {
6517
- protected $itemsType = 'Google_Service_Analytics_Profile';
6518
  protected $itemsDataType = 'array';
6519
  public $itemsPerPage;
6520
  public $kind;
@@ -6605,15 +6605,15 @@ class Google_Service_Analytics_Profiles extends Google_Collection
6605
  }
6606
  }
6607
 
6608
- class Google_Service_Analytics_RealtimeData extends Google_Collection
6609
  {
6610
- protected $columnHeadersType = 'Google_Service_Analytics_RealtimeDataColumnHeaders';
6611
  protected $columnHeadersDataType = 'array';
6612
  public $id;
6613
  public $kind;
6614
- protected $profileInfoType = 'Google_Service_Analytics_RealtimeDataProfileInfo';
6615
  protected $profileInfoDataType = '';
6616
- protected $queryType = 'Google_Service_Analytics_RealtimeDataQuery';
6617
  protected $queryDataType = '';
6618
  public $rows;
6619
  public $selfLink;
@@ -6650,7 +6650,7 @@ class Google_Service_Analytics_RealtimeData extends Google_Collection
6650
  return $this->kind;
6651
  }
6652
 
6653
- public function setProfileInfo(Google_Service_Analytics_RealtimeDataProfileInfo $profileInfo)
6654
  {
6655
  $this->profileInfo = $profileInfo;
6656
  }
@@ -6660,7 +6660,7 @@ class Google_Service_Analytics_RealtimeData extends Google_Collection
6660
  return $this->profileInfo;
6661
  }
6662
 
6663
- public function setQuery(Google_Service_Analytics_RealtimeDataQuery $query)
6664
  {
6665
  $this->query = $query;
6666
  }
@@ -6711,7 +6711,7 @@ class Google_Service_Analytics_RealtimeData extends Google_Collection
6711
  }
6712
  }
6713
 
6714
- class Google_Service_Analytics_RealtimeDataColumnHeaders extends Google_Model
6715
  {
6716
  public $columnType;
6717
  public $dataType;
@@ -6748,7 +6748,7 @@ class Google_Service_Analytics_RealtimeDataColumnHeaders extends Google_Model
6748
  }
6749
  }
6750
 
6751
- class Google_Service_Analytics_RealtimeDataProfileInfo extends Google_Model
6752
  {
6753
  public $accountId;
6754
  public $internalWebPropertyId;
@@ -6818,7 +6818,7 @@ class Google_Service_Analytics_RealtimeDataProfileInfo extends Google_Model
6818
  }
6819
  }
6820
 
6821
- class Google_Service_Analytics_RealtimeDataQuery extends Google_Collection
6822
  {
6823
  public $dimensions;
6824
  public $filters;
@@ -6888,7 +6888,7 @@ class Google_Service_Analytics_RealtimeDataQuery extends Google_Collection
6888
  }
6889
  }
6890
 
6891
- class Google_Service_Analytics_Segment extends Google_Model
6892
  {
6893
  public $created;
6894
  public $definition;
@@ -6991,9 +6991,9 @@ class Google_Service_Analytics_Segment extends Google_Model
6991
  }
6992
  }
6993
 
6994
- class Google_Service_Analytics_Segments extends Google_Collection
6995
  {
6996
- protected $itemsType = 'Google_Service_Analytics_Segment';
6997
  protected $itemsDataType = 'array';
6998
  public $itemsPerPage;
6999
  public $kind;
@@ -7084,7 +7084,7 @@ class Google_Service_Analytics_Segments extends Google_Collection
7084
  }
7085
  }
7086
 
7087
- class Google_Service_Analytics_Upload extends Google_Collection
7088
  {
7089
  public $accountId;
7090
  public $customDataSourceId;
@@ -7154,9 +7154,9 @@ class Google_Service_Analytics_Upload extends Google_Collection
7154
  }
7155
  }
7156
 
7157
- class Google_Service_Analytics_Uploads extends Google_Collection
7158
  {
7159
- protected $itemsType = 'Google_Service_Analytics_Upload';
7160
  protected $itemsDataType = 'array';
7161
  public $itemsPerPage;
7162
  public $kind;
@@ -7236,7 +7236,7 @@ class Google_Service_Analytics_Uploads extends Google_Collection
7236
  }
7237
  }
7238
 
7239
- class Google_Service_Analytics_UserRef extends Google_Model
7240
  {
7241
  public $email;
7242
  public $id;
@@ -7273,7 +7273,7 @@ class Google_Service_Analytics_UserRef extends Google_Model
7273
  }
7274
  }
7275
 
7276
- class Google_Service_Analytics_WebPropertyRef extends Google_Model
7277
  {
7278
  public $accountId;
7279
  public $href;
@@ -7343,14 +7343,14 @@ class Google_Service_Analytics_WebPropertyRef extends Google_Model
7343
  }
7344
  }
7345
 
7346
- class Google_Service_Analytics_WebPropertySummary extends Google_Collection
7347
  {
7348
  public $id;
7349
  public $internalWebPropertyId;
7350
  public $kind;
7351
  public $level;
7352
  public $name;
7353
- protected $profilesType = 'Google_Service_Analytics_ProfileSummary';
7354
  protected $profilesDataType = 'array';
7355
  public $websiteUrl;
7356
 
@@ -7425,9 +7425,9 @@ class Google_Service_Analytics_WebPropertySummary extends Google_Collection
7425
  }
7426
  }
7427
 
7428
- class Google_Service_Analytics_Webproperties extends Google_Collection
7429
  {
7430
- protected $itemsType = 'Google_Service_Analytics_Webproperty';
7431
  protected $itemsDataType = 'array';
7432
  public $itemsPerPage;
7433
  public $kind;
@@ -7518,10 +7518,10 @@ class Google_Service_Analytics_Webproperties extends Google_Collection
7518
  }
7519
  }
7520
 
7521
- class Google_Service_Analytics_Webproperty extends Google_Model
7522
  {
7523
  public $accountId;
7524
- protected $childLinkType = 'Google_Service_Analytics_WebpropertyChildLink';
7525
  protected $childLinkDataType = '';
7526
  public $created;
7527
  public $defaultProfileId;
@@ -7531,9 +7531,9 @@ class Google_Service_Analytics_Webproperty extends Google_Model
7531
  public $kind;
7532
  public $level;
7533
  public $name;
7534
- protected $parentLinkType = 'Google_Service_Analytics_WebpropertyParentLink';
7535
  protected $parentLinkDataType = '';
7536
- protected $permissionsType = 'Google_Service_Analytics_WebpropertyPermissions';
7537
  protected $permissionsDataType = '';
7538
  public $profileCount;
7539
  public $selfLink;
@@ -7550,7 +7550,7 @@ class Google_Service_Analytics_Webproperty extends Google_Model
7550
  return $this->accountId;
7551
  }
7552
 
7553
- public function setChildLink(Google_Service_Analytics_WebpropertyChildLink $childLink)
7554
  {
7555
  $this->childLink = $childLink;
7556
  }
@@ -7640,7 +7640,7 @@ class Google_Service_Analytics_Webproperty extends Google_Model
7640
  return $this->name;
7641
  }
7642
 
7643
- public function setParentLink(Google_Service_Analytics_WebpropertyParentLink $parentLink)
7644
  {
7645
  $this->parentLink = $parentLink;
7646
  }
@@ -7650,7 +7650,7 @@ class Google_Service_Analytics_Webproperty extends Google_Model
7650
  return $this->parentLink;
7651
  }
7652
 
7653
- public function setPermissions(Google_Service_Analytics_WebpropertyPermissions $permissions)
7654
  {
7655
  $this->permissions = $permissions;
7656
  }
@@ -7701,7 +7701,7 @@ class Google_Service_Analytics_Webproperty extends Google_Model
7701
  }
7702
  }
7703
 
7704
- class Google_Service_Analytics_WebpropertyChildLink extends Google_Model
7705
  {
7706
  public $href;
7707
  public $type;
@@ -7727,7 +7727,7 @@ class Google_Service_Analytics_WebpropertyChildLink extends Google_Model
7727
  }
7728
  }
7729
 
7730
- class Google_Service_Analytics_WebpropertyParentLink extends Google_Model
7731
  {
7732
  public $href;
7733
  public $type;
@@ -7753,7 +7753,7 @@ class Google_Service_Analytics_WebpropertyParentLink extends Google_Model
7753
  }
7754
  }
7755
 
7756
- class Google_Service_Analytics_WebpropertyPermissions extends Google_Collection
7757
  {
7758
  public $effective;
7759
 
29
  *
30
  * @author Google, Inc.
31
  */
32
+ class GoogleGAL_Service_Analytics extends GoogleGAL_Service
33
  {
34
  /** View and manage your Google Analytics data. */
35
  const ANALYTICS = "https://www.googleapis.com/auth/analytics";
62
  /**
63
  * Constructs the internal representation of the Analytics service.
64
  *
65
+ * @param GoogleGAL_Client $client
66
  */
67
+ public function __construct(GoogleGAL_Client $client)
68
  {
69
  parent::__construct($client);
70
  $this->servicePath = 'analytics/v3/';
71
  $this->version = 'v3';
72
  $this->serviceName = 'analytics';
73
 
74
+ $this->data_ga = new GoogleGAL_Service_Analytics_DataGa_Resource(
75
  $this,
76
  $this->serviceName,
77
  'ga',
138
  )
139
  )
140
  );
141
+ $this->data_mcf = new GoogleGAL_Service_Analytics_DataMcf_Resource(
142
  $this,
143
  $this->serviceName,
144
  'mcf',
197
  )
198
  )
199
  );
200
+ $this->data_realtime = new GoogleGAL_Service_Analytics_DataRealtime_Resource(
201
  $this,
202
  $this->serviceName,
203
  'realtime',
238
  )
239
  )
240
  );
241
+ $this->management_accountSummaries = new GoogleGAL_Service_Analytics_ManagementAccountSummaries_Resource(
242
  $this,
243
  $this->serviceName,
244
  'accountSummaries',
261
  )
262
  )
263
  );
264
+ $this->management_accountUserLinks = new GoogleGAL_Service_Analytics_ManagementAccountUserLinks_Resource(
265
  $this,
266
  $this->serviceName,
267
  'accountUserLinks',
329
  )
330
  )
331
  );
332
+ $this->management_accounts = new GoogleGAL_Service_Analytics_ManagementAccounts_Resource(
333
  $this,
334
  $this->serviceName,
335
  'accounts',
352
  )
353
  )
354
  );
355
+ $this->management_customDataSources = new GoogleGAL_Service_Analytics_ManagementCustomDataSources_Resource(
356
  $this,
357
  $this->serviceName,
358
  'customDataSources',
385
  )
386
  )
387
  );
388
+ $this->management_dailyUploads = new GoogleGAL_Service_Analytics_ManagementDailyUploads_Resource(
389
  $this,
390
  $this->serviceName,
391
  'dailyUploads',
502
  )
503
  )
504
  );
505
+ $this->management_experiments = new GoogleGAL_Service_Analytics_ManagementExperiments_Resource(
506
  $this,
507
  $this->serviceName,
508
  'experiments',
660
  )
661
  )
662
  );
663
+ $this->management_goals = new GoogleGAL_Service_Analytics_ManagementGoals_Resource(
664
  $this,
665
  $this->serviceName,
666
  'goals',
793
  )
794
  )
795
  );
796
+ $this->management_profileUserLinks = new GoogleGAL_Service_Analytics_ManagementProfileUserLinks_Resource(
797
  $this,
798
  $this->serviceName,
799
  'profileUserLinks',
901
  )
902
  )
903
  );
904
+ $this->management_profiles = new GoogleGAL_Service_Analytics_ManagementProfiles_Resource(
905
  $this,
906
  $this->serviceName,
907
  'profiles',
1029
  )
1030
  )
1031
  );
1032
+ $this->management_segments = new GoogleGAL_Service_Analytics_ManagementSegments_Resource(
1033
  $this,
1034
  $this->serviceName,
1035
  'segments',
1052
  )
1053
  )
1054
  );
1055
+ $this->management_uploads = new GoogleGAL_Service_Analytics_ManagementUploads_Resource(
1056
  $this,
1057
  $this->serviceName,
1058
  'uploads',
1155
  )
1156
  )
1157
  );
1158
+ $this->management_webproperties = new GoogleGAL_Service_Analytics_ManagementWebproperties_Resource(
1159
  $this,
1160
  $this->serviceName,
1161
  'webproperties',
1238
  )
1239
  )
1240
  );
1241
+ $this->management_webpropertyUserLinks = new GoogleGAL_Service_Analytics_ManagementWebpropertyUserLinks_Resource(
1242
  $this,
1243
  $this->serviceName,
1244
  'webpropertyUserLinks',
1326
  )
1327
  )
1328
  );
1329
+ $this->metadata_columns = new GoogleGAL_Service_Analytics_MetadataColumns_Resource(
1330
  $this,
1331
  $this->serviceName,
1332
  'columns',
1354
  * The "data" collection of methods.
1355
  * Typical usage is:
1356
  * <code>
1357
+ * $analyticsService = new GoogleGAL_Service_Analytics(...);
1358
  * $data = $analyticsService->data;
1359
  * </code>
1360
  */
1361
+ class GoogleGAL_Service_Analytics_Data_Resource extends GoogleGAL_Service_Resource
1362
  {
1363
 
1364
  }
1367
  * The "ga" collection of methods.
1368
  * Typical usage is:
1369
  * <code>
1370
+ * $analyticsService = new GoogleGAL_Service_Analytics(...);
1371
  * $ga = $analyticsService->ga;
1372
  * </code>
1373
  */
1374
+ class GoogleGAL_Service_Analytics_DataGa_Resource extends GoogleGAL_Service_Resource
1375
  {
1376
 
1377
  /**
1410
  * A comma-separated list of dimension or metric filters to be applied to Analytics data.
1411
  * @opt_param string output
1412
  * The selected format for the response. Default format is JSON.
1413
+ * @return GoogleGAL_Service_Analytics_GaData
1414
  */
1415
  public function get($ids, $startDate, $endDate, $metrics, $optParams = array())
1416
  {
1417
  $params = array('ids' => $ids, 'start-date' => $startDate, 'end-date' => $endDate, 'metrics' => $metrics);
1418
  $params = array_merge($params, $optParams);
1419
+ return $this->call('get', array($params), "GoogleGAL_Service_Analytics_GaData");
1420
  }
1421
  }
1422
  /**
1423
  * The "mcf" collection of methods.
1424
  * Typical usage is:
1425
  * <code>
1426
+ * $analyticsService = new GoogleGAL_Service_Analytics(...);
1427
  * $mcf = $analyticsService->mcf;
1428
  * </code>
1429
  */
1430
+ class GoogleGAL_Service_Analytics_DataMcf_Resource extends GoogleGAL_Service_Resource
1431
  {
1432
 
1433
  /**
1461
  * The desired sampling level.
1462
  * @opt_param string filters
1463
  * A comma-separated list of dimension or metric filters to be applied to the Analytics data.
1464
+ * @return GoogleGAL_Service_Analytics_McfData
1465
  */
1466
  public function get($ids, $startDate, $endDate, $metrics, $optParams = array())
1467
  {
1468
  $params = array('ids' => $ids, 'start-date' => $startDate, 'end-date' => $endDate, 'metrics' => $metrics);
1469
  $params = array_merge($params, $optParams);
1470
+ return $this->call('get', array($params), "GoogleGAL_Service_Analytics_McfData");
1471
  }
1472
  }
1473
  /**
1474
  * The "realtime" collection of methods.
1475
  * Typical usage is:
1476
  * <code>
1477
+ * $analyticsService = new GoogleGAL_Service_Analytics(...);
1478
  * $realtime = $analyticsService->realtime;
1479
  * </code>
1480
  */
1481
+ class GoogleGAL_Service_Analytics_DataRealtime_Resource extends GoogleGAL_Service_Resource
1482
  {
1483
 
1484
  /**
1501
  * A comma-separated list of real time dimensions. E.g., 'rt:medium,rt:city'.
1502
  * @opt_param string filters
1503
  * A comma-separated list of dimension or metric filters to be applied to real time data.
1504
+ * @return GoogleGAL_Service_Analytics_RealtimeData
1505
  */
1506
  public function get($ids, $metrics, $optParams = array())
1507
  {
1508
  $params = array('ids' => $ids, 'metrics' => $metrics);
1509
  $params = array_merge($params, $optParams);
1510
+ return $this->call('get', array($params), "GoogleGAL_Service_Analytics_RealtimeData");
1511
  }
1512
  }
1513
 
1515
  * The "management" collection of methods.
1516
  * Typical usage is:
1517
  * <code>
1518
+ * $analyticsService = new GoogleGAL_Service_Analytics(...);
1519
  * $management = $analyticsService->management;
1520
  * </code>
1521
  */
1522
+ class GoogleGAL_Service_Analytics_Management_Resource extends GoogleGAL_Service_Resource
1523
  {
1524
 
1525
  }
1528
  * The "accountSummaries" collection of methods.
1529
  * Typical usage is:
1530
  * <code>
1531
+ * $analyticsService = new GoogleGAL_Service_Analytics(...);
1532
  * $accountSummaries = $analyticsService->accountSummaries;
1533
  * </code>
1534
  */
1535
+ class GoogleGAL_Service_Analytics_ManagementAccountSummaries_Resource extends GoogleGAL_Service_Resource
1536
  {
1537
 
1538
  /**
1547
  * @opt_param int start-index
1548
  * An index of the first entity to retrieve. Use this parameter as a pagination mechanism along
1549
  * with the max-results parameter.
1550
+ * @return GoogleGAL_Service_Analytics_AccountSummaries
1551
  */
1552
  public function listManagementAccountSummaries($optParams = array())
1553
  {
1554
  $params = array();
1555
  $params = array_merge($params, $optParams);
1556
+ return $this->call('list', array($params), "GoogleGAL_Service_Analytics_AccountSummaries");
1557
  }
1558
  }
1559
  /**
1560
  * The "accountUserLinks" collection of methods.
1561
  * Typical usage is:
1562
  * <code>
1563
+ * $analyticsService = new GoogleGAL_Service_Analytics(...);
1564
  * $accountUserLinks = $analyticsService->accountUserLinks;
1565
  * </code>
1566
  */
1567
+ class GoogleGAL_Service_Analytics_ManagementAccountUserLinks_Resource extends GoogleGAL_Service_Resource
1568
  {
1569
 
1570
  /**
1587
  *
1588
  * @param string $accountId
1589
  * Account ID to create the user link for.
1590
+ * @param GoogleGAL_EntityUserLink $postBody
1591
  * @param array $optParams Optional parameters.
1592
+ * @return GoogleGAL_Service_Analytics_EntityUserLink
1593
  */
1594
+ public function insert($accountId, GoogleGAL_Service_Analytics_EntityUserLink $postBody, $optParams = array())
1595
  {
1596
  $params = array('accountId' => $accountId, 'postBody' => $postBody);
1597
  $params = array_merge($params, $optParams);
1598
+ return $this->call('insert', array($params), "GoogleGAL_Service_Analytics_EntityUserLink");
1599
  }
1600
  /**
1601
  * Lists account-user links for a given account.
1610
  * @opt_param int start-index
1611
  * An index of the first account-user link to retrieve. Use this parameter as a pagination
1612
  * mechanism along with the max-results parameter.
1613
+ * @return GoogleGAL_Service_Analytics_EntityUserLinks
1614
  */
1615
  public function listManagementAccountUserLinks($accountId, $optParams = array())
1616
  {
1617
  $params = array('accountId' => $accountId);
1618
  $params = array_merge($params, $optParams);
1619
+ return $this->call('list', array($params), "GoogleGAL_Service_Analytics_EntityUserLinks");
1620
  }
1621
  /**
1622
  * Updates permissions for an existing user on the given account.
1626
  * Account ID to update the account-user link for.
1627
  * @param string $linkId
1628
  * Link ID to update the account-user link for.
1629
+ * @param GoogleGAL_EntityUserLink $postBody
1630
  * @param array $optParams Optional parameters.
1631
+ * @return GoogleGAL_Service_Analytics_EntityUserLink
1632
  */
1633
+ public function update($accountId, $linkId, GoogleGAL_Service_Analytics_EntityUserLink $postBody, $optParams = array())
1634
  {
1635
  $params = array('accountId' => $accountId, 'linkId' => $linkId, 'postBody' => $postBody);
1636
  $params = array_merge($params, $optParams);
1637
+ return $this->call('update', array($params), "GoogleGAL_Service_Analytics_EntityUserLink");
1638
  }
1639
  }
1640
  /**
1641
  * The "accounts" collection of methods.
1642
  * Typical usage is:
1643
  * <code>
1644
+ * $analyticsService = new GoogleGAL_Service_Analytics(...);
1645
  * $accounts = $analyticsService->accounts;
1646
  * </code>
1647
  */
1648
+ class GoogleGAL_Service_Analytics_ManagementAccounts_Resource extends GoogleGAL_Service_Resource
1649
  {
1650
 
1651
  /**
1659
  * @opt_param int start-index
1660
  * An index of the first account to retrieve. Use this parameter as a pagination mechanism along
1661
  * with the max-results parameter.
1662
+ * @return GoogleGAL_Service_Analytics_Accounts
1663
  */
1664
  public function listManagementAccounts($optParams = array())
1665
  {
1666
  $params = array();
1667
  $params = array_merge($params, $optParams);
1668
+ return $this->call('list', array($params), "GoogleGAL_Service_Analytics_Accounts");
1669
  }
1670
  }
1671
  /**
1672
  * The "customDataSources" collection of methods.
1673
  * Typical usage is:
1674
  * <code>
1675
+ * $analyticsService = new GoogleGAL_Service_Analytics(...);
1676
  * $customDataSources = $analyticsService->customDataSources;
1677
  * </code>
1678
  */
1679
+ class GoogleGAL_Service_Analytics_ManagementCustomDataSources_Resource extends GoogleGAL_Service_Resource
1680
  {
1681
 
1682
  /**
1694
  * @opt_param int start-index
1695
  * A 1-based index of the first custom data source to retrieve. Use this parameter as a pagination
1696
  * mechanism along with the max-results parameter.
1697
+ * @return GoogleGAL_Service_Analytics_CustomDataSources
1698
  */
1699
  public function listManagementCustomDataSources($accountId, $webPropertyId, $optParams = array())
1700
  {
1701
  $params = array('accountId' => $accountId, 'webPropertyId' => $webPropertyId);
1702
  $params = array_merge($params, $optParams);
1703
+ return $this->call('list', array($params), "GoogleGAL_Service_Analytics_CustomDataSources");
1704
  }
1705
  }
1706
  /**
1707
  * The "dailyUploads" collection of methods.
1708
  * Typical usage is:
1709
  * <code>
1710
+ * $analyticsService = new GoogleGAL_Service_Analytics(...);
1711
  * $dailyUploads = $analyticsService->dailyUploads;
1712
  * </code>
1713
  */
1714
+ class GoogleGAL_Service_Analytics_ManagementDailyUploads_Resource extends GoogleGAL_Service_Resource
1715
  {
1716
 
1717
  /**
1756
  * @opt_param int start-index
1757
  * A 1-based index of the first daily upload to retrieve. Use this parameter as a pagination
1758
  * mechanism along with the max-results parameter.
1759
+ * @return GoogleGAL_Service_Analytics_DailyUploads
1760
  */
1761
  public function listManagementDailyUploads($accountId, $webPropertyId, $customDataSourceId, $startDate, $endDate, $optParams = array())
1762
  {
1763
  $params = array('accountId' => $accountId, 'webPropertyId' => $webPropertyId, 'customDataSourceId' => $customDataSourceId, 'start-date' => $startDate, 'end-date' => $endDate);
1764
  $params = array_merge($params, $optParams);
1765
+ return $this->call('list', array($params), "GoogleGAL_Service_Analytics_DailyUploads");
1766
  }
1767
  /**
1768
  * Update/Overwrite data for a custom data source. (dailyUploads.upload)
1784
  * @opt_param bool reset
1785
  * Reset/Overwrite all previous appends for this date and start over with this file as the first
1786
  * upload.
1787
+ * @return GoogleGAL_Service_Analytics_DailyUploadAppend
1788
  */
1789
  public function upload($accountId, $webPropertyId, $customDataSourceId, $date, $appendNumber, $type, $optParams = array())
1790
  {
1791
  $params = array('accountId' => $accountId, 'webPropertyId' => $webPropertyId, 'customDataSourceId' => $customDataSourceId, 'date' => $date, 'appendNumber' => $appendNumber, 'type' => $type);
1792
  $params = array_merge($params, $optParams);
1793
+ return $this->call('upload', array($params), "GoogleGAL_Service_Analytics_DailyUploadAppend");
1794
  }
1795
  }
1796
  /**
1797
  * The "experiments" collection of methods.
1798
  * Typical usage is:
1799
  * <code>
1800
+ * $analyticsService = new GoogleGAL_Service_Analytics(...);
1801
  * $experiments = $analyticsService->experiments;
1802
  * </code>
1803
  */
1804
+ class GoogleGAL_Service_Analytics_ManagementExperiments_Resource extends GoogleGAL_Service_Resource
1805
  {
1806
 
1807
  /**
1835
  * @param string $experimentId
1836
  * Experiment ID to retrieve the experiment for.
1837
  * @param array $optParams Optional parameters.
1838
+ * @return GoogleGAL_Service_Analytics_Experiment
1839
  */
1840
  public function get($accountId, $webPropertyId, $profileId, $experimentId, $optParams = array())
1841
  {
1842
  $params = array('accountId' => $accountId, 'webPropertyId' => $webPropertyId, 'profileId' => $profileId, 'experimentId' => $experimentId);
1843
  $params = array_merge($params, $optParams);
1844
+ return $this->call('get', array($params), "GoogleGAL_Service_Analytics_Experiment");
1845
  }
1846
  /**
1847
  * Create a new experiment. (experiments.insert)
1852
  * Web property ID to create the experiment for.
1853
  * @param string $profileId
1854
  * View (Profile) ID to create the experiment for.
1855
+ * @param GoogleGAL_Experiment $postBody
1856
  * @param array $optParams Optional parameters.
1857
+ * @return GoogleGAL_Service_Analytics_Experiment
1858
  */
1859
+ public function insert($accountId, $webPropertyId, $profileId, GoogleGAL_Service_Analytics_Experiment $postBody, $optParams = array())
1860
  {
1861
  $params = array('accountId' => $accountId, 'webPropertyId' => $webPropertyId, 'profileId' => $profileId, 'postBody' => $postBody);
1862
  $params = array_merge($params, $optParams);
1863
+ return $this->call('insert', array($params), "GoogleGAL_Service_Analytics_Experiment");
1864
  }
1865
  /**
1866
  * Lists experiments to which the user has access.
1879
  * @opt_param int start-index
1880
  * An index of the first experiment to retrieve. Use this parameter as a pagination mechanism along
1881
  * with the max-results parameter.
1882
+ * @return GoogleGAL_Service_Analytics_Experiments
1883
  */
1884
  public function listManagementExperiments($accountId, $webPropertyId, $profileId, $optParams = array())
1885
  {
1886
  $params = array('accountId' => $accountId, 'webPropertyId' => $webPropertyId, 'profileId' => $profileId);
1887
  $params = array_merge($params, $optParams);
1888
+ return $this->call('list', array($params), "GoogleGAL_Service_Analytics_Experiments");
1889
  }
1890
  /**
1891
  * Update an existing experiment. This method supports patch semantics.
1899
  * View (Profile) ID of the experiment to update.
1900
  * @param string $experimentId
1901
  * Experiment ID of the experiment to update.
1902
+ * @param GoogleGAL_Experiment $postBody
1903
  * @param array $optParams Optional parameters.
1904
+ * @return GoogleGAL_Service_Analytics_Experiment
1905
  */
1906
+ public function patch($accountId, $webPropertyId, $profileId, $experimentId, GoogleGAL_Service_Analytics_Experiment $postBody, $optParams = array())
1907
  {
1908
  $params = array('accountId' => $accountId, 'webPropertyId' => $webPropertyId, 'profileId' => $profileId, 'experimentId' => $experimentId, 'postBody' => $postBody);
1909
  $params = array_merge($params, $optParams);
1910
+ return $this->call('patch', array($params), "GoogleGAL_Service_Analytics_Experiment");
1911
  }
1912
  /**
1913
  * Update an existing experiment. (experiments.update)
1920
  * View (Profile) ID of the experiment to update.
1921
  * @param string $experimentId
1922
  * Experiment ID of the experiment to update.
1923
+ * @param GoogleGAL_Experiment $postBody
1924
  * @param array $optParams Optional parameters.
1925
+ * @return GoogleGAL_Service_Analytics_Experiment
1926
  */
1927
+ public function update($accountId, $webPropertyId, $profileId, $experimentId, GoogleGAL_Service_Analytics_Experiment $postBody, $optParams = array())
1928
  {
1929
  $params = array('accountId' => $accountId, 'webPropertyId' => $webPropertyId, 'profileId' => $profileId, 'experimentId' => $experimentId, 'postBody' => $postBody);
1930
  $params = array_merge($params, $optParams);
1931
+ return $this->call('update', array($params), "GoogleGAL_Service_Analytics_Experiment");
1932
  }
1933
  }
1934
  /**
1935
  * The "goals" collection of methods.
1936
  * Typical usage is:
1937
  * <code>
1938
+ * $analyticsService = new GoogleGAL_Service_Analytics(...);
1939
  * $goals = $analyticsService->goals;
1940
  * </code>
1941
  */
1942
+ class GoogleGAL_Service_Analytics_ManagementGoals_Resource extends GoogleGAL_Service_Resource
1943
  {
1944
 
1945
  /**
1954
  * @param string $goalId
1955
  * Goal ID to retrieve the goal for.
1956
  * @param array $optParams Optional parameters.
1957
+ * @return GoogleGAL_Service_Analytics_Goal
1958
  */
1959
  public function get($accountId, $webPropertyId, $profileId, $goalId, $optParams = array())
1960
  {
1961
  $params = array('accountId' => $accountId, 'webPropertyId' => $webPropertyId, 'profileId' => $profileId, 'goalId' => $goalId);
1962
  $params = array_merge($params, $optParams);
1963
+ return $this->call('get', array($params), "GoogleGAL_Service_Analytics_Goal");
1964
  }
1965
  /**
1966
  * Create a new goal. (goals.insert)
1971
  * Web property ID to create the goal for.
1972
  * @param string $profileId
1973
  * View (Profile) ID to create the goal for.
1974
+ * @param GoogleGAL_Goal $postBody
1975
  * @param array $optParams Optional parameters.
1976
+ * @return GoogleGAL_Service_Analytics_Goal
1977
  */
1978
+ public function insert($accountId, $webPropertyId, $profileId, GoogleGAL_Service_Analytics_Goal $postBody, $optParams = array())
1979
  {
1980
  $params = array('accountId' => $accountId, 'webPropertyId' => $webPropertyId, 'profileId' => $profileId, 'postBody' => $postBody);
1981
  $params = array_merge($params, $optParams);
1982
+ return $this->call('insert', array($params), "GoogleGAL_Service_Analytics_Goal");
1983
  }
1984
  /**
1985
  * Lists goals to which the user has access. (goals.listManagementGoals)
2000
  * @opt_param int start-index
2001
  * An index of the first goal to retrieve. Use this parameter as a pagination mechanism along with
2002
  * the max-results parameter.
2003
+ * @return GoogleGAL_Service_Analytics_Goals
2004
  */
2005
  public function listManagementGoals($accountId, $webPropertyId, $profileId, $optParams = array())
2006
  {
2007
  $params = array('accountId' => $accountId, 'webPropertyId' => $webPropertyId, 'profileId' => $profileId);
2008
  $params = array_merge($params, $optParams);
2009
+ return $this->call('list', array($params), "GoogleGAL_Service_Analytics_Goals");
2010
  }
2011
  /**
2012
  * Updates an existing view (profile). This method supports patch semantics.
2020
  * View (Profile) ID to update the goal.
2021
  * @param string $goalId
2022
  * Index of the goal to be updated.
2023
+ * @param GoogleGAL_Goal $postBody
2024
  * @param array $optParams Optional parameters.
2025
+ * @return GoogleGAL_Service_Analytics_Goal
2026
  */
2027
+ public function patch($accountId, $webPropertyId, $profileId, $goalId, GoogleGAL_Service_Analytics_Goal $postBody, $optParams = array())
2028
  {
2029
  $params = array('accountId' => $accountId, 'webPropertyId' => $webPropertyId, 'profileId' => $profileId, 'goalId' => $goalId, 'postBody' => $postBody);
2030
  $params = array_merge($params, $optParams);
2031
+ return $this->call('patch', array($params), "GoogleGAL_Service_Analytics_Goal");
2032
  }
2033
  /**
2034
  * Updates an existing view (profile). (goals.update)
2041
  * View (Profile) ID to update the goal.
2042
  * @param string $goalId
2043
  * Index of the goal to be updated.
2044
+ * @param GoogleGAL_Goal $postBody
2045
  * @param array $optParams Optional parameters.
2046
+ * @return GoogleGAL_Service_Analytics_Goal
2047
  */
2048
+ public function update($accountId, $webPropertyId, $profileId, $goalId, GoogleGAL_Service_Analytics_Goal $postBody, $optParams = array())
2049
  {
2050
  $params = array('accountId' => $accountId, 'webPropertyId' => $webPropertyId, 'profileId' => $profileId, 'goalId' => $goalId, 'postBody' => $postBody);
2051
  $params = array_merge($params, $optParams);
2052
+ return $this->call('update', array($params), "GoogleGAL_Service_Analytics_Goal");
2053
  }
2054
  }
2055
  /**
2056
  * The "profileUserLinks" collection of methods.
2057
  * Typical usage is:
2058
  * <code>
2059
+ * $analyticsService = new GoogleGAL_Service_Analytics(...);
2060
  * $profileUserLinks = $analyticsService->profileUserLinks;
2061
  * </code>
2062
  */
2063
+ class GoogleGAL_Service_Analytics_ManagementProfileUserLinks_Resource extends GoogleGAL_Service_Resource
2064
  {
2065
 
2066
  /**
2091
  * Web Property ID to create the user link for.
2092
  * @param string $profileId
2093
  * View (Profile) ID to create the user link for.
2094
+ * @param GoogleGAL_EntityUserLink $postBody
2095
  * @param array $optParams Optional parameters.
2096
+ * @return GoogleGAL_Service_Analytics_EntityUserLink
2097
  */
2098
+ public function insert($accountId, $webPropertyId, $profileId, GoogleGAL_Service_Analytics_EntityUserLink $postBody, $optParams = array())
2099
  {
2100
  $params = array('accountId' => $accountId, 'webPropertyId' => $webPropertyId, 'profileId' => $profileId, 'postBody' => $postBody);
2101
  $params = array_merge($params, $optParams);
2102
+ return $this->call('insert', array($params), "GoogleGAL_Service_Analytics_EntityUserLink");
2103
  }
2104
  /**
2105
  * Lists profile-user links for a given view (profile).
2118
  * @opt_param int start-index
2119
  * An index of the first profile-user link to retrieve. Use this parameter as a pagination
2120
  * mechanism along with the max-results parameter.
2121
+ * @return GoogleGAL_Service_Analytics_EntityUserLinks
2122
  */
2123
  public function listManagementProfileUserLinks($accountId, $webPropertyId, $profileId, $optParams = array())
2124
  {
2125
  $params = array('accountId' => $accountId, 'webPropertyId' => $webPropertyId, 'profileId' => $profileId);
2126
  $params = array_merge($params, $optParams);
2127
+ return $this->call('list', array($params), "GoogleGAL_Service_Analytics_EntityUserLinks");
2128
  }
2129
  /**
2130
  * Updates permissions for an existing user on the given view (profile).
2138
  * View (Profile ID) to update the user link for.
2139
  * @param string $linkId
2140
  * Link ID to update the user link for.
2141
+ * @param GoogleGAL_EntityUserLink $postBody
2142
  * @param array $optParams Optional parameters.
2143
+ * @return GoogleGAL_Service_Analytics_EntityUserLink
2144
  */
2145
+ public function update($accountId, $webPropertyId, $profileId, $linkId, GoogleGAL_Service_Analytics_EntityUserLink $postBody, $optParams = array())
2146
  {
2147
  $params = array('accountId' => $accountId, 'webPropertyId' => $webPropertyId, 'profileId' => $profileId, 'linkId' => $linkId, 'postBody' => $postBody);
2148
  $params = array_merge($params, $optParams);
2149
+ return $this->call('update', array($params), "GoogleGAL_Service_Analytics_EntityUserLink");
2150
  }
2151
  }
2152
  /**
2153
  * The "profiles" collection of methods.
2154
  * Typical usage is:
2155
  * <code>
2156
+ * $analyticsService = new GoogleGAL_Service_Analytics(...);
2157
  * $profiles = $analyticsService->profiles;
2158
  * </code>
2159
  */
2160
+ class GoogleGAL_Service_Analytics_ManagementProfiles_Resource extends GoogleGAL_Service_Resource
2161
  {
2162
 
2163
  /**
2187
  * @param string $profileId
2188
  * View (Profile) ID to retrieve the goal for.
2189
  * @param array $optParams Optional parameters.
2190
+ * @return GoogleGAL_Service_Analytics_Profile
2191
  */
2192
  public function get($accountId, $webPropertyId, $profileId, $optParams = array())
2193
  {
2194
  $params = array('accountId' => $accountId, 'webPropertyId' => $webPropertyId, 'profileId' => $profileId);
2195
  $params = array_merge($params, $optParams);
2196
+ return $this->call('get', array($params), "GoogleGAL_Service_Analytics_Profile");
2197
  }
2198
  /**
2199
  * Create a new view (profile). (profiles.insert)
2202
  * Account ID to create the view (profile) for.
2203
  * @param string $webPropertyId
2204
  * Web property ID to create the view (profile) for.
2205
+ * @param GoogleGAL_Profile $postBody
2206
  * @param array $optParams Optional parameters.
2207
+ * @return GoogleGAL_Service_Analytics_Profile
2208
  */
2209
+ public function insert($accountId, $webPropertyId, GoogleGAL_Service_Analytics_Profile $postBody, $optParams = array())
2210
  {
2211
  $params = array('accountId' => $accountId, 'webPropertyId' => $webPropertyId, 'postBody' => $postBody);
2212
  $params = array_merge($params, $optParams);
2213
+ return $this->call('insert', array($params), "GoogleGAL_Service_Analytics_Profile");
2214
  }
2215
  /**
2216
  * Lists views (profiles) to which the user has access.
2229
  * @opt_param int start-index
2230
  * An index of the first entity to retrieve. Use this parameter as a pagination mechanism along
2231
  * with the max-results parameter.
2232
+ * @return GoogleGAL_Service_Analytics_Profiles
2233
  */
2234
  public function listManagementProfiles($accountId, $webPropertyId, $optParams = array())
2235
  {
2236
  $params = array('accountId' => $accountId, 'webPropertyId' => $webPropertyId);
2237
  $params = array_merge($params, $optParams);
2238
+ return $this->call('list', array($params), "GoogleGAL_Service_Analytics_Profiles");
2239
  }
2240
  /**
2241
  * Updates an existing view (profile). This method supports patch semantics.
2247
  * Web property ID to which the view (profile) belongs
2248
  * @param string $profileId
2249
  * ID of the view (profile) to be updated.
2250
+ * @param GoogleGAL_Profile $postBody
2251
  * @param array $optParams Optional parameters.
2252
+ * @return GoogleGAL_Service_Analytics_Profile
2253
  */
2254
+ public function patch($accountId, $webPropertyId, $profileId, GoogleGAL_Service_Analytics_Profile $postBody, $optParams = array())
2255
  {
2256
  $params = array('accountId' => $accountId, 'webPropertyId' => $webPropertyId, 'profileId' => $profileId, 'postBody' => $postBody);
2257
  $params = array_merge($params, $optParams);
2258
+ return $this->call('patch', array($params), "GoogleGAL_Service_Analytics_Profile");
2259
  }
2260
  /**
2261
  * Updates an existing view (profile). (profiles.update)
2266
  * Web property ID to which the view (profile) belongs
2267
  * @param string $profileId
2268
  * ID of the view (profile) to be updated.
2269
+ * @param GoogleGAL_Profile $postBody
2270
  * @param array $optParams Optional parameters.
2271
+ * @return GoogleGAL_Service_Analytics_Profile
2272
  */
2273
+ public function update($accountId, $webPropertyId, $profileId, GoogleGAL_Service_Analytics_Profile $postBody, $optParams = array())
2274
  {
2275
  $params = array('accountId' => $accountId, 'webPropertyId' => $webPropertyId, 'profileId' => $profileId, 'postBody' => $postBody);
2276
  $params = array_merge($params, $optParams);
2277
+ return $this->call('update', array($params), "GoogleGAL_Service_Analytics_Profile");
2278
  }
2279
  }
2280
  /**
2281
  * The "segments" collection of methods.
2282
  * Typical usage is:
2283
  * <code>
2284
+ * $analyticsService = new GoogleGAL_Service_Analytics(...);
2285
  * $segments = $analyticsService->segments;
2286
  * </code>
2287
  */
2288
+ class GoogleGAL_Service_Analytics_ManagementSegments_Resource extends GoogleGAL_Service_Resource
2289
  {
2290
 
2291
  /**
2299
  * @opt_param int start-index
2300
  * An index of the first advanced segment to retrieve. Use this parameter as a pagination mechanism
2301
  * along with the max-results parameter.
2302
+ * @return GoogleGAL_Service_Analytics_Segments
2303
  */
2304
  public function listManagementSegments($optParams = array())
2305
  {
2306
  $params = array();
2307
  $params = array_merge($params, $optParams);
2308
+ return $this->call('list', array($params), "GoogleGAL_Service_Analytics_Segments");
2309
  }
2310
  }
2311
  /**
2312
  * The "uploads" collection of methods.
2313
  * Typical usage is:
2314
  * <code>
2315
+ * $analyticsService = new GoogleGAL_Service_Analytics(...);
2316
  * $uploads = $analyticsService->uploads;
2317
  * </code>
2318
  */
2319
+ class GoogleGAL_Service_Analytics_ManagementUploads_Resource extends GoogleGAL_Service_Resource
2320
  {
2321
 
2322
  /**
2328
  * Web property Id for the uploads to be deleted.
2329
  * @param string $customDataSourceId
2330
  * Custom data source Id for the uploads to be deleted.
2331
+ * @param GoogleGAL_AnalyticsDataimportDeleteUploadDataRequest $postBody
2332
  * @param array $optParams Optional parameters.
2333
  */
2334
+ public function deleteUploadData($accountId, $webPropertyId, $customDataSourceId, GoogleGAL_Service_Analytics_AnalyticsDataimportDeleteUploadDataRequest $postBody, $optParams = array())
2335
  {
2336
  $params = array('accountId' => $accountId, 'webPropertyId' => $webPropertyId, 'customDataSourceId' => $customDataSourceId, 'postBody' => $postBody);
2337
  $params = array_merge($params, $optParams);
2349
  * @param string $uploadId
2350
  * Upload Id to retrieve.
2351
  * @param array $optParams Optional parameters.
2352
+ * @return GoogleGAL_Service_Analytics_Upload
2353
  */
2354
  public function get($accountId, $webPropertyId, $customDataSourceId, $uploadId, $optParams = array())
2355
  {
2356
  $params = array('accountId' => $accountId, 'webPropertyId' => $webPropertyId, 'customDataSourceId' => $customDataSourceId, 'uploadId' => $uploadId);
2357
  $params = array_merge($params, $optParams);
2358
+ return $this->call('get', array($params), "GoogleGAL_Service_Analytics_Upload");
2359
  }
2360
  /**
2361
  * List uploads to which the user has access. (uploads.listManagementUploads)
2373
  * @opt_param int start-index
2374
  * A 1-based index of the first upload to retrieve. Use this parameter as a pagination mechanism
2375
  * along with the max-results parameter.
2376
+ * @return GoogleGAL_Service_Analytics_Uploads
2377
  */
2378
  public function listManagementUploads($accountId, $webPropertyId, $customDataSourceId, $optParams = array())
2379
  {
2380
  $params = array('accountId' => $accountId, 'webPropertyId' => $webPropertyId, 'customDataSourceId' => $customDataSourceId);
2381
  $params = array_merge($params, $optParams);
2382
+ return $this->call('list', array($params), "GoogleGAL_Service_Analytics_Uploads");
2383
  }
2384
  /**
2385
  * Upload data for a custom data source. (uploads.uploadData)
2391
  * @param string $customDataSourceId
2392
  * Custom data source Id to which the data being uploaded belongs.
2393
  * @param array $optParams Optional parameters.
2394
+ * @return GoogleGAL_Service_Analytics_Upload
2395
  */
2396
  public function uploadData($accountId, $webPropertyId, $customDataSourceId, $optParams = array())
2397
  {
2398
  $params = array('accountId' => $accountId, 'webPropertyId' => $webPropertyId, 'customDataSourceId' => $customDataSourceId);
2399
  $params = array_merge($params, $optParams);
2400
+ return $this->call('uploadData', array($params), "GoogleGAL_Service_Analytics_Upload");
2401
  }
2402
  }
2403
  /**
2404
  * The "webproperties" collection of methods.
2405
  * Typical usage is:
2406
  * <code>
2407
+ * $analyticsService = new GoogleGAL_Service_Analytics(...);
2408
  * $webproperties = $analyticsService->webproperties;
2409
  * </code>
2410
  */
2411
+ class GoogleGAL_Service_Analytics_ManagementWebproperties_Resource extends GoogleGAL_Service_Resource
2412
  {
2413
 
2414
  /**
2419
  * @param string $webPropertyId
2420
  * ID to retrieve the web property for.
2421
  * @param array $optParams Optional parameters.
2422
+ * @return GoogleGAL_Service_Analytics_Webproperty
2423
  */
2424
  public function get($accountId, $webPropertyId, $optParams = array())
2425
  {
2426
  $params = array('accountId' => $accountId, 'webPropertyId' => $webPropertyId);
2427
  $params = array_merge($params, $optParams);
2428
+ return $this->call('get', array($params), "GoogleGAL_Service_Analytics_Webproperty");
2429
  }
2430
  /**
2431
  * Create a new property if the account has fewer than 20 properties. Web
2434
  *
2435
  * @param string $accountId
2436
  * Account ID to create the web property for.
2437
+ * @param GoogleGAL_Webproperty $postBody
2438
  * @param array $optParams Optional parameters.
2439
+ * @return GoogleGAL_Service_Analytics_Webproperty
2440
  */
2441
+ public function insert($accountId, GoogleGAL_Service_Analytics_Webproperty $postBody, $optParams = array())
2442
  {
2443
  $params = array('accountId' => $accountId, 'postBody' => $postBody);
2444
  $params = array_merge($params, $optParams);
2445
+ return $this->call('insert', array($params), "GoogleGAL_Service_Analytics_Webproperty");
2446
  }
2447
  /**
2448
  * Lists web properties to which the user has access.
2458
  * @opt_param int start-index
2459
  * An index of the first entity to retrieve. Use this parameter as a pagination mechanism along
2460
  * with the max-results parameter.
2461
+ * @return GoogleGAL_Service_Analytics_Webproperties
2462
  */
2463
  public function listManagementWebproperties($accountId, $optParams = array())
2464
  {
2465
  $params = array('accountId' => $accountId);
2466
  $params = array_merge($params, $optParams);
2467
+ return $this->call('list', array($params), "GoogleGAL_Service_Analytics_Webproperties");
2468
  }
2469
  /**
2470
  * Updates an existing web property. This method supports patch semantics.
2474
  * Account ID to which the web property belongs
2475
  * @param string $webPropertyId
2476
  * Web property ID
2477
+ * @param GoogleGAL_Webproperty $postBody
2478
  * @param array $optParams Optional parameters.
2479
+ * @return GoogleGAL_Service_Analytics_Webproperty
2480
  */
2481
+ public function patch($accountId, $webPropertyId, GoogleGAL_Service_Analytics_Webproperty $postBody, $optParams = array())
2482
  {
2483
  $params = array('accountId' => $accountId, 'webPropertyId' => $webPropertyId, 'postBody' => $postBody);
2484
  $params = array_merge($params, $optParams);
2485
+ return $this->call('patch', array($params), "GoogleGAL_Service_Analytics_Webproperty");
2486
  }
2487
  /**
2488
  * Updates an existing web property. (webproperties.update)
2491
  * Account ID to which the web property belongs
2492
  * @param string $webPropertyId
2493
  * Web property ID
2494
+ * @param GoogleGAL_Webproperty $postBody
2495
  * @param array $optParams Optional parameters.
2496
+ * @return GoogleGAL_Service_Analytics_Webproperty
2497
  */
2498
+ public function update($accountId, $webPropertyId, GoogleGAL_Service_Analytics_Webproperty $postBody, $optParams = array())
2499
  {
2500
  $params = array('accountId' => $accountId, 'webPropertyId' => $webPropertyId, 'postBody' => $postBody);
2501
  $params = array_merge($params, $optParams);
2502
+ return $this->call('update', array($params), "GoogleGAL_Service_Analytics_Webproperty");
2503
  }
2504
  }
2505
  /**
2506
  * The "webpropertyUserLinks" collection of methods.
2507
  * Typical usage is:
2508
  * <code>
2509
+ * $analyticsService = new GoogleGAL_Service_Analytics(...);
2510
  * $webpropertyUserLinks = $analyticsService->webpropertyUserLinks;
2511
  * </code>
2512
  */
2513
+ class GoogleGAL_Service_Analytics_ManagementWebpropertyUserLinks_Resource extends GoogleGAL_Service_Resource
2514
  {
2515
 
2516
  /**
2537
  * Account ID to create the user link for.
2538
  * @param string $webPropertyId
2539
  * Web Property ID to create the user link for.
2540
+ * @param GoogleGAL_EntityUserLink $postBody
2541
  * @param array $optParams Optional parameters.
2542
+ * @return GoogleGAL_Service_Analytics_EntityUserLink
2543
  */
2544
+ public function insert($accountId, $webPropertyId, GoogleGAL_Service_Analytics_EntityUserLink $postBody, $optParams = array())
2545
  {
2546
  $params = array('accountId' => $accountId, 'webPropertyId' => $webPropertyId, 'postBody' => $postBody);
2547
  $params = array_merge($params, $optParams);
2548
+ return $this->call('insert', array($params), "GoogleGAL_Service_Analytics_EntityUserLink");
2549
  }
2550
  /**
2551
  * Lists webProperty-user links for a given web property.
2562
  * @opt_param int start-index
2563
  * An index of the first webProperty-user link to retrieve. Use this parameter as a pagination
2564
  * mechanism along with the max-results parameter.
2565
+ * @return GoogleGAL_Service_Analytics_EntityUserLinks
2566
  */
2567
  public function listManagementWebpropertyUserLinks($accountId, $webPropertyId, $optParams = array())
2568
  {
2569
  $params = array('accountId' => $accountId, 'webPropertyId' => $webPropertyId);
2570
  $params = array_merge($params, $optParams);
2571
+ return $this->call('list', array($params), "GoogleGAL_Service_Analytics_EntityUserLinks");
2572
  }
2573
  /**
2574
  * Updates permissions for an existing user on the given web property.
2580
  * Web property ID to update the account-user link for.
2581
  * @param string $linkId
2582
  * Link ID to update the account-user link for.
2583
+ * @param GoogleGAL_EntityUserLink $postBody
2584
  * @param array $optParams Optional parameters.
2585
+ * @return GoogleGAL_Service_Analytics_EntityUserLink
2586
  */
2587
+ public function update($accountId, $webPropertyId, $linkId, GoogleGAL_Service_Analytics_EntityUserLink $postBody, $optParams = array())
2588
  {
2589
  $params = array('accountId' => $accountId, 'webPropertyId' => $webPropertyId, 'linkId' => $linkId, 'postBody' => $postBody);
2590
  $params = array_merge($params, $optParams);
2591
+ return $this->call('update', array($params), "GoogleGAL_Service_Analytics_EntityUserLink");
2592
  }
2593
  }
2594
 
2596
  * The "metadata" collection of methods.
2597
  * Typical usage is:
2598
  * <code>
2599
+ * $analyticsService = new GoogleGAL_Service_Analytics(...);
2600
  * $metadata = $analyticsService->metadata;
2601
  * </code>
2602
  */
2603
+ class GoogleGAL_Service_Analytics_Metadata_Resource extends GoogleGAL_Service_Resource
2604
  {
2605
 
2606
  }
2609
  * The "columns" collection of methods.
2610
  * Typical usage is:
2611
  * <code>
2612
+ * $analyticsService = new GoogleGAL_Service_Analytics(...);
2613
  * $columns = $analyticsService->columns;
2614
  * </code>
2615
  */
2616
+ class GoogleGAL_Service_Analytics_MetadataColumns_Resource extends GoogleGAL_Service_Resource
2617
  {
2618
 
2619
  /**
2622
  * @param string $reportType
2623
  * Report type. Allowed Values: 'ga'. Where 'ga' corresponds to the Core Reporting API
2624
  * @param array $optParams Optional parameters.
2625
+ * @return GoogleGAL_Service_Analytics_Columns
2626
  */
2627
  public function listMetadataColumns($reportType, $optParams = array())
2628
  {
2629
  $params = array('reportType' => $reportType);
2630
  $params = array_merge($params, $optParams);
2631
+ return $this->call('list', array($params), "GoogleGAL_Service_Analytics_Columns");
2632
  }
2633
  }
2634
 
2635
 
2636
 
2637
 
2638
+ class GoogleGAL_Service_Analytics_Account extends GoogleGAL_Model
2639
  {
2640
+ protected $childLinkType = 'GoogleGAL_Service_Analytics_AccountChildLink';
2641
  protected $childLinkDataType = '';
2642
  public $created;
2643
  public $id;
2644
  public $kind;
2645
  public $name;
2646
+ protected $permissionsType = 'GoogleGAL_Service_Analytics_AccountPermissions';
2647
  protected $permissionsDataType = '';
2648
  public $selfLink;
2649
  public $updated;
2650
 
2651
+ public function setChildLink(GoogleGAL_Service_Analytics_AccountChildLink $childLink)
2652
  {
2653
  $this->childLink = $childLink;
2654
  }
2698
  return $this->name;
2699
  }
2700
 
2701
+ public function setPermissions(GoogleGAL_Service_Analytics_AccountPermissions $permissions)
2702
  {
2703
  $this->permissions = $permissions;
2704
  }
2729
  }
2730
  }
2731
 
2732
+ class GoogleGAL_Service_Analytics_AccountChildLink extends GoogleGAL_Model
2733
  {
2734
  public $href;
2735
  public $type;
2755
  }
2756
  }
2757
 
2758
+ class GoogleGAL_Service_Analytics_AccountPermissions extends GoogleGAL_Collection
2759
  {
2760
  public $effective;
2761
 
2770
  }
2771
  }
2772
 
2773
+ class GoogleGAL_Service_Analytics_AccountRef extends GoogleGAL_Model
2774
  {
2775
  public $href;
2776
  public $id;
2818
  }
2819
  }
2820
 
2821
+ class GoogleGAL_Service_Analytics_AccountSummaries extends GoogleGAL_Collection
2822
  {
2823
+ protected $itemsType = 'GoogleGAL_Service_Analytics_AccountSummary';
2824
  protected $itemsDataType = 'array';
2825
  public $itemsPerPage;
2826
  public $kind;
2911
  }
2912
  }
2913
 
2914
+ class GoogleGAL_Service_Analytics_AccountSummary extends GoogleGAL_Collection
2915
  {
2916
  public $id;
2917
  public $kind;
2918
  public $name;
2919
+ protected $webPropertiesType = 'GoogleGAL_Service_Analytics_WebPropertySummary';
2920
  protected $webPropertiesDataType = 'array';
2921
 
2922
  public function setId($id)
2960
  }
2961
  }
2962
 
2963
+ class GoogleGAL_Service_Analytics_Accounts extends GoogleGAL_Collection
2964
  {
2965
+ protected $itemsType = 'GoogleGAL_Service_Analytics_Account';
2966
  protected $itemsDataType = 'array';
2967
  public $itemsPerPage;
2968
  public $kind;
3053
  }
3054
  }
3055
 
3056
+ class GoogleGAL_Service_Analytics_AnalyticsDataimportDeleteUploadDataRequest extends GoogleGAL_Collection
3057
  {
3058
  public $customDataImportUids;
3059
 
3068
  }
3069
  }
3070
 
3071
+ class GoogleGAL_Service_Analytics_Column extends GoogleGAL_Model
3072
  {
3073
  public $attributes;
3074
  public $id;
3105
  }
3106
  }
3107
 
3108
+ class GoogleGAL_Service_Analytics_Columns extends GoogleGAL_Collection
3109
  {
3110
  public $attributeNames;
3111
  public $etag;
3112
+ protected $itemsType = 'GoogleGAL_Service_Analytics_Column';
3113
  protected $itemsDataType = 'array';
3114
  public $kind;
3115
  public $totalResults;
3165
  }
3166
  }
3167
 
3168
+ class GoogleGAL_Service_Analytics_CustomDataSource extends GoogleGAL_Collection
3169
  {
3170
  public $accountId;
3171
+ protected $childLinkType = 'GoogleGAL_Service_Analytics_CustomDataSourceChildLink';
3172
  protected $childLinkDataType = '';
3173
  public $created;
3174
  public $description;
3175
  public $id;
3176
  public $kind;
3177
  public $name;
3178
+ protected $parentLinkType = 'GoogleGAL_Service_Analytics_CustomDataSourceParentLink';
3179
  protected $parentLinkDataType = '';
3180
  public $profilesLinked;
3181
  public $selfLink;
3193
  return $this->accountId;
3194
  }
3195
 
3196
+ public function setChildLink(GoogleGAL_Service_Analytics_CustomDataSourceChildLink $childLink)
3197
  {
3198
  $this->childLink = $childLink;
3199
  }
3253
  return $this->name;
3254
  }
3255
 
3256
+ public function setParentLink(GoogleGAL_Service_Analytics_CustomDataSourceParentLink $parentLink)
3257
  {
3258
  $this->parentLink = $parentLink;
3259
  }
3314
  }
3315
  }
3316
 
3317
+ class GoogleGAL_Service_Analytics_CustomDataSourceChildLink extends GoogleGAL_Model
3318
  {
3319
  public $href;
3320
  public $type;
3340
  }
3341
  }
3342
 
3343
+ class GoogleGAL_Service_Analytics_CustomDataSourceParentLink extends GoogleGAL_Model
3344
  {
3345
  public $href;
3346
  public $type;
3366
  }
3367
  }
3368
 
3369
+ class GoogleGAL_Service_Analytics_CustomDataSources extends GoogleGAL_Collection
3370
  {
3371
+ protected $itemsType = 'GoogleGAL_Service_Analytics_CustomDataSource';
3372
  protected $itemsDataType = 'array';
3373
  public $itemsPerPage;
3374
  public $kind;
3459
  }
3460
  }
3461
 
3462
+ class GoogleGAL_Service_Analytics_DailyUpload extends GoogleGAL_Collection
3463
  {
3464
  public $accountId;
3465
  public $appendCount;
3468
  public $date;
3469
  public $kind;
3470
  public $modifiedTime;
3471
+ protected $parentLinkType = 'GoogleGAL_Service_Analytics_DailyUploadParentLink';
3472
  protected $parentLinkDataType = '';
3473
+ protected $recentChangesType = 'GoogleGAL_Service_Analytics_DailyUploadRecentChanges';
3474
  protected $recentChangesDataType = 'array';
3475
  public $selfLink;
3476
  public $webPropertyId;
3545
  return $this->modifiedTime;
3546
  }
3547
 
3548
+ public function setParentLink(GoogleGAL_Service_Analytics_DailyUploadParentLink $parentLink)
3549
  {
3550
  $this->parentLink = $parentLink;
3551
  }
3586
  }
3587
  }
3588
 
3589
+ class GoogleGAL_Service_Analytics_DailyUploadAppend extends GoogleGAL_Model
3590
  {
3591
  public $accountId;
3592
  public $appendNumber;
3667
  }
3668
  }
3669
 
3670
+ class GoogleGAL_Service_Analytics_DailyUploadParentLink extends GoogleGAL_Model
3671
  {
3672
  public $href;
3673
  public $type;
3693
  }
3694
  }
3695
 
3696
+ class GoogleGAL_Service_Analytics_DailyUploadRecentChanges extends GoogleGAL_Model
3697
  {
3698
  public $change;
3699
  public $time;
3719
  }
3720
  }
3721
 
3722
+ class GoogleGAL_Service_Analytics_DailyUploads extends GoogleGAL_Collection
3723
  {
3724
+ protected $itemsType = 'GoogleGAL_Service_Analytics_DailyUpload';
3725
  protected $itemsDataType = 'array';
3726
  public $itemsPerPage;
3727
  public $kind;
3812
  }
3813
  }
3814
 
3815
+ class GoogleGAL_Service_Analytics_EntityUserLink extends GoogleGAL_Model
3816
  {
3817
+ protected $entityType = 'GoogleGAL_Service_Analytics_EntityUserLinkEntity';
3818
  protected $entityDataType = '';
3819
  public $id;
3820
  public $kind;
3821
+ protected $permissionsType = 'GoogleGAL_Service_Analytics_EntityUserLinkPermissions';
3822
  protected $permissionsDataType = '';
3823
  public $selfLink;
3824
+ protected $userRefType = 'GoogleGAL_Service_Analytics_UserRef';
3825
  protected $userRefDataType = '';
3826
 
3827
+ public function setEntity(GoogleGAL_Service_Analytics_EntityUserLinkEntity $entity)
3828
  {
3829
  $this->entity = $entity;
3830
  }
3854
  return $this->kind;
3855
  }
3856
 
3857
+ public function setPermissions(GoogleGAL_Service_Analytics_EntityUserLinkPermissions $permissions)
3858
  {
3859
  $this->permissions = $permissions;
3860
  }
3874
  return $this->selfLink;
3875
  }
3876
 
3877
+ public function setUserRef(GoogleGAL_Service_Analytics_UserRef $userRef)
3878
  {
3879
  $this->userRef = $userRef;
3880
  }
3885
  }
3886
  }
3887
 
3888
+ class GoogleGAL_Service_Analytics_EntityUserLinkEntity extends GoogleGAL_Model
3889
  {
3890
+ protected $accountRefType = 'GoogleGAL_Service_Analytics_AccountRef';
3891
  protected $accountRefDataType = '';
3892
+ protected $profileRefType = 'GoogleGAL_Service_Analytics_ProfileRef';
3893
  protected $profileRefDataType = '';
3894
+ protected $webPropertyRefType = 'GoogleGAL_Service_Analytics_WebPropertyRef';
3895
  protected $webPropertyRefDataType = '';
3896
 
3897
+ public function setAccountRef(GoogleGAL_Service_Analytics_AccountRef $accountRef)
3898
  {
3899
  $this->accountRef = $accountRef;
3900
  }
3904
  return $this->accountRef;
3905
  }
3906
 
3907
+ public function setProfileRef(GoogleGAL_Service_Analytics_ProfileRef $profileRef)
3908
  {
3909
  $this->profileRef = $profileRef;
3910
  }
3914
  return $this->profileRef;
3915
  }
3916
 
3917
+ public function setWebPropertyRef(GoogleGAL_Service_Analytics_WebPropertyRef $webPropertyRef)
3918
  {
3919
  $this->webPropertyRef = $webPropertyRef;
3920
  }
3925
  }
3926
  }
3927
 
3928
+ class GoogleGAL_Service_Analytics_EntityUserLinkPermissions extends GoogleGAL_Collection
3929
  {
3930
  public $effective;
3931
  public $local;
3951
  }
3952
  }
3953
 
3954
+ class GoogleGAL_Service_Analytics_EntityUserLinks extends GoogleGAL_Collection
3955
  {
3956
+ protected $itemsType = 'GoogleGAL_Service_Analytics_EntityUserLink';
3957
  protected $itemsDataType = 'array';
3958
  public $itemsPerPage;
3959
  public $kind;
4033
  }
4034
  }
4035
 
4036
+ class GoogleGAL_Service_Analytics_Experiment extends GoogleGAL_Collection
4037
  {
4038
  public $accountId;
4039
  public $created;
4048
  public $name;
4049
  public $objectiveMetric;
4050
  public $optimizationType;
4051
+ protected $parentLinkType = 'GoogleGAL_Service_Analytics_ExperimentParentLink';
4052
  protected $parentLinkDataType = '';
4053
  public $profileId;
4054
  public $reasonExperimentEnded;
4060
  public $status;
4061
  public $trafficCoverage;
4062
  public $updated;
4063
+ protected $variationsType = 'GoogleGAL_Service_Analytics_ExperimentVariations';
4064
  protected $variationsDataType = 'array';
4065
  public $webPropertyId;
4066
  public $winnerConfidenceLevel;
4196
  return $this->optimizationType;
4197
  }
4198
 
4199
+ public function setParentLink(GoogleGAL_Service_Analytics_ExperimentParentLink $parentLink)
4200
  {
4201
  $this->parentLink = $parentLink;
4202
  }
4347
  }
4348
  }
4349
 
4350
+ class GoogleGAL_Service_Analytics_ExperimentParentLink extends GoogleGAL_Model
4351
  {
4352
  public $href;
4353
  public $type;
4373
  }
4374
  }
4375
 
4376
+ class GoogleGAL_Service_Analytics_ExperimentVariations extends GoogleGAL_Model
4377
  {
4378
  public $name;
4379
  public $status;
4432
  }
4433
  }
4434
 
4435
+ class GoogleGAL_Service_Analytics_Experiments extends GoogleGAL_Collection
4436
  {
4437
+ protected $itemsType = 'GoogleGAL_Service_Analytics_Experiment';
4438
  protected $itemsDataType = 'array';
4439
  public $itemsPerPage;
4440
  public $kind;
4525
  }
4526
  }
4527
 
4528
+ class GoogleGAL_Service_Analytics_GaData extends GoogleGAL_Collection
4529
  {
4530
+ protected $columnHeadersType = 'GoogleGAL_Service_Analytics_GaDataColumnHeaders';
4531
  protected $columnHeadersDataType = 'array';
4532
  public $containsSampledData;
4533
+ protected $dataTableType = 'GoogleGAL_Service_Analytics_GaDataDataTable';
4534
  protected $dataTableDataType = '';
4535
  public $id;
4536
  public $itemsPerPage;
4537
  public $kind;
4538
  public $nextLink;
4539
  public $previousLink;
4540
+ protected $profileInfoType = 'GoogleGAL_Service_Analytics_GaDataProfileInfo';
4541
  protected $profileInfoDataType = '';
4542
+ protected $queryType = 'GoogleGAL_Service_Analytics_GaDataQuery';
4543
  protected $queryDataType = '';
4544
  public $rows;
4545
  public $sampleSize;
4568
  return $this->containsSampledData;
4569
  }
4570
 
4571
+ public function setDataTable(GoogleGAL_Service_Analytics_GaDataDataTable $dataTable)
4572
  {
4573
  $this->dataTable = $dataTable;
4574
  }
4628
  return $this->previousLink;
4629
  }
4630
 
4631
+ public function setProfileInfo(GoogleGAL_Service_Analytics_GaDataProfileInfo $profileInfo)
4632
  {
4633
  $this->profileInfo = $profileInfo;
4634
  }
4638
  return $this->profileInfo;
4639
  }
4640
 
4641
+ public function setQuery(GoogleGAL_Service_Analytics_GaDataQuery $query)
4642
  {
4643
  $this->query = $query;
4644
  }
4709
  }
4710
  }
4711
 
4712
+ class GoogleGAL_Service_Analytics_GaDataColumnHeaders extends GoogleGAL_Model
4713
  {
4714
  public $columnType;
4715
  public $dataType;
4746
  }
4747
  }
4748
 
4749
+ class GoogleGAL_Service_Analytics_GaDataDataTable extends GoogleGAL_Collection
4750
  {
4751
+ protected $colsType = 'GoogleGAL_Service_Analytics_GaDataDataTableCols';
4752
  protected $colsDataType = 'array';
4753
+ protected $rowsType = 'GoogleGAL_Service_Analytics_GaDataDataTableRows';
4754
  protected $rowsDataType = 'array';
4755
 
4756
  public function setCols($cols)
4774
  }
4775
  }
4776
 
4777
+ class GoogleGAL_Service_Analytics_GaDataDataTableCols extends GoogleGAL_Model
4778
  {
4779
  public $id;
4780
  public $label;
4811
  }
4812
  }
4813
 
4814
+ class GoogleGAL_Service_Analytics_GaDataDataTableRows extends GoogleGAL_Collection
4815
  {
4816
+ protected $cType = 'GoogleGAL_Service_Analytics_GaDataDataTableRowsC';
4817
  protected $cDataType = 'array';
4818
 
4819
  public function setC($c)
4827
  }
4828
  }
4829
 
4830
+ class GoogleGAL_Service_Analytics_GaDataDataTableRowsC extends GoogleGAL_Model
4831
  {
4832
  public $v;
4833
 
4842
  }
4843
  }
4844
 
4845
+ class GoogleGAL_Service_Analytics_GaDataProfileInfo extends GoogleGAL_Model
4846
  {
4847
  public $accountId;
4848
  public $internalWebPropertyId;
4912
  }
4913
  }
4914
 
4915
+ class GoogleGAL_Service_Analytics_GaDataQuery extends GoogleGAL_Collection
4916
  {
4917
  public $dimensions;
4918
  public $endDate;
5037
  }
5038
  }
5039
 
5040
+ class GoogleGAL_Service_Analytics_Goal extends GoogleGAL_Model
5041
  {
5042
  public $accountId;
5043
  public $active;
5044
  public $created;
5045
+ protected $eventDetailsType = 'GoogleGAL_Service_Analytics_GoalEventDetails';
5046
  protected $eventDetailsDataType = '';
5047
  public $id;
5048
  public $internalWebPropertyId;
5049
  public $kind;
5050
  public $name;
5051
+ protected $parentLinkType = 'GoogleGAL_Service_Analytics_GoalParentLink';
5052
  protected $parentLinkDataType = '';
5053
  public $profileId;
5054
  public $selfLink;
5055
  public $type;
5056
  public $updated;
5057
+ protected $urlDestinationDetailsType = 'GoogleGAL_Service_Analytics_GoalUrlDestinationDetails';
5058
  protected $urlDestinationDetailsDataType = '';
5059
  public $value;
5060
+ protected $visitNumPagesDetailsType = 'GoogleGAL_Service_Analytics_GoalVisitNumPagesDetails';
5061
  protected $visitNumPagesDetailsDataType = '';
5062
+ protected $visitTimeOnSiteDetailsType = 'GoogleGAL_Service_Analytics_GoalVisitTimeOnSiteDetails';
5063
  protected $visitTimeOnSiteDetailsDataType = '';
5064
  public $webPropertyId;
5065
 
5093
  return $this->created;
5094
  }
5095
 
5096
+ public function setEventDetails(GoogleGAL_Service_Analytics_GoalEventDetails $eventDetails)
5097
  {
5098
  $this->eventDetails = $eventDetails;
5099
  }
5143
  return $this->name;
5144
  }
5145
 
5146
+ public function setParentLink(GoogleGAL_Service_Analytics_GoalParentLink $parentLink)
5147
  {
5148
  $this->parentLink = $parentLink;
5149
  }
5193
  return $this->updated;
5194
  }
5195
 
5196
+ public function setUrlDestinationDetails(GoogleGAL_Service_Analytics_GoalUrlDestinationDetails $urlDestinationDetails)
5197
  {
5198
  $this->urlDestinationDetails = $urlDestinationDetails;
5199
  }
5213
  return $this->value;
5214
  }
5215
 
5216
+ public function setVisitNumPagesDetails(GoogleGAL_Service_Analytics_GoalVisitNumPagesDetails $visitNumPagesDetails)
5217
  {
5218
  $this->visitNumPagesDetails = $visitNumPagesDetails;
5219
  }
5223
  return $this->visitNumPagesDetails;
5224
  }
5225
 
5226
+ public function setVisitTimeOnSiteDetails(GoogleGAL_Service_Analytics_GoalVisitTimeOnSiteDetails $visitTimeOnSiteDetails)
5227
  {
5228
  $this->visitTimeOnSiteDetails = $visitTimeOnSiteDetails;
5229
  }
5244
  }
5245
  }
5246
 
5247
+ class GoogleGAL_Service_Analytics_GoalEventDetails extends GoogleGAL_Collection
5248
  {
5249
+ protected $eventConditionsType = 'GoogleGAL_Service_Analytics_GoalEventDetailsEventConditions';
5250
  protected $eventConditionsDataType = 'array';
5251
  public $useEventValue;
5252
 
5271
  }
5272
  }
5273
 
5274
+ class GoogleGAL_Service_Analytics_GoalEventDetailsEventConditions extends GoogleGAL_Model
5275
  {
5276
  public $comparisonType;
5277
  public $comparisonValue;
5330
  }
5331
  }
5332
 
5333
+ class GoogleGAL_Service_Analytics_GoalParentLink extends GoogleGAL_Model
5334
  {
5335
  public $href;
5336
  public $type;
5356
  }
5357
  }
5358
 
5359
+ class GoogleGAL_Service_Analytics_GoalUrlDestinationDetails extends GoogleGAL_Collection
5360
  {
5361
  public $caseSensitive;
5362
  public $firstStepRequired;
5363
  public $matchType;
5364
+ protected $stepsType = 'GoogleGAL_Service_Analytics_GoalUrlDestinationDetailsSteps';
5365
  protected $stepsDataType = 'array';
5366
  public $url;
5367
 
5416
  }
5417
  }
5418
 
5419
+ class GoogleGAL_Service_Analytics_GoalUrlDestinationDetailsSteps extends GoogleGAL_Model
5420
  {
5421
  public $name;
5422
  public $number;
5453
  }
5454
  }
5455
 
5456
+ class GoogleGAL_Service_Analytics_GoalVisitNumPagesDetails extends GoogleGAL_Model
5457
  {
5458
  public $comparisonType;
5459
  public $comparisonValue;
5479
  }
5480
  }
5481
 
5482
+ class GoogleGAL_Service_Analytics_GoalVisitTimeOnSiteDetails extends GoogleGAL_Model
5483
  {
5484
  public $comparisonType;
5485
  public $comparisonValue;
5505
  }
5506
  }
5507
 
5508
+ class GoogleGAL_Service_Analytics_Goals extends GoogleGAL_Collection
5509
  {
5510
+ protected $itemsType = 'GoogleGAL_Service_Analytics_Goal';
5511
  protected $itemsDataType = 'array';
5512
  public $itemsPerPage;
5513
  public $kind;
5598
  }
5599
  }
5600
 
5601
+ class GoogleGAL_Service_Analytics_McfData extends GoogleGAL_Collection
5602
  {
5603
+ protected $columnHeadersType = 'GoogleGAL_Service_Analytics_McfDataColumnHeaders';
5604
  protected $columnHeadersDataType = 'array';
5605
  public $containsSampledData;
5606
  public $id;
5608
  public $kind;
5609
  public $nextLink;
5610
  public $previousLink;
5611
+ protected $profileInfoType = 'GoogleGAL_Service_Analytics_McfDataProfileInfo';
5612
  protected $profileInfoDataType = '';
5613
+ protected $queryType = 'GoogleGAL_Service_Analytics_McfDataQuery';
5614
  protected $queryDataType = '';
5615
+ protected $rowsType = 'GoogleGAL_Service_Analytics_McfDataRows';
5616
  protected $rowsDataType = 'array';
5617
  public $sampleSize;
5618
  public $sampleSpace;
5690
  return $this->previousLink;
5691
  }
5692
 
5693
+ public function setProfileInfo(GoogleGAL_Service_Analytics_McfDataProfileInfo $profileInfo)
5694
  {
5695
  $this->profileInfo = $profileInfo;
5696
  }
5700
  return $this->profileInfo;
5701
  }
5702
 
5703
+ public function setQuery(GoogleGAL_Service_Analytics_McfDataQuery $query)
5704
  {
5705
  $this->query = $query;
5706
  }
5771
  }
5772
  }
5773
 
5774
+ class GoogleGAL_Service_Analytics_McfDataColumnHeaders extends GoogleGAL_Model
5775
  {
5776
  public $columnType;
5777
  public $dataType;
5808
  }
5809
  }
5810
 
5811
+ class GoogleGAL_Service_Analytics_McfDataProfileInfo extends GoogleGAL_Model
5812
  {
5813
  public $accountId;
5814
  public $internalWebPropertyId;
5878
  }
5879
  }
5880
 
5881
+ class GoogleGAL_Service_Analytics_McfDataQuery extends GoogleGAL_Collection
5882
  {
5883
  public $dimensions;
5884
  public $endDate;
6003
  }
6004
  }
6005
 
6006
+ class GoogleGAL_Service_Analytics_McfDataRows extends GoogleGAL_Collection
6007
  {
6008
+ protected $conversionPathValueType = 'GoogleGAL_Service_Analytics_McfDataRowsConversionPathValue';
6009
  protected $conversionPathValueDataType = 'array';
6010
  public $primitiveValue;
6011
 
6030
  }
6031
  }
6032
 
6033
+ class GoogleGAL_Service_Analytics_McfDataRowsConversionPathValue extends GoogleGAL_Model
6034
  {
6035
  public $interactionType;
6036
  public $nodeValue;
6056
  }
6057
  }
6058
 
6059
+ class GoogleGAL_Service_Analytics_Profile extends GoogleGAL_Model
6060
  {
6061
  public $accountId;
6062
+ protected $childLinkType = 'GoogleGAL_Service_Analytics_ProfileChildLink';
6063
  protected $childLinkDataType = '';
6064
  public $created;
6065
  public $currency;
6070
  public $internalWebPropertyId;
6071
  public $kind;
6072
  public $name;
6073
+ protected $parentLinkType = 'GoogleGAL_Service_Analytics_ProfileParentLink';
6074
  protected $parentLinkDataType = '';
6075
+ protected $permissionsType = 'GoogleGAL_Service_Analytics_ProfilePermissions';
6076
  protected $permissionsDataType = '';
6077
  public $selfLink;
6078
  public $siteSearchCategoryParameters;
6095
  return $this->accountId;
6096
  }
6097
 
6098
+ public function setChildLink(GoogleGAL_Service_Analytics_ProfileChildLink $childLink)
6099
  {
6100
  $this->childLink = $childLink;
6101
  }
6195
  return $this->name;
6196
  }
6197
 
6198
+ public function setParentLink(GoogleGAL_Service_Analytics_ProfileParentLink $parentLink)
6199
  {
6200
  $this->parentLink = $parentLink;
6201
  }
6205
  return $this->parentLink;
6206
  }
6207
 
6208
+ public function setPermissions(GoogleGAL_Service_Analytics_ProfilePermissions $permissions)
6209
  {
6210
  $this->permissions = $permissions;
6211
  }
6316
  }
6317
  }
6318
 
6319
+ class GoogleGAL_Service_Analytics_ProfileChildLink extends GoogleGAL_Model
6320
  {
6321
  public $href;
6322
  public $type;
6342
  }
6343
  }
6344
 
6345
+ class GoogleGAL_Service_Analytics_ProfileParentLink extends GoogleGAL_Model
6346
  {
6347
  public $href;
6348
  public $type;
6368
  }
6369
  }
6370
 
6371
+ class GoogleGAL_Service_Analytics_ProfilePermissions extends GoogleGAL_Collection
6372
  {
6373
  public $effective;
6374
 
6383
  }
6384
  }
6385
 
6386
+ class GoogleGAL_Service_Analytics_ProfileRef extends GoogleGAL_Model
6387
  {
6388
  public $accountId;
6389
  public $href;
6464
  }
6465
  }
6466
 
6467
+ class GoogleGAL_Service_Analytics_ProfileSummary extends GoogleGAL_Model
6468
  {
6469
  public $id;
6470
  public $kind;
6512
  }
6513
  }
6514
 
6515
+ class GoogleGAL_Service_Analytics_Profiles extends GoogleGAL_Collection
6516
  {
6517
+ protected $itemsType = 'GoogleGAL_Service_Analytics_Profile';
6518
  protected $itemsDataType = 'array';
6519
  public $itemsPerPage;
6520
  public $kind;
6605
  }
6606
  }
6607
 
6608
+ class GoogleGAL_Service_Analytics_RealtimeData extends GoogleGAL_Collection
6609
  {
6610
+ protected $columnHeadersType = 'GoogleGAL_Service_Analytics_RealtimeDataColumnHeaders';
6611
  protected $columnHeadersDataType = 'array';
6612
  public $id;
6613
  public $kind;
6614
+ protected $profileInfoType = 'GoogleGAL_Service_Analytics_RealtimeDataProfileInfo';
6615
  protected $profileInfoDataType = '';
6616
+ protected $queryType = 'GoogleGAL_Service_Analytics_RealtimeDataQuery';
6617
  protected $queryDataType = '';
6618
  public $rows;
6619
  public $selfLink;
6650
  return $this->kind;
6651
  }
6652
 
6653
+ public function setProfileInfo(GoogleGAL_Service_Analytics_RealtimeDataProfileInfo $profileInfo)
6654
  {
6655
  $this->profileInfo = $profileInfo;
6656
  }
6660
  return $this->profileInfo;
6661
  }
6662
 
6663
+ public function setQuery(GoogleGAL_Service_Analytics_RealtimeDataQuery $query)
6664
  {
6665
  $this->query = $query;
6666
  }
6711
  }
6712
  }
6713
 
6714
+ class GoogleGAL_Service_Analytics_RealtimeDataColumnHeaders extends GoogleGAL_Model
6715
  {
6716
  public $columnType;
6717
  public $dataType;
6748
  }
6749
  }
6750
 
6751
+ class GoogleGAL_Service_Analytics_RealtimeDataProfileInfo extends GoogleGAL_Model
6752
  {
6753
  public $accountId;
6754
  public $internalWebPropertyId;
6818
  }
6819
  }
6820
 
6821
+ class GoogleGAL_Service_Analytics_RealtimeDataQuery extends GoogleGAL_Collection
6822
  {
6823
  public $dimensions;
6824
  public $filters;
6888
  }
6889
  }
6890
 
6891
+ class GoogleGAL_Service_Analytics_Segment extends GoogleGAL_Model
6892
  {
6893
  public $created;
6894
  public $definition;
6991
  }
6992
  }
6993
 
6994
+ class GoogleGAL_Service_Analytics_Segments extends GoogleGAL_Collection
6995
  {
6996
+ protected $itemsType = 'GoogleGAL_Service_Analytics_Segment';
6997
  protected $itemsDataType = 'array';
6998
  public $itemsPerPage;
6999
  public $kind;
7084
  }
7085
  }
7086
 
7087
+ class GoogleGAL_Service_Analytics_Upload extends GoogleGAL_Collection
7088
  {
7089
  public $accountId;
7090
  public $customDataSourceId;
7154
  }
7155
  }
7156
 
7157
+ class GoogleGAL_Service_Analytics_Uploads extends GoogleGAL_Collection
7158
  {
7159
+ protected $itemsType = 'GoogleGAL_Service_Analytics_Upload';
7160
  protected $itemsDataType = 'array';
7161
  public $itemsPerPage;
7162
  public $kind;
7236
  }
7237
  }
7238
 
7239
+ class GoogleGAL_Service_Analytics_UserRef extends GoogleGAL_Model
7240
  {
7241
  public $email;
7242
  public $id;
7273
  }
7274
  }
7275
 
7276
+ class GoogleGAL_Service_Analytics_WebPropertyRef extends GoogleGAL_Model
7277
  {
7278
  public $accountId;
7279
  public $href;
7343
  }
7344
  }
7345
 
7346
+ class GoogleGAL_Service_Analytics_WebPropertySummary extends GoogleGAL_Collection
7347
  {
7348
  public $id;
7349
  public $internalWebPropertyId;
7350
  public $kind;
7351
  public $level;
7352
  public $name;
7353
+ protected $profilesType = 'GoogleGAL_Service_Analytics_ProfileSummary';
7354
  protected $profilesDataType = 'array';
7355
  public $websiteUrl;
7356
 
7425
  }
7426
  }
7427
 
7428
+ class GoogleGAL_Service_Analytics_Webproperties extends GoogleGAL_Collection
7429
  {
7430
+ protected $itemsType = 'GoogleGAL_Service_Analytics_Webproperty';
7431
  protected $itemsDataType = 'array';
7432
  public $itemsPerPage;
7433
  public $kind;
7518
  }
7519
  }
7520
 
7521
+ class GoogleGAL_Service_Analytics_Webproperty extends GoogleGAL_Model
7522
  {
7523
  public $accountId;
7524
+ protected $childLinkType = 'GoogleGAL_Service_Analytics_WebpropertyChildLink';
7525
  protected $childLinkDataType = '';
7526
  public $created;
7527
  public $defaultProfileId;
7531
  public $kind;
7532
  public $level;
7533
  public $name;
7534
+ protected $parentLinkType = 'GoogleGAL_Service_Analytics_WebpropertyParentLink';
7535
  protected $parentLinkDataType = '';
7536
+ protected $permissionsType = 'GoogleGAL_Service_Analytics_WebpropertyPermissions';
7537
  protected $permissionsDataType = '';
7538
  public $profileCount;
7539
  public $selfLink;
7550
  return $this->accountId;
7551
  }
7552
 
7553
+ public function setChildLink(GoogleGAL_Service_Analytics_WebpropertyChildLink $childLink)
7554
  {
7555
  $this->childLink = $childLink;
7556
  }
7640
  return $this->name;
7641
  }
7642
 
7643
+ public function setParentLink(GoogleGAL_Service_Analytics_WebpropertyParentLink $parentLink)
7644
  {
7645
  $this->parentLink = $parentLink;
7646
  }
7650
  return $this->parentLink;
7651
  }
7652
 
7653
+ public function setPermissions(GoogleGAL_Service_Analytics_WebpropertyPermissions $permissions)
7654
  {
7655
  $this->permissions = $permissions;
7656
  }
7701
  }
7702
  }
7703
 
7704
+ class GoogleGAL_Service_Analytics_WebpropertyChildLink extends GoogleGAL_Model
7705
  {
7706
  public $href;
7707
  public $type;
7727
  }
7728
  }
7729
 
7730
+ class GoogleGAL_Service_Analytics_WebpropertyParentLink extends GoogleGAL_Model
7731
  {
7732
  public $href;
7733
  public $type;
7753
  }
7754
  }
7755
 
7756
+ class GoogleGAL_Service_Analytics_WebpropertyPermissions extends GoogleGAL_Collection
7757
  {
7758
  public $effective;
7759
 
core/Google/Service/AndroidPublisher.php CHANGED
@@ -29,7 +29,7 @@
29
  *
30
  * @author Google, Inc.
31
  */
32
- class Google_Service_AndroidPublisher extends Google_Service
33
  {
34
  /** View and manage your Google Play Android Developer account. */
35
  const ANDROIDPUBLISHER = "https://www.googleapis.com/auth/androidpublisher";
@@ -41,16 +41,16 @@ class Google_Service_AndroidPublisher extends Google_Service
41
  /**
42
  * Constructs the internal representation of the AndroidPublisher service.
43
  *
44
- * @param Google_Client $client
45
  */
46
- public function __construct(Google_Client $client)
47
  {
48
  parent::__construct($client);
49
  $this->servicePath = 'androidpublisher/v1.1/applications/';
50
  $this->version = 'v1.1';
51
  $this->serviceName = 'androidpublisher';
52
 
53
- $this->inapppurchases = new Google_Service_AndroidPublisher_Inapppurchases_Resource(
54
  $this,
55
  $this->serviceName,
56
  'inapppurchases',
@@ -80,7 +80,7 @@ class Google_Service_AndroidPublisher extends Google_Service
80
  )
81
  )
82
  );
83
- $this->purchases = new Google_Service_AndroidPublisher_Purchases_Resource(
84
  $this,
85
  $this->serviceName,
86
  'purchases',
@@ -138,11 +138,11 @@ class Google_Service_AndroidPublisher extends Google_Service
138
  * The "inapppurchases" collection of methods.
139
  * Typical usage is:
140
  * <code>
141
- * $androidpublisherService = new Google_Service_AndroidPublisher(...);
142
  * $inapppurchases = $androidpublisherService->inapppurchases;
143
  * </code>
144
  */
145
- class Google_Service_AndroidPublisher_Inapppurchases_Resource extends Google_Service_Resource
146
  {
147
 
148
  /**
@@ -157,13 +157,13 @@ class Google_Service_AndroidPublisher_Inapppurchases_Resource extends Google_Ser
157
  * @param string $token
158
  * The token provided to the user's device when the inapp product was purchased.
159
  * @param array $optParams Optional parameters.
160
- * @return Google_Service_AndroidPublisher_InappPurchase
161
  */
162
  public function get($packageName, $productId, $token, $optParams = array())
163
  {
164
  $params = array('packageName' => $packageName, 'productId' => $productId, 'token' => $token);
165
  $params = array_merge($params, $optParams);
166
- return $this->call('get', array($params), "Google_Service_AndroidPublisher_InappPurchase");
167
  }
168
  }
169
 
@@ -171,11 +171,11 @@ class Google_Service_AndroidPublisher_Inapppurchases_Resource extends Google_Ser
171
  * The "purchases" collection of methods.
172
  * Typical usage is:
173
  * <code>
174
- * $androidpublisherService = new Google_Service_AndroidPublisher(...);
175
  * $purchases = $androidpublisherService->purchases;
176
  * </code>
177
  */
178
- class Google_Service_AndroidPublisher_Purchases_Resource extends Google_Service_Resource
179
  {
180
 
181
  /**
@@ -209,20 +209,20 @@ class Google_Service_AndroidPublisher_Purchases_Resource extends Google_Service_
209
  * @param string $token
210
  * The token provided to the user's device when the subscription was purchased.
211
  * @param array $optParams Optional parameters.
212
- * @return Google_Service_AndroidPublisher_SubscriptionPurchase
213
  */
214
  public function get($packageName, $subscriptionId, $token, $optParams = array())
215
  {
216
  $params = array('packageName' => $packageName, 'subscriptionId' => $subscriptionId, 'token' => $token);
217
  $params = array_merge($params, $optParams);
218
- return $this->call('get', array($params), "Google_Service_AndroidPublisher_SubscriptionPurchase");
219
  }
220
  }
221
 
222
 
223
 
224
 
225
- class Google_Service_AndroidPublisher_InappPurchase extends Google_Model
226
  {
227
  public $consumptionState;
228
  public $developerPayload;
@@ -281,7 +281,7 @@ class Google_Service_AndroidPublisher_InappPurchase extends Google_Model
281
  }
282
  }
283
 
284
- class Google_Service_AndroidPublisher_SubscriptionPurchase extends Google_Model
285
  {
286
  public $autoRenewing;
287
  public $initiationTimestampMsec;
29
  *
30
  * @author Google, Inc.
31
  */
32
+ class GoogleGAL_Service_AndroidPublisher extends GoogleGAL_Service
33
  {
34
  /** View and manage your Google Play Android Developer account. */
35
  const ANDROIDPUBLISHER = "https://www.googleapis.com/auth/androidpublisher";
41
  /**
42
  * Constructs the internal representation of the AndroidPublisher service.
43
  *
44
+ * @param GoogleGAL_Client $client
45
  */
46
+ public function __construct(GoogleGAL_Client $client)
47
  {
48
  parent::__construct($client);
49
  $this->servicePath = 'androidpublisher/v1.1/applications/';
50
  $this->version = 'v1.1';
51
  $this->serviceName = 'androidpublisher';
52
 
53
+ $this->inapppurchases = new GoogleGAL_Service_AndroidPublisher_Inapppurchases_Resource(
54
  $this,
55
  $this->serviceName,
56
  'inapppurchases',
80
  )
81
  )
82
  );
83
+ $this->purchases = new GoogleGAL_Service_AndroidPublisher_Purchases_Resource(
84
  $this,
85
  $this->serviceName,
86
  'purchases',
138
  * The "inapppurchases" collection of methods.
139
  * Typical usage is:
140
  * <code>
141
+ * $androidpublisherService = new GoogleGAL_Service_AndroidPublisher(...);
142
  * $inapppurchases = $androidpublisherService->inapppurchases;
143
  * </code>
144
  */
145
+ class GoogleGAL_Service_AndroidPublisher_Inapppurchases_Resource extends GoogleGAL_Service_Resource
146
  {
147
 
148
  /**
157
  * @param string $token
158
  * The token provided to the user's device when the inapp product was purchased.
159
  * @param array $optParams Optional parameters.
160
+ * @return GoogleGAL_Service_AndroidPublisher_InappPurchase
161
  */
162
  public function get($packageName, $productId, $token, $optParams = array())
163
  {
164
  $params = array('packageName' => $packageName, 'productId' => $productId, 'token' => $token);
165
  $params = array_merge($params, $optParams);
166
+ return $this->call('get', array($params), "GoogleGAL_Service_AndroidPublisher_InappPurchase");
167
  }
168
  }
169
 
171
  * The "purchases" collection of methods.
172
  * Typical usage is:
173
  * <code>
174
+ * $androidpublisherService = new GoogleGAL_Service_AndroidPublisher(...);
175
  * $purchases = $androidpublisherService->purchases;
176
  * </code>
177
  */
178
+ class GoogleGAL_Service_AndroidPublisher_Purchases_Resource extends GoogleGAL_Service_Resource
179
  {
180
 
181
  /**
209
  * @param string $token
210
  * The token provided to the user's device when the subscription was purchased.
211
  * @param array $optParams Optional parameters.
212
+ * @return GoogleGAL_Service_AndroidPublisher_SubscriptionPurchase
213
  */
214
  public function get($packageName, $subscriptionId, $token, $optParams = array())
215
  {
216
  $params = array('packageName' => $packageName, 'subscriptionId' => $subscriptionId, 'token' => $token);
217
  $params = array_merge($params, $optParams);
218
+ return $this->call('get', array($params), "GoogleGAL_Service_AndroidPublisher_SubscriptionPurchase");
219
  }
220
  }
221
 
222
 
223
 
224
 
225
+ class GoogleGAL_Service_AndroidPublisher_InappPurchase extends GoogleGAL_Model
226
  {
227
  public $consumptionState;
228
  public $developerPayload;
281
  }
282
  }
283
 
284
+ class GoogleGAL_Service_AndroidPublisher_SubscriptionPurchase extends GoogleGAL_Model
285
  {
286
  public $autoRenewing;
287
  public $initiationTimestampMsec;
core/Google/Service/AppState.php CHANGED
@@ -29,7 +29,7 @@
29
  *
30
  * @author Google, Inc.
31
  */
32
- class Google_Service_AppState extends Google_Service
33
  {
34
  /** View and manage your data for this application. */
35
  const APPSTATE = "https://www.googleapis.com/auth/appstate";
@@ -40,16 +40,16 @@ class Google_Service_AppState extends Google_Service
40
  /**
41
  * Constructs the internal representation of the AppState service.
42
  *
43
- * @param Google_Client $client
44
  */
45
- public function __construct(Google_Client $client)
46
  {
47
  parent::__construct($client);
48
  $this->servicePath = 'appstate/v1/';
49
  $this->version = 'v1';
50
  $this->serviceName = 'appstate';
51
 
52
- $this->states = new Google_Service_AppState_States_Resource(
53
  $this,
54
  $this->serviceName,
55
  'states',
@@ -124,11 +124,11 @@ class Google_Service_AppState extends Google_Service
124
  * The "states" collection of methods.
125
  * Typical usage is:
126
  * <code>
127
- * $appstateService = new Google_Service_AppState(...);
128
  * $states = $appstateService->states;
129
  * </code>
130
  */
131
- class Google_Service_AppState_States_Resource extends Google_Service_Resource
132
  {
133
 
134
  /**
@@ -142,13 +142,13 @@ class Google_Service_AppState_States_Resource extends Google_Service_Resource
142
  *
143
  * @opt_param string currentDataVersion
144
  * The version of the data to be cleared. Version strings are returned by the server.
145
- * @return Google_Service_AppState_WriteResult
146
  */
147
  public function clear($stateKey, $optParams = array())
148
  {
149
  $params = array('stateKey' => $stateKey);
150
  $params = array_merge($params, $optParams);
151
- return $this->call('clear', array($params), "Google_Service_AppState_WriteResult");
152
  }
153
  /**
154
  * Deletes a key and the data associated with it. The key is removed and no
@@ -173,13 +173,13 @@ class Google_Service_AppState_States_Resource extends Google_Service_Resource
173
  * @param int $stateKey
174
  * The key for the data to be retrieved.
175
  * @param array $optParams Optional parameters.
176
- * @return Google_Service_AppState_GetResponse
177
  */
178
  public function get($stateKey, $optParams = array())
179
  {
180
  $params = array('stateKey' => $stateKey);
181
  $params = array_merge($params, $optParams);
182
- return $this->call('get', array($params), "Google_Service_AppState_GetResponse");
183
  }
184
  /**
185
  * Lists all the states keys, and optionally the state data. (states.listStates)
@@ -188,13 +188,13 @@ class Google_Service_AppState_States_Resource extends Google_Service_Resource
188
  *
189
  * @opt_param bool includeData
190
  * Whether to include the full data in addition to the version number
191
- * @return Google_Service_AppState_ListResponse
192
  */
193
  public function listStates($optParams = array())
194
  {
195
  $params = array();
196
  $params = array_merge($params, $optParams);
197
- return $this->call('list', array($params), "Google_Service_AppState_ListResponse");
198
  }
199
  /**
200
  * Update the data associated with the input key if and only if the passed
@@ -203,27 +203,27 @@ class Google_Service_AppState_States_Resource extends Google_Service_Resource
203
  *
204
  * @param int $stateKey
205
  * The key for the data to be retrieved.
206
- * @param Google_UpdateRequest $postBody
207
  * @param array $optParams Optional parameters.
208
  *
209
  * @opt_param string currentStateVersion
210
  * The version of the app state your application is attempting to update. If this does not match
211
  * the current version, this method will return a conflict error. If there is no data stored on the
212
  * server for this key, the update will succeed irrespective of the value of this parameter.
213
- * @return Google_Service_AppState_WriteResult
214
  */
215
- public function update($stateKey, Google_Service_AppState_UpdateRequest $postBody, $optParams = array())
216
  {
217
  $params = array('stateKey' => $stateKey, 'postBody' => $postBody);
218
  $params = array_merge($params, $optParams);
219
- return $this->call('update', array($params), "Google_Service_AppState_WriteResult");
220
  }
221
  }
222
 
223
 
224
 
225
 
226
- class Google_Service_AppState_GetResponse extends Google_Model
227
  {
228
  public $currentStateVersion;
229
  public $data;
@@ -271,9 +271,9 @@ class Google_Service_AppState_GetResponse extends Google_Model
271
  }
272
  }
273
 
274
- class Google_Service_AppState_ListResponse extends Google_Collection
275
  {
276
- protected $itemsType = 'Google_Service_AppState_GetResponse';
277
  protected $itemsDataType = 'array';
278
  public $kind;
279
  public $maximumKeyCount;
@@ -309,7 +309,7 @@ class Google_Service_AppState_ListResponse extends Google_Collection
309
  }
310
  }
311
 
312
- class Google_Service_AppState_UpdateRequest extends Google_Model
313
  {
314
  public $data;
315
  public $kind;
@@ -335,7 +335,7 @@ class Google_Service_AppState_UpdateRequest extends Google_Model
335
  }
336
  }
337
 
338
- class Google_Service_AppState_WriteResult extends Google_Model
339
  {
340
  public $currentStateVersion;
341
  public $kind;
29
  *
30
  * @author Google, Inc.
31
  */
32
+ class GoogleGAL_Service_AppState extends GoogleGAL_Service
33
  {
34
  /** View and manage your data for this application. */
35
  const APPSTATE = "https://www.googleapis.com/auth/appstate";
40
  /**
41
  * Constructs the internal representation of the AppState service.
42
  *
43
+ * @param GoogleGAL_Client $client
44
  */
45
+ public function __construct(GoogleGAL_Client $client)
46
  {
47
  parent::__construct($client);
48
  $this->servicePath = 'appstate/v1/';
49
  $this->version = 'v1';
50
  $this->serviceName = 'appstate';
51
 
52
+ $this->states = new GoogleGAL_Service_AppState_States_Resource(
53
  $this,
54
  $this->serviceName,
55
  'states',
124
  * The "states" collection of methods.
125
  * Typical usage is:
126
  * <code>
127
+ * $appstateService = new GoogleGAL_Service_AppState(...);
128
  * $states = $appstateService->states;
129
  * </code>
130
  */
131
+ class GoogleGAL_Service_AppState_States_Resource extends GoogleGAL_Service_Resource
132
  {
133
 
134
  /**
142
  *
143
  * @opt_param string currentDataVersion
144
  * The version of the data to be cleared. Version strings are returned by the server.
145
+ * @return GoogleGAL_Service_AppState_WriteResult
146
  */
147
  public function clear($stateKey, $optParams = array())
148
  {
149
  $params = array('stateKey' => $stateKey);
150
  $params = array_merge($params, $optParams);
151
+ return $this->call('clear', array($params), "GoogleGAL_Service_AppState_WriteResult");
152
  }
153
  /**
154
  * Deletes a key and the data associated with it. The key is removed and no
173
  * @param int $stateKey
174
  * The key for the data to be retrieved.
175
  * @param array $optParams Optional parameters.
176
+ * @return GoogleGAL_Service_AppState_GetResponse
177
  */
178
  public function get($stateKey, $optParams = array())
179
  {
180
  $params = array('stateKey' => $stateKey);
181
  $params = array_merge($params, $optParams);
182
+ return $this->call('get', array($params), "GoogleGAL_Service_AppState_GetResponse");
183
  }
184
  /**
185
  * Lists all the states keys, and optionally the state data. (states.listStates)
188
  *
189
  * @opt_param bool includeData
190
  * Whether to include the full data in addition to the version number
191
+ * @return GoogleGAL_Service_AppState_ListResponse
192
  */
193
  public function listStates($optParams = array())
194
  {
195
  $params = array();
196
  $params = array_merge($params, $optParams);
197
+ return $this->call('list', array($params), "GoogleGAL_Service_AppState_ListResponse");
198
  }
199
  /**
200
  * Update the data associated with the input key if and only if the passed
203
  *
204
  * @param int $stateKey
205
  * The key for the data to be retrieved.
206
+ * @param GoogleGAL_UpdateRequest $postBody
207
  * @param array $optParams Optional parameters.
208
  *
209
  * @opt_param string currentStateVersion
210
  * The version of the app state your application is attempting to update. If this does not match
211
  * the current version, this method will return a conflict error. If there is no data stored on the
212
  * server for this key, the update will succeed irrespective of the value of this parameter.
213
+ * @return GoogleGAL_Service_AppState_WriteResult
214
  */
215
+ public function update($stateKey, GoogleGAL_Service_AppState_UpdateRequest $postBody, $optParams = array())
216
  {
217
  $params = array('stateKey' => $stateKey, 'postBody' => $postBody);
218
  $params = array_merge($params, $optParams);
219
+ return $this->call('update', array($params), "GoogleGAL_Service_AppState_WriteResult");
220
  }
221
  }
222
 
223
 
224
 
225
 
226
+ class GoogleGAL_Service_AppState_GetResponse extends GoogleGAL_Model
227
  {
228
  public $currentStateVersion;
229
  public $data;
271
  }
272
  }
273
 
274
+ class GoogleGAL_Service_AppState_ListResponse extends GoogleGAL_Collection
275
  {
276
+ protected $itemsType = 'GoogleGAL_Service_AppState_GetResponse';
277
  protected $itemsDataType = 'array';
278
  public $kind;
279
  public $maximumKeyCount;
309
  }
310
  }
311
 
312
+ class GoogleGAL_Service_AppState_UpdateRequest extends GoogleGAL_Model
313
  {
314
  public $data;
315
  public $kind;
335
  }
336
  }
337
 
338
+ class GoogleGAL_Service_AppState_WriteResult extends GoogleGAL_Model
339
  {
340
  public $currentStateVersion;
341
  public $kind;
core/Google/Service/Audit.php CHANGED
@@ -29,7 +29,7 @@
29
  *
30
  * @author Google, Inc.
31
  */
32
- class Google_Service_Audit extends Google_Service
33
  {
34
 
35
 
@@ -39,16 +39,16 @@ class Google_Service_Audit extends Google_Service
39
  /**
40
  * Constructs the internal representation of the Audit service.
41
  *
42
- * @param Google_Client $client
43
  */
44
- public function __construct(Google_Client $client)
45
  {
46
  parent::__construct($client);
47
  $this->servicePath = 'apps/reporting/audit/v1/';
48
  $this->version = 'v1';
49
  $this->serviceName = 'audit';
50
 
51
- $this->activities = new Google_Service_Audit_Activities_Resource(
52
  $this,
53
  $this->serviceName,
54
  'activities',
@@ -117,11 +117,11 @@ class Google_Service_Audit extends Google_Service
117
  * The "activities" collection of methods.
118
  * Typical usage is:
119
  * <code>
120
- * $auditService = new Google_Service_Audit(...);
121
  * $activities = $auditService->activities;
122
  * </code>
123
  */
124
- class Google_Service_Audit_Activities_Resource extends Google_Service_Resource
125
  {
126
 
127
  /**
@@ -153,22 +153,22 @@ class Google_Service_Audit_Activities_Resource extends Google_Service_Resource
153
  * Return events which occured at or before this time.
154
  * @opt_param string continuationToken
155
  * Next page URL.
156
- * @return Google_Service_Audit_Activities
157
  */
158
  public function listActivities($customerId, $applicationId, $optParams = array())
159
  {
160
  $params = array('customerId' => $customerId, 'applicationId' => $applicationId);
161
  $params = array_merge($params, $optParams);
162
- return $this->call('list', array($params), "Google_Service_Audit_Activities");
163
  }
164
  }
165
 
166
 
167
 
168
 
169
- class Google_Service_Audit_Activities extends Google_Collection
170
  {
171
- protected $itemsType = 'Google_Service_Audit_Activity';
172
  protected $itemsDataType = 'array';
173
  public $kind;
174
  public $next;
@@ -204,19 +204,19 @@ class Google_Service_Audit_Activities extends Google_Collection
204
  }
205
  }
206
 
207
- class Google_Service_Audit_Activity extends Google_Collection
208
  {
209
- protected $actorType = 'Google_Service_Audit_ActivityActor';
210
  protected $actorDataType = '';
211
- protected $eventsType = 'Google_Service_Audit_ActivityEvents';
212
  protected $eventsDataType = 'array';
213
- protected $idType = 'Google_Service_Audit_ActivityId';
214
  protected $idDataType = '';
215
  public $ipAddress;
216
  public $kind;
217
  public $ownerDomain;
218
 
219
- public function setActor(Google_Service_Audit_ActivityActor $actor)
220
  {
221
  $this->actor = $actor;
222
  }
@@ -236,7 +236,7 @@ class Google_Service_Audit_Activity extends Google_Collection
236
  return $this->events;
237
  }
238
 
239
- public function setId(Google_Service_Audit_ActivityId $id)
240
  {
241
  $this->id = $id;
242
  }
@@ -277,7 +277,7 @@ class Google_Service_Audit_Activity extends Google_Collection
277
  }
278
  }
279
 
280
- class Google_Service_Audit_ActivityActor extends Google_Model
281
  {
282
  public $applicationId;
283
  public $callerType;
@@ -325,11 +325,11 @@ class Google_Service_Audit_ActivityActor extends Google_Model
325
  }
326
  }
327
 
328
- class Google_Service_Audit_ActivityEvents extends Google_Collection
329
  {
330
  public $eventType;
331
  public $name;
332
- protected $parametersType = 'Google_Service_Audit_ActivityEventsParameters';
333
  protected $parametersDataType = 'array';
334
 
335
  public function setEventType($eventType)
@@ -363,7 +363,7 @@ class Google_Service_Audit_ActivityEvents extends Google_Collection
363
  }
364
  }
365
 
366
- class Google_Service_Audit_ActivityEventsParameters extends Google_Model
367
  {
368
  public $name;
369
  public $value;
@@ -389,7 +389,7 @@ class Google_Service_Audit_ActivityEventsParameters extends Google_Model
389
  }
390
  }
391
 
392
- class Google_Service_Audit_ActivityId extends Google_Model
393
  {
394
  public $applicationId;
395
  public $customerId;
29
  *
30
  * @author Google, Inc.
31
  */
32
+ class GoogleGAL_Service_Audit extends GoogleGAL_Service
33
  {
34
 
35
 
39
  /**
40
  * Constructs the internal representation of the Audit service.
41
  *
42
+ * @param GoogleGAL_Client $client
43
  */
44
+ public function __construct(GoogleGAL_Client $client)
45
  {
46
  parent::__construct($client);
47
  $this->servicePath = 'apps/reporting/audit/v1/';
48
  $this->version = 'v1';
49
  $this->serviceName = 'audit';
50
 
51
+ $this->activities = new GoogleGAL_Service_Audit_Activities_Resource(
52
  $this,
53
  $this->serviceName,
54
  'activities',
117
  * The "activities" collection of methods.
118
  * Typical usage is:
119
  * <code>
120
+ * $auditService = new GoogleGAL_Service_Audit(...);
121
  * $activities = $auditService->activities;
122
  * </code>
123
  */
124
+ class GoogleGAL_Service_Audit_Activities_Resource extends GoogleGAL_Service_Resource
125
  {
126
 
127
  /**
153
  * Return events which occured at or before this time.
154
  * @opt_param string continuationToken
155
  * Next page URL.
156
+ * @return GoogleGAL_Service_Audit_Activities
157
  */
158
  public function listActivities($customerId, $applicationId, $optParams = array())
159
  {
160
  $params = array('customerId' => $customerId, 'applicationId' => $applicationId);
161
  $params = array_merge($params, $optParams);
162
+ return $this->call('list', array($params), "GoogleGAL_Service_Audit_Activities");
163
  }
164
  }
165
 
166
 
167
 
168
 
169
+ class GoogleGAL_Service_Audit_Activities extends GoogleGAL_Collection
170
  {
171
+ protected $itemsType = 'GoogleGAL_Service_Audit_Activity';
172
  protected $itemsDataType = 'array';
173
  public $kind;
174
  public $next;
204
  }
205
  }
206
 
207
+ class GoogleGAL_Service_Audit_Activity extends GoogleGAL_Collection
208
  {
209
+ protected $actorType = 'GoogleGAL_Service_Audit_ActivityActor';
210
  protected $actorDataType = '';
211
+ protected $eventsType = 'GoogleGAL_Service_Audit_ActivityEvents';
212
  protected $eventsDataType = 'array';
213
+ protected $idType = 'GoogleGAL_Service_Audit_ActivityId';
214
  protected $idDataType = '';
215
  public $ipAddress;
216
  public $kind;
217
  public $ownerDomain;
218
 
219
+ public function setActor(GoogleGAL_Service_Audit_ActivityActor $actor)
220
  {
221
  $this->actor = $actor;
222
  }
236
  return $this->events;
237
  }
238
 
239
+ public function setId(GoogleGAL_Service_Audit_ActivityId $id)
240
  {
241
  $this->id = $id;
242
  }
277
  }
278
  }
279
 
280
+ class GoogleGAL_Service_Audit_ActivityActor extends GoogleGAL_Model
281
  {
282
  public $applicationId;
283
  public $callerType;
325
  }
326
  }
327
 
328
+ class GoogleGAL_Service_Audit_ActivityEvents extends GoogleGAL_Collection
329
  {
330
  public $eventType;
331
  public $name;
332
+ protected $parametersType = 'GoogleGAL_Service_Audit_ActivityEventsParameters';
333
  protected $parametersDataType = 'array';
334
 
335
  public function setEventType($eventType)
363
  }
364
  }
365
 
366
+ class GoogleGAL_Service_Audit_ActivityEventsParameters extends GoogleGAL_Model
367
  {
368
  public $name;
369
  public $value;
389
  }
390
  }
391
 
392
+ class GoogleGAL_Service_Audit_ActivityId extends GoogleGAL_Model
393
  {
394
  public $applicationId;
395
  public $customerId;
core/Google/Service/Bigquery.php CHANGED
@@ -29,7 +29,7 @@
29
  *
30
  * @author Google, Inc.
31
  */
32
- class Google_Service_Bigquery extends Google_Service
33
  {
34
  /** View and manage your data in Google BigQuery. */
35
  const BIGQUERY = "https://www.googleapis.com/auth/bigquery";
@@ -52,16 +52,16 @@ class Google_Service_Bigquery extends Google_Service
52
  /**
53
  * Constructs the internal representation of the Bigquery service.
54
  *
55
- * @param Google_Client $client
56
  */
57
- public function __construct(Google_Client $client)
58
  {
59
  parent::__construct($client);
60
  $this->servicePath = 'bigquery/v2/';
61
  $this->version = 'v2';
62
  $this->serviceName = 'bigquery';
63
 
64
- $this->datasets = new Google_Service_Bigquery_Datasets_Resource(
65
  $this,
66
  $this->serviceName,
67
  'datasets',
@@ -167,7 +167,7 @@ class Google_Service_Bigquery extends Google_Service
167
  )
168
  )
169
  );
170
- $this->jobs = new Google_Service_Bigquery_Jobs_Resource(
171
  $this,
172
  $this->serviceName,
173
  'jobs',
@@ -274,7 +274,7 @@ class Google_Service_Bigquery extends Google_Service
274
  )
275
  )
276
  );
277
- $this->projects = new Google_Service_Bigquery_Projects_Resource(
278
  $this,
279
  $this->serviceName,
280
  'projects',
@@ -297,7 +297,7 @@ class Google_Service_Bigquery extends Google_Service
297
  )
298
  )
299
  );
300
- $this->tabledata = new Google_Service_Bigquery_Tabledata_Resource(
301
  $this,
302
  $this->serviceName,
303
  'tabledata',
@@ -359,7 +359,7 @@ class Google_Service_Bigquery extends Google_Service
359
  )
360
  )
361
  );
362
- $this->tables = new Google_Service_Bigquery_Tables_Resource(
363
  $this,
364
  $this->serviceName,
365
  'tables',
@@ -495,11 +495,11 @@ class Google_Service_Bigquery extends Google_Service
495
  * The "datasets" collection of methods.
496
  * Typical usage is:
497
  * <code>
498
- * $bigqueryService = new Google_Service_Bigquery(...);
499
  * $datasets = $bigqueryService->datasets;
500
  * </code>
501
  */
502
- class Google_Service_Bigquery_Datasets_Resource extends Google_Service_Resource
503
  {
504
 
505
  /**
@@ -532,28 +532,28 @@ class Google_Service_Bigquery_Datasets_Resource extends Google_Service_Resource
532
  * @param string $datasetId
533
  * Dataset ID of the requested dataset
534
  * @param array $optParams Optional parameters.
535
- * @return Google_Service_Bigquery_Dataset
536
  */
537
  public function get($projectId, $datasetId, $optParams = array())
538
  {
539
  $params = array('projectId' => $projectId, 'datasetId' => $datasetId);
540
  $params = array_merge($params, $optParams);
541
- return $this->call('get', array($params), "Google_Service_Bigquery_Dataset");
542
  }
543
  /**
544
  * Creates a new empty dataset. (datasets.insert)
545
  *
546
  * @param string $projectId
547
  * Project ID of the new dataset
548
- * @param Google_Dataset $postBody
549
  * @param array $optParams Optional parameters.
550
- * @return Google_Service_Bigquery_Dataset
551
  */
552
- public function insert($projectId, Google_Service_Bigquery_Dataset $postBody, $optParams = array())
553
  {
554
  $params = array('projectId' => $projectId, 'postBody' => $postBody);
555
  $params = array_merge($params, $optParams);
556
- return $this->call('insert', array($params), "Google_Service_Bigquery_Dataset");
557
  }
558
  /**
559
  * Lists all the datasets in the specified project to which the caller has read
@@ -570,13 +570,13 @@ class Google_Service_Bigquery_Datasets_Resource extends Google_Service_Resource
570
  * Whether to list all datasets, including hidden ones
571
  * @opt_param string maxResults
572
  * The maximum number of results to return
573
- * @return Google_Service_Bigquery_DatasetList
574
  */
575
  public function listDatasets($projectId, $optParams = array())
576
  {
577
  $params = array('projectId' => $projectId);
578
  $params = array_merge($params, $optParams);
579
- return $this->call('list', array($params), "Google_Service_Bigquery_DatasetList");
580
  }
581
  /**
582
  * Updates information in an existing dataset. The update method replaces the
@@ -588,15 +588,15 @@ class Google_Service_Bigquery_Datasets_Resource extends Google_Service_Resource
588
  * Project ID of the dataset being updated
589
  * @param string $datasetId
590
  * Dataset ID of the dataset being updated
591
- * @param Google_Dataset $postBody
592
  * @param array $optParams Optional parameters.
593
- * @return Google_Service_Bigquery_Dataset
594
  */
595
- public function patch($projectId, $datasetId, Google_Service_Bigquery_Dataset $postBody, $optParams = array())
596
  {
597
  $params = array('projectId' => $projectId, 'datasetId' => $datasetId, 'postBody' => $postBody);
598
  $params = array_merge($params, $optParams);
599
- return $this->call('patch', array($params), "Google_Service_Bigquery_Dataset");
600
  }
601
  /**
602
  * Updates information in an existing dataset. The update method replaces the
@@ -607,15 +607,15 @@ class Google_Service_Bigquery_Datasets_Resource extends Google_Service_Resource
607
  * Project ID of the dataset being updated
608
  * @param string $datasetId
609
  * Dataset ID of the dataset being updated
610
- * @param Google_Dataset $postBody
611
  * @param array $optParams Optional parameters.
612
- * @return Google_Service_Bigquery_Dataset
613
  */
614
- public function update($projectId, $datasetId, Google_Service_Bigquery_Dataset $postBody, $optParams = array())
615
  {
616
  $params = array('projectId' => $projectId, 'datasetId' => $datasetId, 'postBody' => $postBody);
617
  $params = array_merge($params, $optParams);
618
- return $this->call('update', array($params), "Google_Service_Bigquery_Dataset");
619
  }
620
  }
621
 
@@ -623,11 +623,11 @@ class Google_Service_Bigquery_Datasets_Resource extends Google_Service_Resource
623
  * The "jobs" collection of methods.
624
  * Typical usage is:
625
  * <code>
626
- * $bigqueryService = new Google_Service_Bigquery(...);
627
  * $jobs = $bigqueryService->jobs;
628
  * </code>
629
  */
630
- class Google_Service_Bigquery_Jobs_Resource extends Google_Service_Resource
631
  {
632
 
633
  /**
@@ -638,13 +638,13 @@ class Google_Service_Bigquery_Jobs_Resource extends Google_Service_Resource
638
  * @param string $jobId
639
  * Job ID of the requested job
640
  * @param array $optParams Optional parameters.
641
- * @return Google_Service_Bigquery_Job
642
  */
643
  public function get($projectId, $jobId, $optParams = array())
644
  {
645
  $params = array('projectId' => $projectId, 'jobId' => $jobId);
646
  $params = array_merge($params, $optParams);
647
- return $this->call('get', array($params), "Google_Service_Bigquery_Job");
648
  }
649
  /**
650
  * Retrieves the results of a query job. (jobs.getQueryResults)
@@ -665,28 +665,28 @@ class Google_Service_Bigquery_Jobs_Resource extends Google_Service_Resource
665
  * Page token, returned by a previous call, to request the next page of results
666
  * @opt_param string startIndex
667
  * Zero-based index of the starting row
668
- * @return Google_Service_Bigquery_GetQueryResultsResponse
669
  */
670
  public function getQueryResults($projectId, $jobId, $optParams = array())
671
  {
672
  $params = array('projectId' => $projectId, 'jobId' => $jobId);
673
  $params = array_merge($params, $optParams);
674
- return $this->call('getQueryResults', array($params), "Google_Service_Bigquery_GetQueryResultsResponse");
675
  }
676
  /**
677
  * Starts a new asynchronous job. (jobs.insert)
678
  *
679
  * @param string $projectId
680
  * Project ID of the project that will be billed for the job
681
- * @param Google_Job $postBody
682
  * @param array $optParams Optional parameters.
683
- * @return Google_Service_Bigquery_Job
684
  */
685
- public function insert($projectId, Google_Service_Bigquery_Job $postBody, $optParams = array())
686
  {
687
  $params = array('projectId' => $projectId, 'postBody' => $postBody);
688
  $params = array_merge($params, $optParams);
689
- return $this->call('insert', array($params), "Google_Service_Bigquery_Job");
690
  }
691
  /**
692
  * Lists all the Jobs in the specified project that were started by the user.
@@ -706,13 +706,13 @@ class Google_Service_Bigquery_Jobs_Resource extends Google_Service_Resource
706
  * Maximum number of results to return
707
  * @opt_param string pageToken
708
  * Page token, returned by a previous call, to request the next page of results
709
- * @return Google_Service_Bigquery_JobList
710
  */
711
  public function listJobs($projectId, $optParams = array())
712
  {
713
  $params = array('projectId' => $projectId);
714
  $params = array_merge($params, $optParams);
715
- return $this->call('list', array($params), "Google_Service_Bigquery_JobList");
716
  }
717
  /**
718
  * Runs a BigQuery SQL query synchronously and returns query results if the
@@ -720,15 +720,15 @@ class Google_Service_Bigquery_Jobs_Resource extends Google_Service_Resource
720
  *
721
  * @param string $projectId
722
  * Project ID of the project billed for the query
723
- * @param Google_QueryRequest $postBody
724
  * @param array $optParams Optional parameters.
725
- * @return Google_Service_Bigquery_QueryResponse
726
  */
727
- public function query($projectId, Google_Service_Bigquery_QueryRequest $postBody, $optParams = array())
728
  {
729
  $params = array('projectId' => $projectId, 'postBody' => $postBody);
730
  $params = array_merge($params, $optParams);
731
- return $this->call('query', array($params), "Google_Service_Bigquery_QueryResponse");
732
  }
733
  }
734
 
@@ -736,11 +736,11 @@ class Google_Service_Bigquery_Jobs_Resource extends Google_Service_Resource
736
  * The "projects" collection of methods.
737
  * Typical usage is:
738
  * <code>
739
- * $bigqueryService = new Google_Service_Bigquery(...);
740
  * $projects = $bigqueryService->projects;
741
  * </code>
742
  */
743
- class Google_Service_Bigquery_Projects_Resource extends Google_Service_Resource
744
  {
745
 
746
  /**
@@ -753,13 +753,13 @@ class Google_Service_Bigquery_Projects_Resource extends Google_Service_Resource
753
  * Page token, returned by a previous call, to request the next page of results
754
  * @opt_param string maxResults
755
  * Maximum number of results to return
756
- * @return Google_Service_Bigquery_ProjectList
757
  */
758
  public function listProjects($optParams = array())
759
  {
760
  $params = array();
761
  $params = array_merge($params, $optParams);
762
- return $this->call('list', array($params), "Google_Service_Bigquery_ProjectList");
763
  }
764
  }
765
 
@@ -767,11 +767,11 @@ class Google_Service_Bigquery_Projects_Resource extends Google_Service_Resource
767
  * The "tabledata" collection of methods.
768
  * Typical usage is:
769
  * <code>
770
- * $bigqueryService = new Google_Service_Bigquery(...);
771
  * $tabledata = $bigqueryService->tabledata;
772
  * </code>
773
  */
774
- class Google_Service_Bigquery_Tabledata_Resource extends Google_Service_Resource
775
  {
776
 
777
  /**
@@ -783,15 +783,15 @@ class Google_Service_Bigquery_Tabledata_Resource extends Google_Service_Resource
783
  * Dataset ID of the destination table.
784
  * @param string $tableId
785
  * Table ID of the destination table.
786
- * @param Google_TableDataInsertAllRequest $postBody
787
  * @param array $optParams Optional parameters.
788
- * @return Google_Service_Bigquery_TableDataInsertAllResponse
789
  */
790
- public function insertAll($projectId, $datasetId, $tableId, Google_Service_Bigquery_TableDataInsertAllRequest $postBody, $optParams = array())
791
  {
792
  $params = array('projectId' => $projectId, 'datasetId' => $datasetId, 'tableId' => $tableId, 'postBody' => $postBody);
793
  $params = array_merge($params, $optParams);
794
- return $this->call('insertAll', array($params), "Google_Service_Bigquery_TableDataInsertAllResponse");
795
  }
796
  /**
797
  * Retrieves table data from a specified set of rows. (tabledata.listTabledata)
@@ -810,13 +810,13 @@ class Google_Service_Bigquery_Tabledata_Resource extends Google_Service_Resource
810
  * Page token, returned by a previous call, identifying the result set
811
  * @opt_param string startIndex
812
  * Zero-based index of the starting row to read
813
- * @return Google_Service_Bigquery_TableDataList
814
  */
815
  public function listTabledata($projectId, $datasetId, $tableId, $optParams = array())
816
  {
817
  $params = array('projectId' => $projectId, 'datasetId' => $datasetId, 'tableId' => $tableId);
818
  $params = array_merge($params, $optParams);
819
- return $this->call('list', array($params), "Google_Service_Bigquery_TableDataList");
820
  }
821
  }
822
 
@@ -824,11 +824,11 @@ class Google_Service_Bigquery_Tabledata_Resource extends Google_Service_Resource
824
  * The "tables" collection of methods.
825
  * Typical usage is:
826
  * <code>
827
- * $bigqueryService = new Google_Service_Bigquery(...);
828
  * $tables = $bigqueryService->tables;
829
  * </code>
830
  */
831
- class Google_Service_Bigquery_Tables_Resource extends Google_Service_Resource
832
  {
833
 
834
  /**
@@ -861,13 +861,13 @@ class Google_Service_Bigquery_Tables_Resource extends Google_Service_Resource
861
  * @param string $tableId
862
  * Table ID of the requested table
863
  * @param array $optParams Optional parameters.
864
- * @return Google_Service_Bigquery_Table
865
  */
866
  public function get($projectId, $datasetId, $tableId, $optParams = array())
867
  {
868
  $params = array('projectId' => $projectId, 'datasetId' => $datasetId, 'tableId' => $tableId);
869
  $params = array_merge($params, $optParams);
870
- return $this->call('get', array($params), "Google_Service_Bigquery_Table");
871
  }
872
  /**
873
  * Creates a new, empty table in the dataset. (tables.insert)
@@ -876,15 +876,15 @@ class Google_Service_Bigquery_Tables_Resource extends Google_Service_Resource
876
  * Project ID of the new table
877
  * @param string $datasetId
878
  * Dataset ID of the new table
879
- * @param Google_Table $postBody
880
  * @param array $optParams Optional parameters.
881
- * @return Google_Service_Bigquery_Table
882
  */
883
- public function insert($projectId, $datasetId, Google_Service_Bigquery_Table $postBody, $optParams = array())
884
  {
885
  $params = array('projectId' => $projectId, 'datasetId' => $datasetId, 'postBody' => $postBody);
886
  $params = array_merge($params, $optParams);
887
- return $this->call('insert', array($params), "Google_Service_Bigquery_Table");
888
  }
889
  /**
890
  * Lists all tables in the specified dataset. (tables.listTables)
@@ -899,13 +899,13 @@ class Google_Service_Bigquery_Tables_Resource extends Google_Service_Resource
899
  * Page token, returned by a previous call, to request the next page of results
900
  * @opt_param string maxResults
901
  * Maximum number of results to return
902
- * @return Google_Service_Bigquery_TableList
903
  */
904
  public function listTables($projectId, $datasetId, $optParams = array())
905
  {
906
  $params = array('projectId' => $projectId, 'datasetId' => $datasetId);
907
  $params = array_merge($params, $optParams);
908
- return $this->call('list', array($params), "Google_Service_Bigquery_TableList");
909
  }
910
  /**
911
  * Updates information in an existing table. The update method replaces the
@@ -919,15 +919,15 @@ class Google_Service_Bigquery_Tables_Resource extends Google_Service_Resource
919
  * Dataset ID of the table to update
920
  * @param string $tableId
921
  * Table ID of the table to update
922
- * @param Google_Table $postBody
923
  * @param array $optParams Optional parameters.
924
- * @return Google_Service_Bigquery_Table
925
  */
926
- public function patch($projectId, $datasetId, $tableId, Google_Service_Bigquery_Table $postBody, $optParams = array())
927
  {
928
  $params = array('projectId' => $projectId, 'datasetId' => $datasetId, 'tableId' => $tableId, 'postBody' => $postBody);
929
  $params = array_merge($params, $optParams);
930
- return $this->call('patch', array($params), "Google_Service_Bigquery_Table");
931
  }
932
  /**
933
  * Updates information in an existing table. The update method replaces the
@@ -940,27 +940,27 @@ class Google_Service_Bigquery_Tables_Resource extends Google_Service_Resource
940
  * Dataset ID of the table to update
941
  * @param string $tableId
942
  * Table ID of the table to update
943
- * @param Google_Table $postBody
944
  * @param array $optParams Optional parameters.
945
- * @return Google_Service_Bigquery_Table
946
  */
947
- public function update($projectId, $datasetId, $tableId, Google_Service_Bigquery_Table $postBody, $optParams = array())
948
  {
949
  $params = array('projectId' => $projectId, 'datasetId' => $datasetId, 'tableId' => $tableId, 'postBody' => $postBody);
950
  $params = array_merge($params, $optParams);
951
- return $this->call('update', array($params), "Google_Service_Bigquery_Table");
952
  }
953
  }
954
 
955
 
956
 
957
 
958
- class Google_Service_Bigquery_Dataset extends Google_Collection
959
  {
960
- protected $accessType = 'Google_Service_Bigquery_DatasetAccess';
961
  protected $accessDataType = 'array';
962
  public $creationTime;
963
- protected $datasetReferenceType = 'Google_Service_Bigquery_DatasetReference';
964
  protected $datasetReferenceDataType = '';
965
  public $description;
966
  public $etag;
@@ -990,7 +990,7 @@ class Google_Service_Bigquery_Dataset extends Google_Collection
990
  return $this->creationTime;
991
  }
992
 
993
- public function setDatasetReference(Google_Service_Bigquery_DatasetReference $datasetReference)
994
  {
995
  $this->datasetReference = $datasetReference;
996
  }
@@ -1071,7 +1071,7 @@ class Google_Service_Bigquery_Dataset extends Google_Collection
1071
  }
1072
  }
1073
 
1074
- class Google_Service_Bigquery_DatasetAccess extends Google_Model
1075
  {
1076
  public $domain;
1077
  public $groupByEmail;
@@ -1130,9 +1130,9 @@ class Google_Service_Bigquery_DatasetAccess extends Google_Model
1130
  }
1131
  }
1132
 
1133
- class Google_Service_Bigquery_DatasetList extends Google_Collection
1134
  {
1135
- protected $datasetsType = 'Google_Service_Bigquery_DatasetListDatasets';
1136
  protected $datasetsDataType = 'array';
1137
  public $etag;
1138
  public $kind;
@@ -1179,15 +1179,15 @@ class Google_Service_Bigquery_DatasetList extends Google_Collection
1179
  }
1180
  }
1181
 
1182
- class Google_Service_Bigquery_DatasetListDatasets extends Google_Model
1183
  {
1184
- protected $datasetReferenceType = 'Google_Service_Bigquery_DatasetReference';
1185
  protected $datasetReferenceDataType = '';
1186
  public $friendlyName;
1187
  public $id;
1188
  public $kind;
1189
 
1190
- public function setDatasetReference(Google_Service_Bigquery_DatasetReference $datasetReference)
1191
  {
1192
  $this->datasetReference = $datasetReference;
1193
  }
@@ -1228,7 +1228,7 @@ class Google_Service_Bigquery_DatasetListDatasets extends Google_Model
1228
  }
1229
  }
1230
 
1231
- class Google_Service_Bigquery_DatasetReference extends Google_Model
1232
  {
1233
  public $datasetId;
1234
  public $projectId;
@@ -1254,7 +1254,7 @@ class Google_Service_Bigquery_DatasetReference extends Google_Model
1254
  }
1255
  }
1256
 
1257
- class Google_Service_Bigquery_ErrorProto extends Google_Model
1258
  {
1259
  public $debugInfo;
1260
  public $location;
@@ -1302,18 +1302,18 @@ class Google_Service_Bigquery_ErrorProto extends Google_Model
1302
  }
1303
  }
1304
 
1305
- class Google_Service_Bigquery_GetQueryResultsResponse extends Google_Collection
1306
  {
1307
  public $cacheHit;
1308
  public $etag;
1309
  public $jobComplete;
1310
- protected $jobReferenceType = 'Google_Service_Bigquery_JobReference';
1311
  protected $jobReferenceDataType = '';
1312
  public $kind;
1313
  public $pageToken;
1314
- protected $rowsType = 'Google_Service_Bigquery_TableRow';
1315
  protected $rowsDataType = 'array';
1316
- protected $schemaType = 'Google_Service_Bigquery_TableSchema';
1317
  protected $schemaDataType = '';
1318
  public $totalRows;
1319
 
@@ -1347,7 +1347,7 @@ class Google_Service_Bigquery_GetQueryResultsResponse extends Google_Collection
1347
  return $this->jobComplete;
1348
  }
1349
 
1350
- public function setJobReference(Google_Service_Bigquery_JobReference $jobReference)
1351
  {
1352
  $this->jobReference = $jobReference;
1353
  }
@@ -1387,7 +1387,7 @@ class Google_Service_Bigquery_GetQueryResultsResponse extends Google_Collection
1387
  return $this->rows;
1388
  }
1389
 
1390
- public function setSchema(Google_Service_Bigquery_TableSchema $schema)
1391
  {
1392
  $this->schema = $schema;
1393
  }
@@ -1408,22 +1408,22 @@ class Google_Service_Bigquery_GetQueryResultsResponse extends Google_Collection
1408
  }
1409
  }
1410
 
1411
- class Google_Service_Bigquery_Job extends Google_Model
1412
  {
1413
- protected $configurationType = 'Google_Service_Bigquery_JobConfiguration';
1414
  protected $configurationDataType = '';
1415
  public $etag;
1416
  public $id;
1417
- protected $jobReferenceType = 'Google_Service_Bigquery_JobReference';
1418
  protected $jobReferenceDataType = '';
1419
  public $kind;
1420
  public $selfLink;
1421
- protected $statisticsType = 'Google_Service_Bigquery_JobStatistics';
1422
  protected $statisticsDataType = '';
1423
- protected $statusType = 'Google_Service_Bigquery_JobStatus';
1424
  protected $statusDataType = '';
1425
 
1426
- public function setConfiguration(Google_Service_Bigquery_JobConfiguration $configuration)
1427
  {
1428
  $this->configuration = $configuration;
1429
  }
@@ -1453,7 +1453,7 @@ class Google_Service_Bigquery_Job extends Google_Model
1453
  return $this->id;
1454
  }
1455
 
1456
- public function setJobReference(Google_Service_Bigquery_JobReference $jobReference)
1457
  {
1458
  $this->jobReference = $jobReference;
1459
  }
@@ -1483,7 +1483,7 @@ class Google_Service_Bigquery_Job extends Google_Model
1483
  return $this->selfLink;
1484
  }
1485
 
1486
- public function setStatistics(Google_Service_Bigquery_JobStatistics $statistics)
1487
  {
1488
  $this->statistics = $statistics;
1489
  }
@@ -1493,7 +1493,7 @@ class Google_Service_Bigquery_Job extends Google_Model
1493
  return $this->statistics;
1494
  }
1495
 
1496
- public function setStatus(Google_Service_Bigquery_JobStatus $status)
1497
  {
1498
  $this->status = $status;
1499
  }
@@ -1504,21 +1504,21 @@ class Google_Service_Bigquery_Job extends Google_Model
1504
  }
1505
  }
1506
 
1507
- class Google_Service_Bigquery_JobConfiguration extends Google_Model
1508
  {
1509
- protected $copyType = 'Google_Service_Bigquery_JobConfigurationTableCopy';
1510
  protected $copyDataType = '';
1511
  public $dryRun;
1512
- protected $extractType = 'Google_Service_Bigquery_JobConfigurationExtract';
1513
  protected $extractDataType = '';
1514
- protected $linkType = 'Google_Service_Bigquery_JobConfigurationLink';
1515
  protected $linkDataType = '';
1516
- protected $loadType = 'Google_Service_Bigquery_JobConfigurationLoad';
1517
  protected $loadDataType = '';
1518
- protected $queryType = 'Google_Service_Bigquery_JobConfigurationQuery';
1519
  protected $queryDataType = '';
1520
 
1521
- public function setCopy(Google_Service_Bigquery_JobConfigurationTableCopy $copy)
1522
  {
1523
  $this->copy = $copy;
1524
  }
@@ -1538,7 +1538,7 @@ class Google_Service_Bigquery_JobConfiguration extends Google_Model
1538
  return $this->dryRun;
1539
  }
1540
 
1541
- public function setExtract(Google_Service_Bigquery_JobConfigurationExtract $extract)
1542
  {
1543
  $this->extract = $extract;
1544
  }
@@ -1548,7 +1548,7 @@ class Google_Service_Bigquery_JobConfiguration extends Google_Model
1548
  return $this->extract;
1549
  }
1550
 
1551
- public function setLink(Google_Service_Bigquery_JobConfigurationLink $link)
1552
  {
1553
  $this->link = $link;
1554
  }
@@ -1558,7 +1558,7 @@ class Google_Service_Bigquery_JobConfiguration extends Google_Model
1558
  return $this->link;
1559
  }
1560
 
1561
- public function setLoad(Google_Service_Bigquery_JobConfigurationLoad $load)
1562
  {
1563
  $this->load = $load;
1564
  }
@@ -1568,7 +1568,7 @@ class Google_Service_Bigquery_JobConfiguration extends Google_Model
1568
  return $this->load;
1569
  }
1570
 
1571
- public function setQuery(Google_Service_Bigquery_JobConfigurationQuery $query)
1572
  {
1573
  $this->query = $query;
1574
  }
@@ -1579,14 +1579,14 @@ class Google_Service_Bigquery_JobConfiguration extends Google_Model
1579
  }
1580
  }
1581
 
1582
- class Google_Service_Bigquery_JobConfigurationExtract extends Google_Collection
1583
  {
1584
  public $destinationFormat;
1585
  public $destinationUri;
1586
  public $destinationUris;
1587
  public $fieldDelimiter;
1588
  public $printHeader;
1589
- protected $sourceTableType = 'Google_Service_Bigquery_TableReference';
1590
  protected $sourceTableDataType = '';
1591
 
1592
  public function setDestinationFormat($destinationFormat)
@@ -1639,7 +1639,7 @@ class Google_Service_Bigquery_JobConfigurationExtract extends Google_Collection
1639
  return $this->printHeader;
1640
  }
1641
 
1642
- public function setSourceTable(Google_Service_Bigquery_TableReference $sourceTable)
1643
  {
1644
  $this->sourceTable = $sourceTable;
1645
  }
@@ -1650,10 +1650,10 @@ class Google_Service_Bigquery_JobConfigurationExtract extends Google_Collection
1650
  }
1651
  }
1652
 
1653
- class Google_Service_Bigquery_JobConfigurationLink extends Google_Collection
1654
  {
1655
  public $createDisposition;
1656
- protected $destinationTableType = 'Google_Service_Bigquery_TableReference';
1657
  protected $destinationTableDataType = '';
1658
  public $sourceUri;
1659
  public $writeDisposition;
@@ -1668,7 +1668,7 @@ class Google_Service_Bigquery_JobConfigurationLink extends Google_Collection
1668
  return $this->createDisposition;
1669
  }
1670
 
1671
- public function setDestinationTable(Google_Service_Bigquery_TableReference $destinationTable)
1672
  {
1673
  $this->destinationTable = $destinationTable;
1674
  }
@@ -1699,19 +1699,19 @@ class Google_Service_Bigquery_JobConfigurationLink extends Google_Collection
1699
  }
1700
  }
1701
 
1702
- class Google_Service_Bigquery_JobConfigurationLoad extends Google_Collection
1703
  {
1704
  public $allowJaggedRows;
1705
  public $allowQuotedNewlines;
1706
  public $createDisposition;
1707
- protected $destinationTableType = 'Google_Service_Bigquery_TableReference';
1708
  protected $destinationTableDataType = '';
1709
  public $encoding;
1710
  public $fieldDelimiter;
1711
  public $ignoreUnknownValues;
1712
  public $maxBadRecords;
1713
  public $quote;
1714
- protected $schemaType = 'Google_Service_Bigquery_TableSchema';
1715
  protected $schemaDataType = '';
1716
  public $schemaInline;
1717
  public $schemaInlineFormat;
@@ -1750,7 +1750,7 @@ class Google_Service_Bigquery_JobConfigurationLoad extends Google_Collection
1750
  return $this->createDisposition;
1751
  }
1752
 
1753
- public function setDestinationTable(Google_Service_Bigquery_TableReference $destinationTable)
1754
  {
1755
  $this->destinationTable = $destinationTable;
1756
  }
@@ -1810,7 +1810,7 @@ class Google_Service_Bigquery_JobConfigurationLoad extends Google_Collection
1810
  return $this->quote;
1811
  }
1812
 
1813
- public function setSchema(Google_Service_Bigquery_TableSchema $schema)
1814
  {
1815
  $this->schema = $schema;
1816
  }
@@ -1881,13 +1881,13 @@ class Google_Service_Bigquery_JobConfigurationLoad extends Google_Collection
1881
  }
1882
  }
1883
 
1884
- class Google_Service_Bigquery_JobConfigurationQuery extends Google_Model
1885
  {
1886
  public $allowLargeResults;
1887
  public $createDisposition;
1888
- protected $defaultDatasetType = 'Google_Service_Bigquery_DatasetReference';
1889
  protected $defaultDatasetDataType = '';
1890
- protected $destinationTableType = 'Google_Service_Bigquery_TableReference';
1891
  protected $destinationTableDataType = '';
1892
  public $preserveNulls;
1893
  public $priority;
@@ -1915,7 +1915,7 @@ class Google_Service_Bigquery_JobConfigurationQuery extends Google_Model
1915
  return $this->createDisposition;
1916
  }
1917
 
1918
- public function setDefaultDataset(Google_Service_Bigquery_DatasetReference $defaultDataset)
1919
  {
1920
  $this->defaultDataset = $defaultDataset;
1921
  }
@@ -1925,7 +1925,7 @@ class Google_Service_Bigquery_JobConfigurationQuery extends Google_Model
1925
  return $this->defaultDataset;
1926
  }
1927
 
1928
- public function setDestinationTable(Google_Service_Bigquery_TableReference $destinationTable)
1929
  {
1930
  $this->destinationTable = $destinationTable;
1931
  }
@@ -1986,12 +1986,12 @@ class Google_Service_Bigquery_JobConfigurationQuery extends Google_Model
1986
  }
1987
  }
1988
 
1989
- class Google_Service_Bigquery_JobConfigurationTableCopy extends Google_Model
1990
  {
1991
  public $createDisposition;
1992
- protected $destinationTableType = 'Google_Service_Bigquery_TableReference';
1993
  protected $destinationTableDataType = '';
1994
- protected $sourceTableType = 'Google_Service_Bigquery_TableReference';
1995
  protected $sourceTableDataType = '';
1996
  public $writeDisposition;
1997
 
@@ -2005,7 +2005,7 @@ class Google_Service_Bigquery_JobConfigurationTableCopy extends Google_Model
2005
  return $this->createDisposition;
2006
  }
2007
 
2008
- public function setDestinationTable(Google_Service_Bigquery_TableReference $destinationTable)
2009
  {
2010
  $this->destinationTable = $destinationTable;
2011
  }
@@ -2015,7 +2015,7 @@ class Google_Service_Bigquery_JobConfigurationTableCopy extends Google_Model
2015
  return $this->destinationTable;
2016
  }
2017
 
2018
- public function setSourceTable(Google_Service_Bigquery_TableReference $sourceTable)
2019
  {
2020
  $this->sourceTable = $sourceTable;
2021
  }
@@ -2036,10 +2036,10 @@ class Google_Service_Bigquery_JobConfigurationTableCopy extends Google_Model
2036
  }
2037
  }
2038
 
2039
- class Google_Service_Bigquery_JobList extends Google_Collection
2040
  {
2041
  public $etag;
2042
- protected $jobsType = 'Google_Service_Bigquery_JobListJobs';
2043
  protected $jobsDataType = 'array';
2044
  public $kind;
2045
  public $nextPageToken;
@@ -2096,24 +2096,24 @@ class Google_Service_Bigquery_JobList extends Google_Collection
2096
  }
2097
  }
2098
 
2099
- class Google_Service_Bigquery_JobListJobs extends Google_Model
2100
  {
2101
- protected $configurationType = 'Google_Service_Bigquery_JobConfiguration';
2102
  protected $configurationDataType = '';
2103
- protected $errorResultType = 'Google_Service_Bigquery_ErrorProto';
2104
  protected $errorResultDataType = '';
2105
  public $id;
2106
- protected $jobReferenceType = 'Google_Service_Bigquery_JobReference';
2107
  protected $jobReferenceDataType = '';
2108
  public $kind;
2109
  public $state;
2110
- protected $statisticsType = 'Google_Service_Bigquery_JobStatistics';
2111
  protected $statisticsDataType = '';
2112
- protected $statusType = 'Google_Service_Bigquery_JobStatus';
2113
  protected $statusDataType = '';
2114
  public $userEmail;
2115
 
2116
- public function setConfiguration(Google_Service_Bigquery_JobConfiguration $configuration)
2117
  {
2118
  $this->configuration = $configuration;
2119
  }
@@ -2123,7 +2123,7 @@ class Google_Service_Bigquery_JobListJobs extends Google_Model
2123
  return $this->configuration;
2124
  }
2125
 
2126
- public function setErrorResult(Google_Service_Bigquery_ErrorProto $errorResult)
2127
  {
2128
  $this->errorResult = $errorResult;
2129
  }
@@ -2143,7 +2143,7 @@ class Google_Service_Bigquery_JobListJobs extends Google_Model
2143
  return $this->id;
2144
  }
2145
 
2146
- public function setJobReference(Google_Service_Bigquery_JobReference $jobReference)
2147
  {
2148
  $this->jobReference = $jobReference;
2149
  }
@@ -2173,7 +2173,7 @@ class Google_Service_Bigquery_JobListJobs extends Google_Model
2173
  return $this->state;
2174
  }
2175
 
2176
- public function setStatistics(Google_Service_Bigquery_JobStatistics $statistics)
2177
  {
2178
  $this->statistics = $statistics;
2179
  }
@@ -2183,7 +2183,7 @@ class Google_Service_Bigquery_JobListJobs extends Google_Model
2183
  return $this->statistics;
2184
  }
2185
 
2186
- public function setStatus(Google_Service_Bigquery_JobStatus $status)
2187
  {
2188
  $this->status = $status;
2189
  }
@@ -2204,7 +2204,7 @@ class Google_Service_Bigquery_JobListJobs extends Google_Model
2204
  }
2205
  }
2206
 
2207
- class Google_Service_Bigquery_JobReference extends Google_Model
2208
  {
2209
  public $jobId;
2210
  public $projectId;
@@ -2230,13 +2230,13 @@ class Google_Service_Bigquery_JobReference extends Google_Model
2230
  }
2231
  }
2232
 
2233
- class Google_Service_Bigquery_JobStatistics extends Google_Model
2234
  {
2235
  public $creationTime;
2236
  public $endTime;
2237
- protected $loadType = 'Google_Service_Bigquery_JobStatistics3';
2238
  protected $loadDataType = '';
2239
- protected $queryType = 'Google_Service_Bigquery_JobStatistics2';
2240
  protected $queryDataType = '';
2241
  public $startTime;
2242
  public $totalBytesProcessed;
@@ -2261,7 +2261,7 @@ class Google_Service_Bigquery_JobStatistics extends Google_Model
2261
  return $this->endTime;
2262
  }
2263
 
2264
- public function setLoad(Google_Service_Bigquery_JobStatistics3 $load)
2265
  {
2266
  $this->load = $load;
2267
  }
@@ -2271,7 +2271,7 @@ class Google_Service_Bigquery_JobStatistics extends Google_Model
2271
  return $this->load;
2272
  }
2273
 
2274
- public function setQuery(Google_Service_Bigquery_JobStatistics2 $query)
2275
  {
2276
  $this->query = $query;
2277
  }
@@ -2302,7 +2302,7 @@ class Google_Service_Bigquery_JobStatistics extends Google_Model
2302
  }
2303
  }
2304
 
2305
- class Google_Service_Bigquery_JobStatistics2 extends Google_Model
2306
  {
2307
  public $cacheHit;
2308
  public $totalBytesProcessed;
@@ -2328,7 +2328,7 @@ class Google_Service_Bigquery_JobStatistics2 extends Google_Model
2328
  }
2329
  }
2330
 
2331
- class Google_Service_Bigquery_JobStatistics3 extends Google_Model
2332
  {
2333
  public $inputFileBytes;
2334
  public $inputFiles;
@@ -2376,15 +2376,15 @@ class Google_Service_Bigquery_JobStatistics3 extends Google_Model
2376
  }
2377
  }
2378
 
2379
- class Google_Service_Bigquery_JobStatus extends Google_Collection
2380
  {
2381
- protected $errorResultType = 'Google_Service_Bigquery_ErrorProto';
2382
  protected $errorResultDataType = '';
2383
- protected $errorsType = 'Google_Service_Bigquery_ErrorProto';
2384
  protected $errorsDataType = 'array';
2385
  public $state;
2386
 
2387
- public function setErrorResult(Google_Service_Bigquery_ErrorProto $errorResult)
2388
  {
2389
  $this->errorResult = $errorResult;
2390
  }
@@ -2415,12 +2415,12 @@ class Google_Service_Bigquery_JobStatus extends Google_Collection
2415
  }
2416
  }
2417
 
2418
- class Google_Service_Bigquery_ProjectList extends Google_Collection
2419
  {
2420
  public $etag;
2421
  public $kind;
2422
  public $nextPageToken;
2423
- protected $projectsType = 'Google_Service_Bigquery_ProjectListProjects';
2424
  protected $projectsDataType = 'array';
2425
  public $totalItems;
2426
 
@@ -2475,13 +2475,13 @@ class Google_Service_Bigquery_ProjectList extends Google_Collection
2475
  }
2476
  }
2477
 
2478
- class Google_Service_Bigquery_ProjectListProjects extends Google_Model
2479
  {
2480
  public $friendlyName;
2481
  public $id;
2482
  public $kind;
2483
  public $numericId;
2484
- protected $projectReferenceType = 'Google_Service_Bigquery_ProjectReference';
2485
  protected $projectReferenceDataType = '';
2486
 
2487
  public function setFriendlyName($friendlyName)
@@ -2524,7 +2524,7 @@ class Google_Service_Bigquery_ProjectListProjects extends Google_Model
2524
  return $this->numericId;
2525
  }
2526
 
2527
- public function setProjectReference(Google_Service_Bigquery_ProjectReference $projectReference)
2528
  {
2529
  $this->projectReference = $projectReference;
2530
  }
@@ -2535,7 +2535,7 @@ class Google_Service_Bigquery_ProjectListProjects extends Google_Model
2535
  }
2536
  }
2537
 
2538
- class Google_Service_Bigquery_ProjectReference extends Google_Model
2539
  {
2540
  public $projectId;
2541
 
@@ -2550,9 +2550,9 @@ class Google_Service_Bigquery_ProjectReference extends Google_Model
2550
  }
2551
  }
2552
 
2553
- class Google_Service_Bigquery_QueryRequest extends Google_Model
2554
  {
2555
- protected $defaultDatasetType = 'Google_Service_Bigquery_DatasetReference';
2556
  protected $defaultDatasetDataType = '';
2557
  public $dryRun;
2558
  public $kind;
@@ -2562,7 +2562,7 @@ class Google_Service_Bigquery_QueryRequest extends Google_Model
2562
  public $timeoutMs;
2563
  public $useQueryCache;
2564
 
2565
- public function setDefaultDataset(Google_Service_Bigquery_DatasetReference $defaultDataset)
2566
  {
2567
  $this->defaultDataset = $defaultDataset;
2568
  }
@@ -2643,17 +2643,17 @@ class Google_Service_Bigquery_QueryRequest extends Google_Model
2643
  }
2644
  }
2645
 
2646
- class Google_Service_Bigquery_QueryResponse extends Google_Collection
2647
  {
2648
  public $cacheHit;
2649
  public $jobComplete;
2650
- protected $jobReferenceType = 'Google_Service_Bigquery_JobReference';
2651
  protected $jobReferenceDataType = '';
2652
  public $kind;
2653
  public $pageToken;
2654
- protected $rowsType = 'Google_Service_Bigquery_TableRow';
2655
  protected $rowsDataType = 'array';
2656
- protected $schemaType = 'Google_Service_Bigquery_TableSchema';
2657
  protected $schemaDataType = '';
2658
  public $totalBytesProcessed;
2659
  public $totalRows;
@@ -2678,7 +2678,7 @@ class Google_Service_Bigquery_QueryResponse extends Google_Collection
2678
  return $this->jobComplete;
2679
  }
2680
 
2681
- public function setJobReference(Google_Service_Bigquery_JobReference $jobReference)
2682
  {
2683
  $this->jobReference = $jobReference;
2684
  }
@@ -2718,7 +2718,7 @@ class Google_Service_Bigquery_QueryResponse extends Google_Collection
2718
  return $this->rows;
2719
  }
2720
 
2721
- public function setSchema(Google_Service_Bigquery_TableSchema $schema)
2722
  {
2723
  $this->schema = $schema;
2724
  }
@@ -2749,7 +2749,7 @@ class Google_Service_Bigquery_QueryResponse extends Google_Collection
2749
  }
2750
  }
2751
 
2752
- class Google_Service_Bigquery_Table extends Google_Model
2753
  {
2754
  public $creationTime;
2755
  public $description;
@@ -2761,13 +2761,13 @@ class Google_Service_Bigquery_Table extends Google_Model
2761
  public $lastModifiedTime;
2762
  public $numBytes;
2763
  public $numRows;
2764
- protected $schemaType = 'Google_Service_Bigquery_TableSchema';
2765
  protected $schemaDataType = '';
2766
  public $selfLink;
2767
- protected $tableReferenceType = 'Google_Service_Bigquery_TableReference';
2768
  protected $tableReferenceDataType = '';
2769
  public $type;
2770
- protected $viewType = 'Google_Service_Bigquery_ViewDefinition';
2771
  protected $viewDataType = '';
2772
 
2773
  public function setCreationTime($creationTime)
@@ -2870,7 +2870,7 @@ class Google_Service_Bigquery_Table extends Google_Model
2870
  return $this->numRows;
2871
  }
2872
 
2873
- public function setSchema(Google_Service_Bigquery_TableSchema $schema)
2874
  {
2875
  $this->schema = $schema;
2876
  }
@@ -2890,7 +2890,7 @@ class Google_Service_Bigquery_Table extends Google_Model
2890
  return $this->selfLink;
2891
  }
2892
 
2893
- public function setTableReference(Google_Service_Bigquery_TableReference $tableReference)
2894
  {
2895
  $this->tableReference = $tableReference;
2896
  }
@@ -2910,7 +2910,7 @@ class Google_Service_Bigquery_Table extends Google_Model
2910
  return $this->type;
2911
  }
2912
 
2913
- public function setView(Google_Service_Bigquery_ViewDefinition $view)
2914
  {
2915
  $this->view = $view;
2916
  }
@@ -2921,7 +2921,7 @@ class Google_Service_Bigquery_Table extends Google_Model
2921
  }
2922
  }
2923
 
2924
- class Google_Service_Bigquery_TableCell extends Google_Model
2925
  {
2926
  public $v;
2927
 
@@ -2936,10 +2936,10 @@ class Google_Service_Bigquery_TableCell extends Google_Model
2936
  }
2937
  }
2938
 
2939
- class Google_Service_Bigquery_TableDataInsertAllRequest extends Google_Collection
2940
  {
2941
  public $kind;
2942
- protected $rowsType = 'Google_Service_Bigquery_TableDataInsertAllRequestRows';
2943
  protected $rowsDataType = 'array';
2944
 
2945
  public function setKind($kind)
@@ -2963,7 +2963,7 @@ class Google_Service_Bigquery_TableDataInsertAllRequest extends Google_Collectio
2963
  }
2964
  }
2965
 
2966
- class Google_Service_Bigquery_TableDataInsertAllRequestRows extends Google_Model
2967
  {
2968
  public $insertId;
2969
  public $json;
@@ -2989,9 +2989,9 @@ class Google_Service_Bigquery_TableDataInsertAllRequestRows extends Google_Model
2989
  }
2990
  }
2991
 
2992
- class Google_Service_Bigquery_TableDataInsertAllResponse extends Google_Collection
2993
  {
2994
- protected $insertErrorsType = 'Google_Service_Bigquery_TableDataInsertAllResponseInsertErrors';
2995
  protected $insertErrorsDataType = 'array';
2996
  public $kind;
2997
 
@@ -3016,9 +3016,9 @@ class Google_Service_Bigquery_TableDataInsertAllResponse extends Google_Collecti
3016
  }
3017
  }
3018
 
3019
- class Google_Service_Bigquery_TableDataInsertAllResponseInsertErrors extends Google_Collection
3020
  {
3021
- protected $errorsType = 'Google_Service_Bigquery_ErrorProto';
3022
  protected $errorsDataType = 'array';
3023
  public $index;
3024
 
@@ -3043,12 +3043,12 @@ class Google_Service_Bigquery_TableDataInsertAllResponseInsertErrors extends Goo
3043
  }
3044
  }
3045
 
3046
- class Google_Service_Bigquery_TableDataList extends Google_Collection
3047
  {
3048
  public $etag;
3049
  public $kind;
3050
  public $pageToken;
3051
- protected $rowsType = 'Google_Service_Bigquery_TableRow';
3052
  protected $rowsDataType = 'array';
3053
  public $totalRows;
3054
 
@@ -3103,10 +3103,10 @@ class Google_Service_Bigquery_TableDataList extends Google_Collection
3103
  }
3104
  }
3105
 
3106
- class Google_Service_Bigquery_TableFieldSchema extends Google_Collection
3107
  {
3108
  public $description;
3109
- protected $fieldsType = 'Google_Service_Bigquery_TableFieldSchema';
3110
  protected $fieldsDataType = 'array';
3111
  public $mode;
3112
  public $name;
@@ -3163,12 +3163,12 @@ class Google_Service_Bigquery_TableFieldSchema extends Google_Collection
3163
  }
3164
  }
3165
 
3166
- class Google_Service_Bigquery_TableList extends Google_Collection
3167
  {
3168
  public $etag;
3169
  public $kind;
3170
  public $nextPageToken;
3171
- protected $tablesType = 'Google_Service_Bigquery_TableListTables';
3172
  protected $tablesDataType = 'array';
3173
  public $totalItems;
3174
 
@@ -3223,12 +3223,12 @@ class Google_Service_Bigquery_TableList extends Google_Collection
3223
  }
3224
  }
3225
 
3226
- class Google_Service_Bigquery_TableListTables extends Google_Model
3227
  {
3228
  public $friendlyName;
3229
  public $id;
3230
  public $kind;
3231
- protected $tableReferenceType = 'Google_Service_Bigquery_TableReference';
3232
  protected $tableReferenceDataType = '';
3233
  public $type;
3234
 
@@ -3262,7 +3262,7 @@ class Google_Service_Bigquery_TableListTables extends Google_Model
3262
  return $this->kind;
3263
  }
3264
 
3265
- public function setTableReference(Google_Service_Bigquery_TableReference $tableReference)
3266
  {
3267
  $this->tableReference = $tableReference;
3268
  }
@@ -3283,7 +3283,7 @@ class Google_Service_Bigquery_TableListTables extends Google_Model
3283
  }
3284
  }
3285
 
3286
- class Google_Service_Bigquery_TableReference extends Google_Model
3287
  {
3288
  public $datasetId;
3289
  public $projectId;
@@ -3320,9 +3320,9 @@ class Google_Service_Bigquery_TableReference extends Google_Model
3320
  }
3321
  }
3322
 
3323
- class Google_Service_Bigquery_TableRow extends Google_Collection
3324
  {
3325
- protected $fType = 'Google_Service_Bigquery_TableCell';
3326
  protected $fDataType = 'array';
3327
 
3328
  public function setF($f)
@@ -3336,9 +3336,9 @@ class Google_Service_Bigquery_TableRow extends Google_Collection
3336
  }
3337
  }
3338
 
3339
- class Google_Service_Bigquery_TableSchema extends Google_Collection
3340
  {
3341
- protected $fieldsType = 'Google_Service_Bigquery_TableFieldSchema';
3342
  protected $fieldsDataType = 'array';
3343
 
3344
  public function setFields($fields)
@@ -3352,7 +3352,7 @@ class Google_Service_Bigquery_TableSchema extends Google_Collection
3352
  }
3353
  }
3354
 
3355
- class Google_Service_Bigquery_ViewDefinition extends Google_Model
3356
  {
3357
  public $query;
3358
 
29
  *
30
  * @author Google, Inc.
31
  */
32
+ class GoogleGAL_Service_Bigquery extends GoogleGAL_Service
33
  {
34
  /** View and manage your data in Google BigQuery. */
35
  const BIGQUERY = "https://www.googleapis.com/auth/bigquery";
52
  /**
53
  * Constructs the internal representation of the Bigquery service.
54
  *
55
+ * @param GoogleGAL_Client $client
56
  */
57
+ public function __construct(GoogleGAL_Client $client)
58
  {
59
  parent::__construct($client);
60
  $this->servicePath = 'bigquery/v2/';
61
  $this->version = 'v2';
62
  $this->serviceName = 'bigquery';
63
 
64
+ $this->datasets = new GoogleGAL_Service_Bigquery_Datasets_Resource(
65
  $this,
66
  $this->serviceName,
67
  'datasets',
167
  )
168
  )
169
  );
170
+ $this->jobs = new GoogleGAL_Service_Bigquery_Jobs_Resource(
171
  $this,
172
  $this->serviceName,
173
  'jobs',
274
  )
275
  )
276
  );
277
+ $this->projects = new GoogleGAL_Service_Bigquery_Projects_Resource(
278
  $this,
279
  $this->serviceName,
280
  'projects',
297
  )
298
  )
299
  );
300
+ $this->tabledata = new GoogleGAL_Service_Bigquery_Tabledata_Resource(
301
  $this,
302
  $this->serviceName,
303
  'tabledata',
359
  )
360
  )
361
  );
362
+ $this->tables = new GoogleGAL_Service_Bigquery_Tables_Resource(
363
  $this,
364
  $this->serviceName,
365
  'tables',
495
  * The "datasets" collection of methods.
496
  * Typical usage is:
497
  * <code>
498
+ * $bigqueryService = new GoogleGAL_Service_Bigquery(...);
499
  * $datasets = $bigqueryService->datasets;
500
  * </code>
501
  */
502
+ class GoogleGAL_Service_Bigquery_Datasets_Resource extends GoogleGAL_Service_Resource
503
  {
504
 
505
  /**
532
  * @param string $datasetId
533
  * Dataset ID of the requested dataset
534
  * @param array $optParams Optional parameters.
535
+ * @return GoogleGAL_Service_Bigquery_Dataset
536
  */
537
  public function get($projectId, $datasetId, $optParams = array())
538
  {
539
  $params = array('projectId' => $projectId, 'datasetId' => $datasetId);
540
  $params = array_merge($params, $optParams);
541
+ return $this->call('get', array($params), "GoogleGAL_Service_Bigquery_Dataset");
542
  }
543
  /**
544
  * Creates a new empty dataset. (datasets.insert)
545
  *
546
  * @param string $projectId
547
  * Project ID of the new dataset
548
+ * @param GoogleGAL_Dataset $postBody
549
  * @param array $optParams Optional parameters.
550
+ * @return GoogleGAL_Service_Bigquery_Dataset
551
  */
552
+ public function insert($projectId, GoogleGAL_Service_Bigquery_Dataset $postBody, $optParams = array())
553
  {
554
  $params = array('projectId' => $projectId, 'postBody' => $postBody);
555
  $params = array_merge($params, $optParams);
556
+ return $this->call('insert', array($params), "GoogleGAL_Service_Bigquery_Dataset");
557
  }
558
  /**
559
  * Lists all the datasets in the specified project to which the caller has read
570
  * Whether to list all datasets, including hidden ones
571
  * @opt_param string maxResults
572
  * The maximum number of results to return
573
+ * @return GoogleGAL_Service_Bigquery_DatasetList
574
  */
575
  public function listDatasets($projectId, $optParams = array())
576
  {
577
  $params = array('projectId' => $projectId);
578
  $params = array_merge($params, $optParams);
579
+ return $this->call('list', array($params), "GoogleGAL_Service_Bigquery_DatasetList");
580
  }
581
  /**
582
  * Updates information in an existing dataset. The update method replaces the
588
  * Project ID of the dataset being updated
589
  * @param string $datasetId
590
  * Dataset ID of the dataset being updated
591
+ * @param GoogleGAL_Dataset $postBody
592
  * @param array $optParams Optional parameters.
593
+ * @return GoogleGAL_Service_Bigquery_Dataset
594
  */
595
+ public function patch($projectId, $datasetId, GoogleGAL_Service_Bigquery_Dataset $postBody, $optParams = array())
596
  {
597
  $params = array('projectId' => $projectId, 'datasetId' => $datasetId, 'postBody' => $postBody);
598
  $params = array_merge($params, $optParams);
599
+ return $this->call('patch', array($params), "GoogleGAL_Service_Bigquery_Dataset");
600
  }
601
  /**
602
  * Updates information in an existing dataset. The update method replaces the
607
  * Project ID of the dataset being updated
608
  * @param string $datasetId
609
  * Dataset ID of the dataset being updated
610
+ * @param GoogleGAL_Dataset $postBody
611
  * @param array $optParams Optional parameters.
612
+ * @return GoogleGAL_Service_Bigquery_Dataset
613
  */
614
+ public function update($projectId, $datasetId, GoogleGAL_Service_Bigquery_Dataset $postBody, $optParams = array())
615
  {
616
  $params = array('projectId' => $projectId, 'datasetId' => $datasetId, 'postBody' => $postBody);
617
  $params = array_merge($params, $optParams);
618
+ return $this->call('update', array($params), "GoogleGAL_Service_Bigquery_Dataset");
619
  }
620
  }
621
 
623
  * The "jobs" collection of methods.
624
  * Typical usage is:
625
  * <code>
626
+ * $bigqueryService = new GoogleGAL_Service_Bigquery(...);
627
  * $jobs = $bigqueryService->jobs;
628
  * </code>
629
  */
630
+ class GoogleGAL_Service_Bigquery_Jobs_Resource extends GoogleGAL_Service_Resource
631
  {
632
 
633
  /**
638
  * @param string $jobId
639
  * Job ID of the requested job
640
  * @param array $optParams Optional parameters.
641
+ * @return GoogleGAL_Service_Bigquery_Job
642
  */
643
  public function get($projectId, $jobId, $optParams = array())
644
  {
645
  $params = array('projectId' => $projectId, 'jobId' => $jobId);
646
  $params = array_merge($params, $optParams);
647
+ return $this->call('get', array($params), "GoogleGAL_Service_Bigquery_Job");
648
  }
649
  /**
650
  * Retrieves the results of a query job. (jobs.getQueryResults)
665
  * Page token, returned by a previous call, to request the next page of results
666
  * @opt_param string startIndex
667
  * Zero-based index of the starting row
668
+ * @return GoogleGAL_Service_Bigquery_GetQueryResultsResponse
669
  */
670
  public function getQueryResults($projectId, $jobId, $optParams = array())
671
  {
672
  $params = array('projectId' => $projectId, 'jobId' => $jobId);
673
  $params = array_merge($params, $optParams);
674
+ return $this->call('getQueryResults', array($params), "GoogleGAL_Service_Bigquery_GetQueryResultsResponse");
675
  }
676
  /**
677
  * Starts a new asynchronous job. (jobs.insert)
678
  *
679
  * @param string $projectId
680
  * Project ID of the project that will be billed for the job
681
+ * @param GoogleGAL_Job $postBody
682
  * @param array $optParams Optional parameters.
683
+ * @return GoogleGAL_Service_Bigquery_Job
684
  */
685
+ public function insert($projectId, GoogleGAL_Service_Bigquery_Job $postBody, $optParams = array())
686
  {
687
  $params = array('projectId' => $projectId, 'postBody' => $postBody);
688
  $params = array_merge($params, $optParams);
689
+ return $this->call('insert', array($params), "GoogleGAL_Service_Bigquery_Job");
690
  }
691
  /**
692
  * Lists all the Jobs in the specified project that were started by the user.
706
  * Maximum number of results to return
707
  * @opt_param string pageToken
708
  * Page token, returned by a previous call, to request the next page of results
709
+ * @return GoogleGAL_Service_Bigquery_JobList
710
  */
711
  public function listJobs($projectId, $optParams = array())
712
  {
713
  $params = array('projectId' => $projectId);
714
  $params = array_merge($params, $optParams);
715
+ return $this->call('list', array($params), "GoogleGAL_Service_Bigquery_JobList");
716
  }
717
  /**
718
  * Runs a BigQuery SQL query synchronously and returns query results if the
720
  *
721
  * @param string $projectId
722
  * Project ID of the project billed for the query
723
+ * @param GoogleGAL_QueryRequest $postBody
724
  * @param array $optParams Optional parameters.
725
+ * @return GoogleGAL_Service_Bigquery_QueryResponse
726
  */
727
+ public function query($projectId, GoogleGAL_Service_Bigquery_QueryRequest $postBody, $optParams = array())
728
  {
729
  $params = array('projectId' => $projectId, 'postBody' => $postBody);
730
  $params = array_merge($params, $optParams);
731
+ return $this->call('query', array($params), "GoogleGAL_Service_Bigquery_QueryResponse");
732
  }
733
  }
734
 
736
  * The "projects" collection of methods.
737
  * Typical usage is:
738
  * <code>
739
+ * $bigqueryService = new GoogleGAL_Service_Bigquery(...);
740
  * $projects = $bigqueryService->projects;
741
  * </code>
742
  */
743
+ class GoogleGAL_Service_Bigquery_Projects_Resource extends GoogleGAL_Service_Resource
744
  {
745
 
746
  /**
753
  * Page token, returned by a previous call, to request the next page of results
754
  * @opt_param string maxResults
755
  * Maximum number of results to return
756
+ * @return GoogleGAL_Service_Bigquery_ProjectList
757
  */
758
  public function listProjects($optParams = array())
759
  {
760
  $params = array();
761
  $params = array_merge($params, $optParams);
762
+ return $this->call('list', array($params), "GoogleGAL_Service_Bigquery_ProjectList");
763
  }
764
  }
765
 
767
  * The "tabledata" collection of methods.
768
  * Typical usage is:
769
  * <code>
770
+ * $bigqueryService = new GoogleGAL_Service_Bigquery(...);
771
  * $tabledata = $bigqueryService->tabledata;
772
  * </code>
773
  */
774
+ class GoogleGAL_Service_Bigquery_Tabledata_Resource extends GoogleGAL_Service_Resource
775
  {
776
 
777
  /**
783
  * Dataset ID of the destination table.
784
  * @param string $tableId
785
  * Table ID of the destination table.
786
+ * @param GoogleGAL_TableDataInsertAllRequest $postBody
787
  * @param array $optParams Optional parameters.
788
+ * @return GoogleGAL_Service_Bigquery_TableDataInsertAllResponse
789
  */
790
+ public function insertAll($projectId, $datasetId, $tableId, GoogleGAL_Service_Bigquery_TableDataInsertAllRequest $postBody, $optParams = array())
791
  {
792
  $params = array('projectId' => $projectId, 'datasetId' => $datasetId, 'tableId' => $tableId, 'postBody' => $postBody);
793
  $params = array_merge($params, $optParams);
794
+ return $this->call('insertAll', array($params), "GoogleGAL_Service_Bigquery_TableDataInsertAllResponse");
795
  }
796
  /**
797
  * Retrieves table data from a specified set of rows. (tabledata.listTabledata)
810
  * Page token, returned by a previous call, identifying the result set
811
  * @opt_param string startIndex
812
  * Zero-based index of the starting row to read
813
+ * @return GoogleGAL_Service_Bigquery_TableDataList
814
  */
815
  public function listTabledata($projectId, $datasetId, $tableId, $optParams = array())
816
  {
817
  $params = array('projectId' => $projectId, 'datasetId' => $datasetId, 'tableId' => $tableId);
818
  $params = array_merge($params, $optParams);
819
+ return $this->call('list', array($params), "GoogleGAL_Service_Bigquery_TableDataList");
820
  }
821
  }
822
 
824
  * The "tables" collection of methods.
825
  * Typical usage is:
826
  * <code>
827
+ * $bigqueryService = new GoogleGAL_Service_Bigquery(...);
828
  * $tables = $bigqueryService->tables;
829
  * </code>
830
  */
831
+ class GoogleGAL_Service_Bigquery_Tables_Resource extends GoogleGAL_Service_Resource
832
  {
833
 
834
  /**
861
  * @param string $tableId
862
  * Table ID of the requested table
863
  * @param array $optParams Optional parameters.
864
+ * @return GoogleGAL_Service_Bigquery_Table
865
  */
866
  public function get($projectId, $datasetId, $tableId, $optParams = array())
867
  {
868
  $params = array('projectId' => $projectId, 'datasetId' => $datasetId, 'tableId' => $tableId);
869
  $params = array_merge($params, $optParams);
870
+ return $this->call('get', array($params), "GoogleGAL_Service_Bigquery_Table");
871
  }
872
  /**
873
  * Creates a new, empty table in the dataset. (tables.insert)
876
  * Project ID of the new table
877
  * @param string $datasetId
878
  * Dataset ID of the new table
879
+ * @param GoogleGAL_Table $postBody
880
  * @param array $optParams Optional parameters.
881
+ * @return GoogleGAL_Service_Bigquery_Table
882
  */
883
+ public function insert($projectId, $datasetId, GoogleGAL_Service_Bigquery_Table $postBody, $optParams = array())
884
  {
885
  $params = array('projectId' => $projectId, 'datasetId' => $datasetId, 'postBody' => $postBody);
886
  $params = array_merge($params, $optParams);
887
+ return $this->call('insert', array($params), "GoogleGAL_Service_Bigquery_Table");
888
  }
889
  /**
890
  * Lists all tables in the specified dataset. (tables.listTables)
899
  * Page token, returned by a previous call, to request the next page of results
900
  * @opt_param string maxResults
901
  * Maximum number of results to return
902
+ * @return GoogleGAL_Service_Bigquery_TableList
903
  */
904
  public function listTables($projectId, $datasetId, $optParams = array())
905
  {
906
  $params = array('projectId' => $projectId, 'datasetId' => $datasetId);
907
  $params = array_merge($params, $optParams);
908
+ return $this->call('list', array($params), "GoogleGAL_Service_Bigquery_TableList");
909
  }
910
  /**
911
  * Updates information in an existing table. The update method replaces the
919
  * Dataset ID of the table to update
920
  * @param string $tableId
921
  * Table ID of the table to update
922
+ * @param GoogleGAL_Table $postBody
923
  * @param array $optParams Optional parameters.
924
+ * @return GoogleGAL_Service_Bigquery_Table
925
  */
926
+ public function patch($projectId, $datasetId, $tableId, GoogleGAL_Service_Bigquery_Table $postBody, $optParams = array())
927
  {
928
  $params = array('projectId' => $projectId, 'datasetId' => $datasetId, 'tableId' => $tableId, 'postBody' => $postBody);
929
  $params = array_merge($params, $optParams);
930
+ return $this->call('patch', array($params), "GoogleGAL_Service_Bigquery_Table");
931
  }
932
  /**
933
  * Updates information in an existing table. The update method replaces the
940
  * Dataset ID of the table to update
941
  * @param string $tableId
942
  * Table ID of the table to update
943
+ * @param GoogleGAL_Table $postBody
944
  * @param array $optParams Optional parameters.
945
+ * @return GoogleGAL_Service_Bigquery_Table
946
  */
947
+ public function update($projectId, $datasetId, $tableId, GoogleGAL_Service_Bigquery_Table $postBody, $optParams = array())
948
  {
949
  $params = array('projectId' => $projectId, 'datasetId' => $datasetId, 'tableId' => $tableId, 'postBody' => $postBody);
950
  $params = array_merge($params, $optParams);
951
+ return $this->call('update', array($params), "GoogleGAL_Service_Bigquery_Table");
952
  }
953
  }
954
 
955
 
956
 
957
 
958
+ class GoogleGAL_Service_Bigquery_Dataset extends GoogleGAL_Collection
959
  {
960
+ protected $accessType = 'GoogleGAL_Service_Bigquery_DatasetAccess';
961
  protected $accessDataType = 'array';
962
  public $creationTime;
963
+ protected $datasetReferenceType = 'GoogleGAL_Service_Bigquery_DatasetReference';
964
  protected $datasetReferenceDataType = '';
965
  public $description;
966
  public $etag;
990
  return $this->creationTime;
991
  }
992
 
993
+ public function setDatasetReference(GoogleGAL_Service_Bigquery_DatasetReference $datasetReference)
994
  {
995
  $this->datasetReference = $datasetReference;
996
  }
1071
  }
1072
  }
1073
 
1074
+ class GoogleGAL_Service_Bigquery_DatasetAccess extends GoogleGAL_Model
1075
  {
1076
  public $domain;
1077
  public $groupByEmail;
1130
  }
1131
  }
1132
 
1133
+ class GoogleGAL_Service_Bigquery_DatasetList extends GoogleGAL_Collection
1134
  {
1135
+ protected $datasetsType = 'GoogleGAL_Service_Bigquery_DatasetListDatasets';
1136
  protected $datasetsDataType = 'array';
1137
  public $etag;
1138
  public $kind;
1179
  }
1180
  }
1181
 
1182
+ class GoogleGAL_Service_Bigquery_DatasetListDatasets extends GoogleGAL_Model
1183
  {
1184
+ protected $datasetReferenceType = 'GoogleGAL_Service_Bigquery_DatasetReference';
1185
  protected $datasetReferenceDataType = '';
1186
  public $friendlyName;
1187
  public $id;
1188
  public $kind;
1189
 
1190
+ public function setDatasetReference(GoogleGAL_Service_Bigquery_DatasetReference $datasetReference)
1191
  {
1192
  $this->datasetReference = $datasetReference;
1193
  }
1228
  }
1229
  }
1230
 
1231
+ class GoogleGAL_Service_Bigquery_DatasetReference extends GoogleGAL_Model
1232
  {
1233
  public $datasetId;
1234
  public $projectId;
1254
  }
1255
  }
1256
 
1257
+ class GoogleGAL_Service_Bigquery_ErrorProto extends GoogleGAL_Model
1258
  {
1259
  public $debugInfo;
1260
  public $location;
1302
  }
1303
  }
1304
 
1305
+ class GoogleGAL_Service_Bigquery_GetQueryResultsResponse extends GoogleGAL_Collection
1306
  {
1307
  public $cacheHit;
1308
  public $etag;
1309
  public $jobComplete;
1310
+ protected $jobReferenceType = 'GoogleGAL_Service_Bigquery_JobReference';
1311
  protected $jobReferenceDataType = '';
1312
  public $kind;
1313
  public $pageToken;
1314
+ protected $rowsType = 'GoogleGAL_Service_Bigquery_TableRow';
1315
  protected $rowsDataType = 'array';
1316
+ protected $schemaType = 'GoogleGAL_Service_Bigquery_TableSchema';
1317
  protected $schemaDataType = '';
1318
  public $totalRows;
1319
 
1347
  return $this->jobComplete;
1348
  }
1349
 
1350
+ public function setJobReference(GoogleGAL_Service_Bigquery_JobReference $jobReference)
1351
  {
1352
  $this->jobReference = $jobReference;
1353
  }
1387
  return $this->rows;
1388
  }
1389
 
1390
+ public function setSchema(GoogleGAL_Service_Bigquery_TableSchema $schema)
1391
  {
1392
  $this->schema = $schema;
1393
  }
1408
  }
1409
  }
1410
 
1411
+ class GoogleGAL_Service_Bigquery_Job extends GoogleGAL_Model
1412
  {
1413
+ protected $configurationType = 'GoogleGAL_Service_Bigquery_JobConfiguration';
1414
  protected $configurationDataType = '';
1415
  public $etag;
1416
  public $id;
1417
+ protected $jobReferenceType = 'GoogleGAL_Service_Bigquery_JobReference';
1418
  protected $jobReferenceDataType = '';
1419
  public $kind;
1420
  public $selfLink;
1421
+ protected $statisticsType = 'GoogleGAL_Service_Bigquery_JobStatistics';
1422
  protected $statisticsDataType = '';
1423
+ protected $statusType = 'GoogleGAL_Service_Bigquery_JobStatus';
1424
  protected $statusDataType = '';
1425
 
1426
+ public function setConfiguration(GoogleGAL_Service_Bigquery_JobConfiguration $configuration)
1427
  {
1428
  $this->configuration = $configuration;
1429
  }
1453
  return $this->id;
1454
  }
1455
 
1456
+ public function setJobReference(GoogleGAL_Service_Bigquery_JobReference $jobReference)
1457
  {
1458
  $this->jobReference = $jobReference;
1459
  }
1483
  return $this->selfLink;
1484
  }
1485
 
1486
+ public function setStatistics(GoogleGAL_Service_Bigquery_JobStatistics $statistics)
1487
  {
1488
  $this->statistics = $statistics;
1489
  }
1493
  return $this->statistics;
1494
  }
1495
 
1496
+ public function setStatus(GoogleGAL_Service_Bigquery_JobStatus $status)
1497
  {
1498
  $this->status = $status;
1499
  }
1504
  }
1505
  }
1506
 
1507
+ class GoogleGAL_Service_Bigquery_JobConfiguration extends GoogleGAL_Model
1508
  {
1509
+ protected $copyType = 'GoogleGAL_Service_Bigquery_JobConfigurationTableCopy';
1510
  protected $copyDataType = '';
1511
  public $dryRun;
1512
+ protected $extractType = 'GoogleGAL_Service_Bigquery_JobConfigurationExtract';
1513
  protected $extractDataType = '';
1514
+ protected $linkType = 'GoogleGAL_Service_Bigquery_JobConfigurationLink';
1515
  protected $linkDataType = '';
1516
+ protected $loadType = 'GoogleGAL_Service_Bigquery_JobConfigurationLoad';
1517
  protected $loadDataType = '';
1518
+ protected $queryType = 'GoogleGAL_Service_Bigquery_JobConfigurationQuery';
1519
  protected $queryDataType = '';
1520
 
1521
+ public function setCopy(GoogleGAL_Service_Bigquery_JobConfigurationTableCopy $copy)
1522
  {
1523
  $this->copy = $copy;
1524
  }
1538
  return $this->dryRun;
1539
  }
1540
 
1541
+ public function setExtract(GoogleGAL_Service_Bigquery_JobConfigurationExtract $extract)
1542
  {
1543
  $this->extract = $extract;
1544
  }
1548
  return $this->extract;
1549
  }
1550
 
1551
+ public function setLink(GoogleGAL_Service_Bigquery_JobConfigurationLink $link)
1552
  {
1553
  $this->link = $link;
1554
  }
1558
  return $this->link;
1559
  }
1560
 
1561
+ public function setLoad(GoogleGAL_Service_Bigquery_JobConfigurationLoad $load)
1562
  {
1563
  $this->load = $load;
1564
  }
1568
  return $this->load;
1569
  }
1570
 
1571
+ public function setQuery(GoogleGAL_Service_Bigquery_JobConfigurationQuery $query)
1572
  {
1573
  $this->query = $query;
1574
  }
1579
  }
1580
  }
1581
 
1582
+ class GoogleGAL_Service_Bigquery_JobConfigurationExtract extends GoogleGAL_Collection
1583
  {
1584
  public $destinationFormat;
1585
  public $destinationUri;
1586
  public $destinationUris;
1587
  public $fieldDelimiter;
1588
  public $printHeader;
1589
+ protected $sourceTableType = 'GoogleGAL_Service_Bigquery_TableReference';
1590
  protected $sourceTableDataType = '';
1591
 
1592
  public function setDestinationFormat($destinationFormat)
1639
  return $this->printHeader;
1640
  }
1641
 
1642
+ public function setSourceTable(GoogleGAL_Service_Bigquery_TableReference $sourceTable)
1643
  {
1644
  $this->sourceTable = $sourceTable;
1645
  }
1650
  }
1651
  }
1652
 
1653
+ class GoogleGAL_Service_Bigquery_JobConfigurationLink extends GoogleGAL_Collection
1654
  {
1655
  public $createDisposition;
1656
+ protected $destinationTableType = 'GoogleGAL_Service_Bigquery_TableReference';
1657
  protected $destinationTableDataType = '';
1658
  public $sourceUri;
1659
  public $writeDisposition;
1668
  return $this->createDisposition;
1669
  }
1670
 
1671
+ public function setDestinationTable(GoogleGAL_Service_Bigquery_TableReference $destinationTable)
1672
  {
1673
  $this->destinationTable = $destinationTable;
1674
  }
1699
  }
1700
  }
1701
 
1702
+ class GoogleGAL_Service_Bigquery_JobConfigurationLoad extends GoogleGAL_Collection
1703
  {
1704
  public $allowJaggedRows;
1705
  public $allowQuotedNewlines;
1706
  public $createDisposition;
1707
+ protected $destinationTableType = 'GoogleGAL_Service_Bigquery_TableReference';
1708
  protected $destinationTableDataType = '';
1709
  public $encoding;
1710
  public $fieldDelimiter;
1711
  public $ignoreUnknownValues;
1712
  public $maxBadRecords;
1713
  public $quote;
1714
+ protected $schemaType = 'GoogleGAL_Service_Bigquery_TableSchema';
1715
  protected $schemaDataType = '';
1716
  public $schemaInline;
1717
  public $schemaInlineFormat;
1750
  return $this->createDisposition;
1751
  }
1752
 
1753
+ public function setDestinationTable(GoogleGAL_Service_Bigquery_TableReference $destinationTable)
1754
  {
1755
  $this->destinationTable = $destinationTable;
1756
  }
1810
  return $this->quote;
1811
  }
1812
 
1813
+ public function setSchema(GoogleGAL_Service_Bigquery_TableSchema $schema)
1814
  {
1815
  $this->schema = $schema;
1816
  }
1881
  }
1882
  }
1883
 
1884
+ class GoogleGAL_Service_Bigquery_JobConfigurationQuery extends GoogleGAL_Model
1885
  {
1886
  public $allowLargeResults;
1887
  public $createDisposition;
1888
+ protected $defaultDatasetType = 'GoogleGAL_Service_Bigquery_DatasetReference';
1889
  protected $defaultDatasetDataType = '';
1890
+ protected $destinationTableType = 'GoogleGAL_Service_Bigquery_TableReference';
1891
  protected $destinationTableDataType = '';
1892
  public $preserveNulls;
1893
  public $priority;
1915
  return $this->createDisposition;
1916
  }
1917
 
1918
+ public function setDefaultDataset(GoogleGAL_Service_Bigquery_DatasetReference $defaultDataset)
1919
  {
1920
  $this->defaultDataset = $defaultDataset;
1921
  }
1925
  return $this->defaultDataset;
1926
  }
1927
 
1928
+ public function setDestinationTable(GoogleGAL_Service_Bigquery_TableReference $destinationTable)
1929
  {
1930
  $this->destinationTable = $destinationTable;
1931
  }
1986
  }
1987
  }
1988
 
1989
+ class GoogleGAL_Service_Bigquery_JobConfigurationTableCopy extends GoogleGAL_Model
1990
  {
1991
  public $createDisposition;
1992
+ protected $destinationTableType = 'GoogleGAL_Service_Bigquery_TableReference';
1993
  protected $destinationTableDataType = '';
1994
+ protected $sourceTableType = 'GoogleGAL_Service_Bigquery_TableReference';
1995
  protected $sourceTableDataType = '';
1996
  public $writeDisposition;
1997
 
2005
  return $this->createDisposition;
2006
  }
2007
 
2008
+ public function setDestinationTable(GoogleGAL_Service_Bigquery_TableReference $destinationTable)
2009
  {
2010
  $this->destinationTable = $destinationTable;
2011
  }
2015
  return $this->destinationTable;
2016
  }
2017
 
2018
+ public function setSourceTable(GoogleGAL_Service_Bigquery_TableReference $sourceTable)
2019
  {
2020
  $this->sourceTable = $sourceTable;
2021
  }
2036
  }
2037
  }
2038
 
2039
+ class GoogleGAL_Service_Bigquery_JobList extends GoogleGAL_Collection
2040
  {
2041
  public $etag;
2042
+ protected $jobsType = 'GoogleGAL_Service_Bigquery_JobListJobs';
2043
  protected $jobsDataType = 'array';
2044
  public $kind;
2045
  public $nextPageToken;
2096
  }
2097
  }
2098
 
2099
+ class GoogleGAL_Service_Bigquery_JobListJobs extends GoogleGAL_Model
2100
  {
2101
+ protected $configurationType = 'GoogleGAL_Service_Bigquery_JobConfiguration';
2102
  protected $configurationDataType = '';
2103
+ protected $errorResultType = 'GoogleGAL_Service_Bigquery_ErrorProto';
2104
  protected $errorResultDataType = '';
2105
  public $id;
2106
+ protected $jobReferenceType = 'GoogleGAL_Service_Bigquery_JobReference';
2107
  protected $jobReferenceDataType = '';
2108
  public $kind;
2109
  public $state;
2110
+ protected $statisticsType = 'GoogleGAL_Service_Bigquery_JobStatistics';
2111
  protected $statisticsDataType = '';
2112
+ protected $statusType = 'GoogleGAL_Service_Bigquery_JobStatus';
2113
  protected $statusDataType = '';
2114
  public $userEmail;
2115
 
2116
+ public function setConfiguration(GoogleGAL_Service_Bigquery_JobConfiguration $configuration)
2117
  {
2118
  $this->configuration = $configuration;
2119
  }
2123
  return $this->configuration;
2124
  }
2125
 
2126
+ public function setErrorResult(GoogleGAL_Service_Bigquery_ErrorProto $errorResult)
2127
  {
2128
  $this->errorResult = $errorResult;
2129
  }
2143
  return $this->id;
2144
  }
2145
 
2146
+ public function setJobReference(GoogleGAL_Service_Bigquery_JobReference $jobReference)
2147
  {
2148
  $this->jobReference = $jobReference;
2149
  }
2173
  return $this->state;
2174
  }
2175
 
2176
+ public function setStatistics(GoogleGAL_Service_Bigquery_JobStatistics $statistics)
2177
  {
2178
  $this->statistics = $statistics;
2179
  }
2183
  return $this->statistics;
2184
  }
2185
 
2186
+ public function setStatus(GoogleGAL_Service_Bigquery_JobStatus $status)
2187
  {
2188
  $this->status = $status;
2189
  }
2204
  }
2205
  }
2206
 
2207
+ class GoogleGAL_Service_Bigquery_JobReference extends GoogleGAL_Model
2208
  {
2209
  public $jobId;
2210
  public $projectId;
2230
  }
2231
  }
2232
 
2233
+ class GoogleGAL_Service_Bigquery_JobStatistics extends GoogleGAL_Model
2234
  {
2235
  public $creationTime;
2236
  public $endTime;
2237
+ protected $loadType = 'GoogleGAL_Service_Bigquery_JobStatistics3';
2238
  protected $loadDataType = '';
2239
+ protected $queryType = 'GoogleGAL_Service_Bigquery_JobStatistics2';
2240
  protected $queryDataType = '';
2241
  public $startTime;
2242
  public $totalBytesProcessed;
2261
  return $this->endTime;
2262
  }
2263
 
2264
+ public function setLoad(GoogleGAL_Service_Bigquery_JobStatistics3 $load)
2265
  {
2266
  $this->load = $load;
2267
  }
2271
  return $this->load;
2272
  }
2273
 
2274
+ public function setQuery(GoogleGAL_Service_Bigquery_JobStatistics2 $query)
2275
  {
2276
  $this->query = $query;
2277
  }
2302
  }
2303
  }
2304
 
2305
+ class GoogleGAL_Service_Bigquery_JobStatistics2 extends GoogleGAL_Model
2306
  {
2307
  public $cacheHit;
2308
  public $totalBytesProcessed;
2328
  }
2329
  }
2330
 
2331
+ class GoogleGAL_Service_Bigquery_JobStatistics3 extends GoogleGAL_Model
2332
  {
2333
  public $inputFileBytes;
2334
  public $inputFiles;
2376
  }
2377
  }
2378
 
2379
+ class GoogleGAL_Service_Bigquery_JobStatus extends GoogleGAL_Collection
2380
  {
2381
+ protected $errorResultType = 'GoogleGAL_Service_Bigquery_ErrorProto';
2382
  protected $errorResultDataType = '';
2383
+ protected $errorsType = 'GoogleGAL_Service_Bigquery_ErrorProto';
2384
  protected $errorsDataType = 'array';
2385
  public $state;
2386
 
2387
+ public function setErrorResult(GoogleGAL_Service_Bigquery_ErrorProto $errorResult)
2388
  {
2389
  $this->errorResult = $errorResult;
2390
  }
2415
  }
2416
  }
2417
 
2418
+ class GoogleGAL_Service_Bigquery_ProjectList extends GoogleGAL_Collection
2419
  {
2420
  public $etag;
2421
  public $kind;
2422
  public $nextPageToken;
2423
+ protected $projectsType = 'GoogleGAL_Service_Bigquery_ProjectListProjects';
2424
  protected $projectsDataType = 'array';
2425
  public $totalItems;
2426
 
2475
  }
2476
  }
2477
 
2478
+ class GoogleGAL_Service_Bigquery_ProjectListProjects extends GoogleGAL_Model
2479
  {
2480
  public $friendlyName;
2481
  public $id;
2482
  public $kind;
2483
  public $numericId;
2484
+ protected $projectReferenceType = 'GoogleGAL_Service_Bigquery_ProjectReference';
2485
  protected $projectReferenceDataType = '';
2486
 
2487
  public function setFriendlyName($friendlyName)
2524
  return $this->numericId;
2525
  }
2526
 
2527
+ public function setProjectReference(GoogleGAL_Service_Bigquery_ProjectReference $projectReference)
2528
  {
2529
  $this->projectReference = $projectReference;
2530
  }
2535
  }
2536
  }
2537
 
2538
+ class GoogleGAL_Service_Bigquery_ProjectReference extends GoogleGAL_Model
2539
  {
2540
  public $projectId;
2541
 
2550
  }
2551
  }
2552
 
2553
+ class GoogleGAL_Service_Bigquery_QueryRequest extends GoogleGAL_Model
2554
  {
2555
+ protected $defaultDatasetType = 'GoogleGAL_Service_Bigquery_DatasetReference';
2556
  protected $defaultDatasetDataType = '';
2557
  public $dryRun;
2558
  public $kind;
2562
  public $timeoutMs;
2563
  public $useQueryCache;
2564
 
2565
+ public function setDefaultDataset(GoogleGAL_Service_Bigquery_DatasetReference $defaultDataset)
2566
  {
2567
  $this->defaultDataset = $defaultDataset;
2568
  }
2643
  }
2644
  }
2645
 
2646
+ class GoogleGAL_Service_Bigquery_QueryResponse extends GoogleGAL_Collection
2647
  {
2648
  public $cacheHit;
2649
  public $jobComplete;
2650
+ protected $jobReferenceType = 'GoogleGAL_Service_Bigquery_JobReference';
2651
  protected $jobReferenceDataType = '';
2652
  public $kind;
2653
  public $pageToken;
2654
+ protected $rowsType = 'GoogleGAL_Service_Bigquery_TableRow';
2655
  protected $rowsDataType = 'array';
2656
+ protected $schemaType = 'GoogleGAL_Service_Bigquery_TableSchema';
2657
  protected $schemaDataType = '';
2658
  public $totalBytesProcessed;
2659
  public $totalRows;
2678
  return $this->jobComplete;
2679
  }
2680
 
2681
+ public function setJobReference(GoogleGAL_Service_Bigquery_JobReference $jobReference)
2682
  {
2683
  $this->jobReference = $jobReference;
2684
  }
2718
  return $this->rows;
2719
  }
2720
 
2721
+ public function setSchema(GoogleGAL_Service_Bigquery_TableSchema $schema)
2722
  {
2723
  $this->schema = $schema;
2724
  }
2749
  }
2750
  }
2751
 
2752
+ class GoogleGAL_Service_Bigquery_Table extends GoogleGAL_Model
2753
  {
2754
  public $creationTime;
2755
  public $description;
2761
  public $lastModifiedTime;
2762
  public $numBytes;
2763
  public $numRows;
2764
+ protected $schemaType = 'GoogleGAL_Service_Bigquery_TableSchema';
2765
  protected $schemaDataType = '';
2766
  public $selfLink;
2767
+ protected $tableReferenceType = 'GoogleGAL_Service_Bigquery_TableReference';
2768
  protected $tableReferenceDataType = '';
2769
  public $type;
2770
+ protected $viewType = 'GoogleGAL_Service_Bigquery_ViewDefinition';
2771
  protected $viewDataType = '';
2772
 
2773
  public function setCreationTime($creationTime)
2870
  return $this->numRows;
2871
  }
2872
 
2873
+ public function setSchema(GoogleGAL_Service_Bigquery_TableSchema $schema)
2874
  {
2875
  $this->schema = $schema;
2876
  }
2890
  return $this->selfLink;
2891
  }
2892
 
2893
+ public function setTableReference(GoogleGAL_Service_Bigquery_TableReference $tableReference)
2894
  {
2895
  $this->tableReference = $tableReference;
2896
  }
2910
  return $this->type;
2911
  }
2912
 
2913
+ public function setView(GoogleGAL_Service_Bigquery_ViewDefinition $view)
2914
  {
2915
  $this->view = $view;
2916
  }
2921
  }
2922
  }
2923
 
2924
+ class GoogleGAL_Service_Bigquery_TableCell extends GoogleGAL_Model
2925
  {
2926
  public $v;
2927
 
2936
  }
2937
  }
2938
 
2939
+ class GoogleGAL_Service_Bigquery_TableDataInsertAllRequest extends GoogleGAL_Collection
2940
  {
2941
  public $kind;
2942
+ protected $rowsType = 'GoogleGAL_Service_Bigquery_TableDataInsertAllRequestRows';
2943
  protected $rowsDataType = 'array';
2944
 
2945
  public function setKind($kind)
2963
  }
2964
  }
2965
 
2966
+ class GoogleGAL_Service_Bigquery_TableDataInsertAllRequestRows extends GoogleGAL_Model
2967
  {
2968
  public $insertId;
2969
  public $json;
2989
  }
2990
  }
2991
 
2992
+ class GoogleGAL_Service_Bigquery_TableDataInsertAllResponse extends GoogleGAL_Collection
2993
  {
2994
+ protected $insertErrorsType = 'GoogleGAL_Service_Bigquery_TableDataInsertAllResponseInsertErrors';
2995
  protected $insertErrorsDataType = 'array';
2996
  public $kind;
2997
 
3016
  }
3017
  }
3018
 
3019
+ class GoogleGAL_Service_Bigquery_TableDataInsertAllResponseInsertErrors extends GoogleGAL_Collection
3020
  {
3021
+ protected $errorsType = 'GoogleGAL_Service_Bigquery_ErrorProto';
3022
  protected $errorsDataType = 'array';
3023
  public $index;
3024
 
3043
  }
3044
  }
3045
 
3046
+ class GoogleGAL_Service_Bigquery_TableDataList extends GoogleGAL_Collection
3047
  {
3048
  public $etag;
3049
  public $kind;
3050
  public $pageToken;
3051
+ protected $rowsType = 'GoogleGAL_Service_Bigquery_TableRow';
3052
  protected $rowsDataType = 'array';
3053
  public $totalRows;
3054
 
3103
  }
3104
  }
3105
 
3106
+ class GoogleGAL_Service_Bigquery_TableFieldSchema extends GoogleGAL_Collection
3107
  {
3108
  public $description;
3109
+ protected $fieldsType = 'GoogleGAL_Service_Bigquery_TableFieldSchema';
3110
  protected $fieldsDataType = 'array';
3111
  public $mode;
3112
  public $name;
3163
  }
3164
  }
3165
 
3166
+ class GoogleGAL_Service_Bigquery_TableList extends GoogleGAL_Collection
3167
  {
3168
  public $etag;
3169
  public $kind;
3170
  public $nextPageToken;
3171
+ protected $tablesType = 'GoogleGAL_Service_Bigquery_TableListTables';
3172
  protected $tablesDataType = 'array';
3173
  public $totalItems;
3174
 
3223
  }
3224
  }
3225
 
3226
+ class GoogleGAL_Service_Bigquery_TableListTables extends GoogleGAL_Model
3227
  {
3228
  public $friendlyName;
3229
  public $id;
3230
  public $kind;
3231
+ protected $tableReferenceType = 'GoogleGAL_Service_Bigquery_TableReference';
3232
  protected $tableReferenceDataType = '';
3233
  public $type;
3234
 
3262
  return $this->kind;
3263
  }
3264
 
3265
+ public function setTableReference(GoogleGAL_Service_Bigquery_TableReference $tableReference)
3266
  {
3267
  $this->tableReference = $tableReference;
3268
  }
3283
  }
3284
  }
3285
 
3286
+ class GoogleGAL_Service_Bigquery_TableReference extends GoogleGAL_Model
3287
  {
3288
  public $datasetId;
3289
  public $projectId;
3320
  }
3321
  }
3322
 
3323
+ class GoogleGAL_Service_Bigquery_TableRow extends GoogleGAL_Collection
3324
  {
3325
+ protected $fType = 'GoogleGAL_Service_Bigquery_TableCell';
3326
  protected $fDataType = 'array';
3327
 
3328
  public function setF($f)
3336
  }
3337
  }
3338
 
3339
+ class GoogleGAL_Service_Bigquery_TableSchema extends GoogleGAL_Collection
3340
  {
3341
+ protected $fieldsType = 'GoogleGAL_Service_Bigquery_TableFieldSchema';
3342
  protected $fieldsDataType = 'array';
3343
 
3344
  public function setFields($fields)
3352
  }
3353
  }
3354
 
3355
+ class GoogleGAL_Service_Bigquery_ViewDefinition extends GoogleGAL_Model
3356
  {
3357
  public $query;
3358
 
core/Google/Service/Blogger.php CHANGED
@@ -29,7 +29,7 @@
29
  *
30
  * @author Google, Inc.
31
  */
32
- class Google_Service_Blogger extends Google_Service
33
  {
34
  /** Manage your Blogger account. */
35
  const BLOGGER = "https://www.googleapis.com/auth/blogger";
@@ -49,16 +49,16 @@ class Google_Service_Blogger extends Google_Service
49
  /**
50
  * Constructs the internal representation of the Blogger service.
51
  *
52
- * @param Google_Client $client
53
  */
54
- public function __construct(Google_Client $client)
55
  {
56
  parent::__construct($client);
57
  $this->servicePath = 'blogger/v3/';
58
  $this->version = 'v3';
59
  $this->serviceName = 'blogger';
60
 
61
- $this->blogUserInfos = new Google_Service_Blogger_BlogUserInfos_Resource(
62
  $this,
63
  $this->serviceName,
64
  'blogUserInfos',
@@ -87,7 +87,7 @@ class Google_Service_Blogger extends Google_Service
87
  )
88
  )
89
  );
90
- $this->blogs = new Google_Service_Blogger_Blogs_Resource(
91
  $this,
92
  $this->serviceName,
93
  'blogs',
@@ -152,7 +152,7 @@ class Google_Service_Blogger extends Google_Service
152
  )
153
  )
154
  );
155
- $this->comments = new Google_Service_Blogger_Comments_Resource(
156
  $this,
157
  $this->serviceName,
158
  'comments',
@@ -340,7 +340,7 @@ class Google_Service_Blogger extends Google_Service
340
  )
341
  )
342
  );
343
- $this->pageViews = new Google_Service_Blogger_PageViews_Resource(
344
  $this,
345
  $this->serviceName,
346
  'pageViews',
@@ -365,7 +365,7 @@ class Google_Service_Blogger extends Google_Service
365
  )
366
  )
367
  );
368
- $this->pages = new Google_Service_Blogger_Pages_Resource(
369
  $this,
370
  $this->serviceName,
371
  'pages',
@@ -472,7 +472,7 @@ class Google_Service_Blogger extends Google_Service
472
  )
473
  )
474
  );
475
- $this->postUserInfos = new Google_Service_Blogger_PostUserInfos_Resource(
476
  $this,
477
  $this->serviceName,
478
  'postUserInfos',
@@ -558,7 +558,7 @@ class Google_Service_Blogger extends Google_Service
558
  )
559
  )
560
  );
561
- $this->posts = new Google_Service_Blogger_Posts_Resource(
562
  $this,
563
  $this->serviceName,
564
  'posts',
@@ -837,7 +837,7 @@ class Google_Service_Blogger extends Google_Service
837
  )
838
  )
839
  );
840
- $this->users = new Google_Service_Blogger_Users_Resource(
841
  $this,
842
  $this->serviceName,
843
  'users',
@@ -865,11 +865,11 @@ class Google_Service_Blogger extends Google_Service
865
  * The "blogUserInfos" collection of methods.
866
  * Typical usage is:
867
  * <code>
868
- * $bloggerService = new Google_Service_Blogger(...);
869
  * $blogUserInfos = $bloggerService->blogUserInfos;
870
  * </code>
871
  */
872
- class Google_Service_Blogger_BlogUserInfos_Resource extends Google_Service_Resource
873
  {
874
 
875
  /**
@@ -884,13 +884,13 @@ class Google_Service_Blogger_BlogUserInfos_Resource extends Google_Service_Resou
884
  *
885
  * @opt_param string maxPosts
886
  * Maximum number of posts to pull back with the blog.
887
- * @return Google_Service_Blogger_BlogUserInfo
888
  */
889
  public function get($userId, $blogId, $optParams = array())
890
  {
891
  $params = array('userId' => $userId, 'blogId' => $blogId);
892
  $params = array_merge($params, $optParams);
893
- return $this->call('get', array($params), "Google_Service_Blogger_BlogUserInfo");
894
  }
895
  }
896
 
@@ -898,11 +898,11 @@ class Google_Service_Blogger_BlogUserInfos_Resource extends Google_Service_Resou
898
  * The "blogs" collection of methods.
899
  * Typical usage is:
900
  * <code>
901
- * $bloggerService = new Google_Service_Blogger(...);
902
  * $blogs = $bloggerService->blogs;
903
  * </code>
904
  */
905
- class Google_Service_Blogger_Blogs_Resource extends Google_Service_Resource
906
  {
907
 
908
  /**
@@ -916,13 +916,13 @@ class Google_Service_Blogger_Blogs_Resource extends Google_Service_Resource
916
  * Maximum number of posts to pull back with the blog.
917
  * @opt_param string view
918
  * Access level with which to view the blogs. Note that some fields require elevated access.
919
- * @return Google_Service_Blogger_Blog
920
  */
921
  public function get($blogId, $optParams = array())
922
  {
923
  $params = array('blogId' => $blogId);
924
  $params = array_merge($params, $optParams);
925
- return $this->call('get', array($params), "Google_Service_Blogger_Blog");
926
  }
927
  /**
928
  * Retrieve a Blog by URL. (blogs.getByUrl)
@@ -933,13 +933,13 @@ class Google_Service_Blogger_Blogs_Resource extends Google_Service_Resource
933
  *
934
  * @opt_param string view
935
  * Access level with which to view the blogs. Note that some fields require elevated access.
936
- * @return Google_Service_Blogger_Blog
937
  */
938
  public function getByUrl($url, $optParams = array())
939
  {
940
  $params = array('url' => $url);
941
  $params = array_merge($params, $optParams);
942
- return $this->call('getByUrl', array($params), "Google_Service_Blogger_Blog");
943
  }
944
  /**
945
  * Retrieves a list of blogs, possibly filtered. (blogs.listByUser)
@@ -956,13 +956,13 @@ class Google_Service_Blogger_Blogs_Resource extends Google_Service_Resource
956
  * user has author level access. If no roles are specified, defaults to ADMIN and AUTHOR roles.
957
  * @opt_param string view
958
  * Access level with which to view the blogs. Note that some fields require elevated access.
959
- * @return Google_Service_Blogger_BlogList
960
  */
961
  public function listByUser($userId, $optParams = array())
962
  {
963
  $params = array('userId' => $userId);
964
  $params = array_merge($params, $optParams);
965
- return $this->call('listByUser', array($params), "Google_Service_Blogger_BlogList");
966
  }
967
  }
968
 
@@ -970,11 +970,11 @@ class Google_Service_Blogger_Blogs_Resource extends Google_Service_Resource
970
  * The "comments" collection of methods.
971
  * Typical usage is:
972
  * <code>
973
- * $bloggerService = new Google_Service_Blogger(...);
974
  * $comments = $bloggerService->comments;
975
  * </code>
976
  */
977
- class Google_Service_Blogger_Comments_Resource extends Google_Service_Resource
978
  {
979
 
980
  /**
@@ -987,13 +987,13 @@ class Google_Service_Blogger_Comments_Resource extends Google_Service_Resource
987
  * @param string $commentId
988
  * The ID of the comment to mark as not spam.
989
  * @param array $optParams Optional parameters.
990
- * @return Google_Service_Blogger_Comment
991
  */
992
  public function approve($blogId, $postId, $commentId, $optParams = array())
993
  {
994
  $params = array('blogId' => $blogId, 'postId' => $postId, 'commentId' => $commentId);
995
  $params = array_merge($params, $optParams);
996
- return $this->call('approve', array($params), "Google_Service_Blogger_Comment");
997
  }
998
  /**
999
  * Delete a comment by id. (comments.delete)
@@ -1027,13 +1027,13 @@ class Google_Service_Blogger_Comments_Resource extends Google_Service_Resource
1027
  * Access level for the requested comment (default: READER). Note that some comments will require
1028
  * elevated permissions, for example comments where the parent posts which is in a draft state, or
1029
  * comments that are pending moderation.
1030
- * @return Google_Service_Blogger_Comment
1031
  */
1032
  public function get($blogId, $postId, $commentId, $optParams = array())
1033
  {
1034
  $params = array('blogId' => $blogId, 'postId' => $postId, 'commentId' => $commentId);
1035
  $params = array_merge($params, $optParams);
1036
- return $this->call('get', array($params), "Google_Service_Blogger_Comment");
1037
  }
1038
  /**
1039
  * Retrieves the comments for a post, possibly filtered. (comments.listComments)
@@ -1059,13 +1059,13 @@ class Google_Service_Blogger_Comments_Resource extends Google_Service_Resource
1059
  * @opt_param string view
1060
  * Access level with which to view the returned result. Note that some fields require elevated
1061
  * access.
1062
- * @return Google_Service_Blogger_CommentList
1063
  */
1064
  public function listComments($blogId, $postId, $optParams = array())
1065
  {
1066
  $params = array('blogId' => $blogId, 'postId' => $postId);
1067
  $params = array_merge($params, $optParams);
1068
- return $this->call('list', array($params), "Google_Service_Blogger_CommentList");
1069
  }
1070
  /**
1071
  * Retrieves the comments for a blog, across all posts, possibly filtered.
@@ -1085,13 +1085,13 @@ class Google_Service_Blogger_Comments_Resource extends Google_Service_Resource
1085
  * Continuation token if request is paged.
1086
  * @opt_param bool fetchBodies
1087
  * Whether the body content of the comments is included.
1088
- * @return Google_Service_Blogger_CommentList
1089
  */
1090
  public function listByBlog($blogId, $optParams = array())
1091
  {
1092
  $params = array('blogId' => $blogId);
1093
  $params = array_merge($params, $optParams);
1094
- return $this->call('listByBlog', array($params), "Google_Service_Blogger_CommentList");
1095
  }
1096
  /**
1097
  * Marks a comment as spam. (comments.markAsSpam)
@@ -1103,13 +1103,13 @@ class Google_Service_Blogger_Comments_Resource extends Google_Service_Resource
1103
  * @param string $commentId
1104
  * The ID of the comment to mark as spam.
1105
  * @param array $optParams Optional parameters.
1106
- * @return Google_Service_Blogger_Comment
1107
  */
1108
  public function markAsSpam($blogId, $postId, $commentId, $optParams = array())
1109
  {
1110
  $params = array('blogId' => $blogId, 'postId' => $postId, 'commentId' => $commentId);
1111
  $params = array_merge($params, $optParams);
1112
- return $this->call('markAsSpam', array($params), "Google_Service_Blogger_Comment");
1113
  }
1114
  /**
1115
  * Removes the content of a comment. (comments.removeContent)
@@ -1121,13 +1121,13 @@ class Google_Service_Blogger_Comments_Resource extends Google_Service_Resource
1121
  * @param string $commentId
1122
  * The ID of the comment to delete content from.
1123
  * @param array $optParams Optional parameters.
1124
- * @return Google_Service_Blogger_Comment
1125
  */
1126
  public function removeContent($blogId, $postId, $commentId, $optParams = array())
1127
  {
1128
  $params = array('blogId' => $blogId, 'postId' => $postId, 'commentId' => $commentId);
1129
  $params = array_merge($params, $optParams);
1130
- return $this->call('removeContent', array($params), "Google_Service_Blogger_Comment");
1131
  }
1132
  }
1133
 
@@ -1135,11 +1135,11 @@ class Google_Service_Blogger_Comments_Resource extends Google_Service_Resource
1135
  * The "pageViews" collection of methods.
1136
  * Typical usage is:
1137
  * <code>
1138
- * $bloggerService = new Google_Service_Blogger(...);
1139
  * $pageViews = $bloggerService->pageViews;
1140
  * </code>
1141
  */
1142
- class Google_Service_Blogger_PageViews_Resource extends Google_Service_Resource
1143
  {
1144
 
1145
  /**
@@ -1151,13 +1151,13 @@ class Google_Service_Blogger_PageViews_Resource extends Google_Service_Resource
1151
  *
1152
  * @opt_param string range
1153
  *
1154
- * @return Google_Service_Blogger_Pageviews
1155
  */
1156
  public function get($blogId, $optParams = array())
1157
  {
1158
  $params = array('blogId' => $blogId);
1159
  $params = array_merge($params, $optParams);
1160
- return $this->call('get', array($params), "Google_Service_Blogger_Pageviews");
1161
  }
1162
  }
1163
 
@@ -1165,11 +1165,11 @@ class Google_Service_Blogger_PageViews_Resource extends Google_Service_Resource
1165
  * The "pages" collection of methods.
1166
  * Typical usage is:
1167
  * <code>
1168
- * $bloggerService = new Google_Service_Blogger(...);
1169
  * $pages = $bloggerService->pages;
1170
  * </code>
1171
  */
1172
- class Google_Service_Blogger_Pages_Resource extends Google_Service_Resource
1173
  {
1174
 
1175
  /**
@@ -1198,28 +1198,28 @@ class Google_Service_Blogger_Pages_Resource extends Google_Service_Resource
1198
  *
1199
  * @opt_param string view
1200
  *
1201
- * @return Google_Service_Blogger_Page
1202
  */
1203
  public function get($blogId, $pageId, $optParams = array())
1204
  {
1205
  $params = array('blogId' => $blogId, 'pageId' => $pageId);
1206
  $params = array_merge($params, $optParams);
1207
- return $this->call('get', array($params), "Google_Service_Blogger_Page");
1208
  }
1209
  /**
1210
  * Add a page. (pages.insert)
1211
  *
1212
  * @param string $blogId
1213
  * ID of the blog to add the page to.
1214
- * @param Google_Page $postBody
1215
  * @param array $optParams Optional parameters.
1216
- * @return Google_Service_Blogger_Page
1217
  */
1218
- public function insert($blogId, Google_Service_Blogger_Page $postBody, $optParams = array())
1219
  {
1220
  $params = array('blogId' => $blogId, 'postBody' => $postBody);
1221
  $params = array_merge($params, $optParams);
1222
- return $this->call('insert', array($params), "Google_Service_Blogger_Page");
1223
  }
1224
  /**
1225
  * Retrieves the pages for a blog, optionally including non-LIVE statuses.
@@ -1236,13 +1236,13 @@ class Google_Service_Blogger_Pages_Resource extends Google_Service_Resource
1236
  * @opt_param string view
1237
  * Access level with which to view the returned result. Note that some fields require elevated
1238
  * access.
1239
- * @return Google_Service_Blogger_PageList
1240
  */
1241
  public function listPages($blogId, $optParams = array())
1242
  {
1243
  $params = array('blogId' => $blogId);
1244
  $params = array_merge($params, $optParams);
1245
- return $this->call('list', array($params), "Google_Service_Blogger_PageList");
1246
  }
1247
  /**
1248
  * Update a page. This method supports patch semantics. (pages.patch)
@@ -1251,15 +1251,15 @@ class Google_Service_Blogger_Pages_Resource extends Google_Service_Resource
1251
  * The ID of the Blog.
1252
  * @param string $pageId
1253
  * The ID of the Page.
1254
- * @param Google_Page $postBody
1255
  * @param array $optParams Optional parameters.
1256
- * @return Google_Service_Blogger_Page
1257
  */
1258
- public function patch($blogId, $pageId, Google_Service_Blogger_Page $postBody, $optParams = array())
1259
  {
1260
  $params = array('blogId' => $blogId, 'pageId' => $pageId, 'postBody' => $postBody);
1261
  $params = array_merge($params, $optParams);
1262
- return $this->call('patch', array($params), "Google_Service_Blogger_Page");
1263
  }
1264
  /**
1265
  * Update a page. (pages.update)
@@ -1268,15 +1268,15 @@ class Google_Service_Blogger_Pages_Resource extends Google_Service_Resource
1268
  * The ID of the Blog.
1269
  * @param string $pageId
1270
  * The ID of the Page.
1271
- * @param Google_Page $postBody
1272
  * @param array $optParams Optional parameters.
1273
- * @return Google_Service_Blogger_Page
1274
  */
1275
- public function update($blogId, $pageId, Google_Service_Blogger_Page $postBody, $optParams = array())
1276
  {
1277
  $params = array('blogId' => $blogId, 'pageId' => $pageId, 'postBody' => $postBody);
1278
  $params = array_merge($params, $optParams);
1279
- return $this->call('update', array($params), "Google_Service_Blogger_Page");
1280
  }
1281
  }
1282
 
@@ -1284,11 +1284,11 @@ class Google_Service_Blogger_Pages_Resource extends Google_Service_Resource
1284
  * The "postUserInfos" collection of methods.
1285
  * Typical usage is:
1286
  * <code>
1287
- * $bloggerService = new Google_Service_Blogger(...);
1288
  * $postUserInfos = $bloggerService->postUserInfos;
1289
  * </code>
1290
  */
1291
- class Google_Service_Blogger_PostUserInfos_Resource extends Google_Service_Resource
1292
  {
1293
 
1294
  /**
@@ -1307,13 +1307,13 @@ class Google_Service_Blogger_PostUserInfos_Resource extends Google_Service_Resou
1307
  *
1308
  * @opt_param string maxComments
1309
  * Maximum number of comments to pull back on a post.
1310
- * @return Google_Service_Blogger_PostUserInfo
1311
  */
1312
  public function get($userId, $blogId, $postId, $optParams = array())
1313
  {
1314
  $params = array('userId' => $userId, 'blogId' => $blogId, 'postId' => $postId);
1315
  $params = array_merge($params, $optParams);
1316
- return $this->call('get', array($params), "Google_Service_Blogger_PostUserInfo");
1317
  }
1318
  /**
1319
  * Retrieves a list of post and post user info pairs, possibly filtered. The
@@ -1346,13 +1346,13 @@ class Google_Service_Blogger_PostUserInfos_Resource extends Google_Service_Resou
1346
  * @opt_param string view
1347
  * Access level with which to view the returned result. Note that some fields require elevated
1348
  * access.
1349
- * @return Google_Service_Blogger_PostUserInfosList
1350
  */
1351
  public function listPostUserInfos($userId, $blogId, $optParams = array())
1352
  {
1353
  $params = array('userId' => $userId, 'blogId' => $blogId);
1354
  $params = array_merge($params, $optParams);
1355
- return $this->call('list', array($params), "Google_Service_Blogger_PostUserInfosList");
1356
  }
1357
  }
1358
 
@@ -1360,11 +1360,11 @@ class Google_Service_Blogger_PostUserInfos_Resource extends Google_Service_Resou
1360
  * The "posts" collection of methods.
1361
  * Typical usage is:
1362
  * <code>
1363
- * $bloggerService = new Google_Service_Blogger(...);
1364
  * $posts = $bloggerService->posts;
1365
  * </code>
1366
  */
1367
- class Google_Service_Blogger_Posts_Resource extends Google_Service_Resource
1368
  {
1369
 
1370
  /**
@@ -1401,13 +1401,13 @@ class Google_Service_Blogger_Posts_Resource extends Google_Service_Resource
1401
  * @opt_param string view
1402
  * Access level with which to view the returned result. Note that some fields require elevated
1403
  * access.
1404
- * @return Google_Service_Blogger_Post
1405
  */
1406
  public function get($blogId, $postId, $optParams = array())
1407
  {
1408
  $params = array('blogId' => $blogId, 'postId' => $postId);
1409
  $params = array_merge($params, $optParams);
1410
- return $this->call('get', array($params), "Google_Service_Blogger_Post");
1411
  }
1412
  /**
1413
  * Retrieve a Post by Path. (posts.getByPath)
@@ -1423,20 +1423,20 @@ class Google_Service_Blogger_Posts_Resource extends Google_Service_Resource
1423
  * @opt_param string view
1424
  * Access level with which to view the returned result. Note that some fields require elevated
1425
  * access.
1426
- * @return Google_Service_Blogger_Post
1427
  */
1428
  public function getByPath($blogId, $path, $optParams = array())
1429
  {
1430
  $params = array('blogId' => $blogId, 'path' => $path);
1431
  $params = array_merge($params, $optParams);
1432
- return $this->call('getByPath', array($params), "Google_Service_Blogger_Post");
1433
  }
1434
  /**
1435
  * Add a post. (posts.insert)
1436
  *
1437
  * @param string $blogId
1438
  * ID of the blog to add the post to.
1439
- * @param Google_Post $postBody
1440
  * @param array $optParams Optional parameters.
1441
  *
1442
  * @opt_param bool fetchImages
@@ -1445,13 +1445,13 @@ class Google_Service_Blogger_Posts_Resource extends Google_Service_Resource
1445
  * Whether to create the post as a draft (default: false).
1446
  * @opt_param bool fetchBody
1447
  * Whether the body content of the post is included with the result (default: true).
1448
- * @return Google_Service_Blogger_Post
1449
  */
1450
- public function insert($blogId, Google_Service_Blogger_Post $postBody, $optParams = array())
1451
  {
1452
  $params = array('blogId' => $blogId, 'postBody' => $postBody);
1453
  $params = array_merge($params, $optParams);
1454
- return $this->call('insert', array($params), "Google_Service_Blogger_Post");
1455
  }
1456
  /**
1457
  * Retrieves a list of posts, possibly filtered. (posts.listPosts)
@@ -1482,13 +1482,13 @@ class Google_Service_Blogger_Posts_Resource extends Google_Service_Resource
1482
  * @opt_param string view
1483
  * Access level with which to view the returned result. Note that some fields require escalated
1484
  * access.
1485
- * @return Google_Service_Blogger_PostList
1486
  */
1487
  public function listPosts($blogId, $optParams = array())
1488
  {
1489
  $params = array('blogId' => $blogId);
1490
  $params = array_merge($params, $optParams);
1491
- return $this->call('list', array($params), "Google_Service_Blogger_PostList");
1492
  }
1493
  /**
1494
  * Update a post. This method supports patch semantics. (posts.patch)
@@ -1497,7 +1497,7 @@ class Google_Service_Blogger_Posts_Resource extends Google_Service_Resource
1497
  * The ID of the Blog.
1498
  * @param string $postId
1499
  * The ID of the Post.
1500
- * @param Google_Post $postBody
1501
  * @param array $optParams Optional parameters.
1502
  *
1503
  * @opt_param bool revert
@@ -1510,13 +1510,13 @@ class Google_Service_Blogger_Posts_Resource extends Google_Service_Resource
1510
  * Maximum number of comments to retrieve with the returned post.
1511
  * @opt_param bool fetchImages
1512
  * Whether image URL metadata for each post is included in the returned result (default: false).
1513
- * @return Google_Service_Blogger_Post
1514
  */
1515
- public function patch($blogId, $postId, Google_Service_Blogger_Post $postBody, $optParams = array())
1516
  {
1517
  $params = array('blogId' => $blogId, 'postId' => $postId, 'postBody' => $postBody);
1518
  $params = array_merge($params, $optParams);
1519
- return $this->call('patch', array($params), "Google_Service_Blogger_Post");
1520
  }
1521
  /**
1522
  * Publish a draft post. (posts.publish)
@@ -1529,13 +1529,13 @@ class Google_Service_Blogger_Posts_Resource extends Google_Service_Resource
1529
  *
1530
  * @opt_param string publishDate
1531
  * The date and time to schedule the publishing of the Blog.
1532
- * @return Google_Service_Blogger_Post
1533
  */
1534
  public function publish($blogId, $postId, $optParams = array())
1535
  {
1536
  $params = array('blogId' => $blogId, 'postId' => $postId);
1537
  $params = array_merge($params, $optParams);
1538
- return $this->call('publish', array($params), "Google_Service_Blogger_Post");
1539
  }
1540
  /**
1541
  * Revert a published or scheduled post to draft state. (posts.revert)
@@ -1545,13 +1545,13 @@ class Google_Service_Blogger_Posts_Resource extends Google_Service_Resource
1545
  * @param string $postId
1546
  * The ID of the Post.
1547
  * @param array $optParams Optional parameters.
1548
- * @return Google_Service_Blogger_Post
1549
  */
1550
  public function revert($blogId, $postId, $optParams = array())
1551
  {
1552
  $params = array('blogId' => $blogId, 'postId' => $postId);
1553
  $params = array_merge($params, $optParams);
1554
- return $this->call('revert', array($params), "Google_Service_Blogger_Post");
1555
  }
1556
  /**
1557
  * Search for a post. (posts.search)
@@ -1567,13 +1567,13 @@ class Google_Service_Blogger_Posts_Resource extends Google_Service_Resource
1567
  * @opt_param bool fetchBodies
1568
  * Whether the body content of posts is included (default: true). This should be set to false when
1569
  * the post bodies are not required, to help minimize traffic.
1570
- * @return Google_Service_Blogger_PostList
1571
  */
1572
  public function search($blogId, $q, $optParams = array())
1573
  {
1574
  $params = array('blogId' => $blogId, 'q' => $q);
1575
  $params = array_merge($params, $optParams);
1576
- return $this->call('search', array($params), "Google_Service_Blogger_PostList");
1577
  }
1578
  /**
1579
  * Update a post. (posts.update)
@@ -1582,7 +1582,7 @@ class Google_Service_Blogger_Posts_Resource extends Google_Service_Resource
1582
  * The ID of the Blog.
1583
  * @param string $postId
1584
  * The ID of the Post.
1585
- * @param Google_Post $postBody
1586
  * @param array $optParams Optional parameters.
1587
  *
1588
  * @opt_param bool revert
@@ -1595,13 +1595,13 @@ class Google_Service_Blogger_Posts_Resource extends Google_Service_Resource
1595
  * Maximum number of comments to retrieve with the returned post.
1596
  * @opt_param bool fetchImages
1597
  * Whether image URL metadata for each post is included in the returned result (default: false).
1598
- * @return Google_Service_Blogger_Post
1599
  */
1600
- public function update($blogId, $postId, Google_Service_Blogger_Post $postBody, $optParams = array())
1601
  {
1602
  $params = array('blogId' => $blogId, 'postId' => $postId, 'postBody' => $postBody);
1603
  $params = array_merge($params, $optParams);
1604
- return $this->call('update', array($params), "Google_Service_Blogger_Post");
1605
  }
1606
  }
1607
 
@@ -1609,11 +1609,11 @@ class Google_Service_Blogger_Posts_Resource extends Google_Service_Resource
1609
  * The "users" collection of methods.
1610
  * Typical usage is:
1611
  * <code>
1612
- * $bloggerService = new Google_Service_Blogger(...);
1613
  * $users = $bloggerService->users;
1614
  * </code>
1615
  */
1616
- class Google_Service_Blogger_Users_Resource extends Google_Service_Resource
1617
  {
1618
 
1619
  /**
@@ -1622,31 +1622,31 @@ class Google_Service_Blogger_Users_Resource extends Google_Service_Resource
1622
  * @param string $userId
1623
  * The ID of the user to get.
1624
  * @param array $optParams Optional parameters.
1625
- * @return Google_Service_Blogger_User
1626
  */
1627
  public function get($userId, $optParams = array())
1628
  {
1629
  $params = array('userId' => $userId);
1630
  $params = array_merge($params, $optParams);
1631
- return $this->call('get', array($params), "Google_Service_Blogger_User");
1632
  }
1633
  }
1634
 
1635
 
1636
 
1637
 
1638
- class Google_Service_Blogger_Blog extends Google_Model
1639
  {
1640
  public $customMetaData;
1641
  public $description;
1642
  public $id;
1643
  public $kind;
1644
- protected $localeType = 'Google_Service_Blogger_BlogLocale';
1645
  protected $localeDataType = '';
1646
  public $name;
1647
- protected $pagesType = 'Google_Service_Blogger_BlogPages';
1648
  protected $pagesDataType = '';
1649
- protected $postsType = 'Google_Service_Blogger_BlogPosts';
1650
  protected $postsDataType = '';
1651
  public $published;
1652
  public $selfLink;
@@ -1693,7 +1693,7 @@ class Google_Service_Blogger_Blog extends Google_Model
1693
  return $this->kind;
1694
  }
1695
 
1696
- public function setLocale(Google_Service_Blogger_BlogLocale $locale)
1697
  {
1698
  $this->locale = $locale;
1699
  }
@@ -1713,7 +1713,7 @@ class Google_Service_Blogger_Blog extends Google_Model
1713
  return $this->name;
1714
  }
1715
 
1716
- public function setPages(Google_Service_Blogger_BlogPages $pages)
1717
  {
1718
  $this->pages = $pages;
1719
  }
@@ -1723,7 +1723,7 @@ class Google_Service_Blogger_Blog extends Google_Model
1723
  return $this->pages;
1724
  }
1725
 
1726
- public function setPosts(Google_Service_Blogger_BlogPosts $posts)
1727
  {
1728
  $this->posts = $posts;
1729
  }
@@ -1774,11 +1774,11 @@ class Google_Service_Blogger_Blog extends Google_Model
1774
  }
1775
  }
1776
 
1777
- class Google_Service_Blogger_BlogList extends Google_Collection
1778
  {
1779
- protected $blogUserInfosType = 'Google_Service_Blogger_BlogUserInfo';
1780
  protected $blogUserInfosDataType = 'array';
1781
- protected $itemsType = 'Google_Service_Blogger_Blog';
1782
  protected $itemsDataType = 'array';
1783
  public $kind;
1784
 
@@ -1813,7 +1813,7 @@ class Google_Service_Blogger_BlogList extends Google_Collection
1813
  }
1814
  }
1815
 
1816
- class Google_Service_Blogger_BlogLocale extends Google_Model
1817
  {
1818
  public $country;
1819
  public $language;
@@ -1850,7 +1850,7 @@ class Google_Service_Blogger_BlogLocale extends Google_Model
1850
  }
1851
  }
1852
 
1853
- class Google_Service_Blogger_BlogPages extends Google_Model
1854
  {
1855
  public $selfLink;
1856
  public $totalItems;
@@ -1876,7 +1876,7 @@ class Google_Service_Blogger_BlogPages extends Google_Model
1876
  }
1877
  }
1878
 
1879
- class Google_Service_Blogger_BlogPerUserInfo extends Google_Model
1880
  {
1881
  public $blogId;
1882
  public $hasAdminAccess;
@@ -1946,9 +1946,9 @@ class Google_Service_Blogger_BlogPerUserInfo extends Google_Model
1946
  }
1947
  }
1948
 
1949
- class Google_Service_Blogger_BlogPosts extends Google_Collection
1950
  {
1951
- protected $itemsType = 'Google_Service_Blogger_Post';
1952
  protected $itemsDataType = 'array';
1953
  public $selfLink;
1954
  public $totalItems;
@@ -1984,15 +1984,15 @@ class Google_Service_Blogger_BlogPosts extends Google_Collection
1984
  }
1985
  }
1986
 
1987
- class Google_Service_Blogger_BlogUserInfo extends Google_Model
1988
  {
1989
- protected $blogType = 'Google_Service_Blogger_Blog';
1990
  protected $blogDataType = '';
1991
- protected $blogUserInfoType = 'Google_Service_Blogger_BlogPerUserInfo';
1992
  protected $blogUserInfoDataType = '';
1993
  public $kind;
1994
 
1995
- public function setBlog(Google_Service_Blogger_Blog $blog)
1996
  {
1997
  $this->blog = $blog;
1998
  }
@@ -2002,7 +2002,7 @@ class Google_Service_Blogger_BlogUserInfo extends Google_Model
2002
  return $this->blog;
2003
  }
2004
 
2005
- public function setBlogUserInfo(Google_Service_Blogger_BlogPerUserInfo $blogUserInfo)
2006
  {
2007
  $this->blogUserInfo = $blogUserInfo;
2008
  }
@@ -2023,25 +2023,25 @@ class Google_Service_Blogger_BlogUserInfo extends Google_Model
2023
  }
2024
  }
2025
 
2026
- class Google_Service_Blogger_Comment extends Google_Model
2027
  {
2028
- protected $authorType = 'Google_Service_Blogger_CommentAuthor';
2029
  protected $authorDataType = '';
2030
- protected $blogType = 'Google_Service_Blogger_CommentBlog';
2031
  protected $blogDataType = '';
2032
  public $content;
2033
  public $id;
2034
- protected $inReplyToType = 'Google_Service_Blogger_CommentInReplyTo';
2035
  protected $inReplyToDataType = '';
2036
  public $kind;
2037
- protected $postType = 'Google_Service_Blogger_CommentPost';
2038
  protected $postDataType = '';
2039
  public $published;
2040
  public $selfLink;
2041
  public $status;
2042
  public $updated;
2043
 
2044
- public function setAuthor(Google_Service_Blogger_CommentAuthor $author)
2045
  {
2046
  $this->author = $author;
2047
  }
@@ -2051,7 +2051,7 @@ class Google_Service_Blogger_Comment extends Google_Model
2051
  return $this->author;
2052
  }
2053
 
2054
- public function setBlog(Google_Service_Blogger_CommentBlog $blog)
2055
  {
2056
  $this->blog = $blog;
2057
  }
@@ -2081,7 +2081,7 @@ class Google_Service_Blogger_Comment extends Google_Model
2081
  return $this->id;
2082
  }
2083
 
2084
- public function setInReplyTo(Google_Service_Blogger_CommentInReplyTo $inReplyTo)
2085
  {
2086
  $this->inReplyTo = $inReplyTo;
2087
  }
@@ -2101,7 +2101,7 @@ class Google_Service_Blogger_Comment extends Google_Model
2101
  return $this->kind;
2102
  }
2103
 
2104
- public function setPost(Google_Service_Blogger_CommentPost $post)
2105
  {
2106
  $this->post = $post;
2107
  }
@@ -2152,11 +2152,11 @@ class Google_Service_Blogger_Comment extends Google_Model
2152
  }
2153
  }
2154
 
2155
- class Google_Service_Blogger_CommentAuthor extends Google_Model
2156
  {
2157
  public $displayName;
2158
  public $id;
2159
- protected $imageType = 'Google_Service_Blogger_CommentAuthorImage';
2160
  protected $imageDataType = '';
2161
  public $url;
2162
 
@@ -2180,7 +2180,7 @@ class Google_Service_Blogger_CommentAuthor extends Google_Model
2180
  return $this->id;
2181
  }
2182
 
2183
- public function setImage(Google_Service_Blogger_CommentAuthorImage $image)
2184
  {
2185
  $this->image = $image;
2186
  }
@@ -2201,7 +2201,7 @@ class Google_Service_Blogger_CommentAuthor extends Google_Model
2201
  }
2202
  }
2203
 
2204
- class Google_Service_Blogger_CommentAuthorImage extends Google_Model
2205
  {
2206
  public $url;
2207
 
@@ -2216,7 +2216,7 @@ class Google_Service_Blogger_CommentAuthorImage extends Google_Model
2216
  }
2217
  }
2218
 
2219
- class Google_Service_Blogger_CommentBlog extends Google_Model
2220
  {
2221
  public $id;
2222
 
@@ -2231,7 +2231,7 @@ class Google_Service_Blogger_CommentBlog extends Google_Model
2231
  }
2232
  }
2233
 
2234
- class Google_Service_Blogger_CommentInReplyTo extends Google_Model
2235
  {
2236
  public $id;
2237
 
@@ -2246,9 +2246,9 @@ class Google_Service_Blogger_CommentInReplyTo extends Google_Model
2246
  }
2247
  }
2248
 
2249
- class Google_Service_Blogger_CommentList extends Google_Collection
2250
  {
2251
- protected $itemsType = 'Google_Service_Blogger_Comment';
2252
  protected $itemsDataType = 'array';
2253
  public $kind;
2254
  public $nextPageToken;
@@ -2295,7 +2295,7 @@ class Google_Service_Blogger_CommentList extends Google_Collection
2295
  }
2296
  }
2297
 
2298
- class Google_Service_Blogger_CommentPost extends Google_Model
2299
  {
2300
  public $id;
2301
 
@@ -2310,11 +2310,11 @@ class Google_Service_Blogger_CommentPost extends Google_Model
2310
  }
2311
  }
2312
 
2313
- class Google_Service_Blogger_Page extends Google_Model
2314
  {
2315
- protected $authorType = 'Google_Service_Blogger_PageAuthor';
2316
  protected $authorDataType = '';
2317
- protected $blogType = 'Google_Service_Blogger_PageBlog';
2318
  protected $blogDataType = '';
2319
  public $content;
2320
  public $id;
@@ -2326,7 +2326,7 @@ class Google_Service_Blogger_Page extends Google_Model
2326
  public $updated;
2327
  public $url;
2328
 
2329
- public function setAuthor(Google_Service_Blogger_PageAuthor $author)
2330
  {
2331
  $this->author = $author;
2332
  }
@@ -2336,7 +2336,7 @@ class Google_Service_Blogger_Page extends Google_Model
2336
  return $this->author;
2337
  }
2338
 
2339
- public function setBlog(Google_Service_Blogger_PageBlog $blog)
2340
  {
2341
  $this->blog = $blog;
2342
  }
@@ -2437,11 +2437,11 @@ class Google_Service_Blogger_Page extends Google_Model
2437
  }
2438
  }
2439
 
2440
- class Google_Service_Blogger_PageAuthor extends Google_Model
2441
  {
2442
  public $displayName;
2443
  public $id;
2444
- protected $imageType = 'Google_Service_Blogger_PageAuthorImage';
2445
  protected $imageDataType = '';
2446
  public $url;
2447
 
@@ -2465,7 +2465,7 @@ class Google_Service_Blogger_PageAuthor extends Google_Model
2465
  return $this->id;
2466
  }
2467
 
2468
- public function setImage(Google_Service_Blogger_PageAuthorImage $image)
2469
  {
2470
  $this->image = $image;
2471
  }
@@ -2486,7 +2486,7 @@ class Google_Service_Blogger_PageAuthor extends Google_Model
2486
  }
2487
  }
2488
 
2489
- class Google_Service_Blogger_PageAuthorImage extends Google_Model
2490
  {
2491
  public $url;
2492
 
@@ -2501,7 +2501,7 @@ class Google_Service_Blogger_PageAuthorImage extends Google_Model
2501
  }
2502
  }
2503
 
2504
- class Google_Service_Blogger_PageBlog extends Google_Model
2505
  {
2506
  public $id;
2507
 
@@ -2516,9 +2516,9 @@ class Google_Service_Blogger_PageBlog extends Google_Model
2516
  }
2517
  }
2518
 
2519
- class Google_Service_Blogger_PageList extends Google_Collection
2520
  {
2521
- protected $itemsType = 'Google_Service_Blogger_Page';
2522
  protected $itemsDataType = 'array';
2523
  public $kind;
2524
 
@@ -2543,10 +2543,10 @@ class Google_Service_Blogger_PageList extends Google_Collection
2543
  }
2544
  }
2545
 
2546
- class Google_Service_Blogger_Pageviews extends Google_Collection
2547
  {
2548
  public $blogId;
2549
- protected $countsType = 'Google_Service_Blogger_PageviewsCounts';
2550
  protected $countsDataType = 'array';
2551
  public $kind;
2552
 
@@ -2581,7 +2581,7 @@ class Google_Service_Blogger_Pageviews extends Google_Collection
2581
  }
2582
  }
2583
 
2584
- class Google_Service_Blogger_PageviewsCounts extends Google_Model
2585
  {
2586
  public $count;
2587
  public $timeRange;
@@ -2607,23 +2607,23 @@ class Google_Service_Blogger_PageviewsCounts extends Google_Model
2607
  }
2608
  }
2609
 
2610
- class Google_Service_Blogger_Post extends Google_Collection
2611
  {
2612
- protected $authorType = 'Google_Service_Blogger_PostAuthor';
2613
  protected $authorDataType = '';
2614
- protected $blogType = 'Google_Service_Blogger_PostBlog';
2615
  protected $blogDataType = '';
2616
  public $content;
2617
  public $customMetaData;
2618
  public $id;
2619
- protected $imagesType = 'Google_Service_Blogger_PostImages';
2620
  protected $imagesDataType = 'array';
2621
  public $kind;
2622
  public $labels;
2623
- protected $locationType = 'Google_Service_Blogger_PostLocation';
2624
  protected $locationDataType = '';
2625
  public $published;
2626
- protected $repliesType = 'Google_Service_Blogger_PostReplies';
2627
  protected $repliesDataType = '';
2628
  public $selfLink;
2629
  public $status;
@@ -2632,7 +2632,7 @@ class Google_Service_Blogger_Post extends Google_Collection
2632
  public $updated;
2633
  public $url;
2634
 
2635
- public function setAuthor(Google_Service_Blogger_PostAuthor $author)
2636
  {
2637
  $this->author = $author;
2638
  }
@@ -2642,7 +2642,7 @@ class Google_Service_Blogger_Post extends Google_Collection
2642
  return $this->author;
2643
  }
2644
 
2645
- public function setBlog(Google_Service_Blogger_PostBlog $blog)
2646
  {
2647
  $this->blog = $blog;
2648
  }
@@ -2712,7 +2712,7 @@ class Google_Service_Blogger_Post extends Google_Collection
2712
  return $this->labels;
2713
  }
2714
 
2715
- public function setLocation(Google_Service_Blogger_PostLocation $location)
2716
  {
2717
  $this->location = $location;
2718
  }
@@ -2732,7 +2732,7 @@ class Google_Service_Blogger_Post extends Google_Collection
2732
  return $this->published;
2733
  }
2734
 
2735
- public function setReplies(Google_Service_Blogger_PostReplies $replies)
2736
  {
2737
  $this->replies = $replies;
2738
  }
@@ -2803,11 +2803,11 @@ class Google_Service_Blogger_Post extends Google_Collection
2803
  }
2804
  }
2805
 
2806
- class Google_Service_Blogger_PostAuthor extends Google_Model
2807
  {
2808
  public $displayName;
2809
  public $id;
2810
- protected $imageType = 'Google_Service_Blogger_PostAuthorImage';
2811
  protected $imageDataType = '';
2812
  public $url;
2813
 
@@ -2831,7 +2831,7 @@ class Google_Service_Blogger_PostAuthor extends Google_Model
2831
  return $this->id;
2832
  }
2833
 
2834
- public function setImage(Google_Service_Blogger_PostAuthorImage $image)
2835
  {
2836
  $this->image = $image;
2837
  }
@@ -2852,7 +2852,7 @@ class Google_Service_Blogger_PostAuthor extends Google_Model
2852
  }
2853
  }
2854
 
2855
- class Google_Service_Blogger_PostAuthorImage extends Google_Model
2856
  {
2857
  public $url;
2858
 
@@ -2867,7 +2867,7 @@ class Google_Service_Blogger_PostAuthorImage extends Google_Model
2867
  }
2868
  }
2869
 
2870
- class Google_Service_Blogger_PostBlog extends Google_Model
2871
  {
2872
  public $id;
2873
 
@@ -2882,7 +2882,7 @@ class Google_Service_Blogger_PostBlog extends Google_Model
2882
  }
2883
  }
2884
 
2885
- class Google_Service_Blogger_PostImages extends Google_Model
2886
  {
2887
  public $url;
2888
 
@@ -2897,9 +2897,9 @@ class Google_Service_Blogger_PostImages extends Google_Model
2897
  }
2898
  }
2899
 
2900
- class Google_Service_Blogger_PostList extends Google_Collection
2901
  {
2902
- protected $itemsType = 'Google_Service_Blogger_Post';
2903
  protected $itemsDataType = 'array';
2904
  public $kind;
2905
  public $nextPageToken;
@@ -2935,7 +2935,7 @@ class Google_Service_Blogger_PostList extends Google_Collection
2935
  }
2936
  }
2937
 
2938
- class Google_Service_Blogger_PostLocation extends Google_Model
2939
  {
2940
  public $lat;
2941
  public $lng;
@@ -2983,7 +2983,7 @@ class Google_Service_Blogger_PostLocation extends Google_Model
2983
  }
2984
  }
2985
 
2986
- class Google_Service_Blogger_PostPerUserInfo extends Google_Model
2987
  {
2988
  public $blogId;
2989
  public $hasEditAccess;
@@ -3042,9 +3042,9 @@ class Google_Service_Blogger_PostPerUserInfo extends Google_Model
3042
  }
3043
  }
3044
 
3045
- class Google_Service_Blogger_PostReplies extends Google_Collection
3046
  {
3047
- protected $itemsType = 'Google_Service_Blogger_Comment';
3048
  protected $itemsDataType = 'array';
3049
  public $selfLink;
3050
  public $totalItems;
@@ -3080,12 +3080,12 @@ class Google_Service_Blogger_PostReplies extends Google_Collection
3080
  }
3081
  }
3082
 
3083
- class Google_Service_Blogger_PostUserInfo extends Google_Model
3084
  {
3085
  public $kind;
3086
- protected $postType = 'Google_Service_Blogger_Post';
3087
  protected $postDataType = '';
3088
- protected $postUserInfoType = 'Google_Service_Blogger_PostPerUserInfo';
3089
  protected $postUserInfoDataType = '';
3090
 
3091
  public function setKind($kind)
@@ -3098,7 +3098,7 @@ class Google_Service_Blogger_PostUserInfo extends Google_Model
3098
  return $this->kind;
3099
  }
3100
 
3101
- public function setPost(Google_Service_Blogger_Post $post)
3102
  {
3103
  $this->post = $post;
3104
  }
@@ -3108,7 +3108,7 @@ class Google_Service_Blogger_PostUserInfo extends Google_Model
3108
  return $this->post;
3109
  }
3110
 
3111
- public function setPostUserInfo(Google_Service_Blogger_PostPerUserInfo $postUserInfo)
3112
  {
3113
  $this->postUserInfo = $postUserInfo;
3114
  }
@@ -3119,9 +3119,9 @@ class Google_Service_Blogger_PostUserInfo extends Google_Model
3119
  }
3120
  }
3121
 
3122
- class Google_Service_Blogger_PostUserInfosList extends Google_Collection
3123
  {
3124
- protected $itemsType = 'Google_Service_Blogger_PostUserInfo';
3125
  protected $itemsDataType = 'array';
3126
  public $kind;
3127
  public $nextPageToken;
@@ -3157,16 +3157,16 @@ class Google_Service_Blogger_PostUserInfosList extends Google_Collection
3157
  }
3158
  }
3159
 
3160
- class Google_Service_Blogger_User extends Google_Model
3161
  {
3162
  public $about;
3163
- protected $blogsType = 'Google_Service_Blogger_UserBlogs';
3164
  protected $blogsDataType = '';
3165
  public $created;
3166
  public $displayName;
3167
  public $id;
3168
  public $kind;
3169
- protected $localeType = 'Google_Service_Blogger_UserLocale';
3170
  protected $localeDataType = '';
3171
  public $selfLink;
3172
  public $url;
@@ -3181,7 +3181,7 @@ class Google_Service_Blogger_User extends Google_Model
3181
  return $this->about;
3182
  }
3183
 
3184
- public function setBlogs(Google_Service_Blogger_UserBlogs $blogs)
3185
  {
3186
  $this->blogs = $blogs;
3187
  }
@@ -3231,7 +3231,7 @@ class Google_Service_Blogger_User extends Google_Model
3231
  return $this->kind;
3232
  }
3233
 
3234
- public function setLocale(Google_Service_Blogger_UserLocale $locale)
3235
  {
3236
  $this->locale = $locale;
3237
  }
@@ -3262,7 +3262,7 @@ class Google_Service_Blogger_User extends Google_Model
3262
  }
3263
  }
3264
 
3265
- class Google_Service_Blogger_UserBlogs extends Google_Model
3266
  {
3267
  public $selfLink;
3268
 
@@ -3277,7 +3277,7 @@ class Google_Service_Blogger_UserBlogs extends Google_Model
3277
  }
3278
  }
3279
 
3280
- class Google_Service_Blogger_UserLocale extends Google_Model
3281
  {
3282
  public $country;
3283
  public $language;
29
  *
30
  * @author Google, Inc.
31
  */
32
+ class GoogleGAL_Service_Blogger extends GoogleGAL_Service
33
  {
34
  /** Manage your Blogger account. */
35
  const BLOGGER = "https://www.googleapis.com/auth/blogger";
49
  /**
50
  * Constructs the internal representation of the Blogger service.
51
  *
52
+ * @param GoogleGAL_Client $client
53
  */
54
+ public function __construct(GoogleGAL_Client $client)
55
  {
56
  parent::__construct($client);
57
  $this->servicePath = 'blogger/v3/';
58
  $this->version = 'v3';
59
  $this->serviceName = 'blogger';
60
 
61
+ $this->blogUserInfos = new GoogleGAL_Service_Blogger_BlogUserInfos_Resource(
62
  $this,
63
  $this->serviceName,
64
  'blogUserInfos',
87
  )
88
  )
89
  );
90
+ $this->blogs = new GoogleGAL_Service_Blogger_Blogs_Resource(
91
  $this,
92
  $this->serviceName,
93
  'blogs',
152
  )
153
  )
154
  );
155
+ $this->comments = new GoogleGAL_Service_Blogger_Comments_Resource(
156
  $this,
157
  $this->serviceName,
158
  'comments',
340
  )
341
  )
342
  );
343
+ $this->pageViews = new GoogleGAL_Service_Blogger_PageViews_Resource(
344
  $this,
345
  $this->serviceName,
346
  'pageViews',
365
  )
366
  )
367
  );
368
+ $this->pages = new GoogleGAL_Service_Blogger_Pages_Resource(
369
  $this,
370
  $this->serviceName,
371
  'pages',
472
  )
473
  )
474
  );
475
+ $this->postUserInfos = new GoogleGAL_Service_Blogger_PostUserInfos_Resource(
476
  $this,
477
  $this->serviceName,
478
  'postUserInfos',
558
  )
559
  )
560
  );
561
+ $this->posts = new GoogleGAL_Service_Blogger_Posts_Resource(
562
  $this,
563
  $this->serviceName,
564
  'posts',
837
  )
838
  )
839
  );
840
+ $this->users = new GoogleGAL_Service_Blogger_Users_Resource(
841
  $this,
842
  $this->serviceName,
843
  'users',
865
  * The "blogUserInfos" collection of methods.
866
  * Typical usage is:
867
  * <code>
868
+ * $bloggerService = new GoogleGAL_Service_Blogger(...);
869
  * $blogUserInfos = $bloggerService->blogUserInfos;
870
  * </code>
871
  */
872
+ class GoogleGAL_Service_Blogger_BlogUserInfos_Resource extends GoogleGAL_Service_Resource
873
  {
874
 
875
  /**
884
  *
885
  * @opt_param string maxPosts
886
  * Maximum number of posts to pull back with the blog.
887
+ * @return GoogleGAL_Service_Blogger_BlogUserInfo
888
  */
889
  public function get($userId, $blogId, $optParams = array())
890
  {
891
  $params = array('userId' => $userId, 'blogId' => $blogId);
892
  $params = array_merge($params, $optParams);
893
+ return $this->call('get', array($params), "GoogleGAL_Service_Blogger_BlogUserInfo");
894
  }
895
  }
896
 
898
  * The "blogs" collection of methods.
899
  * Typical usage is:
900
  * <code>
901
+ * $bloggerService = new GoogleGAL_Service_Blogger(...);
902
  * $blogs = $bloggerService->blogs;
903
  * </code>
904
  */
905
+ class GoogleGAL_Service_Blogger_Blogs_Resource extends GoogleGAL_Service_Resource
906
  {
907
 
908
  /**
916
  * Maximum number of posts to pull back with the blog.
917
  * @opt_param string view
918
  * Access level with which to view the blogs. Note that some fields require elevated access.
919
+ * @return GoogleGAL_Service_Blogger_Blog
920
  */
921
  public function get($blogId, $optParams = array())
922
  {
923
  $params = array('blogId' => $blogId);
924
  $params = array_merge($params, $optParams);
925
+ return $this->call('get', array($params), "GoogleGAL_Service_Blogger_Blog");
926
  }
927
  /**
928
  * Retrieve a Blog by URL. (blogs.getByUrl)
933
  *
934
  * @opt_param string view
935
  * Access level with which to view the blogs. Note that some fields require elevated access.
936
+ * @return GoogleGAL_Service_Blogger_Blog
937
  */
938
  public function getByUrl($url, $optParams = array())
939
  {
940
  $params = array('url' => $url);
941
  $params = array_merge($params, $optParams);
942
+ return $this->call('getByUrl', array($params), "GoogleGAL_Service_Blogger_Blog");
943
  }
944
  /**
945
  * Retrieves a list of blogs, possibly filtered. (blogs.listByUser)
956
  * user has author level access. If no roles are specified, defaults to ADMIN and AUTHOR roles.
957
  * @opt_param string view
958
  * Access level with which to view the blogs. Note that some fields require elevated access.
959
+ * @return GoogleGAL_Service_Blogger_BlogList
960
  */
961
  public function listByUser($userId, $optParams = array())
962
  {
963
  $params = array('userId' => $userId);
964
  $params = array_merge($params, $optParams);
965
+ return $this->call('listByUser', array($params), "GoogleGAL_Service_Blogger_BlogList");
966
  }
967
  }
968
 
970
  * The "comments" collection of methods.
971
  * Typical usage is:
972
  * <code>
973
+ * $bloggerService = new GoogleGAL_Service_Blogger(...);
974
  * $comments = $bloggerService->comments;
975
  * </code>
976
  */
977
+ class GoogleGAL_Service_Blogger_Comments_Resource extends GoogleGAL_Service_Resource
978
  {
979
 
980
  /**
987
  * @param string $commentId
988
  * The ID of the comment to mark as not spam.
989
  * @param array $optParams Optional parameters.
990
+ * @return GoogleGAL_Service_Blogger_Comment
991
  */
992
  public function approve($blogId, $postId, $commentId, $optParams = array())
993
  {
994
  $params = array('blogId' => $blogId, 'postId' => $postId, 'commentId' => $commentId);
995
  $params = array_merge($params, $optParams);
996
+ return $this->call('approve', array($params), "GoogleGAL_Service_Blogger_Comment");
997
  }
998
  /**
999
  * Delete a comment by id. (comments.delete)
1027
  * Access level for the requested comment (default: READER). Note that some comments will require
1028
  * elevated permissions, for example comments where the parent posts which is in a draft state, or
1029
  * comments that are pending moderation.
1030
+ * @return GoogleGAL_Service_Blogger_Comment
1031
  */
1032
  public function get($blogId, $postId, $commentId, $optParams = array())
1033
  {
1034
  $params = array('blogId' => $blogId, 'postId' => $postId, 'commentId' => $commentId);
1035
  $params = array_merge($params, $optParams);
1036
+ return $this->call('get', array($params), "GoogleGAL_Service_Blogger_Comment");
1037
  }
1038
  /**
1039
  * Retrieves the comments for a post, possibly filtered. (comments.listComments)
1059
  * @opt_param string view
1060
  * Access level with which to view the returned result. Note that some fields require elevated
1061
  * access.
1062
+ * @return GoogleGAL_Service_Blogger_CommentList
1063
  */
1064
  public function listComments($blogId, $postId, $optParams = array())
1065
  {
1066
  $params = array('blogId' => $blogId, 'postId' => $postId);
1067
  $params = array_merge($params, $optParams);
1068
+ return $this->call('list', array($params), "GoogleGAL_Service_Blogger_CommentList");
1069
  }
1070
  /**
1071
  * Retrieves the comments for a blog, across all posts, possibly filtered.
1085
  * Continuation token if request is paged.
1086
  * @opt_param bool fetchBodies
1087
  * Whether the body content of the comments is included.
1088
+ * @return GoogleGAL_Service_Blogger_CommentList
1089
  */
1090
  public function listByBlog($blogId, $optParams = array())
1091
  {
1092
  $params = array('blogId' => $blogId);
1093
  $params = array_merge($params, $optParams);
1094
+ return $this->call('listByBlog', array($params), "GoogleGAL_Service_Blogger_CommentList");
1095
  }
1096
  /**
1097
  * Marks a comment as spam. (comments.markAsSpam)
1103
  * @param string $commentId
1104
  * The ID of the comment to mark as spam.
1105
  * @param array $optParams Optional parameters.
1106
+ * @return GoogleGAL_Service_Blogger_Comment
1107
  */
1108
  public function markAsSpam($blogId, $postId, $commentId, $optParams = array())
1109
  {
1110
  $params = array('blogId' => $blogId, 'postId' => $postId, 'commentId' => $commentId);
1111
  $params = array_merge($params, $optParams);
1112
+ return $this->call('markAsSpam', array($params), "GoogleGAL_Service_Blogger_Comment");
1113
  }
1114
  /**
1115
  * Removes the content of a comment. (comments.removeContent)
1121
  * @param string $commentId
1122
  * The ID of the comment to delete content from.
1123
  * @param array $optParams Optional parameters.
1124
+ * @return GoogleGAL_Service_Blogger_Comment
1125
  */
1126
  public function removeContent($blogId, $postId, $commentId, $optParams = array())
1127
  {
1128
  $params = array('blogId' => $blogId, 'postId' => $postId, 'commentId' => $commentId);
1129
  $params = array_merge($params, $optParams);
1130
+ return $this->call('removeContent', array($params), "GoogleGAL_Service_Blogger_Comment");
1131
  }
1132
  }
1133
 
1135
  * The "pageViews" collection of methods.
1136
  * Typical usage is:
1137
  * <code>
1138
+ * $bloggerService = new GoogleGAL_Service_Blogger(...);
1139
  * $pageViews = $bloggerService->pageViews;
1140
  * </code>
1141
  */
1142
+ class GoogleGAL_Service_Blogger_PageViews_Resource extends GoogleGAL_Service_Resource
1143
  {
1144
 
1145
  /**
1151
  *
1152
  * @opt_param string range
1153
  *
1154
+ * @return GoogleGAL_Service_Blogger_Pageviews
1155
  */
1156
  public function get($blogId, $optParams = array())
1157
  {
1158
  $params = array('blogId' => $blogId);
1159
  $params = array_merge($params, $optParams);
1160
+ return $this->call('get', array($params), "GoogleGAL_Service_Blogger_Pageviews");
1161
  }
1162
  }
1163
 
1165
  * The "pages" collection of methods.
1166
  * Typical usage is:
1167
  * <code>
1168
+ * $bloggerService = new GoogleGAL_Service_Blogger(...);
1169
  * $pages = $bloggerService->pages;
1170
  * </code>
1171
  */
1172
+ class GoogleGAL_Service_Blogger_Pages_Resource extends GoogleGAL_Service_Resource
1173
  {
1174
 
1175
  /**
1198
  *
1199
  * @opt_param string view
1200
  *
1201
+ * @return GoogleGAL_Service_Blogger_Page
1202
  */
1203
  public function get($blogId, $pageId, $optParams = array())
1204
  {
1205
  $params = array('blogId' => $blogId, 'pageId' => $pageId);
1206
  $params = array_merge($params, $optParams);
1207
+ return $this->call('get', array($params), "GoogleGAL_Service_Blogger_Page");
1208
  }
1209
  /**
1210
  * Add a page. (pages.insert)
1211
  *
1212
  * @param string $blogId
1213
  * ID of the blog to add the page to.
1214
+ * @param GoogleGAL_Page $postBody
1215
  * @param array $optParams Optional parameters.
1216
+ * @return GoogleGAL_Service_Blogger_Page
1217
  */
1218
+ public function insert($blogId, GoogleGAL_Service_Blogger_Page $postBody, $optParams = array())
1219
  {
1220
  $params = array('blogId' => $blogId, 'postBody' => $postBody);
1221
  $params = array_merge($params, $optParams);
1222
+ return $this->call('insert', array($params), "GoogleGAL_Service_Blogger_Page");
1223
  }
1224
  /**
1225
  * Retrieves the pages for a blog, optionally including non-LIVE statuses.
1236
  * @opt_param string view
1237
  * Access level with which to view the returned result. Note that some fields require elevated
1238
  * access.
1239
+ * @return GoogleGAL_Service_Blogger_PageList
1240
  */
1241
  public function listPages($blogId, $optParams = array())
1242
  {
1243
  $params = array('blogId' => $blogId);
1244
  $params = array_merge($params, $optParams);
1245
+ return $this->call('list', array($params), "GoogleGAL_Service_Blogger_PageList");
1246
  }
1247
  /**
1248
  * Update a page. This method supports patch semantics. (pages.patch)
1251
  * The ID of the Blog.
1252
  * @param string $pageId
1253
  * The ID of the Page.
1254
+ * @param GoogleGAL_Page $postBody
1255
  * @param array $optParams Optional parameters.
1256
+ * @return GoogleGAL_Service_Blogger_Page
1257
  */
1258
+ public function patch($blogId, $pageId, GoogleGAL_Service_Blogger_Page $postBody, $optParams = array())
1259
  {
1260
  $params = array('blogId' => $blogId, 'pageId' => $pageId, 'postBody' => $postBody);
1261
  $params = array_merge($params, $optParams);
1262
+ return $this->call('patch', array($params), "GoogleGAL_Service_Blogger_Page");
1263
  }
1264
  /**
1265
  * Update a page. (pages.update)
1268
  * The ID of the Blog.
1269
  * @param string $pageId
1270
  * The ID of the Page.
1271
+ * @param GoogleGAL_Page $postBody
1272
  * @param array $optParams Optional parameters.
1273
+ * @return GoogleGAL_Service_Blogger_Page
1274
  */
1275
+ public function update($blogId, $pageId, GoogleGAL_Service_Blogger_Page $postBody, $optParams = array())
1276
  {
1277
  $params = array('blogId' => $blogId, 'pageId' => $pageId, 'postBody' => $postBody);
1278
  $params = array_merge($params, $optParams);
1279
+ return $this->call('update', array($params), "GoogleGAL_Service_Blogger_Page");
1280
  }
1281
  }
1282
 
1284
  * The "postUserInfos" collection of methods.
1285
  * Typical usage is:
1286
  * <code>
1287
+ * $bloggerService = new GoogleGAL_Service_Blogger(...);
1288
  * $postUserInfos = $bloggerService->postUserInfos;
1289
  * </code>
1290
  */
1291
+ class GoogleGAL_Service_Blogger_PostUserInfos_Resource extends GoogleGAL_Service_Resource
1292
  {
1293
 
1294
  /**
1307
  *
1308
  * @opt_param string maxComments
1309
  * Maximum number of comments to pull back on a post.
1310
+ * @return GoogleGAL_Service_Blogger_PostUserInfo
1311
  */
1312
  public function get($userId, $blogId, $postId, $optParams = array())
1313
  {
1314
  $params = array('userId' => $userId, 'blogId' => $blogId, 'postId' => $postId);
1315
  $params = array_merge($params, $optParams);
1316
+ return $this->call('get', array($params), "GoogleGAL_Service_Blogger_PostUserInfo");
1317
  }
1318
  /**
1319
  * Retrieves a list of post and post user info pairs, possibly filtered. The
1346
  * @opt_param string view
1347
  * Access level with which to view the returned result. Note that some fields require elevated
1348
  * access.
1349
+ * @return GoogleGAL_Service_Blogger_PostUserInfosList
1350
  */
1351
  public function listPostUserInfos($userId, $blogId, $optParams = array())
1352
  {
1353
  $params = array('userId' => $userId, 'blogId' => $blogId);
1354
  $params = array_merge($params, $optParams);
1355
+ return $this->call('list', array($params), "GoogleGAL_Service_Blogger_PostUserInfosList");
1356
  }
1357
  }
1358
 
1360
  * The "posts" collection of methods.
1361
  * Typical usage is:
1362
  * <code>
1363
+ * $bloggerService = new GoogleGAL_Service_Blogger(...);
1364
  * $posts = $bloggerService->posts;
1365
  * </code>
1366
  */
1367
+ class GoogleGAL_Service_Blogger_Posts_Resource extends GoogleGAL_Service_Resource
1368
  {
1369
 
1370
  /**
1401
  * @opt_param string view
1402
  * Access level with which to view the returned result. Note that some fields require elevated
1403
  * access.
1404
+ * @return GoogleGAL_Service_Blogger_Post
1405
  */
1406
  public function get($blogId, $postId, $optParams = array())
1407
  {
1408
  $params = array('blogId' => $blogId, 'postId' => $postId);
1409
  $params = array_merge($params, $optParams);
1410
+ return $this->call('get', array($params), "GoogleGAL_Service_Blogger_Post");
1411
  }
1412
  /**
1413
  * Retrieve a Post by Path. (posts.getByPath)
1423
  * @opt_param string view
1424
  * Access level with which to view the returned result. Note that some fields require elevated
1425
  * access.
1426
+ * @return GoogleGAL_Service_Blogger_Post
1427
  */
1428
  public function getByPath($blogId, $path, $optParams = array())
1429
  {
1430
  $params = array('blogId' => $blogId, 'path' => $path);
1431
  $params = array_merge($params, $optParams);
1432
+ return $this->call('getByPath', array($params), "GoogleGAL_Service_Blogger_Post");
1433
  }
1434
  /**
1435
  * Add a post. (posts.insert)
1436
  *
1437
  * @param string $blogId
1438
  * ID of the blog to add the post to.
1439
+ * @param GoogleGAL_Post $postBody
1440
  * @param array $optParams Optional parameters.
1441
  *
1442
  * @opt_param bool fetchImages
1445
  * Whether to create the post as a draft (default: false).
1446
  * @opt_param bool fetchBody
1447
  * Whether the body content of the post is included with the result (default: true).
1448
+ * @return GoogleGAL_Service_Blogger_Post
1449
  */
1450
+ public function insert($blogId, GoogleGAL_Service_Blogger_Post $postBody, $optParams = array())
1451
  {
1452
  $params = array('blogId' => $blogId, 'postBody' => $postBody);
1453
  $params = array_merge($params, $optParams);
1454
+ return $this->call('insert', array($params), "GoogleGAL_Service_Blogger_Post");
1455
  }
1456
  /**
1457
  * Retrieves a list of posts, possibly filtered. (posts.listPosts)
1482
  * @opt_param string view
1483
  * Access level with which to view the returned result. Note that some fields require escalated
1484
  * access.
1485
+ * @return GoogleGAL_Service_Blogger_PostList
1486
  */
1487
  public function listPosts($blogId, $optParams = array())
1488
  {
1489
  $params = array('blogId' => $blogId);
1490
  $params = array_merge($params, $optParams);
1491
+ return $this->call('list', array($params), "GoogleGAL_Service_Blogger_PostList");
1492
  }
1493
  /**
1494
  * Update a post. This method supports patch semantics. (posts.patch)
1497
  * The ID of the Blog.
1498
  * @param string $postId
1499
  * The ID of the Post.
1500
+ * @param GoogleGAL_Post $postBody
1501
  * @param array $optParams Optional parameters.
1502
  *
1503
  * @opt_param bool revert
1510
  * Maximum number of comments to retrieve with the returned post.
1511
  * @opt_param bool fetchImages
1512
  * Whether image URL metadata for each post is included in the returned result (default: false).
1513
+ * @return GoogleGAL_Service_Blogger_Post
1514
  */
1515
+ public function patch($blogId, $postId, GoogleGAL_Service_Blogger_Post $postBody, $optParams = array())
1516
  {
1517
  $params = array('blogId' => $blogId, 'postId' => $postId, 'postBody' => $postBody);
1518
  $params = array_merge($params, $optParams);
1519
+ return $this->call('patch', array($params), "GoogleGAL_Service_Blogger_Post");
1520
  }
1521
  /**
1522
  * Publish a draft post. (posts.publish)
1529
  *
1530
  * @opt_param string publishDate
1531
  * The date and time to schedule the publishing of the Blog.
1532
+ * @return GoogleGAL_Service_Blogger_Post
1533
  */
1534
  public function publish($blogId, $postId, $optParams = array())
1535
  {
1536
  $params = array('blogId' => $blogId, 'postId' => $postId);
1537
  $params = array_merge($params, $optParams);
1538
+ return $this->call('publish', array($params), "GoogleGAL_Service_Blogger_Post");
1539
  }
1540
  /**
1541
  * Revert a published or scheduled post to draft state. (posts.revert)
1545
  * @param string $postId
1546
  * The ID of the Post.
1547
  * @param array $optParams Optional parameters.
1548
+ * @return GoogleGAL_Service_Blogger_Post
1549
  */
1550
  public function revert($blogId, $postId, $optParams = array())
1551
  {
1552
  $params = array('blogId' => $blogId, 'postId' => $postId);
1553
  $params = array_merge($params, $optParams);
1554
+ return $this->call('revert', array($params), "GoogleGAL_Service_Blogger_Post");
1555
  }
1556
  /**
1557
  * Search for a post. (posts.search)
1567
  * @opt_param bool fetchBodies
1568
  * Whether the body content of posts is included (default: true). This should be set to false when
1569
  * the post bodies are not required, to help minimize traffic.
1570
+ * @return GoogleGAL_Service_Blogger_PostList
1571
  */
1572
  public function search($blogId, $q, $optParams = array())
1573
  {
1574
  $params = array('blogId' => $blogId, 'q' => $q);
1575
  $params = array_merge($params, $optParams);
1576
+ return $this->call('search', array($params), "GoogleGAL_Service_Blogger_PostList");
1577
  }
1578
  /**
1579
  * Update a post. (posts.update)
1582
  * The ID of the Blog.
1583
  * @param string $postId
1584
  * The ID of the Post.
1585
+ * @param GoogleGAL_Post $postBody
1586
  * @param array $optParams Optional parameters.
1587
  *
1588
  * @opt_param bool revert
1595
  * Maximum number of comments to retrieve with the returned post.
1596
  * @opt_param bool fetchImages
1597
  * Whether image URL metadata for each post is included in the returned result (default: false).
1598
+ * @return GoogleGAL_Service_Blogger_Post
1599
  */
1600
+ public function update($blogId, $postId, GoogleGAL_Service_Blogger_Post $postBody, $optParams = array())
1601
  {
1602
  $params = array('blogId' => $blogId, 'postId' => $postId, 'postBody' => $postBody);
1603
  $params = array_merge($params, $optParams);
1604
+ return $this->call('update', array($params), "GoogleGAL_Service_Blogger_Post");
1605
  }
1606
  }
1607
 
1609
  * The "users" collection of methods.
1610
  * Typical usage is:
1611
  * <code>
1612
+ * $bloggerService = new GoogleGAL_Service_Blogger(...);
1613
  * $users = $bloggerService->users;
1614
  * </code>
1615
  */
1616
+ class GoogleGAL_Service_Blogger_Users_Resource extends GoogleGAL_Service_Resource
1617
  {
1618
 
1619
  /**
1622
  * @param string $userId
1623
  * The ID of the user to get.
1624
  * @param array $optParams Optional parameters.
1625
+ * @return GoogleGAL_Service_Blogger_User
1626
  */
1627
  public function get($userId, $optParams = array())
1628
  {
1629
  $params = array('userId' => $userId);
1630
  $params = array_merge($params, $optParams);
1631
+ return $this->call('get', array($params), "GoogleGAL_Service_Blogger_User");
1632
  }
1633
  }
1634
 
1635
 
1636
 
1637
 
1638
+ class GoogleGAL_Service_Blogger_Blog extends GoogleGAL_Model
1639
  {
1640
  public $customMetaData;
1641
  public $description;
1642
  public $id;
1643
  public $kind;
1644
+ protected $localeType = 'GoogleGAL_Service_Blogger_BlogLocale';
1645
  protected $localeDataType = '';
1646
  public $name;
1647
+ protected $pagesType = 'GoogleGAL_Service_Blogger_BlogPages';
1648
  protected $pagesDataType = '';
1649
+ protected $postsType = 'GoogleGAL_Service_Blogger_BlogPosts';
1650
  protected $postsDataType = '';
1651
  public $published;
1652
  public $selfLink;
1693
  return $this->kind;
1694
  }
1695
 
1696
+ public function setLocale(GoogleGAL_Service_Blogger_BlogLocale $locale)
1697
  {
1698
  $this->locale = $locale;
1699
  }
1713
  return $this->name;
1714
  }
1715
 
1716
+ public function setPages(GoogleGAL_Service_Blogger_BlogPages $pages)
1717
  {
1718
  $this->pages = $pages;
1719
  }
1723
  return $this->pages;
1724
  }
1725
 
1726
+ public function setPosts(GoogleGAL_Service_Blogger_BlogPosts $posts)
1727
  {
1728
  $this->posts = $posts;
1729
  }
1774
  }
1775
  }
1776
 
1777
+ class GoogleGAL_Service_Blogger_BlogList extends GoogleGAL_Collection
1778
  {
1779
+ protected $blogUserInfosType = 'GoogleGAL_Service_Blogger_BlogUserInfo';
1780
  protected $blogUserInfosDataType = 'array';
1781
+ protected $itemsType = 'GoogleGAL_Service_Blogger_Blog';
1782
  protected $itemsDataType = 'array';
1783
  public $kind;
1784
 
1813
  }
1814
  }
1815
 
1816
+ class GoogleGAL_Service_Blogger_BlogLocale extends GoogleGAL_Model
1817
  {
1818
  public $country;
1819
  public $language;
1850
  }
1851
  }
1852
 
1853
+ class GoogleGAL_Service_Blogger_BlogPages extends GoogleGAL_Model
1854
  {
1855
  public $selfLink;
1856
  public $totalItems;
1876
  }
1877
  }
1878
 
1879
+ class GoogleGAL_Service_Blogger_BlogPerUserInfo extends GoogleGAL_Model
1880
  {
1881
  public $blogId;
1882
  public $hasAdminAccess;
1946
  }
1947
  }
1948
 
1949
+ class GoogleGAL_Service_Blogger_BlogPosts extends GoogleGAL_Collection
1950
  {
1951
+ protected $itemsType = 'GoogleGAL_Service_Blogger_Post';
1952
  protected $itemsDataType = 'array';
1953
  public $selfLink;
1954
  public $totalItems;
1984
  }
1985
  }
1986
 
1987
+ class GoogleGAL_Service_Blogger_BlogUserInfo extends GoogleGAL_Model
1988
  {
1989
+ protected $blogType = 'GoogleGAL_Service_Blogger_Blog';
1990
  protected $blogDataType = '';
1991
+ protected $blogUserInfoType = 'GoogleGAL_Service_Blogger_BlogPerUserInfo';
1992
  protected $blogUserInfoDataType = '';
1993
  public $kind;
1994
 
1995
+ public function setBlog(GoogleGAL_Service_Blogger_Blog $blog)
1996
  {
1997
  $this->blog = $blog;
1998
  }
2002
  return $this->blog;
2003
  }
2004
 
2005
+ public function setBlogUserInfo(GoogleGAL_Service_Blogger_BlogPerUserInfo $blogUserInfo)
2006
  {
2007
  $this->blogUserInfo = $blogUserInfo;
2008
  }
2023
  }
2024
  }
2025
 
2026
+ class GoogleGAL_Service_Blogger_Comment extends GoogleGAL_Model
2027
  {
2028
+ protected $authorType = 'GoogleGAL_Service_Blogger_CommentAuthor';
2029
  protected $authorDataType = '';
2030
+ protected $blogType = 'GoogleGAL_Service_Blogger_CommentBlog';
2031
  protected $blogDataType = '';
2032
  public $content;
2033
  public $id;
2034
+ protected $inReplyToType = 'GoogleGAL_Service_Blogger_CommentInReplyTo';
2035
  protected $inReplyToDataType = '';
2036
  public $kind;
2037
+ protected $postType = 'GoogleGAL_Service_Blogger_CommentPost';
2038
  protected $postDataType = '';
2039
  public $published;
2040
  public $selfLink;
2041
  public $status;
2042
  public $updated;
2043
 
2044
+ public function setAuthor(GoogleGAL_Service_Blogger_CommentAuthor $author)
2045
  {
2046
  $this->author = $author;
2047
  }
2051
  return $this->author;
2052
  }
2053
 
2054
+ public function setBlog(GoogleGAL_Service_Blogger_CommentBlog $blog)
2055
  {
2056
  $this->blog = $blog;
2057
  }
2081
  return $this->id;
2082
  }
2083
 
2084
+ public function setInReplyTo(GoogleGAL_Service_Blogger_CommentInReplyTo $inReplyTo)
2085
  {
2086
  $this->inReplyTo = $inReplyTo;
2087
  }
2101
  return $this->kind;
2102
  }
2103
 
2104
+ public function setPost(GoogleGAL_Service_Blogger_CommentPost $post)
2105
  {
2106
  $this->post = $post;
2107
  }
2152
  }
2153
  }
2154
 
2155
+ class GoogleGAL_Service_Blogger_CommentAuthor extends GoogleGAL_Model
2156
  {
2157
  public $displayName;
2158
  public $id;
2159
+ protected $imageType = 'GoogleGAL_Service_Blogger_CommentAuthorImage';
2160
  protected $imageDataType = '';
2161
  public $url;
2162
 
2180
  return $this->id;
2181
  }
2182
 
2183
+ public function setImage(GoogleGAL_Service_Blogger_CommentAuthorImage $image)
2184
  {
2185
  $this->image = $image;
2186
  }
2201
  }
2202
  }
2203
 
2204
+ class GoogleGAL_Service_Blogger_CommentAuthorImage extends GoogleGAL_Model
2205
  {
2206
  public $url;
2207
 
2216
  }
2217
  }
2218
 
2219
+ class GoogleGAL_Service_Blogger_CommentBlog extends GoogleGAL_Model
2220
  {
2221
  public $id;
2222
 
2231
  }
2232
  }
2233
 
2234
+ class GoogleGAL_Service_Blogger_CommentInReplyTo extends GoogleGAL_Model
2235
  {
2236
  public $id;
2237
 
2246
  }
2247
  }
2248
 
2249
+ class GoogleGAL_Service_Blogger_CommentList extends GoogleGAL_Collection
2250
  {
2251
+ protected $itemsType = 'GoogleGAL_Service_Blogger_Comment';
2252
  protected $itemsDataType = 'array';
2253
  public $kind;
2254
  public $nextPageToken;
2295
  }
2296
  }
2297
 
2298
+ class GoogleGAL_Service_Blogger_CommentPost extends GoogleGAL_Model
2299
  {
2300
  public $id;
2301
 
2310
  }
2311
  }
2312
 
2313
+ class GoogleGAL_Service_Blogger_Page extends GoogleGAL_Model
2314
  {
2315
+ protected $authorType = 'GoogleGAL_Service_Blogger_PageAuthor';
2316
  protected $authorDataType = '';
2317
+ protected $blogType = 'GoogleGAL_Service_Blogger_PageBlog';
2318
  protected $blogDataType = '';
2319
  public $content;
2320
  public $id;
2326
  public $updated;
2327
  public $url;
2328
 
2329
+ public function setAuthor(GoogleGAL_Service_Blogger_PageAuthor $author)
2330
  {
2331
  $this->author = $author;
2332
  }
2336
  return $this->author;
2337
  }
2338
 
2339
+ public function setBlog(GoogleGAL_Service_Blogger_PageBlog $blog)
2340
  {
2341
  $this->blog = $blog;
2342
  }
2437
  }
2438
  }
2439
 
2440
+ class GoogleGAL_Service_Blogger_PageAuthor extends GoogleGAL_Model
2441
  {
2442
  public $displayName;
2443
  public $id;
2444
+ protected $imageType = 'GoogleGAL_Service_Blogger_PageAuthorImage';
2445
  protected $imageDataType = '';
2446
  public $url;
2447
 
2465
  return $this->id;
2466
  }
2467
 
2468
+ public function setImage(GoogleGAL_Service_Blogger_PageAuthorImage $image)
2469
  {
2470
  $this->image = $image;
2471
  }
2486
  }
2487
  }
2488
 
2489
+ class GoogleGAL_Service_Blogger_PageAuthorImage extends GoogleGAL_Model
2490
  {
2491
  public $url;
2492
 
2501
  }
2502
  }
2503
 
2504
+ class GoogleGAL_Service_Blogger_PageBlog extends GoogleGAL_Model
2505
  {
2506
  public $id;
2507
 
2516
  }
2517
  }
2518
 
2519
+ class GoogleGAL_Service_Blogger_PageList extends GoogleGAL_Collection
2520
  {
2521
+ protected $itemsType = 'GoogleGAL_Service_Blogger_Page';
2522
  protected $itemsDataType = 'array';
2523
  public $kind;
2524
 
2543
  }
2544
  }
2545
 
2546
+ class GoogleGAL_Service_Blogger_Pageviews extends GoogleGAL_Collection
2547
  {
2548
  public $blogId;
2549
+ protected $countsType = 'GoogleGAL_Service_Blogger_PageviewsCounts';
2550
  protected $countsDataType = 'array';
2551
  public $kind;
2552
 
2581
  }
2582
  }
2583
 
2584
+ class GoogleGAL_Service_Blogger_PageviewsCounts extends GoogleGAL_Model
2585
  {
2586
  public $count;
2587
  public $timeRange;
2607
  }
2608
  }
2609
 
2610
+ class GoogleGAL_Service_Blogger_Post extends GoogleGAL_Collection
2611
  {
2612
+ protected $authorType = 'GoogleGAL_Service_Blogger_PostAuthor';
2613
  protected $authorDataType = '';
2614
+ protected $blogType = 'GoogleGAL_Service_Blogger_PostBlog';
2615
  protected $blogDataType = '';
2616
  public $content;
2617
  public $customMetaData;
2618
  public $id;
2619
+ protected $imagesType = 'GoogleGAL_Service_Blogger_PostImages';
2620
  protected $imagesDataType = 'array';
2621
  public $kind;
2622
  public $labels;
2623
+ protected $locationType = 'GoogleGAL_Service_Blogger_PostLocation';
2624
  protected $locationDataType = '';
2625
  public $published;
2626
+ protected $repliesType = 'GoogleGAL_Service_Blogger_PostReplies';
2627
  protected $repliesDataType = '';
2628
  public $selfLink;
2629
  public $status;
2632
  public $updated;
2633
  public $url;
2634
 
2635
+ public function setAuthor(GoogleGAL_Service_Blogger_PostAuthor $author)
2636
  {
2637
  $this->author = $author;
2638
  }
2642
  return $this->author;
2643
  }
2644
 
2645
+ public function setBlog(GoogleGAL_Service_Blogger_PostBlog $blog)
2646
  {
2647
  $this->blog = $blog;
2648
  }
2712
  return $this->labels;
2713
  }
2714
 
2715
+ public function setLocation(GoogleGAL_Service_Blogger_PostLocation $location)
2716
  {
2717
  $this->location = $location;
2718
  }
2732
  return $this->published;
2733
  }
2734
 
2735
+ public function setReplies(GoogleGAL_Service_Blogger_PostReplies $replies)
2736
  {
2737
  $this->replies = $replies;
2738
  }
2803
  }
2804
  }
2805
 
2806
+ class GoogleGAL_Service_Blogger_PostAuthor extends GoogleGAL_Model
2807
  {
2808
  public $displayName;
2809
  public $id;
2810
+ protected $imageType = 'GoogleGAL_Service_Blogger_PostAuthorImage';
2811
  protected $imageDataType = '';
2812
  public $url;
2813
 
2831
  return $this->id;
2832
  }
2833
 
2834
+ public function setImage(GoogleGAL_Service_Blogger_PostAuthorImage $image)
2835
  {
2836
  $this->image = $image;
2837
  }
2852
  }
2853
  }
2854
 
2855
+ class GoogleGAL_Service_Blogger_PostAuthorImage extends GoogleGAL_Model
2856
  {
2857
  public $url;
2858
 
2867
  }
2868
  }
2869
 
2870
+ class GoogleGAL_Service_Blogger_PostBlog extends GoogleGAL_Model
2871
  {
2872
  public $id;
2873
 
2882
  }
2883
  }
2884
 
2885
+ class GoogleGAL_Service_Blogger_PostImages extends GoogleGAL_Model
2886
  {
2887
  public $url;
2888
 
2897
  }
2898
  }
2899
 
2900
+ class GoogleGAL_Service_Blogger_PostList extends GoogleGAL_Collection
2901
  {
2902
+ protected $itemsType = 'GoogleGAL_Service_Blogger_Post';
2903
  protected $itemsDataType = 'array';
2904
  public $kind;
2905
  public $nextPageToken;
2935
  }
2936
  }
2937
 
2938
+ class GoogleGAL_Service_Blogger_PostLocation extends GoogleGAL_Model
2939
  {
2940
  public $lat;
2941
  public $lng;
2983
  }
2984
  }
2985
 
2986
+ class GoogleGAL_Service_Blogger_PostPerUserInfo extends GoogleGAL_Model
2987
  {
2988
  public $blogId;
2989
  public $hasEditAccess;
3042
  }
3043
  }
3044
 
3045
+ class GoogleGAL_Service_Blogger_PostReplies extends GoogleGAL_Collection
3046
  {
3047
+ protected $itemsType = 'GoogleGAL_Service_Blogger_Comment';
3048
  protected $itemsDataType = 'array';
3049
  public $selfLink;
3050
  public $totalItems;
3080
  }
3081
  }
3082
 
3083
+ class GoogleGAL_Service_Blogger_PostUserInfo extends GoogleGAL_Model
3084
  {
3085
  public $kind;
3086
+ protected $postType = 'GoogleGAL_Service_Blogger_Post';
3087
  protected $postDataType = '';
3088
+ protected $postUserInfoType = 'GoogleGAL_Service_Blogger_PostPerUserInfo';
3089
  protected $postUserInfoDataType = '';
3090
 
3091
  public function setKind($kind)
3098
  return $this->kind;
3099
  }
3100
 
3101
+ public function setPost(GoogleGAL_Service_Blogger_Post $post)
3102
  {
3103
  $this->post = $post;
3104
  }
3108
  return $this->post;
3109
  }
3110
 
3111
+ public function setPostUserInfo(GoogleGAL_Service_Blogger_PostPerUserInfo $postUserInfo)
3112
  {
3113
  $this->postUserInfo = $postUserInfo;
3114
  }
3119
  }
3120
  }
3121
 
3122
+ class GoogleGAL_Service_Blogger_PostUserInfosList extends GoogleGAL_Collection
3123
  {
3124
+ protected $itemsType = 'GoogleGAL_Service_Blogger_PostUserInfo';
3125
  protected $itemsDataType = 'array';
3126
  public $kind;
3127
  public $nextPageToken;
3157
  }
3158
  }
3159
 
3160
+ class GoogleGAL_Service_Blogger_User extends GoogleGAL_Model
3161
  {
3162
  public $about;
3163
+ protected $blogsType = 'GoogleGAL_Service_Blogger_UserBlogs';
3164
  protected $blogsDataType = '';
3165
  public $created;
3166
  public $displayName;
3167
  public $id;
3168
  public $kind;
3169
+ protected $localeType = 'GoogleGAL_Service_Blogger_UserLocale';
3170
  protected $localeDataType = '';
3171
  public $selfLink;
3172
  public $url;
3181
  return $this->about;
3182
  }
3183
 
3184
+ public function setBlogs(GoogleGAL_Service_Blogger_UserBlogs $blogs)
3185
  {
3186
  $this->blogs = $blogs;
3187
  }
3231
  return $this->kind;
3232
  }
3233
 
3234
+ public function setLocale(GoogleGAL_Service_Blogger_UserLocale $locale)
3235
  {
3236
  $this->locale = $locale;
3237
  }
3262
  }
3263
  }
3264
 
3265
+ class GoogleGAL_Service_Blogger_UserBlogs extends GoogleGAL_Model
3266
  {
3267
  public $selfLink;
3268
 
3277
  }
3278
  }
3279
 
3280
+ class GoogleGAL_Service_Blogger_UserLocale extends GoogleGAL_Model
3281
  {
3282
  public $country;
3283
  public $language;
core/Google/Service/Books.php CHANGED
@@ -29,7 +29,7 @@
29
  *
30
  * @author Google, Inc.
31
  */
32
- class Google_Service_Books extends Google_Service
33
  {
34
  /** Manage your books. */
35
  const BOOKS = "https://www.googleapis.com/auth/books";
@@ -55,16 +55,16 @@ class Google_Service_Books extends Google_Service
55
  /**
56
  * Constructs the internal representation of the Books service.
57
  *
58
- * @param Google_Client $client
59
  */
60
- public function __construct(Google_Client $client)
61
  {
62
  parent::__construct($client);
63
  $this->servicePath = 'books/v1/';
64
  $this->version = 'v1';
65
  $this->serviceName = 'books';
66
 
67
- $this->bookshelves = new Google_Service_Books_Bookshelves_Resource(
68
  $this,
69
  $this->serviceName,
70
  'bookshelves',
@@ -107,7 +107,7 @@ class Google_Service_Books extends Google_Service
107
  )
108
  )
109
  );
110
- $this->bookshelves_volumes = new Google_Service_Books_BookshelvesVolumes_Resource(
111
  $this,
112
  $this->serviceName,
113
  'volumes',
@@ -148,7 +148,7 @@ class Google_Service_Books extends Google_Service
148
  )
149
  )
150
  );
151
- $this->cloudloading = new Google_Service_Books_Cloudloading_Resource(
152
  $this,
153
  $this->serviceName,
154
  'cloudloading',
@@ -193,7 +193,7 @@ class Google_Service_Books extends Google_Service
193
  )
194
  )
195
  );
196
- $this->layers = new Google_Service_Books_Layers_Resource(
197
  $this,
198
  $this->serviceName,
199
  'layers',
@@ -252,7 +252,7 @@ class Google_Service_Books extends Google_Service
252
  )
253
  )
254
  );
255
- $this->layers_annotationData = new Google_Service_Books_LayersAnnotationData_Resource(
256
  $this,
257
  $this->serviceName,
258
  'annotationData',
@@ -372,7 +372,7 @@ class Google_Service_Books extends Google_Service
372
  )
373
  )
374
  );
375
- $this->layers_volumeAnnotations = new Google_Service_Books_LayersVolumeAnnotations_Resource(
376
  $this,
377
  $this->serviceName,
378
  'volumeAnnotations',
@@ -478,7 +478,7 @@ class Google_Service_Books extends Google_Service
478
  )
479
  )
480
  );
481
- $this->myconfig = new Google_Service_Books_Myconfig_Resource(
482
  $this,
483
  $this->serviceName,
484
  'myconfig',
@@ -583,7 +583,7 @@ class Google_Service_Books extends Google_Service
583
  )
584
  )
585
  );
586
- $this->mylibrary_annotations = new Google_Service_Books_MylibraryAnnotations_Resource(
587
  $this,
588
  $this->serviceName,
589
  'annotations',
@@ -715,7 +715,7 @@ class Google_Service_Books extends Google_Service
715
  )
716
  )
717
  );
718
- $this->mylibrary_bookshelves = new Google_Service_Books_MylibraryBookshelves_Resource(
719
  $this,
720
  $this->serviceName,
721
  'bookshelves',
@@ -824,7 +824,7 @@ class Google_Service_Books extends Google_Service
824
  )
825
  )
826
  );
827
- $this->mylibrary_bookshelves_volumes = new Google_Service_Books_MylibraryBookshelvesVolumes_Resource(
828
  $this,
829
  $this->serviceName,
830
  'volumes',
@@ -872,7 +872,7 @@ class Google_Service_Books extends Google_Service
872
  )
873
  )
874
  );
875
- $this->mylibrary_readingpositions = new Google_Service_Books_MylibraryReadingpositions_Resource(
876
  $this,
877
  $this->serviceName,
878
  'readingpositions',
@@ -936,7 +936,7 @@ class Google_Service_Books extends Google_Service
936
  )
937
  )
938
  );
939
- $this->volumes = new Google_Service_Books_Volumes_Resource(
940
  $this,
941
  $this->serviceName,
942
  'volumes',
@@ -1030,7 +1030,7 @@ class Google_Service_Books extends Google_Service
1030
  )
1031
  )
1032
  );
1033
- $this->volumes_associated = new Google_Service_Books_VolumesAssociated_Resource(
1034
  $this,
1035
  $this->serviceName,
1036
  'associated',
@@ -1062,7 +1062,7 @@ class Google_Service_Books extends Google_Service
1062
  )
1063
  )
1064
  );
1065
- $this->volumes_mybooks = new Google_Service_Books_VolumesMybooks_Resource(
1066
  $this,
1067
  $this->serviceName,
1068
  'mybooks',
@@ -1103,7 +1103,7 @@ class Google_Service_Books extends Google_Service
1103
  )
1104
  )
1105
  );
1106
- $this->volumes_recommended = new Google_Service_Books_VolumesRecommended_Resource(
1107
  $this,
1108
  $this->serviceName,
1109
  'recommended',
@@ -1149,7 +1149,7 @@ class Google_Service_Books extends Google_Service
1149
  )
1150
  )
1151
  );
1152
- $this->volumes_useruploaded = new Google_Service_Books_VolumesUseruploaded_Resource(
1153
  $this,
1154
  $this->serviceName,
1155
  'useruploaded',
@@ -1198,11 +1198,11 @@ class Google_Service_Books extends Google_Service
1198
  * The "bookshelves" collection of methods.
1199
  * Typical usage is:
1200
  * <code>
1201
- * $booksService = new Google_Service_Books(...);
1202
  * $bookshelves = $booksService->bookshelves;
1203
  * </code>
1204
  */
1205
- class Google_Service_Books_Bookshelves_Resource extends Google_Service_Resource
1206
  {
1207
 
1208
  /**
@@ -1217,13 +1217,13 @@ class Google_Service_Books_Bookshelves_Resource extends Google_Service_Resource
1217
  *
1218
  * @opt_param string source
1219
  * String to identify the originator of this request.
1220
- * @return Google_Service_Books_Bookshelf
1221
  */
1222
  public function get($userId, $shelf, $optParams = array())
1223
  {
1224
  $params = array('userId' => $userId, 'shelf' => $shelf);
1225
  $params = array_merge($params, $optParams);
1226
- return $this->call('get', array($params), "Google_Service_Books_Bookshelf");
1227
  }
1228
  /**
1229
  * Retrieves a list of public bookshelves for the specified user.
@@ -1235,13 +1235,13 @@ class Google_Service_Books_Bookshelves_Resource extends Google_Service_Resource
1235
  *
1236
  * @opt_param string source
1237
  * String to identify the originator of this request.
1238
- * @return Google_Service_Books_Bookshelves
1239
  */
1240
  public function listBookshelves($userId, $optParams = array())
1241
  {
1242
  $params = array('userId' => $userId);
1243
  $params = array_merge($params, $optParams);
1244
- return $this->call('list', array($params), "Google_Service_Books_Bookshelves");
1245
  }
1246
  }
1247
 
@@ -1249,11 +1249,11 @@ class Google_Service_Books_Bookshelves_Resource extends Google_Service_Resource
1249
  * The "volumes" collection of methods.
1250
  * Typical usage is:
1251
  * <code>
1252
- * $booksService = new Google_Service_Books(...);
1253
  * $volumes = $booksService->volumes;
1254
  * </code>
1255
  */
1256
- class Google_Service_Books_BookshelvesVolumes_Resource extends Google_Service_Resource
1257
  {
1258
 
1259
  /**
@@ -1274,13 +1274,13 @@ class Google_Service_Books_BookshelvesVolumes_Resource extends Google_Service_Re
1274
  * String to identify the originator of this request.
1275
  * @opt_param string startIndex
1276
  * Index of the first element to return (starts at 0)
1277
- * @return Google_Service_Books_Volumes
1278
  */
1279
  public function listBookshelvesVolumes($userId, $shelf, $optParams = array())
1280
  {
1281
  $params = array('userId' => $userId, 'shelf' => $shelf);
1282
  $params = array_merge($params, $optParams);
1283
- return $this->call('list', array($params), "Google_Service_Books_Volumes");
1284
  }
1285
  }
1286
 
@@ -1288,11 +1288,11 @@ class Google_Service_Books_BookshelvesVolumes_Resource extends Google_Service_Re
1288
  * The "cloudloading" collection of methods.
1289
  * Typical usage is:
1290
  * <code>
1291
- * $booksService = new Google_Service_Books(...);
1292
  * $cloudloading = $booksService->cloudloading;
1293
  * </code>
1294
  */
1295
- class Google_Service_Books_Cloudloading_Resource extends Google_Service_Resource
1296
  {
1297
 
1298
  /**
@@ -1308,13 +1308,13 @@ class Google_Service_Books_Cloudloading_Resource extends Google_Service_Resource
1308
  * The document MIME type. It can be set only if the drive_document_id is set.
1309
  * @opt_param string name
1310
  * The document name. It can be set only if the drive_document_id is set.
1311
- * @return Google_Service_Books_BooksCloudloadingResource
1312
  */
1313
  public function addBook($optParams = array())
1314
  {
1315
  $params = array();
1316
  $params = array_merge($params, $optParams);
1317
- return $this->call('addBook', array($params), "Google_Service_Books_BooksCloudloadingResource");
1318
  }
1319
  /**
1320
  * Remove the book and its contents (cloudloading.deleteBook)
@@ -1332,15 +1332,15 @@ class Google_Service_Books_Cloudloading_Resource extends Google_Service_Resource
1332
  /**
1333
  * (cloudloading.updateBook)
1334
  *
1335
- * @param Google_BooksCloudloadingResource $postBody
1336
  * @param array $optParams Optional parameters.
1337
- * @return Google_Service_Books_BooksCloudloadingResource
1338
  */
1339
- public function updateBook(Google_Service_Books_BooksCloudloadingResource $postBody, $optParams = array())
1340
  {
1341
  $params = array('postBody' => $postBody);
1342
  $params = array_merge($params, $optParams);
1343
- return $this->call('updateBook', array($params), "Google_Service_Books_BooksCloudloadingResource");
1344
  }
1345
  }
1346
 
@@ -1348,11 +1348,11 @@ class Google_Service_Books_Cloudloading_Resource extends Google_Service_Resource
1348
  * The "layers" collection of methods.
1349
  * Typical usage is:
1350
  * <code>
1351
- * $booksService = new Google_Service_Books(...);
1352
  * $layers = $booksService->layers;
1353
  * </code>
1354
  */
1355
- class Google_Service_Books_Layers_Resource extends Google_Service_Resource
1356
  {
1357
 
1358
  /**
@@ -1368,13 +1368,13 @@ class Google_Service_Books_Layers_Resource extends Google_Service_Resource
1368
  * String to identify the originator of this request.
1369
  * @opt_param string contentVersion
1370
  * The content version for the requested volume.
1371
- * @return Google_Service_Books_Layersummary
1372
  */
1373
  public function get($volumeId, $summaryId, $optParams = array())
1374
  {
1375
  $params = array('volumeId' => $volumeId, 'summaryId' => $summaryId);
1376
  $params = array_merge($params, $optParams);
1377
- return $this->call('get', array($params), "Google_Service_Books_Layersummary");
1378
  }
1379
  /**
1380
  * List the layer summaries for a volume. (layers.listLayers)
@@ -1391,13 +1391,13 @@ class Google_Service_Books_Layers_Resource extends Google_Service_Resource
1391
  * Maximum number of results to return
1392
  * @opt_param string source
1393
  * String to identify the originator of this request.
1394
- * @return Google_Service_Books_Layersummaries
1395
  */
1396
  public function listLayers($volumeId, $optParams = array())
1397
  {
1398
  $params = array('volumeId' => $volumeId);
1399
  $params = array_merge($params, $optParams);
1400
- return $this->call('list', array($params), "Google_Service_Books_Layersummaries");
1401
  }
1402
  }
1403
 
@@ -1405,11 +1405,11 @@ class Google_Service_Books_Layers_Resource extends Google_Service_Resource
1405
  * The "annotationData" collection of methods.
1406
  * Typical usage is:
1407
  * <code>
1408
- * $booksService = new Google_Service_Books(...);
1409
  * $annotationData = $booksService->annotationData;
1410
  * </code>
1411
  */
1412
- class Google_Service_Books_LayersAnnotationData_Resource extends Google_Service_Resource
1413
  {
1414
 
1415
  /**
@@ -1438,13 +1438,13 @@ class Google_Service_Books_LayersAnnotationData_Resource extends Google_Service_
1438
  * 'en_US'.
1439
  * @opt_param int w
1440
  * The requested pixel width for any images. If width is provided height must also be provided.
1441
- * @return Google_Service_Books_Annotationdata
1442
  */
1443
  public function get($volumeId, $layerId, $annotationDataId, $contentVersion, $optParams = array())
1444
  {
1445
  $params = array('volumeId' => $volumeId, 'layerId' => $layerId, 'annotationDataId' => $annotationDataId, 'contentVersion' => $contentVersion);
1446
  $params = array_merge($params, $optParams);
1447
- return $this->call('get', array($params), "Google_Service_Books_Annotationdata");
1448
  }
1449
  /**
1450
  * Gets the annotation data for a volume and layer.
@@ -1479,24 +1479,24 @@ class Google_Service_Books_LayersAnnotationData_Resource extends Google_Service_
1479
  * The requested pixel width for any images. If width is provided height must also be provided.
1480
  * @opt_param string updatedMin
1481
  * RFC 3339 timestamp to restrict to items updated since this timestamp (inclusive).
1482
- * @return Google_Service_Books_Annotationsdata
1483
  */
1484
  public function listLayersAnnotationData($volumeId, $layerId, $contentVersion, $optParams = array())
1485
  {
1486
  $params = array('volumeId' => $volumeId, 'layerId' => $layerId, 'contentVersion' => $contentVersion);
1487
  $params = array_merge($params, $optParams);
1488
- return $this->call('list', array($params), "Google_Service_Books_Annotationsdata");
1489
  }
1490
  }
1491
  /**
1492
  * The "volumeAnnotations" collection of methods.
1493
  * Typical usage is:
1494
  * <code>
1495
- * $booksService = new Google_Service_Books(...);
1496
  * $volumeAnnotations = $booksService->volumeAnnotations;
1497
  * </code>
1498
  */
1499
- class Google_Service_Books_LayersVolumeAnnotations_Resource extends Google_Service_Resource
1500
  {
1501
 
1502
  /**
@@ -1515,13 +1515,13 @@ class Google_Service_Books_LayersVolumeAnnotations_Resource extends Google_Servi
1515
  * 'en_US'.
1516
  * @opt_param string source
1517
  * String to identify the originator of this request.
1518
- * @return Google_Service_Books_Volumeannotation
1519
  */
1520
  public function get($volumeId, $layerId, $annotationId, $optParams = array())
1521
  {
1522
  $params = array('volumeId' => $volumeId, 'layerId' => $layerId, 'annotationId' => $annotationId);
1523
  $params = array_merge($params, $optParams);
1524
- return $this->call('get', array($params), "Google_Service_Books_Volumeannotation");
1525
  }
1526
  /**
1527
  * Gets the volume annotations for a volume and layer.
@@ -1561,13 +1561,13 @@ class Google_Service_Books_LayersVolumeAnnotations_Resource extends Google_Servi
1561
  * The start offset to start retrieving data from.
1562
  * @opt_param string startPosition
1563
  * The start position to start retrieving data from.
1564
- * @return Google_Service_Books_Volumeannotations
1565
  */
1566
  public function listLayersVolumeAnnotations($volumeId, $layerId, $contentVersion, $optParams = array())
1567
  {
1568
  $params = array('volumeId' => $volumeId, 'layerId' => $layerId, 'contentVersion' => $contentVersion);
1569
  $params = array_merge($params, $optParams);
1570
- return $this->call('list', array($params), "Google_Service_Books_Volumeannotations");
1571
  }
1572
  }
1573
 
@@ -1575,11 +1575,11 @@ class Google_Service_Books_LayersVolumeAnnotations_Resource extends Google_Servi
1575
  * The "myconfig" collection of methods.
1576
  * Typical usage is:
1577
  * <code>
1578
- * $booksService = new Google_Service_Books(...);
1579
  * $myconfig = $booksService->myconfig;
1580
  * </code>
1581
  */
1582
- class Google_Service_Books_Myconfig_Resource extends Google_Service_Resource
1583
  {
1584
 
1585
  /**
@@ -1596,13 +1596,13 @@ class Google_Service_Books_Myconfig_Resource extends Google_Service_Resource
1596
  * ISO-639-1, ISO-3166-1 codes for message localization, i.e. en_US.
1597
  * @opt_param string source
1598
  * String to identify the originator of this request.
1599
- * @return Google_Service_Books_DownloadAccesses
1600
  */
1601
  public function releaseDownloadAccess($volumeIds, $cpksver, $optParams = array())
1602
  {
1603
  $params = array('volumeIds' => $volumeIds, 'cpksver' => $cpksver);
1604
  $params = array_merge($params, $optParams);
1605
- return $this->call('releaseDownloadAccess', array($params), "Google_Service_Books_DownloadAccesses");
1606
  }
1607
  /**
1608
  * Request concurrent and download access restrictions. (myconfig.requestAccess)
@@ -1621,13 +1621,13 @@ class Google_Service_Books_Myconfig_Resource extends Google_Service_Resource
1621
  * The type of access license to request. If not specified, the default is BOTH.
1622
  * @opt_param string locale
1623
  * ISO-639-1, ISO-3166-1 codes for message localization, i.e. en_US.
1624
- * @return Google_Service_Books_RequestAccess
1625
  */
1626
  public function requestAccess($source, $volumeId, $nonce, $cpksver, $optParams = array())
1627
  {
1628
  $params = array('source' => $source, 'volumeId' => $volumeId, 'nonce' => $nonce, 'cpksver' => $cpksver);
1629
  $params = array_merge($params, $optParams);
1630
- return $this->call('requestAccess', array($params), "Google_Service_Books_RequestAccess");
1631
  }
1632
  /**
1633
  * Request downloaded content access for specified volumes on the My eBooks
@@ -1649,13 +1649,13 @@ class Google_Service_Books_Myconfig_Resource extends Google_Service_Resource
1649
  * Set to true to show pre-ordered books. Defaults to false.
1650
  * @opt_param string volumeIds
1651
  * The volume(s) to request download restrictions for.
1652
- * @return Google_Service_Books_Volumes
1653
  */
1654
  public function syncVolumeLicenses($source, $nonce, $cpksver, $optParams = array())
1655
  {
1656
  $params = array('source' => $source, 'nonce' => $nonce, 'cpksver' => $cpksver);
1657
  $params = array_merge($params, $optParams);
1658
- return $this->call('syncVolumeLicenses', array($params), "Google_Service_Books_Volumes");
1659
  }
1660
  }
1661
 
@@ -1663,11 +1663,11 @@ class Google_Service_Books_Myconfig_Resource extends Google_Service_Resource
1663
  * The "mylibrary" collection of methods.
1664
  * Typical usage is:
1665
  * <code>
1666
- * $booksService = new Google_Service_Books(...);
1667
  * $mylibrary = $booksService->mylibrary;
1668
  * </code>
1669
  */
1670
- class Google_Service_Books_Mylibrary_Resource extends Google_Service_Resource
1671
  {
1672
 
1673
  }
@@ -1676,11 +1676,11 @@ class Google_Service_Books_Mylibrary_Resource extends Google_Service_Resource
1676
  * The "annotations" collection of methods.
1677
  * Typical usage is:
1678
  * <code>
1679
- * $booksService = new Google_Service_Books(...);
1680
  * $annotations = $booksService->annotations;
1681
  * </code>
1682
  */
1683
- class Google_Service_Books_MylibraryAnnotations_Resource extends Google_Service_Resource
1684
  {
1685
 
1686
  /**
@@ -1708,31 +1708,31 @@ class Google_Service_Books_MylibraryAnnotations_Resource extends Google_Service_
1708
  *
1709
  * @opt_param string source
1710
  * String to identify the originator of this request.
1711
- * @return Google_Service_Books_Annotation
1712
  */
1713
  public function get($annotationId, $optParams = array())
1714
  {
1715
  $params = array('annotationId' => $annotationId);
1716
  $params = array_merge($params, $optParams);
1717
- return $this->call('get', array($params), "Google_Service_Books_Annotation");
1718
  }
1719
  /**
1720
  * Inserts a new annotation. (annotations.insert)
1721
  *
1722
- * @param Google_Annotation $postBody
1723
  * @param array $optParams Optional parameters.
1724
  *
1725
  * @opt_param string source
1726
  * String to identify the originator of this request.
1727
  * @opt_param bool showOnlySummaryInResponse
1728
  * Requests that only the summary of the specified layer be provided in the response.
1729
- * @return Google_Service_Books_Annotation
1730
  */
1731
- public function insert(Google_Service_Books_Annotation $postBody, $optParams = array())
1732
  {
1733
  $params = array('postBody' => $postBody);
1734
  $params = array_merge($params, $optParams);
1735
- return $this->call('insert', array($params), "Google_Service_Books_Annotation");
1736
  }
1737
  /**
1738
  * Retrieves a list of annotations, possibly filtered.
@@ -1763,13 +1763,13 @@ class Google_Service_Books_MylibraryAnnotations_Resource extends Google_Service_
1763
  * The layer ID to limit annotation by.
1764
  * @opt_param string updatedMax
1765
  * RFC 3339 timestamp to restrict to items updated prior to this timestamp (exclusive).
1766
- * @return Google_Service_Books_Annotations
1767
  */
1768
  public function listMylibraryAnnotations($optParams = array())
1769
  {
1770
  $params = array();
1771
  $params = array_merge($params, $optParams);
1772
- return $this->call('list', array($params), "Google_Service_Books_Annotations");
1773
  }
1774
  /**
1775
  * Gets the summary of specified layers. (annotations.summary)
@@ -1779,42 +1779,42 @@ class Google_Service_Books_MylibraryAnnotations_Resource extends Google_Service_
1779
  * @param string $volumeId
1780
  * Volume id to get the summary for.
1781
  * @param array $optParams Optional parameters.
1782
- * @return Google_Service_Books_AnnotationsSummary
1783
  */
1784
  public function summary($layerIds, $volumeId, $optParams = array())
1785
  {
1786
  $params = array('layerIds' => $layerIds, 'volumeId' => $volumeId);
1787
  $params = array_merge($params, $optParams);
1788
- return $this->call('summary', array($params), "Google_Service_Books_AnnotationsSummary");
1789
  }
1790
  /**
1791
  * Updates an existing annotation. (annotations.update)
1792
  *
1793
  * @param string $annotationId
1794
  * The ID for the annotation to update.
1795
- * @param Google_Annotation $postBody
1796
  * @param array $optParams Optional parameters.
1797
  *
1798
  * @opt_param string source
1799
  * String to identify the originator of this request.
1800
- * @return Google_Service_Books_Annotation
1801
  */
1802
- public function update($annotationId, Google_Service_Books_Annotation $postBody, $optParams = array())
1803
  {
1804
  $params = array('annotationId' => $annotationId, 'postBody' => $postBody);
1805
  $params = array_merge($params, $optParams);
1806
- return $this->call('update', array($params), "Google_Service_Books_Annotation");
1807
  }
1808
  }
1809
  /**
1810
  * The "bookshelves" collection of methods.
1811
  * Typical usage is:
1812
  * <code>
1813
- * $booksService = new Google_Service_Books(...);
1814
  * $bookshelves = $booksService->bookshelves;
1815
  * </code>
1816
  */
1817
- class Google_Service_Books_MylibraryBookshelves_Resource extends Google_Service_Resource
1818
  {
1819
 
1820
  /**
@@ -1861,13 +1861,13 @@ class Google_Service_Books_MylibraryBookshelves_Resource extends Google_Service_
1861
  *
1862
  * @opt_param string source
1863
  * String to identify the originator of this request.
1864
- * @return Google_Service_Books_Bookshelf
1865
  */
1866
  public function get($shelf, $optParams = array())
1867
  {
1868
  $params = array('shelf' => $shelf);
1869
  $params = array_merge($params, $optParams);
1870
- return $this->call('get', array($params), "Google_Service_Books_Bookshelf");
1871
  }
1872
  /**
1873
  * Retrieves a list of bookshelves belonging to the authenticated user.
@@ -1877,13 +1877,13 @@ class Google_Service_Books_MylibraryBookshelves_Resource extends Google_Service_
1877
  *
1878
  * @opt_param string source
1879
  * String to identify the originator of this request.
1880
- * @return Google_Service_Books_Bookshelves
1881
  */
1882
  public function listMylibraryBookshelves($optParams = array())
1883
  {
1884
  $params = array();
1885
  $params = array_merge($params, $optParams);
1886
- return $this->call('list', array($params), "Google_Service_Books_Bookshelves");
1887
  }
1888
  /**
1889
  * Moves a volume within a bookshelf. (bookshelves.moveVolume)
@@ -1930,11 +1930,11 @@ class Google_Service_Books_MylibraryBookshelves_Resource extends Google_Service_
1930
  * The "volumes" collection of methods.
1931
  * Typical usage is:
1932
  * <code>
1933
- * $booksService = new Google_Service_Books(...);
1934
  * $volumes = $booksService->volumes;
1935
  * </code>
1936
  */
1937
- class Google_Service_Books_MylibraryBookshelvesVolumes_Resource extends Google_Service_Resource
1938
  {
1939
 
1940
  /**
@@ -1959,24 +1959,24 @@ class Google_Service_Books_MylibraryBookshelvesVolumes_Resource extends Google_S
1959
  * String to identify the originator of this request.
1960
  * @opt_param string startIndex
1961
  * Index of the first element to return (starts at 0)
1962
- * @return Google_Service_Books_Volumes
1963
  */
1964
  public function listMylibraryBookshelvesVolumes($shelf, $optParams = array())
1965
  {
1966
  $params = array('shelf' => $shelf);
1967
  $params = array_merge($params, $optParams);
1968
- return $this->call('list', array($params), "Google_Service_Books_Volumes");
1969
  }
1970
  }
1971
  /**
1972
  * The "readingpositions" collection of methods.
1973
  * Typical usage is:
1974
  * <code>
1975
- * $booksService = new Google_Service_Books(...);
1976
  * $readingpositions = $booksService->readingpositions;
1977
  * </code>
1978
  */
1979
- class Google_Service_Books_MylibraryReadingpositions_Resource extends Google_Service_Resource
1980
  {
1981
 
1982
  /**
@@ -1991,13 +1991,13 @@ class Google_Service_Books_MylibraryReadingpositions_Resource extends Google_Ser
1991
  * String to identify the originator of this request.
1992
  * @opt_param string contentVersion
1993
  * Volume content version for which this reading position is requested.
1994
- * @return Google_Service_Books_ReadingPosition
1995
  */
1996
  public function get($volumeId, $optParams = array())
1997
  {
1998
  $params = array('volumeId' => $volumeId);
1999
  $params = array_merge($params, $optParams);
2000
- return $this->call('get', array($params), "Google_Service_Books_ReadingPosition");
2001
  }
2002
  /**
2003
  * Sets my reading position information for a volume.
@@ -2032,11 +2032,11 @@ class Google_Service_Books_MylibraryReadingpositions_Resource extends Google_Ser
2032
  * The "volumes" collection of methods.
2033
  * Typical usage is:
2034
  * <code>
2035
- * $booksService = new Google_Service_Books(...);
2036
  * $volumes = $booksService->volumes;
2037
  * </code>
2038
  */
2039
- class Google_Service_Books_Volumes_Resource extends Google_Service_Resource
2040
  {
2041
 
2042
  /**
@@ -2054,13 +2054,13 @@ class Google_Service_Books_Volumes_Resource extends Google_Service_Resource
2054
  * Restrict information returned to a set of selected fields.
2055
  * @opt_param string partner
2056
  * Brand results for partner ID.
2057
- * @return Google_Service_Books_Volume
2058
  */
2059
  public function get($volumeId, $optParams = array())
2060
  {
2061
  $params = array('volumeId' => $volumeId);
2062
  $params = array_merge($params, $optParams);
2063
- return $this->call('get', array($params), "Google_Service_Books_Volume");
2064
  }
2065
  /**
2066
  * Performs a book search. (volumes.listVolumes)
@@ -2093,13 +2093,13 @@ class Google_Service_Books_Volumes_Resource extends Google_Service_Resource
2093
  * Restrict to volumes by download availability.
2094
  * @opt_param string partner
2095
  * Restrict and brand results for partner ID.
2096
- * @return Google_Service_Books_Volumes
2097
  */
2098
  public function listVolumes($q, $optParams = array())
2099
  {
2100
  $params = array('q' => $q);
2101
  $params = array_merge($params, $optParams);
2102
- return $this->call('list', array($params), "Google_Service_Books_Volumes");
2103
  }
2104
  }
2105
 
@@ -2107,11 +2107,11 @@ class Google_Service_Books_Volumes_Resource extends Google_Service_Resource
2107
  * The "associated" collection of methods.
2108
  * Typical usage is:
2109
  * <code>
2110
- * $booksService = new Google_Service_Books(...);
2111
  * $associated = $booksService->associated;
2112
  * </code>
2113
  */
2114
- class Google_Service_Books_VolumesAssociated_Resource extends Google_Service_Resource
2115
  {
2116
 
2117
  /**
@@ -2128,24 +2128,24 @@ class Google_Service_Books_VolumesAssociated_Resource extends Google_Service_Res
2128
  * String to identify the originator of this request.
2129
  * @opt_param string association
2130
  * Association type.
2131
- * @return Google_Service_Books_Volumes
2132
  */
2133
  public function listVolumesAssociated($volumeId, $optParams = array())
2134
  {
2135
  $params = array('volumeId' => $volumeId);
2136
  $params = array_merge($params, $optParams);
2137
- return $this->call('list', array($params), "Google_Service_Books_Volumes");
2138
  }
2139
  }
2140
  /**
2141
  * The "mybooks" collection of methods.
2142
  * Typical usage is:
2143
  * <code>
2144
- * $booksService = new Google_Service_Books(...);
2145
  * $mybooks = $booksService->mybooks;
2146
  * </code>
2147
  */
2148
- class Google_Service_Books_VolumesMybooks_Resource extends Google_Service_Resource
2149
  {
2150
 
2151
  /**
@@ -2166,24 +2166,24 @@ class Google_Service_Books_VolumesMybooks_Resource extends Google_Service_Resour
2166
  * @opt_param string processingState
2167
  * The processing state of the user uploaded volumes to be returned. Applicable only if the
2168
  * UPLOADED is specified in the acquireMethod.
2169
- * @return Google_Service_Books_Volumes
2170
  */
2171
  public function listVolumesMybooks($optParams = array())
2172
  {
2173
  $params = array();
2174
  $params = array_merge($params, $optParams);
2175
- return $this->call('list', array($params), "Google_Service_Books_Volumes");
2176
  }
2177
  }
2178
  /**
2179
  * The "recommended" collection of methods.
2180
  * Typical usage is:
2181
  * <code>
2182
- * $booksService = new Google_Service_Books(...);
2183
  * $recommended = $booksService->recommended;
2184
  * </code>
2185
  */
2186
- class Google_Service_Books_VolumesRecommended_Resource extends Google_Service_Resource
2187
  {
2188
 
2189
  /**
@@ -2197,13 +2197,13 @@ class Google_Service_Books_VolumesRecommended_Resource extends Google_Service_Re
2197
  * recommendations.
2198
  * @opt_param string source
2199
  * String to identify the originator of this request.
2200
- * @return Google_Service_Books_Volumes
2201
  */
2202
  public function listVolumesRecommended($optParams = array())
2203
  {
2204
  $params = array();
2205
  $params = array_merge($params, $optParams);
2206
- return $this->call('list', array($params), "Google_Service_Books_Volumes");
2207
  }
2208
  /**
2209
  * Rate a recommended book for the current user. (recommended.rate)
@@ -2219,24 +2219,24 @@ class Google_Service_Books_VolumesRecommended_Resource extends Google_Service_Re
2219
  * recommendations.
2220
  * @opt_param string source
2221
  * String to identify the originator of this request.
2222
- * @return Google_Service_Books_BooksVolumesRecommendedRateResponse
2223
  */
2224
  public function rate($rating, $volumeId, $optParams = array())
2225
  {
2226
  $params = array('rating' => $rating, 'volumeId' => $volumeId);
2227
  $params = array_merge($params, $optParams);
2228
- return $this->call('rate', array($params), "Google_Service_Books_BooksVolumesRecommendedRateResponse");
2229
  }
2230
  }
2231
  /**
2232
  * The "useruploaded" collection of methods.
2233
  * Typical usage is:
2234
  * <code>
2235
- * $booksService = new Google_Service_Books(...);
2236
  * $useruploaded = $booksService->useruploaded;
2237
  * </code>
2238
  */
2239
- class Google_Service_Books_VolumesUseruploaded_Resource extends Google_Service_Resource
2240
  {
2241
 
2242
  /**
@@ -2259,27 +2259,27 @@ class Google_Service_Books_VolumesUseruploaded_Resource extends Google_Service_R
2259
  * Index of the first result to return (starts at 0)
2260
  * @opt_param string processingState
2261
  * The processing state of the user uploaded volumes to be returned.
2262
- * @return Google_Service_Books_Volumes
2263
  */
2264
  public function listVolumesUseruploaded($optParams = array())
2265
  {
2266
  $params = array();
2267
  $params = array_merge($params, $optParams);
2268
- return $this->call('list', array($params), "Google_Service_Books_Volumes");
2269
  }
2270
  }
2271
 
2272
 
2273
 
2274
 
2275
- class Google_Service_Books_Annotation extends Google_Collection
2276
  {
2277
  public $afterSelectedText;
2278
  public $beforeSelectedText;
2279
- protected $clientVersionRangesType = 'Google_Service_Books_AnnotationClientVersionRanges';
2280
  protected $clientVersionRangesDataType = '';
2281
  public $created;
2282
- protected $currentVersionRangesType = 'Google_Service_Books_AnnotationCurrentVersionRanges';
2283
  protected $currentVersionRangesDataType = '';
2284
  public $data;
2285
  public $deleted;
@@ -2287,7 +2287,7 @@ class Google_Service_Books_Annotation extends Google_Collection
2287
  public $id;
2288
  public $kind;
2289
  public $layerId;
2290
- protected $layerSummaryType = 'Google_Service_Books_AnnotationLayerSummary';
2291
  protected $layerSummaryDataType = '';
2292
  public $pageIds;
2293
  public $selectedText;
@@ -2315,7 +2315,7 @@ class Google_Service_Books_Annotation extends Google_Collection
2315
  return $this->beforeSelectedText;
2316
  }
2317
 
2318
- public function setClientVersionRanges(Google_Service_Books_AnnotationClientVersionRanges $clientVersionRanges)
2319
  {
2320
  $this->clientVersionRanges = $clientVersionRanges;
2321
  }
@@ -2335,7 +2335,7 @@ class Google_Service_Books_Annotation extends Google_Collection
2335
  return $this->created;
2336
  }
2337
 
2338
- public function setCurrentVersionRanges(Google_Service_Books_AnnotationCurrentVersionRanges $currentVersionRanges)
2339
  {
2340
  $this->currentVersionRanges = $currentVersionRanges;
2341
  }
@@ -2405,7 +2405,7 @@ class Google_Service_Books_Annotation extends Google_Collection
2405
  return $this->layerId;
2406
  }
2407
 
2408
- public function setLayerSummary(Google_Service_Books_AnnotationLayerSummary $layerSummary)
2409
  {
2410
  $this->layerSummary = $layerSummary;
2411
  }
@@ -2466,19 +2466,19 @@ class Google_Service_Books_Annotation extends Google_Collection
2466
  }
2467
  }
2468
 
2469
- class Google_Service_Books_AnnotationClientVersionRanges extends Google_Model
2470
  {
2471
- protected $cfiRangeType = 'Google_Service_Books_BooksAnnotationsRange';
2472
  protected $cfiRangeDataType = '';
2473
  public $contentVersion;
2474
- protected $gbImageRangeType = 'Google_Service_Books_BooksAnnotationsRange';
2475
  protected $gbImageRangeDataType = '';
2476
- protected $gbTextRangeType = 'Google_Service_Books_BooksAnnotationsRange';
2477
  protected $gbTextRangeDataType = '';
2478
- protected $imageCfiRangeType = 'Google_Service_Books_BooksAnnotationsRange';
2479
  protected $imageCfiRangeDataType = '';
2480
 
2481
- public function setCfiRange(Google_Service_Books_BooksAnnotationsRange $cfiRange)
2482
  {
2483
  $this->cfiRange = $cfiRange;
2484
  }
@@ -2498,7 +2498,7 @@ class Google_Service_Books_AnnotationClientVersionRanges extends Google_Model
2498
  return $this->contentVersion;
2499
  }
2500
 
2501
- public function setGbImageRange(Google_Service_Books_BooksAnnotationsRange $gbImageRange)
2502
  {
2503
  $this->gbImageRange = $gbImageRange;
2504
  }
@@ -2508,7 +2508,7 @@ class Google_Service_Books_AnnotationClientVersionRanges extends Google_Model
2508
  return $this->gbImageRange;
2509
  }
2510
 
2511
- public function setGbTextRange(Google_Service_Books_BooksAnnotationsRange $gbTextRange)
2512
  {
2513
  $this->gbTextRange = $gbTextRange;
2514
  }
@@ -2518,7 +2518,7 @@ class Google_Service_Books_AnnotationClientVersionRanges extends Google_Model
2518
  return $this->gbTextRange;
2519
  }
2520
 
2521
- public function setImageCfiRange(Google_Service_Books_BooksAnnotationsRange $imageCfiRange)
2522
  {
2523
  $this->imageCfiRange = $imageCfiRange;
2524
  }
@@ -2529,19 +2529,19 @@ class Google_Service_Books_AnnotationClientVersionRanges extends Google_Model
2529
  }
2530
  }
2531
 
2532
- class Google_Service_Books_AnnotationCurrentVersionRanges extends Google_Model
2533
  {
2534
- protected $cfiRangeType = 'Google_Service_Books_BooksAnnotationsRange';
2535
  protected $cfiRangeDataType = '';
2536
  public $contentVersion;
2537
- protected $gbImageRangeType = 'Google_Service_Books_BooksAnnotationsRange';
2538
  protected $gbImageRangeDataType = '';
2539
- protected $gbTextRangeType = 'Google_Service_Books_BooksAnnotationsRange';
2540
  protected $gbTextRangeDataType = '';
2541
- protected $imageCfiRangeType = 'Google_Service_Books_BooksAnnotationsRange';
2542
  protected $imageCfiRangeDataType = '';
2543
 
2544
- public function setCfiRange(Google_Service_Books_BooksAnnotationsRange $cfiRange)
2545
  {
2546
  $this->cfiRange = $cfiRange;
2547
  }
@@ -2561,7 +2561,7 @@ class Google_Service_Books_AnnotationCurrentVersionRanges extends Google_Model
2561
  return $this->contentVersion;
2562
  }
2563
 
2564
- public function setGbImageRange(Google_Service_Books_BooksAnnotationsRange $gbImageRange)
2565
  {
2566
  $this->gbImageRange = $gbImageRange;
2567
  }
@@ -2571,7 +2571,7 @@ class Google_Service_Books_AnnotationCurrentVersionRanges extends Google_Model
2571
  return $this->gbImageRange;
2572
  }
2573
 
2574
- public function setGbTextRange(Google_Service_Books_BooksAnnotationsRange $gbTextRange)
2575
  {
2576
  $this->gbTextRange = $gbTextRange;
2577
  }
@@ -2581,7 +2581,7 @@ class Google_Service_Books_AnnotationCurrentVersionRanges extends Google_Model
2581
  return $this->gbTextRange;
2582
  }
2583
 
2584
- public function setImageCfiRange(Google_Service_Books_BooksAnnotationsRange $imageCfiRange)
2585
  {
2586
  $this->imageCfiRange = $imageCfiRange;
2587
  }
@@ -2592,7 +2592,7 @@ class Google_Service_Books_AnnotationCurrentVersionRanges extends Google_Model
2592
  }
2593
  }
2594
 
2595
- class Google_Service_Books_AnnotationLayerSummary extends Google_Model
2596
  {
2597
  public $allowedCharacterCount;
2598
  public $limitType;
@@ -2629,7 +2629,7 @@ class Google_Service_Books_AnnotationLayerSummary extends Google_Model
2629
  }
2630
  }
2631
 
2632
- class Google_Service_Books_Annotationdata extends Google_Model
2633
  {
2634
  public $annotationType;
2635
  public $data;
@@ -2732,9 +2732,9 @@ class Google_Service_Books_Annotationdata extends Google_Model
2732
  }
2733
  }
2734
 
2735
- class Google_Service_Books_Annotations extends Google_Collection
2736
  {
2737
- protected $itemsType = 'Google_Service_Books_Annotation';
2738
  protected $itemsDataType = 'array';
2739
  public $kind;
2740
  public $nextPageToken;
@@ -2781,10 +2781,10 @@ class Google_Service_Books_Annotations extends Google_Collection
2781
  }
2782
  }
2783
 
2784
- class Google_Service_Books_AnnotationsSummary extends Google_Collection
2785
  {
2786
  public $kind;
2787
- protected $layersType = 'Google_Service_Books_AnnotationsSummaryLayers';
2788
  protected $layersDataType = 'array';
2789
 
2790
  public function setKind($kind)
@@ -2808,7 +2808,7 @@ class Google_Service_Books_AnnotationsSummary extends Google_Collection
2808
  }
2809
  }
2810
 
2811
- class Google_Service_Books_AnnotationsSummaryLayers extends Google_Model
2812
  {
2813
  public $allowedCharacterCount;
2814
  public $layerId;
@@ -2867,9 +2867,9 @@ class Google_Service_Books_AnnotationsSummaryLayers extends Google_Model
2867
  }
2868
  }
2869
 
2870
- class Google_Service_Books_Annotationsdata extends Google_Collection
2871
  {
2872
- protected $itemsType = 'Google_Service_Books_Annotationdata';
2873
  protected $itemsDataType = 'array';
2874
  public $kind;
2875
  public $nextPageToken;
@@ -2916,7 +2916,7 @@ class Google_Service_Books_Annotationsdata extends Google_Collection
2916
  }
2917
  }
2918
 
2919
- class Google_Service_Books_BooksAnnotationsRange extends Google_Model
2920
  {
2921
  public $endOffset;
2922
  public $endPosition;
@@ -2964,7 +2964,7 @@ class Google_Service_Books_BooksAnnotationsRange extends Google_Model
2964
  }
2965
  }
2966
 
2967
- class Google_Service_Books_BooksCloudloadingResource extends Google_Model
2968
  {
2969
  public $author;
2970
  public $processingState;
@@ -3012,7 +3012,7 @@ class Google_Service_Books_BooksCloudloadingResource extends Google_Model
3012
  }
3013
  }
3014
 
3015
- class Google_Service_Books_BooksVolumesRecommendedRateResponse extends Google_Model
3016
  {
3017
  public $consistencyToken;
3018
 
@@ -3027,7 +3027,7 @@ class Google_Service_Books_BooksVolumesRecommendedRateResponse extends Google_Mo
3027
  }
3028
  }
3029
 
3030
- class Google_Service_Books_Bookshelf extends Google_Model
3031
  {
3032
  public $access;
3033
  public $created;
@@ -3141,9 +3141,9 @@ class Google_Service_Books_Bookshelf extends Google_Model
3141
  }
3142
  }
3143
 
3144
- class Google_Service_Books_Bookshelves extends Google_Collection
3145
  {
3146
- protected $itemsType = 'Google_Service_Books_Bookshelf';
3147
  protected $itemsDataType = 'array';
3148
  public $kind;
3149
 
@@ -3168,7 +3168,7 @@ class Google_Service_Books_Bookshelves extends Google_Collection
3168
  }
3169
  }
3170
 
3171
- class Google_Service_Books_ConcurrentAccessRestriction extends Google_Model
3172
  {
3173
  public $deviceAllowed;
3174
  public $kind;
@@ -3293,15 +3293,15 @@ class Google_Service_Books_ConcurrentAccessRestriction extends Google_Model
3293
  }
3294
  }
3295
 
3296
- class Google_Service_Books_Dictlayerdata extends Google_Model
3297
  {
3298
- protected $commonType = 'Google_Service_Books_DictlayerdataCommon';
3299
  protected $commonDataType = '';
3300
- protected $dictType = 'Google_Service_Books_DictlayerdataDict';
3301
  protected $dictDataType = '';
3302
  public $kind;
3303
 
3304
- public function setCommon(Google_Service_Books_DictlayerdataCommon $common)
3305
  {
3306
  $this->common = $common;
3307
  }
@@ -3311,7 +3311,7 @@ class Google_Service_Books_Dictlayerdata extends Google_Model
3311
  return $this->common;
3312
  }
3313
 
3314
- public function setDict(Google_Service_Books_DictlayerdataDict $dict)
3315
  {
3316
  $this->dict = $dict;
3317
  }
@@ -3332,7 +3332,7 @@ class Google_Service_Books_Dictlayerdata extends Google_Model
3332
  }
3333
  }
3334
 
3335
- class Google_Service_Books_DictlayerdataCommon extends Google_Model
3336
  {
3337
  public $title;
3338
 
@@ -3347,14 +3347,14 @@ class Google_Service_Books_DictlayerdataCommon extends Google_Model
3347
  }
3348
  }
3349
 
3350
- class Google_Service_Books_DictlayerdataDict extends Google_Collection
3351
  {
3352
- protected $sourceType = 'Google_Service_Books_DictlayerdataDictSource';
3353
  protected $sourceDataType = '';
3354
- protected $wordsType = 'Google_Service_Books_DictlayerdataDictWords';
3355
  protected $wordsDataType = 'array';
3356
 
3357
- public function setSource(Google_Service_Books_DictlayerdataDictSource $source)
3358
  {
3359
  $this->source = $source;
3360
  }
@@ -3375,7 +3375,7 @@ class Google_Service_Books_DictlayerdataDict extends Google_Collection
3375
  }
3376
  }
3377
 
3378
- class Google_Service_Books_DictlayerdataDictSource extends Google_Model
3379
  {
3380
  public $attribution;
3381
  public $url;
@@ -3401,15 +3401,15 @@ class Google_Service_Books_DictlayerdataDictSource extends Google_Model
3401
  }
3402
  }
3403
 
3404
- class Google_Service_Books_DictlayerdataDictWords extends Google_Collection
3405
  {
3406
- protected $derivativesType = 'Google_Service_Books_DictlayerdataDictWordsDerivatives';
3407
  protected $derivativesDataType = 'array';
3408
- protected $examplesType = 'Google_Service_Books_DictlayerdataDictWordsExamples';
3409
  protected $examplesDataType = 'array';
3410
- protected $sensesType = 'Google_Service_Books_DictlayerdataDictWordsSenses';
3411
  protected $sensesDataType = 'array';
3412
- protected $sourceType = 'Google_Service_Books_DictlayerdataDictWordsSource';
3413
  protected $sourceDataType = '';
3414
 
3415
  public function setDerivatives($derivatives)
@@ -3442,7 +3442,7 @@ class Google_Service_Books_DictlayerdataDictWords extends Google_Collection
3442
  return $this->senses;
3443
  }
3444
 
3445
- public function setSource(Google_Service_Books_DictlayerdataDictWordsSource $source)
3446
  {
3447
  $this->source = $source;
3448
  }
@@ -3453,13 +3453,13 @@ class Google_Service_Books_DictlayerdataDictWords extends Google_Collection
3453
  }
3454
  }
3455
 
3456
- class Google_Service_Books_DictlayerdataDictWordsDerivatives extends Google_Model
3457
  {
3458
- protected $sourceType = 'Google_Service_Books_DictlayerdataDictWordsDerivativesSource';
3459
  protected $sourceDataType = '';
3460
  public $text;
3461
 
3462
- public function setSource(Google_Service_Books_DictlayerdataDictWordsDerivativesSource $source)
3463
  {
3464
  $this->source = $source;
3465
  }
@@ -3480,7 +3480,7 @@ class Google_Service_Books_DictlayerdataDictWordsDerivatives extends Google_Mode
3480
  }
3481
  }
3482
 
3483
- class Google_Service_Books_DictlayerdataDictWordsDerivativesSource extends Google_Model
3484
  {
3485
  public $attribution;
3486
  public $url;
@@ -3506,13 +3506,13 @@ class Google_Service_Books_DictlayerdataDictWordsDerivativesSource extends Googl
3506
  }
3507
  }
3508
 
3509
- class Google_Service_Books_DictlayerdataDictWordsExamples extends Google_Model
3510
  {
3511
- protected $sourceType = 'Google_Service_Books_DictlayerdataDictWordsExamplesSource';
3512
  protected $sourceDataType = '';
3513
  public $text;
3514
 
3515
- public function setSource(Google_Service_Books_DictlayerdataDictWordsExamplesSource $source)
3516
  {
3517
  $this->source = $source;
3518
  }
@@ -3533,7 +3533,7 @@ class Google_Service_Books_DictlayerdataDictWordsExamples extends Google_Model
3533
  }
3534
  }
3535
 
3536
- class Google_Service_Books_DictlayerdataDictWordsExamplesSource extends Google_Model
3537
  {
3538
  public $attribution;
3539
  public $url;
@@ -3559,19 +3559,19 @@ class Google_Service_Books_DictlayerdataDictWordsExamplesSource extends Google_M
3559
  }
3560
  }
3561
 
3562
- class Google_Service_Books_DictlayerdataDictWordsSenses extends Google_Collection
3563
  {
3564
- protected $conjugationsType = 'Google_Service_Books_DictlayerdataDictWordsSensesConjugations';
3565
  protected $conjugationsDataType = 'array';
3566
- protected $definitionsType = 'Google_Service_Books_DictlayerdataDictWordsSensesDefinitions';
3567
  protected $definitionsDataType = 'array';
3568
  public $partOfSpeech;
3569
  public $pronunciation;
3570
  public $pronunciationUrl;
3571
- protected $sourceType = 'Google_Service_Books_DictlayerdataDictWordsSensesSource';
3572
  protected $sourceDataType = '';
3573
  public $syllabification;
3574
- protected $synonymsType = 'Google_Service_Books_DictlayerdataDictWordsSensesSynonyms';
3575
  protected $synonymsDataType = 'array';
3576
 
3577
  public function setConjugations($conjugations)
@@ -3624,7 +3624,7 @@ class Google_Service_Books_DictlayerdataDictWordsSenses extends Google_Collectio
3624
  return $this->pronunciationUrl;
3625
  }
3626
 
3627
- public function setSource(Google_Service_Books_DictlayerdataDictWordsSensesSource $source)
3628
  {
3629
  $this->source = $source;
3630
  }
@@ -3655,7 +3655,7 @@ class Google_Service_Books_DictlayerdataDictWordsSenses extends Google_Collectio
3655
  }
3656
  }
3657
 
3658
- class Google_Service_Books_DictlayerdataDictWordsSensesConjugations extends Google_Model
3659
  {
3660
  public $type;
3661
  public $value;
@@ -3681,10 +3681,10 @@ class Google_Service_Books_DictlayerdataDictWordsSensesConjugations extends Goog
3681
  }
3682
  }
3683
 
3684
- class Google_Service_Books_DictlayerdataDictWordsSensesDefinitions extends Google_Collection
3685
  {
3686
  public $definition;
3687
- protected $examplesType = 'Google_Service_Books_DictlayerdataDictWordsSensesDefinitionsExamples';
3688
  protected $examplesDataType = 'array';
3689
 
3690
  public function setDefinition($definition)
@@ -3708,13 +3708,13 @@ class Google_Service_Books_DictlayerdataDictWordsSensesDefinitions extends Googl
3708
  }
3709
  }
3710
 
3711
- class Google_Service_Books_DictlayerdataDictWordsSensesDefinitionsExamples extends Google_Model
3712
  {
3713
- protected $sourceType = 'Google_Service_Books_DictlayerdataDictWordsSensesDefinitionsExamplesSource';
3714
  protected $sourceDataType = '';
3715
  public $text;
3716
 
3717
- public function setSource(Google_Service_Books_DictlayerdataDictWordsSensesDefinitionsExamplesSource $source)
3718
  {
3719
  $this->source = $source;
3720
  }
@@ -3735,7 +3735,7 @@ class Google_Service_Books_DictlayerdataDictWordsSensesDefinitionsExamples exten
3735
  }
3736
  }
3737
 
3738
- class Google_Service_Books_DictlayerdataDictWordsSensesDefinitionsExamplesSource extends Google_Model
3739
  {
3740
  public $attribution;
3741
  public $url;
@@ -3761,7 +3761,7 @@ class Google_Service_Books_DictlayerdataDictWordsSensesDefinitionsExamplesSource
3761
  }
3762
  }
3763
 
3764
- class Google_Service_Books_DictlayerdataDictWordsSensesSource extends Google_Model
3765
  {
3766
  public $attribution;
3767
  public $url;
@@ -3787,13 +3787,13 @@ class Google_Service_Books_DictlayerdataDictWordsSensesSource extends Google_Mod
3787
  }
3788
  }
3789
 
3790
- class Google_Service_Books_DictlayerdataDictWordsSensesSynonyms extends Google_Model
3791
  {
3792
- protected $sourceType = 'Google_Service_Books_DictlayerdataDictWordsSensesSynonymsSource';
3793
  protected $sourceDataType = '';
3794
  public $text;
3795
 
3796
- public function setSource(Google_Service_Books_DictlayerdataDictWordsSensesSynonymsSource $source)
3797
  {
3798
  $this->source = $source;
3799
  }
@@ -3814,7 +3814,7 @@ class Google_Service_Books_DictlayerdataDictWordsSensesSynonyms extends Google_M
3814
  }
3815
  }
3816
 
3817
- class Google_Service_Books_DictlayerdataDictWordsSensesSynonymsSource extends Google_Model
3818
  {
3819
  public $attribution;
3820
  public $url;
@@ -3840,7 +3840,7 @@ class Google_Service_Books_DictlayerdataDictWordsSensesSynonymsSource extends Go
3840
  }
3841
  }
3842
 
3843
- class Google_Service_Books_DictlayerdataDictWordsSource extends Google_Model
3844
  {
3845
  public $attribution;
3846
  public $url;
@@ -3866,7 +3866,7 @@ class Google_Service_Books_DictlayerdataDictWordsSource extends Google_Model
3866
  }
3867
  }
3868
 
3869
- class Google_Service_Books_DownloadAccessRestriction extends Google_Model
3870
  {
3871
  public $deviceAllowed;
3872
  public $downloadsAcquired;
@@ -4002,9 +4002,9 @@ class Google_Service_Books_DownloadAccessRestriction extends Google_Model
4002
  }
4003
  }
4004
 
4005
- class Google_Service_Books_DownloadAccesses extends Google_Collection
4006
  {
4007
- protected $downloadAccessListType = 'Google_Service_Books_DownloadAccessRestriction';
4008
  protected $downloadAccessListDataType = 'array';
4009
  public $kind;
4010
 
@@ -4029,15 +4029,15 @@ class Google_Service_Books_DownloadAccesses extends Google_Collection
4029
  }
4030
  }
4031
 
4032
- class Google_Service_Books_Geolayerdata extends Google_Model
4033
  {
4034
- protected $commonType = 'Google_Service_Books_GeolayerdataCommon';
4035
  protected $commonDataType = '';
4036
- protected $geoType = 'Google_Service_Books_GeolayerdataGeo';
4037
  protected $geoDataType = '';
4038
  public $kind;
4039
 
4040
- public function setCommon(Google_Service_Books_GeolayerdataCommon $common)
4041
  {
4042
  $this->common = $common;
4043
  }
@@ -4047,7 +4047,7 @@ class Google_Service_Books_Geolayerdata extends Google_Model
4047
  return $this->common;
4048
  }
4049
 
4050
- public function setGeo(Google_Service_Books_GeolayerdataGeo $geo)
4051
  {
4052
  $this->geo = $geo;
4053
  }
@@ -4068,7 +4068,7 @@ class Google_Service_Books_Geolayerdata extends Google_Model
4068
  }
4069
  }
4070
 
4071
- class Google_Service_Books_GeolayerdataCommon extends Google_Model
4072
  {
4073
  public $lang;
4074
  public $previewImageUrl;
@@ -4127,16 +4127,16 @@ class Google_Service_Books_GeolayerdataCommon extends Google_Model
4127
  }
4128
  }
4129
 
4130
- class Google_Service_Books_GeolayerdataGeo extends Google_Collection
4131
  {
4132
- protected $boundaryType = 'Google_Service_Books_GeolayerdataGeoBoundary';
4133
  protected $boundaryDataType = 'array';
4134
  public $cachePolicy;
4135
  public $countryCode;
4136
  public $latitude;
4137
  public $longitude;
4138
  public $mapType;
4139
- protected $viewportType = 'Google_Service_Books_GeolayerdataGeoViewport';
4140
  protected $viewportDataType = '';
4141
  public $zoom;
4142
 
@@ -4200,7 +4200,7 @@ class Google_Service_Books_GeolayerdataGeo extends Google_Collection
4200
  return $this->mapType;
4201
  }
4202
 
4203
- public function setViewport(Google_Service_Books_GeolayerdataGeoViewport $viewport)
4204
  {
4205
  $this->viewport = $viewport;
4206
  }
@@ -4221,7 +4221,7 @@ class Google_Service_Books_GeolayerdataGeo extends Google_Collection
4221
  }
4222
  }
4223
 
4224
- class Google_Service_Books_GeolayerdataGeoBoundary extends Google_Model
4225
  {
4226
  public $latitude;
4227
  public $longitude;
@@ -4247,14 +4247,14 @@ class Google_Service_Books_GeolayerdataGeoBoundary extends Google_Model
4247
  }
4248
  }
4249
 
4250
- class Google_Service_Books_GeolayerdataGeoViewport extends Google_Model
4251
  {
4252
- protected $hiType = 'Google_Service_Books_GeolayerdataGeoViewportHi';
4253
  protected $hiDataType = '';
4254
- protected $loType = 'Google_Service_Books_GeolayerdataGeoViewportLo';
4255
  protected $loDataType = '';
4256
 
4257
- public function setHi(Google_Service_Books_GeolayerdataGeoViewportHi $hi)
4258
  {
4259
  $this->hi = $hi;
4260
  }
@@ -4264,7 +4264,7 @@ class Google_Service_Books_GeolayerdataGeoViewport extends Google_Model
4264
  return $this->hi;
4265
  }
4266
 
4267
- public function setLo(Google_Service_Books_GeolayerdataGeoViewportLo $lo)
4268
  {
4269
  $this->lo = $lo;
4270
  }
@@ -4275,7 +4275,7 @@ class Google_Service_Books_GeolayerdataGeoViewport extends Google_Model
4275
  }
4276
  }
4277
 
4278
- class Google_Service_Books_GeolayerdataGeoViewportHi extends Google_Model
4279
  {
4280
  public $latitude;
4281
  public $longitude;
@@ -4301,7 +4301,7 @@ class Google_Service_Books_GeolayerdataGeoViewportHi extends Google_Model
4301
  }
4302
  }
4303
 
4304
- class Google_Service_Books_GeolayerdataGeoViewportLo extends Google_Model
4305
  {
4306
  public $latitude;
4307
  public $longitude;
@@ -4327,9 +4327,9 @@ class Google_Service_Books_GeolayerdataGeoViewportLo extends Google_Model
4327
  }
4328
  }
4329
 
4330
- class Google_Service_Books_Layersummaries extends Google_Collection
4331
  {
4332
- protected $itemsType = 'Google_Service_Books_Layersummary';
4333
  protected $itemsDataType = 'array';
4334
  public $kind;
4335
  public $totalItems;
@@ -4365,7 +4365,7 @@ class Google_Service_Books_Layersummaries extends Google_Collection
4365
  }
4366
  }
4367
 
4368
- class Google_Service_Books_Layersummary extends Google_Collection
4369
  {
4370
  public $annotationCount;
4371
  public $annotationTypes;
@@ -4512,7 +4512,7 @@ class Google_Service_Books_Layersummary extends Google_Collection
4512
  }
4513
  }
4514
 
4515
- class Google_Service_Books_ReadingPosition extends Google_Model
4516
  {
4517
  public $epubCfiPosition;
4518
  public $gbImagePosition;
@@ -4593,15 +4593,15 @@ class Google_Service_Books_ReadingPosition extends Google_Model
4593
  }
4594
  }
4595
 
4596
- class Google_Service_Books_RequestAccess extends Google_Model
4597
  {
4598
- protected $concurrentAccessType = 'Google_Service_Books_ConcurrentAccessRestriction';
4599
  protected $concurrentAccessDataType = '';
4600
- protected $downloadAccessType = 'Google_Service_Books_DownloadAccessRestriction';
4601
  protected $downloadAccessDataType = '';
4602
  public $kind;
4603
 
4604
- public function setConcurrentAccess(Google_Service_Books_ConcurrentAccessRestriction $concurrentAccess)
4605
  {
4606
  $this->concurrentAccess = $concurrentAccess;
4607
  }
@@ -4611,7 +4611,7 @@ class Google_Service_Books_RequestAccess extends Google_Model
4611
  return $this->concurrentAccess;
4612
  }
4613
 
4614
- public function setDownloadAccess(Google_Service_Books_DownloadAccessRestriction $downloadAccess)
4615
  {
4616
  $this->downloadAccess = $downloadAccess;
4617
  }
@@ -4632,22 +4632,22 @@ class Google_Service_Books_RequestAccess extends Google_Model
4632
  }
4633
  }
4634
 
4635
- class Google_Service_Books_Review extends Google_Model
4636
  {
4637
- protected $authorType = 'Google_Service_Books_ReviewAuthor';
4638
  protected $authorDataType = '';
4639
  public $content;
4640
  public $date;
4641
  public $fullTextUrl;
4642
  public $kind;
4643
  public $rating;
4644
- protected $sourceType = 'Google_Service_Books_ReviewSource';
4645
  protected $sourceDataType = '';
4646
  public $title;
4647
  public $type;
4648
  public $volumeId;
4649
 
4650
- public function setAuthor(Google_Service_Books_ReviewAuthor $author)
4651
  {
4652
  $this->author = $author;
4653
  }
@@ -4707,7 +4707,7 @@ class Google_Service_Books_Review extends Google_Model
4707
  return $this->rating;
4708
  }
4709
 
4710
- public function setSource(Google_Service_Books_ReviewSource $source)
4711
  {
4712
  $this->source = $source;
4713
  }
@@ -4748,7 +4748,7 @@ class Google_Service_Books_Review extends Google_Model
4748
  }
4749
  }
4750
 
4751
- class Google_Service_Books_ReviewAuthor extends Google_Model
4752
  {
4753
  public $displayName;
4754
 
@@ -4763,7 +4763,7 @@ class Google_Service_Books_ReviewAuthor extends Google_Model
4763
  }
4764
  }
4765
 
4766
- class Google_Service_Books_ReviewSource extends Google_Model
4767
  {
4768
  public $description;
4769
  public $extraDescription;
@@ -4800,28 +4800,28 @@ class Google_Service_Books_ReviewSource extends Google_Model
4800
  }
4801
  }
4802
 
4803
- class Google_Service_Books_Volume extends Google_Model
4804
  {
4805
- protected $accessInfoType = 'Google_Service_Books_VolumeAccessInfo';
4806
  protected $accessInfoDataType = '';
4807
  public $etag;
4808
  public $id;
4809
  public $kind;
4810
- protected $layerInfoType = 'Google_Service_Books_VolumeLayerInfo';
4811
  protected $layerInfoDataType = '';
4812
- protected $recommendedInfoType = 'Google_Service_Books_VolumeRecommendedInfo';
4813
  protected $recommendedInfoDataType = '';
4814
- protected $saleInfoType = 'Google_Service_Books_VolumeSaleInfo';
4815
  protected $saleInfoDataType = '';
4816
- protected $searchInfoType = 'Google_Service_Books_VolumeSearchInfo';
4817
  protected $searchInfoDataType = '';
4818
  public $selfLink;
4819
- protected $userInfoType = 'Google_Service_Books_VolumeUserInfo';
4820
  protected $userInfoDataType = '';
4821
- protected $volumeInfoType = 'Google_Service_Books_VolumeVolumeInfo';
4822
  protected $volumeInfoDataType = '';
4823
 
4824
- public function setAccessInfo(Google_Service_Books_VolumeAccessInfo $accessInfo)
4825
  {
4826
  $this->accessInfo = $accessInfo;
4827
  }
@@ -4861,7 +4861,7 @@ class Google_Service_Books_Volume extends Google_Model
4861
  return $this->kind;
4862
  }
4863
 
4864
- public function setLayerInfo(Google_Service_Books_VolumeLayerInfo $layerInfo)
4865
  {
4866
  $this->layerInfo = $layerInfo;
4867
  }
@@ -4871,7 +4871,7 @@ class Google_Service_Books_Volume extends Google_Model
4871
  return $this->layerInfo;
4872
  }
4873
 
4874
- public function setRecommendedInfo(Google_Service_Books_VolumeRecommendedInfo $recommendedInfo)
4875
  {
4876
  $this->recommendedInfo = $recommendedInfo;
4877
  }
@@ -4881,7 +4881,7 @@ class Google_Service_Books_Volume extends Google_Model
4881
  return $this->recommendedInfo;
4882
  }
4883
 
4884
- public function setSaleInfo(Google_Service_Books_VolumeSaleInfo $saleInfo)
4885
  {
4886
  $this->saleInfo = $saleInfo;
4887
  }
@@ -4891,7 +4891,7 @@ class Google_Service_Books_Volume extends Google_Model
4891
  return $this->saleInfo;
4892
  }
4893
 
4894
- public function setSearchInfo(Google_Service_Books_VolumeSearchInfo $searchInfo)
4895
  {
4896
  $this->searchInfo = $searchInfo;
4897
  }
@@ -4911,7 +4911,7 @@ class Google_Service_Books_Volume extends Google_Model
4911
  return $this->selfLink;
4912
  }
4913
 
4914
- public function setUserInfo(Google_Service_Books_VolumeUserInfo $userInfo)
4915
  {
4916
  $this->userInfo = $userInfo;
4917
  }
@@ -4921,7 +4921,7 @@ class Google_Service_Books_Volume extends Google_Model
4921
  return $this->userInfo;
4922
  }
4923
 
4924
- public function setVolumeInfo(Google_Service_Books_VolumeVolumeInfo $volumeInfo)
4925
  {
4926
  $this->volumeInfo = $volumeInfo;
4927
  }
@@ -4932,18 +4932,18 @@ class Google_Service_Books_Volume extends Google_Model
4932
  }
4933
  }
4934
 
4935
- class Google_Service_Books_VolumeAccessInfo extends Google_Model
4936
  {
4937
  public $accessViewStatus;
4938
  public $country;
4939
- protected $downloadAccessType = 'Google_Service_Books_DownloadAccessRestriction';
4940
  protected $downloadAccessDataType = '';
4941
  public $driveImportedContentLink;
4942
  public $embeddable;
4943
- protected $epubType = 'Google_Service_Books_VolumeAccessInfoEpub';
4944
  protected $epubDataType = '';
4945
  public $explicitOfflineLicenseManagement;
4946
- protected $pdfType = 'Google_Service_Books_VolumeAccessInfoPdf';
4947
  protected $pdfDataType = '';
4948
  public $publicDomain;
4949
  public $quoteSharingAllowed;
@@ -4972,7 +4972,7 @@ class Google_Service_Books_VolumeAccessInfo extends Google_Model
4972
  return $this->country;
4973
  }
4974
 
4975
- public function setDownloadAccess(Google_Service_Books_DownloadAccessRestriction $downloadAccess)
4976
  {
4977
  $this->downloadAccess = $downloadAccess;
4978
  }
@@ -5002,7 +5002,7 @@ class Google_Service_Books_VolumeAccessInfo extends Google_Model
5002
  return $this->embeddable;
5003
  }
5004
 
5005
- public function setEpub(Google_Service_Books_VolumeAccessInfoEpub $epub)
5006
  {
5007
  $this->epub = $epub;
5008
  }
@@ -5022,7 +5022,7 @@ class Google_Service_Books_VolumeAccessInfo extends Google_Model
5022
  return $this->explicitOfflineLicenseManagement;
5023
  }
5024
 
5025
- public function setPdf(Google_Service_Books_VolumeAccessInfoPdf $pdf)
5026
  {
5027
  $this->pdf = $pdf;
5028
  }
@@ -5093,7 +5093,7 @@ class Google_Service_Books_VolumeAccessInfo extends Google_Model
5093
  }
5094
  }
5095
 
5096
- class Google_Service_Books_VolumeAccessInfoEpub extends Google_Model
5097
  {
5098
  public $acsTokenLink;
5099
  public $downloadLink;
@@ -5130,7 +5130,7 @@ class Google_Service_Books_VolumeAccessInfoEpub extends Google_Model
5130
  }
5131
  }
5132
 
5133
- class Google_Service_Books_VolumeAccessInfoPdf extends Google_Model
5134
  {
5135
  public $acsTokenLink;
5136
  public $downloadLink;
@@ -5167,9 +5167,9 @@ class Google_Service_Books_VolumeAccessInfoPdf extends Google_Model
5167
  }
5168
  }
5169
 
5170
- class Google_Service_Books_VolumeLayerInfo extends Google_Collection
5171
  {
5172
- protected $layersType = 'Google_Service_Books_VolumeLayerInfoLayers';
5173
  protected $layersDataType = 'array';
5174
 
5175
  public function setLayers($layers)
@@ -5183,7 +5183,7 @@ class Google_Service_Books_VolumeLayerInfo extends Google_Collection
5183
  }
5184
  }
5185
 
5186
- class Google_Service_Books_VolumeLayerInfoLayers extends Google_Model
5187
  {
5188
  public $layerId;
5189
  public $volumeAnnotationsVersion;
@@ -5209,7 +5209,7 @@ class Google_Service_Books_VolumeLayerInfoLayers extends Google_Model
5209
  }
5210
  }
5211
 
5212
- class Google_Service_Books_VolumeRecommendedInfo extends Google_Model
5213
  {
5214
  public $explanation;
5215
 
@@ -5224,17 +5224,17 @@ class Google_Service_Books_VolumeRecommendedInfo extends Google_Model
5224
  }
5225
  }
5226
 
5227
- class Google_Service_Books_VolumeSaleInfo extends Google_Collection
5228
  {
5229
  public $buyLink;
5230
  public $country;
5231
  public $isEbook;
5232
- protected $listPriceType = 'Google_Service_Books_VolumeSaleInfoListPrice';
5233
  protected $listPriceDataType = '';
5234
- protected $offersType = 'Google_Service_Books_VolumeSaleInfoOffers';
5235
  protected $offersDataType = 'array';
5236
  public $onSaleDate;
5237
- protected $retailPriceType = 'Google_Service_Books_VolumeSaleInfoRetailPrice';
5238
  protected $retailPriceDataType = '';
5239
  public $saleability;
5240
 
@@ -5268,7 +5268,7 @@ class Google_Service_Books_VolumeSaleInfo extends Google_Collection
5268
  return $this->isEbook;
5269
  }
5270
 
5271
- public function setListPrice(Google_Service_Books_VolumeSaleInfoListPrice $listPrice)
5272
  {
5273
  $this->listPrice = $listPrice;
5274
  }
@@ -5298,7 +5298,7 @@ class Google_Service_Books_VolumeSaleInfo extends Google_Collection
5298
  return $this->onSaleDate;
5299
  }
5300
 
5301
- public function setRetailPrice(Google_Service_Books_VolumeSaleInfoRetailPrice $retailPrice)
5302
  {
5303
  $this->retailPrice = $retailPrice;
5304
  }
@@ -5319,7 +5319,7 @@ class Google_Service_Books_VolumeSaleInfo extends Google_Collection
5319
  }
5320
  }
5321
 
5322
- class Google_Service_Books_VolumeSaleInfoListPrice extends Google_Model
5323
  {
5324
  public $amount;
5325
  public $currencyCode;
@@ -5345,14 +5345,14 @@ class Google_Service_Books_VolumeSaleInfoListPrice extends Google_Model
5345
  }
5346
  }
5347
 
5348
- class Google_Service_Books_VolumeSaleInfoOffers extends Google_Model
5349
  {
5350
  public $finskyOfferType;
5351
- protected $listPriceType = 'Google_Service_Books_VolumeSaleInfoOffersListPrice';
5352
  protected $listPriceDataType = '';
5353
- protected $rentalDurationType = 'Google_Service_Books_VolumeSaleInfoOffersRentalDuration';
5354
  protected $rentalDurationDataType = '';
5355
- protected $retailPriceType = 'Google_Service_Books_VolumeSaleInfoOffersRetailPrice';
5356
  protected $retailPriceDataType = '';
5357
 
5358
  public function setFinskyOfferType($finskyOfferType)
@@ -5365,7 +5365,7 @@ class Google_Service_Books_VolumeSaleInfoOffers extends Google_Model
5365
  return $this->finskyOfferType;
5366
  }
5367
 
5368
- public function setListPrice(Google_Service_Books_VolumeSaleInfoOffersListPrice $listPrice)
5369
  {
5370
  $this->listPrice = $listPrice;
5371
  }
@@ -5375,7 +5375,7 @@ class Google_Service_Books_VolumeSaleInfoOffers extends Google_Model
5375
  return $this->listPrice;
5376
  }
5377
 
5378
- public function setRentalDuration(Google_Service_Books_VolumeSaleInfoOffersRentalDuration $rentalDuration)
5379
  {
5380
  $this->rentalDuration = $rentalDuration;
5381
  }
@@ -5385,7 +5385,7 @@ class Google_Service_Books_VolumeSaleInfoOffers extends Google_Model
5385
  return $this->rentalDuration;
5386
  }
5387
 
5388
- public function setRetailPrice(Google_Service_Books_VolumeSaleInfoOffersRetailPrice $retailPrice)
5389
  {
5390
  $this->retailPrice = $retailPrice;
5391
  }
@@ -5396,7 +5396,7 @@ class Google_Service_Books_VolumeSaleInfoOffers extends Google_Model
5396
  }
5397
  }
5398
 
5399
- class Google_Service_Books_VolumeSaleInfoOffersListPrice extends Google_Model
5400
  {
5401
  public $amountInMicros;
5402
  public $currencyCode;
@@ -5422,7 +5422,7 @@ class Google_Service_Books_VolumeSaleInfoOffersListPrice extends Google_Model
5422
  }
5423
  }
5424
 
5425
- class Google_Service_Books_VolumeSaleInfoOffersRentalDuration extends Google_Model
5426
  {
5427
  public $count;
5428
  public $unit;
@@ -5448,7 +5448,7 @@ class Google_Service_Books_VolumeSaleInfoOffersRentalDuration extends Google_Mod
5448
  }
5449
  }
5450
 
5451
- class Google_Service_Books_VolumeSaleInfoOffersRetailPrice extends Google_Model
5452
  {
5453
  public $amountInMicros;
5454
  public $currencyCode;
@@ -5474,7 +5474,7 @@ class Google_Service_Books_VolumeSaleInfoOffersRetailPrice extends Google_Model
5474
  }
5475
  }
5476
 
5477
- class Google_Service_Books_VolumeSaleInfoRetailPrice extends Google_Model
5478
  {
5479
  public $amount;
5480
  public $currencyCode;
@@ -5500,7 +5500,7 @@ class Google_Service_Books_VolumeSaleInfoRetailPrice extends Google_Model
5500
  }
5501
  }
5502
 
5503
- class Google_Service_Books_VolumeSearchInfo extends Google_Model
5504
  {
5505
  public $textSnippet;
5506
 
@@ -5515,26 +5515,26 @@ class Google_Service_Books_VolumeSearchInfo extends Google_Model
5515
  }
5516
  }
5517
 
5518
- class Google_Service_Books_VolumeUserInfo extends Google_Model
5519
  {
5520
- protected $copyType = 'Google_Service_Books_VolumeUserInfoCopy';
5521
  protected $copyDataType = '';
5522
  public $isInMyBooks;
5523
  public $isPreordered;
5524
  public $isPurchased;
5525
  public $isUploaded;
5526
- protected $readingPositionType = 'Google_Service_Books_ReadingPosition';
5527
  protected $readingPositionDataType = '';
5528
- protected $rentalPeriodType = 'Google_Service_Books_VolumeUserInfoRentalPeriod';
5529
  protected $rentalPeriodDataType = '';
5530
  public $rentalState;
5531
- protected $reviewType = 'Google_Service_Books_Review';
5532
  protected $reviewDataType = '';
5533
  public $updated;
5534
- protected $userUploadedVolumeInfoType = 'Google_Service_Books_VolumeUserInfoUserUploadedVolumeInfo';
5535
  protected $userUploadedVolumeInfoDataType = '';
5536
 
5537
- public function setCopy(Google_Service_Books_VolumeUserInfoCopy $copy)
5538
  {
5539
  $this->copy = $copy;
5540
  }
@@ -5584,7 +5584,7 @@ class Google_Service_Books_VolumeUserInfo extends Google_Model
5584
  return $this->isUploaded;
5585
  }
5586
 
5587
- public function setReadingPosition(Google_Service_Books_ReadingPosition $readingPosition)
5588
  {
5589
  $this->readingPosition = $readingPosition;
5590
  }
@@ -5594,7 +5594,7 @@ class Google_Service_Books_VolumeUserInfo extends Google_Model
5594
  return $this->readingPosition;
5595
  }
5596
 
5597
- public function setRentalPeriod(Google_Service_Books_VolumeUserInfoRentalPeriod $rentalPeriod)
5598
  {
5599
  $this->rentalPeriod = $rentalPeriod;
5600
  }
@@ -5614,7 +5614,7 @@ class Google_Service_Books_VolumeUserInfo extends Google_Model
5614
  return $this->rentalState;
5615
  }
5616
 
5617
- public function setReview(Google_Service_Books_Review $review)
5618
  {
5619
  $this->review = $review;
5620
  }
@@ -5634,7 +5634,7 @@ class Google_Service_Books_VolumeUserInfo extends Google_Model
5634
  return $this->updated;
5635
  }
5636
 
5637
- public function setUserUploadedVolumeInfo(Google_Service_Books_VolumeUserInfoUserUploadedVolumeInfo $userUploadedVolumeInfo)
5638
  {
5639
  $this->userUploadedVolumeInfo = $userUploadedVolumeInfo;
5640
  }
@@ -5645,7 +5645,7 @@ class Google_Service_Books_VolumeUserInfo extends Google_Model
5645
  }
5646
  }
5647
 
5648
- class Google_Service_Books_VolumeUserInfoCopy extends Google_Model
5649
  {
5650
  public $allowedCharacterCount;
5651
  public $limitType;
@@ -5693,7 +5693,7 @@ class Google_Service_Books_VolumeUserInfoCopy extends Google_Model
5693
  }
5694
  }
5695
 
5696
- class Google_Service_Books_VolumeUserInfoRentalPeriod extends Google_Model
5697
  {
5698
  public $endUtcSec;
5699
  public $startUtcSec;
@@ -5719,7 +5719,7 @@ class Google_Service_Books_VolumeUserInfoRentalPeriod extends Google_Model
5719
  }
5720
  }
5721
 
5722
- class Google_Service_Books_VolumeUserInfoUserUploadedVolumeInfo extends Google_Model
5723
  {
5724
  public $processingState;
5725
 
@@ -5734,7 +5734,7 @@ class Google_Service_Books_VolumeUserInfoUserUploadedVolumeInfo extends Google_M
5734
  }
5735
  }
5736
 
5737
- class Google_Service_Books_VolumeVolumeInfo extends Google_Collection
5738
  {
5739
  public $authors;
5740
  public $averageRating;
@@ -5742,11 +5742,11 @@ class Google_Service_Books_VolumeVolumeInfo extends Google_Collection
5742
  public $categories;
5743
  public $contentVersion;
5744
  public $description;
5745
- protected $dimensionsType = 'Google_Service_Books_VolumeVolumeInfoDimensions';
5746
  protected $dimensionsDataType = '';
5747
- protected $imageLinksType = 'Google_Service_Books_VolumeVolumeInfoImageLinks';
5748
  protected $imageLinksDataType = '';
5749
- protected $industryIdentifiersType = 'Google_Service_Books_VolumeVolumeInfoIndustryIdentifiers';
5750
  protected $industryIdentifiersDataType = 'array';
5751
  public $infoLink;
5752
  public $language;
@@ -5821,7 +5821,7 @@ class Google_Service_Books_VolumeVolumeInfo extends Google_Collection
5821
  return $this->description;
5822
  }
5823
 
5824
- public function setDimensions(Google_Service_Books_VolumeVolumeInfoDimensions $dimensions)
5825
  {
5826
  $this->dimensions = $dimensions;
5827
  }
@@ -5831,7 +5831,7 @@ class Google_Service_Books_VolumeVolumeInfo extends Google_Collection
5831
  return $this->dimensions;
5832
  }
5833
 
5834
- public function setImageLinks(Google_Service_Books_VolumeVolumeInfoImageLinks $imageLinks)
5835
  {
5836
  $this->imageLinks = $imageLinks;
5837
  }
@@ -5972,7 +5972,7 @@ class Google_Service_Books_VolumeVolumeInfo extends Google_Collection
5972
  }
5973
  }
5974
 
5975
- class Google_Service_Books_VolumeVolumeInfoDimensions extends Google_Model
5976
  {
5977
  public $height;
5978
  public $thickness;
@@ -6009,7 +6009,7 @@ class Google_Service_Books_VolumeVolumeInfoDimensions extends Google_Model
6009
  }
6010
  }
6011
 
6012
- class Google_Service_Books_VolumeVolumeInfoImageLinks extends Google_Model
6013
  {
6014
  public $extraLarge;
6015
  public $large;
@@ -6079,7 +6079,7 @@ class Google_Service_Books_VolumeVolumeInfoImageLinks extends Google_Model
6079
  }
6080
  }
6081
 
6082
- class Google_Service_Books_VolumeVolumeInfoIndustryIdentifiers extends Google_Model
6083
  {
6084
  public $identifier;
6085
  public $type;
@@ -6105,12 +6105,12 @@ class Google_Service_Books_VolumeVolumeInfoIndustryIdentifiers extends Google_Mo
6105
  }
6106
  }
6107
 
6108
- class Google_Service_Books_Volumeannotation extends Google_Collection
6109
  {
6110
  public $annotationDataId;
6111
  public $annotationDataLink;
6112
  public $annotationType;
6113
- protected $contentRangesType = 'Google_Service_Books_VolumeannotationContentRanges';
6114
  protected $contentRangesDataType = '';
6115
  public $data;
6116
  public $deleted;
@@ -6153,7 +6153,7 @@ class Google_Service_Books_Volumeannotation extends Google_Collection
6153
  return $this->annotationType;
6154
  }
6155
 
6156
- public function setContentRanges(Google_Service_Books_VolumeannotationContentRanges $contentRanges)
6157
  {
6158
  $this->contentRanges = $contentRanges;
6159
  }
@@ -6264,17 +6264,17 @@ class Google_Service_Books_Volumeannotation extends Google_Collection
6264
  }
6265
  }
6266
 
6267
- class Google_Service_Books_VolumeannotationContentRanges extends Google_Model
6268
  {
6269
- protected $cfiRangeType = 'Google_Service_Books_BooksAnnotationsRange';
6270
  protected $cfiRangeDataType = '';
6271
  public $contentVersion;
6272
- protected $gbImageRangeType = 'Google_Service_Books_BooksAnnotationsRange';
6273
  protected $gbImageRangeDataType = '';
6274
- protected $gbTextRangeType = 'Google_Service_Books_BooksAnnotationsRange';
6275
  protected $gbTextRangeDataType = '';
6276
 
6277
- public function setCfiRange(Google_Service_Books_BooksAnnotationsRange $cfiRange)
6278
  {
6279
  $this->cfiRange = $cfiRange;
6280
  }
@@ -6294,7 +6294,7 @@ class Google_Service_Books_VolumeannotationContentRanges extends Google_Model
6294
  return $this->contentVersion;
6295
  }
6296
 
6297
- public function setGbImageRange(Google_Service_Books_BooksAnnotationsRange $gbImageRange)
6298
  {
6299
  $this->gbImageRange = $gbImageRange;
6300
  }
@@ -6304,7 +6304,7 @@ class Google_Service_Books_VolumeannotationContentRanges extends Google_Model
6304
  return $this->gbImageRange;
6305
  }
6306
 
6307
- public function setGbTextRange(Google_Service_Books_BooksAnnotationsRange $gbTextRange)
6308
  {
6309
  $this->gbTextRange = $gbTextRange;
6310
  }
@@ -6315,9 +6315,9 @@ class Google_Service_Books_VolumeannotationContentRanges extends Google_Model
6315
  }
6316
  }
6317
 
6318
- class Google_Service_Books_Volumeannotations extends Google_Collection
6319
  {
6320
- protected $itemsType = 'Google_Service_Books_Volumeannotation';
6321
  protected $itemsDataType = 'array';
6322
  public $kind;
6323
  public $nextPageToken;
@@ -6375,9 +6375,9 @@ class Google_Service_Books_Volumeannotations extends Google_Collection
6375
  }
6376
  }
6377
 
6378
- class Google_Service_Books_Volumes extends Google_Collection
6379
  {
6380
- protected $itemsType = 'Google_Service_Books_Volume';
6381
  protected $itemsDataType = 'array';
6382
  public $kind;
6383
  public $totalItems;
29
  *
30
  * @author Google, Inc.
31
  */
32
+ class GoogleGAL_Service_Books extends GoogleGAL_Service
33
  {
34
  /** Manage your books. */
35
  const BOOKS = "https://www.googleapis.com/auth/books";
55
  /**
56
  * Constructs the internal representation of the Books service.
57
  *
58
+ * @param GoogleGAL_Client $client
59
  */
60
+ public function __construct(GoogleGAL_Client $client)
61
  {
62
  parent::__construct($client);
63
  $this->servicePath = 'books/v1/';
64
  $this->version = 'v1';
65
  $this->serviceName = 'books';
66
 
67
+ $this->bookshelves = new GoogleGAL_Service_Books_Bookshelves_Resource(
68
  $this,
69
  $this->serviceName,
70
  'bookshelves',
107
  )
108
  )
109
  );
110
+ $this->bookshelves_volumes = new GoogleGAL_Service_Books_BookshelvesVolumes_Resource(
111
  $this,
112
  $this->serviceName,
113
  'volumes',
148
  )
149
  )
150
  );
151
+ $this->cloudloading = new GoogleGAL_Service_Books_Cloudloading_Resource(
152
  $this,
153
  $this->serviceName,
154
  'cloudloading',
193
  )
194
  )
195
  );
196
+ $this->layers = new GoogleGAL_Service_Books_Layers_Resource(
197
  $this,
198
  $this->serviceName,
199
  'layers',
252
  )
253
  )
254
  );
255
+ $this->layers_annotationData = new GoogleGAL_Service_Books_LayersAnnotationData_Resource(
256
  $this,
257
  $this->serviceName,
258
  'annotationData',
372
  )
373
  )
374
  );
375
+ $this->layers_volumeAnnotations = new GoogleGAL_Service_Books_LayersVolumeAnnotations_Resource(
376
  $this,
377
  $this->serviceName,
378
  'volumeAnnotations',
478
  )
479
  )
480
  );
481
+ $this->myconfig = new GoogleGAL_Service_Books_Myconfig_Resource(
482
  $this,
483
  $this->serviceName,
484
  'myconfig',
583
  )
584
  )
585
  );
586
+ $this->mylibrary_annotations = new GoogleGAL_Service_Books_MylibraryAnnotations_Resource(
587
  $this,
588
  $this->serviceName,
589
  'annotations',
715
  )
716
  )
717
  );
718
+ $this->mylibrary_bookshelves = new GoogleGAL_Service_Books_MylibraryBookshelves_Resource(
719
  $this,
720
  $this->serviceName,
721
  'bookshelves',
824
  )
825
  )
826
  );
827
+ $this->mylibrary_bookshelves_volumes = new GoogleGAL_Service_Books_MylibraryBookshelvesVolumes_Resource(
828
  $this,
829
  $this->serviceName,
830
  'volumes',
872
  )
873
  )
874
  );
875
+ $this->mylibrary_readingpositions = new GoogleGAL_Service_Books_MylibraryReadingpositions_Resource(
876
  $this,
877
  $this->serviceName,
878
  'readingpositions',
936
  )
937
  )
938
  );
939
+ $this->volumes = new GoogleGAL_Service_Books_Volumes_Resource(
940
  $this,
941
  $this->serviceName,
942
  'volumes',
1030
  )
1031
  )
1032
  );
1033
+ $this->volumes_associated = new GoogleGAL_Service_Books_VolumesAssociated_Resource(
1034
  $this,
1035
  $this->serviceName,
1036
  'associated',
1062
  )
1063
  )
1064
  );
1065
+ $this->volumes_mybooks = new GoogleGAL_Service_Books_VolumesMybooks_Resource(
1066
  $this,
1067
  $this->serviceName,
1068
  'mybooks',
1103
  )
1104
  )
1105
  );
1106
+ $this->volumes_recommended = new GoogleGAL_Service_Books_VolumesRecommended_Resource(
1107
  $this,
1108
  $this->serviceName,
1109
  'recommended',
1149
  )
1150
  )
1151
  );
1152
+ $this->volumes_useruploaded = new GoogleGAL_Service_Books_VolumesUseruploaded_Resource(
1153
  $this,
1154
  $this->serviceName,
1155
  'useruploaded',
1198
  * The "bookshelves" collection of methods.
1199
  * Typical usage is:
1200
  * <code>
1201
+ * $booksService = new GoogleGAL_Service_Books(...);
1202
  * $bookshelves = $booksService->bookshelves;
1203
  * </code>
1204
  */
1205
+ class GoogleGAL_Service_Books_Bookshelves_Resource extends GoogleGAL_Service_Resource
1206
  {
1207
 
1208
  /**
1217
  *
1218
  * @opt_param string source
1219
  * String to identify the originator of this request.
1220
+ * @return GoogleGAL_Service_Books_Bookshelf
1221
  */
1222
  public function get($userId, $shelf, $optParams = array())
1223
  {
1224
  $params = array('userId' => $userId, 'shelf' => $shelf);
1225
  $params = array_merge($params, $optParams);
1226
+ return $this->call('get', array($params), "GoogleGAL_Service_Books_Bookshelf");
1227
  }
1228
  /**
1229
  * Retrieves a list of public bookshelves for the specified user.
1235
  *
1236
  * @opt_param string source
1237
  * String to identify the originator of this request.
1238
+ * @return GoogleGAL_Service_Books_Bookshelves
1239
  */
1240
  public function listBookshelves($userId, $optParams = array())
1241
  {
1242
  $params = array('userId' => $userId);
1243
  $params = array_merge($params, $optParams);
1244
+ return $this->call('list', array($params), "GoogleGAL_Service_Books_Bookshelves");
1245
  }
1246
  }
1247
 
1249
  * The "volumes" collection of methods.
1250
  * Typical usage is:
1251
  * <code>
1252
+ * $booksService = new GoogleGAL_Service_Books(...);
1253
  * $volumes = $booksService->volumes;
1254
  * </code>
1255
  */
1256
+ class GoogleGAL_Service_Books_BookshelvesVolumes_Resource extends GoogleGAL_Service_Resource
1257
  {
1258
 
1259
  /**
1274
  * String to identify the originator of this request.
1275
  * @opt_param string startIndex
1276
  * Index of the first element to return (starts at 0)
1277
+ * @return GoogleGAL_Service_Books_Volumes
1278
  */
1279
  public function listBookshelvesVolumes($userId, $shelf, $optParams = array())
1280
  {
1281
  $params = array('userId' => $userId, 'shelf' => $shelf);
1282
  $params = array_merge($params, $optParams);
1283
+ return $this->call('list', array($params), "GoogleGAL_Service_Books_Volumes");
1284
  }
1285
  }
1286
 
1288
  * The "cloudloading" collection of methods.
1289
  * Typical usage is:
1290
  * <code>
1291
+ * $booksService = new GoogleGAL_Service_Books(...);
1292
  * $cloudloading = $booksService->cloudloading;
1293
  * </code>
1294
  */
1295
+ class GoogleGAL_Service_Books_Cloudloading_Resource extends GoogleGAL_Service_Resource
1296
  {
1297
 
1298
  /**
1308
  * The document MIME type. It can be set only if the drive_document_id is set.
1309
  * @opt_param string name
1310
  * The document name. It can be set only if the drive_document_id is set.
1311
+ * @return GoogleGAL_Service_Books_BooksCloudloadingResource
1312
  */
1313
  public function addBook($optParams = array())
1314
  {
1315
  $params = array();
1316
  $params = array_merge($params, $optParams);
1317
+ return $this->call('addBook', array($params), "GoogleGAL_Service_Books_BooksCloudloadingResource");
1318
  }
1319
  /**
1320
  * Remove the book and its contents (cloudloading.deleteBook)
1332
  /**
1333
  * (cloudloading.updateBook)
1334
  *
1335
+ * @param GoogleGAL_BooksCloudloadingResource $postBody
1336
  * @param array $optParams Optional parameters.
1337
+ * @return GoogleGAL_Service_Books_BooksCloudloadingResource
1338
  */
1339
+ public function updateBook(GoogleGAL_Service_Books_BooksCloudloadingResource $postBody, $optParams = array())
1340
  {
1341
  $params = array('postBody' => $postBody);
1342
  $params = array_merge($params, $optParams);
1343
+ return $this->call('updateBook', array($params), "GoogleGAL_Service_Books_BooksCloudloadingResource");
1344
  }
1345
  }
1346
 
1348
  * The "layers" collection of methods.
1349
  * Typical usage is:
1350
  * <code>
1351
+ * $booksService = new GoogleGAL_Service_Books(...);
1352
  * $layers = $booksService->layers;
1353
  * </code>
1354
  */
1355
+ class GoogleGAL_Service_Books_Layers_Resource extends GoogleGAL_Service_Resource
1356
  {
1357
 
1358
  /**
1368
  * String to identify the originator of this request.
1369
  * @opt_param string contentVersion
1370
  * The content version for the requested volume.
1371
+ * @return GoogleGAL_Service_Books_Layersummary
1372
  */
1373
  public function get($volumeId, $summaryId, $optParams = array())
1374
  {
1375
  $params = array('volumeId' => $volumeId, 'summaryId' => $summaryId);
1376
  $params = array_merge($params, $optParams);
1377
+ return $this->call('get', array($params), "GoogleGAL_Service_Books_Layersummary");
1378
  }
1379
  /**
1380
  * List the layer summaries for a volume. (layers.listLayers)
1391
  * Maximum number of results to return
1392
  * @opt_param string source
1393
  * String to identify the originator of this request.
1394
+ * @return GoogleGAL_Service_Books_Layersummaries
1395
  */
1396
  public function listLayers($volumeId, $optParams = array())
1397
  {
1398
  $params = array('volumeId' => $volumeId);
1399
  $params = array_merge($params, $optParams);
1400
+ return $this->call('list', array($params), "GoogleGAL_Service_Books_Layersummaries");
1401
  }
1402
  }
1403
 
1405
  * The "annotationData" collection of methods.
1406
  * Typical usage is:
1407
  * <code>
1408
+ * $booksService = new GoogleGAL_Service_Books(...);
1409
  * $annotationData = $booksService->annotationData;
1410
  * </code>
1411
  */
1412
+ class GoogleGAL_Service_Books_LayersAnnotationData_Resource extends GoogleGAL_Service_Resource
1413
  {
1414
 
1415
  /**
1438
  * 'en_US'.
1439
  * @opt_param int w
1440
  * The requested pixel width for any images. If width is provided height must also be provided.
1441
+ * @return GoogleGAL_Service_Books_Annotationdata
1442
  */
1443
  public function get($volumeId, $layerId, $annotationDataId, $contentVersion, $optParams = array())
1444
  {
1445
  $params = array('volumeId' => $volumeId, 'layerId' => $layerId, 'annotationDataId' => $annotationDataId, 'contentVersion' => $contentVersion);
1446
  $params = array_merge($params, $optParams);
1447
+ return $this->call('get', array($params), "GoogleGAL_Service_Books_Annotationdata");
1448
  }
1449
  /**
1450
  * Gets the annotation data for a volume and layer.
1479
  * The requested pixel width for any images. If width is provided height must also be provided.
1480
  * @opt_param string updatedMin
1481
  * RFC 3339 timestamp to restrict to items updated since this timestamp (inclusive).
1482
+ * @return GoogleGAL_Service_Books_Annotationsdata
1483
  */
1484
  public function listLayersAnnotationData($volumeId, $layerId, $contentVersion, $optParams = array())
1485
  {
1486
  $params = array('volumeId' => $volumeId, 'layerId' => $layerId, 'contentVersion' => $contentVersion);
1487
  $params = array_merge($params, $optParams);
1488
+ return $this->call('list', array($params), "GoogleGAL_Service_Books_Annotationsdata");
1489
  }
1490
  }
1491
  /**
1492
  * The "volumeAnnotations" collection of methods.
1493
  * Typical usage is:
1494
  * <code>
1495
+ * $booksService = new GoogleGAL_Service_Books(...);
1496
  * $volumeAnnotations = $booksService->volumeAnnotations;
1497
  * </code>
1498
  */
1499
+ class GoogleGAL_Service_Books_LayersVolumeAnnotations_Resource extends GoogleGAL_Service_Resource
1500
  {
1501
 
1502
  /**
1515
  * 'en_US'.
1516
  * @opt_param string source
1517
  * String to identify the originator of this request.
1518
+ * @return GoogleGAL_Service_Books_Volumeannotation
1519
  */
1520
  public function get($volumeId, $layerId, $annotationId, $optParams = array())
1521
  {
1522
  $params = array('volumeId' => $volumeId, 'layerId' => $layerId, 'annotationId' => $annotationId);
1523
  $params = array_merge($params, $optParams);
1524
+ return $this->call('get', array($params), "GoogleGAL_Service_Books_Volumeannotation");
1525
  }
1526
  /**
1527
  * Gets the volume annotations for a volume and layer.
1561
  * The start offset to start retrieving data from.
1562
  * @opt_param string startPosition
1563
  * The start position to start retrieving data from.
1564
+ * @return GoogleGAL_Service_Books_Volumeannotations
1565
  */
1566
  public function listLayersVolumeAnnotations($volumeId, $layerId, $contentVersion, $optParams = array())
1567
  {
1568
  $params = array('volumeId' => $volumeId, 'layerId' => $layerId, 'contentVersion' => $contentVersion);
1569
  $params = array_merge($params, $optParams);
1570
+ return $this->call('list', array($params), "GoogleGAL_Service_Books_Volumeannotations");
1571
  }
1572
  }
1573
 
1575
  * The "myconfig" collection of methods.
1576
  * Typical usage is:
1577
  * <code>
1578
+ * $booksService = new GoogleGAL_Service_Books(...);
1579
  * $myconfig = $booksService->myconfig;
1580
  * </code>
1581
  */
1582
+ class GoogleGAL_Service_Books_Myconfig_Resource extends GoogleGAL_Service_Resource
1583
  {
1584
 
1585
  /**
1596
  * ISO-639-1, ISO-3166-1 codes for message localization, i.e. en_US.
1597
  * @opt_param string source
1598
  * String to identify the originator of this request.
1599
+ * @return GoogleGAL_Service_Books_DownloadAccesses
1600
  */
1601
  public function releaseDownloadAccess($volumeIds, $cpksver, $optParams = array())
1602
  {
1603
  $params = array('volumeIds' => $volumeIds, 'cpksver' => $cpksver);
1604
  $params = array_merge($params, $optParams);
1605
+ return $this->call('releaseDownloadAccess', array($params), "GoogleGAL_Service_Books_DownloadAccesses");
1606
  }
1607
  /**
1608
  * Request concurrent and download access restrictions. (myconfig.requestAccess)
1621
  * The type of access license to request. If not specified, the default is BOTH.
1622
  * @opt_param string locale
1623
  * ISO-639-1, ISO-3166-1 codes for message localization, i.e. en_US.
1624
+ * @return GoogleGAL_Service_Books_RequestAccess
1625
  */
1626
  public function requestAccess($source, $volumeId, $nonce, $cpksver, $optParams = array())
1627
  {
1628
  $params = array('source' => $source, 'volumeId' => $volumeId, 'nonce' => $nonce, 'cpksver' => $cpksver);
1629
  $params = array_merge($params, $optParams);
1630
+ return $this->call('requestAccess', array($params), "GoogleGAL_Service_Books_RequestAccess");
1631
  }
1632
  /**
1633
  * Request downloaded content access for specified volumes on the My eBooks
1649
  * Set to true to show pre-ordered books. Defaults to false.
1650
  * @opt_param string volumeIds
1651
  * The volume(s) to request download restrictions for.
1652
+ * @return GoogleGAL_Service_Books_Volumes
1653
  */
1654
  public function syncVolumeLicenses($source, $nonce, $cpksver, $optParams = array())
1655
  {
1656
  $params = array('source' => $source, 'nonce' => $nonce, 'cpksver' => $cpksver);
1657
  $params = array_merge($params, $optParams);
1658
+ return $this->call('syncVolumeLicenses', array($params), "GoogleGAL_Service_Books_Volumes");
1659
  }
1660
  }
1661
 
1663
  * The "mylibrary" collection of methods.
1664
  * Typical usage is:
1665
  * <code>
1666
+ * $booksService = new GoogleGAL_Service_Books(...);
1667
  * $mylibrary = $booksService->mylibrary;
1668
  * </code>
1669
  */
1670
+ class GoogleGAL_Service_Books_Mylibrary_Resource extends GoogleGAL_Service_Resource
1671
  {
1672
 
1673
  }
1676
  * The "annotations" collection of methods.
1677
  * Typical usage is:
1678
  * <code>
1679
+ * $booksService = new GoogleGAL_Service_Books(...);
1680
  * $annotations = $booksService->annotations;
1681
  * </code>
1682
  */
1683
+ class GoogleGAL_Service_Books_MylibraryAnnotations_Resource extends GoogleGAL_Service_Resource
1684
  {
1685
 
1686
  /**
1708
  *
1709
  * @opt_param string source
1710
  * String to identify the originator of this request.
1711
+ * @return GoogleGAL_Service_Books_Annotation
1712
  */
1713
  public function get($annotationId, $optParams = array())
1714
  {
1715
  $params = array('annotationId' => $annotationId);
1716
  $params = array_merge($params, $optParams);
1717
+ return $this->call('get', array($params), "GoogleGAL_Service_Books_Annotation");
1718
  }
1719
  /**
1720
  * Inserts a new annotation. (annotations.insert)
1721
  *
1722
+ * @param GoogleGAL_Annotation $postBody
1723
  * @param array $optParams Optional parameters.
1724
  *
1725
  * @opt_param string source
1726
  * String to identify the originator of this request.
1727
  * @opt_param bool showOnlySummaryInResponse
1728
  * Requests that only the summary of the specified layer be provided in the response.
1729
+ * @return GoogleGAL_Service_Books_Annotation
1730
  */
1731
+ public function insert(GoogleGAL_Service_Books_Annotation $postBody, $optParams = array())
1732
  {
1733
  $params = array('postBody' => $postBody);
1734
  $params = array_merge($params, $optParams);
1735
+ return $this->call('insert', array($params), "GoogleGAL_Service_Books_Annotation");
1736
  }
1737
  /**
1738
  * Retrieves a list of annotations, possibly filtered.
1763
  * The layer ID to limit annotation by.
1764
  * @opt_param string updatedMax
1765
  * RFC 3339 timestamp to restrict to items updated prior to this timestamp (exclusive).
1766
+ * @return GoogleGAL_Service_Books_Annotations
1767
  */
1768
  public function listMylibraryAnnotations($optParams = array())
1769
  {
1770
  $params = array();
1771
  $params = array_merge($params, $optParams);
1772
+ return $this->call('list', array($params), "GoogleGAL_Service_Books_Annotations");
1773
  }
1774
  /**
1775
  * Gets the summary of specified layers. (annotations.summary)
1779
  * @param string $volumeId
1780
  * Volume id to get the summary for.
1781
  * @param array $optParams Optional parameters.
1782
+ * @return GoogleGAL_Service_Books_AnnotationsSummary
1783
  */
1784
  public function summary($layerIds, $volumeId, $optParams = array())
1785
  {
1786
  $params = array('layerIds' => $layerIds, 'volumeId' => $volumeId);
1787
  $params = array_merge($params, $optParams);
1788
+ return $this->call('summary', array($params), "GoogleGAL_Service_Books_AnnotationsSummary");
1789
  }
1790
  /**
1791
  * Updates an existing annotation. (annotations.update)
1792
  *
1793
  * @param string $annotationId
1794
  * The ID for the annotation to update.
1795
+ * @param GoogleGAL_Annotation $postBody
1796
  * @param array $optParams Optional parameters.
1797
  *
1798
  * @opt_param string source
1799
  * String to identify the originator of this request.
1800
+ * @return GoogleGAL_Service_Books_Annotation
1801
  */
1802
+ public function update($annotationId, GoogleGAL_Service_Books_Annotation $postBody, $optParams = array())
1803
  {
1804
  $params = array('annotationId' => $annotationId, 'postBody' => $postBody);
1805
  $params = array_merge($params, $optParams);
1806
+ return $this->call('update', array($params), "GoogleGAL_Service_Books_Annotation");
1807
  }
1808
  }
1809
  /**
1810
  * The "bookshelves" collection of methods.
1811
  * Typical usage is:
1812
  * <code>
1813
+ * $booksService = new GoogleGAL_Service_Books(...);
1814
  * $bookshelves = $booksService->bookshelves;
1815
  * </code>
1816
  */
1817
+ class GoogleGAL_Service_Books_MylibraryBookshelves_Resource extends GoogleGAL_Service_Resource
1818
  {
1819
 
1820
  /**
1861
  *
1862
  * @opt_param string source
1863
  * String to identify the originator of this request.
1864
+ * @return GoogleGAL_Service_Books_Bookshelf
1865
  */
1866
  public function get($shelf, $optParams = array())
1867
  {
1868
  $params = array('shelf' => $shelf);
1869
  $params = array_merge($params, $optParams);
1870
+ return $this->call('get', array($params), "GoogleGAL_Service_Books_Bookshelf");
1871
  }
1872
  /**
1873
  * Retrieves a list of bookshelves belonging to the authenticated user.
1877
  *
1878
  * @opt_param string source
1879
  * String to identify the originator of this request.
1880
+ * @return GoogleGAL_Service_Books_Bookshelves
1881
  */
1882
  public function listMylibraryBookshelves($optParams = array())
1883
  {
1884
  $params = array();
1885
  $params = array_merge($params, $optParams);
1886
+ return $this->call('list', array($params), "GoogleGAL_Service_Books_Bookshelves");
1887
  }
1888
  /**
1889
  * Moves a volume within a bookshelf. (bookshelves.moveVolume)
1930
  * The "volumes" collection of methods.
1931
  * Typical usage is:
1932
  * <code>
1933
+ * $booksService = new GoogleGAL_Service_Books(...);
1934
  * $volumes = $booksService->volumes;
1935
  * </code>
1936
  */
1937
+ class GoogleGAL_Service_Books_MylibraryBookshelvesVolumes_Resource extends GoogleGAL_Service_Resource
1938
  {
1939
 
1940
  /**
1959
  * String to identify the originator of this request.
1960
  * @opt_param string startIndex
1961
  * Index of the first element to return (starts at 0)
1962
+ * @return GoogleGAL_Service_Books_Volumes
1963
  */
1964
  public function listMylibraryBookshelvesVolumes($shelf, $optParams = array())
1965
  {
1966
  $params = array('shelf' => $shelf);
1967
  $params = array_merge($params, $optParams);
1968
+ return $this->call('list', array($params), "GoogleGAL_Service_Books_Volumes");
1969
  }
1970
  }
1971
  /**
1972
  * The "readingpositions" collection of methods.
1973
  * Typical usage is:
1974
  * <code>
1975
+ * $booksService = new GoogleGAL_Service_Books(...);
1976
  * $readingpositions = $booksService->readingpositions;
1977
  * </code>
1978
  */
1979
+ class GoogleGAL_Service_Books_MylibraryReadingpositions_Resource extends GoogleGAL_Service_Resource
1980
  {
1981
 
1982
  /**
1991
  * String to identify the originator of this request.
1992
  * @opt_param string contentVersion
1993
  * Volume content version for which this reading position is requested.
1994
+ * @return GoogleGAL_Service_Books_ReadingPosition
1995
  */
1996
  public function get($volumeId, $optParams = array())
1997
  {
1998
  $params = array('volumeId' => $volumeId);
1999
  $params = array_merge($params, $optParams);
2000
+ return $this->call('get', array($params), "GoogleGAL_Service_Books_ReadingPosition");
2001
  }
2002
  /**
2003
  * Sets my reading position information for a volume.
2032
  * The "volumes" collection of methods.
2033
  * Typical usage is:
2034
  * <code>
2035
+ * $booksService = new GoogleGAL_Service_Books(...);
2036
  * $volumes = $booksService->volumes;
2037
  * </code>
2038
  */
2039
+ class GoogleGAL_Service_Books_Volumes_Resource extends GoogleGAL_Service_Resource
2040
  {
2041
 
2042
  /**
2054
  * Restrict information returned to a set of selected fields.
2055
  * @opt_param string partner
2056
  * Brand results for partner ID.
2057
+ * @return GoogleGAL_Service_Books_Volume
2058
  */
2059
  public function get($volumeId, $optParams = array())
2060
  {
2061
  $params = array('volumeId' => $volumeId);
2062
  $params = array_merge($params, $optParams);
2063
+ return $this->call('get', array($params), "GoogleGAL_Service_Books_Volume");
2064
  }
2065
  /**
2066
  * Performs a book search. (volumes.listVolumes)
2093
  * Restrict to volumes by download availability.
2094
  * @opt_param string partner
2095
  * Restrict and brand results for partner ID.
2096
+ * @return GoogleGAL_Service_Books_Volumes
2097
  */
2098
  public function listVolumes($q, $optParams = array())
2099
  {
2100
  $params = array('q' => $q);
2101
  $params = array_merge($params, $optParams);
2102
+ return $this->call('list', array($params), "GoogleGAL_Service_Books_Volumes");
2103
  }
2104
  }
2105
 
2107
  * The "associated" collection of methods.
2108
  * Typical usage is:
2109
  * <code>
2110
+ * $booksService = new GoogleGAL_Service_Books(...);
2111
  * $associated = $booksService->associated;
2112
  * </code>
2113
  */
2114
+ class GoogleGAL_Service_Books_VolumesAssociated_Resource extends GoogleGAL_Service_Resource
2115
  {
2116
 
2117
  /**
2128
  * String to identify the originator of this request.
2129
  * @opt_param string association
2130
  * Association type.
2131
+ * @return GoogleGAL_Service_Books_Volumes
2132
  */
2133
  public function listVolumesAssociated($volumeId, $optParams = array())
2134
  {
2135
  $params = array('volumeId' => $volumeId);
2136
  $params = array_merge($params, $optParams);
2137
+ return $this->call('list', array($params), "GoogleGAL_Service_Books_Volumes");
2138
  }
2139
  }
2140
  /**
2141
  * The "mybooks" collection of methods.
2142
  * Typical usage is:
2143
  * <code>
2144
+ * $booksService = new GoogleGAL_Service_Books(...);
2145
  * $mybooks = $booksService->mybooks;
2146
  * </code>
2147
  */
2148
+ class GoogleGAL_Service_Books_VolumesMybooks_Resource extends GoogleGAL_Service_Resource
2149
  {
2150
 
2151
  /**
2166
  * @opt_param string processingState
2167
  * The processing state of the user uploaded volumes to be returned. Applicable only if the
2168
  * UPLOADED is specified in the acquireMethod.
2169
+ * @return GoogleGAL_Service_Books_Volumes
2170
  */
2171
  public function listVolumesMybooks($optParams = array())
2172
  {
2173
  $params = array();
2174
  $params = array_merge($params, $optParams);
2175
+ return $this->call('list', array($params), "GoogleGAL_Service_Books_Volumes");
2176
  }
2177
  }
2178
  /**
2179
  * The "recommended" collection of methods.
2180
  * Typical usage is:
2181
  * <code>
2182
+ * $booksService = new GoogleGAL_Service_Books(...);
2183
  * $recommended = $booksService->recommended;
2184
  * </code>
2185
  */
2186
+ class GoogleGAL_Service_Books_VolumesRecommended_Resource extends GoogleGAL_Service_Resource
2187
  {
2188
 
2189
  /**
2197
  * recommendations.
2198
  * @opt_param string source
2199
  * String to identify the originator of this request.
2200
+ * @return GoogleGAL_Service_Books_Volumes
2201
  */
2202
  public function listVolumesRecommended($optParams = array())
2203
  {
2204
  $params = array();
2205
  $params = array_merge($params, $optParams);
2206
+ return $this->call('list', array($params), "GoogleGAL_Service_Books_Volumes");
2207
  }
2208
  /**
2209
  * Rate a recommended book for the current user. (recommended.rate)
2219
  * recommendations.
2220
  * @opt_param string source
2221
  * String to identify the originator of this request.
2222
+ * @return GoogleGAL_Service_Books_BooksVolumesRecommendedRateResponse
2223
  */
2224
  public function rate($rating, $volumeId, $optParams = array())
2225
  {
2226
  $params = array('rating' => $rating, 'volumeId' => $volumeId);
2227
  $params = array_merge($params, $optParams);
2228
+ return $this->call('rate', array($params), "GoogleGAL_Service_Books_BooksVolumesRecommendedRateResponse");
2229
  }
2230
  }
2231
  /**
2232
  * The "useruploaded" collection of methods.
2233
  * Typical usage is:
2234
  * <code>
2235
+ * $booksService = new GoogleGAL_Service_Books(...);
2236
  * $useruploaded = $booksService->useruploaded;
2237
  * </code>
2238
  */
2239
+ class GoogleGAL_Service_Books_VolumesUseruploaded_Resource extends GoogleGAL_Service_Resource
2240
  {
2241
 
2242
  /**
2259
  * Index of the first result to return (starts at 0)
2260
  * @opt_param string processingState
2261
  * The processing state of the user uploaded volumes to be returned.
2262
+ * @return GoogleGAL_Service_Books_Volumes
2263
  */
2264
  public function listVolumesUseruploaded($optParams = array())
2265
  {
2266
  $params = array();
2267
  $params = array_merge($params, $optParams);
2268
+ return $this->call('list', array($params), "GoogleGAL_Service_Books_Volumes");
2269
  }
2270
  }
2271
 
2272
 
2273
 
2274
 
2275
+ class GoogleGAL_Service_Books_Annotation extends GoogleGAL_Collection
2276
  {
2277
  public $afterSelectedText;
2278
  public $beforeSelectedText;
2279
+ protected $clientVersionRangesType = 'GoogleGAL_Service_Books_AnnotationClientVersionRanges';
2280
  protected $clientVersionRangesDataType = '';
2281
  public $created;
2282
+ protected $currentVersionRangesType = 'GoogleGAL_Service_Books_AnnotationCurrentVersionRanges';
2283
  protected $currentVersionRangesDataType = '';
2284
  public $data;
2285
  public $deleted;
2287
  public $id;
2288
  public $kind;
2289
  public $layerId;
2290
+ protected $layerSummaryType = 'GoogleGAL_Service_Books_AnnotationLayerSummary';
2291
  protected $layerSummaryDataType = '';
2292
  public $pageIds;
2293
  public $selectedText;
2315
  return $this->beforeSelectedText;
2316
  }
2317
 
2318
+ public function setClientVersionRanges(GoogleGAL_Service_Books_AnnotationClientVersionRanges $clientVersionRanges)
2319
  {
2320
  $this->clientVersionRanges = $clientVersionRanges;
2321
  }
2335
  return $this->created;
2336
  }
2337
 
2338
+ public function setCurrentVersionRanges(GoogleGAL_Service_Books_AnnotationCurrentVersionRanges $currentVersionRanges)
2339
  {
2340
  $this->currentVersionRanges = $currentVersionRanges;
2341
  }
2405
  return $this->layerId;
2406
  }
2407
 
2408
+ public function setLayerSummary(GoogleGAL_Service_Books_AnnotationLayerSummary $layerSummary)
2409
  {
2410
  $this->layerSummary = $layerSummary;
2411
  }
2466
  }
2467
  }
2468
 
2469
+ class GoogleGAL_Service_Books_AnnotationClientVersionRanges extends GoogleGAL_Model
2470
  {
2471
+ protected $cfiRangeType = 'GoogleGAL_Service_Books_BooksAnnotationsRange';
2472
  protected $cfiRangeDataType = '';
2473
  public $contentVersion;
2474
+ protected $gbImageRangeType = 'GoogleGAL_Service_Books_BooksAnnotationsRange';
2475
  protected $gbImageRangeDataType = '';
2476
+ protected $gbTextRangeType = 'GoogleGAL_Service_Books_BooksAnnotationsRange';
2477
  protected $gbTextRangeDataType = '';
2478
+ protected $imageCfiRangeType = 'GoogleGAL_Service_Books_BooksAnnotationsRange';
2479
  protected $imageCfiRangeDataType = '';
2480
 
2481
+ public function setCfiRange(GoogleGAL_Service_Books_BooksAnnotationsRange $cfiRange)
2482
  {
2483
  $this->cfiRange = $cfiRange;
2484
  }
2498
  return $this->contentVersion;
2499
  }
2500
 
2501
+ public function setGbImageRange(GoogleGAL_Service_Books_BooksAnnotationsRange $gbImageRange)
2502
  {
2503
  $this->gbImageRange = $gbImageRange;
2504
  }
2508
  return $this->gbImageRange;
2509
  }
2510
 
2511
+ public function setGbTextRange(GoogleGAL_Service_Books_BooksAnnotationsRange $gbTextRange)
2512
  {
2513
  $this->gbTextRange = $gbTextRange;
2514
  }
2518
  return $this->gbTextRange;
2519
  }
2520
 
2521
+ public function setImageCfiRange(GoogleGAL_Service_Books_BooksAnnotationsRange $imageCfiRange)
2522
  {
2523
  $this->imageCfiRange = $imageCfiRange;
2524
  }
2529
  }
2530
  }
2531
 
2532
+ class GoogleGAL_Service_Books_AnnotationCurrentVersionRanges extends GoogleGAL_Model
2533
  {
2534
+ protected $cfiRangeType = 'GoogleGAL_Service_Books_BooksAnnotationsRange';
2535
  protected $cfiRangeDataType = '';
2536
  public $contentVersion;
2537
+ protected $gbImageRangeType = 'GoogleGAL_Service_Books_BooksAnnotationsRange';
2538
  protected $gbImageRangeDataType = '';
2539
+ protected $gbTextRangeType = 'GoogleGAL_Service_Books_BooksAnnotationsRange';
2540
  protected $gbTextRangeDataType = '';
2541
+ protected $imageCfiRangeType = 'GoogleGAL_Service_Books_BooksAnnotationsRange';
2542
  protected $imageCfiRangeDataType = '';
2543
 
2544
+ public function setCfiRange(GoogleGAL_Service_Books_BooksAnnotationsRange $cfiRange)
2545
  {
2546
  $this->cfiRange = $cfiRange;
2547
  }
2561
  return $this->contentVersion;
2562
  }
2563
 
2564
+ public function setGbImageRange(GoogleGAL_Service_Books_BooksAnnotationsRange $gbImageRange)
2565
  {
2566
  $this->gbImageRange = $gbImageRange;
2567
  }
2571
  return $this->gbImageRange;
2572
  }
2573
 
2574
+ public function setGbTextRange(GoogleGAL_Service_Books_BooksAnnotationsRange $gbTextRange)
2575
  {
2576
  $this->gbTextRange = $gbTextRange;
2577
  }
2581
  return $this->gbTextRange;
2582
  }
2583
 
2584
+ public function setImageCfiRange(GoogleGAL_Service_Books_BooksAnnotationsRange $imageCfiRange)
2585
  {
2586
  $this->imageCfiRange = $imageCfiRange;
2587
  }
2592
  }
2593
  }
2594
 
2595
+ class GoogleGAL_Service_Books_AnnotationLayerSummary extends GoogleGAL_Model
2596
  {
2597
  public $allowedCharacterCount;
2598
  public $limitType;
2629
  }
2630
  }
2631
 
2632
+ class GoogleGAL_Service_Books_Annotationdata extends GoogleGAL_Model
2633
  {
2634
  public $annotationType;
2635
  public $data;
2732
  }
2733
  }
2734
 
2735
+ class GoogleGAL_Service_Books_Annotations extends GoogleGAL_Collection
2736
  {
2737
+ protected $itemsType = 'GoogleGAL_Service_Books_Annotation';
2738
  protected $itemsDataType = 'array';
2739
  public $kind;
2740
  public $nextPageToken;
2781
  }
2782
  }
2783
 
2784
+ class GoogleGAL_Service_Books_AnnotationsSummary extends GoogleGAL_Collection
2785
  {
2786
  public $kind;
2787
+ protected $layersType = 'GoogleGAL_Service_Books_AnnotationsSummaryLayers';
2788
  protected $layersDataType = 'array';
2789
 
2790
  public function setKind($kind)
2808
  }
2809
  }
2810
 
2811
+ class GoogleGAL_Service_Books_AnnotationsSummaryLayers extends GoogleGAL_Model
2812
  {
2813
  public $allowedCharacterCount;
2814
  public $layerId;
2867
  }
2868
  }
2869
 
2870
+ class GoogleGAL_Service_Books_Annotationsdata extends GoogleGAL_Collection
2871
  {
2872
+ protected $itemsType = 'GoogleGAL_Service_Books_Annotationdata';
2873
  protected $itemsDataType = 'array';
2874
  public $kind;
2875
  public $nextPageToken;
2916
  }
2917
  }
2918
 
2919
+ class GoogleGAL_Service_Books_BooksAnnotationsRange extends GoogleGAL_Model
2920
  {
2921
  public $endOffset;
2922
  public $endPosition;
2964
  }
2965
  }
2966
 
2967
+ class GoogleGAL_Service_Books_BooksCloudloadingResource extends GoogleGAL_Model
2968
  {
2969
  public $author;
2970
  public $processingState;
3012
  }
3013
  }
3014
 
3015
+ class GoogleGAL_Service_Books_BooksVolumesRecommendedRateResponse extends GoogleGAL_Model
3016
  {
3017
  public $consistencyToken;
3018
 
3027
  }
3028
  }
3029
 
3030
+ class GoogleGAL_Service_Books_Bookshelf extends GoogleGAL_Model
3031
  {
3032
  public $access;
3033
  public $created;
3141
  }
3142
  }
3143
 
3144
+ class GoogleGAL_Service_Books_Bookshelves extends GoogleGAL_Collection
3145
  {
3146
+ protected $itemsType = 'GoogleGAL_Service_Books_Bookshelf';
3147
  protected $itemsDataType = 'array';
3148
  public $kind;
3149
 
3168
  }
3169
  }
3170
 
3171
+ class GoogleGAL_Service_Books_ConcurrentAccessRestriction extends GoogleGAL_Model
3172
  {
3173
  public $deviceAllowed;
3174
  public $kind;
3293
  }
3294
  }
3295
 
3296
+ class GoogleGAL_Service_Books_Dictlayerdata extends GoogleGAL_Model
3297
  {
3298
+ protected $commonType = 'GoogleGAL_Service_Books_DictlayerdataCommon';
3299
  protected $commonDataType = '';
3300
+ protected $dictType = 'GoogleGAL_Service_Books_DictlayerdataDict';
3301
  protected $dictDataType = '';
3302
  public $kind;
3303
 
3304
+ public function setCommon(GoogleGAL_Service_Books_DictlayerdataCommon $common)
3305
  {
3306
  $this->common = $common;
3307
  }
3311
  return $this->common;
3312
  }
3313
 
3314
+ public function setDict(GoogleGAL_Service_Books_DictlayerdataDict $dict)
3315
  {
3316
  $this->dict = $dict;
3317
  }
3332
  }
3333
  }
3334
 
3335
+ class GoogleGAL_Service_Books_DictlayerdataCommon extends GoogleGAL_Model
3336
  {
3337
  public $title;
3338
 
3347
  }
3348
  }
3349
 
3350
+ class GoogleGAL_Service_Books_DictlayerdataDict extends GoogleGAL_Collection
3351
  {
3352
+ protected $sourceType = 'GoogleGAL_Service_Books_DictlayerdataDictSource';
3353
  protected $sourceDataType = '';
3354
+ protected $wordsType = 'GoogleGAL_Service_Books_DictlayerdataDictWords';
3355
  protected $wordsDataType = 'array';
3356
 
3357
+ public function setSource(GoogleGAL_Service_Books_DictlayerdataDictSource $source)
3358
  {
3359
  $this->source = $source;
3360
  }
3375
  }
3376
  }
3377
 
3378
+ class GoogleGAL_Service_Books_DictlayerdataDictSource extends GoogleGAL_Model
3379
  {
3380
  public $attribution;
3381
  public $url;
3401
  }
3402
  }
3403
 
3404
+ class GoogleGAL_Service_Books_DictlayerdataDictWords extends GoogleGAL_Collection
3405
  {
3406
+ protected $derivativesType = 'GoogleGAL_Service_Books_DictlayerdataDictWordsDerivatives';
3407
  protected $derivativesDataType = 'array';
3408
+ protected $examplesType = 'GoogleGAL_Service_Books_DictlayerdataDictWordsExamples';
3409
  protected $examplesDataType = 'array';
3410
+ protected $sensesType = 'GoogleGAL_Service_Books_DictlayerdataDictWordsSenses';
3411
  protected $sensesDataType = 'array';
3412
+ protected $sourceType = 'GoogleGAL_Service_Books_DictlayerdataDictWordsSource';
3413
  protected $sourceDataType = '';
3414
 
3415
  public function setDerivatives($derivatives)
3442
  return $this->senses;
3443
  }
3444
 
3445
+ public function setSource(GoogleGAL_Service_Books_DictlayerdataDictWordsSource $source)
3446
  {
3447
  $this->source = $source;
3448
  }
3453
  }
3454
  }
3455
 
3456
+ class GoogleGAL_Service_Books_DictlayerdataDictWordsDerivatives extends GoogleGAL_Model
3457
  {
3458
+ protected $sourceType = 'GoogleGAL_Service_Books_DictlayerdataDictWordsDerivativesSource';
3459
  protected $sourceDataType = '';
3460
  public $text;
3461
 
3462
+ public function setSource(GoogleGAL_Service_Books_DictlayerdataDictWordsDerivativesSource $source)
3463
  {
3464
  $this->source = $source;
3465
  }
3480
  }
3481
  }
3482
 
3483
+ class GoogleGAL_Service_Books_DictlayerdataDictWordsDerivativesSource extends GoogleGAL_Model
3484
  {
3485
  public $attribution;
3486
  public $url;
3506
  }
3507
  }
3508
 
3509
+ class GoogleGAL_Service_Books_DictlayerdataDictWordsExamples extends GoogleGAL_Model
3510
  {
3511
+ protected $sourceType = 'GoogleGAL_Service_Books_DictlayerdataDictWordsExamplesSource';
3512
  protected $sourceDataType = '';
3513
  public $text;
3514
 
3515
+ public function setSource(GoogleGAL_Service_Books_DictlayerdataDictWordsExamplesSource $source)
3516
  {
3517
  $this->source = $source;
3518
  }
3533
  }
3534
  }
3535
 
3536
+ class GoogleGAL_Service_Books_DictlayerdataDictWordsExamplesSource extends GoogleGAL_Model
3537
  {
3538
  public $attribution;
3539
  public $url;
3559
  }
3560
  }
3561
 
3562
+ class GoogleGAL_Service_Books_DictlayerdataDictWordsSenses extends GoogleGAL_Collection
3563
  {
3564
+ protected $conjugationsType = 'GoogleGAL_Service_Books_DictlayerdataDictWordsSensesConjugations';
3565
  protected $conjugationsDataType = 'array';
3566
+ protected $definitionsType = 'GoogleGAL_Service_Books_DictlayerdataDictWordsSensesDefinitions';
3567
  protected $definitionsDataType = 'array';
3568
  public $partOfSpeech;
3569
  public $pronunciation;
3570
  public $pronunciationUrl;
3571
+ protected $sourceType = 'GoogleGAL_Service_Books_DictlayerdataDictWordsSensesSource';
3572
  protected $sourceDataType = '';
3573
  public $syllabification;
3574
+ protected $synonymsType = 'GoogleGAL_Service_Books_DictlayerdataDictWordsSensesSynonyms';
3575
  protected $synonymsDataType = 'array';
3576
 
3577
  public function setConjugations($conjugations)
3624
  return $this->pronunciationUrl;
3625
  }
3626
 
3627
+ public function setSource(GoogleGAL_Service_Books_DictlayerdataDictWordsSensesSource $source)
3628
  {
3629
  $this->source = $source;
3630
  }
3655
  }
3656
  }
3657
 
3658
+ class GoogleGAL_Service_Books_DictlayerdataDictWordsSensesConjugations extends GoogleGAL_Model
3659
  {
3660
  public $type;
3661
  public $value;
3681
  }
3682
  }
3683
 
3684
+ class GoogleGAL_Service_Books_DictlayerdataDictWordsSensesDefinitions extends GoogleGAL_Collection
3685
  {
3686
  public $definition;
3687
+ protected $examplesType = 'GoogleGAL_Service_Books_DictlayerdataDictWordsSensesDefinitionsExamples';
3688
  protected $examplesDataType = 'array';
3689
 
3690
  public function setDefinition($definition)
3708
  }
3709
  }
3710
 
3711
+ class GoogleGAL_Service_Books_DictlayerdataDictWordsSensesDefinitionsExamples extends GoogleGAL_Model
3712
  {
3713
+ protected $sourceType = 'GoogleGAL_Service_Books_DictlayerdataDictWordsSensesDefinitionsExamplesSource';
3714
  protected $sourceDataType = '';
3715
  public $text;
3716
 
3717
+ public function setSource(GoogleGAL_Service_Books_DictlayerdataDictWordsSensesDefinitionsExamplesSource $source)
3718
  {
3719
  $this->source = $source;
3720
  }
3735
  }
3736
  }
3737
 
3738
+ class GoogleGAL_Service_Books_DictlayerdataDictWordsSensesDefinitionsExamplesSource extends GoogleGAL_Model
3739
  {
3740
  public $attribution;
3741
  public $url;
3761
  }
3762
  }
3763
 
3764
+ class GoogleGAL_Service_Books_DictlayerdataDictWordsSensesSource extends GoogleGAL_Model
3765
  {
3766
  public $attribution;
3767
  public $url;
3787
  }
3788
  }
3789
 
3790
+ class GoogleGAL_Service_Books_DictlayerdataDictWordsSensesSynonyms extends GoogleGAL_Model
3791
  {
3792
+ protected $sourceType = 'GoogleGAL_Service_Books_DictlayerdataDictWordsSensesSynonymsSource';
3793
  protected $sourceDataType = '';
3794
  public $text;
3795
 
3796
+ public function setSource(GoogleGAL_Service_Books_DictlayerdataDictWordsSensesSynonymsSource $source)
3797
  {
3798
  $this->source = $source;
3799
  }
3814
  }
3815
  }
3816
 
3817
+ class GoogleGAL_Service_Books_DictlayerdataDictWordsSensesSynonymsSource extends GoogleGAL_Model
3818
  {
3819
  public $attribution;
3820
  public $url;
3840
  }
3841
  }
3842
 
3843
+ class GoogleGAL_Service_Books_DictlayerdataDictWordsSource extends GoogleGAL_Model
3844
  {
3845
  public $attribution;
3846
  public $url;
3866
  }
3867
  }
3868
 
3869
+ class GoogleGAL_Service_Books_DownloadAccessRestriction extends GoogleGAL_Model
3870
  {
3871
  public $deviceAllowed;
3872
  public $downloadsAcquired;
4002
  }
4003
  }
4004
 
4005
+ class GoogleGAL_Service_Books_DownloadAccesses extends GoogleGAL_Collection
4006
  {
4007
+ protected $downloadAccessListType = 'GoogleGAL_Service_Books_DownloadAccessRestriction';
4008
  protected $downloadAccessListDataType = 'array';
4009
  public $kind;
4010
 
4029
  }
4030
  }
4031
 
4032
+ class GoogleGAL_Service_Books_Geolayerdata extends GoogleGAL_Model
4033
  {
4034
+ protected $commonType = 'GoogleGAL_Service_Books_GeolayerdataCommon';
4035
  protected $commonDataType = '';
4036
+ protected $geoType = 'GoogleGAL_Service_Books_GeolayerdataGeo';
4037
  protected $geoDataType = '';
4038
  public $kind;
4039
 
4040
+ public function setCommon(GoogleGAL_Service_Books_GeolayerdataCommon $common)
4041
  {
4042
  $this->common = $common;
4043
  }
4047
  return $this->common;
4048
  }
4049
 
4050
+ public function setGeo(GoogleGAL_Service_Books_GeolayerdataGeo $geo)
4051
  {
4052
  $this->geo = $geo;
4053
  }
4068
  }
4069
  }
4070
 
4071
+ class GoogleGAL_Service_Books_GeolayerdataCommon extends GoogleGAL_Model
4072
  {
4073
  public $lang;
4074
  public $previewImageUrl;
4127
  }
4128
  }
4129
 
4130
+ class GoogleGAL_Service_Books_GeolayerdataGeo extends GoogleGAL_Collection
4131
  {
4132
+ protected $boundaryType = 'GoogleGAL_Service_Books_GeolayerdataGeoBoundary';
4133
  protected $boundaryDataType = 'array';
4134
  public $cachePolicy;
4135
  public $countryCode;
4136
  public $latitude;
4137
  public $longitude;
4138
  public $mapType;
4139
+ protected $viewportType = 'GoogleGAL_Service_Books_GeolayerdataGeoViewport';
4140
  protected $viewportDataType = '';
4141
  public $zoom;
4142
 
4200
  return $this->mapType;
4201
  }
4202
 
4203
+ public function setViewport(GoogleGAL_Service_Books_GeolayerdataGeoViewport $viewport)
4204
  {
4205
  $this->viewport = $viewport;
4206
  }
4221
  }
4222
  }
4223
 
4224
+ class GoogleGAL_Service_Books_GeolayerdataGeoBoundary extends GoogleGAL_Model
4225
  {
4226
  public $latitude;
4227
  public $longitude;
4247
  }
4248
  }
4249
 
4250
+ class GoogleGAL_Service_Books_GeolayerdataGeoViewport extends GoogleGAL_Model
4251
  {
4252
+ protected $hiType = 'GoogleGAL_Service_Books_GeolayerdataGeoViewportHi';
4253
  protected $hiDataType = '';
4254
+ protected $loType = 'GoogleGAL_Service_Books_GeolayerdataGeoViewportLo';
4255
  protected $loDataType = '';
4256
 
4257
+ public function setHi(GoogleGAL_Service_Books_GeolayerdataGeoViewportHi $hi)
4258
  {
4259
  $this->hi = $hi;
4260
  }
4264
  return $this->hi;
4265
  }
4266
 
4267
+ public function setLo(GoogleGAL_Service_Books_GeolayerdataGeoViewportLo $lo)
4268
  {
4269
  $this->lo = $lo;
4270
  }
4275
  }
4276
  }
4277
 
4278
+ class GoogleGAL_Service_Books_GeolayerdataGeoViewportHi extends GoogleGAL_Model
4279
  {
4280
  public $latitude;
4281
  public $longitude;
4301
  }
4302
  }
4303
 
4304
+ class GoogleGAL_Service_Books_GeolayerdataGeoViewportLo extends GoogleGAL_Model
4305
  {
4306
  public $latitude;
4307
  public $longitude;
4327
  }
4328
  }
4329
 
4330
+ class GoogleGAL_Service_Books_Layersummaries extends GoogleGAL_Collection
4331
  {
4332
+ protected $itemsType = 'GoogleGAL_Service_Books_Layersummary';
4333
  protected $itemsDataType = 'array';
4334
  public $kind;
4335
  public $totalItems;
4365
  }
4366
  }
4367
 
4368
+ class GoogleGAL_Service_Books_Layersummary extends GoogleGAL_Collection
4369
  {
4370
  public $annotationCount;
4371
  public $annotationTypes;
4512
  }
4513
  }
4514
 
4515
+ class GoogleGAL_Service_Books_ReadingPosition extends GoogleGAL_Model
4516
  {
4517
  public $epubCfiPosition;
4518
  public $gbImagePosition;
4593
  }
4594
  }
4595
 
4596
+ class GoogleGAL_Service_Books_RequestAccess extends GoogleGAL_Model
4597
  {
4598
+ protected $concurrentAccessType = 'GoogleGAL_Service_Books_ConcurrentAccessRestriction';
4599
  protected $concurrentAccessDataType = '';
4600
+ protected $downloadAccessType = 'GoogleGAL_Service_Books_DownloadAccessRestriction';
4601
  protected $downloadAccessDataType = '';
4602
  public $kind;
4603
 
4604
+ public function setConcurrentAccess(GoogleGAL_Service_Books_ConcurrentAccessRestriction $concurrentAccess)
4605
  {
4606
  $this->concurrentAccess = $concurrentAccess;
4607
  }
4611
  return $this->concurrentAccess;
4612
  }
4613
 
4614
+ public function setDownloadAccess(GoogleGAL_Service_Books_DownloadAccessRestriction $downloadAccess)
4615
  {
4616
  $this->downloadAccess = $downloadAccess;
4617
  }
4632
  }
4633
  }
4634
 
4635
+ class GoogleGAL_Service_Books_Review extends GoogleGAL_Model
4636
  {
4637
+ protected $authorType = 'GoogleGAL_Service_Books_ReviewAuthor';
4638
  protected $authorDataType = '';
4639
  public $content;
4640
  public $date;
4641
  public $fullTextUrl;
4642
  public $kind;
4643
  public $rating;
4644
+ protected $sourceType = 'GoogleGAL_Service_Books_ReviewSource';
4645
  protected $sourceDataType = '';
4646
  public $title;
4647
  public $type;
4648
  public $volumeId;
4649
 
4650
+ public function setAuthor(GoogleGAL_Service_Books_ReviewAuthor $author)
4651
  {
4652
  $this->author = $author;
4653
  }
4707
  return $this->rating;
4708
  }
4709
 
4710
+ public function setSource(GoogleGAL_Service_Books_ReviewSource $source)
4711
  {
4712
  $this->source = $source;
4713
  }
4748
  }
4749
  }
4750
 
4751
+ class GoogleGAL_Service_Books_ReviewAuthor extends GoogleGAL_Model
4752
  {
4753
  public $displayName;
4754
 
4763
  }
4764
  }
4765
 
4766
+ class GoogleGAL_Service_Books_ReviewSource extends GoogleGAL_Model
4767
  {
4768
  public $description;
4769
  public $extraDescription;
4800
  }
4801
  }
4802
 
4803
+ class GoogleGAL_Service_Books_Volume extends GoogleGAL_Model
4804
  {
4805
+ protected $accessInfoType = 'GoogleGAL_Service_Books_VolumeAccessInfo';
4806
  protected $accessInfoDataType = '';
4807
  public $etag;
4808
  public $id;
4809
  public $kind;
4810
+ protected $layerInfoType = 'GoogleGAL_Service_Books_VolumeLayerInfo';
4811
  protected $layerInfoDataType = '';
4812
+ protected $recommendedInfoType = 'GoogleGAL_Service_Books_VolumeRecommendedInfo';
4813
  protected $recommendedInfoDataType = '';
4814
+ protected $saleInfoType = 'GoogleGAL_Service_Books_VolumeSaleInfo';
4815
  protected $saleInfoDataType = '';
4816
+ protected $searchInfoType = 'GoogleGAL_Service_Books_VolumeSearchInfo';
4817
  protected $searchInfoDataType = '';
4818
  public $selfLink;
4819
+ protected $userInfoType = 'GoogleGAL_Service_Books_VolumeUserInfo';
4820
  protected $userInfoDataType = '';
4821
+ protected $volumeInfoType = 'GoogleGAL_Service_Books_VolumeVolumeInfo';
4822
  protected $volumeInfoDataType = '';
4823
 
4824
+ public function setAccessInfo(GoogleGAL_Service_Books_VolumeAccessInfo $accessInfo)
4825
  {
4826
  $this->accessInfo = $accessInfo;
4827
  }
4861
  return $this->kind;
4862
  }
4863
 
4864
+ public function setLayerInfo(GoogleGAL_Service_Books_VolumeLayerInfo $layerInfo)
4865
  {
4866
  $this->layerInfo = $layerInfo;
4867
  }
4871
  return $this->layerInfo;
4872
  }
4873
 
4874
+ public function setRecommendedInfo(GoogleGAL_Service_Books_VolumeRecommendedInfo $recommendedInfo)
4875
  {
4876
  $this->recommendedInfo = $recommendedInfo;
4877
  }
4881
  return $this->recommendedInfo;
4882
  }
4883
 
4884
+ public function setSaleInfo(GoogleGAL_Service_Books_VolumeSaleInfo $saleInfo)
4885
  {
4886
  $this->saleInfo = $saleInfo;
4887
  }
4891
  return $this->saleInfo;
4892
  }
4893
 
4894
+ public function setSearchInfo(GoogleGAL_Service_Books_VolumeSearchInfo $searchInfo)
4895
  {
4896
  $this->searchInfo = $searchInfo;
4897
  }
4911
  return $this->selfLink;
4912
  }
4913
 
4914
+ public function setUserInfo(GoogleGAL_Service_Books_VolumeUserInfo $userInfo)
4915
  {
4916
  $this->userInfo = $userInfo;
4917
  }
4921
  return $this->userInfo;
4922
  }
4923
 
4924
+ public function setVolumeInfo(GoogleGAL_Service_Books_VolumeVolumeInfo $volumeInfo)
4925
  {
4926
  $this->volumeInfo = $volumeInfo;
4927
  }
4932
  }
4933
  }
4934
 
4935
+ class GoogleGAL_Service_Books_VolumeAccessInfo extends GoogleGAL_Model
4936
  {
4937
  public $accessViewStatus;
4938
  public $country;
4939
+ protected $downloadAccessType = 'GoogleGAL_Service_Books_DownloadAccessRestriction';
4940
  protected $downloadAccessDataType = '';
4941
  public $driveImportedContentLink;
4942
  public $embeddable;
4943
+ protected $epubType = 'GoogleGAL_Service_Books_VolumeAccessInfoEpub';
4944
  protected $epubDataType = '';
4945
  public $explicitOfflineLicenseManagement;
4946
+ protected $pdfType = 'GoogleGAL_Service_Books_VolumeAccessInfoPdf';
4947
  protected $pdfDataType = '';
4948
  public $publicDomain;
4949
  public $quoteSharingAllowed;
4972
  return $this->country;
4973
  }
4974
 
4975
+ public function setDownloadAccess(GoogleGAL_Service_Books_DownloadAccessRestriction $downloadAccess)
4976
  {
4977
  $this->downloadAccess = $downloadAccess;
4978
  }
5002
  return $this->embeddable;
5003
  }
5004
 
5005
+ public function setEpub(GoogleGAL_Service_Books_VolumeAccessInfoEpub $epub)
5006
  {
5007
  $this->epub = $epub;
5008
  }
5022
  return $this->explicitOfflineLicenseManagement;
5023
  }
5024
 
5025
+ public function setPdf(GoogleGAL_Service_Books_VolumeAccessInfoPdf $pdf)
5026
  {
5027
  $this->pdf = $pdf;
5028
  }
5093
  }
5094
  }
5095
 
5096
+ class GoogleGAL_Service_Books_VolumeAccessInfoEpub extends GoogleGAL_Model
5097
  {
5098
  public $acsTokenLink;
5099
  public $downloadLink;
5130
  }
5131
  }
5132
 
5133
+ class GoogleGAL_Service_Books_VolumeAccessInfoPdf extends GoogleGAL_Model
5134
  {
5135
  public $acsTokenLink;
5136
  public $downloadLink;
5167
  }
5168
  }
5169
 
5170
+ class GoogleGAL_Service_Books_VolumeLayerInfo extends GoogleGAL_Collection
5171
  {
5172
+ protected $layersType = 'GoogleGAL_Service_Books_VolumeLayerInfoLayers';
5173
  protected $layersDataType = 'array';
5174
 
5175
  public function setLayers($layers)
5183
  }
5184
  }
5185
 
5186
+ class GoogleGAL_Service_Books_VolumeLayerInfoLayers extends GoogleGAL_Model
5187
  {
5188
  public $layerId;
5189
  public $volumeAnnotationsVersion;
5209
  }
5210
  }
5211
 
5212
+ class GoogleGAL_Service_Books_VolumeRecommendedInfo extends GoogleGAL_Model
5213
  {
5214
  public $explanation;
5215
 
5224
  }
5225
  }
5226
 
5227
+ class GoogleGAL_Service_Books_VolumeSaleInfo extends GoogleGAL_Collection
5228
  {
5229
  public $buyLink;
5230
  public $country;
5231
  public $isEbook;
5232
+ protected $listPriceType = 'GoogleGAL_Service_Books_VolumeSaleInfoListPrice';
5233
  protected $listPriceDataType = '';
5234
+ protected $offersType = 'GoogleGAL_Service_Books_VolumeSaleInfoOffers';
5235
  protected $offersDataType = 'array';
5236
  public $onSaleDate;
5237
+ protected $retailPriceType = 'GoogleGAL_Service_Books_VolumeSaleInfoRetailPrice';
5238
  protected $retailPriceDataType = '';
5239
  public $saleability;
5240
 
5268
  return $this->isEbook;
5269
  }
5270
 
5271
+ public function setListPrice(GoogleGAL_Service_Books_VolumeSaleInfoListPrice $listPrice)
5272
  {
5273
  $this->listPrice = $listPrice;
5274
  }
5298
  return $this->onSaleDate;
5299
  }
5300
 
5301
+ public function setRetailPrice(GoogleGAL_Service_Books_VolumeSaleInfoRetailPrice $retailPrice)
5302
  {
5303
  $this->retailPrice = $retailPrice;
5304
  }
5319
  }
5320
  }
5321
 
5322
+ class GoogleGAL_Service_Books_VolumeSaleInfoListPrice extends GoogleGAL_Model
5323
  {
5324
  public $amount;
5325
  public $currencyCode;
5345
  }
5346
  }
5347
 
5348
+ class GoogleGAL_Service_Books_VolumeSaleInfoOffers extends GoogleGAL_Model
5349
  {
5350
  public $finskyOfferType;
5351
+ protected $listPriceType = 'GoogleGAL_Service_Books_VolumeSaleInfoOffersListPrice';
5352
  protected $listPriceDataType = '';
5353
+ protected $rentalDurationType = 'GoogleGAL_Service_Books_VolumeSaleInfoOffersRentalDuration';
5354
  protected $rentalDurationDataType = '';
5355
+ protected $retailPriceType = 'GoogleGAL_Service_Books_VolumeSaleInfoOffersRetailPrice';
5356
  protected $retailPriceDataType = '';
5357
 
5358
  public function setFinskyOfferType($finskyOfferType)
5365
  return $this->finskyOfferType;
5366
  }
5367
 
5368
+ public function setListPrice(GoogleGAL_Service_Books_VolumeSaleInfoOffersListPrice $listPrice)
5369
  {
5370
  $this->listPrice = $listPrice;
5371
  }
5375
  return $this->listPrice;
5376
  }
5377
 
5378
+ public function setRentalDuration(GoogleGAL_Service_Books_VolumeSaleInfoOffersRentalDuration $rentalDuration)
5379
  {
5380
  $this->rentalDuration = $rentalDuration;
5381
  }
5385
  return $this->rentalDuration;
5386
  }
5387
 
5388
+ public function setRetailPrice(GoogleGAL_Service_Books_VolumeSaleInfoOffersRetailPrice $retailPrice)
5389
  {
5390
  $this->retailPrice = $retailPrice;
5391
  }
5396
  }
5397
  }
5398
 
5399
+ class GoogleGAL_Service_Books_VolumeSaleInfoOffersListPrice extends GoogleGAL_Model
5400
  {
5401
  public $amountInMicros;
5402
  public $currencyCode;
5422
  }
5423
  }
5424
 
5425
+ class GoogleGAL_Service_Books_VolumeSaleInfoOffersRentalDuration extends GoogleGAL_Model
5426
  {
5427
  public $count;
5428
  public $unit;
5448
  }
5449
  }
5450
 
5451
+ class GoogleGAL_Service_Books_VolumeSaleInfoOffersRetailPrice extends GoogleGAL_Model
5452
  {
5453
  public $amountInMicros;
5454
  public $currencyCode;
5474
  }
5475
  }
5476
 
5477
+ class GoogleGAL_Service_Books_VolumeSaleInfoRetailPrice extends GoogleGAL_Model
5478
  {
5479
  public $amount;
5480
  public $currencyCode;
5500
  }
5501
  }
5502
 
5503
+ class GoogleGAL_Service_Books_VolumeSearchInfo extends GoogleGAL_Model
5504
  {
5505
  public $textSnippet;
5506
 
5515
  }
5516
  }
5517
 
5518
+ class GoogleGAL_Service_Books_VolumeUserInfo extends GoogleGAL_Model
5519
  {
5520
+ protected $copyType = 'GoogleGAL_Service_Books_VolumeUserInfoCopy';
5521
  protected $copyDataType = '';
5522
  public $isInMyBooks;
5523
  public $isPreordered;
5524
  public $isPurchased;
5525
  public $isUploaded;
5526
+ protected $readingPositionType = 'GoogleGAL_Service_Books_ReadingPosition';
5527
  protected $readingPositionDataType = '';
5528
+ protected $rentalPeriodType = 'GoogleGAL_Service_Books_VolumeUserInfoRentalPeriod';
5529
  protected $rentalPeriodDataType = '';
5530
  public $rentalState;
5531
+ protected $reviewType = 'GoogleGAL_Service_Books_Review';
5532
  protected $reviewDataType = '';
5533
  public $updated;
5534
+ protected $userUploadedVolumeInfoType = 'GoogleGAL_Service_Books_VolumeUserInfoUserUploadedVolumeInfo';
5535
  protected $userUploadedVolumeInfoDataType = '';
5536
 
5537
+ public function setCopy(GoogleGAL_Service_Books_VolumeUserInfoCopy $copy)
5538
  {
5539
  $this->copy = $copy;
5540
  }
5584
  return $this->isUploaded;
5585
  }
5586
 
5587
+ public function setReadingPosition(GoogleGAL_Service_Books_ReadingPosition $readingPosition)
5588
  {
5589
  $this->readingPosition = $readingPosition;
5590
  }
5594
  return $this->readingPosition;
5595
  }
5596
 
5597
+ public function setRentalPeriod(GoogleGAL_Service_Books_VolumeUserInfoRentalPeriod $rentalPeriod)
5598
  {
5599
  $this->rentalPeriod = $rentalPeriod;
5600
  }
5614
  return $this->rentalState;
5615
  }
5616
 
5617
+ public function setReview(GoogleGAL_Service_Books_Review $review)
5618
  {
5619
  $this->review = $review;
5620
  }
5634
  return $this->updated;
5635
  }
5636
 
5637
+ public function setUserUploadedVolumeInfo(GoogleGAL_Service_Books_VolumeUserInfoUserUploadedVolumeInfo $userUploadedVolumeInfo)
5638
  {
5639
  $this->userUploadedVolumeInfo = $userUploadedVolumeInfo;
5640
  }
5645
  }
5646
  }
5647
 
5648
+ class GoogleGAL_Service_Books_VolumeUserInfoCopy extends GoogleGAL_Model
5649
  {
5650
  public $allowedCharacterCount;
5651
  public $limitType;
5693
  }
5694
  }
5695
 
5696
+ class GoogleGAL_Service_Books_VolumeUserInfoRentalPeriod extends GoogleGAL_Model
5697
  {
5698
  public $endUtcSec;
5699
  public $startUtcSec;
5719
  }
5720
  }
5721
 
5722
+ class GoogleGAL_Service_Books_VolumeUserInfoUserUploadedVolumeInfo extends GoogleGAL_Model
5723
  {
5724
  public $processingState;
5725
 
5734
  }
5735
  }
5736
 
5737
+ class GoogleGAL_Service_Books_VolumeVolumeInfo extends GoogleGAL_Collection
5738
  {
5739
  public $authors;
5740
  public $averageRating;
5742
  public $categories;
5743
  public $contentVersion;
5744
  public $description;
5745
+ protected $dimensionsType = 'GoogleGAL_Service_Books_VolumeVolumeInfoDimensions';
5746
  protected $dimensionsDataType = '';
5747
+ protected $imageLinksType = 'GoogleGAL_Service_Books_VolumeVolumeInfoImageLinks';
5748
  protected $imageLinksDataType = '';
5749
+ protected $industryIdentifiersType = 'GoogleGAL_Service_Books_VolumeVolumeInfoIndustryIdentifiers';
5750
  protected $industryIdentifiersDataType = 'array';
5751
  public $infoLink;
5752
  public $language;
5821
  return $this->description;
5822
  }
5823
 
5824
+ public function setDimensions(GoogleGAL_Service_Books_VolumeVolumeInfoDimensions $dimensions)
5825
  {
5826
  $this->dimensions = $dimensions;
5827
  }
5831
  return $this->dimensions;
5832
  }
5833
 
5834
+ public function setImageLinks(GoogleGAL_Service_Books_VolumeVolumeInfoImageLinks $imageLinks)
5835
  {
5836
  $this->imageLinks = $imageLinks;
5837
  }
5972
  }
5973
  }
5974
 
5975
+ class GoogleGAL_Service_Books_VolumeVolumeInfoDimensions extends GoogleGAL_Model
5976
  {
5977
  public $height;
5978
  public $thickness;
6009
  }
6010
  }
6011
 
6012
+ class GoogleGAL_Service_Books_VolumeVolumeInfoImageLinks extends GoogleGAL_Model
6013
  {
6014
  public $extraLarge;
6015
  public $large;
6079
  }
6080
  }
6081
 
6082
+ class GoogleGAL_Service_Books_VolumeVolumeInfoIndustryIdentifiers extends GoogleGAL_Model
6083
  {
6084
  public $identifier;
6085
  public $type;
6105
  }
6106
  }
6107
 
6108
+ class GoogleGAL_Service_Books_Volumeannotation extends GoogleGAL_Collection
6109
  {
6110
  public $annotationDataId;
6111
  public $annotationDataLink;
6112
  public $annotationType;
6113
+ protected $contentRangesType = 'GoogleGAL_Service_Books_VolumeannotationContentRanges';
6114
  protected $contentRangesDataType = '';
6115
  public $data;
6116
  public $deleted;
6153
  return $this->annotationType;
6154
  }
6155
 
6156
+ public function setContentRanges(GoogleGAL_Service_Books_VolumeannotationContentRanges $contentRanges)
6157
  {
6158
  $this->contentRanges = $contentRanges;
6159
  }
6264
  }
6265
  }
6266
 
6267
+ class GoogleGAL_Service_Books_VolumeannotationContentRanges extends GoogleGAL_Model
6268
  {
6269
+ protected $cfiRangeType = 'GoogleGAL_Service_Books_BooksAnnotationsRange';
6270
  protected $cfiRangeDataType = '';
6271
  public $contentVersion;
6272
+ protected $gbImageRangeType = 'GoogleGAL_Service_Books_BooksAnnotationsRange';
6273
  protected $gbImageRangeDataType = '';
6274
+ protected $gbTextRangeType = 'GoogleGAL_Service_Books_BooksAnnotationsRange';
6275
  protected $gbTextRangeDataType = '';
6276
 
6277
+ public function setCfiRange(GoogleGAL_Service_Books_BooksAnnotationsRange $cfiRange)
6278
  {
6279
  $this->cfiRange = $cfiRange;
6280
  }
6294
  return $this->contentVersion;
6295
  }
6296
 
6297
+ public function setGbImageRange(GoogleGAL_Service_Books_BooksAnnotationsRange $gbImageRange)
6298
  {
6299
  $this->gbImageRange = $gbImageRange;
6300
  }
6304
  return $this->gbImageRange;
6305
  }
6306
 
6307
+ public function setGbTextRange(GoogleGAL_Service_Books_BooksAnnotationsRange $gbTextRange)
6308
  {
6309
  $this->gbTextRange = $gbTextRange;
6310
  }
6315
  }
6316
  }
6317
 
6318
+ class GoogleGAL_Service_Books_Volumeannotations extends GoogleGAL_Collection
6319
  {
6320
+ protected $itemsType = 'GoogleGAL_Service_Books_Volumeannotation';
6321
  protected $itemsDataType = 'array';
6322
  public $kind;
6323
  public $nextPageToken;
6375
  }
6376
  }
6377
 
6378
+ class GoogleGAL_Service_Books_Volumes extends GoogleGAL_Collection
6379
  {
6380
+ protected $itemsType = 'GoogleGAL_Service_Books_Volume';
6381
  protected $itemsDataType = 'array';
6382
  public $kind;
6383
  public $totalItems;
core/Google/Service/Calendar.php CHANGED
@@ -29,7 +29,7 @@
29
  *
30
  * @author Google, Inc.
31
  */
32
- class Google_Service_Calendar extends Google_Service
33
  {
34
  /** Manage your calendars. */
35
  const CALENDAR = "https://www.googleapis.com/auth/calendar";
@@ -49,16 +49,16 @@ class Google_Service_Calendar extends Google_Service
49
  /**
50
  * Constructs the internal representation of the Calendar service.
51
  *
52
- * @param Google_Client $client
53
  */
54
- public function __construct(Google_Client $client)
55
  {
56
  parent::__construct($client);
57
  $this->servicePath = 'calendar/v3/';
58
  $this->version = 'v3';
59
  $this->serviceName = 'calendar';
60
 
61
- $this->acl = new Google_Service_Calendar_Acl_Resource(
62
  $this,
63
  $this->serviceName,
64
  'acl',
@@ -148,7 +148,7 @@ class Google_Service_Calendar extends Google_Service
148
  )
149
  )
150
  );
151
- $this->calendarList = new Google_Service_Calendar_CalendarList_Resource(
152
  $this,
153
  $this->serviceName,
154
  'calendarList',
@@ -236,7 +236,7 @@ class Google_Service_Calendar extends Google_Service
236
  )
237
  )
238
  );
239
- $this->calendars = new Google_Service_Calendar_Calendars_Resource(
240
  $this,
241
  $this->serviceName,
242
  'calendars',
@@ -300,7 +300,7 @@ class Google_Service_Calendar extends Google_Service
300
  )
301
  )
302
  );
303
- $this->channels = new Google_Service_Calendar_Channels_Resource(
304
  $this,
305
  $this->serviceName,
306
  'channels',
@@ -314,7 +314,7 @@ class Google_Service_Calendar extends Google_Service
314
  )
315
  )
316
  );
317
- $this->colors = new Google_Service_Calendar_Colors_Resource(
318
  $this,
319
  $this->serviceName,
320
  'colors',
@@ -328,7 +328,7 @@ class Google_Service_Calendar extends Google_Service
328
  )
329
  )
330
  );
331
- $this->events = new Google_Service_Calendar_Events_Resource(
332
  $this,
333
  $this->serviceName,
334
  'events',
@@ -712,7 +712,7 @@ class Google_Service_Calendar extends Google_Service
712
  )
713
  )
714
  );
715
- $this->freebusy = new Google_Service_Calendar_Freebusy_Resource(
716
  $this,
717
  $this->serviceName,
718
  'freebusy',
@@ -726,7 +726,7 @@ class Google_Service_Calendar extends Google_Service
726
  )
727
  )
728
  );
729
- $this->settings = new Google_Service_Calendar_Settings_Resource(
730
  $this,
731
  $this->serviceName,
732
  'settings',
@@ -758,11 +758,11 @@ class Google_Service_Calendar extends Google_Service
758
  * The "acl" collection of methods.
759
  * Typical usage is:
760
  * <code>
761
- * $calendarService = new Google_Service_Calendar(...);
762
  * $acl = $calendarService->acl;
763
  * </code>
764
  */
765
- class Google_Service_Calendar_Acl_Resource extends Google_Service_Resource
766
  {
767
 
768
  /**
@@ -788,28 +788,28 @@ class Google_Service_Calendar_Acl_Resource extends Google_Service_Resource
788
  * @param string $ruleId
789
  * ACL rule identifier.
790
  * @param array $optParams Optional parameters.
791
- * @return Google_Service_Calendar_AclRule
792
  */
793
  public function get($calendarId, $ruleId, $optParams = array())
794
  {
795
  $params = array('calendarId' => $calendarId, 'ruleId' => $ruleId);
796
  $params = array_merge($params, $optParams);
797
- return $this->call('get', array($params), "Google_Service_Calendar_AclRule");
798
  }
799
  /**
800
  * Creates an access control rule. (acl.insert)
801
  *
802
  * @param string $calendarId
803
  * Calendar identifier.
804
- * @param Google_AclRule $postBody
805
  * @param array $optParams Optional parameters.
806
- * @return Google_Service_Calendar_AclRule
807
  */
808
- public function insert($calendarId, Google_Service_Calendar_AclRule $postBody, $optParams = array())
809
  {
810
  $params = array('calendarId' => $calendarId, 'postBody' => $postBody);
811
  $params = array_merge($params, $optParams);
812
- return $this->call('insert', array($params), "Google_Service_Calendar_AclRule");
813
  }
814
  /**
815
  * Returns the rules in the access control list for the calendar. (acl.listAcl)
@@ -817,13 +817,13 @@ class Google_Service_Calendar_Acl_Resource extends Google_Service_Resource
817
  * @param string $calendarId
818
  * Calendar identifier.
819
  * @param array $optParams Optional parameters.
820
- * @return Google_Service_Calendar_Acl
821
  */
822
  public function listAcl($calendarId, $optParams = array())
823
  {
824
  $params = array('calendarId' => $calendarId);
825
  $params = array_merge($params, $optParams);
826
- return $this->call('list', array($params), "Google_Service_Calendar_Acl");
827
  }
828
  /**
829
  * Updates an access control rule. This method supports patch semantics.
@@ -833,15 +833,15 @@ class Google_Service_Calendar_Acl_Resource extends Google_Service_Resource
833
  * Calendar identifier.
834
  * @param string $ruleId
835
  * ACL rule identifier.
836
- * @param Google_AclRule $postBody
837
  * @param array $optParams Optional parameters.
838
- * @return Google_Service_Calendar_AclRule
839
  */
840
- public function patch($calendarId, $ruleId, Google_Service_Calendar_AclRule $postBody, $optParams = array())
841
  {
842
  $params = array('calendarId' => $calendarId, 'ruleId' => $ruleId, 'postBody' => $postBody);
843
  $params = array_merge($params, $optParams);
844
- return $this->call('patch', array($params), "Google_Service_Calendar_AclRule");
845
  }
846
  /**
847
  * Updates an access control rule. (acl.update)
@@ -850,15 +850,15 @@ class Google_Service_Calendar_Acl_Resource extends Google_Service_Resource
850
  * Calendar identifier.
851
  * @param string $ruleId
852
  * ACL rule identifier.
853
- * @param Google_AclRule $postBody
854
  * @param array $optParams Optional parameters.
855
- * @return Google_Service_Calendar_AclRule
856
  */
857
- public function update($calendarId, $ruleId, Google_Service_Calendar_AclRule $postBody, $optParams = array())
858
  {
859
  $params = array('calendarId' => $calendarId, 'ruleId' => $ruleId, 'postBody' => $postBody);
860
  $params = array_merge($params, $optParams);
861
- return $this->call('update', array($params), "Google_Service_Calendar_AclRule");
862
  }
863
  }
864
 
@@ -866,11 +866,11 @@ class Google_Service_Calendar_Acl_Resource extends Google_Service_Resource
866
  * The "calendarList" collection of methods.
867
  * Typical usage is:
868
  * <code>
869
- * $calendarService = new Google_Service_Calendar(...);
870
  * $calendarList = $calendarService->calendarList;
871
  * </code>
872
  */
873
- class Google_Service_Calendar_CalendarList_Resource extends Google_Service_Resource
874
  {
875
 
876
  /**
@@ -892,31 +892,31 @@ class Google_Service_Calendar_CalendarList_Resource extends Google_Service_Resou
892
  * @param string $calendarId
893
  * Calendar identifier.
894
  * @param array $optParams Optional parameters.
895
- * @return Google_Service_Calendar_CalendarListEntry
896
  */
897
  public function get($calendarId, $optParams = array())
898
  {
899
  $params = array('calendarId' => $calendarId);
900
  $params = array_merge($params, $optParams);
901
- return $this->call('get', array($params), "Google_Service_Calendar_CalendarListEntry");
902
  }
903
  /**
904
  * Adds an entry to the user's calendar list. (calendarList.insert)
905
  *
906
- * @param Google_CalendarListEntry $postBody
907
  * @param array $optParams Optional parameters.
908
  *
909
  * @opt_param bool colorRgbFormat
910
  * Whether to use the foregroundColor and backgroundColor fields to write the calendar colors
911
  * (RGB). If this feature is used, the index-based colorId field will be set to the best matching
912
  * option automatically. Optional. The default is False.
913
- * @return Google_Service_Calendar_CalendarListEntry
914
  */
915
- public function insert(Google_Service_Calendar_CalendarListEntry $postBody, $optParams = array())
916
  {
917
  $params = array('postBody' => $postBody);
918
  $params = array_merge($params, $optParams);
919
- return $this->call('insert', array($params), "Google_Service_Calendar_CalendarListEntry");
920
  }
921
  /**
922
  * Returns entries on the user's calendar list. (calendarList.listCalendarList)
@@ -932,13 +932,13 @@ class Google_Service_Calendar_CalendarList_Resource extends Google_Service_Resou
932
  * @opt_param string minAccessRole
933
  * The minimum access role for the user in the returned entires. Optional. The default is no
934
  * restriction.
935
- * @return Google_Service_Calendar_CalendarList
936
  */
937
  public function listCalendarList($optParams = array())
938
  {
939
  $params = array();
940
  $params = array_merge($params, $optParams);
941
- return $this->call('list', array($params), "Google_Service_Calendar_CalendarList");
942
  }
943
  /**
944
  * Updates an entry on the user's calendar list. This method supports patch
@@ -946,40 +946,40 @@ class Google_Service_Calendar_CalendarList_Resource extends Google_Service_Resou
946
  *
947
  * @param string $calendarId
948
  * Calendar identifier.
949
- * @param Google_CalendarListEntry $postBody
950
  * @param array $optParams Optional parameters.
951
  *
952
  * @opt_param bool colorRgbFormat
953
  * Whether to use the 'foregroundColor' and 'backgroundColor' fields to write the calendar colors
954
  * (RGB). If this feature is used, the index-based 'colorId' field will be set to the best matching
955
  * option automatically. Optional. The default is False.
956
- * @return Google_Service_Calendar_CalendarListEntry
957
  */
958
- public function patch($calendarId, Google_Service_Calendar_CalendarListEntry $postBody, $optParams = array())
959
  {
960
  $params = array('calendarId' => $calendarId, 'postBody' => $postBody);
961
  $params = array_merge($params, $optParams);
962
- return $this->call('patch', array($params), "Google_Service_Calendar_CalendarListEntry");
963
  }
964
  /**
965
  * Updates an entry on the user's calendar list. (calendarList.update)
966
  *
967
  * @param string $calendarId
968
  * Calendar identifier.
969
- * @param Google_CalendarListEntry $postBody
970
  * @param array $optParams Optional parameters.
971
  *
972
  * @opt_param bool colorRgbFormat
973
  * Whether to use the 'foregroundColor' and 'backgroundColor' fields to write the calendar colors
974
  * (RGB). If this feature is used, the index-based 'colorId' field will be set to the best matching
975
  * option automatically. Optional. The default is False.
976
- * @return Google_Service_Calendar_CalendarListEntry
977
  */
978
- public function update($calendarId, Google_Service_Calendar_CalendarListEntry $postBody, $optParams = array())
979
  {
980
  $params = array('calendarId' => $calendarId, 'postBody' => $postBody);
981
  $params = array_merge($params, $optParams);
982
- return $this->call('update', array($params), "Google_Service_Calendar_CalendarListEntry");
983
  }
984
  }
985
 
@@ -987,11 +987,11 @@ class Google_Service_Calendar_CalendarList_Resource extends Google_Service_Resou
987
  * The "calendars" collection of methods.
988
  * Typical usage is:
989
  * <code>
990
- * $calendarService = new Google_Service_Calendar(...);
991
  * $calendars = $calendarService->calendars;
992
  * </code>
993
  */
994
- class Google_Service_Calendar_Calendars_Resource extends Google_Service_Resource
995
  {
996
 
997
  /**
@@ -1027,26 +1027,26 @@ class Google_Service_Calendar_Calendars_Resource extends Google_Service_Resource
1027
  * @param string $calendarId
1028
  * Calendar identifier.
1029
  * @param array $optParams Optional parameters.
1030
- * @return Google_Service_Calendar_Calendar
1031
  */
1032
  public function get($calendarId, $optParams = array())
1033
  {
1034
  $params = array('calendarId' => $calendarId);
1035
  $params = array_merge($params, $optParams);
1036
- return $this->call('get', array($params), "Google_Service_Calendar_Calendar");
1037
  }
1038
  /**
1039
  * Creates a secondary calendar. (calendars.insert)
1040
  *
1041
- * @param Google_Calendar $postBody
1042
  * @param array $optParams Optional parameters.
1043
- * @return Google_Service_Calendar_Calendar
1044
  */
1045
- public function insert(Google_Service_Calendar_Calendar $postBody, $optParams = array())
1046
  {
1047
  $params = array('postBody' => $postBody);
1048
  $params = array_merge($params, $optParams);
1049
- return $this->call('insert', array($params), "Google_Service_Calendar_Calendar");
1050
  }
1051
  /**
1052
  * Updates metadata for a calendar. This method supports patch semantics.
@@ -1054,30 +1054,30 @@ class Google_Service_Calendar_Calendars_Resource extends Google_Service_Resource
1054
  *
1055
  * @param string $calendarId
1056
  * Calendar identifier.
1057
- * @param Google_Calendar $postBody
1058
  * @param array $optParams Optional parameters.
1059
- * @return Google_Service_Calendar_Calendar
1060
  */
1061
- public function patch($calendarId, Google_Service_Calendar_Calendar $postBody, $optParams = array())
1062
  {
1063
  $params = array('calendarId' => $calendarId, 'postBody' => $postBody);
1064
  $params = array_merge($params, $optParams);
1065
- return $this->call('patch', array($params), "Google_Service_Calendar_Calendar");
1066
  }
1067
  /**
1068
  * Updates metadata for a calendar. (calendars.update)
1069
  *
1070
  * @param string $calendarId
1071
  * Calendar identifier.
1072
- * @param Google_Calendar $postBody
1073
  * @param array $optParams Optional parameters.
1074
- * @return Google_Service_Calendar_Calendar
1075
  */
1076
- public function update($calendarId, Google_Service_Calendar_Calendar $postBody, $optParams = array())
1077
  {
1078
  $params = array('calendarId' => $calendarId, 'postBody' => $postBody);
1079
  $params = array_merge($params, $optParams);
1080
- return $this->call('update', array($params), "Google_Service_Calendar_Calendar");
1081
  }
1082
  }
1083
 
@@ -1085,20 +1085,20 @@ class Google_Service_Calendar_Calendars_Resource extends Google_Service_Resource
1085
  * The "channels" collection of methods.
1086
  * Typical usage is:
1087
  * <code>
1088
- * $calendarService = new Google_Service_Calendar(...);
1089
  * $channels = $calendarService->channels;
1090
  * </code>
1091
  */
1092
- class Google_Service_Calendar_Channels_Resource extends Google_Service_Resource
1093
  {
1094
 
1095
  /**
1096
  * Stop watching resources through this channel (channels.stop)
1097
  *
1098
- * @param Google_Channel $postBody
1099
  * @param array $optParams Optional parameters.
1100
  */
1101
- public function stop(Google_Service_Calendar_Channel $postBody, $optParams = array())
1102
  {
1103
  $params = array('postBody' => $postBody);
1104
  $params = array_merge($params, $optParams);
@@ -1110,24 +1110,24 @@ class Google_Service_Calendar_Channels_Resource extends Google_Service_Resource
1110
  * The "colors" collection of methods.
1111
  * Typical usage is:
1112
  * <code>
1113
- * $calendarService = new Google_Service_Calendar(...);
1114
  * $colors = $calendarService->colors;
1115
  * </code>
1116
  */
1117
- class Google_Service_Calendar_Colors_Resource extends Google_Service_Resource
1118
  {
1119
 
1120
  /**
1121
  * Returns the color definitions for calendars and events. (colors.get)
1122
  *
1123
  * @param array $optParams Optional parameters.
1124
- * @return Google_Service_Calendar_Colors
1125
  */
1126
  public function get($optParams = array())
1127
  {
1128
  $params = array();
1129
  $params = array_merge($params, $optParams);
1130
- return $this->call('get', array($params), "Google_Service_Calendar_Colors");
1131
  }
1132
  }
1133
 
@@ -1135,11 +1135,11 @@ class Google_Service_Calendar_Colors_Resource extends Google_Service_Resource
1135
  * The "events" collection of methods.
1136
  * Typical usage is:
1137
  * <code>
1138
- * $calendarService = new Google_Service_Calendar(...);
1139
  * $events = $calendarService->events;
1140
  * </code>
1141
  */
1142
- class Google_Service_Calendar_Events_Resource extends Google_Service_Resource
1143
  {
1144
 
1145
  /**
@@ -1179,13 +1179,13 @@ class Google_Service_Calendar_Events_Resource extends Google_Service_Resource
1179
  * @opt_param int maxAttendees
1180
  * The maximum number of attendees to include in the response. If there are more than the specified
1181
  * number of attendees, only the participant is returned. Optional.
1182
- * @return Google_Service_Calendar_Event
1183
  */
1184
  public function get($calendarId, $eventId, $optParams = array())
1185
  {
1186
  $params = array('calendarId' => $calendarId, 'eventId' => $eventId);
1187
  $params = array_merge($params, $optParams);
1188
- return $this->call('get', array($params), "Google_Service_Calendar_Event");
1189
  }
1190
  /**
1191
  * Imports an event. This operation is used to add a private copy of an existing
@@ -1193,22 +1193,22 @@ class Google_Service_Calendar_Events_Resource extends Google_Service_Resource
1193
  *
1194
  * @param string $calendarId
1195
  * Calendar identifier.
1196
- * @param Google_Event $postBody
1197
  * @param array $optParams Optional parameters.
1198
- * @return Google_Service_Calendar_Event
1199
  */
1200
- public function import($calendarId, Google_Service_Calendar_Event $postBody, $optParams = array())
1201
  {
1202
  $params = array('calendarId' => $calendarId, 'postBody' => $postBody);
1203
  $params = array_merge($params, $optParams);
1204
- return $this->call('import', array($params), "Google_Service_Calendar_Event");
1205
  }
1206
  /**
1207
  * Creates an event. (events.insert)
1208
  *
1209
  * @param string $calendarId
1210
  * Calendar identifier.
1211
- * @param Google_Event $postBody
1212
  * @param array $optParams Optional parameters.
1213
  *
1214
  * @opt_param bool sendNotifications
@@ -1217,13 +1217,13 @@ class Google_Service_Calendar_Events_Resource extends Google_Service_Resource
1217
  * @opt_param int maxAttendees
1218
  * The maximum number of attendees to include in the response. If there are more than the specified
1219
  * number of attendees, only the participant is returned. Optional.
1220
- * @return Google_Service_Calendar_Event
1221
  */
1222
- public function insert($calendarId, Google_Service_Calendar_Event $postBody, $optParams = array())
1223
  {
1224
  $params = array('calendarId' => $calendarId, 'postBody' => $postBody);
1225
  $params = array_merge($params, $optParams);
1226
- return $this->call('insert', array($params), "Google_Service_Calendar_Event");
1227
  }
1228
  /**
1229
  * Returns instances of the specified recurring event. (events.instances)
@@ -1260,13 +1260,13 @@ class Google_Service_Calendar_Events_Resource extends Google_Service_Resource
1260
  * @opt_param int maxAttendees
1261
  * The maximum number of attendees to include in the response. If there are more than the specified
1262
  * number of attendees, only the participant is returned. Optional.
1263
- * @return Google_Service_Calendar_Events
1264
  */
1265
  public function instances($calendarId, $eventId, $optParams = array())
1266
  {
1267
  $params = array('calendarId' => $calendarId, 'eventId' => $eventId);
1268
  $params = array_merge($params, $optParams);
1269
- return $this->call('instances', array($params), "Google_Service_Calendar_Events");
1270
  }
1271
  /**
1272
  * Returns events on the specified calendar. (events.listEvents)
@@ -1326,13 +1326,13 @@ class Google_Service_Calendar_Events_Resource extends Google_Service_Resource
1326
  * @opt_param int maxAttendees
1327
  * The maximum number of attendees to include in the response. If there are more than the specified
1328
  * number of attendees, only the participant is returned. Optional.
1329
- * @return Google_Service_Calendar_Events
1330
  */
1331
  public function listEvents($calendarId, $optParams = array())
1332
  {
1333
  $params = array('calendarId' => $calendarId);
1334
  $params = array_merge($params, $optParams);
1335
- return $this->call('list', array($params), "Google_Service_Calendar_Events");
1336
  }
1337
  /**
1338
  * Moves an event to another calendar, i.e. changes an event's organizer.
@@ -1349,13 +1349,13 @@ class Google_Service_Calendar_Events_Resource extends Google_Service_Resource
1349
  * @opt_param bool sendNotifications
1350
  * Whether to send notifications about the change of the event's organizer. Optional. The default
1351
  * is False.
1352
- * @return Google_Service_Calendar_Event
1353
  */
1354
  public function move($calendarId, $eventId, $destination, $optParams = array())
1355
  {
1356
  $params = array('calendarId' => $calendarId, 'eventId' => $eventId, 'destination' => $destination);
1357
  $params = array_merge($params, $optParams);
1358
- return $this->call('move', array($params), "Google_Service_Calendar_Event");
1359
  }
1360
  /**
1361
  * Updates an event. This method supports patch semantics. (events.patch)
@@ -1364,7 +1364,7 @@ class Google_Service_Calendar_Events_Resource extends Google_Service_Resource
1364
  * Calendar identifier.
1365
  * @param string $eventId
1366
  * Event identifier.
1367
- * @param Google_Event $postBody
1368
  * @param array $optParams Optional parameters.
1369
  *
1370
  * @opt_param bool sendNotifications
@@ -1378,13 +1378,13 @@ class Google_Service_Calendar_Events_Resource extends Google_Service_Resource
1378
  * @opt_param int maxAttendees
1379
  * The maximum number of attendees to include in the response. If there are more than the specified
1380
  * number of attendees, only the participant is returned. Optional.
1381
- * @return Google_Service_Calendar_Event
1382
  */
1383
- public function patch($calendarId, $eventId, Google_Service_Calendar_Event $postBody, $optParams = array())
1384
  {
1385
  $params = array('calendarId' => $calendarId, 'eventId' => $eventId, 'postBody' => $postBody);
1386
  $params = array_merge($params, $optParams);
1387
- return $this->call('patch', array($params), "Google_Service_Calendar_Event");
1388
  }
1389
  /**
1390
  * Creates an event based on a simple text string. (events.quickAdd)
@@ -1397,13 +1397,13 @@ class Google_Service_Calendar_Events_Resource extends Google_Service_Resource
1397
  *
1398
  * @opt_param bool sendNotifications
1399
  * Whether to send notifications about the creation of the event. Optional. The default is False.
1400
- * @return Google_Service_Calendar_Event
1401
  */
1402
  public function quickAdd($calendarId, $text, $optParams = array())
1403
  {
1404
  $params = array('calendarId' => $calendarId, 'text' => $text);
1405
  $params = array_merge($params, $optParams);
1406
- return $this->call('quickAdd', array($params), "Google_Service_Calendar_Event");
1407
  }
1408
  /**
1409
  * Updates an event. (events.update)
@@ -1412,7 +1412,7 @@ class Google_Service_Calendar_Events_Resource extends Google_Service_Resource
1412
  * Calendar identifier.
1413
  * @param string $eventId
1414
  * Event identifier.
1415
- * @param Google_Event $postBody
1416
  * @param array $optParams Optional parameters.
1417
  *
1418
  * @opt_param bool sendNotifications
@@ -1426,20 +1426,20 @@ class Google_Service_Calendar_Events_Resource extends Google_Service_Resource
1426
  * @opt_param int maxAttendees
1427
  * The maximum number of attendees to include in the response. If there are more than the specified
1428
  * number of attendees, only the participant is returned. Optional.
1429
- * @return Google_Service_Calendar_Event
1430
  */
1431
- public function update($calendarId, $eventId, Google_Service_Calendar_Event $postBody, $optParams = array())
1432
  {
1433
  $params = array('calendarId' => $calendarId, 'eventId' => $eventId, 'postBody' => $postBody);
1434
  $params = array_merge($params, $optParams);
1435
- return $this->call('update', array($params), "Google_Service_Calendar_Event");
1436
  }
1437
  /**
1438
  * Watch for changes to Events resources. (events.watch)
1439
  *
1440
  * @param string $calendarId
1441
  * Calendar identifier.
1442
- * @param Google_Channel $postBody
1443
  * @param array $optParams Optional parameters.
1444
  *
1445
  * @opt_param string orderBy
@@ -1493,13 +1493,13 @@ class Google_Service_Calendar_Events_Resource extends Google_Service_Resource
1493
  * @opt_param int maxAttendees
1494
  * The maximum number of attendees to include in the response. If there are more than the specified
1495
  * number of attendees, only the participant is returned. Optional.
1496
- * @return Google_Service_Calendar_Channel
1497
  */
1498
- public function watch($calendarId, Google_Service_Calendar_Channel $postBody, $optParams = array())
1499
  {
1500
  $params = array('calendarId' => $calendarId, 'postBody' => $postBody);
1501
  $params = array_merge($params, $optParams);
1502
- return $this->call('watch', array($params), "Google_Service_Calendar_Channel");
1503
  }
1504
  }
1505
 
@@ -1507,25 +1507,25 @@ class Google_Service_Calendar_Events_Resource extends Google_Service_Resource
1507
  * The "freebusy" collection of methods.
1508
  * Typical usage is:
1509
  * <code>
1510
- * $calendarService = new Google_Service_Calendar(...);
1511
  * $freebusy = $calendarService->freebusy;
1512
  * </code>
1513
  */
1514
- class Google_Service_Calendar_Freebusy_Resource extends Google_Service_Resource
1515
  {
1516
 
1517
  /**
1518
  * Returns free/busy information for a set of calendars. (freebusy.query)
1519
  *
1520
- * @param Google_FreeBusyRequest $postBody
1521
  * @param array $optParams Optional parameters.
1522
- * @return Google_Service_Calendar_FreeBusyResponse
1523
  */
1524
- public function query(Google_Service_Calendar_FreeBusyRequest $postBody, $optParams = array())
1525
  {
1526
  $params = array('postBody' => $postBody);
1527
  $params = array_merge($params, $optParams);
1528
- return $this->call('query', array($params), "Google_Service_Calendar_FreeBusyResponse");
1529
  }
1530
  }
1531
 
@@ -1533,11 +1533,11 @@ class Google_Service_Calendar_Freebusy_Resource extends Google_Service_Resource
1533
  * The "settings" collection of methods.
1534
  * Typical usage is:
1535
  * <code>
1536
- * $calendarService = new Google_Service_Calendar(...);
1537
  * $settings = $calendarService->settings;
1538
  * </code>
1539
  */
1540
- class Google_Service_Calendar_Settings_Resource extends Google_Service_Resource
1541
  {
1542
 
1543
  /**
@@ -1546,35 +1546,35 @@ class Google_Service_Calendar_Settings_Resource extends Google_Service_Resource
1546
  * @param string $setting
1547
  * The id of the user setting.
1548
  * @param array $optParams Optional parameters.
1549
- * @return Google_Service_Calendar_Setting
1550
  */
1551
  public function get($setting, $optParams = array())
1552
  {
1553
  $params = array('setting' => $setting);
1554
  $params = array_merge($params, $optParams);
1555
- return $this->call('get', array($params), "Google_Service_Calendar_Setting");
1556
  }
1557
  /**
1558
  * Returns all user settings for the authenticated user. (settings.listSettings)
1559
  *
1560
  * @param array $optParams Optional parameters.
1561
- * @return Google_Service_Calendar_Settings
1562
  */
1563
  public function listSettings($optParams = array())
1564
  {
1565
  $params = array();
1566
  $params = array_merge($params, $optParams);
1567
- return $this->call('list', array($params), "Google_Service_Calendar_Settings");
1568
  }
1569
  }
1570
 
1571
 
1572
 
1573
 
1574
- class Google_Service_Calendar_Acl extends Google_Collection
1575
  {
1576
  public $etag;
1577
- protected $itemsType = 'Google_Service_Calendar_AclRule';
1578
  protected $itemsDataType = 'array';
1579
  public $kind;
1580
  public $nextPageToken;
@@ -1620,13 +1620,13 @@ class Google_Service_Calendar_Acl extends Google_Collection
1620
  }
1621
  }
1622
 
1623
- class Google_Service_Calendar_AclRule extends Google_Model
1624
  {
1625
  public $etag;
1626
  public $id;
1627
  public $kind;
1628
  public $role;
1629
- protected $scopeType = 'Google_Service_Calendar_AclRuleScope';
1630
  protected $scopeDataType = '';
1631
 
1632
  public function setEtag($etag)
@@ -1669,7 +1669,7 @@ class Google_Service_Calendar_AclRule extends Google_Model
1669
  return $this->role;
1670
  }
1671
 
1672
- public function setScope(Google_Service_Calendar_AclRuleScope $scope)
1673
  {
1674
  $this->scope = $scope;
1675
  }
@@ -1680,7 +1680,7 @@ class Google_Service_Calendar_AclRule extends Google_Model
1680
  }
1681
  }
1682
 
1683
- class Google_Service_Calendar_AclRuleScope extends Google_Model
1684
  {
1685
  public $type;
1686
  public $value;
@@ -1706,7 +1706,7 @@ class Google_Service_Calendar_AclRuleScope extends Google_Model
1706
  }
1707
  }
1708
 
1709
- class Google_Service_Calendar_Calendar extends Google_Model
1710
  {
1711
  public $description;
1712
  public $etag;
@@ -1787,10 +1787,10 @@ class Google_Service_Calendar_Calendar extends Google_Model
1787
  }
1788
  }
1789
 
1790
- class Google_Service_Calendar_CalendarList extends Google_Collection
1791
  {
1792
  public $etag;
1793
- protected $itemsType = 'Google_Service_Calendar_CalendarListEntry';
1794
  protected $itemsDataType = 'array';
1795
  public $kind;
1796
  public $nextPageToken;
@@ -1836,12 +1836,12 @@ class Google_Service_Calendar_CalendarList extends Google_Collection
1836
  }
1837
  }
1838
 
1839
- class Google_Service_Calendar_CalendarListEntry extends Google_Collection
1840
  {
1841
  public $accessRole;
1842
  public $backgroundColor;
1843
  public $colorId;
1844
- protected $defaultRemindersType = 'Google_Service_Calendar_EventReminder';
1845
  protected $defaultRemindersDataType = 'array';
1846
  public $description;
1847
  public $etag;
@@ -1850,7 +1850,7 @@ class Google_Service_Calendar_CalendarListEntry extends Google_Collection
1850
  public $id;
1851
  public $kind;
1852
  public $location;
1853
- protected $notificationSettingsType = 'Google_Service_Calendar_CalendarListEntryNotificationSettings';
1854
  protected $notificationSettingsDataType = '';
1855
  public $primary;
1856
  public $selected;
@@ -1968,7 +1968,7 @@ class Google_Service_Calendar_CalendarListEntry extends Google_Collection
1968
  return $this->location;
1969
  }
1970
 
1971
- public function setNotificationSettings(Google_Service_Calendar_CalendarListEntryNotificationSettings $notificationSettings)
1972
  {
1973
  $this->notificationSettings = $notificationSettings;
1974
  }
@@ -2029,9 +2029,9 @@ class Google_Service_Calendar_CalendarListEntry extends Google_Collection
2029
  }
2030
  }
2031
 
2032
- class Google_Service_Calendar_CalendarListEntryNotificationSettings extends Google_Collection
2033
  {
2034
- protected $notificationsType = 'Google_Service_Calendar_CalendarNotification';
2035
  protected $notificationsDataType = 'array';
2036
 
2037
  public function setNotifications($notifications)
@@ -2045,7 +2045,7 @@ class Google_Service_Calendar_CalendarListEntryNotificationSettings extends Goog
2045
  }
2046
  }
2047
 
2048
- class Google_Service_Calendar_CalendarNotification extends Google_Model
2049
  {
2050
  public $method;
2051
  public $type;
@@ -2071,7 +2071,7 @@ class Google_Service_Calendar_CalendarNotification extends Google_Model
2071
  }
2072
  }
2073
 
2074
- class Google_Service_Calendar_Channel extends Google_Model
2075
  {
2076
  public $address;
2077
  public $expiration;
@@ -2185,7 +2185,7 @@ class Google_Service_Calendar_Channel extends Google_Model
2185
  }
2186
  }
2187
 
2188
- class Google_Service_Calendar_ColorDefinition extends Google_Model
2189
  {
2190
  public $background;
2191
  public $foreground;
@@ -2211,11 +2211,11 @@ class Google_Service_Calendar_ColorDefinition extends Google_Model
2211
  }
2212
  }
2213
 
2214
- class Google_Service_Calendar_Colors extends Google_Model
2215
  {
2216
- protected $calendarType = 'Google_Service_Calendar_ColorDefinition';
2217
  protected $calendarDataType = 'map';
2218
- protected $eventType = 'Google_Service_Calendar_ColorDefinition';
2219
  protected $eventDataType = 'map';
2220
  public $kind;
2221
  public $updated;
@@ -2261,7 +2261,7 @@ class Google_Service_Calendar_Colors extends Google_Model
2261
  }
2262
  }
2263
 
2264
- class Google_Service_Calendar_Error extends Google_Model
2265
  {
2266
  public $domain;
2267
  public $reason;
@@ -2287,24 +2287,24 @@ class Google_Service_Calendar_Error extends Google_Model
2287
  }
2288
  }
2289
 
2290
- class Google_Service_Calendar_Event extends Google_Collection
2291
  {
2292
  public $anyoneCanAddSelf;
2293
- protected $attendeesType = 'Google_Service_Calendar_EventAttendee';
2294
  protected $attendeesDataType = 'array';
2295
  public $attendeesOmitted;
2296
  public $colorId;
2297
  public $created;
2298
- protected $creatorType = 'Google_Service_Calendar_EventCreator';
2299
  protected $creatorDataType = '';
2300
  public $description;
2301
- protected $endType = 'Google_Service_Calendar_EventDateTime';
2302
  protected $endDataType = '';
2303
  public $endTimeUnspecified;
2304
  public $etag;
2305
- protected $extendedPropertiesType = 'Google_Service_Calendar_EventExtendedProperties';
2306
  protected $extendedPropertiesDataType = '';
2307
- protected $gadgetType = 'Google_Service_Calendar_EventGadget';
2308
  protected $gadgetDataType = '';
2309
  public $guestsCanInviteOthers;
2310
  public $guestsCanModify;
@@ -2316,19 +2316,19 @@ class Google_Service_Calendar_Event extends Google_Collection
2316
  public $kind;
2317
  public $location;
2318
  public $locked;
2319
- protected $organizerType = 'Google_Service_Calendar_EventOrganizer';
2320
  protected $organizerDataType = '';
2321
- protected $originalStartTimeType = 'Google_Service_Calendar_EventDateTime';
2322
  protected $originalStartTimeDataType = '';
2323
  public $privateCopy;
2324
  public $recurrence;
2325
  public $recurringEventId;
2326
- protected $remindersType = 'Google_Service_Calendar_EventReminders';
2327
  protected $remindersDataType = '';
2328
  public $sequence;
2329
- protected $sourceType = 'Google_Service_Calendar_EventSource';
2330
  protected $sourceDataType = '';
2331
- protected $startType = 'Google_Service_Calendar_EventDateTime';
2332
  protected $startDataType = '';
2333
  public $status;
2334
  public $summary;
@@ -2386,7 +2386,7 @@ class Google_Service_Calendar_Event extends Google_Collection
2386
  return $this->created;
2387
  }
2388
 
2389
- public function setCreator(Google_Service_Calendar_EventCreator $creator)
2390
  {
2391
  $this->creator = $creator;
2392
  }
@@ -2406,7 +2406,7 @@ class Google_Service_Calendar_Event extends Google_Collection
2406
  return $this->description;
2407
  }
2408
 
2409
- public function setEnd(Google_Service_Calendar_EventDateTime $end)
2410
  {
2411
  $this->end = $end;
2412
  }
@@ -2436,7 +2436,7 @@ class Google_Service_Calendar_Event extends Google_Collection
2436
  return $this->etag;
2437
  }
2438
 
2439
- public function setExtendedProperties(Google_Service_Calendar_EventExtendedProperties $extendedProperties)
2440
  {
2441
  $this->extendedProperties = $extendedProperties;
2442
  }
@@ -2446,7 +2446,7 @@ class Google_Service_Calendar_Event extends Google_Collection
2446
  return $this->extendedProperties;
2447
  }
2448
 
2449
- public function setGadget(Google_Service_Calendar_EventGadget $gadget)
2450
  {
2451
  $this->gadget = $gadget;
2452
  }
@@ -2556,7 +2556,7 @@ class Google_Service_Calendar_Event extends Google_Collection
2556
  return $this->locked;
2557
  }
2558
 
2559
- public function setOrganizer(Google_Service_Calendar_EventOrganizer $organizer)
2560
  {
2561
  $this->organizer = $organizer;
2562
  }
@@ -2566,7 +2566,7 @@ class Google_Service_Calendar_Event extends Google_Collection
2566
  return $this->organizer;
2567
  }
2568
 
2569
- public function setOriginalStartTime(Google_Service_Calendar_EventDateTime $originalStartTime)
2570
  {
2571
  $this->originalStartTime = $originalStartTime;
2572
  }
@@ -2606,7 +2606,7 @@ class Google_Service_Calendar_Event extends Google_Collection
2606
  return $this->recurringEventId;
2607
  }
2608
 
2609
- public function setReminders(Google_Service_Calendar_EventReminders $reminders)
2610
  {
2611
  $this->reminders = $reminders;
2612
  }
@@ -2626,7 +2626,7 @@ class Google_Service_Calendar_Event extends Google_Collection
2626
  return $this->sequence;
2627
  }
2628
 
2629
- public function setSource(Google_Service_Calendar_EventSource $source)
2630
  {
2631
  $this->source = $source;
2632
  }
@@ -2636,7 +2636,7 @@ class Google_Service_Calendar_Event extends Google_Collection
2636
  return $this->source;
2637
  }
2638
 
2639
- public function setStart(Google_Service_Calendar_EventDateTime $start)
2640
  {
2641
  $this->start = $start;
2642
  }
@@ -2697,7 +2697,7 @@ class Google_Service_Calendar_Event extends Google_Collection
2697
  }
2698
  }
2699
 
2700
- class Google_Service_Calendar_EventAttendee extends Google_Model
2701
  {
2702
  public $additionalGuests;
2703
  public $comment;
@@ -2811,7 +2811,7 @@ class Google_Service_Calendar_EventAttendee extends Google_Model
2811
  }
2812
  }
2813
 
2814
- class Google_Service_Calendar_EventCreator extends Google_Model
2815
  {
2816
  public $displayName;
2817
  public $email;
@@ -2859,7 +2859,7 @@ class Google_Service_Calendar_EventCreator extends Google_Model
2859
  }
2860
  }
2861
 
2862
- class Google_Service_Calendar_EventDateTime extends Google_Model
2863
  {
2864
  public $date;
2865
  public $dateTime;
@@ -2896,7 +2896,7 @@ class Google_Service_Calendar_EventDateTime extends Google_Model
2896
  }
2897
  }
2898
 
2899
- class Google_Service_Calendar_EventExtendedProperties extends Google_Model
2900
  {
2901
  public $private;
2902
  public $shared;
@@ -2922,7 +2922,7 @@ class Google_Service_Calendar_EventExtendedProperties extends Google_Model
2922
  }
2923
  }
2924
 
2925
- class Google_Service_Calendar_EventGadget extends Google_Model
2926
  {
2927
  public $display;
2928
  public $height;
@@ -3014,7 +3014,7 @@ class Google_Service_Calendar_EventGadget extends Google_Model
3014
  }
3015
  }
3016
 
3017
- class Google_Service_Calendar_EventOrganizer extends Google_Model
3018
  {
3019
  public $displayName;
3020
  public $email;
@@ -3062,7 +3062,7 @@ class Google_Service_Calendar_EventOrganizer extends Google_Model
3062
  }
3063
  }
3064
 
3065
- class Google_Service_Calendar_EventReminder extends Google_Model
3066
  {
3067
  public $method;
3068
  public $minutes;
@@ -3088,9 +3088,9 @@ class Google_Service_Calendar_EventReminder extends Google_Model
3088
  }
3089
  }
3090
 
3091
- class Google_Service_Calendar_EventReminders extends Google_Collection
3092
  {
3093
- protected $overridesType = 'Google_Service_Calendar_EventReminder';
3094
  protected $overridesDataType = 'array';
3095
  public $useDefault;
3096
 
@@ -3115,7 +3115,7 @@ class Google_Service_Calendar_EventReminders extends Google_Collection
3115
  }
3116
  }
3117
 
3118
- class Google_Service_Calendar_EventSource extends Google_Model
3119
  {
3120
  public $title;
3121
  public $url;
@@ -3141,14 +3141,14 @@ class Google_Service_Calendar_EventSource extends Google_Model
3141
  }
3142
  }
3143
 
3144
- class Google_Service_Calendar_Events extends Google_Collection
3145
  {
3146
  public $accessRole;
3147
- protected $defaultRemindersType = 'Google_Service_Calendar_EventReminder';
3148
  protected $defaultRemindersDataType = 'array';
3149
  public $description;
3150
  public $etag;
3151
- protected $itemsType = 'Google_Service_Calendar_Event';
3152
  protected $itemsDataType = 'array';
3153
  public $kind;
3154
  public $nextPageToken;
@@ -3257,11 +3257,11 @@ class Google_Service_Calendar_Events extends Google_Collection
3257
  }
3258
  }
3259
 
3260
- class Google_Service_Calendar_FreeBusyCalendar extends Google_Collection
3261
  {
3262
- protected $busyType = 'Google_Service_Calendar_TimePeriod';
3263
  protected $busyDataType = 'array';
3264
- protected $errorsType = 'Google_Service_Calendar_Error';
3265
  protected $errorsDataType = 'array';
3266
 
3267
  public function setBusy($busy)
@@ -3285,10 +3285,10 @@ class Google_Service_Calendar_FreeBusyCalendar extends Google_Collection
3285
  }
3286
  }
3287
 
3288
- class Google_Service_Calendar_FreeBusyGroup extends Google_Collection
3289
  {
3290
  public $calendars;
3291
- protected $errorsType = 'Google_Service_Calendar_Error';
3292
  protected $errorsDataType = 'array';
3293
 
3294
  public function setCalendars($calendars)
@@ -3312,11 +3312,11 @@ class Google_Service_Calendar_FreeBusyGroup extends Google_Collection
3312
  }
3313
  }
3314
 
3315
- class Google_Service_Calendar_FreeBusyRequest extends Google_Collection
3316
  {
3317
  public $calendarExpansionMax;
3318
  public $groupExpansionMax;
3319
- protected $itemsType = 'Google_Service_Calendar_FreeBusyRequestItem';
3320
  protected $itemsDataType = 'array';
3321
  public $timeMax;
3322
  public $timeMin;
@@ -3383,7 +3383,7 @@ class Google_Service_Calendar_FreeBusyRequest extends Google_Collection
3383
  }
3384
  }
3385
 
3386
- class Google_Service_Calendar_FreeBusyRequestItem extends Google_Model
3387
  {
3388
  public $id;
3389
 
@@ -3398,11 +3398,11 @@ class Google_Service_Calendar_FreeBusyRequestItem extends Google_Model
3398
  }
3399
  }
3400
 
3401
- class Google_Service_Calendar_FreeBusyResponse extends Google_Model
3402
  {
3403
- protected $calendarsType = 'Google_Service_Calendar_FreeBusyCalendar';
3404
  protected $calendarsDataType = 'map';
3405
- protected $groupsType = 'Google_Service_Calendar_FreeBusyGroup';
3406
  protected $groupsDataType = 'map';
3407
  public $kind;
3408
  public $timeMax;
@@ -3459,7 +3459,7 @@ class Google_Service_Calendar_FreeBusyResponse extends Google_Model
3459
  }
3460
  }
3461
 
3462
- class Google_Service_Calendar_Setting extends Google_Model
3463
  {
3464
  public $etag;
3465
  public $id;
@@ -3507,10 +3507,10 @@ class Google_Service_Calendar_Setting extends Google_Model
3507
  }
3508
  }
3509
 
3510
- class Google_Service_Calendar_Settings extends Google_Collection
3511
  {
3512
  public $etag;
3513
- protected $itemsType = 'Google_Service_Calendar_Setting';
3514
  protected $itemsDataType = 'array';
3515
  public $kind;
3516
 
@@ -3545,7 +3545,7 @@ class Google_Service_Calendar_Settings extends Google_Collection
3545
  }
3546
  }
3547
 
3548
- class Google_Service_Calendar_TimePeriod extends Google_Model
3549
  {
3550
  public $end;
3551
  public $start;
29
  *
30
  * @author Google, Inc.
31
  */
32
+ class GoogleGAL_Service_Calendar extends GoogleGAL_Service
33
  {
34
  /** Manage your calendars. */
35
  const CALENDAR = "https://www.googleapis.com/auth/calendar";
49
  /**
50
  * Constructs the internal representation of the Calendar service.
51
  *
52
+ * @param GoogleGAL_Client $client
53
  */
54
+ public function __construct(GoogleGAL_Client $client)
55
  {
56
  parent::__construct($client);
57
  $this->servicePath = 'calendar/v3/';
58
  $this->version = 'v3';
59
  $this->serviceName = 'calendar';
60
 
61
+ $this->acl = new GoogleGAL_Service_Calendar_Acl_Resource(
62
  $this,
63
  $this->serviceName,
64
  'acl',
148
  )
149
  )
150
  );
151
+ $this->calendarList = new GoogleGAL_Service_Calendar_CalendarList_Resource(
152
  $this,
153
  $this->serviceName,
154
  'calendarList',
236
  )
237
  )
238
  );
239
+ $this->calendars = new GoogleGAL_Service_Calendar_Calendars_Resource(
240
  $this,
241
  $this->serviceName,
242
  'calendars',
300
  )
301
  )
302
  );
303
+ $this->channels = new GoogleGAL_Service_Calendar_Channels_Resource(
304
  $this,
305
  $this->serviceName,
306
  'channels',
314
  )
315
  )
316
  );
317
+ $this->colors = new GoogleGAL_Service_Calendar_Colors_Resource(
318
  $this,
319
  $this->serviceName,
320
  'colors',
328
  )
329
  )
330
  );
331
+ $this->events = new GoogleGAL_Service_Calendar_Events_Resource(
332
  $this,
333
  $this->serviceName,
334
  'events',
712
  )
713
  )
714
  );
715
+ $this->freebusy = new GoogleGAL_Service_Calendar_Freebusy_Resource(
716
  $this,
717
  $this->serviceName,
718
  'freebusy',
726
  )
727
  )
728
  );
729
+ $this->settings = new GoogleGAL_Service_Calendar_Settings_Resource(
730
  $this,
731
  $this->serviceName,
732
  'settings',
758
  * The "acl" collection of methods.
759
  * Typical usage is:
760
  * <code>
761
+ * $calendarService = new GoogleGAL_Service_Calendar(...);
762
  * $acl = $calendarService->acl;
763
  * </code>
764
  */
765
+ class GoogleGAL_Service_Calendar_Acl_Resource extends GoogleGAL_Service_Resource
766
  {
767
 
768
  /**
788
  * @param string $ruleId
789
  * ACL rule identifier.
790
  * @param array $optParams Optional parameters.
791
+ * @return GoogleGAL_Service_Calendar_AclRule
792
  */
793
  public function get($calendarId, $ruleId, $optParams = array())
794
  {
795
  $params = array('calendarId' => $calendarId, 'ruleId' => $ruleId);
796
  $params = array_merge($params, $optParams);
797
+ return $this->call('get', array($params), "GoogleGAL_Service_Calendar_AclRule");
798
  }
799
  /**
800
  * Creates an access control rule. (acl.insert)
801
  *
802
  * @param string $calendarId
803
  * Calendar identifier.
804
+ * @param GoogleGAL_AclRule $postBody
805
  * @param array $optParams Optional parameters.
806
+ * @return GoogleGAL_Service_Calendar_AclRule
807
  */
808
+ public function insert($calendarId, GoogleGAL_Service_Calendar_AclRule $postBody, $optParams = array())
809
  {
810
  $params = array('calendarId' => $calendarId, 'postBody' => $postBody);
811
  $params = array_merge($params, $optParams);
812
+ return $this->call('insert', array($params), "GoogleGAL_Service_Calendar_AclRule");
813
  }
814
  /**
815
  * Returns the rules in the access control list for the calendar. (acl.listAcl)
817
  * @param string $calendarId
818
  * Calendar identifier.
819
  * @param array $optParams Optional parameters.
820
+ * @return GoogleGAL_Service_Calendar_Acl
821
  */
822
  public function listAcl($calendarId, $optParams = array())
823
  {
824
  $params = array('calendarId' => $calendarId);
825
  $params = array_merge($params, $optParams);
826
+ return $this->call('list', array($params), "GoogleGAL_Service_Calendar_Acl");
827
  }
828
  /**
829
  * Updates an access control rule. This method supports patch semantics.
833
  * Calendar identifier.
834
  * @param string $ruleId
835
  * ACL rule identifier.
836
+ * @param GoogleGAL_AclRule $postBody
837
  * @param array $optParams Optional parameters.
838
+ * @return GoogleGAL_Service_Calendar_AclRule
839
  */
840
+ public function patch($calendarId, $ruleId, GoogleGAL_Service_Calendar_AclRule $postBody, $optParams = array())
841
  {
842
  $params = array('calendarId' => $calendarId, 'ruleId' => $ruleId, 'postBody' => $postBody);
843
  $params = array_merge($params, $optParams);
844
+ return $this->call('patch', array($params), "GoogleGAL_Service_Calendar_AclRule");
845
  }
846
  /**
847
  * Updates an access control rule. (acl.update)
850
  * Calendar identifier.
851
  * @param string $ruleId
852
  * ACL rule identifier.
853
+ * @param GoogleGAL_AclRule $postBody
854
  * @param array $optParams Optional parameters.
855
+ * @return GoogleGAL_Service_Calendar_AclRule
856
  */
857
+ public function update($calendarId, $ruleId, GoogleGAL_Service_Calendar_AclRule $postBody, $optParams = array())
858
  {
859
  $params = array('calendarId' => $calendarId, 'ruleId' => $ruleId, 'postBody' => $postBody);
860
  $params = array_merge($params, $optParams);
861
+ return $this->call('update', array($params), "GoogleGAL_Service_Calendar_AclRule");
862
  }
863
  }
864
 
866
  * The "calendarList" collection of methods.
867
  * Typical usage is:
868
  * <code>
869
+ * $calendarService = new GoogleGAL_Service_Calendar(...);
870
  * $calendarList = $calendarService->calendarList;
871
  * </code>
872
  */
873
+ class GoogleGAL_Service_Calendar_CalendarList_Resource extends GoogleGAL_Service_Resource
874
  {
875
 
876
  /**
892
  * @param string $calendarId
893
  * Calendar identifier.
894
  * @param array $optParams Optional parameters.
895
+ * @return GoogleGAL_Service_Calendar_CalendarListEntry
896
  */
897
  public function get($calendarId, $optParams = array())
898
  {
899
  $params = array('calendarId' => $calendarId);
900
  $params = array_merge($params, $optParams);
901
+ return $this->call('get', array($params), "GoogleGAL_Service_Calendar_CalendarListEntry");
902
  }
903
  /**
904
  * Adds an entry to the user's calendar list. (calendarList.insert)
905
  *
906
+ * @param GoogleGAL_CalendarListEntry $postBody
907
  * @param array $optParams Optional parameters.
908
  *
909
  * @opt_param bool colorRgbFormat
910
  * Whether to use the foregroundColor and backgroundColor fields to write the calendar colors
911
  * (RGB). If this feature is used, the index-based colorId field will be set to the best matching
912
  * option automatically. Optional. The default is False.
913
+ * @return GoogleGAL_Service_Calendar_CalendarListEntry
914
  */
915
+ public function insert(GoogleGAL_Service_Calendar_CalendarListEntry $postBody, $optParams = array())
916
  {
917
  $params = array('postBody' => $postBody);
918
  $params = array_merge($params, $optParams);
919
+ return $this->call('insert', array($params), "GoogleGAL_Service_Calendar_CalendarListEntry");
920
  }
921
  /**
922
  * Returns entries on the user's calendar list. (calendarList.listCalendarList)
932
  * @opt_param string minAccessRole
933
  * The minimum access role for the user in the returned entires. Optional. The default is no
934
  * restriction.
935
+ * @return GoogleGAL_Service_Calendar_CalendarList
936
  */
937
  public function listCalendarList($optParams = array())
938
  {
939
  $params = array();
940
  $params = array_merge($params, $optParams);
941
+ return $this->call('list', array($params), "GoogleGAL_Service_Calendar_CalendarList");
942
  }
943
  /**
944
  * Updates an entry on the user's calendar list. This method supports patch
946
  *
947
  * @param string $calendarId
948
  * Calendar identifier.
949
+ * @param GoogleGAL_CalendarListEntry $postBody
950
  * @param array $optParams Optional parameters.
951
  *
952
  * @opt_param bool colorRgbFormat
953
  * Whether to use the 'foregroundColor' and 'backgroundColor' fields to write the calendar colors
954
  * (RGB). If this feature is used, the index-based 'colorId' field will be set to the best matching
955
  * option automatically. Optional. The default is False.
956
+ * @return GoogleGAL_Service_Calendar_CalendarListEntry
957
  */
958
+ public function patch($calendarId, GoogleGAL_Service_Calendar_CalendarListEntry $postBody, $optParams = array())
959
  {
960
  $params = array('calendarId' => $calendarId, 'postBody' => $postBody);
961
  $params = array_merge($params, $optParams);
962
+ return $this->call('patch', array($params), "GoogleGAL_Service_Calendar_CalendarListEntry");
963
  }
964
  /**
965
  * Updates an entry on the user's calendar list. (calendarList.update)
966
  *
967
  * @param string $calendarId
968
  * Calendar identifier.
969
+ * @param GoogleGAL_CalendarListEntry $postBody
970
  * @param array $optParams Optional parameters.
971
  *
972
  * @opt_param bool colorRgbFormat
973
  * Whether to use the 'foregroundColor' and 'backgroundColor' fields to write the calendar colors
974
  * (RGB). If this feature is used, the index-based 'colorId' field will be set to the best matching
975
  * option automatically. Optional. The default is False.
976
+ * @return GoogleGAL_Service_Calendar_CalendarListEntry
977
  */
978
+ public function update($calendarId, GoogleGAL_Service_Calendar_CalendarListEntry $postBody, $optParams = array())
979
  {
980
  $params = array('calendarId' => $calendarId, 'postBody' => $postBody);
981
  $params = array_merge($params, $optParams);
982
+ return $this->call('update', array($params), "GoogleGAL_Service_Calendar_CalendarListEntry");
983
  }
984
  }
985
 
987
  * The "calendars" collection of methods.
988
  * Typical usage is:
989
  * <code>
990
+ * $calendarService = new GoogleGAL_Service_Calendar(...);
991
  * $calendars = $calendarService->calendars;
992
  * </code>
993
  */
994
+ class GoogleGAL_Service_Calendar_Calendars_Resource extends GoogleGAL_Service_Resource
995
  {
996
 
997
  /**
1027
  * @param string $calendarId
1028
  * Calendar identifier.
1029
  * @param array $optParams Optional parameters.
1030
+ * @return GoogleGAL_Service_Calendar_Calendar
1031
  */
1032
  public function get($calendarId, $optParams = array())
1033
  {
1034
  $params = array('calendarId' => $calendarId);
1035
  $params = array_merge($params, $optParams);
1036
+ return $this->call('get', array($params), "GoogleGAL_Service_Calendar_Calendar");
1037
  }
1038
  /**
1039
  * Creates a secondary calendar. (calendars.insert)
1040
  *
1041
+ * @param GoogleGAL_Calendar $postBody
1042
  * @param array $optParams Optional parameters.
1043
+ * @return GoogleGAL_Service_Calendar_Calendar
1044
  */
1045
+ public function insert(GoogleGAL_Service_Calendar_Calendar $postBody, $optParams = array())
1046
  {
1047
  $params = array('postBody' => $postBody);
1048
  $params = array_merge($params, $optParams);
1049
+ return $this->call('insert', array($params), "GoogleGAL_Service_Calendar_Calendar");
1050
  }
1051
  /**
1052
  * Updates metadata for a calendar. This method supports patch semantics.
1054
  *
1055
  * @param string $calendarId
1056
  * Calendar identifier.
1057
+ * @param GoogleGAL_Calendar $postBody
1058
  * @param array $optParams Optional parameters.
1059
+ * @return GoogleGAL_Service_Calendar_Calendar
1060
  */
1061
+ public function patch($calendarId, GoogleGAL_Service_Calendar_Calendar $postBody, $optParams = array())
1062
  {
1063
  $params = array('calendarId' => $calendarId, 'postBody' => $postBody);
1064
  $params = array_merge($params, $optParams);
1065
+ return $this->call('patch', array($params), "GoogleGAL_Service_Calendar_Calendar");
1066
  }
1067
  /**
1068
  * Updates metadata for a calendar. (calendars.update)
1069
  *
1070
  * @param string $calendarId
1071
  * Calendar identifier.
1072
+ * @param GoogleGAL_Calendar $postBody
1073
  * @param array $optParams Optional parameters.
1074
+ * @return GoogleGAL_Service_Calendar_Calendar
1075
  */
1076
+ public function update($calendarId, GoogleGAL_Service_Calendar_Calendar $postBody, $optParams = array())
1077
  {
1078
  $params = array('calendarId' => $calendarId, 'postBody' => $postBody);
1079
  $params = array_merge($params, $optParams);
1080
+ return $this->call('update', array($params), "GoogleGAL_Service_Calendar_Calendar");
1081
  }
1082
  }
1083
 
1085
  * The "channels" collection of methods.
1086
  * Typical usage is:
1087
  * <code>
1088
+ * $calendarService = new GoogleGAL_Service_Calendar(...);
1089
  * $channels = $calendarService->channels;
1090
  * </code>
1091
  */
1092
+ class GoogleGAL_Service_Calendar_Channels_Resource extends GoogleGAL_Service_Resource
1093
  {
1094
 
1095
  /**
1096
  * Stop watching resources through this channel (channels.stop)
1097
  *
1098
+ * @param GoogleGAL_Channel $postBody
1099
  * @param array $optParams Optional parameters.
1100
  */
1101
+ public function stop(GoogleGAL_Service_Calendar_Channel $postBody, $optParams = array())
1102
  {
1103
  $params = array('postBody' => $postBody);
1104
  $params = array_merge($params, $optParams);
1110
  * The "colors" collection of methods.
1111
  * Typical usage is:
1112
  * <code>
1113
+ * $calendarService = new GoogleGAL_Service_Calendar(...);
1114
  * $colors = $calendarService->colors;
1115
  * </code>
1116
  */
1117
+ class GoogleGAL_Service_Calendar_Colors_Resource extends GoogleGAL_Service_Resource
1118
  {
1119
 
1120
  /**
1121
  * Returns the color definitions for calendars and events. (colors.get)
1122
  *
1123
  * @param array $optParams Optional parameters.
1124
+ * @return GoogleGAL_Service_Calendar_Colors
1125
  */
1126
  public function get($optParams = array())
1127
  {
1128
  $params = array();
1129
  $params = array_merge($params, $optParams);
1130
+ return $this->call('get', array($params), "GoogleGAL_Service_Calendar_Colors");
1131
  }
1132
  }
1133
 
1135
  * The "events" collection of methods.
1136
  * Typical usage is:
1137
  * <code>
1138
+ * $calendarService = new GoogleGAL_Service_Calendar(...);
1139
  * $events = $calendarService->events;
1140
  * </code>
1141
  */
1142
+ class GoogleGAL_Service_Calendar_Events_Resource extends GoogleGAL_Service_Resource
1143
  {
1144
 
1145
  /**
1179
  * @opt_param int maxAttendees
1180
  * The maximum number of attendees to include in the response. If there are more than the specified
1181
  * number of attendees, only the participant is returned. Optional.
1182
+ * @return GoogleGAL_Service_Calendar_Event
1183
  */
1184
  public function get($calendarId, $eventId, $optParams = array())
1185
  {
1186
  $params = array('calendarId' => $calendarId, 'eventId' => $eventId);
1187
  $params = array_merge($params, $optParams);
1188
+ return $this->call('get', array($params), "GoogleGAL_Service_Calendar_Event");
1189
  }
1190
  /**
1191
  * Imports an event. This operation is used to add a private copy of an existing
1193
  *
1194
  * @param string $calendarId
1195
  * Calendar identifier.
1196
+ * @param GoogleGAL_Event $postBody
1197
  * @param array $optParams Optional parameters.
1198
+ * @return GoogleGAL_Service_Calendar_Event
1199
  */
1200
+ public function import($calendarId, GoogleGAL_Service_Calendar_Event $postBody, $optParams = array())
1201
  {
1202
  $params = array('calendarId' => $calendarId, 'postBody' => $postBody);
1203
  $params = array_merge($params, $optParams);
1204
+ return $this->call('import', array($params), "GoogleGAL_Service_Calendar_Event");
1205
  }
1206
  /**
1207
  * Creates an event. (events.insert)
1208
  *
1209
  * @param string $calendarId
1210
  * Calendar identifier.
1211
+ * @param GoogleGAL_Event $postBody
1212
  * @param array $optParams Optional parameters.
1213
  *
1214
  * @opt_param bool sendNotifications
1217
  * @opt_param int maxAttendees
1218
  * The maximum number of attendees to include in the response. If there are more than the specified
1219
  * number of attendees, only the participant is returned. Optional.
1220
+ * @return GoogleGAL_Service_Calendar_Event
1221
  */
1222
+ public function insert($calendarId, GoogleGAL_Service_Calendar_Event $postBody, $optParams = array())
1223
  {
1224
  $params = array('calendarId' => $calendarId, 'postBody' => $postBody);
1225
  $params = array_merge($params, $optParams);
1226
+ return $this->call('insert', array($params), "GoogleGAL_Service_Calendar_Event");
1227
  }
1228
  /**
1229
  * Returns instances of the specified recurring event. (events.instances)
1260
  * @opt_param int maxAttendees
1261
  * The maximum number of attendees to include in the response. If there are more than the specified
1262
  * number of attendees, only the participant is returned. Optional.
1263
+ * @return GoogleGAL_Service_Calendar_Events
1264
  */
1265
  public function instances($calendarId, $eventId, $optParams = array())
1266
  {
1267
  $params = array('calendarId' => $calendarId, 'eventId' => $eventId);
1268
  $params = array_merge($params, $optParams);
1269
+ return $this->call('instances', array($params), "GoogleGAL_Service_Calendar_Events");
1270
  }
1271
  /**
1272
  * Returns events on the specified calendar. (events.listEvents)
1326
  * @opt_param int maxAttendees
1327
  * The maximum number of attendees to include in the response. If there are more than the specified
1328
  * number of attendees, only the participant is returned. Optional.
1329
+ * @return GoogleGAL_Service_Calendar_Events
1330
  */
1331
  public function listEvents($calendarId, $optParams = array())
1332
  {
1333
  $params = array('calendarId' => $calendarId);
1334
  $params = array_merge($params, $optParams);
1335
+ return $this->call('list', array($params), "GoogleGAL_Service_Calendar_Events");
1336
  }
1337
  /**
1338
  * Moves an event to another calendar, i.e. changes an event's organizer.
1349
  * @opt_param bool sendNotifications
1350
  * Whether to send notifications about the change of the event's organizer. Optional. The default
1351
  * is False.
1352
+ * @return GoogleGAL_Service_Calendar_Event
1353
  */
1354
  public function move($calendarId, $eventId, $destination, $optParams = array())
1355
  {
1356
  $params = array('calendarId' => $calendarId, 'eventId' => $eventId, 'destination' => $destination);
1357
  $params = array_merge($params, $optParams);
1358
+ return $this->call('move', array($params), "GoogleGAL_Service_Calendar_Event");
1359
  }
1360
  /**
1361
  * Updates an event. This method supports patch semantics. (events.patch)
1364
  * Calendar identifier.
1365
  * @param string $eventId
1366
  * Event identifier.
1367
+ * @param GoogleGAL_Event $postBody
1368
  * @param array $optParams Optional parameters.
1369
  *
1370
  * @opt_param bool sendNotifications
1378
  * @opt_param int maxAttendees
1379
  * The maximum number of attendees to include in the response. If there are more than the specified
1380
  * number of attendees, only the participant is returned. Optional.
1381
+ * @return GoogleGAL_Service_Calendar_Event
1382
  */
1383
+ public function patch($calendarId, $eventId, GoogleGAL_Service_Calendar_Event $postBody, $optParams = array())
1384
  {
1385
  $params = array('calendarId' => $calendarId, 'eventId' => $eventId, 'postBody' => $postBody);
1386
  $params = array_merge($params, $optParams);
1387
+ return $this->call('patch', array($params), "GoogleGAL_Service_Calendar_Event");
1388
  }
1389
  /**
1390
  * Creates an event based on a simple text string. (events.quickAdd)
1397
  *
1398
  * @opt_param bool sendNotifications
1399
  * Whether to send notifications about the creation of the event. Optional. The default is False.
1400
+ * @return GoogleGAL_Service_Calendar_Event
1401
  */
1402
  public function quickAdd($calendarId, $text, $optParams = array())
1403
  {
1404
  $params = array('calendarId' => $calendarId, 'text' => $text);
1405
  $params = array_merge($params, $optParams);
1406
+ return $this->call('quickAdd', array($params), "GoogleGAL_Service_Calendar_Event");
1407
  }
1408
  /**
1409
  * Updates an event. (events.update)
1412
  * Calendar identifier.
1413
  * @param string $eventId
1414
  * Event identifier.
1415
+ * @param GoogleGAL_Event $postBody
1416
  * @param array $optParams Optional parameters.
1417
  *
1418
  * @opt_param bool sendNotifications
1426
  * @opt_param int maxAttendees
1427
  * The maximum number of attendees to include in the response. If there are more than the specified
1428
  * number of attendees, only the participant is returned. Optional.
1429
+ * @return GoogleGAL_Service_Calendar_Event
1430
  */
1431
+ public function update($calendarId, $eventId, GoogleGAL_Service_Calendar_Event $postBody, $optParams = array())
1432
  {
1433
  $params = array('calendarId' => $calendarId, 'eventId' => $eventId, 'postBody' => $postBody);
1434
  $params = array_merge($params, $optParams);
1435
+ return $this->call('update', array($params), "GoogleGAL_Service_Calendar_Event");
1436
  }
1437
  /**
1438
  * Watch for changes to Events resources. (events.watch)
1439
  *
1440
  * @param string $calendarId
1441
  * Calendar identifier.
1442
+ * @param GoogleGAL_Channel $postBody
1443
  * @param array $optParams Optional parameters.
1444
  *
1445
  * @opt_param string orderBy
1493
  * @opt_param int maxAttendees
1494
  * The maximum number of attendees to include in the response. If there are more than the specified
1495
  * number of attendees, only the participant is returned. Optional.
1496
+ * @return GoogleGAL_Service_Calendar_Channel
1497
  */
1498
+ public function watch($calendarId, GoogleGAL_Service_Calendar_Channel $postBody, $optParams = array())
1499
  {
1500
  $params = array('calendarId' => $calendarId, 'postBody' => $postBody);
1501
  $params = array_merge($params, $optParams);
1502
+ return $this->call('watch', array($params), "GoogleGAL_Service_Calendar_Channel");
1503
  }
1504
  }
1505
 
1507
  * The "freebusy" collection of methods.
1508
  * Typical usage is:
1509
  * <code>
1510
+ * $calendarService = new GoogleGAL_Service_Calendar(...);
1511
  * $freebusy = $calendarService->freebusy;
1512
  * </code>
1513
  */
1514
+ class GoogleGAL_Service_Calendar_Freebusy_Resource extends GoogleGAL_Service_Resource
1515
  {
1516
 
1517
  /**
1518
  * Returns free/busy information for a set of calendars. (freebusy.query)
1519
  *
1520
+ * @param GoogleGAL_FreeBusyRequest $postBody
1521
  * @param array $optParams Optional parameters.
1522
+ * @return GoogleGAL_Service_Calendar_FreeBusyResponse
1523
  */
1524
+ public function query(GoogleGAL_Service_Calendar_FreeBusyRequest $postBody, $optParams = array())
1525
  {
1526
  $params = array('postBody' => $postBody);
1527
  $params = array_merge($params, $optParams);
1528
+ return $this->call('query', array($params), "GoogleGAL_Service_Calendar_FreeBusyResponse");
1529
  }
1530
  }
1531
 
1533
  * The "settings" collection of methods.
1534
  * Typical usage is:
1535
  * <code>
1536
+ * $calendarService = new GoogleGAL_Service_Calendar(...);
1537
  * $settings = $calendarService->settings;
1538
  * </code>
1539
  */
1540
+ class GoogleGAL_Service_Calendar_Settings_Resource extends GoogleGAL_Service_Resource
1541
  {
1542
 
1543
  /**
1546
  * @param string $setting
1547
  * The id of the user setting.
1548
  * @param array $optParams Optional parameters.
1549
+ * @return GoogleGAL_Service_Calendar_Setting
1550
  */
1551
  public function get($setting, $optParams = array())
1552
  {
1553
  $params = array('setting' => $setting);
1554
  $params = array_merge($params, $optParams);
1555
+ return $this->call('get', array($params), "GoogleGAL_Service_Calendar_Setting");
1556
  }
1557
  /**
1558
  * Returns all user settings for the authenticated user. (settings.listSettings)
1559
  *
1560
  * @param array $optParams Optional parameters.
1561
+ * @return GoogleGAL_Service_Calendar_Settings
1562
  */
1563
  public function listSettings($optParams = array())
1564
  {
1565
  $params = array();
1566
  $params = array_merge($params, $optParams);
1567
+ return $this->call('list', array($params), "GoogleGAL_Service_Calendar_Settings");
1568
  }
1569
  }
1570
 
1571
 
1572
 
1573
 
1574
+ class GoogleGAL_Service_Calendar_Acl extends GoogleGAL_Collection
1575
  {
1576
  public $etag;
1577
+ protected $itemsType = 'GoogleGAL_Service_Calendar_AclRule';
1578
  protected $itemsDataType = 'array';
1579
  public $kind;
1580
  public $nextPageToken;
1620
  }
1621
  }
1622
 
1623
+ class GoogleGAL_Service_Calendar_AclRule extends GoogleGAL_Model
1624
  {
1625
  public $etag;
1626
  public $id;
1627
  public $kind;
1628
  public $role;
1629
+ protected $scopeType = 'GoogleGAL_Service_Calendar_AclRuleScope';
1630
  protected $scopeDataType = '';
1631
 
1632
  public function setEtag($etag)
1669
  return $this->role;
1670
  }
1671
 
1672
+ public function setScope(GoogleGAL_Service_Calendar_AclRuleScope $scope)
1673
  {
1674
  $this->scope = $scope;
1675
  }
1680
  }
1681
  }
1682
 
1683
+ class GoogleGAL_Service_Calendar_AclRuleScope extends GoogleGAL_Model
1684
  {
1685
  public $type;
1686
  public $value;
1706
  }
1707
  }
1708
 
1709
+ class GoogleGAL_Service_Calendar_Calendar extends GoogleGAL_Model
1710
  {
1711
  public $description;
1712
  public $etag;
1787
  }
1788
  }
1789
 
1790
+ class GoogleGAL_Service_Calendar_CalendarList extends GoogleGAL_Collection
1791
  {
1792
  public $etag;
1793
+ protected $itemsType = 'GoogleGAL_Service_Calendar_CalendarListEntry';
1794
  protected $itemsDataType = 'array';
1795
  public $kind;
1796
  public $nextPageToken;
1836
  }
1837
  }
1838
 
1839
+ class GoogleGAL_Service_Calendar_CalendarListEntry extends GoogleGAL_Collection
1840
  {
1841
  public $accessRole;
1842
  public $backgroundColor;
1843
  public $colorId;
1844
+ protected $defaultRemindersType = 'GoogleGAL_Service_Calendar_EventReminder';
1845
  protected $defaultRemindersDataType = 'array';
1846
  public $description;
1847
  public $etag;
1850
  public $id;
1851
  public $kind;
1852
  public $location;
1853
+ protected $notificationSettingsType = 'GoogleGAL_Service_Calendar_CalendarListEntryNotificationSettings';
1854
  protected $notificationSettingsDataType = '';
1855
  public $primary;
1856
  public $selected;
1968
  return $this->location;
1969
  }
1970
 
1971
+ public function setNotificationSettings(GoogleGAL_Service_Calendar_CalendarListEntryNotificationSettings $notificationSettings)
1972
  {
1973
  $this->notificationSettings = $notificationSettings;
1974
  }
2029
  }
2030
  }
2031
 
2032
+ class GoogleGAL_Service_Calendar_CalendarListEntryNotificationSettings extends GoogleGAL_Collection
2033
  {
2034
+ protected $notificationsType = 'GoogleGAL_Service_Calendar_CalendarNotification';
2035
  protected $notificationsDataType = 'array';
2036
 
2037
  public function setNotifications($notifications)
2045
  }
2046
  }
2047
 
2048
+ class GoogleGAL_Service_Calendar_CalendarNotification extends GoogleGAL_Model
2049
  {
2050
  public $method;
2051
  public $type;
2071
  }
2072
  }
2073
 
2074
+ class GoogleGAL_Service_Calendar_Channel extends GoogleGAL_Model
2075
  {
2076
  public $address;
2077
  public $expiration;
2185
  }
2186
  }
2187
 
2188
+ class GoogleGAL_Service_Calendar_ColorDefinition extends GoogleGAL_Model
2189
  {
2190
  public $background;
2191
  public $foreground;
2211
  }
2212
  }
2213
 
2214
+ class GoogleGAL_Service_Calendar_Colors extends GoogleGAL_Model
2215
  {
2216
+ protected $calendarType = 'GoogleGAL_Service_Calendar_ColorDefinition';
2217
  protected $calendarDataType = 'map';
2218
+ protected $eventType = 'GoogleGAL_Service_Calendar_ColorDefinition';
2219
  protected $eventDataType = 'map';
2220
  public $kind;
2221
  public $updated;
2261
  }
2262
  }
2263
 
2264
+ class GoogleGAL_Service_Calendar_Error extends GoogleGAL_Model
2265
  {
2266
  public $domain;
2267
  public $reason;
2287
  }
2288
  }
2289
 
2290
+ class GoogleGAL_Service_Calendar_Event extends GoogleGAL_Collection
2291
  {
2292
  public $anyoneCanAddSelf;
2293
+ protected $attendeesType = 'GoogleGAL_Service_Calendar_EventAttendee';
2294
  protected $attendeesDataType = 'array';
2295
  public $attendeesOmitted;
2296
  public $colorId;
2297
  public $created;
2298
+ protected $creatorType = 'GoogleGAL_Service_Calendar_EventCreator';
2299
  protected $creatorDataType = '';
2300
  public $description;
2301
+ protected $endType = 'GoogleGAL_Service_Calendar_EventDateTime';
2302
  protected $endDataType = '';
2303
  public $endTimeUnspecified;
2304
  public $etag;
2305
+ protected $extendedPropertiesType = 'GoogleGAL_Service_Calendar_EventExtendedProperties';
2306
  protected $extendedPropertiesDataType = '';
2307
+ protected $gadgetType = 'GoogleGAL_Service_Calendar_EventGadget';
2308
  protected $gadgetDataType = '';
2309
  public $guestsCanInviteOthers;
2310
  public $guestsCanModify;
2316
  public $kind;
2317
  public $location;
2318
  public $locked;
2319
+ protected $organizerType = 'GoogleGAL_Service_Calendar_EventOrganizer';
2320
  protected $organizerDataType = '';
2321
+ protected $originalStartTimeType = 'GoogleGAL_Service_Calendar_EventDateTime';
2322
  protected $originalStartTimeDataType = '';
2323
  public $privateCopy;
2324
  public $recurrence;
2325
  public $recurringEventId;
2326
+ protected $remindersType = 'GoogleGAL_Service_Calendar_EventReminders';
2327
  protected $remindersDataType = '';
2328
  public $sequence;
2329
+ protected $sourceType = 'GoogleGAL_Service_Calendar_EventSource';
2330
  protected $sourceDataType = '';
2331
+ protected $startType = 'GoogleGAL_Service_Calendar_EventDateTime';
2332
  protected $startDataType = '';
2333
  public $status;
2334
  public $summary;
2386
  return $this->created;
2387
  }
2388
 
2389
+ public function setCreator(GoogleGAL_Service_Calendar_EventCreator $creator)
2390
  {
2391
  $this->creator = $creator;
2392
  }
2406
  return $this->description;
2407
  }
2408
 
2409
+ public function setEnd(GoogleGAL_Service_Calendar_EventDateTime $end)
2410
  {
2411
  $this->end = $end;
2412
  }
2436
  return $this->etag;
2437
  }
2438
 
2439
+ public function setExtendedProperties(GoogleGAL_Service_Calendar_EventExtendedProperties $extendedProperties)
2440
  {
2441
  $this->extendedProperties = $extendedProperties;
2442
  }
2446
  return $this->extendedProperties;
2447
  }
2448
 
2449
+ public function setGadget(GoogleGAL_Service_Calendar_EventGadget $gadget)
2450
  {
2451
  $this->gadget = $gadget;
2452
  }
2556
  return $this->locked;
2557
  }
2558
 
2559
+ public function setOrganizer(GoogleGAL_Service_Calendar_EventOrganizer $organizer)
2560
  {
2561
  $this->organizer = $organizer;
2562
  }
2566
  return $this->organizer;
2567
  }
2568
 
2569
+ public function setOriginalStartTime(GoogleGAL_Service_Calendar_EventDateTime $originalStartTime)
2570
  {
2571
  $this->originalStartTime = $originalStartTime;
2572
  }
2606
  return $this->recurringEventId;
2607
  }
2608
 
2609
+ public function setReminders(GoogleGAL_Service_Calendar_EventReminders $reminders)
2610
  {
2611
  $this->reminders = $reminders;
2612
  }
2626
  return $this->sequence;
2627
  }
2628
 
2629
+ public function setSource(GoogleGAL_Service_Calendar_EventSource $source)
2630
  {
2631
  $this->source = $source;
2632
  }
2636
  return $this->source;
2637
  }
2638
 
2639
+ public function setStart(GoogleGAL_Service_Calendar_EventDateTime $start)
2640
  {
2641
  $this->start = $start;
2642
  }
2697
  }
2698
  }
2699
 
2700
+ class GoogleGAL_Service_Calendar_EventAttendee extends GoogleGAL_Model
2701
  {
2702
  public $additionalGuests;
2703
  public $comment;
2811
  }
2812
  }
2813
 
2814
+ class GoogleGAL_Service_Calendar_EventCreator extends GoogleGAL_Model
2815
  {
2816
  public $displayName;
2817
  public $email;
2859
  }
2860
  }
2861
 
2862
+ class GoogleGAL_Service_Calendar_EventDateTime extends GoogleGAL_Model
2863
  {
2864
  public $date;
2865
  public $dateTime;
2896
  }
2897
  }
2898
 
2899
+ class GoogleGAL_Service_Calendar_EventExtendedProperties extends GoogleGAL_Model
2900
  {
2901
  public $private;
2902
  public $shared;
2922
  }
2923
  }
2924
 
2925
+ class GoogleGAL_Service_Calendar_EventGadget extends GoogleGAL_Model
2926
  {
2927
  public $display;
2928
  public $height;
3014
  }
3015
  }
3016
 
3017
+ class GoogleGAL_Service_Calendar_EventOrganizer extends GoogleGAL_Model
3018
  {
3019
  public $displayName;
3020
  public $email;
3062
  }
3063
  }
3064
 
3065
+ class GoogleGAL_Service_Calendar_EventReminder extends GoogleGAL_Model
3066
  {
3067
  public $method;
3068
  public $minutes;
3088
  }
3089
  }
3090
 
3091
+ class GoogleGAL_Service_Calendar_EventReminders extends GoogleGAL_Collection
3092
  {
3093
+ protected $overridesType = 'GoogleGAL_Service_Calendar_EventReminder';
3094
  protected $overridesDataType = 'array';
3095
  public $useDefault;
3096
 
3115
  }
3116
  }
3117
 
3118
+ class GoogleGAL_Service_Calendar_EventSource extends GoogleGAL_Model
3119
  {
3120
  public $title;
3121
  public $url;
3141
  }
3142
  }
3143
 
3144
+ class GoogleGAL_Service_Calendar_Events extends GoogleGAL_Collection
3145
  {
3146
  public $accessRole;
3147
+ protected $defaultRemindersType = 'GoogleGAL_Service_Calendar_EventReminder';
3148
  protected $defaultRemindersDataType = 'array';
3149
  public $description;
3150
  public $etag;
3151
+ protected $itemsType = 'GoogleGAL_Service_Calendar_Event';
3152
  protected $itemsDataType = 'array';
3153
  public $kind;
3154
  public $nextPageToken;
3257
  }
3258
  }
3259
 
3260
+ class GoogleGAL_Service_Calendar_FreeBusyCalendar extends GoogleGAL_Collection
3261
  {
3262
+ protected $busyType = 'GoogleGAL_Service_Calendar_TimePeriod';
3263
  protected $busyDataType = 'array';
3264
+ protected $errorsType = 'GoogleGAL_Service_Calendar_Error';
3265
  protected $errorsDataType = 'array';
3266
 
3267
  public function setBusy($busy)
3285
  }
3286
  }
3287
 
3288
+ class GoogleGAL_Service_Calendar_FreeBusyGroup extends GoogleGAL_Collection
3289
  {
3290
  public $calendars;
3291
+ protected $errorsType = 'GoogleGAL_Service_Calendar_Error';
3292
  protected $errorsDataType = 'array';
3293
 
3294
  public function setCalendars($calendars)
3312
  }
3313
  }
3314
 
3315
+ class GoogleGAL_Service_Calendar_FreeBusyRequest extends GoogleGAL_Collection
3316
  {
3317
  public $calendarExpansionMax;
3318
  public $groupExpansionMax;
3319
+ protected $itemsType = 'GoogleGAL_Service_Calendar_FreeBusyRequestItem';
3320
  protected $itemsDataType = 'array';
3321
  public $timeMax;
3322
  public $timeMin;
3383
  }
3384
  }
3385
 
3386
+ class GoogleGAL_Service_Calendar_FreeBusyRequestItem extends GoogleGAL_Model
3387
  {
3388
  public $id;
3389
 
3398
  }
3399
  }
3400
 
3401
+ class GoogleGAL_Service_Calendar_FreeBusyResponse extends GoogleGAL_Model
3402
  {
3403
+ protected $calendarsType = 'GoogleGAL_Service_Calendar_FreeBusyCalendar';
3404
  protected $calendarsDataType = 'map';
3405
+ protected $groupsType = 'GoogleGAL_Service_Calendar_FreeBusyGroup';
3406
  protected $groupsDataType = 'map';
3407
  public $kind;
3408
  public $timeMax;
3459
  }
3460
  }
3461
 
3462
+ class GoogleGAL_Service_Calendar_Setting extends GoogleGAL_Model
3463
  {
3464
  public $etag;
3465
  public $id;
3507
  }
3508
  }
3509
 
3510
+ class GoogleGAL_Service_Calendar_Settings extends GoogleGAL_Collection
3511
  {
3512
  public $etag;
3513
+ protected $itemsType = 'GoogleGAL_Service_Calendar_Setting';
3514
  protected $itemsDataType = 'array';
3515
  public $kind;
3516
 
3545
  }
3546
  }
3547
 
3548
+ class GoogleGAL_Service_Calendar_TimePeriod extends GoogleGAL_Model
3549
  {
3550
  public $end;
3551
  public $start;
core/Google/Service/CivicInfo.php CHANGED
@@ -29,7 +29,7 @@
29
  *
30
  * @author Google, Inc.
31
  */
32
- class Google_Service_CivicInfo extends Google_Service
33
  {
34
 
35
 
@@ -41,16 +41,16 @@ class Google_Service_CivicInfo extends Google_Service
41
  /**
42
  * Constructs the internal representation of the CivicInfo service.
43
  *
44
- * @param Google_Client $client
45
  */
46
- public function __construct(Google_Client $client)
47
  {
48
  parent::__construct($client);
49
  $this->servicePath = 'civicinfo/us_v1/';
50
  $this->version = 'us_v1';
51
  $this->serviceName = 'civicinfo';
52
 
53
- $this->divisions = new Google_Service_CivicInfo_Divisions_Resource(
54
  $this,
55
  $this->serviceName,
56
  'divisions',
@@ -69,7 +69,7 @@ class Google_Service_CivicInfo extends Google_Service
69
  )
70
  )
71
  );
72
- $this->elections = new Google_Service_CivicInfo_Elections_Resource(
73
  $this,
74
  $this->serviceName,
75
  'elections',
@@ -97,7 +97,7 @@ class Google_Service_CivicInfo extends Google_Service
97
  )
98
  )
99
  );
100
- $this->representatives = new Google_Service_CivicInfo_Representatives_Resource(
101
  $this,
102
  $this->serviceName,
103
  'representatives',
@@ -128,11 +128,11 @@ class Google_Service_CivicInfo extends Google_Service
128
  * The "divisions" collection of methods.
129
  * Typical usage is:
130
  * <code>
131
- * $civicinfoService = new Google_Service_CivicInfo(...);
132
  * $divisions = $civicinfoService->divisions;
133
  * </code>
134
  */
135
- class Google_Service_CivicInfo_Divisions_Resource extends Google_Service_Resource
136
  {
137
 
138
  /**
@@ -146,13 +146,13 @@ class Google_Service_CivicInfo_Divisions_Resource extends Google_Service_Resourc
146
  * words given in the query are treated as required patterns. In addition to that, most query
147
  * operators of the Apache Lucene library are supported. See
148
  * http://lucene.apache.org/core/2_9_4/queryparsersyntax.html
149
- * @return Google_Service_CivicInfo_DivisionSearchResponse
150
  */
151
  public function search($optParams = array())
152
  {
153
  $params = array();
154
  $params = array_merge($params, $optParams);
155
- return $this->call('search', array($params), "Google_Service_CivicInfo_DivisionSearchResponse");
156
  }
157
  }
158
 
@@ -160,24 +160,24 @@ class Google_Service_CivicInfo_Divisions_Resource extends Google_Service_Resourc
160
  * The "elections" collection of methods.
161
  * Typical usage is:
162
  * <code>
163
- * $civicinfoService = new Google_Service_CivicInfo(...);
164
  * $elections = $civicinfoService->elections;
165
  * </code>
166
  */
167
- class Google_Service_CivicInfo_Elections_Resource extends Google_Service_Resource
168
  {
169
 
170
  /**
171
  * List of available elections to query. (elections.electionQuery)
172
  *
173
  * @param array $optParams Optional parameters.
174
- * @return Google_Service_CivicInfo_ElectionsQueryResponse
175
  */
176
  public function electionQuery($optParams = array())
177
  {
178
  $params = array();
179
  $params = array_merge($params, $optParams);
180
- return $this->call('electionQuery', array($params), "Google_Service_CivicInfo_ElectionsQueryResponse");
181
  }
182
  /**
183
  * Looks up information relevant to a voter based on the voter's registered
@@ -186,18 +186,18 @@ class Google_Service_CivicInfo_Elections_Resource extends Google_Service_Resourc
186
  * @param string $electionId
187
  * The unique ID of the election to look up. A list of election IDs can be obtained at
188
  * https://www.googleapis.com/civicinfo/{version}/elections
189
- * @param Google_VoterInfoRequest $postBody
190
  * @param array $optParams Optional parameters.
191
  *
192
  * @opt_param bool officialOnly
193
  * If set to true, only data from official state sources will be returned.
194
- * @return Google_Service_CivicInfo_VoterInfoResponse
195
  */
196
- public function voterInfoQuery($electionId, Google_Service_CivicInfo_VoterInfoRequest $postBody, $optParams = array())
197
  {
198
  $params = array('electionId' => $electionId, 'postBody' => $postBody);
199
  $params = array_merge($params, $optParams);
200
- return $this->call('voterInfoQuery', array($params), "Google_Service_CivicInfo_VoterInfoResponse");
201
  }
202
  }
203
 
@@ -205,18 +205,18 @@ class Google_Service_CivicInfo_Elections_Resource extends Google_Service_Resourc
205
  * The "representatives" collection of methods.
206
  * Typical usage is:
207
  * <code>
208
- * $civicinfoService = new Google_Service_CivicInfo(...);
209
  * $representatives = $civicinfoService->representatives;
210
  * </code>
211
  */
212
- class Google_Service_CivicInfo_Representatives_Resource extends Google_Service_Resource
213
  {
214
 
215
  /**
216
  * Looks up political geography and (optionally) representative information
217
  * based on an address. (representatives.representativeInfoQuery)
218
  *
219
- * @param Google_RepresentativeInfoRequest $postBody
220
  * @param array $optParams Optional parameters.
221
  *
222
  * @opt_param string ocdId
@@ -225,31 +225,31 @@ class Google_Service_CivicInfo_Representatives_Resource extends Google_Service_R
225
  * @opt_param bool includeOffices
226
  * Whether to return information about offices and officials. If false, only the top-level district
227
  * information will be returned.
228
- * @return Google_Service_CivicInfo_RepresentativeInfoResponse
229
  */
230
- public function representativeInfoQuery(Google_Service_CivicInfo_RepresentativeInfoRequest $postBody, $optParams = array())
231
  {
232
  $params = array('postBody' => $postBody);
233
  $params = array_merge($params, $optParams);
234
- return $this->call('representativeInfoQuery', array($params), "Google_Service_CivicInfo_RepresentativeInfoResponse");
235
  }
236
  }
237
 
238
 
239
 
240
 
241
- class Google_Service_CivicInfo_AdministrationRegion extends Google_Collection
242
  {
243
- protected $electionAdministrationBodyType = 'Google_Service_CivicInfo_AdministrativeBody';
244
  protected $electionAdministrationBodyDataType = '';
245
  public $id;
246
- protected $localJurisdictionType = 'Google_Service_CivicInfo_AdministrationRegion';
247
  protected $localJurisdictionDataType = '';
248
  public $name;
249
- protected $sourcesType = 'Google_Service_CivicInfo_Source';
250
  protected $sourcesDataType = 'array';
251
 
252
- public function setElectionAdministrationBody(Google_Service_CivicInfo_AdministrativeBody $electionAdministrationBody)
253
  {
254
  $this->electionAdministrationBody = $electionAdministrationBody;
255
  }
@@ -269,7 +269,7 @@ class Google_Service_CivicInfo_AdministrationRegion extends Google_Collection
269
  return $this->id;
270
  }
271
 
272
- public function setLocalJurisdiction(Google_Service_CivicInfo_AdministrationRegion $localJurisdiction)
273
  {
274
  $this->localJurisdiction = $localJurisdiction;
275
  }
@@ -300,21 +300,21 @@ class Google_Service_CivicInfo_AdministrationRegion extends Google_Collection
300
  }
301
  }
302
 
303
- class Google_Service_CivicInfo_AdministrativeBody extends Google_Collection
304
  {
305
  public $absenteeVotingInfoUrl;
306
  public $ballotInfoUrl;
307
- protected $correspondenceAddressType = 'Google_Service_CivicInfo_SimpleAddressType';
308
  protected $correspondenceAddressDataType = '';
309
  public $electionInfoUrl;
310
- protected $electionOfficialsType = 'Google_Service_CivicInfo_ElectionOfficial';
311
  protected $electionOfficialsDataType = 'array';
312
  public $electionRegistrationConfirmationUrl;
313
  public $electionRegistrationUrl;
314
  public $electionRulesUrl;
315
  public $hoursOfOperation;
316
  public $name;
317
- protected $physicalAddressType = 'Google_Service_CivicInfo_SimpleAddressType';
318
  protected $physicalAddressDataType = '';
319
  public $voterServices;
320
  public $votingLocationFinderUrl;
@@ -339,7 +339,7 @@ class Google_Service_CivicInfo_AdministrativeBody extends Google_Collection
339
  return $this->ballotInfoUrl;
340
  }
341
 
342
- public function setCorrespondenceAddress(Google_Service_CivicInfo_SimpleAddressType $correspondenceAddress)
343
  {
344
  $this->correspondenceAddress = $correspondenceAddress;
345
  }
@@ -419,7 +419,7 @@ class Google_Service_CivicInfo_AdministrativeBody extends Google_Collection
419
  return $this->name;
420
  }
421
 
422
- public function setPhysicalAddress(Google_Service_CivicInfo_SimpleAddressType $physicalAddress)
423
  {
424
  $this->physicalAddress = $physicalAddress;
425
  }
@@ -450,10 +450,10 @@ class Google_Service_CivicInfo_AdministrativeBody extends Google_Collection
450
  }
451
  }
452
 
453
- class Google_Service_CivicInfo_Candidate extends Google_Collection
454
  {
455
  public $candidateUrl;
456
- protected $channelsType = 'Google_Service_CivicInfo_Channel';
457
  protected $channelsDataType = 'array';
458
  public $email;
459
  public $name;
@@ -543,7 +543,7 @@ class Google_Service_CivicInfo_Candidate extends Google_Collection
543
  }
544
  }
545
 
546
- class Google_Service_CivicInfo_Channel extends Google_Model
547
  {
548
  public $id;
549
  public $type;
@@ -569,12 +569,12 @@ class Google_Service_CivicInfo_Channel extends Google_Model
569
  }
570
  }
571
 
572
- class Google_Service_CivicInfo_Contest extends Google_Collection
573
  {
574
  public $ballotPlacement;
575
- protected $candidatesType = 'Google_Service_CivicInfo_Candidate';
576
  protected $candidatesDataType = 'array';
577
- protected $districtType = 'Google_Service_CivicInfo_ElectoralDistrict';
578
  protected $districtDataType = '';
579
  public $electorateSpecifications;
580
  public $id;
@@ -586,7 +586,7 @@ class Google_Service_CivicInfo_Contest extends Google_Collection
586
  public $referendumSubtitle;
587
  public $referendumTitle;
588
  public $referendumUrl;
589
- protected $sourcesType = 'Google_Service_CivicInfo_Source';
590
  protected $sourcesDataType = 'array';
591
  public $special;
592
  public $type;
@@ -611,7 +611,7 @@ class Google_Service_CivicInfo_Contest extends Google_Collection
611
  return $this->candidates;
612
  }
613
 
614
- public function setDistrict(Google_Service_CivicInfo_ElectoralDistrict $district)
615
  {
616
  $this->district = $district;
617
  }
@@ -752,10 +752,10 @@ class Google_Service_CivicInfo_Contest extends Google_Collection
752
  }
753
  }
754
 
755
- class Google_Service_CivicInfo_DivisionSearchResponse extends Google_Collection
756
  {
757
  public $kind;
758
- protected $resultsType = 'Google_Service_CivicInfo_DivisionSearchResult';
759
  protected $resultsDataType = 'array';
760
  public $status;
761
 
@@ -790,7 +790,7 @@ class Google_Service_CivicInfo_DivisionSearchResponse extends Google_Collection
790
  }
791
  }
792
 
793
- class Google_Service_CivicInfo_DivisionSearchResult extends Google_Model
794
  {
795
  public $name;
796
  public $ocdId;
@@ -816,7 +816,7 @@ class Google_Service_CivicInfo_DivisionSearchResult extends Google_Model
816
  }
817
  }
818
 
819
- class Google_Service_CivicInfo_Election extends Google_Model
820
  {
821
  public $electionDay;
822
  public $id;
@@ -853,7 +853,7 @@ class Google_Service_CivicInfo_Election extends Google_Model
853
  }
854
  }
855
 
856
- class Google_Service_CivicInfo_ElectionOfficial extends Google_Model
857
  {
858
  public $emailAddress;
859
  public $faxNumber;
@@ -912,9 +912,9 @@ class Google_Service_CivicInfo_ElectionOfficial extends Google_Model
912
  }
913
  }
914
 
915
- class Google_Service_CivicInfo_ElectionsQueryResponse extends Google_Collection
916
  {
917
- protected $electionsType = 'Google_Service_CivicInfo_Election';
918
  protected $electionsDataType = 'array';
919
  public $kind;
920
 
@@ -939,7 +939,7 @@ class Google_Service_CivicInfo_ElectionsQueryResponse extends Google_Collection
939
  }
940
  }
941
 
942
- class Google_Service_CivicInfo_ElectoralDistrict extends Google_Model
943
  {
944
  public $id;
945
  public $name;
@@ -976,7 +976,7 @@ class Google_Service_CivicInfo_ElectoralDistrict extends Google_Model
976
  }
977
  }
978
 
979
- class Google_Service_CivicInfo_GeographicDivision extends Google_Collection
980
  {
981
  public $name;
982
  public $officeIds;
@@ -1013,12 +1013,12 @@ class Google_Service_CivicInfo_GeographicDivision extends Google_Collection
1013
  }
1014
  }
1015
 
1016
- class Google_Service_CivicInfo_Office extends Google_Collection
1017
  {
1018
  public $level;
1019
  public $name;
1020
  public $officialIds;
1021
- protected $sourcesType = 'Google_Service_CivicInfo_Source';
1022
  protected $sourcesDataType = 'array';
1023
 
1024
  public function setLevel($level)
@@ -1062,11 +1062,11 @@ class Google_Service_CivicInfo_Office extends Google_Collection
1062
  }
1063
  }
1064
 
1065
- class Google_Service_CivicInfo_Official extends Google_Collection
1066
  {
1067
- protected $addressType = 'Google_Service_CivicInfo_SimpleAddressType';
1068
  protected $addressDataType = 'array';
1069
- protected $channelsType = 'Google_Service_CivicInfo_Channel';
1070
  protected $channelsDataType = 'array';
1071
  public $emails;
1072
  public $name;
@@ -1156,21 +1156,21 @@ class Google_Service_CivicInfo_Official extends Google_Collection
1156
  }
1157
  }
1158
 
1159
- class Google_Service_CivicInfo_PollingLocation extends Google_Collection
1160
  {
1161
- protected $addressType = 'Google_Service_CivicInfo_SimpleAddressType';
1162
  protected $addressDataType = '';
1163
  public $endDate;
1164
  public $id;
1165
  public $name;
1166
  public $notes;
1167
  public $pollingHours;
1168
- protected $sourcesType = 'Google_Service_CivicInfo_Source';
1169
  protected $sourcesDataType = 'array';
1170
  public $startDate;
1171
  public $voterServices;
1172
 
1173
- public function setAddress(Google_Service_CivicInfo_SimpleAddressType $address)
1174
  {
1175
  $this->address = $address;
1176
  }
@@ -1261,7 +1261,7 @@ class Google_Service_CivicInfo_PollingLocation extends Google_Collection
1261
  }
1262
  }
1263
 
1264
- class Google_Service_CivicInfo_RepresentativeInfoRequest extends Google_Model
1265
  {
1266
  public $address;
1267
 
@@ -1276,16 +1276,16 @@ class Google_Service_CivicInfo_RepresentativeInfoRequest extends Google_Model
1276
  }
1277
  }
1278
 
1279
- class Google_Service_CivicInfo_RepresentativeInfoResponse extends Google_Model
1280
  {
1281
- protected $divisionsType = 'Google_Service_CivicInfo_GeographicDivision';
1282
  protected $divisionsDataType = 'map';
1283
  public $kind;
1284
- protected $normalizedInputType = 'Google_Service_CivicInfo_SimpleAddressType';
1285
  protected $normalizedInputDataType = '';
1286
- protected $officesType = 'Google_Service_CivicInfo_Office';
1287
  protected $officesDataType = 'map';
1288
- protected $officialsType = 'Google_Service_CivicInfo_Official';
1289
  protected $officialsDataType = 'map';
1290
  public $status;
1291
 
@@ -1309,7 +1309,7 @@ class Google_Service_CivicInfo_RepresentativeInfoResponse extends Google_Model
1309
  return $this->kind;
1310
  }
1311
 
1312
- public function setNormalizedInput(Google_Service_CivicInfo_SimpleAddressType $normalizedInput)
1313
  {
1314
  $this->normalizedInput = $normalizedInput;
1315
  }
@@ -1350,7 +1350,7 @@ class Google_Service_CivicInfo_RepresentativeInfoResponse extends Google_Model
1350
  }
1351
  }
1352
 
1353
- class Google_Service_CivicInfo_SimpleAddressType extends Google_Model
1354
  {
1355
  public $city;
1356
  public $line1;
@@ -1431,7 +1431,7 @@ class Google_Service_CivicInfo_SimpleAddressType extends Google_Model
1431
  }
1432
  }
1433
 
1434
- class Google_Service_CivicInfo_Source extends Google_Model
1435
  {
1436
  public $name;
1437
  public $official;
@@ -1457,7 +1457,7 @@ class Google_Service_CivicInfo_Source extends Google_Model
1457
  }
1458
  }
1459
 
1460
- class Google_Service_CivicInfo_VoterInfoRequest extends Google_Model
1461
  {
1462
  public $address;
1463
 
@@ -1472,20 +1472,20 @@ class Google_Service_CivicInfo_VoterInfoRequest extends Google_Model
1472
  }
1473
  }
1474
 
1475
- class Google_Service_CivicInfo_VoterInfoResponse extends Google_Collection
1476
  {
1477
- protected $contestsType = 'Google_Service_CivicInfo_Contest';
1478
  protected $contestsDataType = 'array';
1479
- protected $earlyVoteSitesType = 'Google_Service_CivicInfo_PollingLocation';
1480
  protected $earlyVoteSitesDataType = 'array';
1481
- protected $electionType = 'Google_Service_CivicInfo_Election';
1482
  protected $electionDataType = '';
1483
  public $kind;
1484
- protected $normalizedInputType = 'Google_Service_CivicInfo_SimpleAddressType';
1485
  protected $normalizedInputDataType = '';
1486
- protected $pollingLocationsType = 'Google_Service_CivicInfo_PollingLocation';
1487
  protected $pollingLocationsDataType = 'array';
1488
- protected $stateType = 'Google_Service_CivicInfo_AdministrationRegion';
1489
  protected $stateDataType = 'array';
1490
  public $status;
1491
 
@@ -1509,7 +1509,7 @@ class Google_Service_CivicInfo_VoterInfoResponse extends Google_Collection
1509
  return $this->earlyVoteSites;
1510
  }
1511
 
1512
- public function setElection(Google_Service_CivicInfo_Election $election)
1513
  {
1514
  $this->election = $election;
1515
  }
@@ -1529,7 +1529,7 @@ class Google_Service_CivicInfo_VoterInfoResponse extends Google_Collection
1529
  return $this->kind;
1530
  }
1531
 
1532
- public function setNormalizedInput(Google_Service_CivicInfo_SimpleAddressType $normalizedInput)
1533
  {
1534
  $this->normalizedInput = $normalizedInput;
1535
  }
29
  *
30
  * @author Google, Inc.
31
  */
32
+ class GoogleGAL_Service_CivicInfo extends GoogleGAL_Service
33
  {
34
 
35
 
41
  /**
42
  * Constructs the internal representation of the CivicInfo service.
43
  *
44
+ * @param GoogleGAL_Client $client
45
  */
46
+ public function __construct(GoogleGAL_Client $client)
47
  {
48
  parent::__construct($client);
49
  $this->servicePath = 'civicinfo/us_v1/';
50
  $this->version = 'us_v1';
51
  $this->serviceName = 'civicinfo';
52
 
53
+ $this->divisions = new GoogleGAL_Service_CivicInfo_Divisions_Resource(
54
  $this,
55
  $this->serviceName,
56
  'divisions',
69
  )
70
  )
71
  );
72
+ $this->elections = new GoogleGAL_Service_CivicInfo_Elections_Resource(
73
  $this,
74
  $this->serviceName,
75
  'elections',
97
  )
98
  )
99
  );
100
+ $this->representatives = new GoogleGAL_Service_CivicInfo_Representatives_Resource(
101
  $this,
102
  $this->serviceName,
103
  'representatives',
128
  * The "divisions" collection of methods.
129
  * Typical usage is:
130
  * <code>
131
+ * $civicinfoService = new GoogleGAL_Service_CivicInfo(...);
132
  * $divisions = $civicinfoService->divisions;
133
  * </code>
134
  */
135
+ class GoogleGAL_Service_CivicInfo_Divisions_Resource extends GoogleGAL_Service_Resource
136
  {
137
 
138
  /**
146
  * words given in the query are treated as required patterns. In addition to that, most query
147
  * operators of the Apache Lucene library are supported. See
148
  * http://lucene.apache.org/core/2_9_4/queryparsersyntax.html
149
+ * @return GoogleGAL_Service_CivicInfo_DivisionSearchResponse
150
  */
151
  public function search($optParams = array())
152
  {
153
  $params = array();
154
  $params = array_merge($params, $optParams);
155
+ return $this->call('search', array($params), "GoogleGAL_Service_CivicInfo_DivisionSearchResponse");
156
  }
157
  }
158
 
160
  * The "elections" collection of methods.
161
  * Typical usage is:
162
  * <code>
163
+ * $civicinfoService = new GoogleGAL_Service_CivicInfo(...);
164
  * $elections = $civicinfoService->elections;
165
  * </code>
166
  */
167
+ class GoogleGAL_Service_CivicInfo_Elections_Resource extends GoogleGAL_Service_Resource
168
  {
169
 
170
  /**
171
  * List of available elections to query. (elections.electionQuery)
172
  *
173
  * @param array $optParams Optional parameters.
174
+ * @return GoogleGAL_Service_CivicInfo_ElectionsQueryResponse
175
  */
176
  public function electionQuery($optParams = array())
177
  {
178
  $params = array();
179
  $params = array_merge($params, $optParams);
180
+ return $this->call('electionQuery', array($params), "GoogleGAL_Service_CivicInfo_ElectionsQueryResponse");
181
  }
182
  /**
183
  * Looks up information relevant to a voter based on the voter's registered
186
  * @param string $electionId
187
  * The unique ID of the election to look up. A list of election IDs can be obtained at
188
  * https://www.googleapis.com/civicinfo/{version}/elections
189
+ * @param GoogleGAL_VoterInfoRequest $postBody
190
  * @param array $optParams Optional parameters.
191
  *
192
  * @opt_param bool officialOnly
193
  * If set to true, only data from official state sources will be returned.
194
+ * @return GoogleGAL_Service_CivicInfo_VoterInfoResponse
195
  */
196
+ public function voterInfoQuery($electionId, GoogleGAL_Service_CivicInfo_VoterInfoRequest $postBody, $optParams = array())
197
  {
198
  $params = array('electionId' => $electionId, 'postBody' => $postBody);
199
  $params = array_merge($params, $optParams);
200
+ return $this->call('voterInfoQuery', array($params), "GoogleGAL_Service_CivicInfo_VoterInfoResponse");
201
  }
202
  }
203
 
205
  * The "representatives" collection of methods.
206
  * Typical usage is:
207
  * <code>
208
+ * $civicinfoService = new GoogleGAL_Service_CivicInfo(...);
209
  * $representatives = $civicinfoService->representatives;
210
  * </code>
211
  */
212
+ class GoogleGAL_Service_CivicInfo_Representatives_Resource extends GoogleGAL_Service_Resource
213
  {
214
 
215
  /**
216
  * Looks up political geography and (optionally) representative information
217
  * based on an address. (representatives.representativeInfoQuery)
218
  *
219
+ * @param GoogleGAL_RepresentativeInfoRequest $postBody
220
  * @param array $optParams Optional parameters.
221
  *
222
  * @opt_param string ocdId
225
  * @opt_param bool includeOffices
226
  * Whether to return information about offices and officials. If false, only the top-level district
227
  * information will be returned.
228
+ * @return GoogleGAL_Service_CivicInfo_RepresentativeInfoResponse
229
  */
230
+ public function representativeInfoQuery(GoogleGAL_Service_CivicInfo_RepresentativeInfoRequest $postBody, $optParams = array())
231
  {
232
  $params = array('postBody' => $postBody);
233
  $params = array_merge($params, $optParams);
234
+ return $this->call('representativeInfoQuery', array($params), "GoogleGAL_Service_CivicInfo_RepresentativeInfoResponse");
235
  }
236
  }
237
 
238
 
239
 
240
 
241
+ class GoogleGAL_Service_CivicInfo_AdministrationRegion extends GoogleGAL_Collection
242
  {
243
+ protected $electionAdministrationBodyType = 'GoogleGAL_Service_CivicInfo_AdministrativeBody';
244
  protected $electionAdministrationBodyDataType = '';
245
  public $id;
246
+ protected $localJurisdictionType = 'GoogleGAL_Service_CivicInfo_AdministrationRegion';
247
  protected $localJurisdictionDataType = '';
248
  public $name;
249
+ protected $sourcesType = 'GoogleGAL_Service_CivicInfo_Source';
250
  protected $sourcesDataType = 'array';
251
 
252
+ public function setElectionAdministrationBody(GoogleGAL_Service_CivicInfo_AdministrativeBody $electionAdministrationBody)
253
  {
254
  $this->electionAdministrationBody = $electionAdministrationBody;
255
  }
269
  return $this->id;
270
  }
271
 
272
+ public function setLocalJurisdiction(GoogleGAL_Service_CivicInfo_AdministrationRegion $localJurisdiction)
273
  {
274
  $this->localJurisdiction = $localJurisdiction;
275
  }
300
  }
301
  }
302
 
303
+ class GoogleGAL_Service_CivicInfo_AdministrativeBody extends GoogleGAL_Collection
304
  {
305
  public $absenteeVotingInfoUrl;
306
  public $ballotInfoUrl;
307
+ protected $correspondenceAddressType = 'GoogleGAL_Service_CivicInfo_SimpleAddressType';
308
  protected $correspondenceAddressDataType = '';
309
  public $electionInfoUrl;
310
+ protected $electionOfficialsType = 'GoogleGAL_Service_CivicInfo_ElectionOfficial';
311
  protected $electionOfficialsDataType = 'array';
312
  public $electionRegistrationConfirmationUrl;
313
  public $electionRegistrationUrl;
314
  public $electionRulesUrl;
315
  public $hoursOfOperation;
316
  public $name;
317
+ protected $physicalAddressType = 'GoogleGAL_Service_CivicInfo_SimpleAddressType';
318
  protected $physicalAddressDataType = '';
319
  public $voterServices;
320
  public $votingLocationFinderUrl;
339
  return $this->ballotInfoUrl;
340
  }
341
 
342
+ public function setCorrespondenceAddress(GoogleGAL_Service_CivicInfo_SimpleAddressType $correspondenceAddress)
343
  {
344
  $this->correspondenceAddress = $correspondenceAddress;
345
  }
419
  return $this->name;
420
  }
421
 
422
+ public function setPhysicalAddress(GoogleGAL_Service_CivicInfo_SimpleAddressType $physicalAddress)
423
  {
424
  $this->physicalAddress = $physicalAddress;
425
  }
450
  }
451
  }
452
 
453
+ class GoogleGAL_Service_CivicInfo_Candidate extends GoogleGAL_Collection
454
  {
455
  public $candidateUrl;
456
+ protected $channelsType = 'GoogleGAL_Service_CivicInfo_Channel';
457
  protected $channelsDataType = 'array';
458
  public $email;
459
  public $name;
543
  }
544
  }
545
 
546
+ class GoogleGAL_Service_CivicInfo_Channel extends GoogleGAL_Model
547
  {
548
  public $id;
549
  public $type;
569
  }
570
  }
571
 
572
+ class GoogleGAL_Service_CivicInfo_Contest extends GoogleGAL_Collection
573
  {
574
  public $ballotPlacement;
575
+ protected $candidatesType = 'GoogleGAL_Service_CivicInfo_Candidate';
576
  protected $candidatesDataType = 'array';
577
+ protected $districtType = 'GoogleGAL_Service_CivicInfo_ElectoralDistrict';
578
  protected $districtDataType = '';
579
  public $electorateSpecifications;
580
  public $id;
586
  public $referendumSubtitle;
587
  public $referendumTitle;
588
  public $referendumUrl;
589
+ protected $sourcesType = 'GoogleGAL_Service_CivicInfo_Source';
590
  protected $sourcesDataType = 'array';
591
  public $special;
592
  public $type;
611
  return $this->candidates;
612
  }
613
 
614
+ public function setDistrict(GoogleGAL_Service_CivicInfo_ElectoralDistrict $district)
615
  {
616
  $this->district = $district;
617
  }
752
  }
753
  }
754
 
755
+ class GoogleGAL_Service_CivicInfo_DivisionSearchResponse extends GoogleGAL_Collection
756
  {
757
  public $kind;
758
+ protected $resultsType = 'GoogleGAL_Service_CivicInfo_DivisionSearchResult';
759
  protected $resultsDataType = 'array';
760
  public $status;
761
 
790
  }
791
  }
792
 
793
+ class GoogleGAL_Service_CivicInfo_DivisionSearchResult extends GoogleGAL_Model
794
  {
795
  public $name;
796
  public $ocdId;
816
  }
817
  }
818
 
819
+ class GoogleGAL_Service_CivicInfo_Election extends GoogleGAL_Model
820
  {
821
  public $electionDay;
822
  public $id;
853
  }
854
  }
855
 
856
+ class GoogleGAL_Service_CivicInfo_ElectionOfficial extends GoogleGAL_Model
857
  {
858
  public $emailAddress;
859
  public $faxNumber;
912
  }
913
  }
914
 
915
+ class GoogleGAL_Service_CivicInfo_ElectionsQueryResponse extends GoogleGAL_Collection
916
  {
917
+ protected $electionsType = 'GoogleGAL_Service_CivicInfo_Election';
918
  protected $electionsDataType = 'array';
919
  public $kind;
920
 
939
  }
940
  }
941
 
942
+ class GoogleGAL_Service_CivicInfo_ElectoralDistrict extends GoogleGAL_Model
943
  {
944
  public $id;
945
  public $name;
976
  }
977
  }
978
 
979
+ class GoogleGAL_Service_CivicInfo_GeographicDivision extends GoogleGAL_Collection
980
  {
981
  public $name;
982
  public $officeIds;
1013
  }
1014
  }
1015
 
1016
+ class GoogleGAL_Service_CivicInfo_Office extends GoogleGAL_Collection
1017
  {
1018
  public $level;
1019
  public $name;
1020
  public $officialIds;
1021
+ protected $sourcesType = 'GoogleGAL_Service_CivicInfo_Source';
1022
  protected $sourcesDataType = 'array';
1023
 
1024
  public function setLevel($level)
1062
  }
1063
  }
1064
 
1065
+ class GoogleGAL_Service_CivicInfo_Official extends GoogleGAL_Collection
1066
  {
1067
+ protected $addressType = 'GoogleGAL_Service_CivicInfo_SimpleAddressType';
1068
  protected $addressDataType = 'array';
1069
+ protected $channelsType = 'GoogleGAL_Service_CivicInfo_Channel';
1070
  protected $channelsDataType = 'array';
1071
  public $emails;
1072
  public $name;
1156
  }
1157
  }
1158
 
1159
+ class GoogleGAL_Service_CivicInfo_PollingLocation extends GoogleGAL_Collection
1160
  {
1161
+ protected $addressType = 'GoogleGAL_Service_CivicInfo_SimpleAddressType';
1162
  protected $addressDataType = '';
1163
  public $endDate;
1164
  public $id;
1165
  public $name;
1166
  public $notes;
1167
  public $pollingHours;
1168
+ protected $sourcesType = 'GoogleGAL_Service_CivicInfo_Source';
1169
  protected $sourcesDataType = 'array';
1170
  public $startDate;
1171
  public $voterServices;
1172
 
1173
+ public function setAddress(GoogleGAL_Service_CivicInfo_SimpleAddressType $address)
1174
  {
1175
  $this->address = $address;
1176
  }
1261
  }
1262
  }
1263
 
1264
+ class GoogleGAL_Service_CivicInfo_RepresentativeInfoRequest extends GoogleGAL_Model
1265
  {
1266
  public $address;
1267
 
1276
  }
1277
  }
1278
 
1279
+ class GoogleGAL_Service_CivicInfo_RepresentativeInfoResponse extends GoogleGAL_Model
1280
  {
1281
+ protected $divisionsType = 'GoogleGAL_Service_CivicInfo_GeographicDivision';
1282
  protected $divisionsDataType = 'map';
1283
  public $kind;
1284
+ protected $normalizedInputType = 'GoogleGAL_Service_CivicInfo_SimpleAddressType';
1285
  protected $normalizedInputDataType = '';
1286
+ protected $officesType = 'GoogleGAL_Service_CivicInfo_Office';
1287
  protected $officesDataType = 'map';
1288
+ protected $officialsType = 'GoogleGAL_Service_CivicInfo_Official';
1289
  protected $officialsDataType = 'map';
1290
  public $status;
1291
 
1309
  return $this->kind;
1310
  }
1311
 
1312
+ public function setNormalizedInput(GoogleGAL_Service_CivicInfo_SimpleAddressType $normalizedInput)
1313
  {
1314
  $this->normalizedInput = $normalizedInput;
1315
  }
1350
  }
1351
  }
1352
 
1353
+ class GoogleGAL_Service_CivicInfo_SimpleAddressType extends GoogleGAL_Model
1354
  {
1355
  public $city;
1356
  public $line1;
1431
  }
1432
  }
1433
 
1434
+ class GoogleGAL_Service_CivicInfo_Source extends GoogleGAL_Model
1435
  {
1436
  public $name;
1437
  public $official;
1457
  }
1458
  }
1459
 
1460
+ class GoogleGAL_Service_CivicInfo_VoterInfoRequest extends GoogleGAL_Model
1461
  {
1462
  public $address;
1463
 
1472
  }
1473
  }
1474
 
1475
+ class GoogleGAL_Service_CivicInfo_VoterInfoResponse extends GoogleGAL_Collection
1476
  {
1477
+ protected $contestsType = 'GoogleGAL_Service_CivicInfo_Contest';
1478
  protected $contestsDataType = 'array';
1479
+ protected $earlyVoteSitesType = 'GoogleGAL_Service_CivicInfo_PollingLocation';
1480
  protected $earlyVoteSitesDataType = 'array';
1481
+ protected $electionType = 'GoogleGAL_Service_CivicInfo_Election';
1482
  protected $electionDataType = '';
1483
  public $kind;
1484
+ protected $normalizedInputType = 'GoogleGAL_Service_CivicInfo_SimpleAddressType';
1485
  protected $normalizedInputDataType = '';
1486
+ protected $pollingLocationsType = 'GoogleGAL_Service_CivicInfo_PollingLocation';
1487
  protected $pollingLocationsDataType = 'array';
1488
+ protected $stateType = 'GoogleGAL_Service_CivicInfo_AdministrationRegion';
1489
  protected $stateDataType = 'array';
1490
  public $status;
1491
 
1509
  return $this->earlyVoteSites;
1510
  }
1511
 
1512
+ public function setElection(GoogleGAL_Service_CivicInfo_Election $election)
1513
  {
1514
  $this->election = $election;
1515
  }
1529
  return $this->kind;
1530
  }
1531
 
1532
+ public function setNormalizedInput(GoogleGAL_Service_CivicInfo_SimpleAddressType $normalizedInput)
1533
  {
1534
  $this->normalizedInput = $normalizedInput;
1535
  }
core/Google/Service/Compute.php CHANGED
@@ -29,7 +29,7 @@
29
  *
30
  * @author Google, Inc.
31
  */
32
- class Google_Service_Compute extends Google_Service
33
  {
34
  /** View and manage your Google Compute Engine resources. */
35
  const COMPUTE = "https://www.googleapis.com/auth/compute";
@@ -66,16 +66,16 @@ class Google_Service_Compute extends Google_Service
66
  /**
67
  * Constructs the internal representation of the Compute service.
68
  *
69
- * @param Google_Client $client
70
  */
71
- public function __construct(Google_Client $client)
72
  {
73
  parent::__construct($client);
74
  $this->servicePath = 'compute/v1/projects/';
75
  $this->version = 'v1';
76
  $this->serviceName = 'compute';
77
 
78
- $this->addresses = new Google_Service_Compute_Addresses_Resource(
79
  $this,
80
  $this->serviceName,
81
  'addresses',
@@ -189,7 +189,7 @@ class Google_Service_Compute extends Google_Service
189
  )
190
  )
191
  );
192
- $this->disks = new Google_Service_Compute_Disks_Resource(
193
  $this,
194
  $this->serviceName,
195
  'disks',
@@ -327,7 +327,7 @@ class Google_Service_Compute extends Google_Service
327
  )
328
  )
329
  );
330
- $this->firewalls = new Google_Service_Compute_Firewalls_Resource(
331
  $this,
332
  $this->serviceName,
333
  'firewalls',
@@ -429,7 +429,7 @@ class Google_Service_Compute extends Google_Service
429
  )
430
  )
431
  );
432
- $this->forwardingRules = new Google_Service_Compute_ForwardingRules_Resource(
433
  $this,
434
  $this->serviceName,
435
  'forwardingRules',
@@ -563,7 +563,7 @@ class Google_Service_Compute extends Google_Service
563
  )
564
  )
565
  );
566
- $this->globalOperations = new Google_Service_Compute_GlobalOperations_Resource(
567
  $this,
568
  $this->serviceName,
569
  'globalOperations',
@@ -647,7 +647,7 @@ class Google_Service_Compute extends Google_Service
647
  )
648
  )
649
  );
650
- $this->httpHealthChecks = new Google_Service_Compute_HttpHealthChecks_Resource(
651
  $this,
652
  $this->serviceName,
653
  'httpHealthChecks',
@@ -749,7 +749,7 @@ class Google_Service_Compute extends Google_Service
749
  )
750
  )
751
  );
752
- $this->images = new Google_Service_Compute_Images_Resource(
753
  $this,
754
  $this->serviceName,
755
  'images',
@@ -836,7 +836,7 @@ class Google_Service_Compute extends Google_Service
836
  )
837
  )
838
  );
839
- $this->instances = new Google_Service_Compute_Instances_Resource(
840
  $this,
841
  $this->serviceName,
842
  'instances',
@@ -1180,7 +1180,7 @@ class Google_Service_Compute extends Google_Service
1180
  )
1181
  )
1182
  );
1183
- $this->machineTypes = new Google_Service_Compute_MachineTypes_Resource(
1184
  $this,
1185
  $this->serviceName,
1186
  'machineTypes',
@@ -1259,7 +1259,7 @@ class Google_Service_Compute extends Google_Service
1259
  )
1260
  )
1261
  );
1262
- $this->networks = new Google_Service_Compute_Networks_Resource(
1263
  $this,
1264
  $this->serviceName,
1265
  'networks',
@@ -1331,7 +1331,7 @@ class Google_Service_Compute extends Google_Service
1331
  )
1332
  )
1333
  );
1334
- $this->projects = new Google_Service_Compute_Projects_Resource(
1335
  $this,
1336
  $this->serviceName,
1337
  'projects',
@@ -1361,7 +1361,7 @@ class Google_Service_Compute extends Google_Service
1361
  )
1362
  )
1363
  );
1364
- $this->regionOperations = new Google_Service_Compute_RegionOperations_Resource(
1365
  $this,
1366
  $this->serviceName,
1367
  'regionOperations',
@@ -1438,7 +1438,7 @@ class Google_Service_Compute extends Google_Service
1438
  )
1439
  )
1440
  );
1441
- $this->regions = new Google_Service_Compute_Regions_Resource(
1442
  $this,
1443
  $this->serviceName,
1444
  'regions',
@@ -1485,7 +1485,7 @@ class Google_Service_Compute extends Google_Service
1485
  )
1486
  )
1487
  );
1488
- $this->routes = new Google_Service_Compute_Routes_Resource(
1489
  $this,
1490
  $this->serviceName,
1491
  'routes',
@@ -1557,7 +1557,7 @@ class Google_Service_Compute extends Google_Service
1557
  )
1558
  )
1559
  );
1560
- $this->snapshots = new Google_Service_Compute_Snapshots_Resource(
1561
  $this,
1562
  $this->serviceName,
1563
  'snapshots',
@@ -1619,7 +1619,7 @@ class Google_Service_Compute extends Google_Service
1619
  )
1620
  )
1621
  );
1622
- $this->targetInstances = new Google_Service_Compute_TargetInstances_Resource(
1623
  $this,
1624
  $this->serviceName,
1625
  'targetInstances',
@@ -1733,7 +1733,7 @@ class Google_Service_Compute extends Google_Service
1733
  )
1734
  )
1735
  );
1736
- $this->targetPools = new Google_Service_Compute_TargetPools_Resource(
1737
  $this,
1738
  $this->serviceName,
1739
  'targetPools',
@@ -1971,7 +1971,7 @@ class Google_Service_Compute extends Google_Service
1971
  )
1972
  )
1973
  );
1974
- $this->zoneOperations = new Google_Service_Compute_ZoneOperations_Resource(
1975
  $this,
1976
  $this->serviceName,
1977
  'zoneOperations',
@@ -2048,7 +2048,7 @@ class Google_Service_Compute extends Google_Service
2048
  )
2049
  )
2050
  );
2051
- $this->zones = new Google_Service_Compute_Zones_Resource(
2052
  $this,
2053
  $this->serviceName,
2054
  'zones',
@@ -2103,11 +2103,11 @@ class Google_Service_Compute extends Google_Service
2103
  * The "addresses" collection of methods.
2104
  * Typical usage is:
2105
  * <code>
2106
- * $computeService = new Google_Service_Compute(...);
2107
  * $addresses = $computeService->addresses;
2108
  * </code>
2109
  */
2110
- class Google_Service_Compute_Addresses_Resource extends Google_Service_Resource
2111
  {
2112
 
2113
  /**
@@ -2125,13 +2125,13 @@ class Google_Service_Compute_Addresses_Resource extends Google_Service_Resource
2125
  * @opt_param string maxResults
2126
  * Optional. Maximum count of results to be returned. Maximum value is 500 and default value is
2127
  * 500.
2128
- * @return Google_Service_Compute_AddressAggregatedList
2129
  */
2130
  public function aggregatedList($project, $optParams = array())
2131
  {
2132
  $params = array('project' => $project);
2133
  $params = array_merge($params, $optParams);
2134
- return $this->call('aggregatedList', array($params), "Google_Service_Compute_AddressAggregatedList");
2135
  }
2136
  /**
2137
  * Deletes the specified address resource. (addresses.delete)
@@ -2143,13 +2143,13 @@ class Google_Service_Compute_Addresses_Resource extends Google_Service_Resource
2143
  * @param string $address
2144
  * Name of the address resource to delete.
2145
  * @param array $optParams Optional parameters.
2146
- * @return Google_Service_Compute_Operation
2147
  */
2148
  public function delete($project, $region, $address, $optParams = array())
2149
  {
2150
  $params = array('project' => $project, 'region' => $region, 'address' => $address);
2151
  $params = array_merge($params, $optParams);
2152
- return $this->call('delete', array($params), "Google_Service_Compute_Operation");
2153
  }
2154
  /**
2155
  * Returns the specified address resource. (addresses.get)
@@ -2161,13 +2161,13 @@ class Google_Service_Compute_Addresses_Resource extends Google_Service_Resource
2161
  * @param string $address
2162
  * Name of the address resource to return.
2163
  * @param array $optParams Optional parameters.
2164
- * @return Google_Service_Compute_Address
2165
  */
2166
  public function get($project, $region, $address, $optParams = array())
2167
  {
2168
  $params = array('project' => $project, 'region' => $region, 'address' => $address);
2169
  $params = array_merge($params, $optParams);
2170
- return $this->call('get', array($params), "Google_Service_Compute_Address");
2171
  }
2172
  /**
2173
  * Creates an address resource in the specified project using the data included
@@ -2177,15 +2177,15 @@ class Google_Service_Compute_Addresses_Resource extends Google_Service_Resource
2177
  * Name of the project scoping this request.
2178
  * @param string $region
2179
  * Name of the region scoping this request.
2180
- * @param Google_Address $postBody
2181
  * @param array $optParams Optional parameters.
2182
- * @return Google_Service_Compute_Operation
2183
  */
2184
- public function insert($project, $region, Google_Service_Compute_Address $postBody, $optParams = array())
2185
  {
2186
  $params = array('project' => $project, 'region' => $region, 'postBody' => $postBody);
2187
  $params = array_merge($params, $optParams);
2188
- return $this->call('insert', array($params), "Google_Service_Compute_Operation");
2189
  }
2190
  /**
2191
  * Retrieves the list of address resources contained within the specified
@@ -2205,13 +2205,13 @@ class Google_Service_Compute_Addresses_Resource extends Google_Service_Resource
2205
  * @opt_param string maxResults
2206
  * Optional. Maximum count of results to be returned. Maximum value is 500 and default value is
2207
  * 500.
2208
- * @return Google_Service_Compute_AddressList
2209
  */
2210
  public function listAddresses($project, $region, $optParams = array())
2211
  {
2212
  $params = array('project' => $project, 'region' => $region);
2213
  $params = array_merge($params, $optParams);
2214
- return $this->call('list', array($params), "Google_Service_Compute_AddressList");
2215
  }
2216
  }
2217
 
@@ -2219,11 +2219,11 @@ class Google_Service_Compute_Addresses_Resource extends Google_Service_Resource
2219
  * The "disks" collection of methods.
2220
  * Typical usage is:
2221
  * <code>
2222
- * $computeService = new Google_Service_Compute(...);
2223
  * $disks = $computeService->disks;
2224
  * </code>
2225
  */
2226
- class Google_Service_Compute_Disks_Resource extends Google_Service_Resource
2227
  {
2228
 
2229
  /**
@@ -2241,13 +2241,13 @@ class Google_Service_Compute_Disks_Resource extends Google_Service_Resource
2241
  * @opt_param string maxResults
2242
  * Optional. Maximum count of results to be returned. Maximum value is 500 and default value is
2243
  * 500.
2244
- * @return Google_Service_Compute_DiskAggregatedList
2245
  */
2246
  public function aggregatedList($project, $optParams = array())
2247
  {
2248
  $params = array('project' => $project);
2249
  $params = array_merge($params, $optParams);
2250
- return $this->call('aggregatedList', array($params), "Google_Service_Compute_DiskAggregatedList");
2251
  }
2252
  /**
2253
  * (disks.createSnapshot)
@@ -2258,15 +2258,15 @@ class Google_Service_Compute_Disks_Resource extends Google_Service_Resource
2258
  * Name of the zone scoping this request.
2259
  * @param string $disk
2260
  * Name of the persistent disk resource to snapshot.
2261
- * @param Google_Snapshot $postBody
2262
  * @param array $optParams Optional parameters.
2263
- * @return Google_Service_Compute_Operation
2264
  */
2265
- public function createSnapshot($project, $zone, $disk, Google_Service_Compute_Snapshot $postBody, $optParams = array())
2266
  {
2267
  $params = array('project' => $project, 'zone' => $zone, 'disk' => $disk, 'postBody' => $postBody);
2268
  $params = array_merge($params, $optParams);
2269
- return $this->call('createSnapshot', array($params), "Google_Service_Compute_Operation");
2270
  }
2271
  /**
2272
  * Deletes the specified persistent disk resource. (disks.delete)
@@ -2278,13 +2278,13 @@ class Google_Service_Compute_Disks_Resource extends Google_Service_Resource
2278
  * @param string $disk
2279
  * Name of the persistent disk resource to delete.
2280
  * @param array $optParams Optional parameters.
2281
- * @return Google_Service_Compute_Operation
2282
  */
2283
  public function delete($project, $zone, $disk, $optParams = array())
2284
  {
2285
  $params = array('project' => $project, 'zone' => $zone, 'disk' => $disk);
2286
  $params = array_merge($params, $optParams);
2287
- return $this->call('delete', array($params), "Google_Service_Compute_Operation");
2288
  }
2289
  /**
2290
  * Returns the specified persistent disk resource. (disks.get)
@@ -2296,13 +2296,13 @@ class Google_Service_Compute_Disks_Resource extends Google_Service_Resource
2296
  * @param string $disk
2297
  * Name of the persistent disk resource to return.
2298
  * @param array $optParams Optional parameters.
2299
- * @return Google_Service_Compute_Disk
2300
  */
2301
  public function get($project, $zone, $disk, $optParams = array())
2302
  {
2303
  $params = array('project' => $project, 'zone' => $zone, 'disk' => $disk);
2304
  $params = array_merge($params, $optParams);
2305
- return $this->call('get', array($params), "Google_Service_Compute_Disk");
2306
  }
2307
  /**
2308
  * Creates a persistent disk resource in the specified project using the data
@@ -2312,18 +2312,18 @@ class Google_Service_Compute_Disks_Resource extends Google_Service_Resource
2312
  * Name of the project scoping this request.
2313
  * @param string $zone
2314
  * Name of the zone scoping this request.
2315
- * @param Google_Disk $postBody
2316
  * @param array $optParams Optional parameters.
2317
  *
2318
  * @opt_param string sourceImage
2319
  * Optional. Source image to restore onto a disk.
2320
- * @return Google_Service_Compute_Operation
2321
  */
2322
- public function insert($project, $zone, Google_Service_Compute_Disk $postBody, $optParams = array())
2323
  {
2324
  $params = array('project' => $project, 'zone' => $zone, 'postBody' => $postBody);
2325
  $params = array_merge($params, $optParams);
2326
- return $this->call('insert', array($params), "Google_Service_Compute_Operation");
2327
  }
2328
  /**
2329
  * Retrieves the list of persistent disk resources contained within the
@@ -2343,13 +2343,13 @@ class Google_Service_Compute_Disks_Resource extends Google_Service_Resource
2343
  * @opt_param string maxResults
2344
  * Optional. Maximum count of results to be returned. Maximum value is 500 and default value is
2345
  * 500.
2346
- * @return Google_Service_Compute_DiskList
2347
  */
2348
  public function listDisks($project, $zone, $optParams = array())
2349
  {
2350
  $params = array('project' => $project, 'zone' => $zone);
2351
  $params = array_merge($params, $optParams);
2352
- return $this->call('list', array($params), "Google_Service_Compute_DiskList");
2353
  }
2354
  }
2355
 
@@ -2357,11 +2357,11 @@ class Google_Service_Compute_Disks_Resource extends Google_Service_Resource
2357
  * The "firewalls" collection of methods.
2358
  * Typical usage is:
2359
  * <code>
2360
- * $computeService = new Google_Service_Compute(...);
2361
  * $firewalls = $computeService->firewalls;
2362
  * </code>
2363
  */
2364
- class Google_Service_Compute_Firewalls_Resource extends Google_Service_Resource
2365
  {
2366
 
2367
  /**
@@ -2372,13 +2372,13 @@ class Google_Service_Compute_Firewalls_Resource extends Google_Service_Resource
2372
  * @param string $firewall
2373
  * Name of the firewall resource to delete.
2374
  * @param array $optParams Optional parameters.
2375
- * @return Google_Service_Compute_Operation
2376
  */
2377
  public function delete($project, $firewall, $optParams = array())
2378
  {
2379
  $params = array('project' => $project, 'firewall' => $firewall);
2380
  $params = array_merge($params, $optParams);
2381
- return $this->call('delete', array($params), "Google_Service_Compute_Operation");
2382
  }
2383
  /**
2384
  * Returns the specified firewall resource. (firewalls.get)
@@ -2388,13 +2388,13 @@ class Google_Service_Compute_Firewalls_Resource extends Google_Service_Resource
2388
  * @param string $firewall
2389
  * Name of the firewall resource to return.
2390
  * @param array $optParams Optional parameters.
2391
- * @return Google_Service_Compute_Firewall
2392
  */
2393
  public function get($project, $firewall, $optParams = array())
2394
  {
2395
  $params = array('project' => $project, 'firewall' => $firewall);
2396
  $params = array_merge($params, $optParams);
2397
- return $this->call('get', array($params), "Google_Service_Compute_Firewall");
2398
  }
2399
  /**
2400
  * Creates a firewall resource in the specified project using the data included
@@ -2402,15 +2402,15 @@ class Google_Service_Compute_Firewalls_Resource extends Google_Service_Resource
2402
  *
2403
  * @param string $project
2404
  * Name of the project scoping this request.
2405
- * @param Google_Firewall $postBody
2406
  * @param array $optParams Optional parameters.
2407
- * @return Google_Service_Compute_Operation
2408
  */
2409
- public function insert($project, Google_Service_Compute_Firewall $postBody, $optParams = array())
2410
  {
2411
  $params = array('project' => $project, 'postBody' => $postBody);
2412
  $params = array_merge($params, $optParams);
2413
- return $this->call('insert', array($params), "Google_Service_Compute_Operation");
2414
  }
2415
  /**
2416
  * Retrieves the list of firewall resources available to the specified project.
@@ -2428,13 +2428,13 @@ class Google_Service_Compute_Firewalls_Resource extends Google_Service_Resource
2428
  * @opt_param string maxResults
2429
  * Optional. Maximum count of results to be returned. Maximum value is 500 and default value is
2430
  * 500.
2431
- * @return Google_Service_Compute_FirewallList
2432
  */
2433
  public function listFirewalls($project, $optParams = array())
2434
  {
2435
  $params = array('project' => $project);
2436
  $params = array_merge($params, $optParams);
2437
- return $this->call('list', array($params), "Google_Service_Compute_FirewallList");
2438
  }
2439
  /**
2440
  * Updates the specified firewall resource with the data included in the
@@ -2444,15 +2444,15 @@ class Google_Service_Compute_Firewalls_Resource extends Google_Service_Resource
2444
  * Name of the project scoping this request.
2445
  * @param string $firewall
2446
  * Name of the firewall resource to update.
2447
- * @param Google_Firewall $postBody
2448
  * @param array $optParams Optional parameters.
2449
- * @return Google_Service_Compute_Operation
2450
  */
2451
- public function patch($project, $firewall, Google_Service_Compute_Firewall $postBody, $optParams = array())
2452
  {
2453
  $params = array('project' => $project, 'firewall' => $firewall, 'postBody' => $postBody);
2454
  $params = array_merge($params, $optParams);
2455
- return $this->call('patch', array($params), "Google_Service_Compute_Operation");
2456
  }
2457
  /**
2458
  * Updates the specified firewall resource with the data included in the
@@ -2462,15 +2462,15 @@ class Google_Service_Compute_Firewalls_Resource extends Google_Service_Resource
2462
  * Name of the project scoping this request.
2463
  * @param string $firewall
2464
  * Name of the firewall resource to update.
2465
- * @param Google_Firewall $postBody
2466
  * @param array $optParams Optional parameters.
2467
- * @return Google_Service_Compute_Operation
2468
  */
2469
- public function update($project, $firewall, Google_Service_Compute_Firewall $postBody, $optParams = array())
2470
  {
2471
  $params = array('project' => $project, 'firewall' => $firewall, 'postBody' => $postBody);
2472
  $params = array_merge($params, $optParams);
2473
- return $this->call('update', array($params), "Google_Service_Compute_Operation");
2474
  }
2475
  }
2476
 
@@ -2478,11 +2478,11 @@ class Google_Service_Compute_Firewalls_Resource extends Google_Service_Resource
2478
  * The "forwardingRules" collection of methods.
2479
  * Typical usage is:
2480
  * <code>
2481
- * $computeService = new Google_Service_Compute(...);
2482
  * $forwardingRules = $computeService->forwardingRules;
2483
  * </code>
2484
  */
2485
- class Google_Service_Compute_ForwardingRules_Resource extends Google_Service_Resource
2486
  {
2487
 
2488
  /**
@@ -2501,13 +2501,13 @@ class Google_Service_Compute_ForwardingRules_Resource extends Google_Service_Res
2501
  * @opt_param string maxResults
2502
  * Optional. Maximum count of results to be returned. Maximum value is 500 and default value is
2503
  * 500.
2504
- * @return Google_Service_Compute_ForwardingRuleAggregatedList
2505
  */
2506
  public function aggregatedList($project, $optParams = array())
2507
  {
2508
  $params = array('project' => $project);
2509
  $params = array_merge($params, $optParams);
2510
- return $this->call('aggregatedList', array($params), "Google_Service_Compute_ForwardingRuleAggregatedList");
2511
  }
2512
  /**
2513
  * Deletes the specified ForwardingRule resource. (forwardingRules.delete)
@@ -2519,13 +2519,13 @@ class Google_Service_Compute_ForwardingRules_Resource extends Google_Service_Res
2519
  * @param string $forwardingRule
2520
  * Name of the ForwardingRule resource to delete.
2521
  * @param array $optParams Optional parameters.
2522
- * @return Google_Service_Compute_Operation
2523
  */
2524
  public function delete($project, $region, $forwardingRule, $optParams = array())
2525
  {
2526
  $params = array('project' => $project, 'region' => $region, 'forwardingRule' => $forwardingRule);
2527
  $params = array_merge($params, $optParams);
2528
- return $this->call('delete', array($params), "Google_Service_Compute_Operation");
2529
  }
2530
  /**
2531
  * Returns the specified ForwardingRule resource. (forwardingRules.get)
@@ -2537,13 +2537,13 @@ class Google_Service_Compute_ForwardingRules_Resource extends Google_Service_Res
2537
  * @param string $forwardingRule
2538
  * Name of the ForwardingRule resource to return.
2539
  * @param array $optParams Optional parameters.
2540
- * @return Google_Service_Compute_ForwardingRule
2541
  */
2542
  public function get($project, $region, $forwardingRule, $optParams = array())
2543
  {
2544
  $params = array('project' => $project, 'region' => $region, 'forwardingRule' => $forwardingRule);
2545
  $params = array_merge($params, $optParams);
2546
- return $this->call('get', array($params), "Google_Service_Compute_ForwardingRule");
2547
  }
2548
  /**
2549
  * Creates a ForwardingRule resource in the specified project and region using
@@ -2553,15 +2553,15 @@ class Google_Service_Compute_ForwardingRules_Resource extends Google_Service_Res
2553
  * Name of the project scoping this request.
2554
  * @param string $region
2555
  * Name of the region scoping this request.
2556
- * @param Google_ForwardingRule $postBody
2557
  * @param array $optParams Optional parameters.
2558
- * @return Google_Service_Compute_Operation
2559
  */
2560
- public function insert($project, $region, Google_Service_Compute_ForwardingRule $postBody, $optParams = array())
2561
  {
2562
  $params = array('project' => $project, 'region' => $region, 'postBody' => $postBody);
2563
  $params = array_merge($params, $optParams);
2564
- return $this->call('insert', array($params), "Google_Service_Compute_Operation");
2565
  }
2566
  /**
2567
  * Retrieves the list of ForwardingRule resources available to the specified
@@ -2581,13 +2581,13 @@ class Google_Service_Compute_ForwardingRules_Resource extends Google_Service_Res
2581
  * @opt_param string maxResults
2582
  * Optional. Maximum count of results to be returned. Maximum value is 500 and default value is
2583
  * 500.
2584
- * @return Google_Service_Compute_ForwardingRuleList
2585
  */
2586
  public function listForwardingRules($project, $region, $optParams = array())
2587
  {
2588
  $params = array('project' => $project, 'region' => $region);
2589
  $params = array_merge($params, $optParams);
2590
- return $this->call('list', array($params), "Google_Service_Compute_ForwardingRuleList");
2591
  }
2592
  /**
2593
  * Changes target url for forwarding rule. (forwardingRules.setTarget)
@@ -2598,15 +2598,15 @@ class Google_Service_Compute_ForwardingRules_Resource extends Google_Service_Res
2598
  * Name of the region scoping this request.
2599
  * @param string $forwardingRule
2600
  * Name of the ForwardingRule resource in which target is to be set.
2601
- * @param Google_TargetReference $postBody
2602
  * @param array $optParams Optional parameters.
2603
- * @return Google_Service_Compute_Operation
2604
  */
2605
- public function setTarget($project, $region, $forwardingRule, Google_Service_Compute_TargetReference $postBody, $optParams = array())
2606
  {
2607
  $params = array('project' => $project, 'region' => $region, 'forwardingRule' => $forwardingRule, 'postBody' => $postBody);
2608
  $params = array_merge($params, $optParams);
2609
- return $this->call('setTarget', array($params), "Google_Service_Compute_Operation");
2610
  }
2611
  }
2612
 
@@ -2614,11 +2614,11 @@ class Google_Service_Compute_ForwardingRules_Resource extends Google_Service_Res
2614
  * The "globalOperations" collection of methods.
2615
  * Typical usage is:
2616
  * <code>
2617
- * $computeService = new Google_Service_Compute(...);
2618
  * $globalOperations = $computeService->globalOperations;
2619
  * </code>
2620
  */
2621
- class Google_Service_Compute_GlobalOperations_Resource extends Google_Service_Resource
2622
  {
2623
 
2624
  /**
@@ -2637,13 +2637,13 @@ class Google_Service_Compute_GlobalOperations_Resource extends Google_Service_Re
2637
  * @opt_param string maxResults
2638
  * Optional. Maximum count of results to be returned. Maximum value is 500 and default value is
2639
  * 500.
2640
- * @return Google_Service_Compute_OperationAggregatedList
2641
  */
2642
  public function aggregatedList($project, $optParams = array())
2643
  {
2644
  $params = array('project' => $project);
2645
  $params = array_merge($params, $optParams);
2646
- return $this->call('aggregatedList', array($params), "Google_Service_Compute_OperationAggregatedList");
2647
  }
2648
  /**
2649
  * Deletes the specified operation resource. (globalOperations.delete)
@@ -2668,13 +2668,13 @@ class Google_Service_Compute_GlobalOperations_Resource extends Google_Service_Re
2668
  * @param string $operation
2669
  * Name of the operation resource to return.
2670
  * @param array $optParams Optional parameters.
2671
- * @return Google_Service_Compute_Operation
2672
  */
2673
  public function get($project, $operation, $optParams = array())
2674
  {
2675
  $params = array('project' => $project, 'operation' => $operation);
2676
  $params = array_merge($params, $optParams);
2677
- return $this->call('get', array($params), "Google_Service_Compute_Operation");
2678
  }
2679
  /**
2680
  * Retrieves the list of operation resources contained within the specified
@@ -2692,13 +2692,13 @@ class Google_Service_Compute_GlobalOperations_Resource extends Google_Service_Re
2692
  * @opt_param string maxResults
2693
  * Optional. Maximum count of results to be returned. Maximum value is 500 and default value is
2694
  * 500.
2695
- * @return Google_Service_Compute_OperationList
2696
  */
2697
  public function listGlobalOperations($project, $optParams = array())
2698
  {
2699
  $params = array('project' => $project);
2700
  $params = array_merge($params, $optParams);
2701
- return $this->call('list', array($params), "Google_Service_Compute_OperationList");
2702
  }
2703
  }
2704
 
@@ -2706,11 +2706,11 @@ class Google_Service_Compute_GlobalOperations_Resource extends Google_Service_Re
2706
  * The "httpHealthChecks" collection of methods.
2707
  * Typical usage is:
2708
  * <code>
2709
- * $computeService = new Google_Service_Compute(...);
2710
  * $httpHealthChecks = $computeService->httpHealthChecks;
2711
  * </code>
2712
  */
2713
- class Google_Service_Compute_HttpHealthChecks_Resource extends Google_Service_Resource
2714
  {
2715
 
2716
  /**
@@ -2721,13 +2721,13 @@ class Google_Service_Compute_HttpHealthChecks_Resource extends Google_Service_Re
2721
  * @param string $httpHealthCheck
2722
  * Name of the HttpHealthCheck resource to delete.
2723
  * @param array $optParams Optional parameters.
2724
- * @return Google_Service_Compute_Operation
2725
  */
2726
  public function delete($project, $httpHealthCheck, $optParams = array())
2727
  {
2728
  $params = array('project' => $project, 'httpHealthCheck' => $httpHealthCheck);
2729
  $params = array_merge($params, $optParams);
2730
- return $this->call('delete', array($params), "Google_Service_Compute_Operation");
2731
  }
2732
  /**
2733
  * Returns the specified HttpHealthCheck resource. (httpHealthChecks.get)
@@ -2737,13 +2737,13 @@ class Google_Service_Compute_HttpHealthChecks_Resource extends Google_Service_Re
2737
  * @param string $httpHealthCheck
2738
  * Name of the HttpHealthCheck resource to return.
2739
  * @param array $optParams Optional parameters.
2740
- * @return Google_Service_Compute_HttpHealthCheck
2741
  */
2742
  public function get($project, $httpHealthCheck, $optParams = array())
2743
  {
2744
  $params = array('project' => $project, 'httpHealthCheck' => $httpHealthCheck);
2745
  $params = array_merge($params, $optParams);
2746
- return $this->call('get', array($params), "Google_Service_Compute_HttpHealthCheck");
2747
  }
2748
  /**
2749
  * Creates a HttpHealthCheck resource in the specified project using the data
@@ -2751,15 +2751,15 @@ class Google_Service_Compute_HttpHealthChecks_Resource extends Google_Service_Re
2751
  *
2752
  * @param string $project
2753
  * Name of the project scoping this request.
2754
- * @param Google_HttpHealthCheck $postBody
2755
  * @param array $optParams Optional parameters.
2756
- * @return Google_Service_Compute_Operation
2757
  */
2758
- public function insert($project, Google_Service_Compute_HttpHealthCheck $postBody, $optParams = array())
2759
  {
2760
  $params = array('project' => $project, 'postBody' => $postBody);
2761
  $params = array_merge($params, $optParams);
2762
- return $this->call('insert', array($params), "Google_Service_Compute_Operation");
2763
  }
2764
  /**
2765
  * Retrieves the list of HttpHealthCheck resources available to the specified
@@ -2777,13 +2777,13 @@ class Google_Service_Compute_HttpHealthChecks_Resource extends Google_Service_Re
2777
  * @opt_param string maxResults
2778
  * Optional. Maximum count of results to be returned. Maximum value is 500 and default value is
2779
  * 500.
2780
- * @return Google_Service_Compute_HttpHealthCheckList
2781
  */
2782
  public function listHttpHealthChecks($project, $optParams = array())
2783
  {
2784
  $params = array('project' => $project);
2785
  $params = array_merge($params, $optParams);
2786
- return $this->call('list', array($params), "Google_Service_Compute_HttpHealthCheckList");
2787
  }
2788
  /**
2789
  * Updates a HttpHealthCheck resource in the specified project using the data
@@ -2794,15 +2794,15 @@ class Google_Service_Compute_HttpHealthChecks_Resource extends Google_Service_Re
2794
  * Name of the project scoping this request.
2795
  * @param string $httpHealthCheck
2796
  * Name of the HttpHealthCheck resource to update.
2797
- * @param Google_HttpHealthCheck $postBody
2798
  * @param array $optParams Optional parameters.
2799
- * @return Google_Service_Compute_Operation
2800
  */
2801
- public function patch($project, $httpHealthCheck, Google_Service_Compute_HttpHealthCheck $postBody, $optParams = array())
2802
  {
2803
  $params = array('project' => $project, 'httpHealthCheck' => $httpHealthCheck, 'postBody' => $postBody);
2804
  $params = array_merge($params, $optParams);
2805
- return $this->call('patch', array($params), "Google_Service_Compute_Operation");
2806
  }
2807
  /**
2808
  * Updates a HttpHealthCheck resource in the specified project using the data
@@ -2812,15 +2812,15 @@ class Google_Service_Compute_HttpHealthChecks_Resource extends Google_Service_Re
2812
  * Name of the project scoping this request.
2813
  * @param string $httpHealthCheck
2814
  * Name of the HttpHealthCheck resource to update.
2815
- * @param Google_HttpHealthCheck $postBody
2816
  * @param array $optParams Optional parameters.
2817
- * @return Google_Service_Compute_Operation
2818
  */
2819
- public function update($project, $httpHealthCheck, Google_Service_Compute_HttpHealthCheck $postBody, $optParams = array())
2820
  {
2821
  $params = array('project' => $project, 'httpHealthCheck' => $httpHealthCheck, 'postBody' => $postBody);
2822
  $params = array_merge($params, $optParams);
2823
- return $this->call('update', array($params), "Google_Service_Compute_Operation");
2824
  }
2825
  }
2826
 
@@ -2828,11 +2828,11 @@ class Google_Service_Compute_HttpHealthChecks_Resource extends Google_Service_Re
2828
  * The "images" collection of methods.
2829
  * Typical usage is:
2830
  * <code>
2831
- * $computeService = new Google_Service_Compute(...);
2832
  * $images = $computeService->images;
2833
  * </code>
2834
  */
2835
- class Google_Service_Compute_Images_Resource extends Google_Service_Resource
2836
  {
2837
 
2838
  /**
@@ -2843,13 +2843,13 @@ class Google_Service_Compute_Images_Resource extends Google_Service_Resource
2843
  * @param string $image
2844
  * Name of the image resource to delete.
2845
  * @param array $optParams Optional parameters.
2846
- * @return Google_Service_Compute_Operation
2847
  */
2848
  public function delete($project, $image, $optParams = array())
2849
  {
2850
  $params = array('project' => $project, 'image' => $image);
2851
  $params = array_merge($params, $optParams);
2852
- return $this->call('delete', array($params), "Google_Service_Compute_Operation");
2853
  }
2854
  /**
2855
  * Sets the deprecation status of an image. If no message body is given, clears
@@ -2859,15 +2859,15 @@ class Google_Service_Compute_Images_Resource extends Google_Service_Resource
2859
  * Name of the project scoping this request.
2860
  * @param string $image
2861
  * Image name.
2862
- * @param Google_DeprecationStatus $postBody
2863
  * @param array $optParams Optional parameters.
2864
- * @return Google_Service_Compute_Operation
2865
  */
2866
- public function deprecate($project, $image, Google_Service_Compute_DeprecationStatus $postBody, $optParams = array())
2867
  {
2868
  $params = array('project' => $project, 'image' => $image, 'postBody' => $postBody);
2869
  $params = array_merge($params, $optParams);
2870
- return $this->call('deprecate', array($params), "Google_Service_Compute_Operation");
2871
  }
2872
  /**
2873
  * Returns the specified image resource. (images.get)
@@ -2877,13 +2877,13 @@ class Google_Service_Compute_Images_Resource extends Google_Service_Resource
2877
  * @param string $image
2878
  * Name of the image resource to return.
2879
  * @param array $optParams Optional parameters.
2880
- * @return Google_Service_Compute_Image
2881
  */
2882
  public function get($project, $image, $optParams = array())
2883
  {
2884
  $params = array('project' => $project, 'image' => $image);
2885
  $params = array_merge($params, $optParams);
2886
- return $this->call('get', array($params), "Google_Service_Compute_Image");
2887
  }
2888
  /**
2889
  * Creates an image resource in the specified project using the data included in
@@ -2891,15 +2891,15 @@ class Google_Service_Compute_Images_Resource extends Google_Service_Resource
2891
  *
2892
  * @param string $project
2893
  * Name of the project scoping this request.
2894
- * @param Google_Image $postBody
2895
  * @param array $optParams Optional parameters.
2896
- * @return Google_Service_Compute_Operation
2897
  */
2898
- public function insert($project, Google_Service_Compute_Image $postBody, $optParams = array())
2899
  {
2900
  $params = array('project' => $project, 'postBody' => $postBody);
2901
  $params = array_merge($params, $optParams);
2902
- return $this->call('insert', array($params), "Google_Service_Compute_Operation");
2903
  }
2904
  /**
2905
  * Retrieves the list of image resources available to the specified project.
@@ -2917,13 +2917,13 @@ class Google_Service_Compute_Images_Resource extends Google_Service_Resource
2917
  * @opt_param string maxResults
2918
  * Optional. Maximum count of results to be returned. Maximum value is 500 and default value is
2919
  * 500.
2920
- * @return Google_Service_Compute_ImageList
2921
  */
2922
  public function listImages($project, $optParams = array())
2923
  {
2924
  $params = array('project' => $project);
2925
  $params = array_merge($params, $optParams);
2926
- return $this->call('list', array($params), "Google_Service_Compute_ImageList");
2927
  }
2928
  }
2929
 
@@ -2931,11 +2931,11 @@ class Google_Service_Compute_Images_Resource extends Google_Service_Resource
2931
  * The "instances" collection of methods.
2932
  * Typical usage is:
2933
  * <code>
2934
- * $computeService = new Google_Service_Compute(...);
2935
  * $instances = $computeService->instances;
2936
  * </code>
2937
  */
2938
- class Google_Service_Compute_Instances_Resource extends Google_Service_Resource
2939
  {
2940
 
2941
  /**
@@ -2950,15 +2950,15 @@ class Google_Service_Compute_Instances_Resource extends Google_Service_Resource
2950
  * Instance name.
2951
  * @param string $networkInterface
2952
  * Network interface name.
2953
- * @param Google_AccessConfig $postBody
2954
  * @param array $optParams Optional parameters.
2955
- * @return Google_Service_Compute_Operation
2956
  */
2957
- public function addAccessConfig($project, $zone, $instance, $networkInterface, Google_Service_Compute_AccessConfig $postBody, $optParams = array())
2958
  {
2959
  $params = array('project' => $project, 'zone' => $zone, 'instance' => $instance, 'networkInterface' => $networkInterface, 'postBody' => $postBody);
2960
  $params = array_merge($params, $optParams);
2961
- return $this->call('addAccessConfig', array($params), "Google_Service_Compute_Operation");
2962
  }
2963
  /**
2964
  * (instances.aggregatedList)
@@ -2975,13 +2975,13 @@ class Google_Service_Compute_Instances_Resource extends Google_Service_Resource
2975
  * @opt_param string maxResults
2976
  * Optional. Maximum count of results to be returned. Maximum value is 500 and default value is
2977
  * 500.
2978
- * @return Google_Service_Compute_InstanceAggregatedList
2979
  */
2980
  public function aggregatedList($project, $optParams = array())
2981
  {
2982
  $params = array('project' => $project);
2983
  $params = array_merge($params, $optParams);
2984
- return $this->call('aggregatedList', array($params), "Google_Service_Compute_InstanceAggregatedList");
2985
  }
2986
  /**
2987
  * Attaches a disk resource to an instance. (instances.attachDisk)
@@ -2992,15 +2992,15 @@ class Google_Service_Compute_Instances_Resource extends Google_Service_Resource
2992
  * Name of the zone scoping this request.
2993
  * @param string $instance
2994
  * Instance name.
2995
- * @param Google_AttachedDisk $postBody
2996
  * @param array $optParams Optional parameters.
2997
- * @return Google_Service_Compute_Operation
2998
  */
2999
- public function attachDisk($project, $zone, $instance, Google_Service_Compute_AttachedDisk $postBody, $optParams = array())
3000
  {
3001
  $params = array('project' => $project, 'zone' => $zone, 'instance' => $instance, 'postBody' => $postBody);
3002
  $params = array_merge($params, $optParams);
3003
- return $this->call('attachDisk', array($params), "Google_Service_Compute_Operation");
3004
  }
3005
  /**
3006
  * Deletes the specified instance resource. (instances.delete)
@@ -3012,13 +3012,13 @@ class Google_Service_Compute_Instances_Resource extends Google_Service_Resource
3012
  * @param string $instance
3013
  * Name of the instance resource to delete.
3014
  * @param array $optParams Optional parameters.
3015
- * @return Google_Service_Compute_Operation
3016
  */
3017
  public function delete($project, $zone, $instance, $optParams = array())
3018
  {
3019
  $params = array('project' => $project, 'zone' => $zone, 'instance' => $instance);
3020
  $params = array_merge($params, $optParams);
3021
- return $this->call('delete', array($params), "Google_Service_Compute_Operation");
3022
  }
3023
  /**
3024
  * Deletes an access config from an instance's network interface.
@@ -3035,13 +3035,13 @@ class Google_Service_Compute_Instances_Resource extends Google_Service_Resource
3035
  * @param string $networkInterface
3036
  * Network interface name.
3037
  * @param array $optParams Optional parameters.
3038
- * @return Google_Service_Compute_Operation
3039
  */
3040
  public function deleteAccessConfig($project, $zone, $instance, $accessConfig, $networkInterface, $optParams = array())
3041
  {
3042
  $params = array('project' => $project, 'zone' => $zone, 'instance' => $instance, 'accessConfig' => $accessConfig, 'networkInterface' => $networkInterface);
3043
  $params = array_merge($params, $optParams);
3044
- return $this->call('deleteAccessConfig', array($params), "Google_Service_Compute_Operation");
3045
  }
3046
  /**
3047
  * Detaches a disk from an instance. (instances.detachDisk)
@@ -3055,13 +3055,13 @@ class Google_Service_Compute_Instances_Resource extends Google_Service_Resource
3055
  * @param string $deviceName
3056
  * Disk device name to detach.
3057
  * @param array $optParams Optional parameters.
3058
- * @return Google_Service_Compute_Operation
3059
  */
3060
  public function detachDisk($project, $zone, $instance, $deviceName, $optParams = array())
3061
  {
3062
  $params = array('project' => $project, 'zone' => $zone, 'instance' => $instance, 'deviceName' => $deviceName);
3063
  $params = array_merge($params, $optParams);
3064
- return $this->call('detachDisk', array($params), "Google_Service_Compute_Operation");
3065
  }
3066
  /**
3067
  * Returns the specified instance resource. (instances.get)
@@ -3073,13 +3073,13 @@ class Google_Service_Compute_Instances_Resource extends Google_Service_Resource
3073
  * @param string $instance
3074
  * Name of the instance resource to return.
3075
  * @param array $optParams Optional parameters.
3076
- * @return Google_Service_Compute_Instance
3077
  */
3078
  public function get($project, $zone, $instance, $optParams = array())
3079
  {
3080
  $params = array('project' => $project, 'zone' => $zone, 'instance' => $instance);
3081
  $params = array_merge($params, $optParams);
3082
- return $this->call('get', array($params), "Google_Service_Compute_Instance");
3083
  }
3084
  /**
3085
  * Returns the specified instance's serial port output.
@@ -3092,13 +3092,13 @@ class Google_Service_Compute_Instances_Resource extends Google_Service_Resource
3092
  * @param string $instance
3093
  * Name of the instance scoping this request.
3094
  * @param array $optParams Optional parameters.
3095
- * @return Google_Service_Compute_SerialPortOutput
3096
  */
3097
  public function getSerialPortOutput($project, $zone, $instance, $optParams = array())
3098
  {
3099
  $params = array('project' => $project, 'zone' => $zone, 'instance' => $instance);
3100
  $params = array_merge($params, $optParams);
3101
- return $this->call('getSerialPortOutput', array($params), "Google_Service_Compute_SerialPortOutput");
3102
  }
3103
  /**
3104
  * Creates an instance resource in the specified project using the data included
@@ -3108,15 +3108,15 @@ class Google_Service_Compute_Instances_Resource extends Google_Service_Resource
3108
  * Name of the project scoping this request.
3109
  * @param string $zone
3110
  * Name of the zone scoping this request.
3111
- * @param Google_Instance $postBody
3112
  * @param array $optParams Optional parameters.
3113
- * @return Google_Service_Compute_Operation
3114
  */
3115
- public function insert($project, $zone, Google_Service_Compute_Instance $postBody, $optParams = array())
3116
  {
3117
  $params = array('project' => $project, 'zone' => $zone, 'postBody' => $postBody);
3118
  $params = array_merge($params, $optParams);
3119
- return $this->call('insert', array($params), "Google_Service_Compute_Operation");
3120
  }
3121
  /**
3122
  * Retrieves the list of instance resources contained within the specified zone.
@@ -3136,13 +3136,13 @@ class Google_Service_Compute_Instances_Resource extends Google_Service_Resource
3136
  * @opt_param string maxResults
3137
  * Optional. Maximum count of results to be returned. Maximum value is 500 and default value is
3138
  * 500.
3139
- * @return Google_Service_Compute_InstanceList
3140
  */
3141
  public function listInstances($project, $zone, $optParams = array())
3142
  {
3143
  $params = array('project' => $project, 'zone' => $zone);
3144
  $params = array_merge($params, $optParams);
3145
- return $this->call('list', array($params), "Google_Service_Compute_InstanceList");
3146
  }
3147
  /**
3148
  * Performs a hard reset on the instance. (instances.reset)
@@ -3154,13 +3154,13 @@ class Google_Service_Compute_Instances_Resource extends Google_Service_Resource
3154
  * @param string $instance
3155
  * Name of the instance scoping this request.
3156
  * @param array $optParams Optional parameters.
3157
- * @return Google_Service_Compute_Operation
3158
  */
3159
  public function reset($project, $zone, $instance, $optParams = array())
3160
  {
3161
  $params = array('project' => $project, 'zone' => $zone, 'instance' => $instance);
3162
  $params = array_merge($params, $optParams);
3163
- return $this->call('reset', array($params), "Google_Service_Compute_Operation");
3164
  }
3165
  /**
3166
  * Sets the auto-delete flag for a disk attached to an instance
@@ -3177,13 +3177,13 @@ class Google_Service_Compute_Instances_Resource extends Google_Service_Resource
3177
  * @param string $deviceName
3178
  * Disk device name to modify.
3179
  * @param array $optParams Optional parameters.
3180
- * @return Google_Service_Compute_Operation
3181
  */
3182
  public function setDiskAutoDelete($project, $zone, $instance, $autoDelete, $deviceName, $optParams = array())
3183
  {
3184
  $params = array('project' => $project, 'zone' => $zone, 'instance' => $instance, 'autoDelete' => $autoDelete, 'deviceName' => $deviceName);
3185
  $params = array_merge($params, $optParams);
3186
- return $this->call('setDiskAutoDelete', array($params), "Google_Service_Compute_Operation");
3187
  }
3188
  /**
3189
  * Sets metadata for the specified instance to the data included in the request.
@@ -3195,15 +3195,15 @@ class Google_Service_Compute_Instances_Resource extends Google_Service_Resource
3195
  * Name of the zone scoping this request.
3196
  * @param string $instance
3197
  * Name of the instance scoping this request.
3198
- * @param Google_Metadata $postBody
3199
  * @param array $optParams Optional parameters.
3200
- * @return Google_Service_Compute_Operation
3201
  */
3202
- public function setMetadata($project, $zone, $instance, Google_Service_Compute_Metadata $postBody, $optParams = array())
3203
  {
3204
  $params = array('project' => $project, 'zone' => $zone, 'instance' => $instance, 'postBody' => $postBody);
3205
  $params = array_merge($params, $optParams);
3206
- return $this->call('setMetadata', array($params), "Google_Service_Compute_Operation");
3207
  }
3208
  /**
3209
  * Sets an instance's scheduling options. (instances.setScheduling)
@@ -3214,15 +3214,15 @@ class Google_Service_Compute_Instances_Resource extends Google_Service_Resource
3214
  * Name of the zone scoping this request.
3215
  * @param string $instance
3216
  * Instance name.
3217
- * @param Google_Scheduling $postBody
3218
  * @param array $optParams Optional parameters.
3219
- * @return Google_Service_Compute_Operation
3220
  */
3221
- public function setScheduling($project, $zone, $instance, Google_Service_Compute_Scheduling $postBody, $optParams = array())
3222
  {
3223
  $params = array('project' => $project, 'zone' => $zone, 'instance' => $instance, 'postBody' => $postBody);
3224
  $params = array_merge($params, $optParams);
3225
- return $this->call('setScheduling', array($params), "Google_Service_Compute_Operation");
3226
  }
3227
  /**
3228
  * Sets tags for the specified instance to the data included in the request.
@@ -3234,15 +3234,15 @@ class Google_Service_Compute_Instances_Resource extends Google_Service_Resource
3234
  * Name of the zone scoping this request.
3235
  * @param string $instance
3236
  * Name of the instance scoping this request.
3237
- * @param Google_Tags $postBody
3238
  * @param array $optParams Optional parameters.
3239
- * @return Google_Service_Compute_Operation
3240
  */
3241
- public function setTags($project, $zone, $instance, Google_Service_Compute_Tags $postBody, $optParams = array())
3242
  {
3243
  $params = array('project' => $project, 'zone' => $zone, 'instance' => $instance, 'postBody' => $postBody);
3244
  $params = array_merge($params, $optParams);
3245
- return $this->call('setTags', array($params), "Google_Service_Compute_Operation");
3246
  }
3247
  }
3248
 
@@ -3250,11 +3250,11 @@ class Google_Service_Compute_Instances_Resource extends Google_Service_Resource
3250
  * The "machineTypes" collection of methods.
3251
  * Typical usage is:
3252
  * <code>
3253
- * $computeService = new Google_Service_Compute(...);
3254
  * $machineTypes = $computeService->machineTypes;
3255
  * </code>
3256
  */
3257
- class Google_Service_Compute_MachineTypes_Resource extends Google_Service_Resource
3258
  {
3259
 
3260
  /**
@@ -3273,13 +3273,13 @@ class Google_Service_Compute_MachineTypes_Resource extends Google_Service_Resour
3273
  * @opt_param string maxResults
3274
  * Optional. Maximum count of results to be returned. Maximum value is 500 and default value is
3275
  * 500.
3276
- * @return Google_Service_Compute_MachineTypeAggregatedList
3277
  */
3278
  public function aggregatedList($project, $optParams = array())
3279
  {
3280
  $params = array('project' => $project);
3281
  $params = array_merge($params, $optParams);
3282
- return $this->call('aggregatedList', array($params), "Google_Service_Compute_MachineTypeAggregatedList");
3283
  }
3284
  /**
3285
  * Returns the specified machine type resource. (machineTypes.get)
@@ -3291,13 +3291,13 @@ class Google_Service_Compute_MachineTypes_Resource extends Google_Service_Resour
3291
  * @param string $machineType
3292
  * Name of the machine type resource to return.
3293
  * @param array $optParams Optional parameters.
3294
- * @return Google_Service_Compute_MachineType
3295
  */
3296
  public function get($project, $zone, $machineType, $optParams = array())
3297
  {
3298
  $params = array('project' => $project, 'zone' => $zone, 'machineType' => $machineType);
3299
  $params = array_merge($params, $optParams);
3300
- return $this->call('get', array($params), "Google_Service_Compute_MachineType");
3301
  }
3302
  /**
3303
  * Retrieves the list of machine type resources available to the specified
@@ -3317,13 +3317,13 @@ class Google_Service_Compute_MachineTypes_Resource extends Google_Service_Resour
3317
  * @opt_param string maxResults
3318
  * Optional. Maximum count of results to be returned. Maximum value is 500 and default value is
3319
  * 500.
3320
- * @return Google_Service_Compute_MachineTypeList
3321
  */
3322
  public function listMachineTypes($project, $zone, $optParams = array())
3323
  {
3324
  $params = array('project' => $project, 'zone' => $zone);
3325
  $params = array_merge($params, $optParams);
3326
- return $this->call('list', array($params), "Google_Service_Compute_MachineTypeList");
3327
  }
3328
  }
3329
 
@@ -3331,11 +3331,11 @@ class Google_Service_Compute_MachineTypes_Resource extends Google_Service_Resour
3331
  * The "networks" collection of methods.
3332
  * Typical usage is:
3333
  * <code>
3334
- * $computeService = new Google_Service_Compute(...);
3335
  * $networks = $computeService->networks;
3336
  * </code>
3337
  */
3338
- class Google_Service_Compute_Networks_Resource extends Google_Service_Resource
3339
  {
3340
 
3341
  /**
@@ -3346,13 +3346,13 @@ class Google_Service_Compute_Networks_Resource extends Google_Service_Resource
3346
  * @param string $network
3347
  * Name of the network resource to delete.
3348
  * @param array $optParams Optional parameters.
3349
- * @return Google_Service_Compute_Operation
3350
  */
3351
  public function delete($project, $network, $optParams = array())
3352
  {
3353
  $params = array('project' => $project, 'network' => $network);
3354
  $params = array_merge($params, $optParams);
3355
- return $this->call('delete', array($params), "Google_Service_Compute_Operation");
3356
  }
3357
  /**
3358
  * Returns the specified network resource. (networks.get)
@@ -3362,13 +3362,13 @@ class Google_Service_Compute_Networks_Resource extends Google_Service_Resource
3362
  * @param string $network
3363
  * Name of the network resource to return.
3364
  * @param array $optParams Optional parameters.
3365
- * @return Google_Service_Compute_Network
3366
  */
3367
  public function get($project, $network, $optParams = array())
3368
  {
3369
  $params = array('project' => $project, 'network' => $network);
3370
  $params = array_merge($params, $optParams);
3371
- return $this->call('get', array($params), "Google_Service_Compute_Network");
3372
  }
3373
  /**
3374
  * Creates a network resource in the specified project using the data included
@@ -3376,15 +3376,15 @@ class Google_Service_Compute_Networks_Resource extends Google_Service_Resource
3376
  *
3377
  * @param string $project
3378
  * Name of the project scoping this request.
3379
- * @param Google_Network $postBody
3380
  * @param array $optParams Optional parameters.
3381
- * @return Google_Service_Compute_Operation
3382
  */
3383
- public function insert($project, Google_Service_Compute_Network $postBody, $optParams = array())
3384
  {
3385
  $params = array('project' => $project, 'postBody' => $postBody);
3386
  $params = array_merge($params, $optParams);
3387
- return $this->call('insert', array($params), "Google_Service_Compute_Operation");
3388
  }
3389
  /**
3390
  * Retrieves the list of network resources available to the specified project.
@@ -3402,13 +3402,13 @@ class Google_Service_Compute_Networks_Resource extends Google_Service_Resource
3402
  * @opt_param string maxResults
3403
  * Optional. Maximum count of results to be returned. Maximum value is 500 and default value is
3404
  * 500.
3405
- * @return Google_Service_Compute_NetworkList
3406
  */
3407
  public function listNetworks($project, $optParams = array())
3408
  {
3409
  $params = array('project' => $project);
3410
  $params = array_merge($params, $optParams);
3411
- return $this->call('list', array($params), "Google_Service_Compute_NetworkList");
3412
  }
3413
  }
3414
 
@@ -3416,11 +3416,11 @@ class Google_Service_Compute_Networks_Resource extends Google_Service_Resource
3416
  * The "projects" collection of methods.
3417
  * Typical usage is:
3418
  * <code>
3419
- * $computeService = new Google_Service_Compute(...);
3420
  * $projects = $computeService->projects;
3421
  * </code>
3422
  */
3423
- class Google_Service_Compute_Projects_Resource extends Google_Service_Resource
3424
  {
3425
 
3426
  /**
@@ -3429,13 +3429,13 @@ class Google_Service_Compute_Projects_Resource extends Google_Service_Resource
3429
  * @param string $project
3430
  * Name of the project resource to retrieve.
3431
  * @param array $optParams Optional parameters.
3432
- * @return Google_Service_Compute_Project
3433
  */
3434
  public function get($project, $optParams = array())
3435
  {
3436
  $params = array('project' => $project);
3437
  $params = array_merge($params, $optParams);
3438
- return $this->call('get', array($params), "Google_Service_Compute_Project");
3439
  }
3440
  /**
3441
  * Sets metadata common to all instances within the specified project using the
@@ -3443,15 +3443,15 @@ class Google_Service_Compute_Projects_Resource extends Google_Service_Resource
3443
  *
3444
  * @param string $project
3445
  * Name of the project scoping this request.
3446
- * @param Google_Metadata $postBody
3447
  * @param array $optParams Optional parameters.
3448
- * @return Google_Service_Compute_Operation
3449
  */
3450
- public function setCommonInstanceMetadata($project, Google_Service_Compute_Metadata $postBody, $optParams = array())
3451
  {
3452
  $params = array('project' => $project, 'postBody' => $postBody);
3453
  $params = array_merge($params, $optParams);
3454
- return $this->call('setCommonInstanceMetadata', array($params), "Google_Service_Compute_Operation");
3455
  }
3456
  }
3457
 
@@ -3459,11 +3459,11 @@ class Google_Service_Compute_Projects_Resource extends Google_Service_Resource
3459
  * The "regionOperations" collection of methods.
3460
  * Typical usage is:
3461
  * <code>
3462
- * $computeService = new Google_Service_Compute(...);
3463
  * $regionOperations = $computeService->regionOperations;
3464
  * </code>
3465
  */
3466
- class Google_Service_Compute_RegionOperations_Resource extends Google_Service_Resource
3467
  {
3468
 
3469
  /**
@@ -3495,13 +3495,13 @@ class Google_Service_Compute_RegionOperations_Resource extends Google_Service_Re
3495
  * @param string $operation
3496
  * Name of the operation resource to return.
3497
  * @param array $optParams Optional parameters.
3498
- * @return Google_Service_Compute_Operation
3499
  */
3500
  public function get($project, $region, $operation, $optParams = array())
3501
  {
3502
  $params = array('project' => $project, 'region' => $region, 'operation' => $operation);
3503
  $params = array_merge($params, $optParams);
3504
- return $this->call('get', array($params), "Google_Service_Compute_Operation");
3505
  }
3506
  /**
3507
  * Retrieves the list of operation resources contained within the specified
@@ -3521,13 +3521,13 @@ class Google_Service_Compute_RegionOperations_Resource extends Google_Service_Re
3521
  * @opt_param string maxResults
3522
  * Optional. Maximum count of results to be returned. Maximum value is 500 and default value is
3523
  * 500.
3524
- * @return Google_Service_Compute_OperationList
3525
  */
3526
  public function listRegionOperations($project, $region, $optParams = array())
3527
  {
3528
  $params = array('project' => $project, 'region' => $region);
3529
  $params = array_merge($params, $optParams);
3530
- return $this->call('list', array($params), "Google_Service_Compute_OperationList");
3531
  }
3532
  }
3533
 
@@ -3535,11 +3535,11 @@ class Google_Service_Compute_RegionOperations_Resource extends Google_Service_Re
3535
  * The "regions" collection of methods.
3536
  * Typical usage is:
3537
  * <code>
3538
- * $computeService = new Google_Service_Compute(...);
3539
  * $regions = $computeService->regions;
3540
  * </code>
3541
  */
3542
- class Google_Service_Compute_Regions_Resource extends Google_Service_Resource
3543
  {
3544
 
3545
  /**
@@ -3550,13 +3550,13 @@ class Google_Service_Compute_Regions_Resource extends Google_Service_Resource
3550
  * @param string $region
3551
  * Name of the region resource to return.
3552
  * @param array $optParams Optional parameters.
3553
- * @return Google_Service_Compute_Region
3554
  */
3555
  public function get($project, $region, $optParams = array())
3556
  {
3557
  $params = array('project' => $project, 'region' => $region);
3558
  $params = array_merge($params, $optParams);
3559
- return $this->call('get', array($params), "Google_Service_Compute_Region");
3560
  }
3561
  /**
3562
  * Retrieves the list of region resources available to the specified project.
@@ -3574,13 +3574,13 @@ class Google_Service_Compute_Regions_Resource extends Google_Service_Resource
3574
  * @opt_param string maxResults
3575
  * Optional. Maximum count of results to be returned. Maximum value is 500 and default value is
3576
  * 500.
3577
- * @return Google_Service_Compute_RegionList
3578
  */
3579
  public function listRegions($project, $optParams = array())
3580
  {
3581
  $params = array('project' => $project);
3582
  $params = array_merge($params, $optParams);
3583
- return $this->call('list', array($params), "Google_Service_Compute_RegionList");
3584
  }
3585
  }
3586
 
@@ -3588,11 +3588,11 @@ class Google_Service_Compute_Regions_Resource extends Google_Service_Resource
3588
  * The "routes" collection of methods.
3589
  * Typical usage is:
3590
  * <code>
3591
- * $computeService = new Google_Service_Compute(...);
3592
  * $routes = $computeService->routes;
3593
  * </code>
3594
  */
3595
- class Google_Service_Compute_Routes_Resource extends Google_Service_Resource
3596
  {
3597
 
3598
  /**
@@ -3603,13 +3603,13 @@ class Google_Service_Compute_Routes_Resource extends Google_Service_Resource
3603
  * @param string $route
3604
  * Name of the route resource to delete.
3605
  * @param array $optParams Optional parameters.
3606
- * @return Google_Service_Compute_Operation
3607
  */
3608
  public function delete($project, $route, $optParams = array())
3609
  {
3610
  $params = array('project' => $project, 'route' => $route);
3611
  $params = array_merge($params, $optParams);
3612
- return $this->call('delete', array($params), "Google_Service_Compute_Operation");
3613
  }
3614
  /**
3615
  * Returns the specified route resource. (routes.get)
@@ -3619,13 +3619,13 @@ class Google_Service_Compute_Routes_Resource extends Google_Service_Resource
3619
  * @param string $route
3620
  * Name of the route resource to return.
3621
  * @param array $optParams Optional parameters.
3622
- * @return Google_Service_Compute_Route
3623
  */
3624
  public function get($project, $route, $optParams = array())
3625
  {
3626
  $params = array('project' => $project, 'route' => $route);
3627
  $params = array_merge($params, $optParams);
3628
- return $this->call('get', array($params), "Google_Service_Compute_Route");
3629
  }
3630
  /**
3631
  * Creates a route resource in the specified project using the data included in
@@ -3633,15 +3633,15 @@ class Google_Service_Compute_Routes_Resource extends Google_Service_Resource
3633
  *
3634
  * @param string $project
3635
  * Name of the project scoping this request.
3636
- * @param Google_Route $postBody
3637
  * @param array $optParams Optional parameters.
3638
- * @return Google_Service_Compute_Operation
3639
  */
3640
- public function insert($project, Google_Service_Compute_Route $postBody, $optParams = array())
3641
  {
3642
  $params = array('project' => $project, 'postBody' => $postBody);
3643
  $params = array_merge($params, $optParams);
3644
- return $this->call('insert', array($params), "Google_Service_Compute_Operation");
3645
  }
3646
  /**
3647
  * Retrieves the list of route resources available to the specified project.
@@ -3659,13 +3659,13 @@ class Google_Service_Compute_Routes_Resource extends Google_Service_Resource
3659
  * @opt_param string maxResults
3660
  * Optional. Maximum count of results to be returned. Maximum value is 500 and default value is
3661
  * 500.
3662
- * @return Google_Service_Compute_RouteList
3663
  */
3664
  public function listRoutes($project, $optParams = array())
3665
  {
3666
  $params = array('project' => $project);
3667
  $params = array_merge($params, $optParams);
3668
- return $this->call('list', array($params), "Google_Service_Compute_RouteList");
3669
  }
3670
  }
3671
 
@@ -3673,11 +3673,11 @@ class Google_Service_Compute_Routes_Resource extends Google_Service_Resource
3673
  * The "snapshots" collection of methods.
3674
  * Typical usage is:
3675
  * <code>
3676
- * $computeService = new Google_Service_Compute(...);
3677
  * $snapshots = $computeService->snapshots;
3678
  * </code>
3679
  */
3680
- class Google_Service_Compute_Snapshots_Resource extends Google_Service_Resource
3681
  {
3682
 
3683
  /**
@@ -3688,13 +3688,13 @@ class Google_Service_Compute_Snapshots_Resource extends Google_Service_Resource
3688
  * @param string $snapshot
3689
  * Name of the persistent disk snapshot resource to delete.
3690
  * @param array $optParams Optional parameters.
3691
- * @return Google_Service_Compute_Operation
3692
  */
3693
  public function delete($project, $snapshot, $optParams = array())
3694
  {
3695
  $params = array('project' => $project, 'snapshot' => $snapshot);
3696
  $params = array_merge($params, $optParams);
3697
- return $this->call('delete', array($params), "Google_Service_Compute_Operation");
3698
  }
3699
  /**
3700
  * Returns the specified persistent disk snapshot resource. (snapshots.get)
@@ -3704,13 +3704,13 @@ class Google_Service_Compute_Snapshots_Resource extends Google_Service_Resource
3704
  * @param string $snapshot
3705
  * Name of the persistent disk snapshot resource to return.
3706
  * @param array $optParams Optional parameters.
3707
- * @return Google_Service_Compute_Snapshot
3708
  */
3709
  public function get($project, $snapshot, $optParams = array())
3710
  {
3711
  $params = array('project' => $project, 'snapshot' => $snapshot);
3712
  $params = array_merge($params, $optParams);
3713
- return $this->call('get', array($params), "Google_Service_Compute_Snapshot");
3714
  }
3715
  /**
3716
  * Retrieves the list of persistent disk snapshot resources contained within the
@@ -3728,13 +3728,13 @@ class Google_Service_Compute_Snapshots_Resource extends Google_Service_Resource
3728
  * @opt_param string maxResults
3729
  * Optional. Maximum count of results to be returned. Maximum value is 500 and default value is
3730
  * 500.
3731
- * @return Google_Service_Compute_SnapshotList
3732
  */
3733
  public function listSnapshots($project, $optParams = array())
3734
  {
3735
  $params = array('project' => $project);
3736
  $params = array_merge($params, $optParams);
3737
- return $this->call('list', array($params), "Google_Service_Compute_SnapshotList");
3738
  }
3739
  }
3740
 
@@ -3742,11 +3742,11 @@ class Google_Service_Compute_Snapshots_Resource extends Google_Service_Resource
3742
  * The "targetInstances" collection of methods.
3743
  * Typical usage is:
3744
  * <code>
3745
- * $computeService = new Google_Service_Compute(...);
3746
  * $targetInstances = $computeService->targetInstances;
3747
  * </code>
3748
  */
3749
- class Google_Service_Compute_TargetInstances_Resource extends Google_Service_Resource
3750
  {
3751
 
3752
  /**
@@ -3765,13 +3765,13 @@ class Google_Service_Compute_TargetInstances_Resource extends Google_Service_Res
3765
  * @opt_param string maxResults
3766
  * Optional. Maximum count of results to be returned. Maximum value is 500 and default value is
3767
  * 500.
3768
- * @return Google_Service_Compute_TargetInstanceAggregatedList
3769
  */
3770
  public function aggregatedList($project, $optParams = array())
3771
  {
3772
  $params = array('project' => $project);
3773
  $params = array_merge($params, $optParams);
3774
- return $this->call('aggregatedList', array($params), "Google_Service_Compute_TargetInstanceAggregatedList");
3775
  }
3776
  /**
3777
  * Deletes the specified TargetInstance resource. (targetInstances.delete)
@@ -3783,13 +3783,13 @@ class Google_Service_Compute_TargetInstances_Resource extends Google_Service_Res
3783
  * @param string $targetInstance
3784
  * Name of the TargetInstance resource to delete.
3785
  * @param array $optParams Optional parameters.
3786
- * @return Google_Service_Compute_Operation
3787
  */
3788
  public function delete($project, $zone, $targetInstance, $optParams = array())
3789
  {
3790
  $params = array('project' => $project, 'zone' => $zone, 'targetInstance' => $targetInstance);
3791
  $params = array_merge($params, $optParams);
3792
- return $this->call('delete', array($params), "Google_Service_Compute_Operation");
3793
  }
3794
  /**
3795
  * Returns the specified TargetInstance resource. (targetInstances.get)
@@ -3801,13 +3801,13 @@ class Google_Service_Compute_TargetInstances_Resource extends Google_Service_Res
3801
  * @param string $targetInstance
3802
  * Name of the TargetInstance resource to return.
3803
  * @param array $optParams Optional parameters.
3804
- * @return Google_Service_Compute_TargetInstance
3805
  */
3806
  public function get($project, $zone, $targetInstance, $optParams = array())
3807
  {
3808
  $params = array('project' => $project, 'zone' => $zone, 'targetInstance' => $targetInstance);
3809
  $params = array_merge($params, $optParams);
3810
- return $this->call('get', array($params), "Google_Service_Compute_TargetInstance");
3811
  }
3812
  /**
3813
  * Creates a TargetInstance resource in the specified project and zone using the
@@ -3817,15 +3817,15 @@ class Google_Service_Compute_TargetInstances_Resource extends Google_Service_Res
3817
  * Name of the project scoping this request.
3818
  * @param string $zone
3819
  * Name of the zone scoping this request.
3820
- * @param Google_TargetInstance $postBody
3821
  * @param array $optParams Optional parameters.
3822
- * @return Google_Service_Compute_Operation
3823
  */
3824
- public function insert($project, $zone, Google_Service_Compute_TargetInstance $postBody, $optParams = array())
3825
  {
3826
  $params = array('project' => $project, 'zone' => $zone, 'postBody' => $postBody);
3827
  $params = array_merge($params, $optParams);
3828
- return $this->call('insert', array($params), "Google_Service_Compute_Operation");
3829
  }
3830
  /**
3831
  * Retrieves the list of TargetInstance resources available to the specified
@@ -3845,13 +3845,13 @@ class Google_Service_Compute_TargetInstances_Resource extends Google_Service_Res
3845
  * @opt_param string maxResults
3846
  * Optional. Maximum count of results to be returned. Maximum value is 500 and default value is
3847
  * 500.
3848
- * @return Google_Service_Compute_TargetInstanceList
3849
  */
3850
  public function listTargetInstances($project, $zone, $optParams = array())
3851
  {
3852
  $params = array('project' => $project, 'zone' => $zone);
3853
  $params = array_merge($params, $optParams);
3854
- return $this->call('list', array($params), "Google_Service_Compute_TargetInstanceList");
3855
  }
3856
  }
3857
 
@@ -3859,11 +3859,11 @@ class Google_Service_Compute_TargetInstances_Resource extends Google_Service_Res
3859
  * The "targetPools" collection of methods.
3860
  * Typical usage is:
3861
  * <code>
3862
- * $computeService = new Google_Service_Compute(...);
3863
  * $targetPools = $computeService->targetPools;
3864
  * </code>
3865
  */
3866
- class Google_Service_Compute_TargetPools_Resource extends Google_Service_Resource
3867
  {
3868
 
3869
  /**
@@ -3875,15 +3875,15 @@ class Google_Service_Compute_TargetPools_Resource extends Google_Service_Resourc
3875
  * Name of the region scoping this request.
3876
  * @param string $targetPool
3877
  * Name of the TargetPool resource to which health_check_url is to be added.
3878
- * @param Google_TargetPoolsAddHealthCheckRequest $postBody
3879
  * @param array $optParams Optional parameters.
3880
- * @return Google_Service_Compute_Operation
3881
  */
3882
- public function addHealthCheck($project, $region, $targetPool, Google_Service_Compute_TargetPoolsAddHealthCheckRequest $postBody, $optParams = array())
3883
  {
3884
  $params = array('project' => $project, 'region' => $region, 'targetPool' => $targetPool, 'postBody' => $postBody);
3885
  $params = array_merge($params, $optParams);
3886
- return $this->call('addHealthCheck', array($params), "Google_Service_Compute_Operation");
3887
  }
3888
  /**
3889
  * Adds instance url to targetPool. (targetPools.addInstance)
@@ -3894,15 +3894,15 @@ class Google_Service_Compute_TargetPools_Resource extends Google_Service_Resourc
3894
  * Name of the region scoping this request.
3895
  * @param string $targetPool
3896
  * Name of the TargetPool resource to which instance_url is to be added.
3897
- * @param Google_TargetPoolsAddInstanceRequest $postBody
3898
  * @param array $optParams Optional parameters.
3899
- * @return Google_Service_Compute_Operation
3900
  */
3901
- public function addInstance($project, $region, $targetPool, Google_Service_Compute_TargetPoolsAddInstanceRequest $postBody, $optParams = array())
3902
  {
3903
  $params = array('project' => $project, 'region' => $region, 'targetPool' => $targetPool, 'postBody' => $postBody);
3904
  $params = array_merge($params, $optParams);
3905
- return $this->call('addInstance', array($params), "Google_Service_Compute_Operation");
3906
  }
3907
  /**
3908
  * Retrieves the list of target pools grouped by scope.
@@ -3920,13 +3920,13 @@ class Google_Service_Compute_TargetPools_Resource extends Google_Service_Resourc
3920
  * @opt_param string maxResults
3921
  * Optional. Maximum count of results to be returned. Maximum value is 500 and default value is
3922
  * 500.
3923
- * @return Google_Service_Compute_TargetPoolAggregatedList
3924
  */
3925
  public function aggregatedList($project, $optParams = array())
3926
  {
3927
  $params = array('project' => $project);
3928
  $params = array_merge($params, $optParams);
3929
- return $this->call('aggregatedList', array($params), "Google_Service_Compute_TargetPoolAggregatedList");
3930
  }
3931
  /**
3932
  * Deletes the specified TargetPool resource. (targetPools.delete)
@@ -3938,13 +3938,13 @@ class Google_Service_Compute_TargetPools_Resource extends Google_Service_Resourc
3938
  * @param string $targetPool
3939
  * Name of the TargetPool resource to delete.
3940
  * @param array $optParams Optional parameters.
3941
- * @return Google_Service_Compute_Operation
3942
  */
3943
  public function delete($project, $region, $targetPool, $optParams = array())
3944
  {
3945
  $params = array('project' => $project, 'region' => $region, 'targetPool' => $targetPool);
3946
  $params = array_merge($params, $optParams);
3947
- return $this->call('delete', array($params), "Google_Service_Compute_Operation");
3948
  }
3949
  /**
3950
  * Returns the specified TargetPool resource. (targetPools.get)
@@ -3956,13 +3956,13 @@ class Google_Service_Compute_TargetPools_Resource extends Google_Service_Resourc
3956
  * @param string $targetPool
3957
  * Name of the TargetPool resource to return.
3958
  * @param array $optParams Optional parameters.
3959
- * @return Google_Service_Compute_TargetPool
3960
  */
3961
  public function get($project, $region, $targetPool, $optParams = array())
3962
  {
3963
  $params = array('project' => $project, 'region' => $region, 'targetPool' => $targetPool);
3964
  $params = array_merge($params, $optParams);
3965
- return $this->call('get', array($params), "Google_Service_Compute_TargetPool");
3966
  }
3967
  /**
3968
  * Gets the most recent health check results for each IP for the given instance
@@ -3974,15 +3974,15 @@ class Google_Service_Compute_TargetPools_Resource extends Google_Service_Resourc
3974
  * Name of the region scoping this request.
3975
  * @param string $targetPool
3976
  * Name of the TargetPool resource to which the queried instance belongs.
3977
- * @param Google_InstanceReference $postBody
3978
  * @param array $optParams Optional parameters.
3979
- * @return Google_Service_Compute_TargetPoolInstanceHealth
3980
  */
3981
- public function getHealth($project, $region, $targetPool, Google_Service_Compute_InstanceReference $postBody, $optParams = array())
3982
  {
3983
  $params = array('project' => $project, 'region' => $region, 'targetPool' => $targetPool, 'postBody' => $postBody);
3984
  $params = array_merge($params, $optParams);
3985
- return $this->call('getHealth', array($params), "Google_Service_Compute_TargetPoolInstanceHealth");
3986
  }
3987
  /**
3988
  * Creates a TargetPool resource in the specified project and region using the
@@ -3992,15 +3992,15 @@ class Google_Service_Compute_TargetPools_Resource extends Google_Service_Resourc
3992
  * Name of the project scoping this request.
3993
  * @param string $region
3994
  * Name of the region scoping this request.
3995
- * @param Google_TargetPool $postBody
3996
  * @param array $optParams Optional parameters.
3997
- * @return Google_Service_Compute_Operation
3998
  */
3999
- public function insert($project, $region, Google_Service_Compute_TargetPool $postBody, $optParams = array())
4000
  {
4001
  $params = array('project' => $project, 'region' => $region, 'postBody' => $postBody);
4002
  $params = array_merge($params, $optParams);
4003
- return $this->call('insert', array($params), "Google_Service_Compute_Operation");
4004
  }
4005
  /**
4006
  * Retrieves the list of TargetPool resources available to the specified project
@@ -4020,13 +4020,13 @@ class Google_Service_Compute_TargetPools_Resource extends Google_Service_Resourc
4020
  * @opt_param string maxResults
4021
  * Optional. Maximum count of results to be returned. Maximum value is 500 and default value is
4022
  * 500.
4023
- * @return Google_Service_Compute_TargetPoolList
4024
  */
4025
  public function listTargetPools($project, $region, $optParams = array())
4026
  {
4027
  $params = array('project' => $project, 'region' => $region);
4028
  $params = array_merge($params, $optParams);
4029
- return $this->call('list', array($params), "Google_Service_Compute_TargetPoolList");
4030
  }
4031
  /**
4032
  * Removes health check URL from targetPool. (targetPools.removeHealthCheck)
@@ -4037,15 +4037,15 @@ class Google_Service_Compute_TargetPools_Resource extends Google_Service_Resourc
4037
  * Name of the region scoping this request.
4038
  * @param string $targetPool
4039
  * Name of the TargetPool resource to which health_check_url is to be removed.
4040
- * @param Google_TargetPoolsRemoveHealthCheckRequest $postBody
4041
  * @param array $optParams Optional parameters.
4042
- * @return Google_Service_Compute_Operation
4043
  */
4044
- public function removeHealthCheck($project, $region, $targetPool, Google_Service_Compute_TargetPoolsRemoveHealthCheckRequest $postBody, $optParams = array())
4045
  {
4046
  $params = array('project' => $project, 'region' => $region, 'targetPool' => $targetPool, 'postBody' => $postBody);
4047
  $params = array_merge($params, $optParams);
4048
- return $this->call('removeHealthCheck', array($params), "Google_Service_Compute_Operation");
4049
  }
4050
  /**
4051
  * Removes instance URL from targetPool. (targetPools.removeInstance)
@@ -4056,15 +4056,15 @@ class Google_Service_Compute_TargetPools_Resource extends Google_Service_Resourc
4056
  * Name of the region scoping this request.
4057
  * @param string $targetPool
4058
  * Name of the TargetPool resource to which instance_url is to be removed.
4059
- * @param Google_TargetPoolsRemoveInstanceRequest $postBody
4060
  * @param array $optParams Optional parameters.
4061
- * @return Google_Service_Compute_Operation
4062
  */
4063
- public function removeInstance($project, $region, $targetPool, Google_Service_Compute_TargetPoolsRemoveInstanceRequest $postBody, $optParams = array())
4064
  {
4065
  $params = array('project' => $project, 'region' => $region, 'targetPool' => $targetPool, 'postBody' => $postBody);
4066
  $params = array_merge($params, $optParams);
4067
- return $this->call('removeInstance', array($params), "Google_Service_Compute_Operation");
4068
  }
4069
  /**
4070
  * Changes backup pool configurations. (targetPools.setBackup)
@@ -4075,18 +4075,18 @@ class Google_Service_Compute_TargetPools_Resource extends Google_Service_Resourc
4075
  * Name of the region scoping this request.
4076
  * @param string $targetPool
4077
  * Name of the TargetPool resource for which the backup is to be set.
4078
- * @param Google_TargetReference $postBody
4079
  * @param array $optParams Optional parameters.
4080
  *
4081
  * @opt_param float failoverRatio
4082
  * New failoverRatio value for the containing target pool.
4083
- * @return Google_Service_Compute_Operation
4084
  */
4085
- public function setBackup($project, $region, $targetPool, Google_Service_Compute_TargetReference $postBody, $optParams = array())
4086
  {
4087
  $params = array('project' => $project, 'region' => $region, 'targetPool' => $targetPool, 'postBody' => $postBody);
4088
  $params = array_merge($params, $optParams);
4089
- return $this->call('setBackup', array($params), "Google_Service_Compute_Operation");
4090
  }
4091
  }
4092
 
@@ -4094,11 +4094,11 @@ class Google_Service_Compute_TargetPools_Resource extends Google_Service_Resourc
4094
  * The "zoneOperations" collection of methods.
4095
  * Typical usage is:
4096
  * <code>
4097
- * $computeService = new Google_Service_Compute(...);
4098
  * $zoneOperations = $computeService->zoneOperations;
4099
  * </code>
4100
  */
4101
- class Google_Service_Compute_ZoneOperations_Resource extends Google_Service_Resource
4102
  {
4103
 
4104
  /**
@@ -4130,13 +4130,13 @@ class Google_Service_Compute_ZoneOperations_Resource extends Google_Service_Reso
4130
  * @param string $operation
4131
  * Name of the operation resource to return.
4132
  * @param array $optParams Optional parameters.
4133
- * @return Google_Service_Compute_Operation
4134
  */
4135
  public function get($project, $zone, $operation, $optParams = array())
4136
  {
4137
  $params = array('project' => $project, 'zone' => $zone, 'operation' => $operation);
4138
  $params = array_merge($params, $optParams);
4139
- return $this->call('get', array($params), "Google_Service_Compute_Operation");
4140
  }
4141
  /**
4142
  * Retrieves the list of operation resources contained within the specified
@@ -4156,13 +4156,13 @@ class Google_Service_Compute_ZoneOperations_Resource extends Google_Service_Reso
4156
  * @opt_param string maxResults
4157
  * Optional. Maximum count of results to be returned. Maximum value is 500 and default value is
4158
  * 500.
4159
- * @return Google_Service_Compute_OperationList
4160
  */
4161
  public function listZoneOperations($project, $zone, $optParams = array())
4162
  {
4163
  $params = array('project' => $project, 'zone' => $zone);
4164
  $params = array_merge($params, $optParams);
4165
- return $this->call('list', array($params), "Google_Service_Compute_OperationList");
4166
  }
4167
  }
4168
 
@@ -4170,11 +4170,11 @@ class Google_Service_Compute_ZoneOperations_Resource extends Google_Service_Reso
4170
  * The "zones" collection of methods.
4171
  * Typical usage is:
4172
  * <code>
4173
- * $computeService = new Google_Service_Compute(...);
4174
  * $zones = $computeService->zones;
4175
  * </code>
4176
  */
4177
- class Google_Service_Compute_Zones_Resource extends Google_Service_Resource
4178
  {
4179
 
4180
  /**
@@ -4185,13 +4185,13 @@ class Google_Service_Compute_Zones_Resource extends Google_Service_Resource
4185
  * @param string $zone
4186
  * Name of the zone resource to return.
4187
  * @param array $optParams Optional parameters.
4188
- * @return Google_Service_Compute_Zone
4189
  */
4190
  public function get($project, $zone, $optParams = array())
4191
  {
4192
  $params = array('project' => $project, 'zone' => $zone);
4193
  $params = array_merge($params, $optParams);
4194
- return $this->call('get', array($params), "Google_Service_Compute_Zone");
4195
  }
4196
  /**
4197
  * Retrieves the list of zone resources available to the specified project.
@@ -4209,20 +4209,20 @@ class Google_Service_Compute_Zones_Resource extends Google_Service_Resource
4209
  * @opt_param string maxResults
4210
  * Optional. Maximum count of results to be returned. Maximum value is 500 and default value is
4211
  * 500.
4212
- * @return Google_Service_Compute_ZoneList
4213
  */
4214
  public function listZones($project, $optParams = array())
4215
  {
4216
  $params = array('project' => $project);
4217
  $params = array_merge($params, $optParams);
4218
- return $this->call('list', array($params), "Google_Service_Compute_ZoneList");
4219
  }
4220
  }
4221
 
4222
 
4223
 
4224
 
4225
- class Google_Service_Compute_AccessConfig extends Google_Model
4226
  {
4227
  public $kind;
4228
  public $name;
@@ -4270,7 +4270,7 @@ class Google_Service_Compute_AccessConfig extends Google_Model
4270
  }
4271
  }
4272
 
4273
- class Google_Service_Compute_Address extends Google_Collection
4274
  {
4275
  public $address;
4276
  public $creationTimestamp;
@@ -4384,10 +4384,10 @@ class Google_Service_Compute_Address extends Google_Collection
4384
  }
4385
  }
4386
 
4387
- class Google_Service_Compute_AddressAggregatedList extends Google_Model
4388
  {
4389
  public $id;
4390
- protected $itemsType = 'Google_Service_Compute_AddressesScopedList';
4391
  protected $itemsDataType = 'map';
4392
  public $kind;
4393
  public $nextPageToken;
@@ -4444,10 +4444,10 @@ class Google_Service_Compute_AddressAggregatedList extends Google_Model
4444
  }
4445
  }
4446
 
4447
- class Google_Service_Compute_AddressList extends Google_Collection
4448
  {
4449
  public $id;
4450
- protected $itemsType = 'Google_Service_Compute_Address';
4451
  protected $itemsDataType = 'array';
4452
  public $kind;
4453
  public $nextPageToken;
@@ -4504,11 +4504,11 @@ class Google_Service_Compute_AddressList extends Google_Collection
4504
  }
4505
  }
4506
 
4507
- class Google_Service_Compute_AddressesScopedList extends Google_Collection
4508
  {
4509
- protected $addressesType = 'Google_Service_Compute_Address';
4510
  protected $addressesDataType = 'array';
4511
- protected $warningType = 'Google_Service_Compute_AddressesScopedListWarning';
4512
  protected $warningDataType = '';
4513
 
4514
  public function setAddresses($addresses)
@@ -4521,7 +4521,7 @@ class Google_Service_Compute_AddressesScopedList extends Google_Collection
4521
  return $this->addresses;
4522
  }
4523
 
4524
- public function setWarning(Google_Service_Compute_AddressesScopedListWarning $warning)
4525
  {
4526
  $this->warning = $warning;
4527
  }
@@ -4532,10 +4532,10 @@ class Google_Service_Compute_AddressesScopedList extends Google_Collection
4532
  }
4533
  }
4534
 
4535
- class Google_Service_Compute_AddressesScopedListWarning extends Google_Collection
4536
  {
4537
  public $code;
4538
- protected $dataType = 'Google_Service_Compute_AddressesScopedListWarningData';
4539
  protected $dataDataType = 'array';
4540
  public $message;
4541
 
@@ -4570,7 +4570,7 @@ class Google_Service_Compute_AddressesScopedListWarning extends Google_Collectio
4570
  }
4571
  }
4572
 
4573
- class Google_Service_Compute_AddressesScopedListWarningData extends Google_Model
4574
  {
4575
  public $key;
4576
  public $value;
@@ -4596,13 +4596,13 @@ class Google_Service_Compute_AddressesScopedListWarningData extends Google_Model
4596
  }
4597
  }
4598
 
4599
- class Google_Service_Compute_AttachedDisk extends Google_Model
4600
  {
4601
  public $autoDelete;
4602
  public $boot;
4603
  public $deviceName;
4604
  public $index;
4605
- protected $initializeParamsType = 'Google_Service_Compute_AttachedDiskInitializeParams';
4606
  protected $initializeParamsDataType = '';
4607
  public $kind;
4608
  public $mode;
@@ -4649,7 +4649,7 @@ class Google_Service_Compute_AttachedDisk extends Google_Model
4649
  return $this->index;
4650
  }
4651
 
4652
- public function setInitializeParams(Google_Service_Compute_AttachedDiskInitializeParams $initializeParams)
4653
  {
4654
  $this->initializeParams = $initializeParams;
4655
  }
@@ -4700,7 +4700,7 @@ class Google_Service_Compute_AttachedDisk extends Google_Model
4700
  }
4701
  }
4702
 
4703
- class Google_Service_Compute_AttachedDiskInitializeParams extends Google_Model
4704
  {
4705
  public $diskName;
4706
  public $diskSizeGb;
@@ -4737,7 +4737,7 @@ class Google_Service_Compute_AttachedDiskInitializeParams extends Google_Model
4737
  }
4738
  }
4739
 
4740
- class Google_Service_Compute_DeprecationStatus extends Google_Model
4741
  {
4742
  public $deleted;
4743
  public $deprecated;
@@ -4796,7 +4796,7 @@ class Google_Service_Compute_DeprecationStatus extends Google_Model
4796
  }
4797
  }
4798
 
4799
- class Google_Service_Compute_Disk extends Google_Model
4800
  {
4801
  public $creationTimestamp;
4802
  public $description;
@@ -4954,10 +4954,10 @@ class Google_Service_Compute_Disk extends Google_Model
4954
  }
4955
  }
4956
 
4957
- class Google_Service_Compute_DiskAggregatedList extends Google_Model
4958
  {
4959
  public $id;
4960
- protected $itemsType = 'Google_Service_Compute_DisksScopedList';
4961
  protected $itemsDataType = 'map';
4962
  public $kind;
4963
  public $nextPageToken;
@@ -5014,10 +5014,10 @@ class Google_Service_Compute_DiskAggregatedList extends Google_Model
5014
  }
5015
  }
5016
 
5017
- class Google_Service_Compute_DiskList extends Google_Collection
5018
  {
5019
  public $id;
5020
- protected $itemsType = 'Google_Service_Compute_Disk';
5021
  protected $itemsDataType = 'array';
5022
  public $kind;
5023
  public $nextPageToken;
@@ -5074,11 +5074,11 @@ class Google_Service_Compute_DiskList extends Google_Collection
5074
  }
5075
  }
5076
 
5077
- class Google_Service_Compute_DisksScopedList extends Google_Collection
5078
  {
5079
- protected $disksType = 'Google_Service_Compute_Disk';
5080
  protected $disksDataType = 'array';
5081
- protected $warningType = 'Google_Service_Compute_DisksScopedListWarning';
5082
  protected $warningDataType = '';
5083
 
5084
  public function setDisks($disks)
@@ -5091,7 +5091,7 @@ class Google_Service_Compute_DisksScopedList extends Google_Collection
5091
  return $this->disks;
5092
  }
5093
 
5094
- public function setWarning(Google_Service_Compute_DisksScopedListWarning $warning)
5095
  {
5096
  $this->warning = $warning;
5097
  }
@@ -5102,10 +5102,10 @@ class Google_Service_Compute_DisksScopedList extends Google_Collection
5102
  }
5103
  }
5104
 
5105
- class Google_Service_Compute_DisksScopedListWarning extends Google_Collection
5106
  {
5107
  public $code;
5108
- protected $dataType = 'Google_Service_Compute_DisksScopedListWarningData';
5109
  protected $dataDataType = 'array';
5110
  public $message;
5111
 
@@ -5140,7 +5140,7 @@ class Google_Service_Compute_DisksScopedListWarning extends Google_Collection
5140
  }
5141
  }
5142
 
5143
- class Google_Service_Compute_DisksScopedListWarningData extends Google_Model
5144
  {
5145
  public $key;
5146
  public $value;
@@ -5166,9 +5166,9 @@ class Google_Service_Compute_DisksScopedListWarningData extends Google_Model
5166
  }
5167
  }
5168
 
5169
- class Google_Service_Compute_Firewall extends Google_Collection
5170
  {
5171
- protected $allowedType = 'Google_Service_Compute_FirewallAllowed';
5172
  protected $allowedDataType = 'array';
5173
  public $creationTimestamp;
5174
  public $description;
@@ -5292,7 +5292,7 @@ class Google_Service_Compute_Firewall extends Google_Collection
5292
  }
5293
  }
5294
 
5295
- class Google_Service_Compute_FirewallAllowed extends Google_Collection
5296
  {
5297
  public $iPProtocol;
5298
  public $ports;
@@ -5318,10 +5318,10 @@ class Google_Service_Compute_FirewallAllowed extends Google_Collection
5318
  }
5319
  }
5320
 
5321
- class Google_Service_Compute_FirewallList extends Google_Collection
5322
  {
5323
  public $id;
5324
- protected $itemsType = 'Google_Service_Compute_Firewall';
5325
  protected $itemsDataType = 'array';
5326
  public $kind;
5327
  public $nextPageToken;
@@ -5378,7 +5378,7 @@ class Google_Service_Compute_FirewallList extends Google_Collection
5378
  }
5379
  }
5380
 
5381
- class Google_Service_Compute_ForwardingRule extends Google_Model
5382
  {
5383
  public $iPAddress;
5384
  public $iPProtocol;
@@ -5503,10 +5503,10 @@ class Google_Service_Compute_ForwardingRule extends Google_Model
5503
  }
5504
  }
5505
 
5506
- class Google_Service_Compute_ForwardingRuleAggregatedList extends Google_Model
5507
  {
5508
  public $id;
5509
- protected $itemsType = 'Google_Service_Compute_ForwardingRulesScopedList';
5510
  protected $itemsDataType = 'map';
5511
  public $kind;
5512
  public $nextPageToken;
@@ -5563,10 +5563,10 @@ class Google_Service_Compute_ForwardingRuleAggregatedList extends Google_Model
5563
  }
5564
  }
5565
 
5566
- class Google_Service_Compute_ForwardingRuleList extends Google_Collection
5567
  {
5568
  public $id;
5569
- protected $itemsType = 'Google_Service_Compute_ForwardingRule';
5570
  protected $itemsDataType = 'array';
5571
  public $kind;
5572
  public $nextPageToken;
@@ -5623,11 +5623,11 @@ class Google_Service_Compute_ForwardingRuleList extends Google_Collection
5623
  }
5624
  }
5625
 
5626
- class Google_Service_Compute_ForwardingRulesScopedList extends Google_Collection
5627
  {
5628
- protected $forwardingRulesType = 'Google_Service_Compute_ForwardingRule';
5629
  protected $forwardingRulesDataType = 'array';
5630
- protected $warningType = 'Google_Service_Compute_ForwardingRulesScopedListWarning';
5631
  protected $warningDataType = '';
5632
 
5633
  public function setForwardingRules($forwardingRules)
@@ -5640,7 +5640,7 @@ class Google_Service_Compute_ForwardingRulesScopedList extends Google_Collection
5640
  return $this->forwardingRules;
5641
  }
5642
 
5643
- public function setWarning(Google_Service_Compute_ForwardingRulesScopedListWarning $warning)
5644
  {
5645
  $this->warning = $warning;
5646
  }
@@ -5651,10 +5651,10 @@ class Google_Service_Compute_ForwardingRulesScopedList extends Google_Collection
5651
  }
5652
  }
5653
 
5654
- class Google_Service_Compute_ForwardingRulesScopedListWarning extends Google_Collection
5655
  {
5656
  public $code;
5657
- protected $dataType = 'Google_Service_Compute_ForwardingRulesScopedListWarningData';
5658
  protected $dataDataType = 'array';
5659
  public $message;
5660
 
@@ -5689,7 +5689,7 @@ class Google_Service_Compute_ForwardingRulesScopedListWarning extends Google_Col
5689
  }
5690
  }
5691
 
5692
- class Google_Service_Compute_ForwardingRulesScopedListWarningData extends Google_Model
5693
  {
5694
  public $key;
5695
  public $value;
@@ -5715,7 +5715,7 @@ class Google_Service_Compute_ForwardingRulesScopedListWarningData extends Google
5715
  }
5716
  }
5717
 
5718
- class Google_Service_Compute_HealthCheckReference extends Google_Model
5719
  {
5720
  public $healthCheck;
5721
 
@@ -5730,7 +5730,7 @@ class Google_Service_Compute_HealthCheckReference extends Google_Model
5730
  }
5731
  }
5732
 
5733
- class Google_Service_Compute_HealthStatus extends Google_Model
5734
  {
5735
  public $healthState;
5736
  public $instance;
@@ -5767,7 +5767,7 @@ class Google_Service_Compute_HealthStatus extends Google_Model
5767
  }
5768
  }
5769
 
5770
- class Google_Service_Compute_HttpHealthCheck extends Google_Model
5771
  {
5772
  public $checkIntervalSec;
5773
  public $creationTimestamp;
@@ -5914,10 +5914,10 @@ class Google_Service_Compute_HttpHealthCheck extends Google_Model
5914
  }
5915
  }
5916
 
5917
- class Google_Service_Compute_HttpHealthCheckList extends Google_Collection
5918
  {
5919
  public $id;
5920
- protected $itemsType = 'Google_Service_Compute_HttpHealthCheck';
5921
  protected $itemsDataType = 'array';
5922
  public $kind;
5923
  public $nextPageToken;
@@ -5974,17 +5974,17 @@ class Google_Service_Compute_HttpHealthCheckList extends Google_Collection
5974
  }
5975
  }
5976
 
5977
- class Google_Service_Compute_Image extends Google_Model
5978
  {
5979
  public $archiveSizeBytes;
5980
  public $creationTimestamp;
5981
- protected $deprecatedType = 'Google_Service_Compute_DeprecationStatus';
5982
  protected $deprecatedDataType = '';
5983
  public $description;
5984
  public $id;
5985
  public $kind;
5986
  public $name;
5987
- protected $rawDiskType = 'Google_Service_Compute_ImageRawDisk';
5988
  protected $rawDiskDataType = '';
5989
  public $selfLink;
5990
  public $sourceType;
@@ -6010,7 +6010,7 @@ class Google_Service_Compute_Image extends Google_Model
6010
  return $this->creationTimestamp;
6011
  }
6012
 
6013
- public function setDeprecated(Google_Service_Compute_DeprecationStatus $deprecated)
6014
  {
6015
  $this->deprecated = $deprecated;
6016
  }
@@ -6060,7 +6060,7 @@ class Google_Service_Compute_Image extends Google_Model
6060
  return $this->name;
6061
  }
6062
 
6063
- public function setRawDisk(Google_Service_Compute_ImageRawDisk $rawDisk)
6064
  {
6065
  $this->rawDisk = $rawDisk;
6066
  }
@@ -6101,10 +6101,10 @@ class Google_Service_Compute_Image extends Google_Model
6101
  }
6102
  }
6103
 
6104
- class Google_Service_Compute_ImageList extends Google_Collection
6105
  {
6106
  public $id;
6107
- protected $itemsType = 'Google_Service_Compute_Image';
6108
  protected $itemsDataType = 'array';
6109
  public $kind;
6110
  public $nextPageToken;
@@ -6161,7 +6161,7 @@ class Google_Service_Compute_ImageList extends Google_Collection
6161
  }
6162
  }
6163
 
6164
- class Google_Service_Compute_ImageRawDisk extends Google_Model
6165
  {
6166
  public $containerType;
6167
  public $sha1Checksum;
@@ -6198,29 +6198,29 @@ class Google_Service_Compute_ImageRawDisk extends Google_Model
6198
  }
6199
  }
6200
 
6201
- class Google_Service_Compute_Instance extends Google_Collection
6202
  {
6203
  public $canIpForward;
6204
  public $creationTimestamp;
6205
  public $description;
6206
- protected $disksType = 'Google_Service_Compute_AttachedDisk';
6207
  protected $disksDataType = 'array';
6208
  public $id;
6209
  public $kind;
6210
  public $machineType;
6211
- protected $metadataType = 'Google_Service_Compute_Metadata';
6212
  protected $metadataDataType = '';
6213
  public $name;
6214
- protected $networkInterfacesType = 'Google_Service_Compute_NetworkInterface';
6215
  protected $networkInterfacesDataType = 'array';
6216
- protected $schedulingType = 'Google_Service_Compute_Scheduling';
6217
  protected $schedulingDataType = '';
6218
  public $selfLink;
6219
- protected $serviceAccountsType = 'Google_Service_Compute_ServiceAccount';
6220
  protected $serviceAccountsDataType = 'array';
6221
  public $status;
6222
  public $statusMessage;
6223
- protected $tagsType = 'Google_Service_Compute_Tags';
6224
  protected $tagsDataType = '';
6225
  public $zone;
6226
 
@@ -6294,7 +6294,7 @@ class Google_Service_Compute_Instance extends Google_Collection
6294
  return $this->machineType;
6295
  }
6296
 
6297
- public function setMetadata(Google_Service_Compute_Metadata $metadata)
6298
  {
6299
  $this->metadata = $metadata;
6300
  }
@@ -6324,7 +6324,7 @@ class Google_Service_Compute_Instance extends Google_Collection
6324
  return $this->networkInterfaces;
6325
  }
6326
 
6327
- public function setScheduling(Google_Service_Compute_Scheduling $scheduling)
6328
  {
6329
  $this->scheduling = $scheduling;
6330
  }
@@ -6374,7 +6374,7 @@ class Google_Service_Compute_Instance extends Google_Collection
6374
  return $this->statusMessage;
6375
  }
6376
 
6377
- public function setTags(Google_Service_Compute_Tags $tags)
6378
  {
6379
  $this->tags = $tags;
6380
  }
@@ -6395,10 +6395,10 @@ class Google_Service_Compute_Instance extends Google_Collection
6395
  }
6396
  }
6397
 
6398
- class Google_Service_Compute_InstanceAggregatedList extends Google_Model
6399
  {
6400
  public $id;
6401
- protected $itemsType = 'Google_Service_Compute_InstancesScopedList';
6402
  protected $itemsDataType = 'map';
6403
  public $kind;
6404
  public $nextPageToken;
@@ -6455,10 +6455,10 @@ class Google_Service_Compute_InstanceAggregatedList extends Google_Model
6455
  }
6456
  }
6457
 
6458
- class Google_Service_Compute_InstanceList extends Google_Collection
6459
  {
6460
  public $id;
6461
- protected $itemsType = 'Google_Service_Compute_Instance';
6462
  protected $itemsDataType = 'array';
6463
  public $kind;
6464
  public $nextPageToken;
@@ -6515,7 +6515,7 @@ class Google_Service_Compute_InstanceList extends Google_Collection
6515
  }
6516
  }
6517
 
6518
- class Google_Service_Compute_InstanceReference extends Google_Model
6519
  {
6520
  public $instance;
6521
 
@@ -6530,11 +6530,11 @@ class Google_Service_Compute_InstanceReference extends Google_Model
6530
  }
6531
  }
6532
 
6533
- class Google_Service_Compute_InstancesScopedList extends Google_Collection
6534
  {
6535
- protected $instancesType = 'Google_Service_Compute_Instance';
6536
  protected $instancesDataType = 'array';
6537
- protected $warningType = 'Google_Service_Compute_InstancesScopedListWarning';
6538
  protected $warningDataType = '';
6539
 
6540
  public function setInstances($instances)
@@ -6547,7 +6547,7 @@ class Google_Service_Compute_InstancesScopedList extends Google_Collection
6547
  return $this->instances;
6548
  }
6549
 
6550
- public function setWarning(Google_Service_Compute_InstancesScopedListWarning $warning)
6551
  {
6552
  $this->warning = $warning;
6553
  }
@@ -6558,10 +6558,10 @@ class Google_Service_Compute_InstancesScopedList extends Google_Collection
6558
  }
6559
  }
6560
 
6561
- class Google_Service_Compute_InstancesScopedListWarning extends Google_Collection
6562
  {
6563
  public $code;
6564
- protected $dataType = 'Google_Service_Compute_InstancesScopedListWarningData';
6565
  protected $dataDataType = 'array';
6566
  public $message;
6567
 
@@ -6596,7 +6596,7 @@ class Google_Service_Compute_InstancesScopedListWarning extends Google_Collectio
6596
  }
6597
  }
6598
 
6599
- class Google_Service_Compute_InstancesScopedListWarningData extends Google_Model
6600
  {
6601
  public $key;
6602
  public $value;
@@ -6622,10 +6622,10 @@ class Google_Service_Compute_InstancesScopedListWarningData extends Google_Model
6622
  }
6623
  }
6624
 
6625
- class Google_Service_Compute_MachineType extends Google_Collection
6626
  {
6627
  public $creationTimestamp;
6628
- protected $deprecatedType = 'Google_Service_Compute_DeprecationStatus';
6629
  protected $deprecatedDataType = '';
6630
  public $description;
6631
  public $guestCpus;
@@ -6636,7 +6636,7 @@ class Google_Service_Compute_MachineType extends Google_Collection
6636
  public $maximumPersistentDisksSizeGb;
6637
  public $memoryMb;
6638
  public $name;
6639
- protected $scratchDisksType = 'Google_Service_Compute_MachineTypeScratchDisks';
6640
  protected $scratchDisksDataType = 'array';
6641
  public $selfLink;
6642
  public $zone;
@@ -6651,7 +6651,7 @@ class Google_Service_Compute_MachineType extends Google_Collection
6651
  return $this->creationTimestamp;
6652
  }
6653
 
6654
- public function setDeprecated(Google_Service_Compute_DeprecationStatus $deprecated)
6655
  {
6656
  $this->deprecated = $deprecated;
6657
  }
@@ -6782,10 +6782,10 @@ class Google_Service_Compute_MachineType extends Google_Collection
6782
  }
6783
  }
6784
 
6785
- class Google_Service_Compute_MachineTypeAggregatedList extends Google_Model
6786
  {
6787
  public $id;
6788
- protected $itemsType = 'Google_Service_Compute_MachineTypesScopedList';
6789
  protected $itemsDataType = 'map';
6790
  public $kind;
6791
  public $nextPageToken;
@@ -6842,10 +6842,10 @@ class Google_Service_Compute_MachineTypeAggregatedList extends Google_Model
6842
  }
6843
  }
6844
 
6845
- class Google_Service_Compute_MachineTypeList extends Google_Collection
6846
  {
6847
  public $id;
6848
- protected $itemsType = 'Google_Service_Compute_MachineType';
6849
  protected $itemsDataType = 'array';
6850
  public $kind;
6851
  public $nextPageToken;
@@ -6902,7 +6902,7 @@ class Google_Service_Compute_MachineTypeList extends Google_Collection
6902
  }
6903
  }
6904
 
6905
- class Google_Service_Compute_MachineTypeScratchDisks extends Google_Model
6906
  {
6907
  public $diskGb;
6908
 
@@ -6917,11 +6917,11 @@ class Google_Service_Compute_MachineTypeScratchDisks extends Google_Model
6917
  }
6918
  }
6919
 
6920
- class Google_Service_Compute_MachineTypesScopedList extends Google_Collection
6921
  {
6922
- protected $machineTypesType = 'Google_Service_Compute_MachineType';
6923
  protected $machineTypesDataType = 'array';
6924
- protected $warningType = 'Google_Service_Compute_MachineTypesScopedListWarning';
6925
  protected $warningDataType = '';
6926
 
6927
  public function setMachineTypes($machineTypes)
@@ -6934,7 +6934,7 @@ class Google_Service_Compute_MachineTypesScopedList extends Google_Collection
6934
  return $this->machineTypes;
6935
  }
6936
 
6937
- public function setWarning(Google_Service_Compute_MachineTypesScopedListWarning $warning)
6938
  {
6939
  $this->warning = $warning;
6940
  }
@@ -6945,10 +6945,10 @@ class Google_Service_Compute_MachineTypesScopedList extends Google_Collection
6945
  }
6946
  }
6947
 
6948
- class Google_Service_Compute_MachineTypesScopedListWarning extends Google_Collection
6949
  {
6950
  public $code;
6951
- protected $dataType = 'Google_Service_Compute_MachineTypesScopedListWarningData';
6952
  protected $dataDataType = 'array';
6953
  public $message;
6954
 
@@ -6983,7 +6983,7 @@ class Google_Service_Compute_MachineTypesScopedListWarning extends Google_Collec
6983
  }
6984
  }
6985
 
6986
- class Google_Service_Compute_MachineTypesScopedListWarningData extends Google_Model
6987
  {
6988
  public $key;
6989
  public $value;
@@ -7009,10 +7009,10 @@ class Google_Service_Compute_MachineTypesScopedListWarningData extends Google_Mo
7009
  }
7010
  }
7011
 
7012
- class Google_Service_Compute_Metadata extends Google_Collection
7013
  {
7014
  public $fingerprint;
7015
- protected $itemsType = 'Google_Service_Compute_MetadataItems';
7016
  protected $itemsDataType = 'array';
7017
  public $kind;
7018
 
@@ -7047,7 +7047,7 @@ class Google_Service_Compute_Metadata extends Google_Collection
7047
  }
7048
  }
7049
 
7050
- class Google_Service_Compute_MetadataItems extends Google_Model
7051
  {
7052
  public $key;
7053
  public $value;
@@ -7073,7 +7073,7 @@ class Google_Service_Compute_MetadataItems extends Google_Model
7073
  }
7074
  }
7075
 
7076
- class Google_Service_Compute_Network extends Google_Model
7077
  {
7078
  public $iPv4Range;
7079
  public $creationTimestamp;
@@ -7165,9 +7165,9 @@ class Google_Service_Compute_Network extends Google_Model
7165
  }
7166
  }
7167
 
7168
- class Google_Service_Compute_NetworkInterface extends Google_Collection
7169
  {
7170
- protected $accessConfigsType = 'Google_Service_Compute_AccessConfig';
7171
  protected $accessConfigsDataType = 'array';
7172
  public $name;
7173
  public $network;
@@ -7214,10 +7214,10 @@ class Google_Service_Compute_NetworkInterface extends Google_Collection
7214
  }
7215
  }
7216
 
7217
- class Google_Service_Compute_NetworkList extends Google_Collection
7218
  {
7219
  public $id;
7220
- protected $itemsType = 'Google_Service_Compute_Network';
7221
  protected $itemsDataType = 'array';
7222
  public $kind;
7223
  public $nextPageToken;
@@ -7274,12 +7274,12 @@ class Google_Service_Compute_NetworkList extends Google_Collection
7274
  }
7275
  }
7276
 
7277
- class Google_Service_Compute_Operation extends Google_Collection
7278
  {
7279
  public $clientOperationId;
7280
  public $creationTimestamp;
7281
  public $endTime;
7282
- protected $errorType = 'Google_Service_Compute_OperationError';
7283
  protected $errorDataType = '';
7284
  public $httpErrorMessage;
7285
  public $httpErrorStatusCode;
@@ -7297,7 +7297,7 @@ class Google_Service_Compute_Operation extends Google_Collection
7297
  public $targetId;
7298
  public $targetLink;
7299
  public $user;
7300
- protected $warningsType = 'Google_Service_Compute_OperationWarnings';
7301
  protected $warningsDataType = 'array';
7302
  public $zone;
7303
 
@@ -7331,7 +7331,7 @@ class Google_Service_Compute_Operation extends Google_Collection
7331
  return $this->endTime;
7332
  }
7333
 
7334
- public function setError(Google_Service_Compute_OperationError $error)
7335
  {
7336
  $this->error = $error;
7337
  }
@@ -7522,10 +7522,10 @@ class Google_Service_Compute_Operation extends Google_Collection
7522
  }
7523
  }
7524
 
7525
- class Google_Service_Compute_OperationAggregatedList extends Google_Model
7526
  {
7527
  public $id;
7528
- protected $itemsType = 'Google_Service_Compute_OperationsScopedList';
7529
  protected $itemsDataType = 'map';
7530
  public $kind;
7531
  public $nextPageToken;
@@ -7582,9 +7582,9 @@ class Google_Service_Compute_OperationAggregatedList extends Google_Model
7582
  }
7583
  }
7584
 
7585
- class Google_Service_Compute_OperationError extends Google_Collection
7586
  {
7587
- protected $errorsType = 'Google_Service_Compute_OperationErrorErrors';
7588
  protected $errorsDataType = 'array';
7589
 
7590
  public function setErrors($errors)
@@ -7598,7 +7598,7 @@ class Google_Service_Compute_OperationError extends Google_Collection
7598
  }
7599
  }
7600
 
7601
- class Google_Service_Compute_OperationErrorErrors extends Google_Model
7602
  {
7603
  public $code;
7604
  public $location;
@@ -7635,10 +7635,10 @@ class Google_Service_Compute_OperationErrorErrors extends Google_Model
7635
  }
7636
  }
7637
 
7638
- class Google_Service_Compute_OperationList extends Google_Collection
7639
  {
7640
  public $id;
7641
- protected $itemsType = 'Google_Service_Compute_Operation';
7642
  protected $itemsDataType = 'array';
7643
  public $kind;
7644
  public $nextPageToken;
@@ -7695,10 +7695,10 @@ class Google_Service_Compute_OperationList extends Google_Collection
7695
  }
7696
  }
7697
 
7698
- class Google_Service_Compute_OperationWarnings extends Google_Collection
7699
  {
7700
  public $code;
7701
- protected $dataType = 'Google_Service_Compute_OperationWarningsData';
7702
  protected $dataDataType = 'array';
7703
  public $message;
7704
 
@@ -7733,7 +7733,7 @@ class Google_Service_Compute_OperationWarnings extends Google_Collection
7733
  }
7734
  }
7735
 
7736
- class Google_Service_Compute_OperationWarningsData extends Google_Model
7737
  {
7738
  public $key;
7739
  public $value;
@@ -7759,11 +7759,11 @@ class Google_Service_Compute_OperationWarningsData extends Google_Model
7759
  }
7760
  }
7761
 
7762
- class Google_Service_Compute_OperationsScopedList extends Google_Collection
7763
  {
7764
- protected $operationsType = 'Google_Service_Compute_Operation';
7765
  protected $operationsDataType = 'array';
7766
- protected $warningType = 'Google_Service_Compute_OperationsScopedListWarning';
7767
  protected $warningDataType = '';
7768
 
7769
  public function setOperations($operations)
@@ -7776,7 +7776,7 @@ class Google_Service_Compute_OperationsScopedList extends Google_Collection
7776
  return $this->operations;
7777
  }
7778
 
7779
- public function setWarning(Google_Service_Compute_OperationsScopedListWarning $warning)
7780
  {
7781
  $this->warning = $warning;
7782
  }
@@ -7787,10 +7787,10 @@ class Google_Service_Compute_OperationsScopedList extends Google_Collection
7787
  }
7788
  }
7789
 
7790
- class Google_Service_Compute_OperationsScopedListWarning extends Google_Collection
7791
  {
7792
  public $code;
7793
- protected $dataType = 'Google_Service_Compute_OperationsScopedListWarningData';
7794
  protected $dataDataType = 'array';
7795
  public $message;
7796
 
@@ -7825,7 +7825,7 @@ class Google_Service_Compute_OperationsScopedListWarning extends Google_Collecti
7825
  }
7826
  }
7827
 
7828
- class Google_Service_Compute_OperationsScopedListWarningData extends Google_Model
7829
  {
7830
  public $key;
7831
  public $value;
@@ -7851,20 +7851,20 @@ class Google_Service_Compute_OperationsScopedListWarningData extends Google_Mode
7851
  }
7852
  }
7853
 
7854
- class Google_Service_Compute_Project extends Google_Collection
7855
  {
7856
- protected $commonInstanceMetadataType = 'Google_Service_Compute_Metadata';
7857
  protected $commonInstanceMetadataDataType = '';
7858
  public $creationTimestamp;
7859
  public $description;
7860
  public $id;
7861
  public $kind;
7862
  public $name;
7863
- protected $quotasType = 'Google_Service_Compute_Quota';
7864
  protected $quotasDataType = 'array';
7865
  public $selfLink;
7866
 
7867
- public function setCommonInstanceMetadata(Google_Service_Compute_Metadata $commonInstanceMetadata)
7868
  {
7869
  $this->commonInstanceMetadata = $commonInstanceMetadata;
7870
  }
@@ -7945,7 +7945,7 @@ class Google_Service_Compute_Project extends Google_Collection
7945
  }
7946
  }
7947
 
7948
- class Google_Service_Compute_Quota extends Google_Model
7949
  {
7950
  public $limit;
7951
  public $metric;
@@ -7982,16 +7982,16 @@ class Google_Service_Compute_Quota extends Google_Model
7982
  }
7983
  }
7984
 
7985
- class Google_Service_Compute_Region extends Google_Collection
7986
  {
7987
  public $creationTimestamp;
7988
- protected $deprecatedType = 'Google_Service_Compute_DeprecationStatus';
7989
  protected $deprecatedDataType = '';
7990
  public $description;
7991
  public $id;
7992
  public $kind;
7993
  public $name;
7994
- protected $quotasType = 'Google_Service_Compute_Quota';
7995
  protected $quotasDataType = 'array';
7996
  public $selfLink;
7997
  public $status;
@@ -8007,7 +8007,7 @@ class Google_Service_Compute_Region extends Google_Collection
8007
  return $this->creationTimestamp;
8008
  }
8009
 
8010
- public function setDeprecated(Google_Service_Compute_DeprecationStatus $deprecated)
8011
  {
8012
  $this->deprecated = $deprecated;
8013
  }
@@ -8098,10 +8098,10 @@ class Google_Service_Compute_Region extends Google_Collection
8098
  }
8099
  }
8100
 
8101
- class Google_Service_Compute_RegionList extends Google_Collection
8102
  {
8103
  public $id;
8104
- protected $itemsType = 'Google_Service_Compute_Region';
8105
  protected $itemsDataType = 'array';
8106
  public $kind;
8107
  public $nextPageToken;
@@ -8158,7 +8158,7 @@ class Google_Service_Compute_RegionList extends Google_Collection
8158
  }
8159
  }
8160
 
8161
- class Google_Service_Compute_Route extends Google_Collection
8162
  {
8163
  public $creationTimestamp;
8164
  public $description;
@@ -8174,7 +8174,7 @@ class Google_Service_Compute_Route extends Google_Collection
8174
  public $priority;
8175
  public $selfLink;
8176
  public $tags;
8177
- protected $warningsType = 'Google_Service_Compute_RouteWarnings';
8178
  protected $warningsDataType = 'array';
8179
 
8180
  public function setCreationTimestamp($creationTimestamp)
@@ -8328,10 +8328,10 @@ class Google_Service_Compute_Route extends Google_Collection
8328
  }
8329
  }
8330
 
8331
- class Google_Service_Compute_RouteList extends Google_Collection
8332
  {
8333
  public $id;
8334
- protected $itemsType = 'Google_Service_Compute_Route';
8335
  protected $itemsDataType = 'array';
8336
  public $kind;
8337
  public $nextPageToken;
@@ -8388,10 +8388,10 @@ class Google_Service_Compute_RouteList extends Google_Collection
8388
  }
8389
  }
8390
 
8391
- class Google_Service_Compute_RouteWarnings extends Google_Collection
8392
  {
8393
  public $code;
8394
- protected $dataType = 'Google_Service_Compute_RouteWarningsData';
8395
  protected $dataDataType = 'array';
8396
  public $message;
8397
 
@@ -8426,7 +8426,7 @@ class Google_Service_Compute_RouteWarnings extends Google_Collection
8426
  }
8427
  }
8428
 
8429
- class Google_Service_Compute_RouteWarningsData extends Google_Model
8430
  {
8431
  public $key;
8432
  public $value;
@@ -8452,7 +8452,7 @@ class Google_Service_Compute_RouteWarningsData extends Google_Model
8452
  }
8453
  }
8454
 
8455
- class Google_Service_Compute_Scheduling extends Google_Model
8456
  {
8457
  public $automaticRestart;
8458
  public $onHostMaintenance;
@@ -8478,7 +8478,7 @@ class Google_Service_Compute_Scheduling extends Google_Model
8478
  }
8479
  }
8480
 
8481
- class Google_Service_Compute_SerialPortOutput extends Google_Model
8482
  {
8483
  public $contents;
8484
  public $kind;
@@ -8515,7 +8515,7 @@ class Google_Service_Compute_SerialPortOutput extends Google_Model
8515
  }
8516
  }
8517
 
8518
- class Google_Service_Compute_ServiceAccount extends Google_Collection
8519
  {
8520
  public $email;
8521
  public $scopes;
@@ -8541,7 +8541,7 @@ class Google_Service_Compute_ServiceAccount extends Google_Collection
8541
  }
8542
  }
8543
 
8544
- class Google_Service_Compute_Snapshot extends Google_Model
8545
  {
8546
  public $creationTimestamp;
8547
  public $description;
@@ -8677,10 +8677,10 @@ class Google_Service_Compute_Snapshot extends Google_Model
8677
  }
8678
  }
8679
 
8680
- class Google_Service_Compute_SnapshotList extends Google_Collection
8681
  {
8682
  public $id;
8683
- protected $itemsType = 'Google_Service_Compute_Snapshot';
8684
  protected $itemsDataType = 'array';
8685
  public $kind;
8686
  public $nextPageToken;
@@ -8737,7 +8737,7 @@ class Google_Service_Compute_SnapshotList extends Google_Collection
8737
  }
8738
  }
8739
 
8740
- class Google_Service_Compute_Tags extends Google_Collection
8741
  {
8742
  public $fingerprint;
8743
  public $items;
@@ -8763,7 +8763,7 @@ class Google_Service_Compute_Tags extends Google_Collection
8763
  }
8764
  }
8765
 
8766
- class Google_Service_Compute_TargetInstance extends Google_Model
8767
  {
8768
  public $creationTimestamp;
8769
  public $description;
@@ -8866,10 +8866,10 @@ class Google_Service_Compute_TargetInstance extends Google_Model
8866
  }
8867
  }
8868
 
8869
- class Google_Service_Compute_TargetInstanceAggregatedList extends Google_Model
8870
  {
8871
  public $id;
8872
- protected $itemsType = 'Google_Service_Compute_TargetInstancesScopedList';
8873
  protected $itemsDataType = 'map';
8874
  public $kind;
8875
  public $nextPageToken;
@@ -8926,10 +8926,10 @@ class Google_Service_Compute_TargetInstanceAggregatedList extends Google_Model
8926
  }
8927
  }
8928
 
8929
- class Google_Service_Compute_TargetInstanceList extends Google_Collection
8930
  {
8931
  public $id;
8932
- protected $itemsType = 'Google_Service_Compute_TargetInstance';
8933
  protected $itemsDataType = 'array';
8934
  public $kind;
8935
  public $nextPageToken;
@@ -8986,11 +8986,11 @@ class Google_Service_Compute_TargetInstanceList extends Google_Collection
8986
  }
8987
  }
8988
 
8989
- class Google_Service_Compute_TargetInstancesScopedList extends Google_Collection
8990
  {
8991
- protected $targetInstancesType = 'Google_Service_Compute_TargetInstance';
8992
  protected $targetInstancesDataType = 'array';
8993
- protected $warningType = 'Google_Service_Compute_TargetInstancesScopedListWarning';
8994
  protected $warningDataType = '';
8995
 
8996
  public function setTargetInstances($targetInstances)
@@ -9003,7 +9003,7 @@ class Google_Service_Compute_TargetInstancesScopedList extends Google_Collection
9003
  return $this->targetInstances;
9004
  }
9005
 
9006
- public function setWarning(Google_Service_Compute_TargetInstancesScopedListWarning $warning)
9007
  {
9008
  $this->warning = $warning;
9009
  }
@@ -9014,10 +9014,10 @@ class Google_Service_Compute_TargetInstancesScopedList extends Google_Collection
9014
  }
9015
  }
9016
 
9017
- class Google_Service_Compute_TargetInstancesScopedListWarning extends Google_Collection
9018
  {
9019
  public $code;
9020
- protected $dataType = 'Google_Service_Compute_TargetInstancesScopedListWarningData';
9021
  protected $dataDataType = 'array';
9022
  public $message;
9023
 
@@ -9052,7 +9052,7 @@ class Google_Service_Compute_TargetInstancesScopedListWarning extends Google_Col
9052
  }
9053
  }
9054
 
9055
- class Google_Service_Compute_TargetInstancesScopedListWarningData extends Google_Model
9056
  {
9057
  public $key;
9058
  public $value;
@@ -9078,7 +9078,7 @@ class Google_Service_Compute_TargetInstancesScopedListWarningData extends Google
9078
  }
9079
  }
9080
 
9081
- class Google_Service_Compute_TargetPool extends Google_Collection
9082
  {
9083
  public $backupPool;
9084
  public $creationTimestamp;
@@ -9214,10 +9214,10 @@ class Google_Service_Compute_TargetPool extends Google_Collection
9214
  }
9215
  }
9216
 
9217
- class Google_Service_Compute_TargetPoolAggregatedList extends Google_Model
9218
  {
9219
  public $id;
9220
- protected $itemsType = 'Google_Service_Compute_TargetPoolsScopedList';
9221
  protected $itemsDataType = 'map';
9222
  public $kind;
9223
  public $nextPageToken;
@@ -9274,9 +9274,9 @@ class Google_Service_Compute_TargetPoolAggregatedList extends Google_Model
9274
  }
9275
  }
9276
 
9277
- class Google_Service_Compute_TargetPoolInstanceHealth extends Google_Collection
9278
  {
9279
- protected $healthStatusType = 'Google_Service_Compute_HealthStatus';
9280
  protected $healthStatusDataType = 'array';
9281
  public $kind;
9282
 
@@ -9301,10 +9301,10 @@ class Google_Service_Compute_TargetPoolInstanceHealth extends Google_Collection
9301
  }
9302
  }
9303
 
9304
- class Google_Service_Compute_TargetPoolList extends Google_Collection
9305
  {
9306
  public $id;
9307
- protected $itemsType = 'Google_Service_Compute_TargetPool';
9308
  protected $itemsDataType = 'array';
9309
  public $kind;
9310
  public $nextPageToken;
@@ -9361,9 +9361,9 @@ class Google_Service_Compute_TargetPoolList extends Google_Collection
9361
  }
9362
  }
9363
 
9364
- class Google_Service_Compute_TargetPoolsAddHealthCheckRequest extends Google_Collection
9365
  {
9366
- protected $healthChecksType = 'Google_Service_Compute_HealthCheckReference';
9367
  protected $healthChecksDataType = 'array';
9368
 
9369
  public function setHealthChecks($healthChecks)
@@ -9377,9 +9377,9 @@ class Google_Service_Compute_TargetPoolsAddHealthCheckRequest extends Google_Col
9377
  }
9378
  }
9379
 
9380
- class Google_Service_Compute_TargetPoolsAddInstanceRequest extends Google_Collection
9381
  {
9382
- protected $instancesType = 'Google_Service_Compute_InstanceReference';
9383
  protected $instancesDataType = 'array';
9384
 
9385
  public function setInstances($instances)
@@ -9393,9 +9393,9 @@ class Google_Service_Compute_TargetPoolsAddInstanceRequest extends Google_Collec
9393
  }
9394
  }
9395
 
9396
- class Google_Service_Compute_TargetPoolsRemoveHealthCheckRequest extends Google_Collection
9397
  {
9398
- protected $healthChecksType = 'Google_Service_Compute_HealthCheckReference';
9399
  protected $healthChecksDataType = 'array';
9400
 
9401
  public function setHealthChecks($healthChecks)
@@ -9409,9 +9409,9 @@ class Google_Service_Compute_TargetPoolsRemoveHealthCheckRequest extends Google_
9409
  }
9410
  }
9411
 
9412
- class Google_Service_Compute_TargetPoolsRemoveInstanceRequest extends Google_Collection
9413
  {
9414
- protected $instancesType = 'Google_Service_Compute_InstanceReference';
9415
  protected $instancesDataType = 'array';
9416
 
9417
  public function setInstances($instances)
@@ -9425,11 +9425,11 @@ class Google_Service_Compute_TargetPoolsRemoveInstanceRequest extends Google_Col
9425
  }
9426
  }
9427
 
9428
- class Google_Service_Compute_TargetPoolsScopedList extends Google_Collection
9429
  {
9430
- protected $targetPoolsType = 'Google_Service_Compute_TargetPool';
9431
  protected $targetPoolsDataType = 'array';
9432
- protected $warningType = 'Google_Service_Compute_TargetPoolsScopedListWarning';
9433
  protected $warningDataType = '';
9434
 
9435
  public function setTargetPools($targetPools)
@@ -9442,7 +9442,7 @@ class Google_Service_Compute_TargetPoolsScopedList extends Google_Collection
9442
  return $this->targetPools;
9443
  }
9444
 
9445
- public function setWarning(Google_Service_Compute_TargetPoolsScopedListWarning $warning)
9446
  {
9447
  $this->warning = $warning;
9448
  }
@@ -9453,10 +9453,10 @@ class Google_Service_Compute_TargetPoolsScopedList extends Google_Collection
9453
  }
9454
  }
9455
 
9456
- class Google_Service_Compute_TargetPoolsScopedListWarning extends Google_Collection
9457
  {
9458
  public $code;
9459
- protected $dataType = 'Google_Service_Compute_TargetPoolsScopedListWarningData';
9460
  protected $dataDataType = 'array';
9461
  public $message;
9462
 
@@ -9491,7 +9491,7 @@ class Google_Service_Compute_TargetPoolsScopedListWarning extends Google_Collect
9491
  }
9492
  }
9493
 
9494
- class Google_Service_Compute_TargetPoolsScopedListWarningData extends Google_Model
9495
  {
9496
  public $key;
9497
  public $value;
@@ -9517,7 +9517,7 @@ class Google_Service_Compute_TargetPoolsScopedListWarningData extends Google_Mod
9517
  }
9518
  }
9519
 
9520
- class Google_Service_Compute_TargetReference extends Google_Model
9521
  {
9522
  public $target;
9523
 
@@ -9532,15 +9532,15 @@ class Google_Service_Compute_TargetReference extends Google_Model
9532
  }
9533
  }
9534
 
9535
- class Google_Service_Compute_Zone extends Google_Collection
9536
  {
9537
  public $creationTimestamp;
9538
- protected $deprecatedType = 'Google_Service_Compute_DeprecationStatus';
9539
  protected $deprecatedDataType = '';
9540
  public $description;
9541
  public $id;
9542
  public $kind;
9543
- protected $maintenanceWindowsType = 'Google_Service_Compute_ZoneMaintenanceWindows';
9544
  protected $maintenanceWindowsDataType = 'array';
9545
  public $name;
9546
  public $region;
@@ -9557,7 +9557,7 @@ class Google_Service_Compute_Zone extends Google_Collection
9557
  return $this->creationTimestamp;
9558
  }
9559
 
9560
- public function setDeprecated(Google_Service_Compute_DeprecationStatus $deprecated)
9561
  {
9562
  $this->deprecated = $deprecated;
9563
  }
@@ -9648,10 +9648,10 @@ class Google_Service_Compute_Zone extends Google_Collection
9648
  }
9649
  }
9650
 
9651
- class Google_Service_Compute_ZoneList extends Google_Collection
9652
  {
9653
  public $id;
9654
- protected $itemsType = 'Google_Service_Compute_Zone';
9655
  protected $itemsDataType = 'array';
9656
  public $kind;
9657
  public $nextPageToken;
@@ -9708,7 +9708,7 @@ class Google_Service_Compute_ZoneList extends Google_Collection
9708
  }
9709
  }
9710
 
9711
- class Google_Service_Compute_ZoneMaintenanceWindows extends Google_Model
9712
  {
9713
  public $beginTime;
9714
  public $description;
29
  *
30
  * @author Google, Inc.
31
  */
32
+ class GoogleGAL_Service_Compute extends GoogleGAL_Service
33
  {
34
  /** View and manage your Google Compute Engine resources. */
35
  const COMPUTE = "https://www.googleapis.com/auth/compute";
66
  /**
67
  * Constructs the internal representation of the Compute service.
68
  *
69
+ * @param GoogleGAL_Client $client
70
  */
71
+ public function __construct(GoogleGAL_Client $client)
72
  {
73
  parent::__construct($client);
74
  $this->servicePath = 'compute/v1/projects/';
75
  $this->version = 'v1';
76
  $this->serviceName = 'compute';
77
 
78
+ $this->addresses = new GoogleGAL_Service_Compute_Addresses_Resource(
79
  $this,
80
  $this->serviceName,
81
  'addresses',
189
  )
190
  )
191
  );
192
+ $this->disks = new GoogleGAL_Service_Compute_Disks_Resource(
193
  $this,
194
  $this->serviceName,
195
  'disks',
327
  )
328
  )
329
  );
330
+ $this->firewalls = new GoogleGAL_Service_Compute_Firewalls_Resource(
331
  $this,
332
  $this->serviceName,
333
  'firewalls',
429
  )
430
  )
431
  );
432
+ $this->forwardingRules = new GoogleGAL_Service_Compute_ForwardingRules_Resource(
433
  $this,
434
  $this->serviceName,
435
  'forwardingRules',
563
  )
564
  )
565
  );
566
+ $this->globalOperations = new GoogleGAL_Service_Compute_GlobalOperations_Resource(
567
  $this,
568
  $this->serviceName,
569
  'globalOperations',
647
  )
648
  )
649
  );
650
+ $this->httpHealthChecks = new GoogleGAL_Service_Compute_HttpHealthChecks_Resource(
651
  $this,
652
  $this->serviceName,
653
  'httpHealthChecks',
749
  )
750
  )
751
  );
752
+ $this->images = new GoogleGAL_Service_Compute_Images_Resource(
753
  $this,
754
  $this->serviceName,
755
  'images',
836
  )
837
  )
838
  );
839
+ $this->instances = new GoogleGAL_Service_Compute_Instances_Resource(
840
  $this,
841
  $this->serviceName,
842
  'instances',
1180
  )
1181
  )
1182
  );
1183
+ $this->machineTypes = new GoogleGAL_Service_Compute_MachineTypes_Resource(
1184
  $this,
1185
  $this->serviceName,
1186
  'machineTypes',
1259
  )
1260
  )
1261
  );
1262
+ $this->networks = new GoogleGAL_Service_Compute_Networks_Resource(
1263
  $this,
1264
  $this->serviceName,
1265
  'networks',
1331
  )
1332
  )
1333
  );
1334
+ $this->projects = new GoogleGAL_Service_Compute_Projects_Resource(
1335
  $this,
1336
  $this->serviceName,
1337
  'projects',
1361
  )
1362
  )
1363
  );
1364
+ $this->regionOperations = new GoogleGAL_Service_Compute_RegionOperations_Resource(
1365
  $this,
1366
  $this->serviceName,
1367
  'regionOperations',
1438
  )
1439
  )
1440
  );
1441
+ $this->regions = new GoogleGAL_Service_Compute_Regions_Resource(
1442
  $this,
1443
  $this->serviceName,
1444
  'regions',
1485
  )
1486
  )
1487
  );
1488
+ $this->routes = new GoogleGAL_Service_Compute_Routes_Resource(
1489
  $this,
1490
  $this->serviceName,
1491
  'routes',
1557
  )
1558
  )
1559
  );
1560
+ $this->snapshots = new GoogleGAL_Service_Compute_Snapshots_Resource(
1561
  $this,
1562
  $this->serviceName,
1563
  'snapshots',
1619
  )
1620
  )
1621
  );
1622
+ $this->targetInstances = new GoogleGAL_Service_Compute_TargetInstances_Resource(
1623
  $this,
1624
  $this->serviceName,
1625
  'targetInstances',
1733
  )
1734
  )
1735
  );
1736
+ $this->targetPools = new GoogleGAL_Service_Compute_TargetPools_Resource(
1737
  $this,
1738
  $this->serviceName,
1739
  'targetPools',
1971
  )
1972
  )
1973
  );
1974
+ $this->zoneOperations = new GoogleGAL_Service_Compute_ZoneOperations_Resource(
1975
  $this,
1976
  $this->serviceName,
1977
  'zoneOperations',
2048
  )
2049
  )
2050
  );
2051
+ $this->zones = new GoogleGAL_Service_Compute_Zones_Resource(
2052
  $this,
2053
  $this->serviceName,
2054
  'zones',
2103
  * The "addresses" collection of methods.
2104
  * Typical usage is:
2105
  * <code>
2106
+ * $computeService = new GoogleGAL_Service_Compute(...);
2107
  * $addresses = $computeService->addresses;
2108
  * </code>
2109
  */
2110
+ class GoogleGAL_Service_Compute_Addresses_Resource extends GoogleGAL_Service_Resource
2111
  {
2112
 
2113
  /**
2125
  * @opt_param string maxResults
2126
  * Optional. Maximum count of results to be returned. Maximum value is 500 and default value is
2127
  * 500.
2128
+ * @return GoogleGAL_Service_Compute_AddressAggregatedList
2129
  */
2130
  public function aggregatedList($project, $optParams = array())
2131
  {
2132
  $params = array('project' => $project);
2133
  $params = array_merge($params, $optParams);
2134
+ return $this->call('aggregatedList', array($params), "GoogleGAL_Service_Compute_AddressAggregatedList");
2135
  }
2136
  /**
2137
  * Deletes the specified address resource. (addresses.delete)
2143
  * @param string $address
2144
  * Name of the address resource to delete.
2145
  * @param array $optParams Optional parameters.
2146
+ * @return GoogleGAL_Service_Compute_Operation
2147
  */
2148
  public function delete($project, $region, $address, $optParams = array())
2149
  {
2150
  $params = array('project' => $project, 'region' => $region, 'address' => $address);
2151
  $params = array_merge($params, $optParams);
2152
+ return $this->call('delete', array($params), "GoogleGAL_Service_Compute_Operation");
2153
  }
2154
  /**
2155
  * Returns the specified address resource. (addresses.get)
2161
  * @param string $address
2162
  * Name of the address resource to return.
2163
  * @param array $optParams Optional parameters.
2164
+ * @return GoogleGAL_Service_Compute_Address
2165
  */
2166
  public function get($project, $region, $address, $optParams = array())
2167
  {
2168
  $params = array('project' => $project, 'region' => $region, 'address' => $address);
2169
  $params = array_merge($params, $optParams);
2170
+ return $this->call('get', array($params), "GoogleGAL_Service_Compute_Address");
2171
  }
2172
  /**
2173
  * Creates an address resource in the specified project using the data included
2177
  * Name of the project scoping this request.
2178
  * @param string $region
2179
  * Name of the region scoping this request.
2180
+ * @param GoogleGAL_Address $postBody
2181
  * @param array $optParams Optional parameters.
2182
+ * @return GoogleGAL_Service_Compute_Operation
2183
  */
2184
+ public function insert($project, $region, GoogleGAL_Service_Compute_Address $postBody, $optParams = array())
2185
  {
2186
  $params = array('project' => $project, 'region' => $region, 'postBody' => $postBody);
2187
  $params = array_merge($params, $optParams);
2188
+ return $this->call('insert', array($params), "GoogleGAL_Service_Compute_Operation");
2189
  }
2190
  /**
2191
  * Retrieves the list of address resources contained within the specified
2205
  * @opt_param string maxResults
2206
  * Optional. Maximum count of results to be returned. Maximum value is 500 and default value is
2207
  * 500.
2208
+ * @return GoogleGAL_Service_Compute_AddressList
2209
  */
2210
  public function listAddresses($project, $region, $optParams = array())
2211
  {
2212
  $params = array('project' => $project, 'region' => $region);
2213
  $params = array_merge($params, $optParams);
2214
+ return $this->call('list', array($params), "GoogleGAL_Service_Compute_AddressList");
2215
  }
2216
  }
2217
 
2219
  * The "disks" collection of methods.
2220
  * Typical usage is:
2221
  * <code>
2222
+ * $computeService = new GoogleGAL_Service_Compute(...);
2223
  * $disks = $computeService->disks;
2224
  * </code>
2225
  */
2226
+ class GoogleGAL_Service_Compute_Disks_Resource extends GoogleGAL_Service_Resource
2227
  {
2228
 
2229
  /**
2241
  * @opt_param string maxResults
2242
  * Optional. Maximum count of results to be returned. Maximum value is 500 and default value is
2243
  * 500.
2244
+ * @return GoogleGAL_Service_Compute_DiskAggregatedList
2245
  */
2246
  public function aggregatedList($project, $optParams = array())
2247
  {
2248
  $params = array('project' => $project);
2249
  $params = array_merge($params, $optParams);
2250
+ return $this->call('aggregatedList', array($params), "GoogleGAL_Service_Compute_DiskAggregatedList");
2251
  }
2252
  /**
2253
  * (disks.createSnapshot)
2258
  * Name of the zone scoping this request.
2259
  * @param string $disk
2260
  * Name of the persistent disk resource to snapshot.
2261
+ * @param GoogleGAL_Snapshot $postBody
2262
  * @param array $optParams Optional parameters.
2263
+ * @return GoogleGAL_Service_Compute_Operation
2264
  */
2265
+ public function createSnapshot($project, $zone, $disk, GoogleGAL_Service_Compute_Snapshot $postBody, $optParams = array())
2266
  {
2267
  $params = array('project' => $project, 'zone' => $zone, 'disk' => $disk, 'postBody' => $postBody);
2268
  $params = array_merge($params, $optParams);
2269
+ return $this->call('createSnapshot', array($params), "GoogleGAL_Service_Compute_Operation");
2270
  }
2271
  /**
2272
  * Deletes the specified persistent disk resource. (disks.delete)
2278
  * @param string $disk
2279
  * Name of the persistent disk resource to delete.
2280
  * @param array $optParams Optional parameters.
2281
+ * @return GoogleGAL_Service_Compute_Operation
2282
  */
2283
  public function delete($project, $zone, $disk, $optParams = array())
2284
  {
2285
  $params = array('project' => $project, 'zone' => $zone, 'disk' => $disk);
2286
  $params = array_merge($params, $optParams);
2287
+ return $this->call('delete', array($params), "GoogleGAL_Service_Compute_Operation");
2288
  }
2289
  /**
2290
  * Returns the specified persistent disk resource. (disks.get)
2296
  * @param string $disk
2297
  * Name of the persistent disk resource to return.
2298
  * @param array $optParams Optional parameters.
2299
+ * @return GoogleGAL_Service_Compute_Disk
2300
  */
2301
  public function get($project, $zone, $disk, $optParams = array())
2302
  {
2303
  $params = array('project' => $project, 'zone' => $zone, 'disk' => $disk);
2304
  $params = array_merge($params, $optParams);
2305
+ return $this->call('get', array($params), "GoogleGAL_Service_Compute_Disk");
2306
  }
2307
  /**
2308
  * Creates a persistent disk resource in the specified project using the data
2312
  * Name of the project scoping this request.
2313
  * @param string $zone
2314
  * Name of the zone scoping this request.
2315
+ * @param GoogleGAL_Disk $postBody
2316
  * @param array $optParams Optional parameters.
2317
  *
2318
  * @opt_param string sourceImage
2319
  * Optional. Source image to restore onto a disk.
2320
+ * @return GoogleGAL_Service_Compute_Operation
2321
  */
2322
+ public function insert($project, $zone, GoogleGAL_Service_Compute_Disk $postBody, $optParams = array())
2323
  {
2324
  $params = array('project' => $project, 'zone' => $zone, 'postBody' => $postBody);
2325
  $params = array_merge($params, $optParams);
2326
+ return $this->call('insert', array($params), "GoogleGAL_Service_Compute_Operation");
2327
  }
2328
  /**
2329
  * Retrieves the list of persistent disk resources contained within the
2343
  * @opt_param string maxResults
2344
  * Optional. Maximum count of results to be returned. Maximum value is 500 and default value is
2345
  * 500.
2346
+ * @return GoogleGAL_Service_Compute_DiskList
2347
  */
2348
  public function listDisks($project, $zone, $optParams = array())
2349
  {
2350
  $params = array('project' => $project, 'zone' => $zone);
2351
  $params = array_merge($params, $optParams);
2352
+ return $this->call('list', array($params), "GoogleGAL_Service_Compute_DiskList");
2353
  }
2354
  }
2355
 
2357
  * The "firewalls" collection of methods.
2358
  * Typical usage is:
2359
  * <code>
2360
+ * $computeService = new GoogleGAL_Service_Compute(...);
2361
  * $firewalls = $computeService->firewalls;
2362
  * </code>
2363
  */
2364
+ class GoogleGAL_Service_Compute_Firewalls_Resource extends GoogleGAL_Service_Resource
2365
  {
2366
 
2367
  /**
2372
  * @param string $firewall
2373
  * Name of the firewall resource to delete.
2374
  * @param array $optParams Optional parameters.
2375
+ * @return GoogleGAL_Service_Compute_Operation
2376
  */
2377
  public function delete($project, $firewall, $optParams = array())
2378
  {
2379
  $params = array('project' => $project, 'firewall' => $firewall);
2380
  $params = array_merge($params, $optParams);
2381
+ return $this->call('delete', array($params), "GoogleGAL_Service_Compute_Operation");
2382
  }
2383
  /**
2384
  * Returns the specified firewall resource. (firewalls.get)
2388
  * @param string $firewall
2389
  * Name of the firewall resource to return.
2390
  * @param array $optParams Optional parameters.
2391
+ * @return GoogleGAL_Service_Compute_Firewall
2392
  */
2393
  public function get($project, $firewall, $optParams = array())
2394
  {
2395
  $params = array('project' => $project, 'firewall' => $firewall);
2396
  $params = array_merge($params, $optParams);
2397
+ return $this->call('get', array($params), "GoogleGAL_Service_Compute_Firewall");
2398
  }
2399
  /**
2400
  * Creates a firewall resource in the specified project using the data included
2402
  *
2403
  * @param string $project
2404
  * Name of the project scoping this request.
2405
+ * @param GoogleGAL_Firewall $postBody
2406
  * @param array $optParams Optional parameters.
2407
+ * @return GoogleGAL_Service_Compute_Operation
2408
  */
2409
+ public function insert($project, GoogleGAL_Service_Compute_Firewall $postBody, $optParams = array())
2410
  {
2411
  $params = array('project' => $project, 'postBody' => $postBody);
2412
  $params = array_merge($params, $optParams);
2413
+ return $this->call('insert', array($params), "GoogleGAL_Service_Compute_Operation");
2414
  }
2415
  /**
2416
  * Retrieves the list of firewall resources available to the specified project.
2428
  * @opt_param string maxResults
2429
  * Optional. Maximum count of results to be returned. Maximum value is 500 and default value is
2430
  * 500.
2431
+ * @return GoogleGAL_Service_Compute_FirewallList
2432
  */
2433
  public function listFirewalls($project, $optParams = array())
2434
  {
2435
  $params = array('project' => $project);
2436
  $params = array_merge($params, $optParams);
2437
+ return $this->call('list', array($params), "GoogleGAL_Service_Compute_FirewallList");
2438
  }
2439
  /**
2440
  * Updates the specified firewall resource with the data included in the
2444
  * Name of the project scoping this request.
2445
  * @param string $firewall
2446
  * Name of the firewall resource to update.
2447
+ * @param GoogleGAL_Firewall $postBody
2448
  * @param array $optParams Optional parameters.
2449
+ * @return GoogleGAL_Service_Compute_Operation
2450
  */
2451
+ public function patch($project, $firewall, GoogleGAL_Service_Compute_Firewall $postBody, $optParams = array())
2452
  {
2453
  $params = array('project' => $project, 'firewall' => $firewall, 'postBody' => $postBody);
2454
  $params = array_merge($params, $optParams);
2455
+ return $this->call('patch', array($params), "GoogleGAL_Service_Compute_Operation");
2456
  }
2457
  /**
2458
  * Updates the specified firewall resource with the data included in the
2462
  * Name of the project scoping this request.
2463
  * @param string $firewall
2464
  * Name of the firewall resource to update.
2465
+ * @param GoogleGAL_Firewall $postBody
2466
  * @param array $optParams Optional parameters.
2467
+ * @return GoogleGAL_Service_Compute_Operation
2468
  */
2469
+ public function update($project, $firewall, GoogleGAL_Service_Compute_Firewall $postBody, $optParams = array())
2470
  {
2471
  $params = array('project' => $project, 'firewall' => $firewall, 'postBody' => $postBody);
2472
  $params = array_merge($params, $optParams);
2473
+ return $this->call('update', array($params), "GoogleGAL_Service_Compute_Operation");
2474
  }
2475
  }
2476
 
2478
  * The "forwardingRules" collection of methods.
2479
  * Typical usage is:
2480
  * <code>
2481
+ * $computeService = new GoogleGAL_Service_Compute(...);
2482
  * $forwardingRules = $computeService->forwardingRules;
2483
  * </code>
2484
  */
2485
+ class GoogleGAL_Service_Compute_ForwardingRules_Resource extends GoogleGAL_Service_Resource
2486
  {
2487
 
2488
  /**
2501
  * @opt_param string maxResults
2502
  * Optional. Maximum count of results to be returned. Maximum value is 500 and default value is
2503
  * 500.
2504
+ * @return GoogleGAL_Service_Compute_ForwardingRuleAggregatedList
2505
  */
2506
  public function aggregatedList($project, $optParams = array())
2507
  {
2508
  $params = array('project' => $project);
2509
  $params = array_merge($params, $optParams);
2510
+ return $this->call('aggregatedList', array($params), "GoogleGAL_Service_Compute_ForwardingRuleAggregatedList");
2511
  }
2512
  /**
2513
  * Deletes the specified ForwardingRule resource. (forwardingRules.delete)
2519
  * @param string $forwardingRule
2520
  * Name of the ForwardingRule resource to delete.
2521
  * @param array $optParams Optional parameters.
2522
+ * @return GoogleGAL_Service_Compute_Operation
2523
  */
2524
  public function delete($project, $region, $forwardingRule, $optParams = array())
2525
  {
2526
  $params = array('project' => $project, 'region' => $region, 'forwardingRule' => $forwardingRule);
2527
  $params = array_merge($params, $optParams);
2528
+ return $this->call('delete', array($params), "GoogleGAL_Service_Compute_Operation");
2529
  }
2530
  /**
2531
  * Returns the specified ForwardingRule resource. (forwardingRules.get)
2537
  * @param string $forwardingRule
2538
  * Name of the ForwardingRule resource to return.
2539
  * @param array $optParams Optional parameters.
2540
+ * @return GoogleGAL_Service_Compute_ForwardingRule
2541
  */
2542
  public function get($project, $region, $forwardingRule, $optParams = array())
2543
  {
2544
  $params = array('project' => $project, 'region' => $region, 'forwardingRule' => $forwardingRule);
2545
  $params = array_merge($params, $optParams);
2546
+ return $this->call('get', array($params), "GoogleGAL_Service_Compute_ForwardingRule");
2547
  }
2548
  /**
2549
  * Creates a ForwardingRule resource in the specified project and region using
2553
  * Name of the project scoping this request.
2554
  * @param string $region
2555
  * Name of the region scoping this request.
2556
+ * @param GoogleGAL_ForwardingRule $postBody
2557
  * @param array $optParams Optional parameters.
2558
+ * @return GoogleGAL_Service_Compute_Operation
2559
  */
2560
+ public function insert($project, $region, GoogleGAL_Service_Compute_ForwardingRule $postBody, $optParams = array())
2561
  {
2562
  $params = array('project' => $project, 'region' => $region, 'postBody' => $postBody);
2563
  $params = array_merge($params, $optParams);
2564
+ return $this->call('insert', array($params), "GoogleGAL_Service_Compute_Operation");
2565
  }
2566
  /**
2567
  * Retrieves the list of ForwardingRule resources available to the specified
2581
  * @opt_param string maxResults
2582
  * Optional. Maximum count of results to be returned. Maximum value is 500 and default value is
2583
  * 500.
2584
+ * @return GoogleGAL_Service_Compute_ForwardingRuleList
2585
  */
2586
  public function listForwardingRules($project, $region, $optParams = array())
2587
  {
2588
  $params = array('project' => $project, 'region' => $region);
2589
  $params = array_merge($params, $optParams);
2590
+ return $this->call('list', array($params), "GoogleGAL_Service_Compute_ForwardingRuleList");
2591
  }
2592
  /**
2593
  * Changes target url for forwarding rule. (forwardingRules.setTarget)
2598
  * Name of the region scoping this request.
2599
  * @param string $forwardingRule
2600
  * Name of the ForwardingRule resource in which target is to be set.
2601
+ * @param GoogleGAL_TargetReference $postBody
2602
  * @param array $optParams Optional parameters.
2603
+ * @return GoogleGAL_Service_Compute_Operation
2604
  */
2605
+ public function setTarget($project, $region, $forwardingRule, GoogleGAL_Service_Compute_TargetReference $postBody, $optParams = array())
2606
  {
2607
  $params = array('project' => $project, 'region' => $region, 'forwardingRule' => $forwardingRule, 'postBody' => $postBody);
2608
  $params = array_merge($params, $optParams);
2609
+ return $this->call('setTarget', array($params), "GoogleGAL_Service_Compute_Operation");
2610
  }
2611
  }
2612
 
2614
  * The "globalOperations" collection of methods.
2615
  * Typical usage is:
2616
  * <code>
2617
+ * $computeService = new GoogleGAL_Service_Compute(...);
2618
  * $globalOperations = $computeService->globalOperations;
2619
  * </code>
2620
  */
2621
+ class GoogleGAL_Service_Compute_GlobalOperations_Resource extends GoogleGAL_Service_Resource
2622
  {
2623
 
2624
  /**
2637
  * @opt_param string maxResults
2638
  * Optional. Maximum count of results to be returned. Maximum value is 500 and default value is
2639
  * 500.
2640
+ * @return GoogleGAL_Service_Compute_OperationAggregatedList
2641
  */
2642
  public function aggregatedList($project, $optParams = array())
2643
  {
2644
  $params = array('project' => $project);
2645
  $params = array_merge($params, $optParams);
2646
+ return $this->call('aggregatedList', array($params), "GoogleGAL_Service_Compute_OperationAggregatedList");
2647
  }
2648
  /**
2649
  * Deletes the specified operation resource. (globalOperations.delete)
2668
  * @param string $operation
2669
  * Name of the operation resource to return.
2670
  * @param array $optParams Optional parameters.
2671
+ * @return GoogleGAL_Service_Compute_Operation
2672
  */
2673
  public function get($project, $operation, $optParams = array())
2674
  {
2675
  $params = array('project' => $project, 'operation' => $operation);
2676
  $params = array_merge($params, $optParams);
2677
+ return $this->call('get', array($params), "GoogleGAL_Service_Compute_Operation");
2678
  }
2679
  /**
2680
  * Retrieves the list of operation resources contained within the specified
2692
  * @opt_param string maxResults
2693
  * Optional. Maximum count of results to be returned. Maximum value is 500 and default value is
2694
  * 500.
2695
+ * @return GoogleGAL_Service_Compute_OperationList
2696
  */
2697
  public function listGlobalOperations($project, $optParams = array())
2698
  {
2699
  $params = array('project' => $project);
2700
  $params = array_merge($params, $optParams);
2701
+ return $this->call('list', array($params), "GoogleGAL_Service_Compute_OperationList");
2702
  }
2703
  }
2704
 
2706
  * The "httpHealthChecks" collection of methods.
2707
  * Typical usage is:
2708
  * <code>
2709
+ * $computeService = new GoogleGAL_Service_Compute(...);
2710
  * $httpHealthChecks = $computeService->httpHealthChecks;
2711
  * </code>
2712
  */
2713
+ class GoogleGAL_Service_Compute_HttpHealthChecks_Resource extends GoogleGAL_Service_Resource
2714
  {
2715
 
2716
  /**
2721
  * @param string $httpHealthCheck
2722
  * Name of the HttpHealthCheck resource to delete.
2723
  * @param array $optParams Optional parameters.
2724
+ * @return GoogleGAL_Service_Compute_Operation
2725
  */
2726
  public function delete($project, $httpHealthCheck, $optParams = array())
2727
  {
2728
  $params = array('project' => $project, 'httpHealthCheck' => $httpHealthCheck);
2729
  $params = array_merge($params, $optParams);
2730
+ return $this->call('delete', array($params), "GoogleGAL_Service_Compute_Operation");
2731
  }
2732
  /**
2733
  * Returns the specified HttpHealthCheck resource. (httpHealthChecks.get)
2737
  * @param string $httpHealthCheck
2738
  * Name of the HttpHealthCheck resource to return.
2739
  * @param array $optParams Optional parameters.
2740
+ * @return GoogleGAL_Service_Compute_HttpHealthCheck
2741
  */
2742
  public function get($project, $httpHealthCheck, $optParams = array())
2743
  {
2744
  $params = array('project' => $project, 'httpHealthCheck' => $httpHealthCheck);
2745
  $params = array_merge($params, $optParams);
2746
+ return $this->call('get', array($params), "GoogleGAL_Service_Compute_HttpHealthCheck");
2747
  }
2748
  /**
2749
  * Creates a HttpHealthCheck resource in the specified project using the data
2751
  *
2752
  * @param string $project
2753
  * Name of the project scoping this request.
2754
+ * @param GoogleGAL_HttpHealthCheck $postBody
2755
  * @param array $optParams Optional parameters.
2756
+ * @return GoogleGAL_Service_Compute_Operation
2757
  */
2758
+ public function insert($project, GoogleGAL_Service_Compute_HttpHealthCheck $postBody, $optParams = array())
2759
  {
2760
  $params = array('project' => $project, 'postBody' => $postBody);
2761
  $params = array_merge($params, $optParams);
2762
+ return $this->call('insert', array($params), "GoogleGAL_Service_Compute_Operation");
2763
  }
2764
  /**
2765
  * Retrieves the list of HttpHealthCheck resources available to the specified
2777
  * @opt_param string maxResults
2778
  * Optional. Maximum count of results to be returned. Maximum value is 500 and default value is
2779
  * 500.
2780
+ * @return GoogleGAL_Service_Compute_HttpHealthCheckList
2781
  */
2782
  public function listHttpHealthChecks($project, $optParams = array())
2783
  {
2784
  $params = array('project' => $project);
2785
  $params = array_merge($params, $optParams);
2786
+ return $this->call('list', array($params), "GoogleGAL_Service_Compute_HttpHealthCheckList");
2787
  }
2788
  /**
2789
  * Updates a HttpHealthCheck resource in the specified project using the data
2794
  * Name of the project scoping this request.
2795
  * @param string $httpHealthCheck
2796
  * Name of the HttpHealthCheck resource to update.
2797
+ * @param GoogleGAL_HttpHealthCheck $postBody
2798
  * @param array $optParams Optional parameters.
2799
+ * @return GoogleGAL_Service_Compute_Operation
2800
  */
2801
+ public function patch($project, $httpHealthCheck, GoogleGAL_Service_Compute_HttpHealthCheck $postBody, $optParams = array())
2802
  {
2803
  $params = array('project' => $project, 'httpHealthCheck' => $httpHealthCheck, 'postBody' => $postBody);
2804
  $params = array_merge($params, $optParams);
2805
+ return $this->call('patch', array($params), "GoogleGAL_Service_Compute_Operation");
2806
  }
2807
  /**
2808
  * Updates a HttpHealthCheck resource in the specified project using the data
2812
  * Name of the project scoping this request.
2813
  * @param string $httpHealthCheck
2814
  * Name of the HttpHealthCheck resource to update.
2815
+ * @param GoogleGAL_HttpHealthCheck $postBody
2816
  * @param array $optParams Optional parameters.
2817
+ * @return GoogleGAL_Service_Compute_Operation
2818
  */
2819
+ public function update($project, $httpHealthCheck, GoogleGAL_Service_Compute_HttpHealthCheck $postBody, $optParams = array())
2820
  {
2821
  $params = array('project' => $project, 'httpHealthCheck' => $httpHealthCheck, 'postBody' => $postBody);
2822
  $params = array_merge($params, $optParams);
2823
+ return $this->call('update', array($params), "GoogleGAL_Service_Compute_Operation");
2824
  }
2825
  }
2826
 
2828
  * The "images" collection of methods.
2829
  * Typical usage is:
2830
  * <code>
2831
+ * $computeService = new GoogleGAL_Service_Compute(...);
2832
  * $images = $computeService->images;
2833
  * </code>
2834
  */
2835
+ class GoogleGAL_Service_Compute_Images_Resource extends GoogleGAL_Service_Resource
2836
  {
2837
 
2838
  /**
2843
  * @param string $image
2844
  * Name of the image resource to delete.
2845
  * @param array $optParams Optional parameters.
2846
+ * @return GoogleGAL_Service_Compute_Operation
2847
  */
2848
  public function delete($project, $image, $optParams = array())
2849
  {
2850
  $params = array('project' => $project, 'image' => $image);
2851
  $params = array_merge($params, $optParams);
2852
+ return $this->call('delete', array($params), "GoogleGAL_Service_Compute_Operation");
2853
  }
2854
  /**
2855
  * Sets the deprecation status of an image. If no message body is given, clears
2859
  * Name of the project scoping this request.
2860
  * @param string $image
2861
  * Image name.
2862
+ * @param GoogleGAL_DeprecationStatus $postBody
2863
  * @param array $optParams Optional parameters.
2864
+ * @return GoogleGAL_Service_Compute_Operation
2865
  */
2866
+ public function deprecate($project, $image, GoogleGAL_Service_Compute_DeprecationStatus $postBody, $optParams = array())
2867
  {
2868
  $params = array('project' => $project, 'image' => $image, 'postBody' => $postBody);
2869
  $params = array_merge($params, $optParams);
2870
+ return $this->call('deprecate', array($params), "GoogleGAL_Service_Compute_Operation");
2871
  }
2872
  /**
2873
  * Returns the specified image resource. (images.get)
2877
  * @param string $image
2878
  * Name of the image resource to return.
2879
  * @param array $optParams Optional parameters.
2880
+ * @return GoogleGAL_Service_Compute_Image
2881
  */
2882
  public function get($project, $image, $optParams = array())
2883
  {
2884
  $params = array('project' => $project, 'image' => $image);
2885
  $params = array_merge($params, $optParams);
2886
+ return $this->call('get', array($params), "GoogleGAL_Service_Compute_Image");
2887
  }
2888
  /**
2889
  * Creates an image resource in the specified project using the data included in
2891
  *
2892
  * @param string $project
2893
  * Name of the project scoping this request.
2894
+ * @param GoogleGAL_Image $postBody
2895
  * @param array $optParams Optional parameters.
2896
+ * @return GoogleGAL_Service_Compute_Operation
2897
  */
2898
+ public function insert($project, GoogleGAL_Service_Compute_Image $postBody, $optParams = array())
2899
  {
2900
  $params = array('project' => $project, 'postBody' => $postBody);
2901
  $params = array_merge($params, $optParams);
2902
+ return $this->call('insert', array($params), "GoogleGAL_Service_Compute_Operation");
2903
  }
2904
  /**
2905
  * Retrieves the list of image resources available to the specified project.
2917
  * @opt_param string maxResults
2918
  * Optional. Maximum count of results to be returned. Maximum value is 500 and default value is
2919
  * 500.
2920
+ * @return GoogleGAL_Service_Compute_ImageList
2921
  */
2922
  public function listImages($project, $optParams = array())
2923
  {
2924
  $params = array('project' => $project);
2925
  $params = array_merge($params, $optParams);
2926
+ return $this->call('list', array($params), "GoogleGAL_Service_Compute_ImageList");
2927
  }
2928
  }
2929
 
2931
  * The "instances" collection of methods.
2932
  * Typical usage is:
2933
  * <code>
2934
+ * $computeService = new GoogleGAL_Service_Compute(...);
2935
  * $instances = $computeService->instances;
2936
  * </code>
2937
  */
2938
+ class GoogleGAL_Service_Compute_Instances_Resource extends GoogleGAL_Service_Resource
2939
  {
2940
 
2941
  /**
2950
  * Instance name.
2951
  * @param string $networkInterface
2952
  * Network interface name.
2953
+ * @param GoogleGAL_AccessConfig $postBody
2954
  * @param array $optParams Optional parameters.
2955
+ * @return GoogleGAL_Service_Compute_Operation
2956
  */
2957
+ public function addAccessConfig($project, $zone, $instance, $networkInterface, GoogleGAL_Service_Compute_AccessConfig $postBody, $optParams = array())
2958
  {
2959
  $params = array('project' => $project, 'zone' => $zone, 'instance' => $instance, 'networkInterface' => $networkInterface, 'postBody' => $postBody);
2960
  $params = array_merge($params, $optParams);
2961
+ return $this->call('addAccessConfig', array($params), "GoogleGAL_Service_Compute_Operation");
2962
  }
2963
  /**
2964
  * (instances.aggregatedList)
2975
  * @opt_param string maxResults
2976
  * Optional. Maximum count of results to be returned. Maximum value is 500 and default value is
2977
  * 500.
2978
+ * @return GoogleGAL_Service_Compute_InstanceAggregatedList
2979
  */
2980
  public function aggregatedList($project, $optParams = array())
2981
  {
2982
  $params = array('project' => $project);
2983
  $params = array_merge($params, $optParams);
2984
+ return $this->call('aggregatedList', array($params), "GoogleGAL_Service_Compute_InstanceAggregatedList");
2985
  }
2986
  /**
2987
  * Attaches a disk resource to an instance. (instances.attachDisk)
2992
  * Name of the zone scoping this request.
2993
  * @param string $instance
2994
  * Instance name.
2995
+ * @param GoogleGAL_AttachedDisk $postBody
2996
  * @param array $optParams Optional parameters.
2997
+ * @return GoogleGAL_Service_Compute_Operation
2998
  */
2999
+ public function attachDisk($project, $zone, $instance, GoogleGAL_Service_Compute_AttachedDisk $postBody, $optParams = array())
3000
  {
3001
  $params = array('project' => $project, 'zone' => $zone, 'instance' => $instance, 'postBody' => $postBody);
3002
  $params = array_merge($params, $optParams);
3003
+ return $this->call('attachDisk', array($params), "GoogleGAL_Service_Compute_Operation");
3004
  }
3005
  /**
3006
  * Deletes the specified instance resource. (instances.delete)
3012
  * @param string $instance
3013
  * Name of the instance resource to delete.
3014
  * @param array $optParams Optional parameters.
3015
+ * @return GoogleGAL_Service_Compute_Operation
3016
  */
3017
  public function delete($project, $zone, $instance, $optParams = array())
3018
  {
3019
  $params = array('project' => $project, 'zone' => $zone, 'instance' => $instance);
3020
  $params = array_merge($params, $optParams);
3021
+ return $this->call('delete', array($params), "GoogleGAL_Service_Compute_Operation");
3022
  }
3023
  /**
3024
  * Deletes an access config from an instance's network interface.
3035
  * @param string $networkInterface
3036
  * Network interface name.
3037
  * @param array $optParams Optional parameters.
3038
+ * @return GoogleGAL_Service_Compute_Operation
3039
  */
3040
  public function deleteAccessConfig($project, $zone, $instance, $accessConfig, $networkInterface, $optParams = array())
3041
  {
3042
  $params = array('project' => $project, 'zone' => $zone, 'instance' => $instance, 'accessConfig' => $accessConfig, 'networkInterface' => $networkInterface);
3043
  $params = array_merge($params, $optParams);
3044
+ return $this->call('deleteAccessConfig', array($params), "GoogleGAL_Service_Compute_Operation");
3045
  }
3046
  /**
3047
  * Detaches a disk from an instance. (instances.detachDisk)
3055
  * @param string $deviceName
3056
  * Disk device name to detach.
3057
  * @param array $optParams Optional parameters.
3058
+ * @return GoogleGAL_Service_Compute_Operation
3059
  */
3060
  public function detachDisk($project, $zone, $instance, $deviceName, $optParams = array())
3061
  {
3062
  $params = array('project' => $project, 'zone' => $zone, 'instance' => $instance, 'deviceName' => $deviceName);
3063
  $params = array_merge($params, $optParams);
3064
+ return $this->call('detachDisk', array($params), "GoogleGAL_Service_Compute_Operation");
3065
  }
3066
  /**
3067
  * Returns the specified instance resource. (instances.get)
3073
  * @param string $instance
3074
  * Name of the instance resource to return.
3075
  * @param array $optParams Optional parameters.
3076
+ * @return GoogleGAL_Service_Compute_Instance
3077
  */
3078
  public function get($project, $zone, $instance, $optParams = array())
3079
  {
3080
  $params = array('project' => $project, 'zone' => $zone, 'instance' => $instance);
3081
  $params = array_merge($params, $optParams);
3082
+ return $this->call('get', array($params), "GoogleGAL_Service_Compute_Instance");
3083
  }
3084
  /**
3085
  * Returns the specified instance's serial port output.
3092
  * @param string $instance
3093
  * Name of the instance scoping this request.
3094
  * @param array $optParams Optional parameters.
3095
+ * @return GoogleGAL_Service_Compute_SerialPortOutput
3096
  */
3097
  public function getSerialPortOutput($project, $zone, $instance, $optParams = array())
3098
  {
3099
  $params = array('project' => $project, 'zone' => $zone, 'instance' => $instance);
3100
  $params = array_merge($params, $optParams);
3101
+ return $this->call('getSerialPortOutput', array($params), "GoogleGAL_Service_Compute_SerialPortOutput");
3102
  }
3103
  /**
3104
  * Creates an instance resource in the specified project using the data included
3108
  * Name of the project scoping this request.
3109
  * @param string $zone
3110
  * Name of the zone scoping this request.
3111
+ * @param GoogleGAL_Instance $postBody
3112
  * @param array $optParams Optional parameters.
3113
+ * @return GoogleGAL_Service_Compute_Operation
3114
  */
3115
+ public function insert($project, $zone, GoogleGAL_Service_Compute_Instance $postBody, $optParams = array())
3116
  {
3117
  $params = array('project' => $project, 'zone' => $zone, 'postBody' => $postBody);
3118
  $params = array_merge($params, $optParams);
3119
+ return $this->call('insert', array($params), "GoogleGAL_Service_Compute_Operation");
3120
  }
3121
  /**
3122
  * Retrieves the list of instance resources contained within the specified zone.
3136
  * @opt_param string maxResults
3137
  * Optional. Maximum count of results to be returned. Maximum value is 500 and default value is
3138
  * 500.
3139
+ * @return GoogleGAL_Service_Compute_InstanceList
3140
  */
3141
  public function listInstances($project, $zone, $optParams = array())
3142
  {
3143
  $params = array('project' => $project, 'zone' => $zone);
3144
  $params = array_merge($params, $optParams);
3145
+ return $this->call('list', array($params), "GoogleGAL_Service_Compute_InstanceList");
3146
  }
3147
  /**
3148
  * Performs a hard reset on the instance. (instances.reset)
3154
  * @param string $instance
3155
  * Name of the instance scoping this request.
3156
  * @param array $optParams Optional parameters.
3157
+ * @return GoogleGAL_Service_Compute_Operation
3158
  */
3159
  public function reset($project, $zone, $instance, $optParams = array())
3160
  {
3161
  $params = array('project' => $project, 'zone' => $zone, 'instance' => $instance);
3162
  $params = array_merge($params, $optParams);
3163
+ return $this->call('reset', array($params), "GoogleGAL_Service_Compute_Operation");
3164
  }
3165
  /**
3166
  * Sets the auto-delete flag for a disk attached to an instance
3177
  * @param string $deviceName
3178
  * Disk device name to modify.
3179
  * @param array $optParams Optional parameters.
3180
+ * @return GoogleGAL_Service_Compute_Operation
3181
  */
3182
  public function setDiskAutoDelete($project, $zone, $instance, $autoDelete, $deviceName, $optParams = array())
3183
  {
3184
  $params = array('project' => $project, 'zone' => $zone, 'instance' => $instance, 'autoDelete' => $autoDelete, 'deviceName' => $deviceName);
3185
  $params = array_merge($params, $optParams);
3186
+ return $this->call('setDiskAutoDelete', array($params), "GoogleGAL_Service_Compute_Operation");
3187
  }
3188
  /**
3189
  * Sets metadata for the specified instance to the data included in the request.
3195
  * Name of the zone scoping this request.
3196
  * @param string $instance
3197
  * Name of the instance scoping this request.
3198
+ * @param GoogleGAL_Metadata $postBody
3199
  * @param array $optParams Optional parameters.
3200
+ * @return GoogleGAL_Service_Compute_Operation
3201
  */
3202
+ public function setMetadata($project, $zone, $instance, GoogleGAL_Service_Compute_Metadata $postBody, $optParams = array())
3203
  {
3204
  $params = array('project' => $project, 'zone' => $zone, 'instance' => $instance, 'postBody' => $postBody);
3205
  $params = array_merge($params, $optParams);
3206
+ return $this->call('setMetadata', array($params), "GoogleGAL_Service_Compute_Operation");
3207
  }
3208
  /**
3209
  * Sets an instance's scheduling options. (instances.setScheduling)
3214
  * Name of the zone scoping this request.
3215
  * @param string $instance
3216
  * Instance name.
3217
+ * @param GoogleGAL_Scheduling $postBody
3218
  * @param array $optParams Optional parameters.
3219
+ * @return GoogleGAL_Service_Compute_Operation
3220
  */
3221
+ public function setScheduling($project, $zone, $instance, GoogleGAL_Service_Compute_Scheduling $postBody, $optParams = array())
3222
  {
3223
  $params = array('project' => $project, 'zone' => $zone, 'instance' => $instance, 'postBody' => $postBody);
3224
  $params = array_merge($params, $optParams);
3225
+ return $this->call('setScheduling', array($params), "GoogleGAL_Service_Compute_Operation");
3226
  }
3227
  /**
3228
  * Sets tags for the specified instance to the data included in the request.
3234
  * Name of the zone scoping this request.
3235
  * @param string $instance
3236
  * Name of the instance scoping this request.
3237
+ * @param GoogleGAL_Tags $postBody
3238
  * @param array $optParams Optional parameters.
3239
+ * @return GoogleGAL_Service_Compute_Operation
3240
  */
3241
+ public function setTags($project, $zone, $instance, GoogleGAL_Service_Compute_Tags $postBody, $optParams = array())
3242
  {
3243
  $params = array('project' => $project, 'zone' => $zone, 'instance' => $instance, 'postBody' => $postBody);
3244
  $params = array_merge($params, $optParams);
3245
+ return $this->call('setTags', array($params), "GoogleGAL_Service_Compute_Operation");
3246
  }
3247
  }
3248
 
3250
  * The "machineTypes" collection of methods.
3251
  * Typical usage is:
3252
  * <code>
3253
+ * $computeService = new GoogleGAL_Service_Compute(...);
3254
  * $machineTypes = $computeService->machineTypes;
3255
  * </code>
3256
  */
3257
+ class GoogleGAL_Service_Compute_MachineTypes_Resource extends GoogleGAL_Service_Resource
3258
  {
3259
 
3260
  /**
3273
  * @opt_param string maxResults
3274
  * Optional. Maximum count of results to be returned. Maximum value is 500 and default value is
3275
  * 500.
3276
+ * @return GoogleGAL_Service_Compute_MachineTypeAggregatedList
3277
  */
3278
  public function aggregatedList($project, $optParams = array())
3279
  {
3280
  $params = array('project' => $project);
3281
  $params = array_merge($params, $optParams);
3282
+ return $this->call('aggregatedList', array($params), "GoogleGAL_Service_Compute_MachineTypeAggregatedList");
3283
  }
3284
  /**
3285
  * Returns the specified machine type resource. (machineTypes.get)
3291
  * @param string $machineType
3292
  * Name of the machine type resource to return.
3293
  * @param array $optParams Optional parameters.
3294
+ * @return GoogleGAL_Service_Compute_MachineType
3295
  */
3296
  public function get($project, $zone, $machineType, $optParams = array())
3297
  {
3298
  $params = array('project' => $project, 'zone' => $zone, 'machineType' => $machineType);
3299
  $params = array_merge($params, $optParams);
3300
+ return $this->call('get', array($params), "GoogleGAL_Service_Compute_MachineType");
3301
  }
3302
  /**
3303
  * Retrieves the list of machine type resources available to the specified
3317
  * @opt_param string maxResults
3318
  * Optional. Maximum count of results to be returned. Maximum value is 500 and default value is
3319
  * 500.
3320
+ * @return GoogleGAL_Service_Compute_MachineTypeList
3321
  */
3322
  public function listMachineTypes($project, $zone, $optParams = array())
3323
  {
3324
  $params = array('project' => $project, 'zone' => $zone);
3325
  $params = array_merge($params, $optParams);
3326
+ return $this->call('list', array($params), "GoogleGAL_Service_Compute_MachineTypeList");
3327
  }
3328
  }
3329
 
3331
  * The "networks" collection of methods.
3332
  * Typical usage is:
3333
  * <code>
3334
+ * $computeService = new GoogleGAL_Service_Compute(...);
3335
  * $networks = $computeService->networks;
3336
  * </code>
3337
  */
3338
+ class GoogleGAL_Service_Compute_Networks_Resource extends GoogleGAL_Service_Resource
3339
  {
3340
 
3341
  /**
3346
  * @param string $network
3347
  * Name of the network resource to delete.
3348
  * @param array $optParams Optional parameters.
3349
+ * @return GoogleGAL_Service_Compute_Operation
3350
  */
3351
  public function delete($project, $network, $optParams = array())
3352
  {
3353
  $params = array('project' => $project, 'network' => $network);
3354
  $params = array_merge($params, $optParams);
3355
+ return $this->call('delete', array($params), "GoogleGAL_Service_Compute_Operation");
3356
  }
3357
  /**
3358
  * Returns the specified network resource. (networks.get)
3362
  * @param string $network
3363
  * Name of the network resource to return.
3364
  * @param array $optParams Optional parameters.
3365
+ * @return GoogleGAL_Service_Compute_Network
3366
  */
3367
  public function get($project, $network, $optParams = array())
3368
  {
3369
  $params = array('project' => $project, 'network' => $network);
3370
  $params = array_merge($params, $optParams);
3371
+ return $this->call('get', array($params), "GoogleGAL_Service_Compute_Network");
3372
  }
3373
  /**
3374
  * Creates a network resource in the specified project using the data included
3376
  *
3377
  * @param string $project
3378
  * Name of the project scoping this request.
3379
+ * @param GoogleGAL_Network $postBody
3380
  * @param array $optParams Optional parameters.
3381
+ * @return GoogleGAL_Service_Compute_Operation
3382
  */
3383
+ public function insert($project, GoogleGAL_Service_Compute_Network $postBody, $optParams = array())
3384
  {
3385
  $params = array('project' => $project, 'postBody' => $postBody);
3386
  $params = array_merge($params, $optParams);
3387
+ return $this->call('insert', array($params), "GoogleGAL_Service_Compute_Operation");
3388
  }
3389
  /**
3390
  * Retrieves the list of network resources available to the specified project.
3402
  * @opt_param string maxResults
3403
  * Optional. Maximum count of results to be returned. Maximum value is 500 and default value is
3404
  * 500.
3405
+ * @return GoogleGAL_Service_Compute_NetworkList
3406
  */
3407
  public function listNetworks($project, $optParams = array())
3408
  {
3409
  $params = array('project' => $project);
3410
  $params = array_merge($params, $optParams);
3411
+ return $this->call('list', array($params), "GoogleGAL_Service_Compute_NetworkList");
3412
  }
3413
  }
3414
 
3416
  * The "projects" collection of methods.
3417
  * Typical usage is:
3418
  * <code>
3419
+ * $computeService = new GoogleGAL_Service_Compute(...);
3420
  * $projects = $computeService->projects;
3421
  * </code>
3422
  */
3423
+ class GoogleGAL_Service_Compute_Projects_Resource extends GoogleGAL_Service_Resource
3424
  {
3425
 
3426
  /**
3429
  * @param string $project
3430
  * Name of the project resource to retrieve.
3431
  * @param array $optParams Optional parameters.
3432
+ * @return GoogleGAL_Service_Compute_Project
3433
  */
3434
  public function get($project, $optParams = array())
3435
  {
3436
  $params = array('project' => $project);
3437
  $params = array_merge($params, $optParams);
3438
+ return $this->call('get', array($params), "GoogleGAL_Service_Compute_Project");
3439
  }
3440
  /**
3441
  * Sets metadata common to all instances within the specified project using the
3443
  *
3444
  * @param string $project
3445
  * Name of the project scoping this request.
3446
+ * @param GoogleGAL_Metadata $postBody
3447
  * @param array $optParams Optional parameters.
3448
+ * @return GoogleGAL_Service_Compute_Operation
3449
  */
3450
+ public function setCommonInstanceMetadata($project, GoogleGAL_Service_Compute_Metadata $postBody, $optParams = array())
3451
  {
3452
  $params = array('project' => $project, 'postBody' => $postBody);
3453
  $params = array_merge($params, $optParams);
3454
+ return $this->call('setCommonInstanceMetadata', array($params), "GoogleGAL_Service_Compute_Operation");
3455
  }
3456
  }
3457
 
3459
  * The "regionOperations" collection of methods.
3460
  * Typical usage is:
3461
  * <code>
3462
+ * $computeService = new GoogleGAL_Service_Compute(...);
3463
  * $regionOperations = $computeService->regionOperations;
3464
  * </code>
3465
  */
3466
+ class GoogleGAL_Service_Compute_RegionOperations_Resource extends GoogleGAL_Service_Resource
3467
  {
3468
 
3469
  /**
3495
  * @param string $operation
3496
  * Name of the operation resource to return.
3497
  * @param array $optParams Optional parameters.
3498
+ * @return GoogleGAL_Service_Compute_Operation
3499
  */
3500
  public function get($project, $region, $operation, $optParams = array())
3501
  {
3502
  $params = array('project' => $project, 'region' => $region, 'operation' => $operation);
3503
  $params = array_merge($params, $optParams);
3504
+ return $this->call('get', array($params), "GoogleGAL_Service_Compute_Operation");
3505
  }
3506
  /**
3507
  * Retrieves the list of operation resources contained within the specified
3521
  * @opt_param string maxResults
3522
  * Optional. Maximum count of results to be returned. Maximum value is 500 and default value is
3523
  * 500.
3524
+ * @return GoogleGAL_Service_Compute_OperationList
3525
  */
3526
  public function listRegionOperations($project, $region, $optParams = array())
3527
  {
3528
  $params = array('project' => $project, 'region' => $region);
3529
  $params = array_merge($params, $optParams);
3530
+ return $this->call('list', array($params), "GoogleGAL_Service_Compute_OperationList");
3531
  }
3532
  }
3533
 
3535
  * The "regions" collection of methods.
3536
  * Typical usage is:
3537
  * <code>
3538
+ * $computeService = new GoogleGAL_Service_Compute(...);
3539
  * $regions = $computeService->regions;
3540
  * </code>
3541
  */
3542
+ class GoogleGAL_Service_Compute_Regions_Resource extends GoogleGAL_Service_Resource
3543
  {
3544
 
3545
  /**
3550
  * @param string $region
3551
  * Name of the region resource to return.
3552
  * @param array $optParams Optional parameters.
3553
+ * @return GoogleGAL_Service_Compute_Region
3554
  */
3555
  public function get($project, $region, $optParams = array())
3556
  {
3557
  $params = array('project' => $project, 'region' => $region);
3558
  $params = array_merge($params, $optParams);
3559
+ return $this->call('get', array($params), "GoogleGAL_Service_Compute_Region");
3560
  }
3561
  /**
3562
  * Retrieves the list of region resources available to the specified project.
3574
  * @opt_param string maxResults
3575
  * Optional. Maximum count of results to be returned. Maximum value is 500 and default value is
3576
  * 500.
3577
+ * @return GoogleGAL_Service_Compute_RegionList
3578
  */
3579
  public function listRegions($project, $optParams = array())
3580
  {
3581
  $params = array('project' => $project);
3582
  $params = array_merge($params, $optParams);
3583
+ return $this->call('list', array($params), "GoogleGAL_Service_Compute_RegionList");
3584
  }
3585
  }
3586
 
3588
  * The "routes" collection of methods.
3589
  * Typical usage is:
3590
  * <code>
3591
+ * $computeService = new GoogleGAL_Service_Compute(...);
3592
  * $routes = $computeService->routes;
3593
  * </code>
3594
  */
3595
+ class GoogleGAL_Service_Compute_Routes_Resource extends GoogleGAL_Service_Resource
3596
  {
3597
 
3598
  /**
3603
  * @param string $route
3604
  * Name of the route resource to delete.
3605
  * @param array $optParams Optional parameters.
3606
+ * @return GoogleGAL_Service_Compute_Operation
3607
  */
3608
  public function delete($project, $route, $optParams = array())
3609
  {
3610
  $params = array('project' => $project, 'route' => $route);
3611
  $params = array_merge($params, $optParams);
3612
+ return $this->call('delete', array($params), "GoogleGAL_Service_Compute_Operation");
3613
  }
3614
  /**
3615
  * Returns the specified route resource. (routes.get)
3619
  * @param string $route
3620
  * Name of the route resource to return.
3621
  * @param array $optParams Optional parameters.
3622
+ * @return GoogleGAL_Service_Compute_Route
3623
  */
3624
  public function get($project, $route, $optParams = array())
3625
  {
3626
  $params = array('project' => $project, 'route' => $route);
3627
  $params = array_merge($params, $optParams);
3628
+ return $this->call('get', array($params), "GoogleGAL_Service_Compute_Route");
3629
  }
3630
  /**
3631
  * Creates a route resource in the specified project using the data included in
3633
  *
3634
  * @param string $project
3635
  * Name of the project scoping this request.
3636
+ * @param GoogleGAL_Route $postBody
3637
  * @param array $optParams Optional parameters.
3638
+ * @return GoogleGAL_Service_Compute_Operation
3639
  */
3640
+ public function insert($project, GoogleGAL_Service_Compute_Route $postBody, $optParams = array())
3641
  {
3642
  $params = array('project' => $project, 'postBody' => $postBody);
3643
  $params = array_merge($params, $optParams);
3644
+ return $this->call('insert', array($params), "GoogleGAL_Service_Compute_Operation");
3645
  }
3646
  /**
3647
  * Retrieves the list of route resources available to the specified project.
3659
  * @opt_param string maxResults
3660
  * Optional. Maximum count of results to be returned. Maximum value is 500 and default value is
3661
  * 500.
3662
+ * @return GoogleGAL_Service_Compute_RouteList
3663
  */
3664
  public function listRoutes($project, $optParams = array())
3665
  {
3666
  $params = array('project' => $project);
3667
  $params = array_merge($params, $optParams);
3668
+ return $this->call('list', array($params), "GoogleGAL_Service_Compute_RouteList");
3669
  }
3670
  }
3671
 
3673
  * The "snapshots" collection of methods.
3674
  * Typical usage is:
3675
  * <code>
3676
+ * $computeService = new GoogleGAL_Service_Compute(...);
3677
  * $snapshots = $computeService->snapshots;
3678
  * </code>
3679
  */
3680
+ class GoogleGAL_Service_Compute_Snapshots_Resource extends GoogleGAL_Service_Resource
3681
  {
3682
 
3683
  /**
3688
  * @param string $snapshot
3689
  * Name of the persistent disk snapshot resource to delete.
3690
  * @param array $optParams Optional parameters.
3691
+ * @return GoogleGAL_Service_Compute_Operation
3692
  */
3693
  public function delete($project, $snapshot, $optParams = array())
3694
  {
3695
  $params = array('project' => $project, 'snapshot' => $snapshot);
3696
  $params = array_merge($params, $optParams);
3697
+ return $this->call('delete', array($params), "GoogleGAL_Service_Compute_Operation");
3698
  }
3699
  /**
3700
  * Returns the specified persistent disk snapshot resource. (snapshots.get)
3704
  * @param string $snapshot
3705
  * Name of the persistent disk snapshot resource to return.
3706
  * @param array $optParams Optional parameters.
3707
+ * @return GoogleGAL_Service_Compute_Snapshot
3708
  */
3709
  public function get($project, $snapshot, $optParams = array())
3710
  {
3711
  $params = array('project' => $project, 'snapshot' => $snapshot);
3712
  $params = array_merge($params, $optParams);
3713
+ return $this->call('get', array($params), "GoogleGAL_Service_Compute_Snapshot");
3714
  }
3715
  /**
3716
  * Retrieves the list of persistent disk snapshot resources contained within the
3728
  * @opt_param string maxResults
3729
  * Optional. Maximum count of results to be returned. Maximum value is 500 and default value is
3730
  * 500.
3731
+ * @return GoogleGAL_Service_Compute_SnapshotList
3732
  */
3733
  public function listSnapshots($project, $optParams = array())
3734
  {
3735
  $params = array('project' => $project);
3736
  $params = array_merge($params, $optParams);
3737
+ return $this->call('list', array($params), "GoogleGAL_Service_Compute_SnapshotList");
3738
  }
3739
  }
3740
 
3742
  * The "targetInstances" collection of methods.
3743
  * Typical usage is:
3744
  * <code>
3745
+ * $computeService = new GoogleGAL_Service_Compute(...);
3746
  * $targetInstances = $computeService->targetInstances;
3747
  * </code>
3748
  */
3749
+ class GoogleGAL_Service_Compute_TargetInstances_Resource extends GoogleGAL_Service_Resource
3750
  {
3751
 
3752
  /**
3765
  * @opt_param string maxResults
3766
  * Optional. Maximum count of results to be returned. Maximum value is 500 and default value is
3767
  * 500.
3768
+ * @return GoogleGAL_Service_Compute_TargetInstanceAggregatedList
3769
  */
3770
  public function aggregatedList($project, $optParams = array())
3771
  {
3772
  $params = array('project' => $project);
3773
  $params = array_merge($params, $optParams);
3774
+ return $this->call('aggregatedList', array($params), "GoogleGAL_Service_Compute_TargetInstanceAggregatedList");
3775
  }
3776
  /**
3777
  * Deletes the specified TargetInstance resource. (targetInstances.delete)
3783
  * @param string $targetInstance
3784
  * Name of the TargetInstance resource to delete.
3785
  * @param array $optParams Optional parameters.
3786
+ * @return GoogleGAL_Service_Compute_Operation
3787
  */
3788
  public function delete($project, $zone, $targetInstance, $optParams = array())
3789
  {
3790
  $params = array('project' => $project, 'zone' => $zone, 'targetInstance' => $targetInstance);
3791
  $params = array_merge($params, $optParams);
3792
+ return $this->call('delete', array($params), "GoogleGAL_Service_Compute_Operation");
3793
  }
3794
  /**
3795
  * Returns the specified TargetInstance resource. (targetInstances.get)
3801
  * @param string $targetInstance
3802
  * Name of the TargetInstance resource to return.
3803
  * @param array $optParams Optional parameters.
3804
+ * @return GoogleGAL_Service_Compute_TargetInstance
3805
  */
3806
  public function get($project, $zone, $targetInstance, $optParams = array())
3807
  {
3808
  $params = array('project' => $project, 'zone' => $zone, 'targetInstance' => $targetInstance);
3809
  $params = array_merge($params, $optParams);
3810
+ return $this->call('get', array($params), "GoogleGAL_Service_Compute_TargetInstance");
3811
  }
3812
  /**
3813
  * Creates a TargetInstance resource in the specified project and zone using the
3817
  * Name of the project scoping this request.
3818
  * @param string $zone
3819
  * Name of the zone scoping this request.
3820
+ * @param GoogleGAL_TargetInstance $postBody
3821
  * @param array $optParams Optional parameters.
3822
+ * @return GoogleGAL_Service_Compute_Operation
3823
  */
3824
+ public function insert($project, $zone, GoogleGAL_Service_Compute_TargetInstance $postBody, $optParams = array())
3825
  {
3826
  $params = array('project' => $project, 'zone' => $zone, 'postBody' => $postBody);
3827
  $params = array_merge($params, $optParams);
3828
+ return $this->call('insert', array($params), "GoogleGAL_Service_Compute_Operation");
3829
  }
3830
  /**
3831
  * Retrieves the list of TargetInstance resources available to the specified
3845
  * @opt_param string maxResults
3846
  * Optional. Maximum count of results to be returned. Maximum value is 500 and default value is
3847
  * 500.
3848
+ * @return GoogleGAL_Service_Compute_TargetInstanceList
3849
  */
3850
  public function listTargetInstances($project, $zone, $optParams = array())
3851
  {
3852
  $params = array('project' => $project, 'zone' => $zone);
3853
  $params = array_merge($params, $optParams);
3854
+ return $this->call('list', array($params), "GoogleGAL_Service_Compute_TargetInstanceList");
3855
  }
3856
  }
3857
 
3859
  * The "targetPools" collection of methods.
3860
  * Typical usage is:
3861
  * <code>
3862
+ * $computeService = new GoogleGAL_Service_Compute(...);
3863
  * $targetPools = $computeService->targetPools;
3864
  * </code>
3865
  */
3866
+ class GoogleGAL_Service_Compute_TargetPools_Resource extends GoogleGAL_Service_Resource
3867
  {
3868
 
3869
  /**
3875
  * Name of the region scoping this request.
3876
  * @param string $targetPool
3877
  * Name of the TargetPool resource to which health_check_url is to be added.
3878
+ * @param GoogleGAL_TargetPoolsAddHealthCheckRequest $postBody
3879
  * @param array $optParams Optional parameters.
3880
+ * @return GoogleGAL_Service_Compute_Operation
3881
  */
3882
+ public function addHealthCheck($project, $region, $targetPool, GoogleGAL_Service_Compute_TargetPoolsAddHealthCheckRequest $postBody, $optParams = array())
3883
  {
3884
  $params = array('project' => $project, 'region' => $region, 'targetPool' => $targetPool, 'postBody' => $postBody);
3885
  $params = array_merge($params, $optParams);
3886
+ return $this->call('addHealthCheck', array($params), "GoogleGAL_Service_Compute_Operation");
3887
  }
3888
  /**
3889
  * Adds instance url to targetPool. (targetPools.addInstance)
3894
  * Name of the region scoping this request.
3895
  * @param string $targetPool
3896
  * Name of the TargetPool resource to which instance_url is to be added.
3897
+ * @param GoogleGAL_TargetPoolsAddInstanceRequest $postBody
3898
  * @param array $optParams Optional parameters.
3899
+ * @return GoogleGAL_Service_Compute_Operation
3900
  */
3901
+ public function addInstance($project, $region, $targetPool, GoogleGAL_Service_Compute_TargetPoolsAddInstanceRequest $postBody, $optParams = array())
3902
  {
3903
  $params = array('project' => $project, 'region' => $region, 'targetPool' => $targetPool, 'postBody' => $postBody);
3904
  $params = array_merge($params, $optParams);
3905
+ return $this->call('addInstance', array($params), "GoogleGAL_Service_Compute_Operation");
3906
  }
3907
  /**
3908
  * Retrieves the list of target pools grouped by scope.
3920
  * @opt_param string maxResults
3921
  * Optional. Maximum count of results to be returned. Maximum value is 500 and default value is
3922
  * 500.
3923
+ * @return GoogleGAL_Service_Compute_TargetPoolAggregatedList
3924
  */
3925
  public function aggregatedList($project, $optParams = array())
3926
  {
3927
  $params = array('project' => $project);
3928
  $params = array_merge($params, $optParams);
3929
+ return $this->call('aggregatedList', array($params), "GoogleGAL_Service_Compute_TargetPoolAggregatedList");
3930
  }
3931
  /**
3932
  * Deletes the specified TargetPool resource. (targetPools.delete)
3938
  * @param string $targetPool
3939
  * Name of the TargetPool resource to delete.
3940
  * @param array $optParams Optional parameters.
3941
+ * @return GoogleGAL_Service_Compute_Operation
3942
  */
3943
  public function delete($project, $region, $targetPool, $optParams = array())
3944
  {
3945
  $params = array('project' => $project, 'region' => $region, 'targetPool' => $targetPool);
3946
  $params = array_merge($params, $optParams);
3947
+ return $this->call('delete', array($params), "GoogleGAL_Service_Compute_Operation");
3948
  }
3949
  /**
3950
  * Returns the specified TargetPool resource. (targetPools.get)
3956
  * @param string $targetPool
3957
  * Name of the TargetPool resource to return.
3958
  * @param array $optParams Optional parameters.
3959
+ * @return GoogleGAL_Service_Compute_TargetPool
3960
  */
3961
  public function get($project, $region, $targetPool, $optParams = array())
3962
  {
3963
  $params = array('project' => $project, 'region' => $region, 'targetPool' => $targetPool);
3964
  $params = array_merge($params, $optParams);
3965
+ return $this->call('get', array($params), "GoogleGAL_Service_Compute_TargetPool");
3966
  }
3967
  /**
3968
  * Gets the most recent health check results for each IP for the given instance
3974
  * Name of the region scoping this request.
3975
  * @param string $targetPool
3976
  * Name of the TargetPool resource to which the queried instance belongs.
3977
+ * @param GoogleGAL_InstanceReference $postBody
3978
  * @param array $optParams Optional parameters.
3979
+ * @return GoogleGAL_Service_Compute_TargetPoolInstanceHealth
3980
  */
3981
+ public function getHealth($project, $region, $targetPool, GoogleGAL_Service_Compute_InstanceReference $postBody, $optParams = array())
3982
  {
3983
  $params = array('project' => $project, 'region' => $region, 'targetPool' => $targetPool, 'postBody' => $postBody);
3984
  $params = array_merge($params, $optParams);
3985
+ return $this->call('getHealth', array($params), "GoogleGAL_Service_Compute_TargetPoolInstanceHealth");
3986
  }
3987
  /**
3988
  * Creates a TargetPool resource in the specified project and region using the
3992
  * Name of the project scoping this request.
3993
  * @param string $region
3994
  * Name of the region scoping this request.
3995
+ * @param GoogleGAL_TargetPool $postBody
3996
  * @param array $optParams Optional parameters.
3997
+ * @return GoogleGAL_Service_Compute_Operation
3998
  */
3999
+ public function insert($project, $region, GoogleGAL_Service_Compute_TargetPool $postBody, $optParams = array())
4000
  {
4001
  $params = array('project' => $project, 'region' => $region, 'postBody' => $postBody);
4002
  $params = array_merge($params, $optParams);
4003
+ return $this->call('insert', array($params), "GoogleGAL_Service_Compute_Operation");
4004
  }
4005
  /**
4006
  * Retrieves the list of TargetPool resources available to the specified project
4020
  * @opt_param string maxResults
4021
  * Optional. Maximum count of results to be returned. Maximum value is 500 and default value is
4022
  * 500.
4023
+ * @return GoogleGAL_Service_Compute_TargetPoolList
4024
  */
4025
  public function listTargetPools($project, $region, $optParams = array())
4026
  {
4027
  $params = array('project' => $project, 'region' => $region);
4028
  $params = array_merge($params, $optParams);
4029
+ return $this->call('list', array($params), "GoogleGAL_Service_Compute_TargetPoolList");
4030
  }
4031
  /**
4032
  * Removes health check URL from targetPool. (targetPools.removeHealthCheck)
4037
  * Name of the region scoping this request.
4038
  * @param string $targetPool
4039
  * Name of the TargetPool resource to which health_check_url is to be removed.
4040
+ * @param GoogleGAL_TargetPoolsRemoveHealthCheckRequest $postBody
4041
  * @param array $optParams Optional parameters.
4042
+ * @return GoogleGAL_Service_Compute_Operation
4043
  */
4044
+ public function removeHealthCheck($project, $region, $targetPool, GoogleGAL_Service_Compute_TargetPoolsRemoveHealthCheckRequest $postBody, $optParams = array())
4045
  {
4046
  $params = array('project' => $project, 'region' => $region, 'targetPool' => $targetPool, 'postBody' => $postBody);
4047
  $params = array_merge($params, $optParams);
4048
+ return $this->call('removeHealthCheck', array($params), "GoogleGAL_Service_Compute_Operation");
4049
  }
4050
  /**
4051
  * Removes instance URL from targetPool. (targetPools.removeInstance)
4056
  * Name of the region scoping this request.
4057
  * @param string $targetPool
4058
  * Name of the TargetPool resource to which instance_url is to be removed.
4059
+ * @param GoogleGAL_TargetPoolsRemoveInstanceRequest $postBody
4060
  * @param array $optParams Optional parameters.
4061
+ * @return GoogleGAL_Service_Compute_Operation
4062
  */
4063
+ public function removeInstance($project, $region, $targetPool, GoogleGAL_Service_Compute_TargetPoolsRemoveInstanceRequest $postBody, $optParams = array())
4064
  {
4065
  $params = array('project' => $project, 'region' => $region, 'targetPool' => $targetPool, 'postBody' => $postBody);
4066
  $params = array_merge($params, $optParams);
4067
+ return $this->call('removeInstance', array($params), "GoogleGAL_Service_Compute_Operation");
4068
  }
4069
  /**
4070
  * Changes backup pool configurations. (targetPools.setBackup)
4075
  * Name of the region scoping this request.
4076
  * @param string $targetPool
4077
  * Name of the TargetPool resource for which the backup is to be set.
4078
+ * @param GoogleGAL_TargetReference $postBody
4079
  * @param array $optParams Optional parameters.
4080
  *
4081
  * @opt_param float failoverRatio
4082
  * New failoverRatio value for the containing target pool.
4083
+ * @return GoogleGAL_Service_Compute_Operation
4084
  */
4085
+ public function setBackup($project, $region, $targetPool, GoogleGAL_Service_Compute_TargetReference $postBody, $optParams = array())
4086
  {
4087
  $params = array('project' => $project, 'region' => $region, 'targetPool' => $targetPool, 'postBody' => $postBody);
4088
  $params = array_merge($params, $optParams);
4089
+ return $this->call('setBackup', array($params), "GoogleGAL_Service_Compute_Operation");
4090
  }
4091
  }
4092
 
4094
  * The "zoneOperations" collection of methods.
4095
  * Typical usage is:
4096
  * <code>
4097
+ * $computeService = new GoogleGAL_Service_Compute(...);
4098
  * $zoneOperations = $computeService->zoneOperations;
4099
  * </code>
4100
  */
4101
+ class GoogleGAL_Service_Compute_ZoneOperations_Resource extends GoogleGAL_Service_Resource
4102
  {
4103
 
4104
  /**
4130
  * @param string $operation
4131
  * Name of the operation resource to return.
4132
  * @param array $optParams Optional parameters.
4133
+ * @return GoogleGAL_Service_Compute_Operation
4134
  */
4135
  public function get($project, $zone, $operation, $optParams = array())
4136
  {
4137
  $params = array('project' => $project, 'zone' => $zone, 'operation' => $operation);
4138
  $params = array_merge($params, $optParams);
4139
+ return $this->call('get', array($params), "GoogleGAL_Service_Compute_Operation");
4140
  }
4141
  /**
4142
  * Retrieves the list of operation resources contained within the specified
4156
  * @opt_param string maxResults
4157
  * Optional. Maximum count of results to be returned. Maximum value is 500 and default value is
4158
  * 500.
4159
+ * @return GoogleGAL_Service_Compute_OperationList
4160
  */
4161
  public function listZoneOperations($project, $zone, $optParams = array())
4162
  {
4163
  $params = array('project' => $project, 'zone' => $zone);
4164
  $params = array_merge($params, $optParams);
4165
+ return $this->call('list', array($params), "GoogleGAL_Service_Compute_OperationList");
4166
  }
4167
  }
4168
 
4170
  * The "zones" collection of methods.
4171
  * Typical usage is:
4172
  * <code>
4173
+ * $computeService = new GoogleGAL_Service_Compute(...);
4174
  * $zones = $computeService->zones;
4175
  * </code>
4176
  */
4177
+ class GoogleGAL_Service_Compute_Zones_Resource extends GoogleGAL_Service_Resource
4178
  {
4179
 
4180
  /**
4185
  * @param string $zone
4186
  * Name of the zone resource to return.
4187
  * @param array $optParams Optional parameters.
4188
+ * @return GoogleGAL_Service_Compute_Zone
4189
  */
4190
  public function get($project, $zone, $optParams = array())
4191
  {
4192
  $params = array('project' => $project, 'zone' => $zone);
4193
  $params = array_merge($params, $optParams);
4194
+ return $this->call('get', array($params), "GoogleGAL_Service_Compute_Zone");
4195
  }
4196
  /**
4197
  * Retrieves the list of zone resources available to the specified project.
4209
  * @opt_param string maxResults
4210
  * Optional. Maximum count of results to be returned. Maximum value is 500 and default value is
4211
  * 500.
4212
+ * @return GoogleGAL_Service_Compute_ZoneList
4213
  */
4214
  public function listZones($project, $optParams = array())
4215
  {
4216
  $params = array('project' => $project);
4217
  $params = array_merge($params, $optParams);
4218
+ return $this->call('list', array($params), "GoogleGAL_Service_Compute_ZoneList");
4219
  }
4220
  }
4221
 
4222
 
4223
 
4224
 
4225
+ class GoogleGAL_Service_Compute_AccessConfig extends GoogleGAL_Model
4226
  {
4227
  public $kind;
4228
  public $name;
4270
  }
4271
  }
4272
 
4273
+ class GoogleGAL_Service_Compute_Address extends GoogleGAL_Collection
4274
  {
4275
  public $address;
4276
  public $creationTimestamp;
4384
  }
4385
  }
4386
 
4387
+ class GoogleGAL_Service_Compute_AddressAggregatedList extends GoogleGAL_Model
4388
  {
4389
  public $id;
4390
+ protected $itemsType = 'GoogleGAL_Service_Compute_AddressesScopedList';
4391
  protected $itemsDataType = 'map';
4392
  public $kind;
4393
  public $nextPageToken;
4444
  }
4445
  }
4446
 
4447
+ class GoogleGAL_Service_Compute_AddressList extends GoogleGAL_Collection
4448
  {
4449
  public $id;
4450
+ protected $itemsType = 'GoogleGAL_Service_Compute_Address';
4451
  protected $itemsDataType = 'array';
4452
  public $kind;
4453
  public $nextPageToken;
4504
  }
4505
  }
4506
 
4507
+ class GoogleGAL_Service_Compute_AddressesScopedList extends GoogleGAL_Collection
4508
  {
4509
+ protected $addressesType = 'GoogleGAL_Service_Compute_Address';
4510
  protected $addressesDataType = 'array';
4511
+ protected $warningType = 'GoogleGAL_Service_Compute_AddressesScopedListWarning';
4512
  protected $warningDataType = '';
4513
 
4514
  public function setAddresses($addresses)
4521
  return $this->addresses;
4522
  }
4523
 
4524
+ public function setWarning(GoogleGAL_Service_Compute_AddressesScopedListWarning $warning)
4525
  {
4526
  $this->warning = $warning;
4527
  }
4532
  }
4533
  }
4534
 
4535
+ class GoogleGAL_Service_Compute_AddressesScopedListWarning extends GoogleGAL_Collection
4536
  {
4537
  public $code;
4538
+ protected $dataType = 'GoogleGAL_Service_Compute_AddressesScopedListWarningData';
4539
  protected $dataDataType = 'array';
4540
  public $message;
4541
 
4570
  }
4571
  }
4572
 
4573
+ class GoogleGAL_Service_Compute_AddressesScopedListWarningData extends GoogleGAL_Model
4574
  {
4575
  public $key;
4576
  public $value;
4596
  }
4597
  }
4598
 
4599
+ class GoogleGAL_Service_Compute_AttachedDisk extends GoogleGAL_Model
4600
  {
4601
  public $autoDelete;
4602
  public $boot;
4603
  public $deviceName;
4604
  public $index;
4605
+ protected $initializeParamsType = 'GoogleGAL_Service_Compute_AttachedDiskInitializeParams';
4606
  protected $initializeParamsDataType = '';
4607
  public $kind;
4608
  public $mode;
4649
  return $this->index;
4650
  }
4651
 
4652
+ public function setInitializeParams(GoogleGAL_Service_Compute_AttachedDiskInitializeParams $initializeParams)
4653
  {
4654
  $this->initializeParams = $initializeParams;
4655
  }
4700
  }
4701
  }
4702
 
4703
+ class GoogleGAL_Service_Compute_AttachedDiskInitializeParams extends GoogleGAL_Model
4704
  {
4705
  public $diskName;
4706
  public $diskSizeGb;
4737
  }
4738
  }
4739
 
4740
+ class GoogleGAL_Service_Compute_DeprecationStatus extends GoogleGAL_Model
4741
  {
4742
  public $deleted;
4743
  public $deprecated;
4796
  }
4797
  }
4798
 
4799
+ class GoogleGAL_Service_Compute_Disk extends GoogleGAL_Model
4800
  {
4801
  public $creationTimestamp;
4802
  public $description;
4954
  }
4955
  }
4956
 
4957
+ class GoogleGAL_Service_Compute_DiskAggregatedList extends GoogleGAL_Model
4958
  {
4959
  public $id;
4960
+ protected $itemsType = 'GoogleGAL_Service_Compute_DisksScopedList';
4961
  protected $itemsDataType = 'map';
4962
  public $kind;
4963
  public $nextPageToken;
5014
  }
5015
  }
5016
 
5017
+ class GoogleGAL_Service_Compute_DiskList extends GoogleGAL_Collection
5018
  {
5019
  public $id;
5020
+ protected $itemsType = 'GoogleGAL_Service_Compute_Disk';
5021
  protected $itemsDataType = 'array';
5022
  public $kind;
5023
  public $nextPageToken;
5074
  }
5075
  }
5076
 
5077
+ class GoogleGAL_Service_Compute_DisksScopedList extends GoogleGAL_Collection
5078
  {
5079
+ protected $disksType = 'GoogleGAL_Service_Compute_Disk';
5080
  protected $disksDataType = 'array';
5081
+ protected $warningType = 'GoogleGAL_Service_Compute_DisksScopedListWarning';
5082
  protected $warningDataType = '';
5083
 
5084
  public function setDisks($disks)
5091
  return $this->disks;
5092
  }
5093
 
5094
+ public function setWarning(GoogleGAL_Service_Compute_DisksScopedListWarning $warning)
5095
  {
5096
  $this->warning = $warning;
5097
  }
5102
  }
5103
  }
5104
 
5105
+ class GoogleGAL_Service_Compute_DisksScopedListWarning extends GoogleGAL_Collection
5106
  {
5107
  public $code;
5108
+ protected $dataType = 'GoogleGAL_Service_Compute_DisksScopedListWarningData';
5109
  protected $dataDataType = 'array';
5110
  public $message;
5111
 
5140
  }
5141
  }
5142
 
5143
+ class GoogleGAL_Service_Compute_DisksScopedListWarningData extends GoogleGAL_Model
5144
  {
5145
  public $key;
5146
  public $value;
5166
  }
5167
  }
5168
 
5169
+ class GoogleGAL_Service_Compute_Firewall extends GoogleGAL_Collection
5170
  {
5171
+ protected $allowedType = 'GoogleGAL_Service_Compute_FirewallAllowed';
5172
  protected $allowedDataType = 'array';
5173
  public $creationTimestamp;
5174
  public $description;
5292
  }
5293
  }
5294
 
5295
+ class GoogleGAL_Service_Compute_FirewallAllowed extends GoogleGAL_Collection
5296
  {
5297
  public $iPProtocol;
5298
  public $ports;
5318
  }
5319
  }
5320
 
5321
+ class GoogleGAL_Service_Compute_FirewallList extends GoogleGAL_Collection
5322
  {
5323
  public $id;
5324
+ protected $itemsType = 'GoogleGAL_Service_Compute_Firewall';
5325
  protected $itemsDataType = 'array';
5326
  public $kind;
5327
  public $nextPageToken;
5378
  }
5379
  }
5380
 
5381
+ class GoogleGAL_Service_Compute_ForwardingRule extends GoogleGAL_Model
5382
  {
5383
  public $iPAddress;
5384
  public $iPProtocol;
5503
  }
5504
  }
5505
 
5506
+ class GoogleGAL_Service_Compute_ForwardingRuleAggregatedList extends GoogleGAL_Model
5507
  {
5508
  public $id;
5509
+ protected $itemsType = 'GoogleGAL_Service_Compute_ForwardingRulesScopedList';
5510
  protected $itemsDataType = 'map';
5511
  public $kind;
5512
  public $nextPageToken;
5563
  }
5564
  }
5565
 
5566
+ class GoogleGAL_Service_Compute_ForwardingRuleList extends GoogleGAL_Collection
5567
  {
5568
  public $id;
5569
+ protected $itemsType = 'GoogleGAL_Service_Compute_ForwardingRule';
5570
  protected $itemsDataType = 'array';
5571
  public $kind;
5572
  public $nextPageToken;
5623
  }
5624
  }
5625
 
5626
+ class GoogleGAL_Service_Compute_ForwardingRulesScopedList extends GoogleGAL_Collection
5627
  {
5628
+ protected $forwardingRulesType = 'GoogleGAL_Service_Compute_ForwardingRule';
5629
  protected $forwardingRulesDataType = 'array';
5630
+ protected $warningType = 'GoogleGAL_Service_Compute_ForwardingRulesScopedListWarning';
5631
  protected $warningDataType = '';
5632
 
5633
  public function setForwardingRules($forwardingRules)
5640
  return $this->forwardingRules;
5641
  }
5642
 
5643
+ public function setWarning(GoogleGAL_Service_Compute_ForwardingRulesScopedListWarning $warning)
5644
  {
5645
  $this->warning = $warning;
5646
  }
5651
  }
5652
  }
5653
 
5654
+ class GoogleGAL_Service_Compute_ForwardingRulesScopedListWarning extends GoogleGAL_Collection
5655
  {
5656
  public $code;
5657
+ protected $dataType = 'GoogleGAL_Service_Compute_ForwardingRulesScopedListWarningData';
5658
  protected $dataDataType = 'array';
5659
  public $message;
5660
 
5689
  }
5690
  }
5691
 
5692
+ class GoogleGAL_Service_Compute_ForwardingRulesScopedListWarningData extends GoogleGAL_Model
5693
  {
5694
  public $key;
5695
  public $value;
5715
  }
5716
  }
5717
 
5718
+ class GoogleGAL_Service_Compute_HealthCheckReference extends GoogleGAL_Model
5719
  {
5720
  public $healthCheck;
5721
 
5730
  }
5731
  }
5732
 
5733
+ class GoogleGAL_Service_Compute_HealthStatus extends GoogleGAL_Model
5734
  {
5735
  public $healthState;
5736
  public $instance;
5767
  }
5768
  }
5769
 
5770
+ class GoogleGAL_Service_Compute_HttpHealthCheck extends GoogleGAL_Model
5771
  {
5772
  public $checkIntervalSec;
5773
  public $creationTimestamp;
5914
  }
5915
  }
5916
 
5917
+ class GoogleGAL_Service_Compute_HttpHealthCheckList extends GoogleGAL_Collection
5918
  {
5919
  public $id;
5920
+ protected $itemsType = 'GoogleGAL_Service_Compute_HttpHealthCheck';
5921
  protected $itemsDataType = 'array';
5922
  public $kind;
5923
  public $nextPageToken;
5974
  }
5975
  }
5976
 
5977
+ class GoogleGAL_Service_Compute_Image extends GoogleGAL_Model
5978
  {
5979
  public $archiveSizeBytes;
5980
  public $creationTimestamp;
5981
+ protected $deprecatedType = 'GoogleGAL_Service_Compute_DeprecationStatus';
5982
  protected $deprecatedDataType = '';
5983
  public $description;
5984
  public $id;
5985
  public $kind;
5986
  public $name;
5987
+ protected $rawDiskType = 'GoogleGAL_Service_Compute_ImageRawDisk';
5988
  protected $rawDiskDataType = '';
5989
  public $selfLink;
5990
  public $sourceType;
6010
  return $this->creationTimestamp;
6011
  }
6012
 
6013
+ public function setDeprecated(GoogleGAL_Service_Compute_DeprecationStatus $deprecated)
6014
  {
6015
  $this->deprecated = $deprecated;
6016
  }
6060
  return $this->name;
6061
  }
6062
 
6063
+ public function setRawDisk(GoogleGAL_Service_Compute_ImageRawDisk $rawDisk)
6064
  {
6065
  $this->rawDisk = $rawDisk;
6066
  }
6101
  }
6102
  }
6103
 
6104
+ class GoogleGAL_Service_Compute_ImageList extends GoogleGAL_Collection
6105
  {
6106
  public $id;
6107
+ protected $itemsType = 'GoogleGAL_Service_Compute_Image';
6108
  protected $itemsDataType = 'array';
6109
  public $kind;
6110
  public $nextPageToken;
6161
  }
6162
  }
6163
 
6164
+ class GoogleGAL_Service_Compute_ImageRawDisk extends GoogleGAL_Model
6165
  {
6166
  public $containerType;
6167
  public $sha1Checksum;
6198
  }
6199
  }
6200
 
6201
+ class GoogleGAL_Service_Compute_Instance extends GoogleGAL_Collection
6202
  {
6203
  public $canIpForward;
6204
  public $creationTimestamp;
6205
  public $description;
6206
+ protected $disksType = 'GoogleGAL_Service_Compute_AttachedDisk';
6207
  protected $disksDataType = 'array';
6208
  public $id;
6209
  public $kind;
6210
  public $machineType;
6211
+ protected $metadataType = 'GoogleGAL_Service_Compute_Metadata';
6212
  protected $metadataDataType = '';
6213
  public $name;
6214
+ protected $networkInterfacesType = 'GoogleGAL_Service_Compute_NetworkInterface';
6215
  protected $networkInterfacesDataType = 'array';
6216
+ protected $schedulingType = 'GoogleGAL_Service_Compute_Scheduling';
6217
  protected $schedulingDataType = '';
6218
  public $selfLink;
6219
+ protected $serviceAccountsType = 'GoogleGAL_Service_Compute_ServiceAccount';
6220
  protected $serviceAccountsDataType = 'array';
6221
  public $status;
6222
  public $statusMessage;
6223
+ protected $tagsType = 'GoogleGAL_Service_Compute_Tags';
6224
  protected $tagsDataType = '';
6225
  public $zone;
6226
 
6294
  return $this->machineType;
6295
  }
6296
 
6297
+ public function setMetadata(GoogleGAL_Service_Compute_Metadata $metadata)
6298
  {
6299
  $this->metadata = $metadata;
6300
  }
6324
  return $this->networkInterfaces;
6325
  }
6326
 
6327
+ public function setScheduling(GoogleGAL_Service_Compute_Scheduling $scheduling)
6328
  {
6329
  $this->scheduling = $scheduling;
6330
  }
6374
  return $this->statusMessage;
6375
  }
6376
 
6377
+ public function setTags(GoogleGAL_Service_Compute_Tags $tags)
6378
  {
6379
  $this->tags = $tags;
6380
  }
6395
  }
6396
  }
6397
 
6398
+ class GoogleGAL_Service_Compute_InstanceAggregatedList extends GoogleGAL_Model
6399
  {
6400
  public $id;
6401
+ protected $itemsType = 'GoogleGAL_Service_Compute_InstancesScopedList';
6402
  protected $itemsDataType = 'map';
6403
  public $kind;
6404
  public $nextPageToken;
6455
  }
6456
  }
6457
 
6458
+ class GoogleGAL_Service_Compute_InstanceList extends GoogleGAL_Collection
6459
  {
6460
  public $id;
6461
+ protected $itemsType = 'GoogleGAL_Service_Compute_Instance';
6462
  protected $itemsDataType = 'array';
6463
  public $kind;
6464
  public $nextPageToken;
6515
  }
6516
  }
6517
 
6518
+ class GoogleGAL_Service_Compute_InstanceReference extends GoogleGAL_Model
6519
  {
6520
  public $instance;
6521
 
6530
  }
6531
  }
6532
 
6533
+ class GoogleGAL_Service_Compute_InstancesScopedList extends GoogleGAL_Collection
6534
  {
6535
+ protected $instancesType = 'GoogleGAL_Service_Compute_Instance';
6536
  protected $instancesDataType = 'array';
6537
+ protected $warningType = 'GoogleGAL_Service_Compute_InstancesScopedListWarning';
6538
  protected $warningDataType = '';
6539
 
6540
  public function setInstances($instances)
6547
  return $this->instances;
6548
  }
6549
 
6550
+ public function setWarning(GoogleGAL_Service_Compute_InstancesScopedListWarning $warning)
6551
  {
6552
  $this->warning = $warning;
6553
  }
6558
  }
6559
  }
6560
 
6561
+ class GoogleGAL_Service_Compute_InstancesScopedListWarning extends GoogleGAL_Collection
6562
  {
6563
  public $code;
6564
+ protected $dataType = 'GoogleGAL_Service_Compute_InstancesScopedListWarningData';
6565
  protected $dataDataType = 'array';
6566
  public $message;
6567
 
6596
  }
6597
  }
6598
 
6599
+ class GoogleGAL_Service_Compute_InstancesScopedListWarningData extends GoogleGAL_Model
6600
  {
6601
  public $key;
6602
  public $value;
6622
  }
6623
  }
6624
 
6625
+ class GoogleGAL_Service_Compute_MachineType extends GoogleGAL_Collection
6626
  {
6627
  public $creationTimestamp;
6628
+ protected $deprecatedType = 'GoogleGAL_Service_Compute_DeprecationStatus';
6629
  protected $deprecatedDataType = '';
6630
  public $description;
6631
  public $guestCpus;
6636
  public $maximumPersistentDisksSizeGb;
6637
  public $memoryMb;
6638
  public $name;
6639
+ protected $scratchDisksType = 'GoogleGAL_Service_Compute_MachineTypeScratchDisks';
6640
  protected $scratchDisksDataType = 'array';
6641
  public $selfLink;
6642
  public $zone;
6651
  return $this->creationTimestamp;
6652
  }
6653
 
6654
+ public function setDeprecated(GoogleGAL_Service_Compute_DeprecationStatus $deprecated)
6655
  {
6656
  $this->deprecated = $deprecated;
6657
  }
6782
  }
6783
  }
6784
 
6785
+ class GoogleGAL_Service_Compute_MachineTypeAggregatedList extends GoogleGAL_Model
6786
  {
6787
  public $id;
6788
+ protected $itemsType = 'GoogleGAL_Service_Compute_MachineTypesScopedList';
6789
  protected $itemsDataType = 'map';
6790
  public $kind;
6791
  public $nextPageToken;
6842
  }
6843
  }
6844
 
6845
+ class GoogleGAL_Service_Compute_MachineTypeList extends GoogleGAL_Collection
6846
  {
6847
  public $id;
6848
+ protected $itemsType = 'GoogleGAL_Service_Compute_MachineType';
6849
  protected $itemsDataType = 'array';
6850
  public $kind;
6851
  public $nextPageToken;
6902
  }
6903
  }
6904
 
6905
+ class GoogleGAL_Service_Compute_MachineTypeScratchDisks extends GoogleGAL_Model
6906
  {
6907
  public $diskGb;
6908
 
6917
  }
6918
  }
6919
 
6920
+ class GoogleGAL_Service_Compute_MachineTypesScopedList extends GoogleGAL_Collection
6921
  {
6922
+ protected $machineTypesType = 'GoogleGAL_Service_Compute_MachineType';
6923
  protected $machineTypesDataType = 'array';
6924
+ protected $warningType = 'GoogleGAL_Service_Compute_MachineTypesScopedListWarning';
6925
  protected $warningDataType = '';
6926
 
6927
  public function setMachineTypes($machineTypes)
6934
  return $this->machineTypes;
6935
  }
6936
 
6937
+ public function setWarning(GoogleGAL_Service_Compute_MachineTypesScopedListWarning $warning)
6938
  {
6939
  $this->warning = $warning;
6940
  }
6945
  }
6946
  }
6947
 
6948
+ class GoogleGAL_Service_Compute_MachineTypesScopedListWarning extends GoogleGAL_Collection
6949
  {
6950
  public $code;
6951
+ protected $dataType = 'GoogleGAL_Service_Compute_MachineTypesScopedListWarningData';
6952
  protected $dataDataType = 'array';
6953
  public $message;
6954
 
6983
  }
6984
  }
6985
 
6986
+ class GoogleGAL_Service_Compute_MachineTypesScopedListWarningData extends GoogleGAL_Model
6987
  {
6988
  public $key;
6989
  public $value;
7009
  }
7010
  }
7011
 
7012
+ class GoogleGAL_Service_Compute_Metadata extends GoogleGAL_Collection
7013
  {
7014
  public $fingerprint;
7015
+ protected $itemsType = 'GoogleGAL_Service_Compute_MetadataItems';
7016
  protected $itemsDataType = 'array';
7017
  public $kind;
7018
 
7047
  }
7048
  }
7049
 
7050
+ class GoogleGAL_Service_Compute_MetadataItems extends GoogleGAL_Model
7051
  {
7052
  public $key;
7053
  public $value;
7073
  }
7074
  }
7075
 
7076
+ class GoogleGAL_Service_Compute_Network extends GoogleGAL_Model
7077
  {
7078
  public $iPv4Range;
7079
  public $creationTimestamp;
7165
  }
7166
  }
7167
 
7168
+ class GoogleGAL_Service_Compute_NetworkInterface extends GoogleGAL_Collection
7169
  {
7170
+ protected $accessConfigsType = 'GoogleGAL_Service_Compute_AccessConfig';
7171
  protected $accessConfigsDataType = 'array';
7172
  public $name;
7173
  public $network;
7214
  }
7215
  }
7216
 
7217
+ class GoogleGAL_Service_Compute_NetworkList extends GoogleGAL_Collection
7218
  {
7219
  public $id;
7220
+ protected $itemsType = 'GoogleGAL_Service_Compute_Network';
7221
  protected $itemsDataType = 'array';
7222
  public $kind;
7223
  public $nextPageToken;
7274
  }
7275
  }
7276
 
7277
+ class GoogleGAL_Service_Compute_Operation extends GoogleGAL_Collection
7278
  {
7279
  public $clientOperationId;
7280
  public $creationTimestamp;
7281
  public $endTime;
7282
+ protected $errorType = 'GoogleGAL_Service_Compute_OperationError';
7283
  protected $errorDataType = '';
7284
  public $httpErrorMessage;
7285
  public $httpErrorStatusCode;
7297
  public $targetId;
7298
  public $targetLink;
7299
  public $user;
7300
+ protected $warningsType = 'GoogleGAL_Service_Compute_OperationWarnings';
7301
  protected $warningsDataType = 'array';
7302
  public $zone;
7303
 
7331
  return $this->endTime;
7332
  }
7333
 
7334
+ public function setError(GoogleGAL_Service_Compute_OperationError $error)
7335
  {
7336
  $this->error = $error;
7337
  }
7522
  }
7523
  }
7524
 
7525
+ class GoogleGAL_Service_Compute_OperationAggregatedList extends GoogleGAL_Model
7526
  {
7527
  public $id;
7528
+ protected $itemsType = 'GoogleGAL_Service_Compute_OperationsScopedList';
7529
  protected $itemsDataType = 'map';
7530
  public $kind;
7531
  public $nextPageToken;
7582
  }
7583
  }
7584
 
7585
+ class GoogleGAL_Service_Compute_OperationError extends GoogleGAL_Collection
7586
  {
7587
+ protected $errorsType = 'GoogleGAL_Service_Compute_OperationErrorErrors';
7588
  protected $errorsDataType = 'array';
7589
 
7590
  public function setErrors($errors)
7598
  }
7599
  }
7600
 
7601
+ class GoogleGAL_Service_Compute_OperationErrorErrors extends GoogleGAL_Model
7602
  {
7603
  public $code;
7604
  public $location;
7635
  }
7636
  }
7637
 
7638
+ class GoogleGAL_Service_Compute_OperationList extends GoogleGAL_Collection
7639
  {
7640
  public $id;
7641
+ protected $itemsType = 'GoogleGAL_Service_Compute_Operation';
7642
  protected $itemsDataType = 'array';
7643
  public $kind;
7644
  public $nextPageToken;
7695
  }
7696
  }
7697
 
7698
+ class GoogleGAL_Service_Compute_OperationWarnings extends GoogleGAL_Collection
7699
  {
7700
  public $code;
7701
+ protected $dataType = 'GoogleGAL_Service_Compute_OperationWarningsData';
7702
  protected $dataDataType = 'array';
7703
  public $message;
7704
 
7733
  }
7734
  }
7735
 
7736
+ class GoogleGAL_Service_Compute_OperationWarningsData extends GoogleGAL_Model
7737
  {
7738
  public $key;
7739
  public $value;
7759
  }
7760
  }
7761
 
7762
+ class GoogleGAL_Service_Compute_OperationsScopedList extends GoogleGAL_Collection
7763
  {
7764
+ protected $operationsType = 'GoogleGAL_Service_Compute_Operation';
7765
  protected $operationsDataType = 'array';
7766
+ protected $warningType = 'GoogleGAL_Service_Compute_OperationsScopedListWarning';
7767
  protected $warningDataType = '';
7768
 
7769
  public function setOperations($operations)
7776
  return $this->operations;
7777
  }
7778
 
7779
+ public function setWarning(GoogleGAL_Service_Compute_OperationsScopedListWarning $warning)
7780
  {
7781
  $this->warning = $warning;
7782
  }
7787
  }
7788
  }
7789
 
7790
+ class GoogleGAL_Service_Compute_OperationsScopedListWarning extends GoogleGAL_Collection
7791
  {
7792
  public $code;
7793
+ protected $dataType = 'GoogleGAL_Service_Compute_OperationsScopedListWarningData';
7794
  protected $dataDataType = 'array';
7795
  public $message;
7796
 
7825
  }
7826
  }
7827
 
7828
+ class GoogleGAL_Service_Compute_OperationsScopedListWarningData extends GoogleGAL_Model
7829
  {
7830
  public $key;
7831
  public $value;
7851
  }
7852
  }
7853
 
7854
+ class GoogleGAL_Service_Compute_Project extends GoogleGAL_Collection
7855
  {
7856
+ protected $commonInstanceMetadataType = 'GoogleGAL_Service_Compute_Metadata';
7857
  protected $commonInstanceMetadataDataType = '';
7858
  public $creationTimestamp;
7859
  public $description;
7860
  public $id;
7861
  public $kind;
7862
  public $name;
7863
+ protected $quotasType = 'GoogleGAL_Service_Compute_Quota';
7864
  protected $quotasDataType = 'array';
7865
  public $selfLink;
7866
 
7867
+ public function setCommonInstanceMetadata(GoogleGAL_Service_Compute_Metadata $commonInstanceMetadata)
7868
  {
7869
  $this->commonInstanceMetadata = $commonInstanceMetadata;
7870
  }
7945
  }
7946
  }
7947
 
7948
+ class GoogleGAL_Service_Compute_Quota extends GoogleGAL_Model
7949
  {
7950
  public $limit;
7951
  public $metric;
7982
  }
7983
  }
7984
 
7985
+ class GoogleGAL_Service_Compute_Region extends GoogleGAL_Collection
7986
  {
7987
  public $creationTimestamp;
7988
+ protected $deprecatedType = 'GoogleGAL_Service_Compute_DeprecationStatus';
7989
  protected $deprecatedDataType = '';
7990
  public $description;
7991
  public $id;
7992
  public $kind;
7993
  public $name;
7994
+ protected $quotasType = 'GoogleGAL_Service_Compute_Quota';
7995
  protected $quotasDataType = 'array';
7996
  public $selfLink;
7997
  public $status;
8007
  return $this->creationTimestamp;
8008
  }
8009
 
8010
+ public function setDeprecated(GoogleGAL_Service_Compute_DeprecationStatus $deprecated)
8011
  {
8012
  $this->deprecated = $deprecated;
8013
  }
8098
  }
8099
  }
8100
 
8101
+ class GoogleGAL_Service_Compute_RegionList extends GoogleGAL_Collection
8102
  {
8103
  public $id;
8104
+ protected $itemsType = 'GoogleGAL_Service_Compute_Region';
8105
  protected $itemsDataType = 'array';
8106
  public $kind;
8107
  public $nextPageToken;
8158
  }
8159
  }
8160
 
8161
+ class GoogleGAL_Service_Compute_Route extends GoogleGAL_Collection
8162
  {
8163
  public $creationTimestamp;
8164
  public $description;
8174
  public $priority;
8175
  public $selfLink;
8176
  public $tags;
8177
+ protected $warningsType = 'GoogleGAL_Service_Compute_RouteWarnings';
8178
  protected $warningsDataType = 'array';
8179
 
8180
  public function setCreationTimestamp($creationTimestamp)
8328
  }
8329
  }
8330
 
8331
+ class GoogleGAL_Service_Compute_RouteList extends GoogleGAL_Collection
8332
  {
8333
  public $id;
8334
+ protected $itemsType = 'GoogleGAL_Service_Compute_Route';
8335
  protected $itemsDataType = 'array';
8336
  public $kind;
8337
  public $nextPageToken;
8388
  }
8389
  }
8390
 
8391
+ class GoogleGAL_Service_Compute_RouteWarnings extends GoogleGAL_Collection
8392
  {
8393
  public $code;
8394
+ protected $dataType = 'GoogleGAL_Service_Compute_RouteWarningsData';
8395
  protected $dataDataType = 'array';
8396
  public $message;
8397
 
8426
  }
8427
  }
8428
 
8429
+ class GoogleGAL_Service_Compute_RouteWarningsData extends GoogleGAL_Model
8430
  {
8431
  public $key;
8432
  public $value;
8452
  }
8453
  }
8454
 
8455
+ class GoogleGAL_Service_Compute_Scheduling extends GoogleGAL_Model
8456
  {
8457
  public $automaticRestart;
8458
  public $onHostMaintenance;
8478
  }
8479
  }
8480
 
8481
+ class GoogleGAL_Service_Compute_SerialPortOutput extends GoogleGAL_Model
8482
  {
8483
  public $contents;
8484
  public $kind;
8515
  }
8516
  }
8517
 
8518
+ class GoogleGAL_Service_Compute_ServiceAccount extends GoogleGAL_Collection
8519
  {
8520
  public $email;
8521
  public $scopes;
8541
  }
8542
  }
8543
 
8544
+ class GoogleGAL_Service_Compute_Snapshot extends GoogleGAL_Model
8545
  {
8546
  public $creationTimestamp;
8547
  public $description;
8677
  }
8678
  }
8679
 
8680
+ class GoogleGAL_Service_Compute_SnapshotList extends GoogleGAL_Collection
8681
  {
8682
  public $id;
8683
+ protected $itemsType = 'GoogleGAL_Service_Compute_Snapshot';
8684
  protected $itemsDataType = 'array';
8685
  public $kind;
8686
  public $nextPageToken;
8737
  }
8738
  }
8739
 
8740
+ class GoogleGAL_Service_Compute_Tags extends GoogleGAL_Collection
8741
  {
8742
  public $fingerprint;
8743
  public $items;
8763
  }
8764
  }
8765
 
8766
+ class GoogleGAL_Service_Compute_TargetInstance extends GoogleGAL_Model
8767
  {
8768
  public $creationTimestamp;
8769
  public $description;
8866
  }
8867
  }
8868
 
8869
+ class GoogleGAL_Service_Compute_TargetInstanceAggregatedList extends GoogleGAL_Model
8870
  {
8871
  public $id;
8872
+ protected $itemsType = 'GoogleGAL_Service_Compute_TargetInstancesScopedList';
8873
  protected $itemsDataType = 'map';
8874
  public $kind;
8875
  public $nextPageToken;
8926
  }
8927
  }
8928
 
8929
+ class GoogleGAL_Service_Compute_TargetInstanceList extends GoogleGAL_Collection
8930
  {
8931
  public $id;
8932
+ protected $itemsType = 'GoogleGAL_Service_Compute_TargetInstance';
8933
  protected $itemsDataType = 'array';
8934
  public $kind;
8935
  public $nextPageToken;
8986
  }
8987
  }
8988
 
8989
+ class GoogleGAL_Service_Compute_TargetInstancesScopedList extends GoogleGAL_Collection
8990
  {
8991
+ protected $targetInstancesType = 'GoogleGAL_Service_Compute_TargetInstance';
8992
  protected $targetInstancesDataType = 'array';
8993
+ protected $warningType = 'GoogleGAL_Service_Compute_TargetInstancesScopedListWarning';
8994
  protected $warningDataType = '';
8995
 
8996
  public function setTargetInstances($targetInstances)
9003
  return $this->targetInstances;
9004
  }
9005
 
9006
+ public function setWarning(GoogleGAL_Service_Compute_TargetInstancesScopedListWarning $warning)
9007
  {
9008
  $this->warning = $warning;
9009
  }
9014
  }
9015
  }
9016
 
9017
+ class GoogleGAL_Service_Compute_TargetInstancesScopedListWarning extends GoogleGAL_Collection
9018
  {
9019
  public $code;
9020
+ protected $dataType = 'GoogleGAL_Service_Compute_TargetInstancesScopedListWarningData';
9021
  protected $dataDataType = 'array';
9022
  public $message;
9023
 
9052
  }
9053
  }
9054
 
9055
+ class GoogleGAL_Service_Compute_TargetInstancesScopedListWarningData extends GoogleGAL_Model
9056
  {
9057
  public $key;
9058
  public $value;
9078
  }
9079
  }
9080
 
9081
+ class GoogleGAL_Service_Compute_TargetPool extends GoogleGAL_Collection
9082
  {
9083
  public $backupPool;
9084
  public $creationTimestamp;
9214
  }
9215
  }
9216
 
9217
+ class GoogleGAL_Service_Compute_TargetPoolAggregatedList extends GoogleGAL_Model
9218
  {
9219
  public $id;
9220
+ protected $itemsType = 'GoogleGAL_Service_Compute_TargetPoolsScopedList';
9221
  protected $itemsDataType = 'map';
9222
  public $kind;
9223
  public $nextPageToken;
9274
  }
9275
  }
9276
 
9277
+ class GoogleGAL_Service_Compute_TargetPoolInstanceHealth extends GoogleGAL_Collection
9278
  {
9279
+ protected $healthStatusType = 'GoogleGAL_Service_Compute_HealthStatus';
9280
  protected $healthStatusDataType = 'array';
9281
  public $kind;
9282
 
9301
  }
9302
  }
9303
 
9304
+ class GoogleGAL_Service_Compute_TargetPoolList extends GoogleGAL_Collection
9305
  {
9306
  public $id;
9307
+ protected $itemsType = 'GoogleGAL_Service_Compute_TargetPool';
9308
  protected $itemsDataType = 'array';
9309
  public $kind;
9310
  public $nextPageToken;
9361
  }
9362
  }
9363
 
9364
+ class GoogleGAL_Service_Compute_TargetPoolsAddHealthCheckRequest extends GoogleGAL_Collection
9365
  {
9366
+ protected $healthChecksType = 'GoogleGAL_Service_Compute_HealthCheckReference';
9367
  protected $healthChecksDataType = 'array';
9368
 
9369
  public function setHealthChecks($healthChecks)
9377
  }
9378
  }
9379
 
9380
+ class GoogleGAL_Service_Compute_TargetPoolsAddInstanceRequest extends GoogleGAL_Collection
9381
  {
9382
+ protected $instancesType = 'GoogleGAL_Service_Compute_InstanceReference';
9383
  protected $instancesDataType = 'array';
9384
 
9385
  public function setInstances($instances)
9393
  }
9394
  }
9395
 
9396
+ class GoogleGAL_Service_Compute_TargetPoolsRemoveHealthCheckRequest extends GoogleGAL_Collection
9397
  {
9398
+ protected $healthChecksType = 'GoogleGAL_Service_Compute_HealthCheckReference';
9399
  protected $healthChecksDataType = 'array';
9400
 
9401
  public function setHealthChecks($healthChecks)
9409
  }
9410
  }
9411
 
9412
+ class GoogleGAL_Service_Compute_TargetPoolsRemoveInstanceRequest extends GoogleGAL_Collection
9413
  {
9414
+ protected $instancesType = 'GoogleGAL_Service_Compute_InstanceReference';
9415
  protected $instancesDataType = 'array';
9416
 
9417
  public function setInstances($instances)
9425
  }
9426
  }
9427
 
9428
+ class GoogleGAL_Service_Compute_TargetPoolsScopedList extends GoogleGAL_Collection
9429
  {
9430
+ protected $targetPoolsType = 'GoogleGAL_Service_Compute_TargetPool';
9431
  protected $targetPoolsDataType = 'array';
9432
+ protected $warningType = 'GoogleGAL_Service_Compute_TargetPoolsScopedListWarning';
9433
  protected $warningDataType = '';
9434
 
9435
  public function setTargetPools($targetPools)
9442
  return $this->targetPools;
9443
  }
9444
 
9445
+ public function setWarning(GoogleGAL_Service_Compute_TargetPoolsScopedListWarning $warning)
9446
  {
9447
  $this->warning = $warning;
9448
  }
9453
  }
9454
  }
9455
 
9456
+ class GoogleGAL_Service_Compute_TargetPoolsScopedListWarning extends GoogleGAL_Collection
9457
  {
9458
  public $code;
9459
+ protected $dataType = 'GoogleGAL_Service_Compute_TargetPoolsScopedListWarningData';
9460
  protected $dataDataType = 'array';
9461
  public $message;
9462
 
9491
  }
9492
  }
9493
 
9494
+ class GoogleGAL_Service_Compute_TargetPoolsScopedListWarningData extends GoogleGAL_Model
9495
  {
9496
  public $key;
9497
  public $value;
9517
  }
9518
  }
9519
 
9520
+ class GoogleGAL_Service_Compute_TargetReference extends GoogleGAL_Model
9521
  {
9522
  public $target;
9523
 
9532
  }
9533
  }
9534
 
9535
+ class GoogleGAL_Service_Compute_Zone extends GoogleGAL_Collection
9536
  {
9537
  public $creationTimestamp;
9538
+ protected $deprecatedType = 'GoogleGAL_Service_Compute_DeprecationStatus';
9539
  protected $deprecatedDataType = '';
9540
  public $description;
9541
  public $id;
9542
  public $kind;
9543
+ protected $maintenanceWindowsType = 'GoogleGAL_Service_Compute_ZoneMaintenanceWindows';
9544
  protected $maintenanceWindowsDataType = 'array';
9545
  public $name;
9546
  public $region;
9557
  return $this->creationTimestamp;
9558
  }
9559
 
9560
+ public function setDeprecated(GoogleGAL_Service_Compute_DeprecationStatus $deprecated)
9561
  {
9562
  $this->deprecated = $deprecated;
9563
  }
9648
  }
9649
  }
9650
 
9651
+ class GoogleGAL_Service_Compute_ZoneList extends GoogleGAL_Collection
9652
  {
9653
  public $id;
9654
+ protected $itemsType = 'GoogleGAL_Service_Compute_Zone';
9655
  protected $itemsDataType = 'array';
9656
  public $kind;
9657
  public $nextPageToken;
9708
  }
9709
  }
9710
 
9711
+ class GoogleGAL_Service_Compute_ZoneMaintenanceWindows extends GoogleGAL_Model
9712
  {
9713
  public $beginTime;
9714
  public $description;
core/Google/Service/Coordinate.php CHANGED
@@ -29,7 +29,7 @@
29
  *
30
  * @author Google, Inc.
31
  */
32
- class Google_Service_Coordinate extends Google_Service
33
  {
34
  /** View and manage your Google Maps Coordinate jobs. */
35
  const COORDINATE = "https://www.googleapis.com/auth/coordinate";
@@ -46,16 +46,16 @@ class Google_Service_Coordinate extends Google_Service
46
  /**
47
  * Constructs the internal representation of the Coordinate service.
48
  *
49
- * @param Google_Client $client
50
  */
51
- public function __construct(Google_Client $client)
52
  {
53
  parent::__construct($client);
54
  $this->servicePath = 'coordinate/v1/teams/';
55
  $this->version = 'v1';
56
  $this->serviceName = 'coordinate';
57
 
58
- $this->customFieldDef = new Google_Service_Coordinate_CustomFieldDef_Resource(
59
  $this,
60
  $this->serviceName,
61
  'customFieldDef',
@@ -75,7 +75,7 @@ class Google_Service_Coordinate extends Google_Service
75
  )
76
  )
77
  );
78
- $this->jobs = new Google_Service_Coordinate_Jobs_Resource(
79
  $this,
80
  $this->serviceName,
81
  'jobs',
@@ -285,7 +285,7 @@ class Google_Service_Coordinate extends Google_Service
285
  )
286
  )
287
  );
288
- $this->location = new Google_Service_Coordinate_Location_Resource(
289
  $this,
290
  $this->serviceName,
291
  'location',
@@ -323,7 +323,7 @@ class Google_Service_Coordinate extends Google_Service
323
  )
324
  )
325
  );
326
- $this->schedule = new Google_Service_Coordinate_Schedule_Resource(
327
  $this,
328
  $this->serviceName,
329
  'schedule',
@@ -410,7 +410,7 @@ class Google_Service_Coordinate extends Google_Service
410
  )
411
  )
412
  );
413
- $this->worker = new Google_Service_Coordinate_Worker_Resource(
414
  $this,
415
  $this->serviceName,
416
  'worker',
@@ -438,11 +438,11 @@ class Google_Service_Coordinate extends Google_Service
438
  * The "customFieldDef" collection of methods.
439
  * Typical usage is:
440
  * <code>
441
- * $coordinateService = new Google_Service_Coordinate(...);
442
  * $customFieldDef = $coordinateService->customFieldDef;
443
  * </code>
444
  */
445
- class Google_Service_Coordinate_CustomFieldDef_Resource extends Google_Service_Resource
446
  {
447
 
448
  /**
@@ -452,13 +452,13 @@ class Google_Service_Coordinate_CustomFieldDef_Resource extends Google_Service_R
452
  * @param string $teamId
453
  * Team ID
454
  * @param array $optParams Optional parameters.
455
- * @return Google_Service_Coordinate_CustomFieldDefListResponse
456
  */
457
  public function listCustomFieldDef($teamId, $optParams = array())
458
  {
459
  $params = array('teamId' => $teamId);
460
  $params = array_merge($params, $optParams);
461
- return $this->call('list', array($params), "Google_Service_Coordinate_CustomFieldDefListResponse");
462
  }
463
  }
464
 
@@ -466,11 +466,11 @@ class Google_Service_Coordinate_CustomFieldDef_Resource extends Google_Service_R
466
  * The "jobs" collection of methods.
467
  * Typical usage is:
468
  * <code>
469
- * $coordinateService = new Google_Service_Coordinate(...);
470
  * $jobs = $coordinateService->jobs;
471
  * </code>
472
  */
473
- class Google_Service_Coordinate_Jobs_Resource extends Google_Service_Resource
474
  {
475
 
476
  /**
@@ -481,13 +481,13 @@ class Google_Service_Coordinate_Jobs_Resource extends Google_Service_Resource
481
  * @param string $jobId
482
  * Job number
483
  * @param array $optParams Optional parameters.
484
- * @return Google_Service_Coordinate_Job
485
  */
486
  public function get($teamId, $jobId, $optParams = array())
487
  {
488
  $params = array('teamId' => $teamId, 'jobId' => $jobId);
489
  $params = array_merge($params, $optParams);
490
- return $this->call('get', array($params), "Google_Service_Coordinate_Job");
491
  }
492
  /**
493
  * Inserts a new job. Only the state field of the job should be set.
@@ -503,7 +503,7 @@ class Google_Service_Coordinate_Jobs_Resource extends Google_Service_Resource
503
  * The longitude coordinate of this job's location.
504
  * @param string $title
505
  * Job title
506
- * @param Google_Job $postBody
507
  * @param array $optParams Optional parameters.
508
  *
509
  * @opt_param string customerName
@@ -516,13 +516,13 @@ class Google_Service_Coordinate_Jobs_Resource extends Google_Service_Resource
516
  * Customer phone number
517
  * @opt_param string customField
518
  * Map from custom field id (from /team//custom_fields) to the field value. For example '123=Alice'
519
- * @return Google_Service_Coordinate_Job
520
  */
521
- public function insert($teamId, $address, $lat, $lng, $title, Google_Service_Coordinate_Job $postBody, $optParams = array())
522
  {
523
  $params = array('teamId' => $teamId, 'address' => $address, 'lat' => $lat, 'lng' => $lng, 'title' => $title, 'postBody' => $postBody);
524
  $params = array_merge($params, $optParams);
525
- return $this->call('insert', array($params), "Google_Service_Coordinate_Job");
526
  }
527
  /**
528
  * Retrieves jobs created or modified since the given timestamp. (jobs.listJobs)
@@ -537,13 +537,13 @@ class Google_Service_Coordinate_Jobs_Resource extends Google_Service_Resource
537
  * Maximum number of results to return in one page.
538
  * @opt_param string pageToken
539
  * Continuation token
540
- * @return Google_Service_Coordinate_JobListResponse
541
  */
542
  public function listJobs($teamId, $optParams = array())
543
  {
544
  $params = array('teamId' => $teamId);
545
  $params = array_merge($params, $optParams);
546
- return $this->call('list', array($params), "Google_Service_Coordinate_JobListResponse");
547
  }
548
  /**
549
  * Updates a job. Fields that are set in the job state will be updated. This
@@ -553,7 +553,7 @@ class Google_Service_Coordinate_Jobs_Resource extends Google_Service_Resource
553
  * Team ID
554
  * @param string $jobId
555
  * Job number
556
- * @param Google_Job $postBody
557
  * @param array $optParams Optional parameters.
558
  *
559
  * @opt_param string customerName
@@ -576,13 +576,13 @@ class Google_Service_Coordinate_Jobs_Resource extends Google_Service_Resource
576
  * The longitude coordinate of this job's location.
577
  * @opt_param string customField
578
  * Map from custom field id (from /team//custom_fields) to the field value. For example '123=Alice'
579
- * @return Google_Service_Coordinate_Job
580
  */
581
- public function patch($teamId, $jobId, Google_Service_Coordinate_Job $postBody, $optParams = array())
582
  {
583
  $params = array('teamId' => $teamId, 'jobId' => $jobId, 'postBody' => $postBody);
584
  $params = array_merge($params, $optParams);
585
- return $this->call('patch', array($params), "Google_Service_Coordinate_Job");
586
  }
587
  /**
588
  * Updates a job. Fields that are set in the job state will be updated.
@@ -592,7 +592,7 @@ class Google_Service_Coordinate_Jobs_Resource extends Google_Service_Resource
592
  * Team ID
593
  * @param string $jobId
594
  * Job number
595
- * @param Google_Job $postBody
596
  * @param array $optParams Optional parameters.
597
  *
598
  * @opt_param string customerName
@@ -615,13 +615,13 @@ class Google_Service_Coordinate_Jobs_Resource extends Google_Service_Resource
615
  * The longitude coordinate of this job's location.
616
  * @opt_param string customField
617
  * Map from custom field id (from /team//custom_fields) to the field value. For example '123=Alice'
618
- * @return Google_Service_Coordinate_Job
619
  */
620
- public function update($teamId, $jobId, Google_Service_Coordinate_Job $postBody, $optParams = array())
621
  {
622
  $params = array('teamId' => $teamId, 'jobId' => $jobId, 'postBody' => $postBody);
623
  $params = array_merge($params, $optParams);
624
- return $this->call('update', array($params), "Google_Service_Coordinate_Job");
625
  }
626
  }
627
 
@@ -629,11 +629,11 @@ class Google_Service_Coordinate_Jobs_Resource extends Google_Service_Resource
629
  * The "location" collection of methods.
630
  * Typical usage is:
631
  * <code>
632
- * $coordinateService = new Google_Service_Coordinate(...);
633
  * $location = $coordinateService->location;
634
  * </code>
635
  */
636
- class Google_Service_Coordinate_Location_Resource extends Google_Service_Resource
637
  {
638
 
639
  /**
@@ -651,13 +651,13 @@ class Google_Service_Coordinate_Location_Resource extends Google_Service_Resourc
651
  * Continuation token
652
  * @opt_param string maxResults
653
  * Maximum number of results to return in one page.
654
- * @return Google_Service_Coordinate_LocationListResponse
655
  */
656
  public function listLocation($teamId, $workerEmail, $startTimestampMs, $optParams = array())
657
  {
658
  $params = array('teamId' => $teamId, 'workerEmail' => $workerEmail, 'startTimestampMs' => $startTimestampMs);
659
  $params = array_merge($params, $optParams);
660
- return $this->call('list', array($params), "Google_Service_Coordinate_LocationListResponse");
661
  }
662
  }
663
 
@@ -665,11 +665,11 @@ class Google_Service_Coordinate_Location_Resource extends Google_Service_Resourc
665
  * The "schedule" collection of methods.
666
  * Typical usage is:
667
  * <code>
668
- * $coordinateService = new Google_Service_Coordinate(...);
669
  * $schedule = $coordinateService->schedule;
670
  * </code>
671
  */
672
- class Google_Service_Coordinate_Schedule_Resource extends Google_Service_Resource
673
  {
674
 
675
  /**
@@ -680,13 +680,13 @@ class Google_Service_Coordinate_Schedule_Resource extends Google_Service_Resourc
680
  * @param string $jobId
681
  * Job number
682
  * @param array $optParams Optional parameters.
683
- * @return Google_Service_Coordinate_Schedule
684
  */
685
  public function get($teamId, $jobId, $optParams = array())
686
  {
687
  $params = array('teamId' => $teamId, 'jobId' => $jobId);
688
  $params = array_merge($params, $optParams);
689
- return $this->call('get', array($params), "Google_Service_Coordinate_Schedule");
690
  }
691
  /**
692
  * Replaces the schedule of a job with the provided schedule. This method
@@ -696,7 +696,7 @@ class Google_Service_Coordinate_Schedule_Resource extends Google_Service_Resourc
696
  * Team ID
697
  * @param string $jobId
698
  * Job number
699
- * @param Google_Schedule $postBody
700
  * @param array $optParams Optional parameters.
701
  *
702
  * @opt_param bool allDay
@@ -708,13 +708,13 @@ class Google_Service_Coordinate_Schedule_Resource extends Google_Service_Resourc
708
  * Job duration in milliseconds.
709
  * @opt_param string endTime
710
  * Scheduled end time in milliseconds since epoch.
711
- * @return Google_Service_Coordinate_Schedule
712
  */
713
- public function patch($teamId, $jobId, Google_Service_Coordinate_Schedule $postBody, $optParams = array())
714
  {
715
  $params = array('teamId' => $teamId, 'jobId' => $jobId, 'postBody' => $postBody);
716
  $params = array_merge($params, $optParams);
717
- return $this->call('patch', array($params), "Google_Service_Coordinate_Schedule");
718
  }
719
  /**
720
  * Replaces the schedule of a job with the provided schedule. (schedule.update)
@@ -723,7 +723,7 @@ class Google_Service_Coordinate_Schedule_Resource extends Google_Service_Resourc
723
  * Team ID
724
  * @param string $jobId
725
  * Job number
726
- * @param Google_Schedule $postBody
727
  * @param array $optParams Optional parameters.
728
  *
729
  * @opt_param bool allDay
@@ -735,13 +735,13 @@ class Google_Service_Coordinate_Schedule_Resource extends Google_Service_Resourc
735
  * Job duration in milliseconds.
736
  * @opt_param string endTime
737
  * Scheduled end time in milliseconds since epoch.
738
- * @return Google_Service_Coordinate_Schedule
739
  */
740
- public function update($teamId, $jobId, Google_Service_Coordinate_Schedule $postBody, $optParams = array())
741
  {
742
  $params = array('teamId' => $teamId, 'jobId' => $jobId, 'postBody' => $postBody);
743
  $params = array_merge($params, $optParams);
744
- return $this->call('update', array($params), "Google_Service_Coordinate_Schedule");
745
  }
746
  }
747
 
@@ -749,11 +749,11 @@ class Google_Service_Coordinate_Schedule_Resource extends Google_Service_Resourc
749
  * The "worker" collection of methods.
750
  * Typical usage is:
751
  * <code>
752
- * $coordinateService = new Google_Service_Coordinate(...);
753
  * $worker = $coordinateService->worker;
754
  * </code>
755
  */
756
- class Google_Service_Coordinate_Worker_Resource extends Google_Service_Resource
757
  {
758
 
759
  /**
@@ -762,20 +762,20 @@ class Google_Service_Coordinate_Worker_Resource extends Google_Service_Resource
762
  * @param string $teamId
763
  * Team ID
764
  * @param array $optParams Optional parameters.
765
- * @return Google_Service_Coordinate_WorkerListResponse
766
  */
767
  public function listWorker($teamId, $optParams = array())
768
  {
769
  $params = array('teamId' => $teamId);
770
  $params = array_merge($params, $optParams);
771
- return $this->call('list', array($params), "Google_Service_Coordinate_WorkerListResponse");
772
  }
773
  }
774
 
775
 
776
 
777
 
778
- class Google_Service_Coordinate_CustomField extends Google_Model
779
  {
780
  public $customFieldId;
781
  public $kind;
@@ -812,7 +812,7 @@ class Google_Service_Coordinate_CustomField extends Google_Model
812
  }
813
  }
814
 
815
- class Google_Service_Coordinate_CustomFieldDef extends Google_Model
816
  {
817
  public $enabled;
818
  public $id;
@@ -882,9 +882,9 @@ class Google_Service_Coordinate_CustomFieldDef extends Google_Model
882
  }
883
  }
884
 
885
- class Google_Service_Coordinate_CustomFieldDefListResponse extends Google_Collection
886
  {
887
- protected $itemsType = 'Google_Service_Coordinate_CustomFieldDef';
888
  protected $itemsDataType = 'array';
889
  public $kind;
890
 
@@ -909,9 +909,9 @@ class Google_Service_Coordinate_CustomFieldDefListResponse extends Google_Collec
909
  }
910
  }
911
 
912
- class Google_Service_Coordinate_CustomFields extends Google_Collection
913
  {
914
- protected $customFieldType = 'Google_Service_Coordinate_CustomField';
915
  protected $customFieldDataType = 'array';
916
  public $kind;
917
 
@@ -936,13 +936,13 @@ class Google_Service_Coordinate_CustomFields extends Google_Collection
936
  }
937
  }
938
 
939
- class Google_Service_Coordinate_Job extends Google_Collection
940
  {
941
  public $id;
942
- protected $jobChangeType = 'Google_Service_Coordinate_JobChange';
943
  protected $jobChangeDataType = 'array';
944
  public $kind;
945
- protected $stateType = 'Google_Service_Coordinate_JobState';
946
  protected $stateDataType = '';
947
 
948
  public function setId($id)
@@ -975,7 +975,7 @@ class Google_Service_Coordinate_Job extends Google_Collection
975
  return $this->kind;
976
  }
977
 
978
- public function setState(Google_Service_Coordinate_JobState $state)
979
  {
980
  $this->state = $state;
981
  }
@@ -986,10 +986,10 @@ class Google_Service_Coordinate_Job extends Google_Collection
986
  }
987
  }
988
 
989
- class Google_Service_Coordinate_JobChange extends Google_Model
990
  {
991
  public $kind;
992
- protected $stateType = 'Google_Service_Coordinate_JobState';
993
  protected $stateDataType = '';
994
  public $timestamp;
995
 
@@ -1003,7 +1003,7 @@ class Google_Service_Coordinate_JobChange extends Google_Model
1003
  return $this->kind;
1004
  }
1005
 
1006
- public function setState(Google_Service_Coordinate_JobState $state)
1007
  {
1008
  $this->state = $state;
1009
  }
@@ -1024,9 +1024,9 @@ class Google_Service_Coordinate_JobChange extends Google_Model
1024
  }
1025
  }
1026
 
1027
- class Google_Service_Coordinate_JobListResponse extends Google_Collection
1028
  {
1029
- protected $itemsType = 'Google_Service_Coordinate_Job';
1030
  protected $itemsDataType = 'array';
1031
  public $kind;
1032
  public $nextPageToken;
@@ -1062,15 +1062,15 @@ class Google_Service_Coordinate_JobListResponse extends Google_Collection
1062
  }
1063
  }
1064
 
1065
- class Google_Service_Coordinate_JobState extends Google_Collection
1066
  {
1067
  public $assignee;
1068
- protected $customFieldsType = 'Google_Service_Coordinate_CustomFields';
1069
  protected $customFieldsDataType = '';
1070
  public $customerName;
1071
  public $customerPhoneNumber;
1072
  public $kind;
1073
- protected $locationType = 'Google_Service_Coordinate_Location';
1074
  protected $locationDataType = '';
1075
  public $note;
1076
  public $progress;
@@ -1086,7 +1086,7 @@ class Google_Service_Coordinate_JobState extends Google_Collection
1086
  return $this->assignee;
1087
  }
1088
 
1089
- public function setCustomFields(Google_Service_Coordinate_CustomFields $customFields)
1090
  {
1091
  $this->customFields = $customFields;
1092
  }
@@ -1126,7 +1126,7 @@ class Google_Service_Coordinate_JobState extends Google_Collection
1126
  return $this->kind;
1127
  }
1128
 
1129
- public function setLocation(Google_Service_Coordinate_Location $location)
1130
  {
1131
  $this->location = $location;
1132
  }
@@ -1167,7 +1167,7 @@ class Google_Service_Coordinate_JobState extends Google_Collection
1167
  }
1168
  }
1169
 
1170
- class Google_Service_Coordinate_Location extends Google_Collection
1171
  {
1172
  public $addressLine;
1173
  public $kind;
@@ -1215,13 +1215,13 @@ class Google_Service_Coordinate_Location extends Google_Collection
1215
  }
1216
  }
1217
 
1218
- class Google_Service_Coordinate_LocationListResponse extends Google_Collection
1219
  {
1220
- protected $itemsType = 'Google_Service_Coordinate_LocationRecord';
1221
  protected $itemsDataType = 'array';
1222
  public $kind;
1223
  public $nextPageToken;
1224
- protected $tokenPaginationType = 'Google_Service_Coordinate_TokenPagination';
1225
  protected $tokenPaginationDataType = '';
1226
 
1227
  public function setItems($items)
@@ -1254,7 +1254,7 @@ class Google_Service_Coordinate_LocationListResponse extends Google_Collection
1254
  return $this->nextPageToken;
1255
  }
1256
 
1257
- public function setTokenPagination(Google_Service_Coordinate_TokenPagination $tokenPagination)
1258
  {
1259
  $this->tokenPagination = $tokenPagination;
1260
  }
@@ -1265,7 +1265,7 @@ class Google_Service_Coordinate_LocationListResponse extends Google_Collection
1265
  }
1266
  }
1267
 
1268
- class Google_Service_Coordinate_LocationRecord extends Google_Model
1269
  {
1270
  public $collectionTime;
1271
  public $confidenceRadius;
@@ -1324,7 +1324,7 @@ class Google_Service_Coordinate_LocationRecord extends Google_Model
1324
  }
1325
  }
1326
 
1327
- class Google_Service_Coordinate_Schedule extends Google_Model
1328
  {
1329
  public $allDay;
1330
  public $duration;
@@ -1383,7 +1383,7 @@ class Google_Service_Coordinate_Schedule extends Google_Model
1383
  }
1384
  }
1385
 
1386
- class Google_Service_Coordinate_TokenPagination extends Google_Model
1387
  {
1388
  public $kind;
1389
  public $nextPageToken;
@@ -1420,7 +1420,7 @@ class Google_Service_Coordinate_TokenPagination extends Google_Model
1420
  }
1421
  }
1422
 
1423
- class Google_Service_Coordinate_Worker extends Google_Model
1424
  {
1425
  public $id;
1426
  public $kind;
@@ -1446,9 +1446,9 @@ class Google_Service_Coordinate_Worker extends Google_Model
1446
  }
1447
  }
1448
 
1449
- class Google_Service_Coordinate_WorkerListResponse extends Google_Collection
1450
  {
1451
- protected $itemsType = 'Google_Service_Coordinate_Worker';
1452
  protected $itemsDataType = 'array';
1453
  public $kind;
1454
 
29
  *
30
  * @author Google, Inc.
31
  */
32
+ class GoogleGAL_Service_Coordinate extends GoogleGAL_Service
33
  {
34
  /** View and manage your Google Maps Coordinate jobs. */
35
  const COORDINATE = "https://www.googleapis.com/auth/coordinate";
46
  /**
47
  * Constructs the internal representation of the Coordinate service.
48
  *
49
+ * @param GoogleGAL_Client $client
50
  */
51
+ public function __construct(GoogleGAL_Client $client)
52
  {
53
  parent::__construct($client);
54
  $this->servicePath = 'coordinate/v1/teams/';
55
  $this->version = 'v1';
56
  $this->serviceName = 'coordinate';
57
 
58
+ $this->customFieldDef = new GoogleGAL_Service_Coordinate_CustomFieldDef_Resource(
59
  $this,
60
  $this->serviceName,
61
  'customFieldDef',
75
  )
76
  )
77
  );
78
+ $this->jobs = new GoogleGAL_Service_Coordinate_Jobs_Resource(
79
  $this,
80
  $this->serviceName,
81
  'jobs',
285
  )
286
  )
287
  );
288
+ $this->location = new GoogleGAL_Service_Coordinate_Location_Resource(
289
  $this,
290
  $this->serviceName,
291
  'location',
323
  )
324
  )
325
  );
326
+ $this->schedule = new GoogleGAL_Service_Coordinate_Schedule_Resource(
327
  $this,
328
  $this->serviceName,
329
  'schedule',
410
  )
411
  )
412
  );
413
+ $this->worker = new GoogleGAL_Service_Coordinate_Worker_Resource(
414
  $this,
415
  $this->serviceName,
416
  'worker',
438
  * The "customFieldDef" collection of methods.
439
  * Typical usage is:
440
  * <code>
441
+ * $coordinateService = new GoogleGAL_Service_Coordinate(...);
442
  * $customFieldDef = $coordinateService->customFieldDef;
443
  * </code>
444
  */
445
+ class GoogleGAL_Service_Coordinate_CustomFieldDef_Resource extends GoogleGAL_Service_Resource
446
  {
447
 
448
  /**
452
  * @param string $teamId
453
  * Team ID
454
  * @param array $optParams Optional parameters.
455
+ * @return GoogleGAL_Service_Coordinate_CustomFieldDefListResponse
456
  */
457
  public function listCustomFieldDef($teamId, $optParams = array())
458
  {
459
  $params = array('teamId' => $teamId);
460
  $params = array_merge($params, $optParams);
461
+ return $this->call('list', array($params), "GoogleGAL_Service_Coordinate_CustomFieldDefListResponse");
462
  }
463
  }
464
 
466
  * The "jobs" collection of methods.
467
  * Typical usage is:
468
  * <code>
469
+ * $coordinateService = new GoogleGAL_Service_Coordinate(...);
470
  * $jobs = $coordinateService->jobs;
471
  * </code>
472
  */
473
+ class GoogleGAL_Service_Coordinate_Jobs_Resource extends GoogleGAL_Service_Resource
474
  {
475
 
476
  /**
481
  * @param string $jobId
482
  * Job number
483
  * @param array $optParams Optional parameters.
484
+ * @return GoogleGAL_Service_Coordinate_Job
485
  */
486
  public function get($teamId, $jobId, $optParams = array())
487
  {
488
  $params = array('teamId' => $teamId, 'jobId' => $jobId);
489
  $params = array_merge($params, $optParams);
490
+ return $this->call('get', array($params), "GoogleGAL_Service_Coordinate_Job");
491
  }
492
  /**
493
  * Inserts a new job. Only the state field of the job should be set.
503
  * The longitude coordinate of this job's location.
504
  * @param string $title
505
  * Job title
506
+ * @param GoogleGAL_Job $postBody
507
  * @param array $optParams Optional parameters.
508
  *
509
  * @opt_param string customerName
516
  * Customer phone number
517
  * @opt_param string customField
518
  * Map from custom field id (from /team//custom_fields) to the field value. For example '123=Alice'
519
+ * @return GoogleGAL_Service_Coordinate_Job
520
  */
521
+ public function insert($teamId, $address, $lat, $lng, $title, GoogleGAL_Service_Coordinate_Job $postBody, $optParams = array())
522
  {
523
  $params = array('teamId' => $teamId, 'address' => $address, 'lat' => $lat, 'lng' => $lng, 'title' => $title, 'postBody' => $postBody);
524
  $params = array_merge($params, $optParams);
525
+ return $this->call('insert', array($params), "GoogleGAL_Service_Coordinate_Job");
526
  }
527
  /**
528
  * Retrieves jobs created or modified since the given timestamp. (jobs.listJobs)
537
  * Maximum number of results to return in one page.
538
  * @opt_param string pageToken
539
  * Continuation token
540
+ * @return GoogleGAL_Service_Coordinate_JobListResponse
541
  */
542
  public function listJobs($teamId, $optParams = array())
543
  {
544
  $params = array('teamId' => $teamId);
545
  $params = array_merge($params, $optParams);
546
+ return $this->call('list', array($params), "GoogleGAL_Service_Coordinate_JobListResponse");
547
  }
548
  /**
549
  * Updates a job. Fields that are set in the job state will be updated. This
553
  * Team ID
554
  * @param string $jobId
555
  * Job number
556
+ * @param GoogleGAL_Job $postBody
557
  * @param array $optParams Optional parameters.
558
  *
559
  * @opt_param string customerName
576
  * The longitude coordinate of this job's location.
577
  * @opt_param string customField
578
  * Map from custom field id (from /team//custom_fields) to the field value. For example '123=Alice'
579
+ * @return GoogleGAL_Service_Coordinate_Job
580
  */
581
+ public function patch($teamId, $jobId, GoogleGAL_Service_Coordinate_Job $postBody, $optParams = array())
582
  {
583
  $params = array('teamId' => $teamId, 'jobId' => $jobId, 'postBody' => $postBody);
584
  $params = array_merge($params, $optParams);
585
+ return $this->call('patch', array($params), "GoogleGAL_Service_Coordinate_Job");
586
  }
587
  /**
588
  * Updates a job. Fields that are set in the job state will be updated.
592
  * Team ID
593
  * @param string $jobId
594
  * Job number
595
+ * @param GoogleGAL_Job $postBody
596
  * @param array $optParams Optional parameters.
597
  *
598
  * @opt_param string customerName
615
  * The longitude coordinate of this job's location.
616
  * @opt_param string customField
617
  * Map from custom field id (from /team//custom_fields) to the field value. For example '123=Alice'
618
+ * @return GoogleGAL_Service_Coordinate_Job
619
  */
620
+ public function update($teamId, $jobId, GoogleGAL_Service_Coordinate_Job $postBody, $optParams = array())
621
  {
622
  $params = array('teamId' => $teamId, 'jobId' => $jobId, 'postBody' => $postBody);
623
  $params = array_merge($params, $optParams);
624
+ return $this->call('update', array($params), "GoogleGAL_Service_Coordinate_Job");
625
  }
626
  }
627
 
629
  * The "location" collection of methods.
630
  * Typical usage is:
631
  * <code>
632
+ * $coordinateService = new GoogleGAL_Service_Coordinate(...);
633
  * $location = $coordinateService->location;
634
  * </code>
635
  */
636
+ class GoogleGAL_Service_Coordinate_Location_Resource extends GoogleGAL_Service_Resource
637
  {
638
 
639
  /**
651
  * Continuation token
652
  * @opt_param string maxResults
653
  * Maximum number of results to return in one page.
654
+ * @return GoogleGAL_Service_Coordinate_LocationListResponse
655
  */
656
  public function listLocation($teamId, $workerEmail, $startTimestampMs, $optParams = array())
657
  {
658
  $params = array('teamId' => $teamId, 'workerEmail' => $workerEmail, 'startTimestampMs' => $startTimestampMs);
659
  $params = array_merge($params, $optParams);
660
+ return $this->call('list', array($params), "GoogleGAL_Service_Coordinate_LocationListResponse");
661
  }
662
  }
663
 
665
  * The "schedule" collection of methods.
666
  * Typical usage is:
667
  * <code>
668
+ * $coordinateService = new GoogleGAL_Service_Coordinate(...);
669
  * $schedule = $coordinateService->schedule;
670
  * </code>
671
  */
672
+ class GoogleGAL_Service_Coordinate_Schedule_Resource extends GoogleGAL_Service_Resource
673
  {
674
 
675
  /**
680
  * @param string $jobId
681
  * Job number
682
  * @param array $optParams Optional parameters.
683
+ * @return GoogleGAL_Service_Coordinate_Schedule
684
  */
685
  public function get($teamId, $jobId, $optParams = array())
686
  {
687
  $params = array('teamId' => $teamId, 'jobId' => $jobId);
688
  $params = array_merge($params, $optParams);
689
+ return $this->call('get', array($params), "GoogleGAL_Service_Coordinate_Schedule");
690
  }
691
  /**
692
  * Replaces the schedule of a job with the provided schedule. This method
696
  * Team ID
697
  * @param string $jobId
698
  * Job number
699
+ * @param GoogleGAL_Schedule $postBody
700
  * @param array $optParams Optional parameters.
701
  *
702
  * @opt_param bool allDay
708
  * Job duration in milliseconds.
709
  * @opt_param string endTime
710
  * Scheduled end time in milliseconds since epoch.
711
+ * @return GoogleGAL_Service_Coordinate_Schedule
712
  */
713
+ public function patch($teamId, $jobId, GoogleGAL_Service_Coordinate_Schedule $postBody, $optParams = array())
714
  {
715
  $params = array('teamId' => $teamId, 'jobId' => $jobId, 'postBody' => $postBody);
716
  $params = array_merge($params, $optParams);
717
+ return $this->call('patch', array($params), "GoogleGAL_Service_Coordinate_Schedule");
718
  }
719
  /**
720
  * Replaces the schedule of a job with the provided schedule. (schedule.update)
723
  * Team ID
724
  * @param string $jobId
725
  * Job number
726
+ * @param GoogleGAL_Schedule $postBody
727
  * @param array $optParams Optional parameters.
728
  *
729
  * @opt_param bool allDay
735
  * Job duration in milliseconds.
736
  * @opt_param string endTime
737
  * Scheduled end time in milliseconds since epoch.
738
+ * @return GoogleGAL_Service_Coordinate_Schedule
739
  */
740
+ public function update($teamId, $jobId, GoogleGAL_Service_Coordinate_Schedule $postBody, $optParams = array())
741
  {
742
  $params = array('teamId' => $teamId, 'jobId' => $jobId, 'postBody' => $postBody);
743
  $params = array_merge($params, $optParams);
744
+ return $this->call('update', array($params), "GoogleGAL_Service_Coordinate_Schedule");
745
  }
746
  }
747
 
749
  * The "worker" collection of methods.
750
  * Typical usage is:
751
  * <code>
752
+ * $coordinateService = new GoogleGAL_Service_Coordinate(...);
753
  * $worker = $coordinateService->worker;
754
  * </code>
755
  */
756
+ class GoogleGAL_Service_Coordinate_Worker_Resource extends GoogleGAL_Service_Resource
757
  {
758
 
759
  /**
762
  * @param string $teamId
763
  * Team ID
764
  * @param array $optParams Optional parameters.
765
+ * @return GoogleGAL_Service_Coordinate_WorkerListResponse
766
  */
767
  public function listWorker($teamId, $optParams = array())
768
  {
769
  $params = array('teamId' => $teamId);
770
  $params = array_merge($params, $optParams);
771
+ return $this->call('list', array($params), "GoogleGAL_Service_Coordinate_WorkerListResponse");
772
  }
773
  }
774
 
775
 
776
 
777
 
778
+ class GoogleGAL_Service_Coordinate_CustomField extends GoogleGAL_Model
779
  {
780
  public $customFieldId;
781
  public $kind;
812
  }
813
  }
814
 
815
+ class GoogleGAL_Service_Coordinate_CustomFieldDef extends GoogleGAL_Model
816
  {
817
  public $enabled;
818
  public $id;
882
  }
883
  }
884
 
885
+ class GoogleGAL_Service_Coordinate_CustomFieldDefListResponse extends GoogleGAL_Collection
886
  {
887
+ protected $itemsType = 'GoogleGAL_Service_Coordinate_CustomFieldDef';
888
  protected $itemsDataType = 'array';
889
  public $kind;
890
 
909
  }
910
  }
911
 
912
+ class GoogleGAL_Service_Coordinate_CustomFields extends GoogleGAL_Collection
913
  {
914
+ protected $customFieldType = 'GoogleGAL_Service_Coordinate_CustomField';
915
  protected $customFieldDataType = 'array';
916
  public $kind;
917
 
936
  }
937
  }
938
 
939
+ class GoogleGAL_Service_Coordinate_Job extends GoogleGAL_Collection
940
  {
941
  public $id;
942
+ protected $jobChangeType = 'GoogleGAL_Service_Coordinate_JobChange';
943
  protected $jobChangeDataType = 'array';
944
  public $kind;
945
+ protected $stateType = 'GoogleGAL_Service_Coordinate_JobState';
946
  protected $stateDataType = '';
947
 
948
  public function setId($id)
975
  return $this->kind;
976
  }
977
 
978
+ public function setState(GoogleGAL_Service_Coordinate_JobState $state)
979
  {
980
  $this->state = $state;
981
  }
986
  }
987
  }
988
 
989
+ class GoogleGAL_Service_Coordinate_JobChange extends GoogleGAL_Model
990
  {
991
  public $kind;
992
+ protected $stateType = 'GoogleGAL_Service_Coordinate_JobState';
993
  protected $stateDataType = '';
994
  public $timestamp;
995
 
1003
  return $this->kind;
1004
  }
1005
 
1006
+ public function setState(GoogleGAL_Service_Coordinate_JobState $state)
1007
  {
1008
  $this->state = $state;
1009
  }
1024
  }
1025
  }
1026
 
1027
+ class GoogleGAL_Service_Coordinate_JobListResponse extends GoogleGAL_Collection
1028
  {
1029
+ protected $itemsType = 'GoogleGAL_Service_Coordinate_Job';
1030
  protected $itemsDataType = 'array';
1031
  public $kind;
1032
  public $nextPageToken;
1062
  }
1063
  }
1064
 
1065
+ class GoogleGAL_Service_Coordinate_JobState extends GoogleGAL_Collection
1066
  {
1067
  public $assignee;
1068
+ protected $customFieldsType = 'GoogleGAL_Service_Coordinate_CustomFields';
1069
  protected $customFieldsDataType = '';
1070
  public $customerName;
1071
  public $customerPhoneNumber;
1072
  public $kind;
1073
+ protected $locationType = 'GoogleGAL_Service_Coordinate_Location';
1074
  protected $locationDataType = '';
1075
  public $note;
1076
  public $progress;
1086
  return $this->assignee;
1087
  }
1088
 
1089
+ public function setCustomFields(GoogleGAL_Service_Coordinate_CustomFields $customFields)
1090
  {
1091
  $this->customFields = $customFields;
1092
  }
1126
  return $this->kind;
1127
  }
1128
 
1129
+ public function setLocation(GoogleGAL_Service_Coordinate_Location $location)
1130
  {
1131
  $this->location = $location;
1132
  }
1167
  }
1168
  }
1169
 
1170
+ class GoogleGAL_Service_Coordinate_Location extends GoogleGAL_Collection
1171
  {
1172
  public $addressLine;
1173
  public $kind;
1215
  }
1216
  }
1217
 
1218
+ class GoogleGAL_Service_Coordinate_LocationListResponse extends GoogleGAL_Collection
1219
  {
1220
+ protected $itemsType = 'GoogleGAL_Service_Coordinate_LocationRecord';
1221
  protected $itemsDataType = 'array';
1222
  public $kind;
1223
  public $nextPageToken;
1224
+ protected $tokenPaginationType = 'GoogleGAL_Service_Coordinate_TokenPagination';
1225
  protected $tokenPaginationDataType = '';
1226
 
1227
  public function setItems($items)
1254
  return $this->nextPageToken;
1255
  }
1256
 
1257
+ public function setTokenPagination(GoogleGAL_Service_Coordinate_TokenPagination $tokenPagination)
1258
  {
1259
  $this->tokenPagination = $tokenPagination;
1260
  }
1265
  }
1266
  }
1267
 
1268
+ class GoogleGAL_Service_Coordinate_LocationRecord extends GoogleGAL_Model
1269
  {
1270
  public $collectionTime;
1271
  public $confidenceRadius;
1324
  }
1325
  }
1326
 
1327
+ class GoogleGAL_Service_Coordinate_Schedule extends GoogleGAL_Model
1328
  {
1329
  public $allDay;
1330
  public $duration;
1383
  }
1384
  }
1385
 
1386
+ class GoogleGAL_Service_Coordinate_TokenPagination extends GoogleGAL_Model
1387
  {
1388
  public $kind;
1389
  public $nextPageToken;
1420
  }
1421
  }
1422
 
1423
+ class GoogleGAL_Service_Coordinate_Worker extends GoogleGAL_Model
1424
  {
1425
  public $id;
1426
  public $kind;
1446
  }
1447
  }
1448
 
1449
+ class GoogleGAL_Service_Coordinate_WorkerListResponse extends GoogleGAL_Collection
1450
  {
1451
+ protected $itemsType = 'GoogleGAL_Service_Coordinate_Worker';
1452
  protected $itemsDataType = 'array';
1453
  public $kind;
1454
 
core/Google/Service/Customsearch.php CHANGED
@@ -29,7 +29,7 @@
29
  *
30
  * @author Google, Inc.
31
  */
32
- class Google_Service_Customsearch extends Google_Service
33
  {
34
 
35
 
@@ -39,16 +39,16 @@ class Google_Service_Customsearch extends Google_Service
39
  /**
40
  * Constructs the internal representation of the Customsearch service.
41
  *
42
- * @param Google_Client $client
43
  */
44
- public function __construct(Google_Client $client)
45
  {
46
  parent::__construct($client);
47
  $this->servicePath = 'customsearch/';
48
  $this->version = 'v1';
49
  $this->serviceName = 'customsearch';
50
 
51
- $this->cse = new Google_Service_Customsearch_Cse_Resource(
52
  $this,
53
  $this->serviceName,
54
  'cse',
@@ -200,11 +200,11 @@ class Google_Service_Customsearch extends Google_Service
200
  * The "cse" collection of methods.
201
  * Typical usage is:
202
  * <code>
203
- * $customsearchService = new Google_Service_Customsearch(...);
204
  * $cse = $customsearchService->cse;
205
  * </code>
206
  */
207
- class Google_Service_Customsearch_Cse_Resource extends Google_Service_Resource
208
  {
209
 
210
  /**
@@ -283,22 +283,22 @@ class Google_Service_Customsearch_Cse_Resource extends Google_Service_Resource
283
  * @opt_param string siteSearchFilter
284
  * Controls whether to include or exclude results from the site named in the as_sitesearch
285
  * parameter
286
- * @return Google_Service_Customsearch_Search
287
  */
288
  public function listCse($q, $optParams = array())
289
  {
290
  $params = array('q' => $q);
291
  $params = array_merge($params, $optParams);
292
- return $this->call('list', array($params), "Google_Service_Customsearch_Search");
293
  }
294
  }
295
 
296
 
297
 
298
 
299
- class Google_Service_Customsearch_Context extends Google_Collection
300
  {
301
- protected $facetsType = 'Google_Service_Customsearch_ContextFacets';
302
  protected $facetsDataType = 'array';
303
  public $title;
304
 
@@ -323,7 +323,7 @@ class Google_Service_Customsearch_Context extends Google_Collection
323
  }
324
  }
325
 
326
- class Google_Service_Customsearch_ContextFacets extends Google_Model
327
  {
328
  public $anchor;
329
  public $label;
@@ -360,13 +360,13 @@ class Google_Service_Customsearch_ContextFacets extends Google_Model
360
  }
361
  }
362
 
363
- class Google_Service_Customsearch_Promotion extends Google_Collection
364
  {
365
- protected $bodyLinesType = 'Google_Service_Customsearch_PromotionBodyLines';
366
  protected $bodyLinesDataType = 'array';
367
  public $displayLink;
368
  public $htmlTitle;
369
- protected $imageType = 'Google_Service_Customsearch_PromotionImage';
370
  protected $imageDataType = '';
371
  public $link;
372
  public $title;
@@ -401,7 +401,7 @@ class Google_Service_Customsearch_Promotion extends Google_Collection
401
  return $this->htmlTitle;
402
  }
403
 
404
- public function setImage(Google_Service_Customsearch_PromotionImage $image)
405
  {
406
  $this->image = $image;
407
  }
@@ -432,7 +432,7 @@ class Google_Service_Customsearch_Promotion extends Google_Collection
432
  }
433
  }
434
 
435
- class Google_Service_Customsearch_PromotionBodyLines extends Google_Model
436
  {
437
  public $htmlTitle;
438
  public $link;
@@ -480,7 +480,7 @@ class Google_Service_Customsearch_PromotionBodyLines extends Google_Model
480
  }
481
  }
482
 
483
- class Google_Service_Customsearch_PromotionImage extends Google_Model
484
  {
485
  public $height;
486
  public $source;
@@ -517,7 +517,7 @@ class Google_Service_Customsearch_PromotionImage extends Google_Model
517
  }
518
  }
519
 
520
- class Google_Service_Customsearch_Query extends Google_Model
521
  {
522
  public $count;
523
  public $cr;
@@ -928,7 +928,7 @@ class Google_Service_Customsearch_Query extends Google_Model
928
  }
929
  }
930
 
931
- class Google_Service_Customsearch_Result extends Google_Collection
932
  {
933
  public $cacheId;
934
  public $displayLink;
@@ -937,10 +937,10 @@ class Google_Service_Customsearch_Result extends Google_Collection
937
  public $htmlFormattedUrl;
938
  public $htmlSnippet;
939
  public $htmlTitle;
940
- protected $imageType = 'Google_Service_Customsearch_ResultImage';
941
  protected $imageDataType = '';
942
  public $kind;
943
- protected $labelsType = 'Google_Service_Customsearch_ResultLabels';
944
  protected $labelsDataType = 'array';
945
  public $link;
946
  public $mime;
@@ -1018,7 +1018,7 @@ class Google_Service_Customsearch_Result extends Google_Collection
1018
  return $this->htmlTitle;
1019
  }
1020
 
1021
- public function setImage(Google_Service_Customsearch_ResultImage $image)
1022
  {
1023
  $this->image = $image;
1024
  }
@@ -1099,7 +1099,7 @@ class Google_Service_Customsearch_Result extends Google_Collection
1099
  }
1100
  }
1101
 
1102
- class Google_Service_Customsearch_ResultImage extends Google_Model
1103
  {
1104
  public $byteSize;
1105
  public $contextLink;
@@ -1180,7 +1180,7 @@ class Google_Service_Customsearch_ResultImage extends Google_Model
1180
  }
1181
  }
1182
 
1183
- class Google_Service_Customsearch_ResultLabels extends Google_Model
1184
  {
1185
  public $displayName;
1186
  public $labelWithOp;
@@ -1217,25 +1217,25 @@ class Google_Service_Customsearch_ResultLabels extends Google_Model
1217
  }
1218
  }
1219
 
1220
- class Google_Service_Customsearch_Search extends Google_Collection
1221
  {
1222
- protected $contextType = 'Google_Service_Customsearch_Context';
1223
  protected $contextDataType = '';
1224
- protected $itemsType = 'Google_Service_Customsearch_Result';
1225
  protected $itemsDataType = 'array';
1226
  public $kind;
1227
- protected $promotionsType = 'Google_Service_Customsearch_Promotion';
1228
  protected $promotionsDataType = 'array';
1229
- protected $queriesType = 'Google_Service_Customsearch_Query';
1230
  protected $queriesDataType = 'map';
1231
- protected $searchInformationType = 'Google_Service_Customsearch_SearchSearchInformation';
1232
  protected $searchInformationDataType = '';
1233
- protected $spellingType = 'Google_Service_Customsearch_SearchSpelling';
1234
  protected $spellingDataType = '';
1235
- protected $urlType = 'Google_Service_Customsearch_SearchUrl';
1236
  protected $urlDataType = '';
1237
 
1238
- public function setContext(Google_Service_Customsearch_Context $context)
1239
  {
1240
  $this->context = $context;
1241
  }
@@ -1285,7 +1285,7 @@ class Google_Service_Customsearch_Search extends Google_Collection
1285
  return $this->queries;
1286
  }
1287
 
1288
- public function setSearchInformation(Google_Service_Customsearch_SearchSearchInformation $searchInformation)
1289
  {
1290
  $this->searchInformation = $searchInformation;
1291
  }
@@ -1295,7 +1295,7 @@ class Google_Service_Customsearch_Search extends Google_Collection
1295
  return $this->searchInformation;
1296
  }
1297
 
1298
- public function setSpelling(Google_Service_Customsearch_SearchSpelling $spelling)
1299
  {
1300
  $this->spelling = $spelling;
1301
  }
@@ -1305,7 +1305,7 @@ class Google_Service_Customsearch_Search extends Google_Collection
1305
  return $this->spelling;
1306
  }
1307
 
1308
- public function setUrl(Google_Service_Customsearch_SearchUrl $url)
1309
  {
1310
  $this->url = $url;
1311
  }
@@ -1316,7 +1316,7 @@ class Google_Service_Customsearch_Search extends Google_Collection
1316
  }
1317
  }
1318
 
1319
- class Google_Service_Customsearch_SearchSearchInformation extends Google_Model
1320
  {
1321
  public $formattedSearchTime;
1322
  public $formattedTotalResults;
@@ -1364,7 +1364,7 @@ class Google_Service_Customsearch_SearchSearchInformation extends Google_Model
1364
  }
1365
  }
1366
 
1367
- class Google_Service_Customsearch_SearchSpelling extends Google_Model
1368
  {
1369
  public $correctedQuery;
1370
  public $htmlCorrectedQuery;
@@ -1390,7 +1390,7 @@ class Google_Service_Customsearch_SearchSpelling extends Google_Model
1390
  }
1391
  }
1392
 
1393
- class Google_Service_Customsearch_SearchUrl extends Google_Model
1394
  {
1395
  public $template;
1396
  public $type;
29
  *
30
  * @author Google, Inc.
31
  */
32
+ class GoogleGAL_Service_Customsearch extends GoogleGAL_Service
33
  {
34
 
35
 
39
  /**
40
  * Constructs the internal representation of the Customsearch service.
41
  *
42
+ * @param GoogleGAL_Client $client
43
  */
44
+ public function __construct(GoogleGAL_Client $client)
45
  {
46
  parent::__construct($client);
47
  $this->servicePath = 'customsearch/';
48
  $this->version = 'v1';
49
  $this->serviceName = 'customsearch';
50
 
51
+ $this->cse = new GoogleGAL_Service_Customsearch_Cse_Resource(
52
  $this,
53
  $this->serviceName,
54
  'cse',
200
  * The "cse" collection of methods.
201
  * Typical usage is:
202
  * <code>
203
+ * $customsearchService = new GoogleGAL_Service_Customsearch(...);
204
  * $cse = $customsearchService->cse;
205
  * </code>
206
  */
207
+ class GoogleGAL_Service_Customsearch_Cse_Resource extends GoogleGAL_Service_Resource
208
  {
209
 
210
  /**
283
  * @opt_param string siteSearchFilter
284
  * Controls whether to include or exclude results from the site named in the as_sitesearch
285
  * parameter
286
+ * @return GoogleGAL_Service_Customsearch_Search
287
  */
288
  public function listCse($q, $optParams = array())
289
  {
290
  $params = array('q' => $q);
291
  $params = array_merge($params, $optParams);
292
+ return $this->call('list', array($params), "GoogleGAL_Service_Customsearch_Search");
293
  }
294
  }
295
 
296
 
297
 
298
 
299
+ class GoogleGAL_Service_Customsearch_Context extends GoogleGAL_Collection
300
  {
301
+ protected $facetsType = 'GoogleGAL_Service_Customsearch_ContextFacets';
302
  protected $facetsDataType = 'array';
303
  public $title;
304
 
323
  }
324
  }
325
 
326
+ class GoogleGAL_Service_Customsearch_ContextFacets extends GoogleGAL_Model
327
  {
328
  public $anchor;
329
  public $label;
360
  }
361
  }
362
 
363
+ class GoogleGAL_Service_Customsearch_Promotion extends GoogleGAL_Collection
364
  {
365
+ protected $bodyLinesType = 'GoogleGAL_Service_Customsearch_PromotionBodyLines';
366
  protected $bodyLinesDataType = 'array';
367
  public $displayLink;
368
  public $htmlTitle;
369
+ protected $imageType = 'GoogleGAL_Service_Customsearch_PromotionImage';
370
  protected $imageDataType = '';
371
  public $link;
372
  public $title;
401
  return $this->htmlTitle;
402
  }
403
 
404
+ public function setImage(GoogleGAL_Service_Customsearch_PromotionImage $image)
405
  {
406
  $this->image = $image;
407
  }
432
  }
433
  }
434
 
435
+ class GoogleGAL_Service_Customsearch_PromotionBodyLines extends GoogleGAL_Model
436
  {
437
  public $htmlTitle;
438
  public $link;
480
  }
481
  }
482
 
483
+ class GoogleGAL_Service_Customsearch_PromotionImage extends GoogleGAL_Model
484
  {
485
  public $height;
486
  public $source;
517
  }
518
  }
519
 
520
+ class GoogleGAL_Service_Customsearch_Query extends GoogleGAL_Model
521
  {
522
  public $count;
523
  public $cr;
928
  }
929
  }
930
 
931
+ class GoogleGAL_Service_Customsearch_Result extends GoogleGAL_Collection
932
  {
933
  public $cacheId;
934
  public $displayLink;
937
  public $htmlFormattedUrl;
938
  public $htmlSnippet;
939
  public $htmlTitle;
940
+ protected $imageType = 'GoogleGAL_Service_Customsearch_ResultImage';
941
  protected $imageDataType = '';
942
  public $kind;
943
+ protected $labelsType = 'GoogleGAL_Service_Customsearch_ResultLabels';
944
  protected $labelsDataType = 'array';
945
  public $link;
946
  public $mime;
1018
  return $this->htmlTitle;
1019
  }
1020
 
1021
+ public function setImage(GoogleGAL_Service_Customsearch_ResultImage $image)
1022
  {
1023
  $this->image = $image;
1024
  }
1099
  }
1100
  }
1101
 
1102
+ class GoogleGAL_Service_Customsearch_ResultImage extends GoogleGAL_Model
1103
  {
1104
  public $byteSize;
1105
  public $contextLink;
1180
  }
1181
  }
1182
 
1183
+ class GoogleGAL_Service_Customsearch_ResultLabels extends GoogleGAL_Model
1184
  {
1185
  public $displayName;
1186
  public $labelWithOp;
1217
  }
1218
  }
1219
 
1220
+ class GoogleGAL_Service_Customsearch_Search extends GoogleGAL_Collection
1221
  {
1222
+ protected $contextType = 'GoogleGAL_Service_Customsearch_Context';
1223
  protected $contextDataType = '';
1224
+ protected $itemsType = 'GoogleGAL_Service_Customsearch_Result';
1225
  protected $itemsDataType = 'array';
1226
  public $kind;
1227
+ protected $promotionsType = 'GoogleGAL_Service_Customsearch_Promotion';
1228
  protected $promotionsDataType = 'array';
1229
+ protected $queriesType = 'GoogleGAL_Service_Customsearch_Query';
1230
  protected $queriesDataType = 'map';
1231
+ protected $searchInformationType = 'GoogleGAL_Service_Customsearch_SearchSearchInformation';
1232
  protected $searchInformationDataType = '';
1233
+ protected $spellingType = 'GoogleGAL_Service_Customsearch_SearchSpelling';
1234
  protected $spellingDataType = '';
1235
+ protected $urlType = 'GoogleGAL_Service_Customsearch_SearchUrl';
1236
  protected $urlDataType = '';
1237
 
1238
+ public function setContext(GoogleGAL_Service_Customsearch_Context $context)
1239
  {
1240
  $this->context = $context;
1241
  }
1285
  return $this->queries;
1286
  }
1287
 
1288
+ public function setSearchInformation(GoogleGAL_Service_Customsearch_SearchSearchInformation $searchInformation)
1289
  {
1290
  $this->searchInformation = $searchInformation;
1291
  }
1295
  return $this->searchInformation;
1296
  }
1297
 
1298
+ public function setSpelling(GoogleGAL_Service_Customsearch_SearchSpelling $spelling)
1299
  {
1300
  $this->spelling = $spelling;
1301
  }
1305
  return $this->spelling;
1306
  }
1307
 
1308
+ public function setUrl(GoogleGAL_Service_Customsearch_SearchUrl $url)
1309
  {
1310
  $this->url = $url;
1311
  }
1316
  }
1317
  }
1318
 
1319
+ class GoogleGAL_Service_Customsearch_SearchSearchInformation extends GoogleGAL_Model
1320
  {
1321
  public $formattedSearchTime;
1322
  public $formattedTotalResults;
1364
  }
1365
  }
1366
 
1367
+ class GoogleGAL_Service_Customsearch_SearchSpelling extends GoogleGAL_Model
1368
  {
1369
  public $correctedQuery;
1370
  public $htmlCorrectedQuery;
1390
  }
1391
  }
1392
 
1393
+ class GoogleGAL_Service_Customsearch_SearchUrl extends GoogleGAL_Model
1394
  {
1395
  public $template;
1396
  public $type;
core/Google/Service/Datastore.php CHANGED
@@ -29,7 +29,7 @@
29
  *
30
  * @author Google, Inc.
31
  */
32
- class Google_Service_Datastore extends Google_Service
33
  {
34
  /** View and manage your Google Cloud Datastore data. */
35
  const DATASTORE = "https://www.googleapis.com/auth/datastore";
@@ -42,16 +42,16 @@ class Google_Service_Datastore extends Google_Service
42
  /**
43
  * Constructs the internal representation of the Datastore service.
44
  *
45
- * @param Google_Client $client
46
  */
47
- public function __construct(Google_Client $client)
48
  {
49
  parent::__construct($client);
50
  $this->servicePath = 'datastore/v1beta2/datasets/';
51
  $this->version = 'v1beta2';
52
  $this->serviceName = 'datastore';
53
 
54
- $this->datasets = new Google_Service_Datastore_Datasets_Resource(
55
  $this,
56
  $this->serviceName,
57
  'datasets',
@@ -129,11 +129,11 @@ class Google_Service_Datastore extends Google_Service
129
  * The "datasets" collection of methods.
130
  * Typical usage is:
131
  * <code>
132
- * $datastoreService = new Google_Service_Datastore(...);
133
  * $datasets = $datastoreService->datasets;
134
  * </code>
135
  */
136
- class Google_Service_Datastore_Datasets_Resource extends Google_Service_Resource
137
  {
138
 
139
  /**
@@ -142,30 +142,30 @@ class Google_Service_Datastore_Datasets_Resource extends Google_Service_Resource
142
  *
143
  * @param string $datasetId
144
  * Identifies the dataset.
145
- * @param Google_AllocateIdsRequest $postBody
146
  * @param array $optParams Optional parameters.
147
- * @return Google_Service_Datastore_AllocateIdsResponse
148
  */
149
- public function allocateIds($datasetId, Google_Service_Datastore_AllocateIdsRequest $postBody, $optParams = array())
150
  {
151
  $params = array('datasetId' => $datasetId, 'postBody' => $postBody);
152
  $params = array_merge($params, $optParams);
153
- return $this->call('allocateIds', array($params), "Google_Service_Datastore_AllocateIdsResponse");
154
  }
155
  /**
156
  * Begin a new transaction. (datasets.beginTransaction)
157
  *
158
  * @param string $datasetId
159
  * Identifies the dataset.
160
- * @param Google_BeginTransactionRequest $postBody
161
  * @param array $optParams Optional parameters.
162
- * @return Google_Service_Datastore_BeginTransactionResponse
163
  */
164
- public function beginTransaction($datasetId, Google_Service_Datastore_BeginTransactionRequest $postBody, $optParams = array())
165
  {
166
  $params = array('datasetId' => $datasetId, 'postBody' => $postBody);
167
  $params = array_merge($params, $optParams);
168
- return $this->call('beginTransaction', array($params), "Google_Service_Datastore_BeginTransactionResponse");
169
  }
170
  /**
171
  * Commit a transaction, optionally creating, deleting or modifying some
@@ -173,69 +173,69 @@ class Google_Service_Datastore_Datasets_Resource extends Google_Service_Resource
173
  *
174
  * @param string $datasetId
175
  * Identifies the dataset.
176
- * @param Google_CommitRequest $postBody
177
  * @param array $optParams Optional parameters.
178
- * @return Google_Service_Datastore_CommitResponse
179
  */
180
- public function commit($datasetId, Google_Service_Datastore_CommitRequest $postBody, $optParams = array())
181
  {
182
  $params = array('datasetId' => $datasetId, 'postBody' => $postBody);
183
  $params = array_merge($params, $optParams);
184
- return $this->call('commit', array($params), "Google_Service_Datastore_CommitResponse");
185
  }
186
  /**
187
  * Look up some entities by key. (datasets.lookup)
188
  *
189
  * @param string $datasetId
190
  * Identifies the dataset.
191
- * @param Google_LookupRequest $postBody
192
  * @param array $optParams Optional parameters.
193
- * @return Google_Service_Datastore_LookupResponse
194
  */
195
- public function lookup($datasetId, Google_Service_Datastore_LookupRequest $postBody, $optParams = array())
196
  {
197
  $params = array('datasetId' => $datasetId, 'postBody' => $postBody);
198
  $params = array_merge($params, $optParams);
199
- return $this->call('lookup', array($params), "Google_Service_Datastore_LookupResponse");
200
  }
201
  /**
202
  * Roll back a transaction. (datasets.rollback)
203
  *
204
  * @param string $datasetId
205
  * Identifies the dataset.
206
- * @param Google_RollbackRequest $postBody
207
  * @param array $optParams Optional parameters.
208
- * @return Google_Service_Datastore_RollbackResponse
209
  */
210
- public function rollback($datasetId, Google_Service_Datastore_RollbackRequest $postBody, $optParams = array())
211
  {
212
  $params = array('datasetId' => $datasetId, 'postBody' => $postBody);
213
  $params = array_merge($params, $optParams);
214
- return $this->call('rollback', array($params), "Google_Service_Datastore_RollbackResponse");
215
  }
216
  /**
217
  * Query for entities. (datasets.runQuery)
218
  *
219
  * @param string $datasetId
220
  * Identifies the dataset.
221
- * @param Google_RunQueryRequest $postBody
222
  * @param array $optParams Optional parameters.
223
- * @return Google_Service_Datastore_RunQueryResponse
224
  */
225
- public function runQuery($datasetId, Google_Service_Datastore_RunQueryRequest $postBody, $optParams = array())
226
  {
227
  $params = array('datasetId' => $datasetId, 'postBody' => $postBody);
228
  $params = array_merge($params, $optParams);
229
- return $this->call('runQuery', array($params), "Google_Service_Datastore_RunQueryResponse");
230
  }
231
  }
232
 
233
 
234
 
235
 
236
- class Google_Service_Datastore_AllocateIdsRequest extends Google_Collection
237
  {
238
- protected $keysType = 'Google_Service_Datastore_Key';
239
  protected $keysDataType = 'array';
240
 
241
  public function setKeys($keys)
@@ -249,14 +249,14 @@ class Google_Service_Datastore_AllocateIdsRequest extends Google_Collection
249
  }
250
  }
251
 
252
- class Google_Service_Datastore_AllocateIdsResponse extends Google_Collection
253
  {
254
- protected $headerType = 'Google_Service_Datastore_ResponseHeader';
255
  protected $headerDataType = '';
256
- protected $keysType = 'Google_Service_Datastore_Key';
257
  protected $keysDataType = 'array';
258
 
259
- public function setHeader(Google_Service_Datastore_ResponseHeader $header)
260
  {
261
  $this->header = $header;
262
  }
@@ -277,7 +277,7 @@ class Google_Service_Datastore_AllocateIdsResponse extends Google_Collection
277
  }
278
  }
279
 
280
- class Google_Service_Datastore_BeginTransactionRequest extends Google_Model
281
  {
282
  public $isolationLevel;
283
 
@@ -292,13 +292,13 @@ class Google_Service_Datastore_BeginTransactionRequest extends Google_Model
292
  }
293
  }
294
 
295
- class Google_Service_Datastore_BeginTransactionResponse extends Google_Model
296
  {
297
- protected $headerType = 'Google_Service_Datastore_ResponseHeader';
298
  protected $headerDataType = '';
299
  public $transaction;
300
 
301
- public function setHeader(Google_Service_Datastore_ResponseHeader $header)
302
  {
303
  $this->header = $header;
304
  }
@@ -319,10 +319,10 @@ class Google_Service_Datastore_BeginTransactionResponse extends Google_Model
319
  }
320
  }
321
 
322
- class Google_Service_Datastore_CommitRequest extends Google_Model
323
  {
324
  public $mode;
325
- protected $mutationType = 'Google_Service_Datastore_Mutation';
326
  protected $mutationDataType = '';
327
  public $transaction;
328
 
@@ -336,7 +336,7 @@ class Google_Service_Datastore_CommitRequest extends Google_Model
336
  return $this->mode;
337
  }
338
 
339
- public function setMutation(Google_Service_Datastore_Mutation $mutation)
340
  {
341
  $this->mutation = $mutation;
342
  }
@@ -357,14 +357,14 @@ class Google_Service_Datastore_CommitRequest extends Google_Model
357
  }
358
  }
359
 
360
- class Google_Service_Datastore_CommitResponse extends Google_Model
361
  {
362
- protected $headerType = 'Google_Service_Datastore_ResponseHeader';
363
  protected $headerDataType = '';
364
- protected $mutationResultType = 'Google_Service_Datastore_MutationResult';
365
  protected $mutationResultDataType = '';
366
 
367
- public function setHeader(Google_Service_Datastore_ResponseHeader $header)
368
  {
369
  $this->header = $header;
370
  }
@@ -374,7 +374,7 @@ class Google_Service_Datastore_CommitResponse extends Google_Model
374
  return $this->header;
375
  }
376
 
377
- public function setMutationResult(Google_Service_Datastore_MutationResult $mutationResult)
378
  {
379
  $this->mutationResult = $mutationResult;
380
  }
@@ -385,9 +385,9 @@ class Google_Service_Datastore_CommitResponse extends Google_Model
385
  }
386
  }
387
 
388
- class Google_Service_Datastore_CompositeFilter extends Google_Collection
389
  {
390
- protected $filtersType = 'Google_Service_Datastore_Filter';
391
  protected $filtersDataType = 'array';
392
  public $operator;
393
 
@@ -412,14 +412,14 @@ class Google_Service_Datastore_CompositeFilter extends Google_Collection
412
  }
413
  }
414
 
415
- class Google_Service_Datastore_Entity extends Google_Model
416
  {
417
- protected $keyType = 'Google_Service_Datastore_Key';
418
  protected $keyDataType = '';
419
- protected $propertiesType = 'Google_Service_Datastore_Property';
420
  protected $propertiesDataType = 'map';
421
 
422
- public function setKey(Google_Service_Datastore_Key $key)
423
  {
424
  $this->key = $key;
425
  }
@@ -440,12 +440,12 @@ class Google_Service_Datastore_Entity extends Google_Model
440
  }
441
  }
442
 
443
- class Google_Service_Datastore_EntityResult extends Google_Model
444
  {
445
- protected $entityType = 'Google_Service_Datastore_Entity';
446
  protected $entityDataType = '';
447
 
448
- public function setEntity(Google_Service_Datastore_Entity $entity)
449
  {
450
  $this->entity = $entity;
451
  }
@@ -456,14 +456,14 @@ class Google_Service_Datastore_EntityResult extends Google_Model
456
  }
457
  }
458
 
459
- class Google_Service_Datastore_Filter extends Google_Model
460
  {
461
- protected $compositeFilterType = 'Google_Service_Datastore_CompositeFilter';
462
  protected $compositeFilterDataType = '';
463
- protected $propertyFilterType = 'Google_Service_Datastore_PropertyFilter';
464
  protected $propertyFilterDataType = '';
465
 
466
- public function setCompositeFilter(Google_Service_Datastore_CompositeFilter $compositeFilter)
467
  {
468
  $this->compositeFilter = $compositeFilter;
469
  }
@@ -473,7 +473,7 @@ class Google_Service_Datastore_Filter extends Google_Model
473
  return $this->compositeFilter;
474
  }
475
 
476
- public function setPropertyFilter(Google_Service_Datastore_PropertyFilter $propertyFilter)
477
  {
478
  $this->propertyFilter = $propertyFilter;
479
  }
@@ -484,12 +484,12 @@ class Google_Service_Datastore_Filter extends Google_Model
484
  }
485
  }
486
 
487
- class Google_Service_Datastore_GqlQuery extends Google_Collection
488
  {
489
  public $allowLiteral;
490
- protected $nameArgsType = 'Google_Service_Datastore_GqlQueryArg';
491
  protected $nameArgsDataType = 'array';
492
- protected $numberArgsType = 'Google_Service_Datastore_GqlQueryArg';
493
  protected $numberArgsDataType = 'array';
494
  public $queryString;
495
 
@@ -534,11 +534,11 @@ class Google_Service_Datastore_GqlQuery extends Google_Collection
534
  }
535
  }
536
 
537
- class Google_Service_Datastore_GqlQueryArg extends Google_Model
538
  {
539
  public $cursor;
540
  public $name;
541
- protected $valueType = 'Google_Service_Datastore_Value';
542
  protected $valueDataType = '';
543
 
544
  public function setCursor($cursor)
@@ -561,7 +561,7 @@ class Google_Service_Datastore_GqlQueryArg extends Google_Model
561
  return $this->name;
562
  }
563
 
564
- public function setValue(Google_Service_Datastore_Value $value)
565
  {
566
  $this->value = $value;
567
  }
@@ -572,14 +572,14 @@ class Google_Service_Datastore_GqlQueryArg extends Google_Model
572
  }
573
  }
574
 
575
- class Google_Service_Datastore_Key extends Google_Collection
576
  {
577
- protected $partitionIdType = 'Google_Service_Datastore_PartitionId';
578
  protected $partitionIdDataType = '';
579
- protected $pathType = 'Google_Service_Datastore_KeyPathElement';
580
  protected $pathDataType = 'array';
581
 
582
- public function setPartitionId(Google_Service_Datastore_PartitionId $partitionId)
583
  {
584
  $this->partitionId = $partitionId;
585
  }
@@ -600,7 +600,7 @@ class Google_Service_Datastore_Key extends Google_Collection
600
  }
601
  }
602
 
603
- class Google_Service_Datastore_KeyPathElement extends Google_Model
604
  {
605
  public $id;
606
  public $kind;
@@ -637,7 +637,7 @@ class Google_Service_Datastore_KeyPathElement extends Google_Model
637
  }
638
  }
639
 
640
- class Google_Service_Datastore_KindExpression extends Google_Model
641
  {
642
  public $name;
643
 
@@ -652,11 +652,11 @@ class Google_Service_Datastore_KindExpression extends Google_Model
652
  }
653
  }
654
 
655
- class Google_Service_Datastore_LookupRequest extends Google_Collection
656
  {
657
- protected $keysType = 'Google_Service_Datastore_Key';
658
  protected $keysDataType = 'array';
659
- protected $readOptionsType = 'Google_Service_Datastore_ReadOptions';
660
  protected $readOptionsDataType = '';
661
 
662
  public function setKeys($keys)
@@ -669,7 +669,7 @@ class Google_Service_Datastore_LookupRequest extends Google_Collection
669
  return $this->keys;
670
  }
671
 
672
- public function setReadOptions(Google_Service_Datastore_ReadOptions $readOptions)
673
  {
674
  $this->readOptions = $readOptions;
675
  }
@@ -680,15 +680,15 @@ class Google_Service_Datastore_LookupRequest extends Google_Collection
680
  }
681
  }
682
 
683
- class Google_Service_Datastore_LookupResponse extends Google_Collection
684
  {
685
- protected $deferredType = 'Google_Service_Datastore_Key';
686
  protected $deferredDataType = 'array';
687
- protected $foundType = 'Google_Service_Datastore_EntityResult';
688
  protected $foundDataType = 'array';
689
- protected $headerType = 'Google_Service_Datastore_ResponseHeader';
690
  protected $headerDataType = '';
691
- protected $missingType = 'Google_Service_Datastore_EntityResult';
692
  protected $missingDataType = 'array';
693
 
694
  public function setDeferred($deferred)
@@ -711,7 +711,7 @@ class Google_Service_Datastore_LookupResponse extends Google_Collection
711
  return $this->found;
712
  }
713
 
714
- public function setHeader(Google_Service_Datastore_ResponseHeader $header)
715
  {
716
  $this->header = $header;
717
  }
@@ -732,18 +732,18 @@ class Google_Service_Datastore_LookupResponse extends Google_Collection
732
  }
733
  }
734
 
735
- class Google_Service_Datastore_Mutation extends Google_Collection
736
  {
737
- protected $deleteType = 'Google_Service_Datastore_Key';
738
  protected $deleteDataType = 'array';
739
  public $force;
740
- protected $insertType = 'Google_Service_Datastore_Entity';
741
  protected $insertDataType = 'array';
742
- protected $insertAutoIdType = 'Google_Service_Datastore_Entity';
743
  protected $insertAutoIdDataType = 'array';
744
- protected $updateType = 'Google_Service_Datastore_Entity';
745
  protected $updateDataType = 'array';
746
- protected $upsertType = 'Google_Service_Datastore_Entity';
747
  protected $upsertDataType = 'array';
748
 
749
  public function setDelete($delete)
@@ -807,10 +807,10 @@ class Google_Service_Datastore_Mutation extends Google_Collection
807
  }
808
  }
809
 
810
- class Google_Service_Datastore_MutationResult extends Google_Collection
811
  {
812
  public $indexUpdates;
813
- protected $insertAutoIdKeysType = 'Google_Service_Datastore_Key';
814
  protected $insertAutoIdKeysDataType = 'array';
815
 
816
  public function setIndexUpdates($indexUpdates)
@@ -834,7 +834,7 @@ class Google_Service_Datastore_MutationResult extends Google_Collection
834
  }
835
  }
836
 
837
- class Google_Service_Datastore_PartitionId extends Google_Model
838
  {
839
  public $datasetId;
840
  public $namespace;
@@ -860,20 +860,20 @@ class Google_Service_Datastore_PartitionId extends Google_Model
860
  }
861
  }
862
 
863
- class Google_Service_Datastore_Property extends Google_Collection
864
  {
865
  public $blobKeyValue;
866
  public $blobValue;
867
  public $booleanValue;
868
  public $dateTimeValue;
869
  public $doubleValue;
870
- protected $entityValueType = 'Google_Service_Datastore_Entity';
871
  protected $entityValueDataType = '';
872
  public $indexed;
873
  public $integerValue;
874
- protected $keyValueType = 'Google_Service_Datastore_Key';
875
  protected $keyValueDataType = '';
876
- protected $listValueType = 'Google_Service_Datastore_Value';
877
  protected $listValueDataType = 'array';
878
  public $meaning;
879
  public $stringValue;
@@ -928,7 +928,7 @@ class Google_Service_Datastore_Property extends Google_Collection
928
  return $this->doubleValue;
929
  }
930
 
931
- public function setEntityValue(Google_Service_Datastore_Entity $entityValue)
932
  {
933
  $this->entityValue = $entityValue;
934
  }
@@ -958,7 +958,7 @@ class Google_Service_Datastore_Property extends Google_Collection
958
  return $this->integerValue;
959
  }
960
 
961
- public function setKeyValue(Google_Service_Datastore_Key $keyValue)
962
  {
963
  $this->keyValue = $keyValue;
964
  }
@@ -999,10 +999,10 @@ class Google_Service_Datastore_Property extends Google_Collection
999
  }
1000
  }
1001
 
1002
- class Google_Service_Datastore_PropertyExpression extends Google_Model
1003
  {
1004
  public $aggregationFunction;
1005
- protected $propertyType = 'Google_Service_Datastore_PropertyReference';
1006
  protected $propertyDataType = '';
1007
 
1008
  public function setAggregationFunction($aggregationFunction)
@@ -1015,7 +1015,7 @@ class Google_Service_Datastore_PropertyExpression extends Google_Model
1015
  return $this->aggregationFunction;
1016
  }
1017
 
1018
- public function setProperty(Google_Service_Datastore_PropertyReference $property)
1019
  {
1020
  $this->property = $property;
1021
  }
@@ -1026,12 +1026,12 @@ class Google_Service_Datastore_PropertyExpression extends Google_Model
1026
  }
1027
  }
1028
 
1029
- class Google_Service_Datastore_PropertyFilter extends Google_Model
1030
  {
1031
  public $operator;
1032
- protected $propertyType = 'Google_Service_Datastore_PropertyReference';
1033
  protected $propertyDataType = '';
1034
- protected $valueType = 'Google_Service_Datastore_Value';
1035
  protected $valueDataType = '';
1036
 
1037
  public function setOperator($operator)
@@ -1044,7 +1044,7 @@ class Google_Service_Datastore_PropertyFilter extends Google_Model
1044
  return $this->operator;
1045
  }
1046
 
1047
- public function setProperty(Google_Service_Datastore_PropertyReference $property)
1048
  {
1049
  $this->property = $property;
1050
  }
@@ -1054,7 +1054,7 @@ class Google_Service_Datastore_PropertyFilter extends Google_Model
1054
  return $this->property;
1055
  }
1056
 
1057
- public function setValue(Google_Service_Datastore_Value $value)
1058
  {
1059
  $this->value = $value;
1060
  }
@@ -1065,10 +1065,10 @@ class Google_Service_Datastore_PropertyFilter extends Google_Model
1065
  }
1066
  }
1067
 
1068
- class Google_Service_Datastore_PropertyOrder extends Google_Model
1069
  {
1070
  public $direction;
1071
- protected $propertyType = 'Google_Service_Datastore_PropertyReference';
1072
  protected $propertyDataType = '';
1073
 
1074
  public function setDirection($direction)
@@ -1081,7 +1081,7 @@ class Google_Service_Datastore_PropertyOrder extends Google_Model
1081
  return $this->direction;
1082
  }
1083
 
1084
- public function setProperty(Google_Service_Datastore_PropertyReference $property)
1085
  {
1086
  $this->property = $property;
1087
  }
@@ -1092,7 +1092,7 @@ class Google_Service_Datastore_PropertyOrder extends Google_Model
1092
  }
1093
  }
1094
 
1095
- class Google_Service_Datastore_PropertyReference extends Google_Model
1096
  {
1097
  public $name;
1098
 
@@ -1107,20 +1107,20 @@ class Google_Service_Datastore_PropertyReference extends Google_Model
1107
  }
1108
  }
1109
 
1110
- class Google_Service_Datastore_Query extends Google_Collection
1111
  {
1112
  public $endCursor;
1113
- protected $filterType = 'Google_Service_Datastore_Filter';
1114
  protected $filterDataType = '';
1115
- protected $groupByType = 'Google_Service_Datastore_PropertyReference';
1116
  protected $groupByDataType = 'array';
1117
- protected $kindsType = 'Google_Service_Datastore_KindExpression';
1118
  protected $kindsDataType = 'array';
1119
  public $limit;
1120
  public $offset;
1121
- protected $orderType = 'Google_Service_Datastore_PropertyOrder';
1122
  protected $orderDataType = 'array';
1123
- protected $projectionType = 'Google_Service_Datastore_PropertyExpression';
1124
  protected $projectionDataType = 'array';
1125
  public $startCursor;
1126
 
@@ -1134,7 +1134,7 @@ class Google_Service_Datastore_Query extends Google_Collection
1134
  return $this->endCursor;
1135
  }
1136
 
1137
- public function setFilter(Google_Service_Datastore_Filter $filter)
1138
  {
1139
  $this->filter = $filter;
1140
  }
@@ -1215,11 +1215,11 @@ class Google_Service_Datastore_Query extends Google_Collection
1215
  }
1216
  }
1217
 
1218
- class Google_Service_Datastore_QueryResultBatch extends Google_Collection
1219
  {
1220
  public $endCursor;
1221
  public $entityResultType;
1222
- protected $entityResultsType = 'Google_Service_Datastore_EntityResult';
1223
  protected $entityResultsDataType = 'array';
1224
  public $moreResults;
1225
  public $skippedResults;
@@ -1275,7 +1275,7 @@ class Google_Service_Datastore_QueryResultBatch extends Google_Collection
1275
  }
1276
  }
1277
 
1278
- class Google_Service_Datastore_ReadOptions extends Google_Model
1279
  {
1280
  public $readConsistency;
1281
  public $transaction;
@@ -1301,7 +1301,7 @@ class Google_Service_Datastore_ReadOptions extends Google_Model
1301
  }
1302
  }
1303
 
1304
- class Google_Service_Datastore_ResponseHeader extends Google_Model
1305
  {
1306
  public $kind;
1307
 
@@ -1316,7 +1316,7 @@ class Google_Service_Datastore_ResponseHeader extends Google_Model
1316
  }
1317
  }
1318
 
1319
- class Google_Service_Datastore_RollbackRequest extends Google_Model
1320
  {
1321
  public $transaction;
1322
 
@@ -1331,12 +1331,12 @@ class Google_Service_Datastore_RollbackRequest extends Google_Model
1331
  }
1332
  }
1333
 
1334
- class Google_Service_Datastore_RollbackResponse extends Google_Model
1335
  {
1336
- protected $headerType = 'Google_Service_Datastore_ResponseHeader';
1337
  protected $headerDataType = '';
1338
 
1339
- public function setHeader(Google_Service_Datastore_ResponseHeader $header)
1340
  {
1341
  $this->header = $header;
1342
  }
@@ -1347,18 +1347,18 @@ class Google_Service_Datastore_RollbackResponse extends Google_Model
1347
  }
1348
  }
1349
 
1350
- class Google_Service_Datastore_RunQueryRequest extends Google_Model
1351
  {
1352
- protected $gqlQueryType = 'Google_Service_Datastore_GqlQuery';
1353
  protected $gqlQueryDataType = '';
1354
- protected $partitionIdType = 'Google_Service_Datastore_PartitionId';
1355
  protected $partitionIdDataType = '';
1356
- protected $queryType = 'Google_Service_Datastore_Query';
1357
  protected $queryDataType = '';
1358
- protected $readOptionsType = 'Google_Service_Datastore_ReadOptions';
1359
  protected $readOptionsDataType = '';
1360
 
1361
- public function setGqlQuery(Google_Service_Datastore_GqlQuery $gqlQuery)
1362
  {
1363
  $this->gqlQuery = $gqlQuery;
1364
  }
@@ -1368,7 +1368,7 @@ class Google_Service_Datastore_RunQueryRequest extends Google_Model
1368
  return $this->gqlQuery;
1369
  }
1370
 
1371
- public function setPartitionId(Google_Service_Datastore_PartitionId $partitionId)
1372
  {
1373
  $this->partitionId = $partitionId;
1374
  }
@@ -1378,7 +1378,7 @@ class Google_Service_Datastore_RunQueryRequest extends Google_Model
1378
  return $this->partitionId;
1379
  }
1380
 
1381
- public function setQuery(Google_Service_Datastore_Query $query)
1382
  {
1383
  $this->query = $query;
1384
  }
@@ -1388,7 +1388,7 @@ class Google_Service_Datastore_RunQueryRequest extends Google_Model
1388
  return $this->query;
1389
  }
1390
 
1391
- public function setReadOptions(Google_Service_Datastore_ReadOptions $readOptions)
1392
  {
1393
  $this->readOptions = $readOptions;
1394
  }
@@ -1399,14 +1399,14 @@ class Google_Service_Datastore_RunQueryRequest extends Google_Model
1399
  }
1400
  }
1401
 
1402
- class Google_Service_Datastore_RunQueryResponse extends Google_Model
1403
  {
1404
- protected $batchType = 'Google_Service_Datastore_QueryResultBatch';
1405
  protected $batchDataType = '';
1406
- protected $headerType = 'Google_Service_Datastore_ResponseHeader';
1407
  protected $headerDataType = '';
1408
 
1409
- public function setBatch(Google_Service_Datastore_QueryResultBatch $batch)
1410
  {
1411
  $this->batch = $batch;
1412
  }
@@ -1416,7 +1416,7 @@ class Google_Service_Datastore_RunQueryResponse extends Google_Model
1416
  return $this->batch;
1417
  }
1418
 
1419
- public function setHeader(Google_Service_Datastore_ResponseHeader $header)
1420
  {
1421
  $this->header = $header;
1422
  }
@@ -1427,20 +1427,20 @@ class Google_Service_Datastore_RunQueryResponse extends Google_Model
1427
  }
1428
  }
1429
 
1430
- class Google_Service_Datastore_Value extends Google_Collection
1431
  {
1432
  public $blobKeyValue;
1433
  public $blobValue;
1434
  public $booleanValue;
1435
  public $dateTimeValue;
1436
  public $doubleValue;
1437
- protected $entityValueType = 'Google_Service_Datastore_Entity';
1438
  protected $entityValueDataType = '';
1439
  public $indexed;
1440
  public $integerValue;
1441
- protected $keyValueType = 'Google_Service_Datastore_Key';
1442
  protected $keyValueDataType = '';
1443
- protected $listValueType = 'Google_Service_Datastore_Value';
1444
  protected $listValueDataType = 'array';
1445
  public $meaning;
1446
  public $stringValue;
@@ -1495,7 +1495,7 @@ class Google_Service_Datastore_Value extends Google_Collection
1495
  return $this->doubleValue;
1496
  }
1497
 
1498
- public function setEntityValue(Google_Service_Datastore_Entity $entityValue)
1499
  {
1500
  $this->entityValue = $entityValue;
1501
  }
@@ -1525,7 +1525,7 @@ class Google_Service_Datastore_Value extends Google_Collection
1525
  return $this->integerValue;
1526
  }
1527
 
1528
- public function setKeyValue(Google_Service_Datastore_Key $keyValue)
1529
  {
1530
  $this->keyValue = $keyValue;
1531
  }
29
  *
30
  * @author Google, Inc.
31
  */
32
+ class GoogleGAL_Service_Datastore extends GoogleGAL_Service
33
  {
34
  /** View and manage your Google Cloud Datastore data. */
35
  const DATASTORE = "https://www.googleapis.com/auth/datastore";
42
  /**
43
  * Constructs the internal representation of the Datastore service.
44
  *
45
+ * @param GoogleGAL_Client $client
46
  */
47
+ public function __construct(GoogleGAL_Client $client)
48
  {
49
  parent::__construct($client);
50
  $this->servicePath = 'datastore/v1beta2/datasets/';
51
  $this->version = 'v1beta2';
52
  $this->serviceName = 'datastore';
53
 
54
+ $this->datasets = new GoogleGAL_Service_Datastore_Datasets_Resource(
55
  $this,
56
  $this->serviceName,
57
  'datasets',
129
  * The "datasets" collection of methods.
130
  * Typical usage is:
131
  * <code>
132
+ * $datastoreService = new GoogleGAL_Service_Datastore(...);
133
  * $datasets = $datastoreService->datasets;
134
  * </code>
135
  */
136
+ class GoogleGAL_Service_Datastore_Datasets_Resource extends GoogleGAL_Service_Resource
137
  {
138
 
139
  /**
142
  *
143
  * @param string $datasetId
144
  * Identifies the dataset.
145
+ * @param GoogleGAL_AllocateIdsRequest $postBody
146
  * @param array $optParams Optional parameters.
147
+ * @return GoogleGAL_Service_Datastore_AllocateIdsResponse
148
  */
149
+ public function allocateIds($datasetId, GoogleGAL_Service_Datastore_AllocateIdsRequest $postBody, $optParams = array())
150
  {
151
  $params = array('datasetId' => $datasetId, 'postBody' => $postBody);
152
  $params = array_merge($params, $optParams);
153
+ return $this->call('allocateIds', array($params), "GoogleGAL_Service_Datastore_AllocateIdsResponse");
154
  }
155
  /**
156
  * Begin a new transaction. (datasets.beginTransaction)
157
  *
158
  * @param string $datasetId
159
  * Identifies the dataset.
160
+ * @param GoogleGAL_BeginTransactionRequest $postBody
161
  * @param array $optParams Optional parameters.
162
+ * @return GoogleGAL_Service_Datastore_BeginTransactionResponse
163
  */
164
+ public function beginTransaction($datasetId, GoogleGAL_Service_Datastore_BeginTransactionRequest $postBody, $optParams = array())
165
  {
166
  $params = array('datasetId' => $datasetId, 'postBody' => $postBody);
167
  $params = array_merge($params, $optParams);
168
+ return $this->call('beginTransaction', array($params), "GoogleGAL_Service_Datastore_BeginTransactionResponse");
169
  }
170
  /**
171
  * Commit a transaction, optionally creating, deleting or modifying some
173
  *
174
  * @param string $datasetId
175
  * Identifies the dataset.
176
+ * @param GoogleGAL_CommitRequest $postBody
177
  * @param array $optParams Optional parameters.
178
+ * @return GoogleGAL_Service_Datastore_CommitResponse
179
  */
180
+ public function commit($datasetId, GoogleGAL_Service_Datastore_CommitRequest $postBody, $optParams = array())
181
  {
182
  $params = array('datasetId' => $datasetId, 'postBody' => $postBody);
183
  $params = array_merge($params, $optParams);
184
+ return $this->call('commit', array($params), "GoogleGAL_Service_Datastore_CommitResponse");
185
  }
186
  /**
187
  * Look up some entities by key. (datasets.lookup)
188
  *
189
  * @param string $datasetId
190
  * Identifies the dataset.
191
+ * @param GoogleGAL_LookupRequest $postBody
192
  * @param array $optParams Optional parameters.
193
+ * @return GoogleGAL_Service_Datastore_LookupResponse
194
  */
195
+ public function lookup($datasetId, GoogleGAL_Service_Datastore_LookupRequest $postBody, $optParams = array())
196
  {
197
  $params = array('datasetId' => $datasetId, 'postBody' => $postBody);
198
  $params = array_merge($params, $optParams);
199
+ return $this->call('lookup', array($params), "GoogleGAL_Service_Datastore_LookupResponse");
200
  }
201
  /**
202
  * Roll back a transaction. (datasets.rollback)
203
  *
204
  * @param string $datasetId
205
  * Identifies the dataset.
206
+ * @param GoogleGAL_RollbackRequest $postBody
207
  * @param array $optParams Optional parameters.
208
+ * @return GoogleGAL_Service_Datastore_RollbackResponse
209
  */
210
+ public function rollback($datasetId, GoogleGAL_Service_Datastore_RollbackRequest $postBody, $optParams = array())
211
  {
212
  $params = array('datasetId' => $datasetId, 'postBody' => $postBody);
213
  $params = array_merge($params, $optParams);
214
+ return $this->call('rollback', array($params), "GoogleGAL_Service_Datastore_RollbackResponse");
215
  }
216
  /**
217
  * Query for entities. (datasets.runQuery)
218
  *
219
  * @param string $datasetId
220
  * Identifies the dataset.
221
+ * @param GoogleGAL_RunQueryRequest $postBody
222
  * @param array $optParams Optional parameters.
223
+ * @return GoogleGAL_Service_Datastore_RunQueryResponse
224
  */
225
+ public function runQuery($datasetId, GoogleGAL_Service_Datastore_RunQueryRequest $postBody, $optParams = array())
226
  {
227
  $params = array('datasetId' => $datasetId, 'postBody' => $postBody);
228
  $params = array_merge($params, $optParams);
229
+ return $this->call('runQuery', array($params), "GoogleGAL_Service_Datastore_RunQueryResponse");
230
  }
231
  }
232
 
233
 
234
 
235
 
236
+ class GoogleGAL_Service_Datastore_AllocateIdsRequest extends GoogleGAL_Collection
237
  {
238
+ protected $keysType = 'GoogleGAL_Service_Datastore_Key';
239
  protected $keysDataType = 'array';
240
 
241
  public function setKeys($keys)
249
  }
250
  }
251
 
252
+ class GoogleGAL_Service_Datastore_AllocateIdsResponse extends GoogleGAL_Collection
253
  {
254
+ protected $headerType = 'GoogleGAL_Service_Datastore_ResponseHeader';
255
  protected $headerDataType = '';
256
+ protected $keysType = 'GoogleGAL_Service_Datastore_Key';
257
  protected $keysDataType = 'array';
258
 
259
+ public function setHeader(GoogleGAL_Service_Datastore_ResponseHeader $header)
260
  {
261
  $this->header = $header;
262
  }
277
  }
278
  }
279
 
280
+ class GoogleGAL_Service_Datastore_BeginTransactionRequest extends GoogleGAL_Model
281
  {
282
  public $isolationLevel;
283
 
292
  }
293
  }
294
 
295
+ class GoogleGAL_Service_Datastore_BeginTransactionResponse extends GoogleGAL_Model
296
  {
297
+ protected $headerType = 'GoogleGAL_Service_Datastore_ResponseHeader';
298
  protected $headerDataType = '';
299
  public $transaction;
300
 
301
+ public function setHeader(GoogleGAL_Service_Datastore_ResponseHeader $header)
302
  {
303
  $this->header = $header;
304
  }
319
  }
320
  }
321
 
322
+ class GoogleGAL_Service_Datastore_CommitRequest extends GoogleGAL_Model
323
  {
324
  public $mode;
325
+ protected $mutationType = 'GoogleGAL_Service_Datastore_Mutation';
326
  protected $mutationDataType = '';
327
  public $transaction;
328
 
336
  return $this->mode;
337
  }
338
 
339
+ public function setMutation(GoogleGAL_Service_Datastore_Mutation $mutation)
340
  {
341
  $this->mutation = $mutation;
342
  }
357
  }
358
  }
359
 
360
+ class GoogleGAL_Service_Datastore_CommitResponse extends GoogleGAL_Model
361
  {
362
+ protected $headerType = 'GoogleGAL_Service_Datastore_ResponseHeader';
363
  protected $headerDataType = '';
364
+ protected $mutationResultType = 'GoogleGAL_Service_Datastore_MutationResult';
365
  protected $mutationResultDataType = '';
366
 
367
+ public function setHeader(GoogleGAL_Service_Datastore_ResponseHeader $header)
368
  {
369
  $this->header = $header;
370
  }
374
  return $this->header;
375
  }
376
 
377
+ public function setMutationResult(GoogleGAL_Service_Datastore_MutationResult $mutationResult)
378
  {
379
  $this->mutationResult = $mutationResult;
380
  }
385
  }
386
  }
387
 
388
+ class GoogleGAL_Service_Datastore_CompositeFilter extends GoogleGAL_Collection
389
  {
390
+ protected $filtersType = 'GoogleGAL_Service_Datastore_Filter';
391
  protected $filtersDataType = 'array';
392
  public $operator;
393
 
412
  }
413
  }
414
 
415
+ class GoogleGAL_Service_Datastore_Entity extends GoogleGAL_Model
416
  {
417
+ protected $keyType = 'GoogleGAL_Service_Datastore_Key';
418
  protected $keyDataType = '';
419
+ protected $propertiesType = 'GoogleGAL_Service_Datastore_Property';
420
  protected $propertiesDataType = 'map';
421
 
422
+ public function setKey(GoogleGAL_Service_Datastore_Key $key)
423
  {
424
  $this->key = $key;
425
  }
440
  }
441
  }
442
 
443
+ class GoogleGAL_Service_Datastore_EntityResult extends GoogleGAL_Model
444
  {
445
+ protected $entityType = 'GoogleGAL_Service_Datastore_Entity';
446
  protected $entityDataType = '';
447
 
448
+ public function setEntity(GoogleGAL_Service_Datastore_Entity $entity)
449
  {
450
  $this->entity = $entity;
451
  }
456
  }
457
  }
458
 
459
+ class GoogleGAL_Service_Datastore_Filter extends GoogleGAL_Model
460
  {
461
+ protected $compositeFilterType = 'GoogleGAL_Service_Datastore_CompositeFilter';
462
  protected $compositeFilterDataType = '';
463
+ protected $propertyFilterType = 'GoogleGAL_Service_Datastore_PropertyFilter';
464
  protected $propertyFilterDataType = '';
465
 
466
+ public function setCompositeFilter(GoogleGAL_Service_Datastore_CompositeFilter $compositeFilter)
467
  {
468
  $this->compositeFilter = $compositeFilter;
469
  }
473
  return $this->compositeFilter;
474
  }
475
 
476
+ public function setPropertyFilter(GoogleGAL_Service_Datastore_PropertyFilter $propertyFilter)
477
  {
478
  $this->propertyFilter = $propertyFilter;
479
  }
484
  }
485
  }
486
 
487
+ class GoogleGAL_Service_Datastore_GqlQuery extends GoogleGAL_Collection
488
  {
489
  public $allowLiteral;
490
+ protected $nameArgsType = 'GoogleGAL_Service_Datastore_GqlQueryArg';
491
  protected $nameArgsDataType = 'array';
492
+ protected $numberArgsType = 'GoogleGAL_Service_Datastore_GqlQueryArg';
493
  protected $numberArgsDataType = 'array';
494
  public $queryString;
495
 
534
  }
535
  }
536
 
537
+ class GoogleGAL_Service_Datastore_GqlQueryArg extends GoogleGAL_Model
538
  {
539
  public $cursor;
540
  public $name;
541
+ protected $valueType = 'GoogleGAL_Service_Datastore_Value';
542
  protected $valueDataType = '';
543
 
544
  public function setCursor($cursor)
561
  return $this->name;
562
  }
563
 
564
+ public function setValue(GoogleGAL_Service_Datastore_Value $value)
565
  {
566
  $this->value = $value;
567
  }
572
  }
573
  }
574
 
575
+ class GoogleGAL_Service_Datastore_Key extends GoogleGAL_Collection
576
  {
577
+ protected $partitionIdType = 'GoogleGAL_Service_Datastore_PartitionId';
578
  protected $partitionIdDataType = '';
579
+ protected $pathType = 'GoogleGAL_Service_Datastore_KeyPathElement';
580
  protected $pathDataType = 'array';
581
 
582
+ public function setPartitionId(GoogleGAL_Service_Datastore_PartitionId $partitionId)
583
  {
584
  $this->partitionId = $partitionId;
585
  }
600
  }
601
  }
602
 
603
+ class GoogleGAL_Service_Datastore_KeyPathElement extends GoogleGAL_Model
604
  {
605
  public $id;
606
  public $kind;
637
  }
638
  }
639
 
640
+ class GoogleGAL_Service_Datastore_KindExpression extends GoogleGAL_Model
641
  {
642
  public $name;
643
 
652
  }
653
  }
654
 
655
+ class GoogleGAL_Service_Datastore_LookupRequest extends GoogleGAL_Collection
656
  {
657
+ protected $keysType = 'GoogleGAL_Service_Datastore_Key';
658
  protected $keysDataType = 'array';
659
+ protected $readOptionsType = 'GoogleGAL_Service_Datastore_ReadOptions';
660
  protected $readOptionsDataType = '';
661
 
662
  public function setKeys($keys)
669
  return $this->keys;
670
  }
671
 
672
+ public function setReadOptions(GoogleGAL_Service_Datastore_ReadOptions $readOptions)
673
  {
674
  $this->readOptions = $readOptions;
675
  }
680
  }
681
  }
682
 
683
+ class GoogleGAL_Service_Datastore_LookupResponse extends GoogleGAL_Collection
684
  {
685
+ protected $deferredType = 'GoogleGAL_Service_Datastore_Key';
686
  protected $deferredDataType = 'array';
687
+ protected $foundType = 'GoogleGAL_Service_Datastore_EntityResult';
688
  protected $foundDataType = 'array';
689
+ protected $headerType = 'GoogleGAL_Service_Datastore_ResponseHeader';
690
  protected $headerDataType = '';
691
+ protected $missingType = 'GoogleGAL_Service_Datastore_EntityResult';
692
  protected $missingDataType = 'array';
693
 
694
  public function setDeferred($deferred)
711
  return $this->found;
712
  }
713
 
714
+ public function setHeader(GoogleGAL_Service_Datastore_ResponseHeader $header)
715
  {
716
  $this->header = $header;
717
  }
732
  }
733
  }
734
 
735
+ class GoogleGAL_Service_Datastore_Mutation extends GoogleGAL_Collection
736
  {
737
+ protected $deleteType = 'GoogleGAL_Service_Datastore_Key';
738
  protected $deleteDataType = 'array';
739
  public $force;
740
+ protected $insertType = 'GoogleGAL_Service_Datastore_Entity';
741
  protected $insertDataType = 'array';
742
+ protected $insertAutoIdType = 'GoogleGAL_Service_Datastore_Entity';
743
  protected $insertAutoIdDataType = 'array';
744
+ protected $updateType = 'GoogleGAL_Service_Datastore_Entity';
745
  protected $updateDataType = 'array';
746
+ protected $upsertType = 'GoogleGAL_Service_Datastore_Entity';
747
  protected $upsertDataType = 'array';
748
 
749
  public function setDelete($delete)
807
  }
808
  }
809
 
810
+ class GoogleGAL_Service_Datastore_MutationResult extends GoogleGAL_Collection
811
  {
812
  public $indexUpdates;
813
+ protected $insertAutoIdKeysType = 'GoogleGAL_Service_Datastore_Key';
814
  protected $insertAutoIdKeysDataType = 'array';
815
 
816
  public function setIndexUpdates($indexUpdates)
834
  }
835
  }
836
 
837
+ class GoogleGAL_Service_Datastore_PartitionId extends GoogleGAL_Model
838
  {
839
  public $datasetId;
840
  public $namespace;
860
  }
861
  }
862
 
863
+ class GoogleGAL_Service_Datastore_Property extends GoogleGAL_Collection
864
  {
865
  public $blobKeyValue;
866
  public $blobValue;
867
  public $booleanValue;
868
  public $dateTimeValue;
869
  public $doubleValue;
870
+ protected $entityValueType = 'GoogleGAL_Service_Datastore_Entity';
871
  protected $entityValueDataType = '';
872
  public $indexed;
873
  public $integerValue;
874
+ protected $keyValueType = 'GoogleGAL_Service_Datastore_Key';
875
  protected $keyValueDataType = '';
876
+ protected $listValueType = 'GoogleGAL_Service_Datastore_Value';
877
  protected $listValueDataType = 'array';
878
  public $meaning;
879
  public $stringValue;
928
  return $this->doubleValue;
929
  }
930
 
931
+ public function setEntityValue(GoogleGAL_Service_Datastore_Entity $entityValue)
932
  {
933
  $this->entityValue = $entityValue;
934
  }
958
  return $this->integerValue;
959
  }
960
 
961
+ public function setKeyValue(GoogleGAL_Service_Datastore_Key $keyValue)
962
  {
963
  $this->keyValue = $keyValue;
964
  }
999
  }
1000
  }
1001
 
1002
+ class GoogleGAL_Service_Datastore_PropertyExpression extends GoogleGAL_Model
1003
  {
1004
  public $aggregationFunction;
1005
+ protected $propertyType = 'GoogleGAL_Service_Datastore_PropertyReference';
1006
  protected $propertyDataType = '';
1007
 
1008
  public function setAggregationFunction($aggregationFunction)
1015
  return $this->aggregationFunction;
1016
  }
1017
 
1018
+ public function setProperty(GoogleGAL_Service_Datastore_PropertyReference $property)
1019
  {
1020
  $this->property = $property;
1021
  }
1026
  }
1027
  }
1028
 
1029
+ class GoogleGAL_Service_Datastore_PropertyFilter extends GoogleGAL_Model
1030
  {
1031
  public $operator;
1032
+ protected $propertyType = 'GoogleGAL_Service_Datastore_PropertyReference';
1033
  protected $propertyDataType = '';
1034
+ protected $valueType = 'GoogleGAL_Service_Datastore_Value';
1035
  protected $valueDataType = '';
1036
 
1037
  public function setOperator($operator)
1044
  return $this->operator;
1045
  }
1046
 
1047
+ public function setProperty(GoogleGAL_Service_Datastore_PropertyReference $property)
1048
  {
1049
  $this->property = $property;
1050
  }
1054
  return $this->property;
1055
  }
1056
 
1057
+ public function setValue(GoogleGAL_Service_Datastore_Value $value)
1058
  {
1059
  $this->value = $value;
1060
  }
1065
  }
1066
  }
1067
 
1068
+ class GoogleGAL_Service_Datastore_PropertyOrder extends GoogleGAL_Model
1069
  {
1070
  public $direction;
1071
+ protected $propertyType = 'GoogleGAL_Service_Datastore_PropertyReference';
1072
  protected $propertyDataType = '';
1073
 
1074
  public function setDirection($direction)
1081
  return $this->direction;
1082
  }
1083
 
1084
+ public function setProperty(GoogleGAL_Service_Datastore_PropertyReference $property)
1085
  {
1086
  $this->property = $property;
1087
  }
1092
  }
1093
  }
1094
 
1095
+ class GoogleGAL_Service_Datastore_PropertyReference extends GoogleGAL_Model
1096
  {
1097
  public $name;
1098
 
1107
  }
1108
  }
1109
 
1110
+ class GoogleGAL_Service_Datastore_Query extends GoogleGAL_Collection
1111
  {
1112
  public $endCursor;
1113
+ protected $filterType = 'GoogleGAL_Service_Datastore_Filter';
1114
  protected $filterDataType = '';
1115
+ protected $groupByType = 'GoogleGAL_Service_Datastore_PropertyReference';
1116
  protected $groupByDataType = 'array';
1117
+ protected $kindsType = 'GoogleGAL_Service_Datastore_KindExpression';
1118
  protected $kindsDataType = 'array';
1119
  public $limit;
1120
  public $offset;
1121
+ protected $orderType = 'GoogleGAL_Service_Datastore_PropertyOrder';
1122
  protected $orderDataType = 'array';
1123
+ protected $projectionType = 'GoogleGAL_Service_Datastore_PropertyExpression';
1124
  protected $projectionDataType = 'array';
1125
  public $startCursor;
1126
 
1134
  return $this->endCursor;
1135
  }
1136
 
1137
+ public function setFilter(GoogleGAL_Service_Datastore_Filter $filter)
1138
  {
1139
  $this->filter = $filter;
1140
  }
1215
  }
1216
  }
1217
 
1218
+ class GoogleGAL_Service_Datastore_QueryResultBatch extends GoogleGAL_Collection
1219
  {
1220
  public $endCursor;
1221
  public $entityResultType;
1222
+ protected $entityResultsType = 'GoogleGAL_Service_Datastore_EntityResult';
1223
  protected $entityResultsDataType = 'array';
1224
  public $moreResults;
1225
  public $skippedResults;
1275
  }
1276
  }
1277
 
1278
+ class GoogleGAL_Service_Datastore_ReadOptions extends GoogleGAL_Model
1279
  {
1280
  public $readConsistency;
1281
  public $transaction;
1301
  }
1302
  }
1303
 
1304
+ class GoogleGAL_Service_Datastore_ResponseHeader extends GoogleGAL_Model
1305
  {
1306
  public $kind;
1307
 
1316
  }
1317
  }
1318
 
1319
+ class GoogleGAL_Service_Datastore_RollbackRequest extends GoogleGAL_Model
1320
  {
1321
  public $transaction;
1322
 
1331
  }
1332
  }
1333
 
1334
+ class GoogleGAL_Service_Datastore_RollbackResponse extends GoogleGAL_Model
1335
  {
1336
+ protected $headerType = 'GoogleGAL_Service_Datastore_ResponseHeader';
1337
  protected $headerDataType = '';
1338
 
1339
+ public function setHeader(GoogleGAL_Service_Datastore_ResponseHeader $header)
1340
  {
1341
  $this->header = $header;
1342
  }
1347
  }
1348
  }
1349
 
1350
+ class GoogleGAL_Service_Datastore_RunQueryRequest extends GoogleGAL_Model
1351
  {
1352
+ protected $gqlQueryType = 'GoogleGAL_Service_Datastore_GqlQuery';
1353
  protected $gqlQueryDataType = '';
1354
+ protected $partitionIdType = 'GoogleGAL_Service_Datastore_PartitionId';
1355
  protected $partitionIdDataType = '';
1356
+ protected $queryType = 'GoogleGAL_Service_Datastore_Query';
1357
  protected $queryDataType = '';
1358
+ protected $readOptionsType = 'GoogleGAL_Service_Datastore_ReadOptions';
1359
  protected $readOptionsDataType = '';
1360
 
1361
+ public function setGqlQuery(GoogleGAL_Service_Datastore_GqlQuery $gqlQuery)
1362
  {
1363
  $this->gqlQuery = $gqlQuery;
1364
  }
1368
  return $this->gqlQuery;
1369
  }
1370
 
1371
+ public function setPartitionId(GoogleGAL_Service_Datastore_PartitionId $partitionId)
1372
  {
1373
  $this->partitionId = $partitionId;
1374
  }
1378
  return $this->partitionId;
1379
  }
1380
 
1381
+ public function setQuery(GoogleGAL_Service_Datastore_Query $query)
1382
  {
1383
  $this->query = $query;
1384
  }
1388
  return $this->query;
1389
  }
1390
 
1391
+ public function setReadOptions(GoogleGAL_Service_Datastore_ReadOptions $readOptions)
1392
  {
1393
  $this->readOptions = $readOptions;
1394
  }
1399
  }
1400
  }
1401
 
1402
+ class GoogleGAL_Service_Datastore_RunQueryResponse extends GoogleGAL_Model
1403
  {
1404
+ protected $batchType = 'GoogleGAL_Service_Datastore_QueryResultBatch';
1405
  protected $batchDataType = '';
1406
+ protected $headerType = 'GoogleGAL_Service_Datastore_ResponseHeader';
1407
  protected $headerDataType = '';
1408
 
1409
+ public function setBatch(GoogleGAL_Service_Datastore_QueryResultBatch $batch)
1410
  {
1411
  $this->batch = $batch;
1412
  }
1416
  return $this->batch;
1417
  }
1418
 
1419
+ public function setHeader(GoogleGAL_Service_Datastore_ResponseHeader $header)
1420
  {
1421
  $this->header = $header;
1422
  }
1427
  }
1428
  }
1429
 
1430
+ class GoogleGAL_Service_Datastore_Value extends GoogleGAL_Collection
1431
  {
1432
  public $blobKeyValue;
1433
  public $blobValue;
1434
  public $booleanValue;
1435
  public $dateTimeValue;
1436
  public $doubleValue;
1437
+ protected $entityValueType = 'GoogleGAL_Service_Datastore_Entity';
1438
  protected $entityValueDataType = '';
1439
  public $indexed;
1440
  public $integerValue;
1441
+ protected $keyValueType = 'GoogleGAL_Service_Datastore_Key';
1442
  protected $keyValueDataType = '';
1443
+ protected $listValueType = 'GoogleGAL_Service_Datastore_Value';
1444
  protected $listValueDataType = 'array';
1445
  public $meaning;
1446
  public $stringValue;
1495
  return $this->doubleValue;
1496
  }
1497
 
1498
+ public function setEntityValue(GoogleGAL_Service_Datastore_Entity $entityValue)
1499
  {
1500
  $this->entityValue = $entityValue;
1501
  }
1525
  return $this->integerValue;
1526
  }
1527
 
1528
+ public function setKeyValue(GoogleGAL_Service_Datastore_Key $keyValue)
1529
  {
1530
  $this->keyValue = $keyValue;
1531
  }
core/Google/Service/Dfareporting.php CHANGED
@@ -29,7 +29,7 @@
29
  *
30
  * @author Google, Inc.
31
  */
32
- class Google_Service_Dfareporting extends Google_Service
33
  {
34
  /** View and manage DoubleClick for Advertisers reports. */
35
  const DFAREPORTING = "https://www.googleapis.com/auth/dfareporting";
@@ -45,16 +45,16 @@ class Google_Service_Dfareporting extends Google_Service
45
  /**
46
  * Constructs the internal representation of the Dfareporting service.
47
  *
48
- * @param Google_Client $client
49
  */
50
- public function __construct(Google_Client $client)
51
  {
52
  parent::__construct($client);
53
  $this->servicePath = 'dfareporting/v1.3/';
54
  $this->version = 'v1.3';
55
  $this->serviceName = 'dfareporting';
56
 
57
- $this->dimensionValues = new Google_Service_Dfareporting_DimensionValues_Resource(
58
  $this,
59
  $this->serviceName,
60
  'dimensionValues',
@@ -82,7 +82,7 @@ class Google_Service_Dfareporting extends Google_Service
82
  )
83
  )
84
  );
85
- $this->files = new Google_Service_Dfareporting_Files_Resource(
86
  $this,
87
  $this->serviceName,
88
  'files',
@@ -137,7 +137,7 @@ class Google_Service_Dfareporting extends Google_Service
137
  )
138
  )
139
  );
140
- $this->reports = new Google_Service_Dfareporting_Reports_Resource(
141
  $this,
142
  $this->serviceName,
143
  'reports',
@@ -266,7 +266,7 @@ class Google_Service_Dfareporting extends Google_Service
266
  )
267
  )
268
  );
269
- $this->reports_compatibleFields = new Google_Service_Dfareporting_ReportsCompatibleFields_Resource(
270
  $this,
271
  $this->serviceName,
272
  'compatibleFields',
@@ -286,7 +286,7 @@ class Google_Service_Dfareporting extends Google_Service
286
  )
287
  )
288
  );
289
- $this->reports_files = new Google_Service_Dfareporting_ReportsFiles_Resource(
290
  $this,
291
  $this->serviceName,
292
  'files',
@@ -347,7 +347,7 @@ class Google_Service_Dfareporting extends Google_Service
347
  )
348
  )
349
  );
350
- $this->userProfiles = new Google_Service_Dfareporting_UserProfiles_Resource(
351
  $this,
352
  $this->serviceName,
353
  'userProfiles',
@@ -379,11 +379,11 @@ class Google_Service_Dfareporting extends Google_Service
379
  * The "dimensionValues" collection of methods.
380
  * Typical usage is:
381
  * <code>
382
- * $dfareportingService = new Google_Service_Dfareporting(...);
383
  * $dimensionValues = $dfareportingService->dimensionValues;
384
  * </code>
385
  */
386
- class Google_Service_Dfareporting_DimensionValues_Resource extends Google_Service_Resource
387
  {
388
 
389
  /**
@@ -392,20 +392,20 @@ class Google_Service_Dfareporting_DimensionValues_Resource extends Google_Servic
392
  *
393
  * @param string $profileId
394
  * The DFA user profile ID.
395
- * @param Google_DimensionValueRequest $postBody
396
  * @param array $optParams Optional parameters.
397
  *
398
  * @opt_param string pageToken
399
  * The value of the nextToken from the previous result page.
400
  * @opt_param int maxResults
401
  * Maximum number of results to return.
402
- * @return Google_Service_Dfareporting_DimensionValueList
403
  */
404
- public function query($profileId, Google_Service_Dfareporting_DimensionValueRequest $postBody, $optParams = array())
405
  {
406
  $params = array('profileId' => $profileId, 'postBody' => $postBody);
407
  $params = array_merge($params, $optParams);
408
- return $this->call('query', array($params), "Google_Service_Dfareporting_DimensionValueList");
409
  }
410
  }
411
 
@@ -413,11 +413,11 @@ class Google_Service_Dfareporting_DimensionValues_Resource extends Google_Servic
413
  * The "files" collection of methods.
414
  * Typical usage is:
415
  * <code>
416
- * $dfareportingService = new Google_Service_Dfareporting(...);
417
  * $files = $dfareportingService->files;
418
  * </code>
419
  */
420
- class Google_Service_Dfareporting_Files_Resource extends Google_Service_Resource
421
  {
422
 
423
  /**
@@ -428,13 +428,13 @@ class Google_Service_Dfareporting_Files_Resource extends Google_Service_Resource
428
  * @param string $fileId
429
  * The ID of the report file.
430
  * @param array $optParams Optional parameters.
431
- * @return Google_Service_Dfareporting_DfareportingFile
432
  */
433
  public function get($reportId, $fileId, $optParams = array())
434
  {
435
  $params = array('reportId' => $reportId, 'fileId' => $fileId);
436
  $params = array_merge($params, $optParams);
437
- return $this->call('get', array($params), "Google_Service_Dfareporting_DfareportingFile");
438
  }
439
  /**
440
  * Lists files for a user profile. (files.listFiles)
@@ -453,13 +453,13 @@ class Google_Service_Dfareporting_Files_Resource extends Google_Service_Resource
453
  * Order of sorted results, default is 'DESCENDING'.
454
  * @opt_param string scope
455
  * The scope that defines which results are returned, default is 'MINE'.
456
- * @return Google_Service_Dfareporting_FileList
457
  */
458
  public function listFiles($profileId, $optParams = array())
459
  {
460
  $params = array('profileId' => $profileId);
461
  $params = array_merge($params, $optParams);
462
- return $this->call('list', array($params), "Google_Service_Dfareporting_FileList");
463
  }
464
  }
465
 
@@ -467,11 +467,11 @@ class Google_Service_Dfareporting_Files_Resource extends Google_Service_Resource
467
  * The "reports" collection of methods.
468
  * Typical usage is:
469
  * <code>
470
- * $dfareportingService = new Google_Service_Dfareporting(...);
471
  * $reports = $dfareportingService->reports;
472
  * </code>
473
  */
474
- class Google_Service_Dfareporting_Reports_Resource extends Google_Service_Resource
475
  {
476
 
477
  /**
@@ -497,28 +497,28 @@ class Google_Service_Dfareporting_Reports_Resource extends Google_Service_Resour
497
  * @param string $reportId
498
  * The ID of the report.
499
  * @param array $optParams Optional parameters.
500
- * @return Google_Service_Dfareporting_Report
501
  */
502
  public function get($profileId, $reportId, $optParams = array())
503
  {
504
  $params = array('profileId' => $profileId, 'reportId' => $reportId);
505
  $params = array_merge($params, $optParams);
506
- return $this->call('get', array($params), "Google_Service_Dfareporting_Report");
507
  }
508
  /**
509
  * Creates a report. (reports.insert)
510
  *
511
  * @param string $profileId
512
  * The DFA user profile ID.
513
- * @param Google_Report $postBody
514
  * @param array $optParams Optional parameters.
515
- * @return Google_Service_Dfareporting_Report
516
  */
517
- public function insert($profileId, Google_Service_Dfareporting_Report $postBody, $optParams = array())
518
  {
519
  $params = array('profileId' => $profileId, 'postBody' => $postBody);
520
  $params = array_merge($params, $optParams);
521
- return $this->call('insert', array($params), "Google_Service_Dfareporting_Report");
522
  }
523
  /**
524
  * Retrieves list of reports. (reports.listReports)
@@ -537,13 +537,13 @@ class Google_Service_Dfareporting_Reports_Resource extends Google_Service_Resour
537
  * Order of sorted results, default is 'DESCENDING'.
538
  * @opt_param string scope
539
  * The scope that defines which results are returned, default is 'MINE'.
540
- * @return Google_Service_Dfareporting_ReportList
541
  */
542
  public function listReports($profileId, $optParams = array())
543
  {
544
  $params = array('profileId' => $profileId);
545
  $params = array_merge($params, $optParams);
546
- return $this->call('list', array($params), "Google_Service_Dfareporting_ReportList");
547
  }
548
  /**
549
  * Updates a report. This method supports patch semantics. (reports.patch)
@@ -552,15 +552,15 @@ class Google_Service_Dfareporting_Reports_Resource extends Google_Service_Resour
552
  * The DFA user profile ID.
553
  * @param string $reportId
554
  * The ID of the report.
555
- * @param Google_Report $postBody
556
  * @param array $optParams Optional parameters.
557
- * @return Google_Service_Dfareporting_Report
558
  */
559
- public function patch($profileId, $reportId, Google_Service_Dfareporting_Report $postBody, $optParams = array())
560
  {
561
  $params = array('profileId' => $profileId, 'reportId' => $reportId, 'postBody' => $postBody);
562
  $params = array_merge($params, $optParams);
563
- return $this->call('patch', array($params), "Google_Service_Dfareporting_Report");
564
  }
565
  /**
566
  * Runs a report. (reports.run)
@@ -573,13 +573,13 @@ class Google_Service_Dfareporting_Reports_Resource extends Google_Service_Resour
573
  *
574
  * @opt_param bool synchronous
575
  * If set and true, tries to run the report synchronously.
576
- * @return Google_Service_Dfareporting_DfareportingFile
577
  */
578
  public function run($profileId, $reportId, $optParams = array())
579
  {
580
  $params = array('profileId' => $profileId, 'reportId' => $reportId);
581
  $params = array_merge($params, $optParams);
582
- return $this->call('run', array($params), "Google_Service_Dfareporting_DfareportingFile");
583
  }
584
  /**
585
  * Updates a report. (reports.update)
@@ -588,15 +588,15 @@ class Google_Service_Dfareporting_Reports_Resource extends Google_Service_Resour
588
  * The DFA user profile ID.
589
  * @param string $reportId
590
  * The ID of the report.
591
- * @param Google_Report $postBody
592
  * @param array $optParams Optional parameters.
593
- * @return Google_Service_Dfareporting_Report
594
  */
595
- public function update($profileId, $reportId, Google_Service_Dfareporting_Report $postBody, $optParams = array())
596
  {
597
  $params = array('profileId' => $profileId, 'reportId' => $reportId, 'postBody' => $postBody);
598
  $params = array_merge($params, $optParams);
599
- return $this->call('update', array($params), "Google_Service_Dfareporting_Report");
600
  }
601
  }
602
 
@@ -604,11 +604,11 @@ class Google_Service_Dfareporting_Reports_Resource extends Google_Service_Resour
604
  * The "compatibleFields" collection of methods.
605
  * Typical usage is:
606
  * <code>
607
- * $dfareportingService = new Google_Service_Dfareporting(...);
608
  * $compatibleFields = $dfareportingService->compatibleFields;
609
  * </code>
610
  */
611
- class Google_Service_Dfareporting_ReportsCompatibleFields_Resource extends Google_Service_Resource
612
  {
613
 
614
  /**
@@ -618,26 +618,26 @@ class Google_Service_Dfareporting_ReportsCompatibleFields_Resource extends Googl
618
  *
619
  * @param string $profileId
620
  * The DFA user profile ID.
621
- * @param Google_Report $postBody
622
  * @param array $optParams Optional parameters.
623
- * @return Google_Service_Dfareporting_CompatibleFields
624
  */
625
- public function query($profileId, Google_Service_Dfareporting_Report $postBody, $optParams = array())
626
  {
627
  $params = array('profileId' => $profileId, 'postBody' => $postBody);
628
  $params = array_merge($params, $optParams);
629
- return $this->call('query', array($params), "Google_Service_Dfareporting_CompatibleFields");
630
  }
631
  }
632
  /**
633
  * The "files" collection of methods.
634
  * Typical usage is:
635
  * <code>
636
- * $dfareportingService = new Google_Service_Dfareporting(...);
637
  * $files = $dfareportingService->files;
638
  * </code>
639
  */
640
- class Google_Service_Dfareporting_ReportsFiles_Resource extends Google_Service_Resource
641
  {
642
 
643
  /**
@@ -650,13 +650,13 @@ class Google_Service_Dfareporting_ReportsFiles_Resource extends Google_Service_R
650
  * @param string $fileId
651
  * The ID of the report file.
652
  * @param array $optParams Optional parameters.
653
- * @return Google_Service_Dfareporting_DfareportingFile
654
  */
655
  public function get($profileId, $reportId, $fileId, $optParams = array())
656
  {
657
  $params = array('profileId' => $profileId, 'reportId' => $reportId, 'fileId' => $fileId);
658
  $params = array_merge($params, $optParams);
659
- return $this->call('get', array($params), "Google_Service_Dfareporting_DfareportingFile");
660
  }
661
  /**
662
  * Lists files for a report. (files.listReportsFiles)
@@ -675,13 +675,13 @@ class Google_Service_Dfareporting_ReportsFiles_Resource extends Google_Service_R
675
  * The value of the nextToken from the previous result page.
676
  * @opt_param string sortOrder
677
  * Order of sorted results, default is 'DESCENDING'.
678
- * @return Google_Service_Dfareporting_FileList
679
  */
680
  public function listReportsFiles($profileId, $reportId, $optParams = array())
681
  {
682
  $params = array('profileId' => $profileId, 'reportId' => $reportId);
683
  $params = array_merge($params, $optParams);
684
- return $this->call('list', array($params), "Google_Service_Dfareporting_FileList");
685
  }
686
  }
687
 
@@ -689,11 +689,11 @@ class Google_Service_Dfareporting_ReportsFiles_Resource extends Google_Service_R
689
  * The "userProfiles" collection of methods.
690
  * Typical usage is:
691
  * <code>
692
- * $dfareportingService = new Google_Service_Dfareporting(...);
693
  * $userProfiles = $dfareportingService->userProfiles;
694
  * </code>
695
  */
696
- class Google_Service_Dfareporting_UserProfiles_Resource extends Google_Service_Resource
697
  {
698
 
699
  /**
@@ -702,34 +702,34 @@ class Google_Service_Dfareporting_UserProfiles_Resource extends Google_Service_R
702
  * @param string $profileId
703
  * The user profile ID.
704
  * @param array $optParams Optional parameters.
705
- * @return Google_Service_Dfareporting_UserProfile
706
  */
707
  public function get($profileId, $optParams = array())
708
  {
709
  $params = array('profileId' => $profileId);
710
  $params = array_merge($params, $optParams);
711
- return $this->call('get', array($params), "Google_Service_Dfareporting_UserProfile");
712
  }
713
  /**
714
  * Retrieves list of user profiles for a user. (userProfiles.listUserProfiles)
715
  *
716
  * @param array $optParams Optional parameters.
717
- * @return Google_Service_Dfareporting_UserProfileList
718
  */
719
  public function listUserProfiles($optParams = array())
720
  {
721
  $params = array();
722
  $params = array_merge($params, $optParams);
723
- return $this->call('list', array($params), "Google_Service_Dfareporting_UserProfileList");
724
  }
725
  }
726
 
727
 
728
 
729
 
730
- class Google_Service_Dfareporting_Activities extends Google_Collection
731
  {
732
- protected $filtersType = 'Google_Service_Dfareporting_DimensionValue';
733
  protected $filtersDataType = 'array';
734
  public $kind;
735
  public $metricNames;
@@ -765,21 +765,21 @@ class Google_Service_Dfareporting_Activities extends Google_Collection
765
  }
766
  }
767
 
768
- class Google_Service_Dfareporting_CompatibleFields extends Google_Model
769
  {
770
- protected $crossDimensionReachReportCompatibleFieldsType = 'Google_Service_Dfareporting_CrossDimensionReachReportCompatibleFields';
771
  protected $crossDimensionReachReportCompatibleFieldsDataType = '';
772
- protected $floodlightReportCompatibleFieldsType = 'Google_Service_Dfareporting_FloodlightReportCompatibleFields';
773
  protected $floodlightReportCompatibleFieldsDataType = '';
774
  public $kind;
775
- protected $pathToConversionReportCompatibleFieldsType = 'Google_Service_Dfareporting_PathToConversionReportCompatibleFields';
776
  protected $pathToConversionReportCompatibleFieldsDataType = '';
777
- protected $reachReportCompatibleFieldsType = 'Google_Service_Dfareporting_ReachReportCompatibleFields';
778
  protected $reachReportCompatibleFieldsDataType = '';
779
- protected $reportCompatibleFieldsType = 'Google_Service_Dfareporting_ReportCompatibleFields';
780
  protected $reportCompatibleFieldsDataType = '';
781
 
782
- public function setCrossDimensionReachReportCompatibleFields(Google_Service_Dfareporting_CrossDimensionReachReportCompatibleFields $crossDimensionReachReportCompatibleFields)
783
  {
784
  $this->crossDimensionReachReportCompatibleFields = $crossDimensionReachReportCompatibleFields;
785
  }
@@ -789,7 +789,7 @@ class Google_Service_Dfareporting_CompatibleFields extends Google_Model
789
  return $this->crossDimensionReachReportCompatibleFields;
790
  }
791
 
792
- public function setFloodlightReportCompatibleFields(Google_Service_Dfareporting_FloodlightReportCompatibleFields $floodlightReportCompatibleFields)
793
  {
794
  $this->floodlightReportCompatibleFields = $floodlightReportCompatibleFields;
795
  }
@@ -809,7 +809,7 @@ class Google_Service_Dfareporting_CompatibleFields extends Google_Model
809
  return $this->kind;
810
  }
811
 
812
- public function setPathToConversionReportCompatibleFields(Google_Service_Dfareporting_PathToConversionReportCompatibleFields $pathToConversionReportCompatibleFields)
813
  {
814
  $this->pathToConversionReportCompatibleFields = $pathToConversionReportCompatibleFields;
815
  }
@@ -819,7 +819,7 @@ class Google_Service_Dfareporting_CompatibleFields extends Google_Model
819
  return $this->pathToConversionReportCompatibleFields;
820
  }
821
 
822
- public function setReachReportCompatibleFields(Google_Service_Dfareporting_ReachReportCompatibleFields $reachReportCompatibleFields)
823
  {
824
  $this->reachReportCompatibleFields = $reachReportCompatibleFields;
825
  }
@@ -829,7 +829,7 @@ class Google_Service_Dfareporting_CompatibleFields extends Google_Model
829
  return $this->reachReportCompatibleFields;
830
  }
831
 
832
- public function setReportCompatibleFields(Google_Service_Dfareporting_ReportCompatibleFields $reportCompatibleFields)
833
  {
834
  $this->reportCompatibleFields = $reportCompatibleFields;
835
  }
@@ -840,16 +840,16 @@ class Google_Service_Dfareporting_CompatibleFields extends Google_Model
840
  }
841
  }
842
 
843
- class Google_Service_Dfareporting_CrossDimensionReachReportCompatibleFields extends Google_Collection
844
  {
845
- protected $breakdownType = 'Google_Service_Dfareporting_Dimension';
846
  protected $breakdownDataType = 'array';
847
- protected $dimensionFiltersType = 'Google_Service_Dfareporting_Dimension';
848
  protected $dimensionFiltersDataType = 'array';
849
  public $kind;
850
- protected $metricsType = 'Google_Service_Dfareporting_Metric';
851
  protected $metricsDataType = 'array';
852
- protected $overlapMetricsType = 'Google_Service_Dfareporting_Metric';
853
  protected $overlapMetricsDataType = 'array';
854
 
855
  public function setBreakdown($breakdown)
@@ -903,9 +903,9 @@ class Google_Service_Dfareporting_CrossDimensionReachReportCompatibleFields exte
903
  }
904
  }
905
 
906
- class Google_Service_Dfareporting_CustomRichMediaEvents extends Google_Collection
907
  {
908
- protected $filteredEventIdsType = 'Google_Service_Dfareporting_DimensionValue';
909
  protected $filteredEventIdsDataType = 'array';
910
  public $kind;
911
 
@@ -930,7 +930,7 @@ class Google_Service_Dfareporting_CustomRichMediaEvents extends Google_Collectio
930
  }
931
  }
932
 
933
- class Google_Service_Dfareporting_DateRange extends Google_Model
934
  {
935
  public $endDate;
936
  public $kind;
@@ -978,9 +978,9 @@ class Google_Service_Dfareporting_DateRange extends Google_Model
978
  }
979
  }
980
 
981
- class Google_Service_Dfareporting_DfareportingFile extends Google_Model
982
  {
983
- protected $dateRangeType = 'Google_Service_Dfareporting_DateRange';
984
  protected $dateRangeDataType = '';
985
  public $etag;
986
  public $fileName;
@@ -990,10 +990,10 @@ class Google_Service_Dfareporting_DfareportingFile extends Google_Model
990
  public $lastModifiedTime;
991
  public $reportId;
992
  public $status;
993
- protected $urlsType = 'Google_Service_Dfareporting_DfareportingFileUrls';
994
  protected $urlsDataType = '';
995
 
996
- public function setDateRange(Google_Service_Dfareporting_DateRange $dateRange)
997
  {
998
  $this->dateRange = $dateRange;
999
  }
@@ -1083,7 +1083,7 @@ class Google_Service_Dfareporting_DfareportingFile extends Google_Model
1083
  return $this->status;
1084
  }
1085
 
1086
- public function setUrls(Google_Service_Dfareporting_DfareportingFileUrls $urls)
1087
  {
1088
  $this->urls = $urls;
1089
  }
@@ -1094,7 +1094,7 @@ class Google_Service_Dfareporting_DfareportingFile extends Google_Model
1094
  }
1095
  }
1096
 
1097
- class Google_Service_Dfareporting_DfareportingFileUrls extends Google_Model
1098
  {
1099
  public $apiUrl;
1100
  public $browserUrl;
@@ -1120,7 +1120,7 @@ class Google_Service_Dfareporting_DfareportingFileUrls extends Google_Model
1120
  }
1121
  }
1122
 
1123
- class Google_Service_Dfareporting_Dimension extends Google_Model
1124
  {
1125
  public $kind;
1126
  public $name;
@@ -1146,7 +1146,7 @@ class Google_Service_Dfareporting_Dimension extends Google_Model
1146
  }
1147
  }
1148
 
1149
- class Google_Service_Dfareporting_DimensionFilter extends Google_Model
1150
  {
1151
  public $dimensionName;
1152
  public $kind;
@@ -1183,7 +1183,7 @@ class Google_Service_Dfareporting_DimensionFilter extends Google_Model
1183
  }
1184
  }
1185
 
1186
- class Google_Service_Dfareporting_DimensionValue extends Google_Model
1187
  {
1188
  public $dimensionName;
1189
  public $etag;
@@ -1253,10 +1253,10 @@ class Google_Service_Dfareporting_DimensionValue extends Google_Model
1253
  }
1254
  }
1255
 
1256
- class Google_Service_Dfareporting_DimensionValueList extends Google_Collection
1257
  {
1258
  public $etag;
1259
- protected $itemsType = 'Google_Service_Dfareporting_DimensionValue';
1260
  protected $itemsDataType = 'array';
1261
  public $kind;
1262
  public $nextPageToken;
@@ -1302,11 +1302,11 @@ class Google_Service_Dfareporting_DimensionValueList extends Google_Collection
1302
  }
1303
  }
1304
 
1305
- class Google_Service_Dfareporting_DimensionValueRequest extends Google_Collection
1306
  {
1307
  public $dimensionName;
1308
  public $endDate;
1309
- protected $filtersType = 'Google_Service_Dfareporting_DimensionFilter';
1310
  protected $filtersDataType = 'array';
1311
  public $kind;
1312
  public $startDate;
@@ -1362,10 +1362,10 @@ class Google_Service_Dfareporting_DimensionValueRequest extends Google_Collectio
1362
  }
1363
  }
1364
 
1365
- class Google_Service_Dfareporting_FileList extends Google_Collection
1366
  {
1367
  public $etag;
1368
- protected $itemsType = 'Google_Service_Dfareporting_DfareportingFile';
1369
  protected $itemsDataType = 'array';
1370
  public $kind;
1371
  public $nextPageToken;
@@ -1411,14 +1411,14 @@ class Google_Service_Dfareporting_FileList extends Google_Collection
1411
  }
1412
  }
1413
 
1414
- class Google_Service_Dfareporting_FloodlightReportCompatibleFields extends Google_Collection
1415
  {
1416
- protected $dimensionFiltersType = 'Google_Service_Dfareporting_Dimension';
1417
  protected $dimensionFiltersDataType = 'array';
1418
- protected $dimensionsType = 'Google_Service_Dfareporting_Dimension';
1419
  protected $dimensionsDataType = 'array';
1420
  public $kind;
1421
- protected $metricsType = 'Google_Service_Dfareporting_Metric';
1422
  protected $metricsDataType = 'array';
1423
 
1424
  public function setDimensionFilters($dimensionFilters)
@@ -1462,7 +1462,7 @@ class Google_Service_Dfareporting_FloodlightReportCompatibleFields extends Googl
1462
  }
1463
  }
1464
 
1465
- class Google_Service_Dfareporting_Metric extends Google_Model
1466
  {
1467
  public $kind;
1468
  public $name;
@@ -1488,16 +1488,16 @@ class Google_Service_Dfareporting_Metric extends Google_Model
1488
  }
1489
  }
1490
 
1491
- class Google_Service_Dfareporting_PathToConversionReportCompatibleFields extends Google_Collection
1492
  {
1493
- protected $conversionDimensionsType = 'Google_Service_Dfareporting_Dimension';
1494
  protected $conversionDimensionsDataType = 'array';
1495
- protected $customFloodlightVariablesType = 'Google_Service_Dfareporting_Dimension';
1496
  protected $customFloodlightVariablesDataType = 'array';
1497
  public $kind;
1498
- protected $metricsType = 'Google_Service_Dfareporting_Metric';
1499
  protected $metricsDataType = 'array';
1500
- protected $perInteractionDimensionsType = 'Google_Service_Dfareporting_Dimension';
1501
  protected $perInteractionDimensionsDataType = 'array';
1502
 
1503
  public function setConversionDimensions($conversionDimensions)
@@ -1551,18 +1551,18 @@ class Google_Service_Dfareporting_PathToConversionReportCompatibleFields extends
1551
  }
1552
  }
1553
 
1554
- class Google_Service_Dfareporting_ReachReportCompatibleFields extends Google_Collection
1555
  {
1556
- protected $dimensionFiltersType = 'Google_Service_Dfareporting_Dimension';
1557
  protected $dimensionFiltersDataType = 'array';
1558
- protected $dimensionsType = 'Google_Service_Dfareporting_Dimension';
1559
  protected $dimensionsDataType = 'array';
1560
  public $kind;
1561
- protected $metricsType = 'Google_Service_Dfareporting_Metric';
1562
  protected $metricsDataType = 'array';
1563
- protected $pivotedActivityMetricsType = 'Google_Service_Dfareporting_Metric';
1564
  protected $pivotedActivityMetricsDataType = 'array';
1565
- protected $reachByFrequencyMetricsType = 'Google_Service_Dfareporting_Metric';
1566
  protected $reachByFrequencyMetricsDataType = 'array';
1567
 
1568
  public function setDimensionFilters($dimensionFilters)
@@ -1626,7 +1626,7 @@ class Google_Service_Dfareporting_ReachReportCompatibleFields extends Google_Col
1626
  }
1627
  }
1628
 
1629
- class Google_Service_Dfareporting_Recipient extends Google_Model
1630
  {
1631
  public $deliveryType;
1632
  public $email;
@@ -1663,20 +1663,20 @@ class Google_Service_Dfareporting_Recipient extends Google_Model
1663
  }
1664
  }
1665
 
1666
- class Google_Service_Dfareporting_Report extends Google_Model
1667
  {
1668
  public $accountId;
1669
- protected $activeGrpCriteriaType = 'Google_Service_Dfareporting_ReportActiveGrpCriteria';
1670
  protected $activeGrpCriteriaDataType = '';
1671
- protected $criteriaType = 'Google_Service_Dfareporting_ReportCriteria';
1672
  protected $criteriaDataType = '';
1673
- protected $crossDimensionReachCriteriaType = 'Google_Service_Dfareporting_ReportCrossDimensionReachCriteria';
1674
  protected $crossDimensionReachCriteriaDataType = '';
1675
- protected $deliveryType = 'Google_Service_Dfareporting_ReportDelivery';
1676
  protected $deliveryDataType = '';
1677
  public $etag;
1678
  public $fileName;
1679
- protected $floodlightCriteriaType = 'Google_Service_Dfareporting_ReportFloodlightCriteria';
1680
  protected $floodlightCriteriaDataType = '';
1681
  public $format;
1682
  public $id;
@@ -1684,11 +1684,11 @@ class Google_Service_Dfareporting_Report extends Google_Model
1684
  public $lastModifiedTime;
1685
  public $name;
1686
  public $ownerProfileId;
1687
- protected $pathToConversionCriteriaType = 'Google_Service_Dfareporting_ReportPathToConversionCriteria';
1688
  protected $pathToConversionCriteriaDataType = '';
1689
- protected $reachCriteriaType = 'Google_Service_Dfareporting_ReportReachCriteria';
1690
  protected $reachCriteriaDataType = '';
1691
- protected $scheduleType = 'Google_Service_Dfareporting_ReportSchedule';
1692
  protected $scheduleDataType = '';
1693
  public $subAccountId;
1694
  public $type;
@@ -1703,7 +1703,7 @@ class Google_Service_Dfareporting_Report extends Google_Model
1703
  return $this->accountId;
1704
  }
1705
 
1706
- public function setActiveGrpCriteria(Google_Service_Dfareporting_ReportActiveGrpCriteria $activeGrpCriteria)
1707
  {
1708
  $this->activeGrpCriteria = $activeGrpCriteria;
1709
  }
@@ -1713,7 +1713,7 @@ class Google_Service_Dfareporting_Report extends Google_Model
1713
  return $this->activeGrpCriteria;
1714
  }
1715
 
1716
- public function setCriteria(Google_Service_Dfareporting_ReportCriteria $criteria)
1717
  {
1718
  $this->criteria = $criteria;
1719
  }
@@ -1723,7 +1723,7 @@ class Google_Service_Dfareporting_Report extends Google_Model
1723
  return $this->criteria;
1724
  }
1725
 
1726
- public function setCrossDimensionReachCriteria(Google_Service_Dfareporting_ReportCrossDimensionReachCriteria $crossDimensionReachCriteria)
1727
  {
1728
  $this->crossDimensionReachCriteria = $crossDimensionReachCriteria;
1729
  }
@@ -1733,7 +1733,7 @@ class Google_Service_Dfareporting_Report extends Google_Model
1733
  return $this->crossDimensionReachCriteria;
1734
  }
1735
 
1736
- public function setDelivery(Google_Service_Dfareporting_ReportDelivery $delivery)
1737
  {
1738
  $this->delivery = $delivery;
1739
  }
@@ -1763,7 +1763,7 @@ class Google_Service_Dfareporting_Report extends Google_Model
1763
  return $this->fileName;
1764
  }
1765
 
1766
- public function setFloodlightCriteria(Google_Service_Dfareporting_ReportFloodlightCriteria $floodlightCriteria)
1767
  {
1768
  $this->floodlightCriteria = $floodlightCriteria;
1769
  }
@@ -1833,7 +1833,7 @@ class Google_Service_Dfareporting_Report extends Google_Model
1833
  return $this->ownerProfileId;
1834
  }
1835
 
1836
- public function setPathToConversionCriteria(Google_Service_Dfareporting_ReportPathToConversionCriteria $pathToConversionCriteria)
1837
  {
1838
  $this->pathToConversionCriteria = $pathToConversionCriteria;
1839
  }
@@ -1843,7 +1843,7 @@ class Google_Service_Dfareporting_Report extends Google_Model
1843
  return $this->pathToConversionCriteria;
1844
  }
1845
 
1846
- public function setReachCriteria(Google_Service_Dfareporting_ReportReachCriteria $reachCriteria)
1847
  {
1848
  $this->reachCriteria = $reachCriteria;
1849
  }
@@ -1853,7 +1853,7 @@ class Google_Service_Dfareporting_Report extends Google_Model
1853
  return $this->reachCriteria;
1854
  }
1855
 
1856
- public function setSchedule(Google_Service_Dfareporting_ReportSchedule $schedule)
1857
  {
1858
  $this->schedule = $schedule;
1859
  }
@@ -1884,17 +1884,17 @@ class Google_Service_Dfareporting_Report extends Google_Model
1884
  }
1885
  }
1886
 
1887
- class Google_Service_Dfareporting_ReportActiveGrpCriteria extends Google_Collection
1888
  {
1889
- protected $dateRangeType = 'Google_Service_Dfareporting_DateRange';
1890
  protected $dateRangeDataType = '';
1891
- protected $dimensionFiltersType = 'Google_Service_Dfareporting_DimensionValue';
1892
  protected $dimensionFiltersDataType = 'array';
1893
- protected $dimensionsType = 'Google_Service_Dfareporting_SortedDimension';
1894
  protected $dimensionsDataType = 'array';
1895
  public $metricNames;
1896
 
1897
- public function setDateRange(Google_Service_Dfareporting_DateRange $dateRange)
1898
  {
1899
  $this->dateRange = $dateRange;
1900
  }
@@ -1935,16 +1935,16 @@ class Google_Service_Dfareporting_ReportActiveGrpCriteria extends Google_Collect
1935
  }
1936
  }
1937
 
1938
- class Google_Service_Dfareporting_ReportCompatibleFields extends Google_Collection
1939
  {
1940
- protected $dimensionFiltersType = 'Google_Service_Dfareporting_Dimension';
1941
  protected $dimensionFiltersDataType = 'array';
1942
- protected $dimensionsType = 'Google_Service_Dfareporting_Dimension';
1943
  protected $dimensionsDataType = 'array';
1944
  public $kind;
1945
- protected $metricsType = 'Google_Service_Dfareporting_Metric';
1946
  protected $metricsDataType = 'array';
1947
- protected $pivotedActivityMetricsType = 'Google_Service_Dfareporting_Metric';
1948
  protected $pivotedActivityMetricsDataType = 'array';
1949
 
1950
  public function setDimensionFilters($dimensionFilters)
@@ -1998,21 +1998,21 @@ class Google_Service_Dfareporting_ReportCompatibleFields extends Google_Collecti
1998
  }
1999
  }
2000
 
2001
- class Google_Service_Dfareporting_ReportCriteria extends Google_Collection
2002
  {
2003
- protected $activitiesType = 'Google_Service_Dfareporting_Activities';
2004
  protected $activitiesDataType = '';
2005
- protected $customRichMediaEventsType = 'Google_Service_Dfareporting_CustomRichMediaEvents';
2006
  protected $customRichMediaEventsDataType = '';
2007
- protected $dateRangeType = 'Google_Service_Dfareporting_DateRange';
2008
  protected $dateRangeDataType = '';
2009
- protected $dimensionFiltersType = 'Google_Service_Dfareporting_DimensionValue';
2010
  protected $dimensionFiltersDataType = 'array';
2011
- protected $dimensionsType = 'Google_Service_Dfareporting_SortedDimension';
2012
  protected $dimensionsDataType = 'array';
2013
  public $metricNames;
2014
 
2015
- public function setActivities(Google_Service_Dfareporting_Activities $activities)
2016
  {
2017
  $this->activities = $activities;
2018
  }
@@ -2022,7 +2022,7 @@ class Google_Service_Dfareporting_ReportCriteria extends Google_Collection
2022
  return $this->activities;
2023
  }
2024
 
2025
- public function setCustomRichMediaEvents(Google_Service_Dfareporting_CustomRichMediaEvents $customRichMediaEvents)
2026
  {
2027
  $this->customRichMediaEvents = $customRichMediaEvents;
2028
  }
@@ -2032,7 +2032,7 @@ class Google_Service_Dfareporting_ReportCriteria extends Google_Collection
2032
  return $this->customRichMediaEvents;
2033
  }
2034
 
2035
- public function setDateRange(Google_Service_Dfareporting_DateRange $dateRange)
2036
  {
2037
  $this->dateRange = $dateRange;
2038
  }
@@ -2073,14 +2073,14 @@ class Google_Service_Dfareporting_ReportCriteria extends Google_Collection
2073
  }
2074
  }
2075
 
2076
- class Google_Service_Dfareporting_ReportCrossDimensionReachCriteria extends Google_Collection
2077
  {
2078
- protected $breakdownType = 'Google_Service_Dfareporting_SortedDimension';
2079
  protected $breakdownDataType = 'array';
2080
- protected $dateRangeType = 'Google_Service_Dfareporting_DateRange';
2081
  protected $dateRangeDataType = '';
2082
  public $dimension;
2083
- protected $dimensionFiltersType = 'Google_Service_Dfareporting_DimensionValue';
2084
  protected $dimensionFiltersDataType = 'array';
2085
  public $metricNames;
2086
  public $overlapMetricNames;
@@ -2096,7 +2096,7 @@ class Google_Service_Dfareporting_ReportCrossDimensionReachCriteria extends Goog
2096
  return $this->breakdown;
2097
  }
2098
 
2099
- public function setDateRange(Google_Service_Dfareporting_DateRange $dateRange)
2100
  {
2101
  $this->dateRange = $dateRange;
2102
  }
@@ -2157,12 +2157,12 @@ class Google_Service_Dfareporting_ReportCrossDimensionReachCriteria extends Goog
2157
  }
2158
  }
2159
 
2160
- class Google_Service_Dfareporting_ReportDelivery extends Google_Collection
2161
  {
2162
  public $emailOwner;
2163
  public $emailOwnerDeliveryType;
2164
  public $message;
2165
- protected $recipientsType = 'Google_Service_Dfareporting_Recipient';
2166
  protected $recipientsDataType = 'array';
2167
 
2168
  public function setEmailOwner($emailOwner)
@@ -2206,20 +2206,20 @@ class Google_Service_Dfareporting_ReportDelivery extends Google_Collection
2206
  }
2207
  }
2208
 
2209
- class Google_Service_Dfareporting_ReportFloodlightCriteria extends Google_Collection
2210
  {
2211
- protected $customRichMediaEventsType = 'Google_Service_Dfareporting_DimensionValue';
2212
  protected $customRichMediaEventsDataType = 'array';
2213
- protected $dateRangeType = 'Google_Service_Dfareporting_DateRange';
2214
  protected $dateRangeDataType = '';
2215
- protected $dimensionFiltersType = 'Google_Service_Dfareporting_DimensionValue';
2216
  protected $dimensionFiltersDataType = 'array';
2217
- protected $dimensionsType = 'Google_Service_Dfareporting_SortedDimension';
2218
  protected $dimensionsDataType = 'array';
2219
- protected $floodlightConfigIdType = 'Google_Service_Dfareporting_DimensionValue';
2220
  protected $floodlightConfigIdDataType = '';
2221
  public $metricNames;
2222
- protected $reportPropertiesType = 'Google_Service_Dfareporting_ReportFloodlightCriteriaReportProperties';
2223
  protected $reportPropertiesDataType = '';
2224
 
2225
  public function setCustomRichMediaEvents($customRichMediaEvents)
@@ -2232,7 +2232,7 @@ class Google_Service_Dfareporting_ReportFloodlightCriteria extends Google_Collec
2232
  return $this->customRichMediaEvents;
2233
  }
2234
 
2235
- public function setDateRange(Google_Service_Dfareporting_DateRange $dateRange)
2236
  {
2237
  $this->dateRange = $dateRange;
2238
  }
@@ -2262,7 +2262,7 @@ class Google_Service_Dfareporting_ReportFloodlightCriteria extends Google_Collec
2262
  return $this->dimensions;
2263
  }
2264
 
2265
- public function setFloodlightConfigId(Google_Service_Dfareporting_DimensionValue $floodlightConfigId)
2266
  {
2267
  $this->floodlightConfigId = $floodlightConfigId;
2268
  }
@@ -2282,7 +2282,7 @@ class Google_Service_Dfareporting_ReportFloodlightCriteria extends Google_Collec
2282
  return $this->metricNames;
2283
  }
2284
 
2285
- public function setReportProperties(Google_Service_Dfareporting_ReportFloodlightCriteriaReportProperties $reportProperties)
2286
  {
2287
  $this->reportProperties = $reportProperties;
2288
  }
@@ -2293,7 +2293,7 @@ class Google_Service_Dfareporting_ReportFloodlightCriteria extends Google_Collec
2293
  }
2294
  }
2295
 
2296
- class Google_Service_Dfareporting_ReportFloodlightCriteriaReportProperties extends Google_Model
2297
  {
2298
  public $includeAttributedIPConversions;
2299
  public $includeUnattributedCookieConversions;
@@ -2330,10 +2330,10 @@ class Google_Service_Dfareporting_ReportFloodlightCriteriaReportProperties exten
2330
  }
2331
  }
2332
 
2333
- class Google_Service_Dfareporting_ReportList extends Google_Collection
2334
  {
2335
  public $etag;
2336
- protected $itemsType = 'Google_Service_Dfareporting_Report';
2337
  protected $itemsDataType = 'array';
2338
  public $kind;
2339
  public $nextPageToken;
@@ -2379,24 +2379,24 @@ class Google_Service_Dfareporting_ReportList extends Google_Collection
2379
  }
2380
  }
2381
 
2382
- class Google_Service_Dfareporting_ReportPathToConversionCriteria extends Google_Collection
2383
  {
2384
- protected $activityFiltersType = 'Google_Service_Dfareporting_DimensionValue';
2385
  protected $activityFiltersDataType = 'array';
2386
- protected $conversionDimensionsType = 'Google_Service_Dfareporting_SortedDimension';
2387
  protected $conversionDimensionsDataType = 'array';
2388
- protected $customFloodlightVariablesType = 'Google_Service_Dfareporting_SortedDimension';
2389
  protected $customFloodlightVariablesDataType = 'array';
2390
- protected $customRichMediaEventsType = 'Google_Service_Dfareporting_DimensionValue';
2391
  protected $customRichMediaEventsDataType = 'array';
2392
- protected $dateRangeType = 'Google_Service_Dfareporting_DateRange';
2393
  protected $dateRangeDataType = '';
2394
- protected $floodlightConfigIdType = 'Google_Service_Dfareporting_DimensionValue';
2395
  protected $floodlightConfigIdDataType = '';
2396
  public $metricNames;
2397
- protected $perInteractionDimensionsType = 'Google_Service_Dfareporting_SortedDimension';
2398
  protected $perInteractionDimensionsDataType = 'array';
2399
- protected $reportPropertiesType = 'Google_Service_Dfareporting_ReportPathToConversionCriteriaReportProperties';
2400
  protected $reportPropertiesDataType = '';
2401
 
2402
  public function setActivityFilters($activityFilters)
@@ -2439,7 +2439,7 @@ class Google_Service_Dfareporting_ReportPathToConversionCriteria extends Google_
2439
  return $this->customRichMediaEvents;
2440
  }
2441
 
2442
- public function setDateRange(Google_Service_Dfareporting_DateRange $dateRange)
2443
  {
2444
  $this->dateRange = $dateRange;
2445
  }
@@ -2449,7 +2449,7 @@ class Google_Service_Dfareporting_ReportPathToConversionCriteria extends Google_
2449
  return $this->dateRange;
2450
  }
2451
 
2452
- public function setFloodlightConfigId(Google_Service_Dfareporting_DimensionValue $floodlightConfigId)
2453
  {
2454
  $this->floodlightConfigId = $floodlightConfigId;
2455
  }
@@ -2479,7 +2479,7 @@ class Google_Service_Dfareporting_ReportPathToConversionCriteria extends Google_
2479
  return $this->perInteractionDimensions;
2480
  }
2481
 
2482
- public function setReportProperties(Google_Service_Dfareporting_ReportPathToConversionCriteriaReportProperties $reportProperties)
2483
  {
2484
  $this->reportProperties = $reportProperties;
2485
  }
@@ -2490,7 +2490,7 @@ class Google_Service_Dfareporting_ReportPathToConversionCriteria extends Google_
2490
  }
2491
  }
2492
 
2493
- class Google_Service_Dfareporting_ReportPathToConversionCriteriaReportProperties extends Google_Model
2494
  {
2495
  public $clicksLookbackWindow;
2496
  public $impressionsLookbackWindow;
@@ -2593,22 +2593,22 @@ class Google_Service_Dfareporting_ReportPathToConversionCriteriaReportProperties
2593
  }
2594
  }
2595
 
2596
- class Google_Service_Dfareporting_ReportReachCriteria extends Google_Collection
2597
  {
2598
- protected $activitiesType = 'Google_Service_Dfareporting_Activities';
2599
  protected $activitiesDataType = '';
2600
- protected $customRichMediaEventsType = 'Google_Service_Dfareporting_CustomRichMediaEvents';
2601
  protected $customRichMediaEventsDataType = '';
2602
- protected $dateRangeType = 'Google_Service_Dfareporting_DateRange';
2603
  protected $dateRangeDataType = '';
2604
- protected $dimensionFiltersType = 'Google_Service_Dfareporting_DimensionValue';
2605
  protected $dimensionFiltersDataType = 'array';
2606
- protected $dimensionsType = 'Google_Service_Dfareporting_SortedDimension';
2607
  protected $dimensionsDataType = 'array';
2608
  public $metricNames;
2609
  public $reachByFrequencyMetricNames;
2610
 
2611
- public function setActivities(Google_Service_Dfareporting_Activities $activities)
2612
  {
2613
  $this->activities = $activities;
2614
  }
@@ -2618,7 +2618,7 @@ class Google_Service_Dfareporting_ReportReachCriteria extends Google_Collection
2618
  return $this->activities;
2619
  }
2620
 
2621
- public function setCustomRichMediaEvents(Google_Service_Dfareporting_CustomRichMediaEvents $customRichMediaEvents)
2622
  {
2623
  $this->customRichMediaEvents = $customRichMediaEvents;
2624
  }
@@ -2628,7 +2628,7 @@ class Google_Service_Dfareporting_ReportReachCriteria extends Google_Collection
2628
  return $this->customRichMediaEvents;
2629
  }
2630
 
2631
- public function setDateRange(Google_Service_Dfareporting_DateRange $dateRange)
2632
  {
2633
  $this->dateRange = $dateRange;
2634
  }
@@ -2679,7 +2679,7 @@ class Google_Service_Dfareporting_ReportReachCriteria extends Google_Collection
2679
  }
2680
  }
2681
 
2682
- class Google_Service_Dfareporting_ReportSchedule extends Google_Collection
2683
  {
2684
  public $active;
2685
  public $every;
@@ -2760,7 +2760,7 @@ class Google_Service_Dfareporting_ReportSchedule extends Google_Collection
2760
  }
2761
  }
2762
 
2763
- class Google_Service_Dfareporting_SortedDimension extends Google_Model
2764
  {
2765
  public $kind;
2766
  public $name;
@@ -2797,7 +2797,7 @@ class Google_Service_Dfareporting_SortedDimension extends Google_Model
2797
  }
2798
  }
2799
 
2800
- class Google_Service_Dfareporting_UserProfile extends Google_Model
2801
  {
2802
  public $accountId;
2803
  public $accountName;
@@ -2889,10 +2889,10 @@ class Google_Service_Dfareporting_UserProfile extends Google_Model
2889
  }
2890
  }
2891
 
2892
- class Google_Service_Dfareporting_UserProfileList extends Google_Collection
2893
  {
2894
  public $etag;
2895
- protected $itemsType = 'Google_Service_Dfareporting_UserProfile';
2896
  protected $itemsDataType = 'array';
2897
  public $kind;
2898
 
29
  *
30
  * @author Google, Inc.
31
  */
32
+ class GoogleGAL_Service_Dfareporting extends GoogleGAL_Service
33
  {
34
  /** View and manage DoubleClick for Advertisers reports. */
35
  const DFAREPORTING = "https://www.googleapis.com/auth/dfareporting";
45
  /**
46
  * Constructs the internal representation of the Dfareporting service.
47
  *
48
+ * @param GoogleGAL_Client $client
49
  */
50
+ public function __construct(GoogleGAL_Client $client)
51
  {
52
  parent::__construct($client);
53
  $this->servicePath = 'dfareporting/v1.3/';
54
  $this->version = 'v1.3';
55
  $this->serviceName = 'dfareporting';
56
 
57
+ $this->dimensionValues = new GoogleGAL_Service_Dfareporting_DimensionValues_Resource(
58
  $this,
59
  $this->serviceName,
60
  'dimensionValues',
82
  )
83
  )
84
  );
85
+ $this->files = new GoogleGAL_Service_Dfareporting_Files_Resource(
86
  $this,
87
  $this->serviceName,
88
  'files',
137
  )
138
  )
139
  );
140
+ $this->reports = new GoogleGAL_Service_Dfareporting_Reports_Resource(
141
  $this,
142
  $this->serviceName,
143
  'reports',
266
  )
267
  )
268
  );
269
+ $this->reports_compatibleFields = new GoogleGAL_Service_Dfareporting_ReportsCompatibleFields_Resource(
270
  $this,
271
  $this->serviceName,
272
  'compatibleFields',
286
  )
287
  )
288
  );
289
+ $this->reports_files = new GoogleGAL_Service_Dfareporting_ReportsFiles_Resource(
290
  $this,
291
  $this->serviceName,
292
  'files',
347
  )
348
  )
349
  );
350
+ $this->userProfiles = new GoogleGAL_Service_Dfareporting_UserProfiles_Resource(
351
  $this,
352
  $this->serviceName,
353
  'userProfiles',
379
  * The "dimensionValues" collection of methods.
380
  * Typical usage is:
381
  * <code>
382
+ * $dfareportingService = new GoogleGAL_Service_Dfareporting(...);
383
  * $dimensionValues = $dfareportingService->dimensionValues;
384
  * </code>
385
  */
386
+ class GoogleGAL_Service_Dfareporting_DimensionValues_Resource extends GoogleGAL_Service_Resource
387
  {
388
 
389
  /**
392
  *
393
  * @param string $profileId
394
  * The DFA user profile ID.
395
+ * @param GoogleGAL_DimensionValueRequest $postBody
396
  * @param array $optParams Optional parameters.
397
  *
398
  * @opt_param string pageToken
399
  * The value of the nextToken from the previous result page.
400
  * @opt_param int maxResults
401
  * Maximum number of results to return.
402
+ * @return GoogleGAL_Service_Dfareporting_DimensionValueList
403
  */
404
+ public function query($profileId, GoogleGAL_Service_Dfareporting_DimensionValueRequest $postBody, $optParams = array())
405
  {
406
  $params = array('profileId' => $profileId, 'postBody' => $postBody);
407
  $params = array_merge($params, $optParams);
408
+ return $this->call('query', array($params), "GoogleGAL_Service_Dfareporting_DimensionValueList");
409
  }
410
  }
411
 
413
  * The "files" collection of methods.
414
  * Typical usage is:
415
  * <code>
416
+ * $dfareportingService = new GoogleGAL_Service_Dfareporting(...);
417
  * $files = $dfareportingService->files;
418
  * </code>
419
  */
420
+ class GoogleGAL_Service_Dfareporting_Files_Resource extends GoogleGAL_Service_Resource
421
  {
422
 
423
  /**
428
  * @param string $fileId
429
  * The ID of the report file.
430
  * @param array $optParams Optional parameters.
431
+ * @return GoogleGAL_Service_Dfareporting_DfareportingFile
432
  */
433
  public function get($reportId, $fileId, $optParams = array())
434
  {
435
  $params = array('reportId' => $reportId, 'fileId' => $fileId);
436
  $params = array_merge($params, $optParams);
437
+ return $this->call('get', array($params), "GoogleGAL_Service_Dfareporting_DfareportingFile");
438
  }
439
  /**
440
  * Lists files for a user profile. (files.listFiles)
453
  * Order of sorted results, default is 'DESCENDING'.
454
  * @opt_param string scope
455
  * The scope that defines which results are returned, default is 'MINE'.
456
+ * @return GoogleGAL_Service_Dfareporting_FileList
457
  */
458
  public function listFiles($profileId, $optParams = array())
459
  {
460
  $params = array('profileId' => $profileId);
461
  $params = array_merge($params, $optParams);
462
+ return $this->call('list', array($params), "GoogleGAL_Service_Dfareporting_FileList");
463
  }
464
  }
465
 
467
  * The "reports" collection of methods.
468
  * Typical usage is:
469
  * <code>
470
+ * $dfareportingService = new GoogleGAL_Service_Dfareporting(...);
471
  * $reports = $dfareportingService->reports;
472
  * </code>
473
  */
474
+ class GoogleGAL_Service_Dfareporting_Reports_Resource extends GoogleGAL_Service_Resource
475
  {
476
 
477
  /**
497
  * @param string $reportId
498
  * The ID of the report.
499
  * @param array $optParams Optional parameters.
500
+ * @return GoogleGAL_Service_Dfareporting_Report
501
  */
502
  public function get($profileId, $reportId, $optParams = array())
503
  {
504
  $params = array('profileId' => $profileId, 'reportId' => $reportId);
505
  $params = array_merge($params, $optParams);
506
+ return $this->call('get', array($params), "GoogleGAL_Service_Dfareporting_Report");
507
  }
508
  /**
509
  * Creates a report. (reports.insert)
510
  *
511
  * @param string $profileId
512
  * The DFA user profile ID.
513
+ * @param GoogleGAL_Report $postBody
514
  * @param array $optParams Optional parameters.
515
+ * @return GoogleGAL_Service_Dfareporting_Report
516
  */
517
+ public function insert($profileId, GoogleGAL_Service_Dfareporting_Report $postBody, $optParams = array())
518
  {
519
  $params = array('profileId' => $profileId, 'postBody' => $postBody);
520
  $params = array_merge($params, $optParams);
521
+ return $this->call('insert', array($params), "GoogleGAL_Service_Dfareporting_Report");
522
  }
523
  /**
524
  * Retrieves list of reports. (reports.listReports)
537
  * Order of sorted results, default is 'DESCENDING'.
538
  * @opt_param string scope
539
  * The scope that defines which results are returned, default is 'MINE'.
540
+ * @return GoogleGAL_Service_Dfareporting_ReportList
541
  */
542
  public function listReports($profileId, $optParams = array())
543
  {
544
  $params = array('profileId' => $profileId);
545
  $params = array_merge($params, $optParams);
546
+ return $this->call('list', array($params), "GoogleGAL_Service_Dfareporting_ReportList");
547
  }
548
  /**
549
  * Updates a report. This method supports patch semantics. (reports.patch)
552
  * The DFA user profile ID.
553
  * @param string $reportId
554
  * The ID of the report.
555
+ * @param GoogleGAL_Report $postBody
556
  * @param array $optParams Optional parameters.
557
+ * @return GoogleGAL_Service_Dfareporting_Report
558
  */
559
+ public function patch($profileId, $reportId, GoogleGAL_Service_Dfareporting_Report $postBody, $optParams = array())
560
  {
561
  $params = array('profileId' => $profileId, 'reportId' => $reportId, 'postBody' => $postBody);
562
  $params = array_merge($params, $optParams);
563
+ return $this->call('patch', array($params), "GoogleGAL_Service_Dfareporting_Report");
564
  }
565
  /**
566
  * Runs a report. (reports.run)
573
  *
574
  * @opt_param bool synchronous
575
  * If set and true, tries to run the report synchronously.
576
+ * @return GoogleGAL_Service_Dfareporting_DfareportingFile
577
  */
578
  public function run($profileId, $reportId, $optParams = array())
579
  {
580
  $params = array('profileId' => $profileId, 'reportId' => $reportId);
581
  $params = array_merge($params, $optParams);
582
+ return $this->call('run', array($params), "GoogleGAL_Service_Dfareporting_DfareportingFile");
583
  }
584
  /**
585
  * Updates a report. (reports.update)
588
  * The DFA user profile ID.
589
  * @param string $reportId
590
  * The ID of the report.
591
+ * @param GoogleGAL_Report $postBody
592
  * @param array $optParams Optional parameters.
593
+ * @return GoogleGAL_Service_Dfareporting_Report
594
  */
595
+ public function update($profileId, $reportId, GoogleGAL_Service_Dfareporting_Report $postBody, $optParams = array())
596
  {
597
  $params = array('profileId' => $profileId, 'reportId' => $reportId, 'postBody' => $postBody);
598
  $params = array_merge($params, $optParams);
599
+ return $this->call('update', array($params), "GoogleGAL_Service_Dfareporting_Report");
600
  }
601
  }
602
 
604
  * The "compatibleFields" collection of methods.
605
  * Typical usage is:
606
  * <code>
607
+ * $dfareportingService = new GoogleGAL_Service_Dfareporting(...);
608
  * $compatibleFields = $dfareportingService->compatibleFields;
609
  * </code>
610
  */
611
+ class GoogleGAL_Service_Dfareporting_ReportsCompatibleFields_Resource extends GoogleGAL_Service_Resource
612
  {
613
 
614
  /**
618
  *
619
  * @param string $profileId
620
  * The DFA user profile ID.
621
+ * @param GoogleGAL_Report $postBody
622
  * @param array $optParams Optional parameters.
623
+ * @return GoogleGAL_Service_Dfareporting_CompatibleFields
624
  */
625
+ public function query($profileId, GoogleGAL_Service_Dfareporting_Report $postBody, $optParams = array())
626
  {
627
  $params = array('profileId' => $profileId, 'postBody' => $postBody);
628
  $params = array_merge($params, $optParams);
629
+ return $this->call('query', array($params), "GoogleGAL_Service_Dfareporting_CompatibleFields");
630
  }
631
  }
632
  /**
633
  * The "files" collection of methods.
634
  * Typical usage is:
635
  * <code>
636
+ * $dfareportingService = new GoogleGAL_Service_Dfareporting(...);
637
  * $files = $dfareportingService->files;
638
  * </code>
639
  */
640
+ class GoogleGAL_Service_Dfareporting_ReportsFiles_Resource extends GoogleGAL_Service_Resource
641
  {
642
 
643
  /**
650
  * @param string $fileId
651
  * The ID of the report file.
652
  * @param array $optParams Optional parameters.
653
+ * @return GoogleGAL_Service_Dfareporting_DfareportingFile
654
  */
655
  public function get($profileId, $reportId, $fileId, $optParams = array())
656
  {
657
  $params = array('profileId' => $profileId, 'reportId' => $reportId, 'fileId' => $fileId);
658
  $params = array_merge($params, $optParams);
659
+ return $this->call('get', array($params), "GoogleGAL_Service_Dfareporting_DfareportingFile");
660
  }
661
  /**
662
  * Lists files for a report. (files.listReportsFiles)
675
  * The value of the nextToken from the previous result page.
676
  * @opt_param string sortOrder
677
  * Order of sorted results, default is 'DESCENDING'.
678
+ * @return GoogleGAL_Service_Dfareporting_FileList
679
  */
680
  public function listReportsFiles($profileId, $reportId, $optParams = array())
681
  {
682
  $params = array('profileId' => $profileId, 'reportId' => $reportId);
683
  $params = array_merge($params, $optParams);
684
+ return $this->call('list', array($params), "GoogleGAL_Service_Dfareporting_FileList");
685
  }
686
  }
687
 
689
  * The "userProfiles" collection of methods.
690
  * Typical usage is:
691
  * <code>
692
+ * $dfareportingService = new GoogleGAL_Service_Dfareporting(...);
693
  * $userProfiles = $dfareportingService->userProfiles;
694
  * </code>
695
  */
696
+ class GoogleGAL_Service_Dfareporting_UserProfiles_Resource extends GoogleGAL_Service_Resource
697
  {
698
 
699
  /**
702
  * @param string $profileId
703
  * The user profile ID.
704
  * @param array $optParams Optional parameters.
705
+ * @return GoogleGAL_Service_Dfareporting_UserProfile
706
  */
707
  public function get($profileId, $optParams = array())
708
  {
709
  $params = array('profileId' => $profileId);
710
  $params = array_merge($params, $optParams);
711
+ return $this->call('get', array($params), "GoogleGAL_Service_Dfareporting_UserProfile");
712
  }
713
  /**
714
  * Retrieves list of user profiles for a user. (userProfiles.listUserProfiles)
715
  *
716
  * @param array $optParams Optional parameters.
717
+ * @return GoogleGAL_Service_Dfareporting_UserProfileList
718
  */
719
  public function listUserProfiles($optParams = array())
720
  {
721
  $params = array();
722
  $params = array_merge($params, $optParams);
723
+ return $this->call('list', array($params), "GoogleGAL_Service_Dfareporting_UserProfileList");
724
  }
725
  }
726
 
727
 
728
 
729
 
730
+ class GoogleGAL_Service_Dfareporting_Activities extends GoogleGAL_Collection
731
  {
732
+ protected $filtersType = 'GoogleGAL_Service_Dfareporting_DimensionValue';
733
  protected $filtersDataType = 'array';
734
  public $kind;
735
  public $metricNames;
765
  }
766
  }
767
 
768
+ class GoogleGAL_Service_Dfareporting_CompatibleFields extends GoogleGAL_Model
769
  {
770
+ protected $crossDimensionReachReportCompatibleFieldsType = 'GoogleGAL_Service_Dfareporting_CrossDimensionReachReportCompatibleFields';
771
  protected $crossDimensionReachReportCompatibleFieldsDataType = '';
772
+ protected $floodlightReportCompatibleFieldsType = 'GoogleGAL_Service_Dfareporting_FloodlightReportCompatibleFields';
773
  protected $floodlightReportCompatibleFieldsDataType = '';
774
  public $kind;
775
+ protected $pathToConversionReportCompatibleFieldsType = 'GoogleGAL_Service_Dfareporting_PathToConversionReportCompatibleFields';
776
  protected $pathToConversionReportCompatibleFieldsDataType = '';
777
+ protected $reachReportCompatibleFieldsType = 'GoogleGAL_Service_Dfareporting_ReachReportCompatibleFields';
778
  protected $reachReportCompatibleFieldsDataType = '';
779
+ protected $reportCompatibleFieldsType = 'GoogleGAL_Service_Dfareporting_ReportCompatibleFields';
780
  protected $reportCompatibleFieldsDataType = '';
781
 
782
+ public function setCrossDimensionReachReportCompatibleFields(GoogleGAL_Service_Dfareporting_CrossDimensionReachReportCompatibleFields $crossDimensionReachReportCompatibleFields)
783
  {
784
  $this->crossDimensionReachReportCompatibleFields = $crossDimensionReachReportCompatibleFields;
785
  }
789
  return $this->crossDimensionReachReportCompatibleFields;
790
  }
791
 
792
+ public function setFloodlightReportCompatibleFields(GoogleGAL_Service_Dfareporting_FloodlightReportCompatibleFields $floodlightReportCompatibleFields)
793
  {
794
  $this->floodlightReportCompatibleFields = $floodlightReportCompatibleFields;
795
  }
809
  return $this->kind;
810
  }
811
 
812
+ public function setPathToConversionReportCompatibleFields(GoogleGAL_Service_Dfareporting_PathToConversionReportCompatibleFields $pathToConversionReportCompatibleFields)
813
  {
814
  $this->pathToConversionReportCompatibleFields = $pathToConversionReportCompatibleFields;
815
  }
819
  return $this->pathToConversionReportCompatibleFields;
820
  }
821
 
822
+ public function setReachReportCompatibleFields(GoogleGAL_Service_Dfareporting_ReachReportCompatibleFields $reachReportCompatibleFields)
823
  {
824
  $this->reachReportCompatibleFields = $reachReportCompatibleFields;
825
  }
829
  return $this->reachReportCompatibleFields;
830
  }
831
 
832
+ public function setReportCompatibleFields(GoogleGAL_Service_Dfareporting_ReportCompatibleFields $reportCompatibleFields)
833
  {
834
  $this->reportCompatibleFields = $reportCompatibleFields;
835
  }
840
  }
841
  }
842
 
843
+ class GoogleGAL_Service_Dfareporting_CrossDimensionReachReportCompatibleFields extends GoogleGAL_Collection
844
  {
845
+ protected $breakdownType = 'GoogleGAL_Service_Dfareporting_Dimension';
846
  protected $breakdownDataType = 'array';
847
+ protected $dimensionFiltersType = 'GoogleGAL_Service_Dfareporting_Dimension';
848
  protected $dimensionFiltersDataType = 'array';
849
  public $kind;
850
+ protected $metricsType = 'GoogleGAL_Service_Dfareporting_Metric';
851
  protected $metricsDataType = 'array';
852
+ protected $overlapMetricsType = 'GoogleGAL_Service_Dfareporting_Metric';
853
  protected $overlapMetricsDataType = 'array';
854
 
855
  public function setBreakdown($breakdown)
903
  }
904
  }
905
 
906
+ class GoogleGAL_Service_Dfareporting_CustomRichMediaEvents extends GoogleGAL_Collection
907
  {
908
+ protected $filteredEventIdsType = 'GoogleGAL_Service_Dfareporting_DimensionValue';
909
  protected $filteredEventIdsDataType = 'array';
910
  public $kind;
911
 
930
  }
931
  }
932
 
933
+ class GoogleGAL_Service_Dfareporting_DateRange extends GoogleGAL_Model
934
  {
935
  public $endDate;
936
  public $kind;
978
  }
979
  }
980
 
981
+ class GoogleGAL_Service_Dfareporting_DfareportingFile extends GoogleGAL_Model
982
  {
983
+ protected $dateRangeType = 'GoogleGAL_Service_Dfareporting_DateRange';
984
  protected $dateRangeDataType = '';
985
  public $etag;
986
  public $fileName;
990
  public $lastModifiedTime;
991
  public $reportId;
992
  public $status;
993
+ protected $urlsType = 'GoogleGAL_Service_Dfareporting_DfareportingFileUrls';
994
  protected $urlsDataType = '';
995
 
996
+ public function setDateRange(GoogleGAL_Service_Dfareporting_DateRange $dateRange)
997
  {
998
  $this->dateRange = $dateRange;
999
  }
1083
  return $this->status;
1084
  }
1085
 
1086
+ public function setUrls(GoogleGAL_Service_Dfareporting_DfareportingFileUrls $urls)
1087
  {
1088
  $this->urls = $urls;
1089
  }
1094
  }
1095
  }
1096
 
1097
+ class GoogleGAL_Service_Dfareporting_DfareportingFileUrls extends GoogleGAL_Model
1098
  {
1099
  public $apiUrl;
1100
  public $browserUrl;
1120
  }
1121
  }
1122
 
1123
+ class GoogleGAL_Service_Dfareporting_Dimension extends GoogleGAL_Model
1124
  {
1125
  public $kind;
1126
  public $name;
1146
  }
1147
  }
1148
 
1149
+ class GoogleGAL_Service_Dfareporting_DimensionFilter extends GoogleGAL_Model
1150
  {
1151
  public $dimensionName;
1152
  public $kind;
1183
  }
1184
  }
1185
 
1186
+ class GoogleGAL_Service_Dfareporting_DimensionValue extends GoogleGAL_Model
1187
  {
1188
  public $dimensionName;
1189
  public $etag;
1253
  }
1254
  }
1255
 
1256
+ class GoogleGAL_Service_Dfareporting_DimensionValueList extends GoogleGAL_Collection
1257
  {
1258
  public $etag;
1259
+ protected $itemsType = 'GoogleGAL_Service_Dfareporting_DimensionValue';
1260
  protected $itemsDataType = 'array';
1261
  public $kind;
1262
  public $nextPageToken;
1302
  }
1303
  }
1304
 
1305
+ class GoogleGAL_Service_Dfareporting_DimensionValueRequest extends GoogleGAL_Collection
1306
  {
1307
  public $dimensionName;
1308
  public $endDate;
1309
+ protected $filtersType = 'GoogleGAL_Service_Dfareporting_DimensionFilter';
1310
  protected $filtersDataType = 'array';
1311
  public $kind;
1312
  public $startDate;
1362
  }
1363
  }
1364
 
1365
+ class GoogleGAL_Service_Dfareporting_FileList extends GoogleGAL_Collection
1366
  {
1367
  public $etag;
1368
+ protected $itemsType = 'GoogleGAL_Service_Dfareporting_DfareportingFile';
1369
  protected $itemsDataType = 'array';
1370
  public $kind;
1371
  public $nextPageToken;
1411
  }
1412
  }
1413
 
1414
+ class GoogleGAL_Service_Dfareporting_FloodlightReportCompatibleFields extends GoogleGAL_Collection
1415
  {
1416
+ protected $dimensionFiltersType = 'GoogleGAL_Service_Dfareporting_Dimension';
1417
  protected $dimensionFiltersDataType = 'array';
1418
+ protected $dimensionsType = 'GoogleGAL_Service_Dfareporting_Dimension';
1419
  protected $dimensionsDataType = 'array';
1420
  public $kind;
1421
+ protected $metricsType = 'GoogleGAL_Service_Dfareporting_Metric';
1422
  protected $metricsDataType = 'array';
1423
 
1424
  public function setDimensionFilters($dimensionFilters)
1462
  }
1463
  }
1464
 
1465
+ class GoogleGAL_Service_Dfareporting_Metric extends GoogleGAL_Model
1466
  {
1467
  public $kind;
1468
  public $name;
1488
  }
1489
  }
1490
 
1491
+ class GoogleGAL_Service_Dfareporting_PathToConversionReportCompatibleFields extends GoogleGAL_Collection
1492
  {
1493
+ protected $conversionDimensionsType = 'GoogleGAL_Service_Dfareporting_Dimension';
1494
  protected $conversionDimensionsDataType = 'array';
1495
+ protected $customFloodlightVariablesType = 'GoogleGAL_Service_Dfareporting_Dimension';
1496
  protected $customFloodlightVariablesDataType = 'array';
1497
  public $kind;
1498
+ protected $metricsType = 'GoogleGAL_Service_Dfareporting_Metric';
1499
  protected $metricsDataType = 'array';
1500
+ protected $perInteractionDimensionsType = 'GoogleGAL_Service_Dfareporting_Dimension';
1501
  protected $perInteractionDimensionsDataType = 'array';
1502
 
1503
  public function setConversionDimensions($conversionDimensions)
1551
  }
1552
  }
1553
 
1554
+ class GoogleGAL_Service_Dfareporting_ReachReportCompatibleFields extends GoogleGAL_Collection
1555
  {
1556
+ protected $dimensionFiltersType = 'GoogleGAL_Service_Dfareporting_Dimension';
1557
  protected $dimensionFiltersDataType = 'array';
1558
+ protected $dimensionsType = 'GoogleGAL_Service_Dfareporting_Dimension';
1559
  protected $dimensionsDataType = 'array';
1560
  public $kind;
1561
+ protected $metricsType = 'GoogleGAL_Service_Dfareporting_Metric';
1562
  protected $metricsDataType = 'array';
1563
+ protected $pivotedActivityMetricsType = 'GoogleGAL_Service_Dfareporting_Metric';
1564
  protected $pivotedActivityMetricsDataType = 'array';
1565
+ protected $reachByFrequencyMetricsType = 'GoogleGAL_Service_Dfareporting_Metric';
1566
  protected $reachByFrequencyMetricsDataType = 'array';
1567
 
1568
  public function setDimensionFilters($dimensionFilters)
1626
  }
1627
  }
1628
 
1629
+ class GoogleGAL_Service_Dfareporting_Recipient extends GoogleGAL_Model
1630
  {
1631
  public $deliveryType;
1632
  public $email;
1663
  }
1664
  }
1665
 
1666
+ class GoogleGAL_Service_Dfareporting_Report extends GoogleGAL_Model
1667
  {
1668
  public $accountId;
1669
+ protected $activeGrpCriteriaType = 'GoogleGAL_Service_Dfareporting_ReportActiveGrpCriteria';
1670
  protected $activeGrpCriteriaDataType = '';
1671
+ protected $criteriaType = 'GoogleGAL_Service_Dfareporting_ReportCriteria';
1672
  protected $criteriaDataType = '';
1673
+ protected $crossDimensionReachCriteriaType = 'GoogleGAL_Service_Dfareporting_ReportCrossDimensionReachCriteria';
1674
  protected $crossDimensionReachCriteriaDataType = '';
1675
+ protected $deliveryType = 'GoogleGAL_Service_Dfareporting_ReportDelivery';
1676
  protected $deliveryDataType = '';
1677
  public $etag;
1678
  public $fileName;
1679
+ protected $floodlightCriteriaType = 'GoogleGAL_Service_Dfareporting_ReportFloodlightCriteria';
1680
  protected $floodlightCriteriaDataType = '';
1681
  public $format;
1682
  public $id;
1684
  public $lastModifiedTime;
1685
  public $name;
1686
  public $ownerProfileId;
1687
+ protected $pathToConversionCriteriaType = 'GoogleGAL_Service_Dfareporting_ReportPathToConversionCriteria';
1688
  protected $pathToConversionCriteriaDataType = '';
1689
+ protected $reachCriteriaType = 'GoogleGAL_Service_Dfareporting_ReportReachCriteria';
1690
  protected $reachCriteriaDataType = '';
1691
+ protected $scheduleType = 'GoogleGAL_Service_Dfareporting_ReportSchedule';
1692
  protected $scheduleDataType = '';
1693
  public $subAccountId;
1694
  public $type;
1703
  return $this->accountId;
1704
  }
1705
 
1706
+ public function setActiveGrpCriteria(GoogleGAL_Service_Dfareporting_ReportActiveGrpCriteria $activeGrpCriteria)
1707
  {
1708
  $this->activeGrpCriteria = $activeGrpCriteria;
1709
  }
1713
  return $this->activeGrpCriteria;
1714
  }
1715
 
1716
+ public function setCriteria(GoogleGAL_Service_Dfareporting_ReportCriteria $criteria)
1717
  {
1718
  $this->criteria = $criteria;
1719
  }
1723
  return $this->criteria;
1724
  }
1725
 
1726
+ public function setCrossDimensionReachCriteria(GoogleGAL_Service_Dfareporting_ReportCrossDimensionReachCriteria $crossDimensionReachCriteria)
1727
  {
1728
  $this->crossDimensionReachCriteria = $crossDimensionReachCriteria;
1729
  }
1733
  return $this->crossDimensionReachCriteria;
1734
  }
1735
 
1736
+ public function setDelivery(GoogleGAL_Service_Dfareporting_ReportDelivery $delivery)
1737
  {
1738
  $this->delivery = $delivery;
1739
  }
1763
  return $this->fileName;
1764
  }
1765
 
1766
+ public function setFloodlightCriteria(GoogleGAL_Service_Dfareporting_ReportFloodlightCriteria $floodlightCriteria)
1767
  {
1768
  $this->floodlightCriteria = $floodlightCriteria;
1769
  }
1833
  return $this->ownerProfileId;
1834
  }
1835
 
1836
+ public function setPathToConversionCriteria(GoogleGAL_Service_Dfareporting_ReportPathToConversionCriteria $pathToConversionCriteria)
1837
  {
1838
  $this->pathToConversionCriteria = $pathToConversionCriteria;
1839
  }
1843
  return $this->pathToConversionCriteria;
1844
  }
1845
 
1846
+ public function setReachCriteria(GoogleGAL_Service_Dfareporting_ReportReachCriteria $reachCriteria)
1847
  {
1848
  $this->reachCriteria = $reachCriteria;
1849
  }
1853
  return $this->reachCriteria;
1854
  }
1855
 
1856
+ public function setSchedule(GoogleGAL_Service_Dfareporting_ReportSchedule $schedule)
1857
  {
1858
  $this->schedule = $schedule;
1859
  }
1884
  }
1885
  }
1886
 
1887
+ class GoogleGAL_Service_Dfareporting_ReportActiveGrpCriteria extends GoogleGAL_Collection
1888
  {
1889
+ protected $dateRangeType = 'GoogleGAL_Service_Dfareporting_DateRange';
1890
  protected $dateRangeDataType = '';
1891
+ protected $dimensionFiltersType = 'GoogleGAL_Service_Dfareporting_DimensionValue';
1892
  protected $dimensionFiltersDataType = 'array';
1893
+ protected $dimensionsType = 'GoogleGAL_Service_Dfareporting_SortedDimension';
1894
  protected $dimensionsDataType = 'array';
1895
  public $metricNames;
1896
 
1897
+ public function setDateRange(GoogleGAL_Service_Dfareporting_DateRange $dateRange)
1898
  {
1899
  $this->dateRange = $dateRange;
1900
  }
1935
  }
1936
  }
1937
 
1938
+ class GoogleGAL_Service_Dfareporting_ReportCompatibleFields extends GoogleGAL_Collection
1939
  {
1940
+ protected $dimensionFiltersType = 'GoogleGAL_Service_Dfareporting_Dimension';
1941
  protected $dimensionFiltersDataType = 'array';
1942
+ protected $dimensionsType = 'GoogleGAL_Service_Dfareporting_Dimension';
1943
  protected $dimensionsDataType = 'array';
1944
  public $kind;
1945
+ protected $metricsType = 'GoogleGAL_Service_Dfareporting_Metric';
1946
  protected $metricsDataType = 'array';
1947
+ protected $pivotedActivityMetricsType = 'GoogleGAL_Service_Dfareporting_Metric';
1948
  protected $pivotedActivityMetricsDataType = 'array';
1949
 
1950
  public function setDimensionFilters($dimensionFilters)
1998
  }
1999
  }
2000
 
2001
+ class GoogleGAL_Service_Dfareporting_ReportCriteria extends GoogleGAL_Collection
2002
  {
2003
+ protected $activitiesType = 'GoogleGAL_Service_Dfareporting_Activities';
2004
  protected $activitiesDataType = '';
2005
+ protected $customRichMediaEventsType = 'GoogleGAL_Service_Dfareporting_CustomRichMediaEvents';
2006
  protected $customRichMediaEventsDataType = '';
2007
+ protected $dateRangeType = 'GoogleGAL_Service_Dfareporting_DateRange';
2008
  protected $dateRangeDataType = '';
2009
+ protected $dimensionFiltersType = 'GoogleGAL_Service_Dfareporting_DimensionValue';
2010
  protected $dimensionFiltersDataType = 'array';
2011
+ protected $dimensionsType = 'GoogleGAL_Service_Dfareporting_SortedDimension';
2012
  protected $dimensionsDataType = 'array';
2013
  public $metricNames;
2014
 
2015
+ public function setActivities(GoogleGAL_Service_Dfareporting_Activities $activities)
2016
  {
2017
  $this->activities = $activities;
2018
  }
2022
  return $this->activities;
2023
  }
2024
 
2025
+ public function setCustomRichMediaEvents(GoogleGAL_Service_Dfareporting_CustomRichMediaEvents $customRichMediaEvents)
2026
  {
2027
  $this->customRichMediaEvents = $customRichMediaEvents;
2028
  }
2032
  return $this->customRichMediaEvents;
2033
  }
2034
 
2035
+ public function setDateRange(GoogleGAL_Service_Dfareporting_DateRange $dateRange)
2036
  {
2037
  $this->dateRange = $dateRange;
2038
  }
2073
  }
2074
  }
2075
 
2076
+ class GoogleGAL_Service_Dfareporting_ReportCrossDimensionReachCriteria extends GoogleGAL_Collection
2077
  {
2078
+ protected $breakdownType = 'GoogleGAL_Service_Dfareporting_SortedDimension';
2079
  protected $breakdownDataType = 'array';
2080
+ protected $dateRangeType = 'GoogleGAL_Service_Dfareporting_DateRange';
2081
  protected $dateRangeDataType = '';
2082
  public $dimension;
2083
+ protected $dimensionFiltersType = 'GoogleGAL_Service_Dfareporting_DimensionValue';
2084
  protected $dimensionFiltersDataType = 'array';
2085
  public $metricNames;
2086
  public $overlapMetricNames;
2096
  return $this->breakdown;
2097
  }
2098
 
2099
+ public function setDateRange(GoogleGAL_Service_Dfareporting_DateRange $dateRange)
2100
  {
2101
  $this->dateRange = $dateRange;
2102
  }
2157
  }
2158
  }
2159
 
2160
+ class GoogleGAL_Service_Dfareporting_ReportDelivery extends GoogleGAL_Collection
2161
  {
2162
  public $emailOwner;
2163
  public $emailOwnerDeliveryType;
2164
  public $message;
2165
+ protected $recipientsType = 'GoogleGAL_Service_Dfareporting_Recipient';
2166
  protected $recipientsDataType = 'array';
2167
 
2168
  public function setEmailOwner($emailOwner)
2206
  }
2207
  }
2208
 
2209
+ class GoogleGAL_Service_Dfareporting_ReportFloodlightCriteria extends GoogleGAL_Collection
2210
  {
2211
+ protected $customRichMediaEventsType = 'GoogleGAL_Service_Dfareporting_DimensionValue';
2212
  protected $customRichMediaEventsDataType = 'array';
2213
+ protected $dateRangeType = 'GoogleGAL_Service_Dfareporting_DateRange';
2214
  protected $dateRangeDataType = '';
2215
+ protected $dimensionFiltersType = 'GoogleGAL_Service_Dfareporting_DimensionValue';
2216
  protected $dimensionFiltersDataType = 'array';
2217
+ protected $dimensionsType = 'GoogleGAL_Service_Dfareporting_SortedDimension';
2218
  protected $dimensionsDataType = 'array';
2219
+ protected $floodlightConfigIdType = 'GoogleGAL_Service_Dfareporting_DimensionValue';
2220
  protected $floodlightConfigIdDataType = '';
2221
  public $metricNames;
2222
+ protected $reportPropertiesType = 'GoogleGAL_Service_Dfareporting_ReportFloodlightCriteriaReportProperties';
2223
  protected $reportPropertiesDataType = '';
2224
 
2225
  public function setCustomRichMediaEvents($customRichMediaEvents)
2232
  return $this->customRichMediaEvents;
2233
  }
2234
 
2235
+ public function setDateRange(GoogleGAL_Service_Dfareporting_DateRange $dateRange)
2236
  {
2237
  $this->dateRange = $dateRange;
2238
  }
2262
  return $this->dimensions;
2263
  }
2264
 
2265
+ public function setFloodlightConfigId(GoogleGAL_Service_Dfareporting_DimensionValue $floodlightConfigId)
2266
  {
2267
  $this->floodlightConfigId = $floodlightConfigId;
2268
  }
2282
  return $this->metricNames;
2283
  }
2284
 
2285
+ public function setReportProperties(GoogleGAL_Service_Dfareporting_ReportFloodlightCriteriaReportProperties $reportProperties)
2286
  {
2287
  $this->reportProperties = $reportProperties;
2288
  }
2293
  }
2294
  }
2295
 
2296
+ class GoogleGAL_Service_Dfareporting_ReportFloodlightCriteriaReportProperties extends GoogleGAL_Model
2297
  {
2298
  public $includeAttributedIPConversions;
2299
  public $includeUnattributedCookieConversions;
2330
  }
2331
  }
2332
 
2333
+ class GoogleGAL_Service_Dfareporting_ReportList extends GoogleGAL_Collection
2334
  {
2335
  public $etag;
2336
+ protected $itemsType = 'GoogleGAL_Service_Dfareporting_Report';
2337
  protected $itemsDataType = 'array';
2338
  public $kind;
2339
  public $nextPageToken;
2379
  }
2380
  }
2381
 
2382
+ class GoogleGAL_Service_Dfareporting_ReportPathToConversionCriteria extends GoogleGAL_Collection
2383
  {
2384
+ protected $activityFiltersType = 'GoogleGAL_Service_Dfareporting_DimensionValue';
2385
  protected $activityFiltersDataType = 'array';
2386
+ protected $conversionDimensionsType = 'GoogleGAL_Service_Dfareporting_SortedDimension';
2387
  protected $conversionDimensionsDataType = 'array';
2388
+ protected $customFloodlightVariablesType = 'GoogleGAL_Service_Dfareporting_SortedDimension';
2389
  protected $customFloodlightVariablesDataType = 'array';
2390
+ protected $customRichMediaEventsType = 'GoogleGAL_Service_Dfareporting_DimensionValue';
2391
  protected $customRichMediaEventsDataType = 'array';
2392
+ protected $dateRangeType = 'GoogleGAL_Service_Dfareporting_DateRange';
2393
  protected $dateRangeDataType = '';
2394
+ protected $floodlightConfigIdType = 'GoogleGAL_Service_Dfareporting_DimensionValue';
2395
  protected $floodlightConfigIdDataType = '';
2396
  public $metricNames;
2397
+ protected $perInteractionDimensionsType = 'GoogleGAL_Service_Dfareporting_SortedDimension';
2398
  protected $perInteractionDimensionsDataType = 'array';
2399
+ protected $reportPropertiesType = 'GoogleGAL_Service_Dfareporting_ReportPathToConversionCriteriaReportProperties';
2400
  protected $reportPropertiesDataType = '';
2401
 
2402
  public function setActivityFilters($activityFilters)
2439
  return $this->customRichMediaEvents;
2440
  }
2441
 
2442
+ public function setDateRange(GoogleGAL_Service_Dfareporting_DateRange $dateRange)
2443
  {
2444
  $this->dateRange = $dateRange;
2445
  }
2449
  return $this->dateRange;
2450
  }
2451
 
2452
+ public function setFloodlightConfigId(GoogleGAL_Service_Dfareporting_DimensionValue $floodlightConfigId)
2453
  {
2454
  $this->floodlightConfigId = $floodlightConfigId;
2455
  }
2479
  return $this->perInteractionDimensions;
2480
  }
2481
 
2482
+ public function setReportProperties(GoogleGAL_Service_Dfareporting_ReportPathToConversionCriteriaReportProperties $reportProperties)
2483
  {
2484
  $this->reportProperties = $reportProperties;
2485
  }
2490
  }
2491
  }
2492
 
2493
+ class GoogleGAL_Service_Dfareporting_ReportPathToConversionCriteriaReportProperties extends GoogleGAL_Model
2494
  {
2495
  public $clicksLookbackWindow;
2496
  public $impressionsLookbackWindow;
2593
  }
2594
  }
2595
 
2596
+ class GoogleGAL_Service_Dfareporting_ReportReachCriteria extends GoogleGAL_Collection
2597
  {
2598
+ protected $activitiesType = 'GoogleGAL_Service_Dfareporting_Activities';
2599
  protected $activitiesDataType = '';
2600
+ protected $customRichMediaEventsType = 'GoogleGAL_Service_Dfareporting_CustomRichMediaEvents';
2601
  protected $customRichMediaEventsDataType = '';
2602
+ protected $dateRangeType = 'GoogleGAL_Service_Dfareporting_DateRange';
2603
  protected $dateRangeDataType = '';
2604
+ protected $dimensionFiltersType = 'GoogleGAL_Service_Dfareporting_DimensionValue';
2605
  protected $dimensionFiltersDataType = 'array';
2606
+ protected $dimensionsType = 'GoogleGAL_Service_Dfareporting_SortedDimension';
2607
  protected $dimensionsDataType = 'array';
2608
  public $metricNames;
2609
  public $reachByFrequencyMetricNames;
2610
 
2611
+ public function setActivities(GoogleGAL_Service_Dfareporting_Activities $activities)
2612
  {
2613
  $this->activities = $activities;
2614
  }
2618
  return $this->activities;
2619
  }
2620
 
2621
+ public function setCustomRichMediaEvents(GoogleGAL_Service_Dfareporting_CustomRichMediaEvents $customRichMediaEvents)
2622
  {
2623
  $this->customRichMediaEvents = $customRichMediaEvents;
2624
  }
2628
  return $this->customRichMediaEvents;
2629
  }
2630
 
2631
+ public function setDateRange(GoogleGAL_Service_Dfareporting_DateRange $dateRange)
2632
  {
2633
  $this->dateRange = $dateRange;
2634
  }
2679
  }
2680
  }
2681
 
2682
+ class GoogleGAL_Service_Dfareporting_ReportSchedule extends GoogleGAL_Collection
2683
  {
2684
  public $active;
2685
  public $every;
2760
  }
2761
  }
2762
 
2763
+ class GoogleGAL_Service_Dfareporting_SortedDimension extends GoogleGAL_Model
2764
  {
2765
  public $kind;
2766
  public $name;
2797
  }
2798
  }
2799
 
2800
+ class GoogleGAL_Service_Dfareporting_UserProfile extends GoogleGAL_Model
2801
  {
2802
  public $accountId;
2803
  public $accountName;
2889
  }
2890
  }
2891
 
2892
+ class GoogleGAL_Service_Dfareporting_UserProfileList extends GoogleGAL_Collection
2893
  {
2894
  public $etag;
2895
+ protected $itemsType = 'GoogleGAL_Service_Dfareporting_UserProfile';
2896
  protected $itemsDataType = 'array';
2897
  public $kind;
2898
 
core/Google/Service/Directory.php CHANGED
@@ -29,7 +29,7 @@
29
  *
30
  * @author Google, Inc.
31
  */
32
- class Google_Service_Directory extends Google_Service
33
  {
34
  /** View and manage your Chrome OS devices' metadata. */
35
  const ADMIN_DIRECTORY_DEVICE_CHROMEOS = "https://www.googleapis.com/auth/admin.directory.device.chromeos";
@@ -85,16 +85,16 @@ class Google_Service_Directory extends Google_Service
85
  /**
86
  * Constructs the internal representation of the Directory service.
87
  *
88
- * @param Google_Client $client
89
  */
90
- public function __construct(Google_Client $client)
91
  {
92
  parent::__construct($client);
93
  $this->servicePath = 'admin/directory/v1/';
94
  $this->version = 'directory_v1';
95
  $this->serviceName = 'admin';
96
 
97
- $this->asps = new Google_Service_Directory_Asps_Resource(
98
  $this,
99
  $this->serviceName,
100
  'asps',
@@ -144,7 +144,7 @@ class Google_Service_Directory extends Google_Service
144
  )
145
  )
146
  );
147
- $this->channels = new Google_Service_Directory_Channels_Resource(
148
  $this,
149
  $this->serviceName,
150
  'channels',
@@ -158,7 +158,7 @@ class Google_Service_Directory extends Google_Service
158
  )
159
  )
160
  );
161
- $this->chromeosdevices = new Google_Service_Directory_Chromeosdevices_Resource(
162
  $this,
163
  $this->serviceName,
164
  'chromeosdevices',
@@ -259,7 +259,7 @@ class Google_Service_Directory extends Google_Service
259
  )
260
  )
261
  );
262
- $this->groups = new Google_Service_Directory_Groups_Resource(
263
  $this,
264
  $this->serviceName,
265
  'groups',
@@ -338,7 +338,7 @@ class Google_Service_Directory extends Google_Service
338
  )
339
  )
340
  );
341
- $this->groups_aliases = new Google_Service_Directory_GroupsAliases_Resource(
342
  $this,
343
  $this->serviceName,
344
  'aliases',
@@ -383,7 +383,7 @@ class Google_Service_Directory extends Google_Service
383
  )
384
  )
385
  );
386
- $this->members = new Google_Service_Directory_Members_Resource(
387
  $this,
388
  $this->serviceName,
389
  'members',
@@ -485,7 +485,7 @@ class Google_Service_Directory extends Google_Service
485
  )
486
  )
487
  );
488
- $this->mobiledevices = new Google_Service_Directory_Mobiledevices_Resource(
489
  $this,
490
  $this->serviceName,
491
  'mobiledevices',
@@ -578,7 +578,7 @@ class Google_Service_Directory extends Google_Service
578
  )
579
  )
580
  );
581
- $this->notifications = new Google_Service_Directory_Notifications_Resource(
582
  $this,
583
  $this->serviceName,
584
  'notifications',
@@ -670,7 +670,7 @@ class Google_Service_Directory extends Google_Service
670
  )
671
  )
672
  );
673
- $this->orgunits = new Google_Service_Directory_Orgunits_Resource(
674
  $this,
675
  $this->serviceName,
676
  'orgunits',
@@ -772,7 +772,7 @@ class Google_Service_Directory extends Google_Service
772
  )
773
  )
774
  );
775
- $this->tokens = new Google_Service_Directory_Tokens_Resource(
776
  $this,
777
  $this->serviceName,
778
  'tokens',
@@ -822,7 +822,7 @@ class Google_Service_Directory extends Google_Service
822
  )
823
  )
824
  );
825
- $this->users = new Google_Service_Directory_Users_Resource(
826
  $this,
827
  $this->serviceName,
828
  'users',
@@ -978,7 +978,7 @@ class Google_Service_Directory extends Google_Service
978
  )
979
  )
980
  );
981
- $this->users_aliases = new Google_Service_Directory_UsersAliases_Resource(
982
  $this,
983
  $this->serviceName,
984
  'aliases',
@@ -1041,7 +1041,7 @@ class Google_Service_Directory extends Google_Service
1041
  )
1042
  )
1043
  );
1044
- $this->users_photos = new Google_Service_Directory_UsersPhotos_Resource(
1045
  $this,
1046
  $this->serviceName,
1047
  'photos',
@@ -1091,7 +1091,7 @@ class Google_Service_Directory extends Google_Service
1091
  )
1092
  )
1093
  );
1094
- $this->verificationCodes = new Google_Service_Directory_VerificationCodes_Resource(
1095
  $this,
1096
  $this->serviceName,
1097
  'verificationCodes',
@@ -1139,11 +1139,11 @@ class Google_Service_Directory extends Google_Service
1139
  * The "asps" collection of methods.
1140
  * Typical usage is:
1141
  * <code>
1142
- * $adminService = new Google_Service_Directory(...);
1143
  * $asps = $adminService->asps;
1144
  * </code>
1145
  */
1146
- class Google_Service_Directory_Asps_Resource extends Google_Service_Resource
1147
  {
1148
 
1149
  /**
@@ -1171,13 +1171,13 @@ class Google_Service_Directory_Asps_Resource extends Google_Service_Resource
1171
  * @param int $codeId
1172
  * The unique ID of the ASP.
1173
  * @param array $optParams Optional parameters.
1174
- * @return Google_Service_Directory_Asp
1175
  */
1176
  public function get($userKey, $codeId, $optParams = array())
1177
  {
1178
  $params = array('userKey' => $userKey, 'codeId' => $codeId);
1179
  $params = array_merge($params, $optParams);
1180
- return $this->call('get', array($params), "Google_Service_Directory_Asp");
1181
  }
1182
  /**
1183
  * List the ASPs issued by a user. (asps.listAsps)
@@ -1186,13 +1186,13 @@ class Google_Service_Directory_Asps_Resource extends Google_Service_Resource
1186
  * Identifies the user in the API request. The value can be the user's primary email address, alias
1187
  * email address, or unique user ID.
1188
  * @param array $optParams Optional parameters.
1189
- * @return Google_Service_Directory_Asps
1190
  */
1191
  public function listAsps($userKey, $optParams = array())
1192
  {
1193
  $params = array('userKey' => $userKey);
1194
  $params = array_merge($params, $optParams);
1195
- return $this->call('list', array($params), "Google_Service_Directory_Asps");
1196
  }
1197
  }
1198
 
@@ -1200,20 +1200,20 @@ class Google_Service_Directory_Asps_Resource extends Google_Service_Resource
1200
  * The "channels" collection of methods.
1201
  * Typical usage is:
1202
  * <code>
1203
- * $adminService = new Google_Service_Directory(...);
1204
  * $channels = $adminService->channels;
1205
  * </code>
1206
  */
1207
- class Google_Service_Directory_Channels_Resource extends Google_Service_Resource
1208
  {
1209
 
1210
  /**
1211
  * Stop watching resources through this channel (channels.stop)
1212
  *
1213
- * @param Google_Channel $postBody
1214
  * @param array $optParams Optional parameters.
1215
  */
1216
- public function stop(Google_Service_Directory_Channel $postBody, $optParams = array())
1217
  {
1218
  $params = array('postBody' => $postBody);
1219
  $params = array_merge($params, $optParams);
@@ -1225,11 +1225,11 @@ class Google_Service_Directory_Channels_Resource extends Google_Service_Resource
1225
  * The "chromeosdevices" collection of methods.
1226
  * Typical usage is:
1227
  * <code>
1228
- * $adminService = new Google_Service_Directory(...);
1229
  * $chromeosdevices = $adminService->chromeosdevices;
1230
  * </code>
1231
  */
1232
- class Google_Service_Directory_Chromeosdevices_Resource extends Google_Service_Resource
1233
  {
1234
 
1235
  /**
@@ -1243,13 +1243,13 @@ class Google_Service_Directory_Chromeosdevices_Resource extends Google_Service_R
1243
  *
1244
  * @opt_param string projection
1245
  * Restrict information returned to a set of selected fields.
1246
- * @return Google_Service_Directory_ChromeOsDevice
1247
  */
1248
  public function get($customerId, $deviceId, $optParams = array())
1249
  {
1250
  $params = array('customerId' => $customerId, 'deviceId' => $deviceId);
1251
  $params = array_merge($params, $optParams);
1252
- return $this->call('get', array($params), "Google_Service_Directory_ChromeOsDevice");
1253
  }
1254
  /**
1255
  * Retrieve all Chrome OS Devices of a customer (paginated)
@@ -1273,13 +1273,13 @@ class Google_Service_Directory_Chromeosdevices_Resource extends Google_Service_R
1273
  * @opt_param string query
1274
  * Search string in the format given at
1275
  * http://support.google.com/chromeos/a/bin/answer.py?hl=en=1698333
1276
- * @return Google_Service_Directory_ChromeOsDevices
1277
  */
1278
  public function listChromeosdevices($customerId, $optParams = array())
1279
  {
1280
  $params = array('customerId' => $customerId);
1281
  $params = array_merge($params, $optParams);
1282
- return $this->call('list', array($params), "Google_Service_Directory_ChromeOsDevices");
1283
  }
1284
  /**
1285
  * Update Chrome OS Device. This method supports patch semantics.
@@ -1289,18 +1289,18 @@ class Google_Service_Directory_Chromeosdevices_Resource extends Google_Service_R
1289
  * Immutable id of the Google Apps account
1290
  * @param string $deviceId
1291
  * Immutable id of Chrome OS Device
1292
- * @param Google_ChromeOsDevice $postBody
1293
  * @param array $optParams Optional parameters.
1294
  *
1295
  * @opt_param string projection
1296
  * Restrict information returned to a set of selected fields.
1297
- * @return Google_Service_Directory_ChromeOsDevice
1298
  */
1299
- public function patch($customerId, $deviceId, Google_Service_Directory_ChromeOsDevice $postBody, $optParams = array())
1300
  {
1301
  $params = array('customerId' => $customerId, 'deviceId' => $deviceId, 'postBody' => $postBody);
1302
  $params = array_merge($params, $optParams);
1303
- return $this->call('patch', array($params), "Google_Service_Directory_ChromeOsDevice");
1304
  }
1305
  /**
1306
  * Update Chrome OS Device (chromeosdevices.update)
@@ -1309,18 +1309,18 @@ class Google_Service_Directory_Chromeosdevices_Resource extends Google_Service_R
1309
  * Immutable id of the Google Apps account
1310
  * @param string $deviceId
1311
  * Immutable id of Chrome OS Device
1312
- * @param Google_ChromeOsDevice $postBody
1313
  * @param array $optParams Optional parameters.
1314
  *
1315
  * @opt_param string projection
1316
  * Restrict information returned to a set of selected fields.
1317
- * @return Google_Service_Directory_ChromeOsDevice
1318
  */
1319
- public function update($customerId, $deviceId, Google_Service_Directory_ChromeOsDevice $postBody, $optParams = array())
1320
  {
1321
  $params = array('customerId' => $customerId, 'deviceId' => $deviceId, 'postBody' => $postBody);
1322
  $params = array_merge($params, $optParams);
1323
- return $this->call('update', array($params), "Google_Service_Directory_ChromeOsDevice");
1324
  }
1325
  }
1326
 
@@ -1328,11 +1328,11 @@ class Google_Service_Directory_Chromeosdevices_Resource extends Google_Service_R
1328
  * The "groups" collection of methods.
1329
  * Typical usage is:
1330
  * <code>
1331
- * $adminService = new Google_Service_Directory(...);
1332
  * $groups = $adminService->groups;
1333
  * </code>
1334
  */
1335
- class Google_Service_Directory_Groups_Resource extends Google_Service_Resource
1336
  {
1337
 
1338
  /**
@@ -1354,26 +1354,26 @@ class Google_Service_Directory_Groups_Resource extends Google_Service_Resource
1354
  * @param string $groupKey
1355
  * Email or immutable Id of the group
1356
  * @param array $optParams Optional parameters.
1357
- * @return Google_Service_Directory_Group
1358
  */
1359
  public function get($groupKey, $optParams = array())
1360
  {
1361
  $params = array('groupKey' => $groupKey);
1362
  $params = array_merge($params, $optParams);
1363
- return $this->call('get', array($params), "Google_Service_Directory_Group");
1364
  }
1365
  /**
1366
  * Create Group (groups.insert)
1367
  *
1368
- * @param Google_Group $postBody
1369
  * @param array $optParams Optional parameters.
1370
- * @return Google_Service_Directory_Group
1371
  */
1372
- public function insert(Google_Service_Directory_Group $postBody, $optParams = array())
1373
  {
1374
  $params = array('postBody' => $postBody);
1375
  $params = array_merge($params, $optParams);
1376
- return $this->call('insert', array($params), "Google_Service_Directory_Group");
1377
  }
1378
  /**
1379
  * Retrieve all groups in a domain (paginated) (groups.listGroups)
@@ -1393,43 +1393,43 @@ class Google_Service_Directory_Groups_Resource extends Google_Service_Resource
1393
  * @opt_param string userKey
1394
  * Email or immutable Id of the user if only those groups are to be listed, the given user is a
1395
  * member of. If Id, it should match with id of user object
1396
- * @return Google_Service_Directory_Groups
1397
  */
1398
  public function listGroups($optParams = array())
1399
  {
1400
  $params = array();
1401
  $params = array_merge($params, $optParams);
1402
- return $this->call('list', array($params), "Google_Service_Directory_Groups");
1403
  }
1404
  /**
1405
  * Update Group. This method supports patch semantics. (groups.patch)
1406
  *
1407
  * @param string $groupKey
1408
  * Email or immutable Id of the group. If Id, it should match with id of group object
1409
- * @param Google_Group $postBody
1410
  * @param array $optParams Optional parameters.
1411
- * @return Google_Service_Directory_Group
1412
  */
1413
- public function patch($groupKey, Google_Service_Directory_Group $postBody, $optParams = array())
1414
  {
1415
  $params = array('groupKey' => $groupKey, 'postBody' => $postBody);
1416
  $params = array_merge($params, $optParams);
1417
- return $this->call('patch', array($params), "Google_Service_Directory_Group");
1418
  }
1419
  /**
1420
  * Update Group (groups.update)
1421
  *
1422
  * @param string $groupKey
1423
  * Email or immutable Id of the group. If Id, it should match with id of group object
1424
- * @param Google_Group $postBody
1425
  * @param array $optParams Optional parameters.
1426
- * @return Google_Service_Directory_Group
1427
  */
1428
- public function update($groupKey, Google_Service_Directory_Group $postBody, $optParams = array())
1429
  {
1430
  $params = array('groupKey' => $groupKey, 'postBody' => $postBody);
1431
  $params = array_merge($params, $optParams);
1432
- return $this->call('update', array($params), "Google_Service_Directory_Group");
1433
  }
1434
  }
1435
 
@@ -1437,11 +1437,11 @@ class Google_Service_Directory_Groups_Resource extends Google_Service_Resource
1437
  * The "aliases" collection of methods.
1438
  * Typical usage is:
1439
  * <code>
1440
- * $adminService = new Google_Service_Directory(...);
1441
  * $aliases = $adminService->aliases;
1442
  * </code>
1443
  */
1444
- class Google_Service_Directory_GroupsAliases_Resource extends Google_Service_Resource
1445
  {
1446
 
1447
  /**
@@ -1464,15 +1464,15 @@ class Google_Service_Directory_GroupsAliases_Resource extends Google_Service_Res
1464
  *
1465
  * @param string $groupKey
1466
  * Email or immutable Id of the group
1467
- * @param Google_Alias $postBody
1468
  * @param array $optParams Optional parameters.
1469
- * @return Google_Service_Directory_Alias
1470
  */
1471
- public function insert($groupKey, Google_Service_Directory_Alias $postBody, $optParams = array())
1472
  {
1473
  $params = array('groupKey' => $groupKey, 'postBody' => $postBody);
1474
  $params = array_merge($params, $optParams);
1475
- return $this->call('insert', array($params), "Google_Service_Directory_Alias");
1476
  }
1477
  /**
1478
  * List all aliases for a group (aliases.listGroupsAliases)
@@ -1480,13 +1480,13 @@ class Google_Service_Directory_GroupsAliases_Resource extends Google_Service_Res
1480
  * @param string $groupKey
1481
  * Email or immutable Id of the group
1482
  * @param array $optParams Optional parameters.
1483
- * @return Google_Service_Directory_Aliases
1484
  */
1485
  public function listGroupsAliases($groupKey, $optParams = array())
1486
  {
1487
  $params = array('groupKey' => $groupKey);
1488
  $params = array_merge($params, $optParams);
1489
- return $this->call('list', array($params), "Google_Service_Directory_Aliases");
1490
  }
1491
  }
1492
 
@@ -1494,11 +1494,11 @@ class Google_Service_Directory_GroupsAliases_Resource extends Google_Service_Res
1494
  * The "members" collection of methods.
1495
  * Typical usage is:
1496
  * <code>
1497
- * $adminService = new Google_Service_Directory(...);
1498
  * $members = $adminService->members;
1499
  * </code>
1500
  */
1501
- class Google_Service_Directory_Members_Resource extends Google_Service_Resource
1502
  {
1503
 
1504
  /**
@@ -1524,28 +1524,28 @@ class Google_Service_Directory_Members_Resource extends Google_Service_Resource
1524
  * @param string $memberKey
1525
  * Email or immutable Id of the member
1526
  * @param array $optParams Optional parameters.
1527
- * @return Google_Service_Directory_Member
1528
  */
1529
  public function get($groupKey, $memberKey, $optParams = array())
1530
  {
1531
  $params = array('groupKey' => $groupKey, 'memberKey' => $memberKey);
1532
  $params = array_merge($params, $optParams);
1533
- return $this->call('get', array($params), "Google_Service_Directory_Member");
1534
  }
1535
  /**
1536
  * Add user to the specified group. (members.insert)
1537
  *
1538
  * @param string $groupKey
1539
  * Email or immutable Id of the group
1540
- * @param Google_Member $postBody
1541
  * @param array $optParams Optional parameters.
1542
- * @return Google_Service_Directory_Member
1543
  */
1544
- public function insert($groupKey, Google_Service_Directory_Member $postBody, $optParams = array())
1545
  {
1546
  $params = array('groupKey' => $groupKey, 'postBody' => $postBody);
1547
  $params = array_merge($params, $optParams);
1548
- return $this->call('insert', array($params), "Google_Service_Directory_Member");
1549
  }
1550
  /**
1551
  * Retrieve all members in a group (paginated) (members.listMembers)
@@ -1560,13 +1560,13 @@ class Google_Service_Directory_Members_Resource extends Google_Service_Resource
1560
  * Comma separated role values to filter list results on.
1561
  * @opt_param int maxResults
1562
  * Maximum number of results to return. Default is 200
1563
- * @return Google_Service_Directory_Members
1564
  */
1565
  public function listMembers($groupKey, $optParams = array())
1566
  {
1567
  $params = array('groupKey' => $groupKey);
1568
  $params = array_merge($params, $optParams);
1569
- return $this->call('list', array($params), "Google_Service_Directory_Members");
1570
  }
1571
  /**
1572
  * Update membership of a user in the specified group. This method supports
@@ -1576,15 +1576,15 @@ class Google_Service_Directory_Members_Resource extends Google_Service_Resource
1576
  * Email or immutable Id of the group. If Id, it should match with id of group object
1577
  * @param string $memberKey
1578
  * Email or immutable Id of the user. If Id, it should match with id of member object
1579
- * @param Google_Member $postBody
1580
  * @param array $optParams Optional parameters.
1581
- * @return Google_Service_Directory_Member
1582
  */
1583
- public function patch($groupKey, $memberKey, Google_Service_Directory_Member $postBody, $optParams = array())
1584
  {
1585
  $params = array('groupKey' => $groupKey, 'memberKey' => $memberKey, 'postBody' => $postBody);
1586
  $params = array_merge($params, $optParams);
1587
- return $this->call('patch', array($params), "Google_Service_Directory_Member");
1588
  }
1589
  /**
1590
  * Update membership of a user in the specified group. (members.update)
@@ -1593,15 +1593,15 @@ class Google_Service_Directory_Members_Resource extends Google_Service_Resource
1593
  * Email or immutable Id of the group. If Id, it should match with id of group object
1594
  * @param string $memberKey
1595
  * Email or immutable Id of the user. If Id, it should match with id of member object
1596
- * @param Google_Member $postBody
1597
  * @param array $optParams Optional parameters.
1598
- * @return Google_Service_Directory_Member
1599
  */
1600
- public function update($groupKey, $memberKey, Google_Service_Directory_Member $postBody, $optParams = array())
1601
  {
1602
  $params = array('groupKey' => $groupKey, 'memberKey' => $memberKey, 'postBody' => $postBody);
1603
  $params = array_merge($params, $optParams);
1604
- return $this->call('update', array($params), "Google_Service_Directory_Member");
1605
  }
1606
  }
1607
 
@@ -1609,11 +1609,11 @@ class Google_Service_Directory_Members_Resource extends Google_Service_Resource
1609
  * The "mobiledevices" collection of methods.
1610
  * Typical usage is:
1611
  * <code>
1612
- * $adminService = new Google_Service_Directory(...);
1613
  * $mobiledevices = $adminService->mobiledevices;
1614
  * </code>
1615
  */
1616
- class Google_Service_Directory_Mobiledevices_Resource extends Google_Service_Resource
1617
  {
1618
 
1619
  /**
@@ -1623,10 +1623,10 @@ class Google_Service_Directory_Mobiledevices_Resource extends Google_Service_Res
1623
  * Immutable id of the Google Apps account
1624
  * @param string $resourceId
1625
  * Immutable id of Mobile Device
1626
- * @param Google_MobileDeviceAction $postBody
1627
  * @param array $optParams Optional parameters.
1628
  */
1629
- public function action($customerId, $resourceId, Google_Service_Directory_MobileDeviceAction $postBody, $optParams = array())
1630
  {
1631
  $params = array('customerId' => $customerId, 'resourceId' => $resourceId, 'postBody' => $postBody);
1632
  $params = array_merge($params, $optParams);
@@ -1658,13 +1658,13 @@ class Google_Service_Directory_Mobiledevices_Resource extends Google_Service_Res
1658
  *
1659
  * @opt_param string projection
1660
  * Restrict information returned to a set of selected fields.
1661
- * @return Google_Service_Directory_MobileDevice
1662
  */
1663
  public function get($customerId, $resourceId, $optParams = array())
1664
  {
1665
  $params = array('customerId' => $customerId, 'resourceId' => $resourceId);
1666
  $params = array_merge($params, $optParams);
1667
- return $this->call('get', array($params), "Google_Service_Directory_MobileDevice");
1668
  }
1669
  /**
1670
  * Retrieve all Mobile Devices of a customer (paginated)
@@ -1688,13 +1688,13 @@ class Google_Service_Directory_Mobiledevices_Resource extends Google_Service_Res
1688
  * @opt_param string query
1689
  * Search string in the format given at
1690
  * http://support.google.com/a/bin/answer.py?hl=en=1408863#search
1691
- * @return Google_Service_Directory_MobileDevices
1692
  */
1693
  public function listMobiledevices($customerId, $optParams = array())
1694
  {
1695
  $params = array('customerId' => $customerId);
1696
  $params = array_merge($params, $optParams);
1697
- return $this->call('list', array($params), "Google_Service_Directory_MobileDevices");
1698
  }
1699
  }
1700
 
@@ -1702,11 +1702,11 @@ class Google_Service_Directory_Mobiledevices_Resource extends Google_Service_Res
1702
  * The "notifications" collection of methods.
1703
  * Typical usage is:
1704
  * <code>
1705
- * $adminService = new Google_Service_Directory(...);
1706
  * $notifications = $adminService->notifications;
1707
  * </code>
1708
  */
1709
- class Google_Service_Directory_Notifications_Resource extends Google_Service_Resource
1710
  {
1711
 
1712
  /**
@@ -1734,13 +1734,13 @@ class Google_Service_Directory_Notifications_Resource extends Google_Service_Res
1734
  * @param string $notificationId
1735
  * The unique ID of the notification.
1736
  * @param array $optParams Optional parameters.
1737
- * @return Google_Service_Directory_Notification
1738
  */
1739
  public function get($customer, $notificationId, $optParams = array())
1740
  {
1741
  $params = array('customer' => $customer, 'notificationId' => $notificationId);
1742
  $params = array_merge($params, $optParams);
1743
- return $this->call('get', array($params), "Google_Service_Directory_Notification");
1744
  }
1745
  /**
1746
  * Retrieves a list of notifications. (notifications.listNotifications)
@@ -1755,13 +1755,13 @@ class Google_Service_Directory_Notifications_Resource extends Google_Service_Res
1755
  * Maximum number of notifications to return per page. The default is 100.
1756
  * @opt_param string language
1757
  * The ISO 639-1 code of the language notifications are returned in. The default is English (en).
1758
- * @return Google_Service_Directory_Notifications
1759
  */
1760
  public function listNotifications($customer, $optParams = array())
1761
  {
1762
  $params = array('customer' => $customer);
1763
  $params = array_merge($params, $optParams);
1764
- return $this->call('list', array($params), "Google_Service_Directory_Notifications");
1765
  }
1766
  /**
1767
  * Updates a notification. This method supports patch semantics.
@@ -1771,15 +1771,15 @@ class Google_Service_Directory_Notifications_Resource extends Google_Service_Res
1771
  * The unique ID for the customer's Google account.
1772
  * @param string $notificationId
1773
  * The unique ID of the notification.
1774
- * @param Google_Notification $postBody
1775
  * @param array $optParams Optional parameters.
1776
- * @return Google_Service_Directory_Notification
1777
  */
1778
- public function patch($customer, $notificationId, Google_Service_Directory_Notification $postBody, $optParams = array())
1779
  {
1780
  $params = array('customer' => $customer, 'notificationId' => $notificationId, 'postBody' => $postBody);
1781
  $params = array_merge($params, $optParams);
1782
- return $this->call('patch', array($params), "Google_Service_Directory_Notification");
1783
  }
1784
  /**
1785
  * Updates a notification. (notifications.update)
@@ -1788,15 +1788,15 @@ class Google_Service_Directory_Notifications_Resource extends Google_Service_Res
1788
  * The unique ID for the customer's Google account.
1789
  * @param string $notificationId
1790
  * The unique ID of the notification.
1791
- * @param Google_Notification $postBody
1792
  * @param array $optParams Optional parameters.
1793
- * @return Google_Service_Directory_Notification
1794
  */
1795
- public function update($customer, $notificationId, Google_Service_Directory_Notification $postBody, $optParams = array())
1796
  {
1797
  $params = array('customer' => $customer, 'notificationId' => $notificationId, 'postBody' => $postBody);
1798
  $params = array_merge($params, $optParams);
1799
- return $this->call('update', array($params), "Google_Service_Directory_Notification");
1800
  }
1801
  }
1802
 
@@ -1804,11 +1804,11 @@ class Google_Service_Directory_Notifications_Resource extends Google_Service_Res
1804
  * The "orgunits" collection of methods.
1805
  * Typical usage is:
1806
  * <code>
1807
- * $adminService = new Google_Service_Directory(...);
1808
  * $orgunits = $adminService->orgunits;
1809
  * </code>
1810
  */
1811
- class Google_Service_Directory_Orgunits_Resource extends Google_Service_Resource
1812
  {
1813
 
1814
  /**
@@ -1834,28 +1834,28 @@ class Google_Service_Directory_Orgunits_Resource extends Google_Service_Resource
1834
  * @param string $orgUnitPath
1835
  * Full path of the organization unit
1836
  * @param array $optParams Optional parameters.
1837
- * @return Google_Service_Directory_OrgUnit
1838
  */
1839
  public function get($customerId, $orgUnitPath, $optParams = array())
1840
  {
1841
  $params = array('customerId' => $customerId, 'orgUnitPath' => $orgUnitPath);
1842
  $params = array_merge($params, $optParams);
1843
- return $this->call('get', array($params), "Google_Service_Directory_OrgUnit");
1844
  }
1845
  /**
1846
  * Add Organization Unit (orgunits.insert)
1847
  *
1848
  * @param string $customerId
1849
  * Immutable id of the Google Apps account
1850
- * @param Google_OrgUnit $postBody
1851
  * @param array $optParams Optional parameters.
1852
- * @return Google_Service_Directory_OrgUnit
1853
  */
1854
- public function insert($customerId, Google_Service_Directory_OrgUnit $postBody, $optParams = array())
1855
  {
1856
  $params = array('customerId' => $customerId, 'postBody' => $postBody);
1857
  $params = array_merge($params, $optParams);
1858
- return $this->call('insert', array($params), "Google_Service_Directory_OrgUnit");
1859
  }
1860
  /**
1861
  * Retrieve all Organization Units (orgunits.listOrgunits)
@@ -1868,13 +1868,13 @@ class Google_Service_Directory_Orgunits_Resource extends Google_Service_Resource
1868
  * Whether to return all sub-organizations or just immediate children
1869
  * @opt_param string orgUnitPath
1870
  * the URL-encoded organization unit
1871
- * @return Google_Service_Directory_OrgUnits
1872
  */
1873
  public function listOrgunits($customerId, $optParams = array())
1874
  {
1875
  $params = array('customerId' => $customerId);
1876
  $params = array_merge($params, $optParams);
1877
- return $this->call('list', array($params), "Google_Service_Directory_OrgUnits");
1878
  }
1879
  /**
1880
  * Update Organization Unit. This method supports patch semantics.
@@ -1884,15 +1884,15 @@ class Google_Service_Directory_Orgunits_Resource extends Google_Service_Resource
1884
  * Immutable id of the Google Apps account
1885
  * @param string $orgUnitPath
1886
  * Full path of the organization unit
1887
- * @param Google_OrgUnit $postBody
1888
  * @param array $optParams Optional parameters.
1889
- * @return Google_Service_Directory_OrgUnit
1890
  */
1891
- public function patch($customerId, $orgUnitPath, Google_Service_Directory_OrgUnit $postBody, $optParams = array())
1892
  {
1893
  $params = array('customerId' => $customerId, 'orgUnitPath' => $orgUnitPath, 'postBody' => $postBody);
1894
  $params = array_merge($params, $optParams);
1895
- return $this->call('patch', array($params), "Google_Service_Directory_OrgUnit");
1896
  }
1897
  /**
1898
  * Update Organization Unit (orgunits.update)
@@ -1901,15 +1901,15 @@ class Google_Service_Directory_Orgunits_Resource extends Google_Service_Resource
1901
  * Immutable id of the Google Apps account
1902
  * @param string $orgUnitPath
1903
  * Full path of the organization unit
1904
- * @param Google_OrgUnit $postBody
1905
  * @param array $optParams Optional parameters.
1906
- * @return Google_Service_Directory_OrgUnit
1907
  */
1908
- public function update($customerId, $orgUnitPath, Google_Service_Directory_OrgUnit $postBody, $optParams = array())
1909
  {
1910
  $params = array('customerId' => $customerId, 'orgUnitPath' => $orgUnitPath, 'postBody' => $postBody);
1911
  $params = array_merge($params, $optParams);
1912
- return $this->call('update', array($params), "Google_Service_Directory_OrgUnit");
1913
  }
1914
  }
1915
 
@@ -1917,11 +1917,11 @@ class Google_Service_Directory_Orgunits_Resource extends Google_Service_Resource
1917
  * The "tokens" collection of methods.
1918
  * Typical usage is:
1919
  * <code>
1920
- * $adminService = new Google_Service_Directory(...);
1921
  * $tokens = $adminService->tokens;
1922
  * </code>
1923
  */
1924
- class Google_Service_Directory_Tokens_Resource extends Google_Service_Resource
1925
  {
1926
 
1927
  /**
@@ -1949,13 +1949,13 @@ class Google_Service_Directory_Tokens_Resource extends Google_Service_Resource
1949
  * @param string $clientId
1950
  * The Client ID of the application the token is issued to.
1951
  * @param array $optParams Optional parameters.
1952
- * @return Google_Service_Directory_Token
1953
  */
1954
  public function get($userKey, $clientId, $optParams = array())
1955
  {
1956
  $params = array('userKey' => $userKey, 'clientId' => $clientId);
1957
  $params = array_merge($params, $optParams);
1958
- return $this->call('get', array($params), "Google_Service_Directory_Token");
1959
  }
1960
  /**
1961
  * Returns the set of current, valid verification codes for the specified user.
@@ -1965,13 +1965,13 @@ class Google_Service_Directory_Tokens_Resource extends Google_Service_Resource
1965
  * Identifies the user in the API request. The value can be the user's primary email address, alias
1966
  * email address, or unique user ID.
1967
  * @param array $optParams Optional parameters.
1968
- * @return Google_Service_Directory_Tokens
1969
  */
1970
  public function listTokens($userKey, $optParams = array())
1971
  {
1972
  $params = array('userKey' => $userKey);
1973
  $params = array_merge($params, $optParams);
1974
- return $this->call('list', array($params), "Google_Service_Directory_Tokens");
1975
  }
1976
  }
1977
 
@@ -1979,11 +1979,11 @@ class Google_Service_Directory_Tokens_Resource extends Google_Service_Resource
1979
  * The "users" collection of methods.
1980
  * Typical usage is:
1981
  * <code>
1982
- * $adminService = new Google_Service_Directory(...);
1983
  * $users = $adminService->users;
1984
  * </code>
1985
  */
1986
- class Google_Service_Directory_Users_Resource extends Google_Service_Resource
1987
  {
1988
 
1989
  /**
@@ -2005,26 +2005,26 @@ class Google_Service_Directory_Users_Resource extends Google_Service_Resource
2005
  * @param string $userKey
2006
  * Email or immutable Id of the user
2007
  * @param array $optParams Optional parameters.
2008
- * @return Google_Service_Directory_User
2009
  */
2010
  public function get($userKey, $optParams = array())
2011
  {
2012
  $params = array('userKey' => $userKey);
2013
  $params = array_merge($params, $optParams);
2014
- return $this->call('get', array($params), "Google_Service_Directory_User");
2015
  }
2016
  /**
2017
  * create user. (users.insert)
2018
  *
2019
- * @param Google_User $postBody
2020
  * @param array $optParams Optional parameters.
2021
- * @return Google_Service_Directory_User
2022
  */
2023
- public function insert(Google_Service_Directory_User $postBody, $optParams = array())
2024
  {
2025
  $params = array('postBody' => $postBody);
2026
  $params = array_merge($params, $optParams);
2027
- return $this->call('insert', array($params), "Google_Service_Directory_User");
2028
  }
2029
  /**
2030
  * Retrieve either deleted users or all users in a domain (paginated)
@@ -2054,23 +2054,23 @@ class Google_Service_Directory_Users_Resource extends Google_Service_Resource
2054
  * should always be followed by a *.
2055
  * @opt_param string event
2056
  * Event on which subscription is intended (if subscribing)
2057
- * @return Google_Service_Directory_Users
2058
  */
2059
  public function listUsers($optParams = array())
2060
  {
2061
  $params = array();
2062
  $params = array_merge($params, $optParams);
2063
- return $this->call('list', array($params), "Google_Service_Directory_Users");
2064
  }
2065
  /**
2066
  * change admin status of a user (users.makeAdmin)
2067
  *
2068
  * @param string $userKey
2069
  * Email or immutable Id of the user as admin
2070
- * @param Google_UserMakeAdmin $postBody
2071
  * @param array $optParams Optional parameters.
2072
  */
2073
- public function makeAdmin($userKey, Google_Service_Directory_UserMakeAdmin $postBody, $optParams = array())
2074
  {
2075
  $params = array('userKey' => $userKey, 'postBody' => $postBody);
2076
  $params = array_merge($params, $optParams);
@@ -2081,25 +2081,25 @@ class Google_Service_Directory_Users_Resource extends Google_Service_Resource
2081
  *
2082
  * @param string $userKey
2083
  * Email or immutable Id of the user. If Id, it should match with id of user object
2084
- * @param Google_User $postBody
2085
  * @param array $optParams Optional parameters.
2086
- * @return Google_Service_Directory_User
2087
  */
2088
- public function patch($userKey, Google_Service_Directory_User $postBody, $optParams = array())
2089
  {
2090
  $params = array('userKey' => $userKey, 'postBody' => $postBody);
2091
  $params = array_merge($params, $optParams);
2092
- return $this->call('patch', array($params), "Google_Service_Directory_User");
2093
  }
2094
  /**
2095
  * Undelete a deleted user (users.undelete)
2096
  *
2097
  * @param string $userKey
2098
  * The immutable id of the user
2099
- * @param Google_UserUndelete $postBody
2100
  * @param array $optParams Optional parameters.
2101
  */
2102
- public function undelete($userKey, Google_Service_Directory_UserUndelete $postBody, $optParams = array())
2103
  {
2104
  $params = array('userKey' => $userKey, 'postBody' => $postBody);
2105
  $params = array_merge($params, $optParams);
@@ -2110,20 +2110,20 @@ class Google_Service_Directory_Users_Resource extends Google_Service_Resource
2110
  *
2111
  * @param string $userKey
2112
  * Email or immutable Id of the user. If Id, it should match with id of user object
2113
- * @param Google_User $postBody
2114
  * @param array $optParams Optional parameters.
2115
- * @return Google_Service_Directory_User
2116
  */
2117
- public function update($userKey, Google_Service_Directory_User $postBody, $optParams = array())
2118
  {
2119
  $params = array('userKey' => $userKey, 'postBody' => $postBody);
2120
  $params = array_merge($params, $optParams);
2121
- return $this->call('update', array($params), "Google_Service_Directory_User");
2122
  }
2123
  /**
2124
  * Watch for changes in users list (users.watch)
2125
  *
2126
- * @param Google_Channel $postBody
2127
  * @param array $optParams Optional parameters.
2128
  *
2129
  * @opt_param string customer
@@ -2148,13 +2148,13 @@ class Google_Service_Directory_Users_Resource extends Google_Service_Resource
2148
  * should always be followed by a *.
2149
  * @opt_param string event
2150
  * Event on which subscription is intended (if subscribing)
2151
- * @return Google_Service_Directory_Channel
2152
  */
2153
- public function watch(Google_Service_Directory_Channel $postBody, $optParams = array())
2154
  {
2155
  $params = array('postBody' => $postBody);
2156
  $params = array_merge($params, $optParams);
2157
- return $this->call('watch', array($params), "Google_Service_Directory_Channel");
2158
  }
2159
  }
2160
 
@@ -2162,11 +2162,11 @@ class Google_Service_Directory_Users_Resource extends Google_Service_Resource
2162
  * The "aliases" collection of methods.
2163
  * Typical usage is:
2164
  * <code>
2165
- * $adminService = new Google_Service_Directory(...);
2166
  * $aliases = $adminService->aliases;
2167
  * </code>
2168
  */
2169
- class Google_Service_Directory_UsersAliases_Resource extends Google_Service_Resource
2170
  {
2171
 
2172
  /**
@@ -2189,15 +2189,15 @@ class Google_Service_Directory_UsersAliases_Resource extends Google_Service_Reso
2189
  *
2190
  * @param string $userKey
2191
  * Email or immutable Id of the user
2192
- * @param Google_Alias $postBody
2193
  * @param array $optParams Optional parameters.
2194
- * @return Google_Service_Directory_Alias
2195
  */
2196
- public function insert($userKey, Google_Service_Directory_Alias $postBody, $optParams = array())
2197
  {
2198
  $params = array('userKey' => $userKey, 'postBody' => $postBody);
2199
  $params = array_merge($params, $optParams);
2200
- return $this->call('insert', array($params), "Google_Service_Directory_Alias");
2201
  }
2202
  /**
2203
  * List all aliases for a user (aliases.listUsersAliases)
@@ -2208,42 +2208,42 @@ class Google_Service_Directory_UsersAliases_Resource extends Google_Service_Reso
2208
  *
2209
  * @opt_param string event
2210
  * Event on which subscription is intended (if subscribing)
2211
- * @return Google_Service_Directory_Aliases
2212
  */
2213
  public function listUsersAliases($userKey, $optParams = array())
2214
  {
2215
  $params = array('userKey' => $userKey);
2216
  $params = array_merge($params, $optParams);
2217
- return $this->call('list', array($params), "Google_Service_Directory_Aliases");
2218
  }
2219
  /**
2220
  * Watch for changes in user aliases list (aliases.watch)
2221
  *
2222
  * @param string $userKey
2223
  * Email or immutable Id of the user
2224
- * @param Google_Channel $postBody
2225
  * @param array $optParams Optional parameters.
2226
  *
2227
  * @opt_param string event
2228
  * Event on which subscription is intended (if subscribing)
2229
- * @return Google_Service_Directory_Channel
2230
  */
2231
- public function watch($userKey, Google_Service_Directory_Channel $postBody, $optParams = array())
2232
  {
2233
  $params = array('userKey' => $userKey, 'postBody' => $postBody);
2234
  $params = array_merge($params, $optParams);
2235
- return $this->call('watch', array($params), "Google_Service_Directory_Channel");
2236
  }
2237
  }
2238
  /**
2239
  * The "photos" collection of methods.
2240
  * Typical usage is:
2241
  * <code>
2242
- * $adminService = new Google_Service_Directory(...);
2243
  * $photos = $adminService->photos;
2244
  * </code>
2245
  */
2246
- class Google_Service_Directory_UsersPhotos_Resource extends Google_Service_Resource
2247
  {
2248
 
2249
  /**
@@ -2265,13 +2265,13 @@ class Google_Service_Directory_UsersPhotos_Resource extends Google_Service_Resou
2265
  * @param string $userKey
2266
  * Email or immutable Id of the user
2267
  * @param array $optParams Optional parameters.
2268
- * @return Google_Service_Directory_UserPhoto
2269
  */
2270
  public function get($userKey, $optParams = array())
2271
  {
2272
  $params = array('userKey' => $userKey);
2273
  $params = array_merge($params, $optParams);
2274
- return $this->call('get', array($params), "Google_Service_Directory_UserPhoto");
2275
  }
2276
  /**
2277
  * Add a photo for the user. This method supports patch semantics.
@@ -2279,30 +2279,30 @@ class Google_Service_Directory_UsersPhotos_Resource extends Google_Service_Resou
2279
  *
2280
  * @param string $userKey
2281
  * Email or immutable Id of the user
2282
- * @param Google_UserPhoto $postBody
2283
  * @param array $optParams Optional parameters.
2284
- * @return Google_Service_Directory_UserPhoto
2285
  */
2286
- public function patch($userKey, Google_Service_Directory_UserPhoto $postBody, $optParams = array())
2287
  {
2288
  $params = array('userKey' => $userKey, 'postBody' => $postBody);
2289
  $params = array_merge($params, $optParams);
2290
- return $this->call('patch', array($params), "Google_Service_Directory_UserPhoto");
2291
  }
2292
  /**
2293
  * Add a photo for the user (photos.update)
2294
  *
2295
  * @param string $userKey
2296
  * Email or immutable Id of the user
2297
- * @param Google_UserPhoto $postBody
2298
  * @param array $optParams Optional parameters.
2299
- * @return Google_Service_Directory_UserPhoto
2300
  */
2301
- public function update($userKey, Google_Service_Directory_UserPhoto $postBody, $optParams = array())
2302
  {
2303
  $params = array('userKey' => $userKey, 'postBody' => $postBody);
2304
  $params = array_merge($params, $optParams);
2305
- return $this->call('update', array($params), "Google_Service_Directory_UserPhoto");
2306
  }
2307
  }
2308
 
@@ -2310,11 +2310,11 @@ class Google_Service_Directory_UsersPhotos_Resource extends Google_Service_Resou
2310
  * The "verificationCodes" collection of methods.
2311
  * Typical usage is:
2312
  * <code>
2313
- * $adminService = new Google_Service_Directory(...);
2314
  * $verificationCodes = $adminService->verificationCodes;
2315
  * </code>
2316
  */
2317
- class Google_Service_Directory_VerificationCodes_Resource extends Google_Service_Resource
2318
  {
2319
 
2320
  /**
@@ -2353,20 +2353,20 @@ class Google_Service_Directory_VerificationCodes_Resource extends Google_Service
2353
  * Identifies the user in the API request. The value can be the user's primary email address, alias
2354
  * email address, or unique user ID.
2355
  * @param array $optParams Optional parameters.
2356
- * @return Google_Service_Directory_VerificationCodes
2357
  */
2358
  public function listVerificationCodes($userKey, $optParams = array())
2359
  {
2360
  $params = array('userKey' => $userKey);
2361
  $params = array_merge($params, $optParams);
2362
- return $this->call('list', array($params), "Google_Service_Directory_VerificationCodes");
2363
  }
2364
  }
2365
 
2366
 
2367
 
2368
 
2369
- class Google_Service_Directory_Alias extends Google_Model
2370
  {
2371
  public $alias;
2372
  public $etag;
@@ -2425,9 +2425,9 @@ class Google_Service_Directory_Alias extends Google_Model
2425
  }
2426
  }
2427
 
2428
- class Google_Service_Directory_Aliases extends Google_Collection
2429
  {
2430
- protected $aliasesType = 'Google_Service_Directory_Alias';
2431
  protected $aliasesDataType = 'array';
2432
  public $etag;
2433
  public $kind;
@@ -2463,7 +2463,7 @@ class Google_Service_Directory_Aliases extends Google_Collection
2463
  }
2464
  }
2465
 
2466
- class Google_Service_Directory_Asp extends Google_Model
2467
  {
2468
  public $codeId;
2469
  public $creationTime;
@@ -2544,10 +2544,10 @@ class Google_Service_Directory_Asp extends Google_Model
2544
  }
2545
  }
2546
 
2547
- class Google_Service_Directory_Asps extends Google_Collection
2548
  {
2549
  public $etag;
2550
- protected $itemsType = 'Google_Service_Directory_Asp';
2551
  protected $itemsDataType = 'array';
2552
  public $kind;
2553
 
@@ -2582,7 +2582,7 @@ class Google_Service_Directory_Asps extends Google_Collection
2582
  }
2583
  }
2584
 
2585
- class Google_Service_Directory_Channel extends Google_Model
2586
  {
2587
  public $address;
2588
  public $expiration;
@@ -2696,7 +2696,7 @@ class Google_Service_Directory_Channel extends Google_Model
2696
  }
2697
  }
2698
 
2699
- class Google_Service_Directory_ChromeOsDevice extends Google_Model
2700
  {
2701
  public $annotatedLocation;
2702
  public $annotatedUser;
@@ -2931,9 +2931,9 @@ class Google_Service_Directory_ChromeOsDevice extends Google_Model
2931
  }
2932
  }
2933
 
2934
- class Google_Service_Directory_ChromeOsDevices extends Google_Collection
2935
  {
2936
- protected $chromeosdevicesType = 'Google_Service_Directory_ChromeOsDevice';
2937
  protected $chromeosdevicesDataType = 'array';
2938
  public $etag;
2939
  public $kind;
@@ -2980,7 +2980,7 @@ class Google_Service_Directory_ChromeOsDevices extends Google_Collection
2980
  }
2981
  }
2982
 
2983
- class Google_Service_Directory_Group extends Google_Collection
2984
  {
2985
  public $adminCreated;
2986
  public $aliases;
@@ -3094,10 +3094,10 @@ class Google_Service_Directory_Group extends Google_Collection
3094
  }
3095
  }
3096
 
3097
- class Google_Service_Directory_Groups extends Google_Collection
3098
  {
3099
  public $etag;
3100
- protected $groupsType = 'Google_Service_Directory_Group';
3101
  protected $groupsDataType = 'array';
3102
  public $kind;
3103
  public $nextPageToken;
@@ -3143,7 +3143,7 @@ class Google_Service_Directory_Groups extends Google_Collection
3143
  }
3144
  }
3145
 
3146
- class Google_Service_Directory_Member extends Google_Model
3147
  {
3148
  public $email;
3149
  public $etag;
@@ -3213,11 +3213,11 @@ class Google_Service_Directory_Member extends Google_Model
3213
  }
3214
  }
3215
 
3216
- class Google_Service_Directory_Members extends Google_Collection
3217
  {
3218
  public $etag;
3219
  public $kind;
3220
- protected $membersType = 'Google_Service_Directory_Member';
3221
  protected $membersDataType = 'array';
3222
  public $nextPageToken;
3223
 
@@ -3262,9 +3262,9 @@ class Google_Service_Directory_Members extends Google_Collection
3262
  }
3263
  }
3264
 
3265
- class Google_Service_Directory_MobileDevice extends Google_Collection
3266
  {
3267
- protected $applicationsType = 'Google_Service_Directory_MobileDeviceApplications';
3268
  protected $applicationsDataType = 'array';
3269
  public $deviceId;
3270
  public $email;
@@ -3432,7 +3432,7 @@ class Google_Service_Directory_MobileDevice extends Google_Collection
3432
  }
3433
  }
3434
 
3435
- class Google_Service_Directory_MobileDeviceAction extends Google_Model
3436
  {
3437
  public $action;
3438
 
@@ -3447,7 +3447,7 @@ class Google_Service_Directory_MobileDeviceAction extends Google_Model
3447
  }
3448
  }
3449
 
3450
- class Google_Service_Directory_MobileDeviceApplications extends Google_Collection
3451
  {
3452
  public $displayName;
3453
  public $packageName;
@@ -3506,11 +3506,11 @@ class Google_Service_Directory_MobileDeviceApplications extends Google_Collectio
3506
  }
3507
  }
3508
 
3509
- class Google_Service_Directory_MobileDevices extends Google_Collection
3510
  {
3511
  public $etag;
3512
  public $kind;
3513
- protected $mobiledevicesType = 'Google_Service_Directory_MobileDevice';
3514
  protected $mobiledevicesDataType = 'array';
3515
  public $nextPageToken;
3516
 
@@ -3555,7 +3555,7 @@ class Google_Service_Directory_MobileDevices extends Google_Collection
3555
  }
3556
  }
3557
 
3558
- class Google_Service_Directory_Notification extends Google_Model
3559
  {
3560
  public $body;
3561
  public $etag;
@@ -3647,10 +3647,10 @@ class Google_Service_Directory_Notification extends Google_Model
3647
  }
3648
  }
3649
 
3650
- class Google_Service_Directory_Notifications extends Google_Collection
3651
  {
3652
  public $etag;
3653
- protected $itemsType = 'Google_Service_Directory_Notification';
3654
  protected $itemsDataType = 'array';
3655
  public $kind;
3656
  public $nextPageToken;
@@ -3707,7 +3707,7 @@ class Google_Service_Directory_Notifications extends Google_Collection
3707
  }
3708
  }
3709
 
3710
- class Google_Service_Directory_OrgUnit extends Google_Model
3711
  {
3712
  public $blockInheritance;
3713
  public $description;
@@ -3788,11 +3788,11 @@ class Google_Service_Directory_OrgUnit extends Google_Model
3788
  }
3789
  }
3790
 
3791
- class Google_Service_Directory_OrgUnits extends Google_Collection
3792
  {
3793
  public $etag;
3794
  public $kind;
3795
- protected $organizationUnitsType = 'Google_Service_Directory_OrgUnit';
3796
  protected $organizationUnitsDataType = 'array';
3797
 
3798
  public function setEtag($etag)
@@ -3826,7 +3826,7 @@ class Google_Service_Directory_OrgUnits extends Google_Collection
3826
  }
3827
  }
3828
 
3829
- class Google_Service_Directory_Token extends Google_Collection
3830
  {
3831
  public $anonymous;
3832
  public $clientId;
@@ -3918,10 +3918,10 @@ class Google_Service_Directory_Token extends Google_Collection
3918
  }
3919
  }
3920
 
3921
- class Google_Service_Directory_Tokens extends Google_Collection
3922
  {
3923
  public $etag;
3924
- protected $itemsType = 'Google_Service_Directory_Token';
3925
  protected $itemsDataType = 'array';
3926
  public $kind;
3927
 
@@ -3956,9 +3956,9 @@ class Google_Service_Directory_Tokens extends Google_Collection
3956
  }
3957
  }
3958
 
3959
- class Google_Service_Directory_User extends Google_Collection
3960
  {
3961
- protected $addressesType = 'Google_Service_Directory_UserAddress';
3962
  protected $addressesDataType = 'array';
3963
  public $agreedToTerms;
3964
  public $aliases;
@@ -3966,14 +3966,14 @@ class Google_Service_Directory_User extends Google_Collection
3966
  public $creationTime;
3967
  public $customerId;
3968
  public $deletionTime;
3969
- protected $emailsType = 'Google_Service_Directory_UserEmail';
3970
  protected $emailsDataType = 'array';
3971
  public $etag;
3972
- protected $externalIdsType = 'Google_Service_Directory_UserExternalId';
3973
  protected $externalIdsDataType = 'array';
3974
  public $hashFunction;
3975
  public $id;
3976
- protected $imsType = 'Google_Service_Directory_UserIm';
3977
  protected $imsDataType = 'array';
3978
  public $includeInGlobalAddressList;
3979
  public $ipWhitelisted;
@@ -3982,17 +3982,17 @@ class Google_Service_Directory_User extends Google_Collection
3982
  public $isMailboxSetup;
3983
  public $kind;
3984
  public $lastLoginTime;
3985
- protected $nameType = 'Google_Service_Directory_UserName';
3986
  protected $nameDataType = '';
3987
  public $nonEditableAliases;
3988
  public $orgUnitPath;
3989
- protected $organizationsType = 'Google_Service_Directory_UserOrganization';
3990
  protected $organizationsDataType = 'array';
3991
  public $password;
3992
- protected $phonesType = 'Google_Service_Directory_UserPhone';
3993
  protected $phonesDataType = 'array';
3994
  public $primaryEmail;
3995
- protected $relationsType = 'Google_Service_Directory_UserRelation';
3996
  protected $relationsDataType = 'array';
3997
  public $suspended;
3998
  public $suspensionReason;
@@ -4198,7 +4198,7 @@ class Google_Service_Directory_User extends Google_Collection
4198
  return $this->lastLoginTime;
4199
  }
4200
 
4201
- public function setName(Google_Service_Directory_UserName $name)
4202
  {
4203
  $this->name = $name;
4204
  }
@@ -4309,7 +4309,7 @@ class Google_Service_Directory_User extends Google_Collection
4309
  }
4310
  }
4311
 
4312
- class Google_Service_Directory_UserAddress extends Google_Model
4313
  {
4314
  public $country;
4315
  public $countryCode;
@@ -4456,7 +4456,7 @@ class Google_Service_Directory_UserAddress extends Google_Model
4456
  }
4457
  }
4458
 
4459
- class Google_Service_Directory_UserEmail extends Google_Model
4460
  {
4461
  public $address;
4462
  public $customType;
@@ -4504,7 +4504,7 @@ class Google_Service_Directory_UserEmail extends Google_Model
4504
  }
4505
  }
4506
 
4507
- class Google_Service_Directory_UserExternalId extends Google_Model
4508
  {
4509
  public $customType;
4510
  public $type;
@@ -4541,7 +4541,7 @@ class Google_Service_Directory_UserExternalId extends Google_Model
4541
  }
4542
  }
4543
 
4544
- class Google_Service_Directory_UserIm extends Google_Model
4545
  {
4546
  public $customProtocol;
4547
  public $customType;
@@ -4611,7 +4611,7 @@ class Google_Service_Directory_UserIm extends Google_Model
4611
  }
4612
  }
4613
 
4614
- class Google_Service_Directory_UserMakeAdmin extends Google_Model
4615
  {
4616
  public $status;
4617
 
@@ -4626,7 +4626,7 @@ class Google_Service_Directory_UserMakeAdmin extends Google_Model
4626
  }
4627
  }
4628
 
4629
- class Google_Service_Directory_UserName extends Google_Model
4630
  {
4631
  public $familyName;
4632
  public $fullName;
@@ -4663,7 +4663,7 @@ class Google_Service_Directory_UserName extends Google_Model
4663
  }
4664
  }
4665
 
4666
- class Google_Service_Directory_UserOrganization extends Google_Model
4667
  {
4668
  public $costCenter;
4669
  public $customType;
@@ -4788,7 +4788,7 @@ class Google_Service_Directory_UserOrganization extends Google_Model
4788
  }
4789
  }
4790
 
4791
- class Google_Service_Directory_UserPhone extends Google_Model
4792
  {
4793
  public $customType;
4794
  public $primary;
@@ -4836,7 +4836,7 @@ class Google_Service_Directory_UserPhone extends Google_Model
4836
  }
4837
  }
4838
 
4839
- class Google_Service_Directory_UserPhoto extends Google_Model
4840
  {
4841
  public $etag;
4842
  public $height;
@@ -4928,7 +4928,7 @@ class Google_Service_Directory_UserPhoto extends Google_Model
4928
  }
4929
  }
4930
 
4931
- class Google_Service_Directory_UserRelation extends Google_Model
4932
  {
4933
  public $customType;
4934
  public $type;
@@ -4965,7 +4965,7 @@ class Google_Service_Directory_UserRelation extends Google_Model
4965
  }
4966
  }
4967
 
4968
- class Google_Service_Directory_UserUndelete extends Google_Model
4969
  {
4970
  public $orgUnitPath;
4971
 
@@ -4980,13 +4980,13 @@ class Google_Service_Directory_UserUndelete extends Google_Model
4980
  }
4981
  }
4982
 
4983
- class Google_Service_Directory_Users extends Google_Collection
4984
  {
4985
  public $etag;
4986
  public $kind;
4987
  public $nextPageToken;
4988
  public $triggerEvent;
4989
- protected $usersType = 'Google_Service_Directory_User';
4990
  protected $usersDataType = 'array';
4991
 
4992
  public function setEtag($etag)
@@ -5040,7 +5040,7 @@ class Google_Service_Directory_Users extends Google_Collection
5040
  }
5041
  }
5042
 
5043
- class Google_Service_Directory_VerificationCode extends Google_Model
5044
  {
5045
  public $etag;
5046
  public $kind;
@@ -5088,10 +5088,10 @@ class Google_Service_Directory_VerificationCode extends Google_Model
5088
  }
5089
  }
5090
 
5091
- class Google_Service_Directory_VerificationCodes extends Google_Collection
5092
  {
5093
  public $etag;
5094
- protected $itemsType = 'Google_Service_Directory_VerificationCode';
5095
  protected $itemsDataType = 'array';
5096
  public $kind;
5097
 
29
  *
30
  * @author Google, Inc.
31
  */
32
+ class GoogleGAL_Service_Directory extends GoogleGAL_Service
33
  {
34
  /** View and manage your Chrome OS devices' metadata. */
35
  const ADMIN_DIRECTORY_DEVICE_CHROMEOS = "https://www.googleapis.com/auth/admin.directory.device.chromeos";
85
  /**
86
  * Constructs the internal representation of the Directory service.
87
  *
88
+ * @param GoogleGAL_Client $client
89
  */
90
+ public function __construct(GoogleGAL_Client $client)
91
  {
92
  parent::__construct($client);
93
  $this->servicePath = 'admin/directory/v1/';
94
  $this->version = 'directory_v1';
95
  $this->serviceName = 'admin';
96
 
97
+ $this->asps = new GoogleGAL_Service_Directory_Asps_Resource(
98
  $this,
99
  $this->serviceName,
100
  'asps',
144
  )
145
  )
146
  );
147
+ $this->channels = new GoogleGAL_Service_Directory_Channels_Resource(
148
  $this,
149
  $this->serviceName,
150
  'channels',
158
  )
159
  )
160
  );
161
+ $this->chromeosdevices = new GoogleGAL_Service_Directory_Chromeosdevices_Resource(
162
  $this,
163
  $this->serviceName,
164
  'chromeosdevices',
259
  )
260
  )
261
  );
262
+ $this->groups = new GoogleGAL_Service_Directory_Groups_Resource(
263
  $this,
264
  $this->serviceName,
265
  'groups',
338
  )
339
  )
340
  );
341
+ $this->groups_aliases = new GoogleGAL_Service_Directory_GroupsAliases_Resource(
342
  $this,
343
  $this->serviceName,
344
  'aliases',
383
  )
384
  )
385
  );
386
+ $this->members = new GoogleGAL_Service_Directory_Members_Resource(
387
  $this,
388
  $this->serviceName,
389
  'members',
485
  )
486
  )
487
  );
488
+ $this->mobiledevices = new GoogleGAL_Service_Directory_Mobiledevices_Resource(
489
  $this,
490
  $this->serviceName,
491
  'mobiledevices',
578
  )
579
  )
580
  );
581
+ $this->notifications = new GoogleGAL_Service_Directory_Notifications_Resource(
582
  $this,
583
  $this->serviceName,
584
  'notifications',
670
  )
671
  )
672
  );
673
+ $this->orgunits = new GoogleGAL_Service_Directory_Orgunits_Resource(
674
  $this,
675
  $this->serviceName,
676
  'orgunits',
772
  )
773
  )
774
  );
775
+ $this->tokens = new GoogleGAL_Service_Directory_Tokens_Resource(
776
  $this,
777
  $this->serviceName,
778
  'tokens',
822
  )
823
  )
824
  );
825
+ $this->users = new GoogleGAL_Service_Directory_Users_Resource(
826
  $this,
827
  $this->serviceName,
828
  'users',
978
  )
979
  )
980
  );
981
+ $this->users_aliases = new GoogleGAL_Service_Directory_UsersAliases_Resource(
982
  $this,
983
  $this->serviceName,
984
  'aliases',
1041
  )
1042
  )
1043
  );
1044
+ $this->users_photos = new GoogleGAL_Service_Directory_UsersPhotos_Resource(
1045
  $this,
1046
  $this->serviceName,
1047
  'photos',
1091
  )
1092
  )
1093
  );
1094
+ $this->verificationCodes = new GoogleGAL_Service_Directory_VerificationCodes_Resource(
1095
  $this,
1096
  $this->serviceName,
1097
  'verificationCodes',
1139
  * The "asps" collection of methods.
1140
  * Typical usage is:
1141
  * <code>
1142
+ * $adminService = new GoogleGAL_Service_Directory(...);
1143
  * $asps = $adminService->asps;
1144
  * </code>
1145
  */
1146
+ class GoogleGAL_Service_Directory_Asps_Resource extends GoogleGAL_Service_Resource
1147
  {
1148
 
1149
  /**
1171
  * @param int $codeId
1172
  * The unique ID of the ASP.
1173
  * @param array $optParams Optional parameters.
1174
+ * @return GoogleGAL_Service_Directory_Asp
1175
  */
1176
  public function get($userKey, $codeId, $optParams = array())
1177
  {
1178
  $params = array('userKey' => $userKey, 'codeId' => $codeId);
1179
  $params = array_merge($params, $optParams);
1180
+ return $this->call('get', array($params), "GoogleGAL_Service_Directory_Asp");
1181
  }
1182
  /**
1183
  * List the ASPs issued by a user. (asps.listAsps)
1186
  * Identifies the user in the API request. The value can be the user's primary email address, alias
1187
  * email address, or unique user ID.
1188
  * @param array $optParams Optional parameters.
1189
+ * @return GoogleGAL_Service_Directory_Asps
1190
  */
1191
  public function listAsps($userKey, $optParams = array())
1192
  {
1193
  $params = array('userKey' => $userKey);
1194
  $params = array_merge($params, $optParams);
1195
+ return $this->call('list', array($params), "GoogleGAL_Service_Directory_Asps");
1196
  }
1197
  }
1198
 
1200
  * The "channels" collection of methods.
1201
  * Typical usage is:
1202
  * <code>
1203
+ * $adminService = new GoogleGAL_Service_Directory(...);
1204
  * $channels = $adminService->channels;
1205
  * </code>
1206
  */
1207
+ class GoogleGAL_Service_Directory_Channels_Resource extends GoogleGAL_Service_Resource
1208
  {
1209
 
1210
  /**
1211
  * Stop watching resources through this channel (channels.stop)
1212
  *
1213
+ * @param GoogleGAL_Channel $postBody
1214
  * @param array $optParams Optional parameters.
1215
  */
1216
+ public function stop(GoogleGAL_Service_Directory_Channel $postBody, $optParams = array())
1217
  {
1218
  $params = array('postBody' => $postBody);
1219
  $params = array_merge($params, $optParams);
1225
  * The "chromeosdevices" collection of methods.
1226
  * Typical usage is:
1227
  * <code>
1228
+ * $adminService = new GoogleGAL_Service_Directory(...);
1229
  * $chromeosdevices = $adminService->chromeosdevices;
1230
  * </code>
1231
  */
1232
+ class GoogleGAL_Service_Directory_Chromeosdevices_Resource extends GoogleGAL_Service_Resource
1233
  {
1234
 
1235
  /**
1243
  *
1244
  * @opt_param string projection
1245
  * Restrict information returned to a set of selected fields.
1246
+ * @return GoogleGAL_Service_Directory_ChromeOsDevice
1247
  */
1248
  public function get($customerId, $deviceId, $optParams = array())
1249
  {
1250
  $params = array('customerId' => $customerId, 'deviceId' => $deviceId);
1251
  $params = array_merge($params, $optParams);
1252
+ return $this->call('get', array($params), "GoogleGAL_Service_Directory_ChromeOsDevice");
1253
  }
1254
  /**
1255
  * Retrieve all Chrome OS Devices of a customer (paginated)
1273
  * @opt_param string query
1274
  * Search string in the format given at
1275
  * http://support.google.com/chromeos/a/bin/answer.py?hl=en=1698333
1276
+ * @return GoogleGAL_Service_Directory_ChromeOsDevices
1277
  */
1278
  public function listChromeosdevices($customerId, $optParams = array())
1279
  {
1280
  $params = array('customerId' => $customerId);
1281
  $params = array_merge($params, $optParams);
1282
+ return $this->call('list', array($params), "GoogleGAL_Service_Directory_ChromeOsDevices");
1283
  }
1284
  /**
1285
  * Update Chrome OS Device. This method supports patch semantics.
1289
  * Immutable id of the Google Apps account
1290
  * @param string $deviceId
1291
  * Immutable id of Chrome OS Device
1292
+ * @param GoogleGAL_ChromeOsDevice $postBody
1293
  * @param array $optParams Optional parameters.
1294
  *
1295
  * @opt_param string projection
1296
  * Restrict information returned to a set of selected fields.
1297
+ * @return GoogleGAL_Service_Directory_ChromeOsDevice
1298
  */
1299
+ public function patch($customerId, $deviceId, GoogleGAL_Service_Directory_ChromeOsDevice $postBody, $optParams = array())
1300
  {
1301
  $params = array('customerId' => $customerId, 'deviceId' => $deviceId, 'postBody' => $postBody);
1302
  $params = array_merge($params, $optParams);
1303
+ return $this->call('patch', array($params), "GoogleGAL_Service_Directory_ChromeOsDevice");
1304
  }
1305
  /**
1306
  * Update Chrome OS Device (chromeosdevices.update)
1309
  * Immutable id of the Google Apps account
1310
  * @param string $deviceId
1311
  * Immutable id of Chrome OS Device
1312
+ * @param GoogleGAL_ChromeOsDevice $postBody
1313
  * @param array $optParams Optional parameters.
1314
  *
1315
  * @opt_param string projection
1316
  * Restrict information returned to a set of selected fields.
1317
+ * @return GoogleGAL_Service_Directory_ChromeOsDevice
1318
  */
1319
+ public function update($customerId, $deviceId, GoogleGAL_Service_Directory_ChromeOsDevice $postBody, $optParams = array())
1320
  {
1321
  $params = array('customerId' => $customerId, 'deviceId' => $deviceId, 'postBody' => $postBody);
1322
  $params = array_merge($params, $optParams);
1323
+ return $this->call('update', array($params), "GoogleGAL_Service_Directory_ChromeOsDevice");
1324
  }
1325
  }
1326
 
1328
  * The "groups" collection of methods.
1329
  * Typical usage is:
1330
  * <code>
1331
+ * $adminService = new GoogleGAL_Service_Directory(...);
1332
  * $groups = $adminService->groups;
1333
  * </code>
1334
  */
1335
+ class GoogleGAL_Service_Directory_Groups_Resource extends GoogleGAL_Service_Resource
1336
  {
1337
 
1338
  /**
1354
  * @param string $groupKey
1355
  * Email or immutable Id of the group
1356
  * @param array $optParams Optional parameters.
1357
+ * @return GoogleGAL_Service_Directory_Group
1358
  */
1359
  public function get($groupKey, $optParams = array())
1360
  {
1361
  $params = array('groupKey' => $groupKey);
1362
  $params = array_merge($params, $optParams);
1363
+ return $this->call('get', array($params), "GoogleGAL_Service_Directory_Group");
1364
  }
1365
  /**
1366
  * Create Group (groups.insert)
1367
  *
1368
+ * @param GoogleGAL_Group $postBody
1369
  * @param array $optParams Optional parameters.
1370
+ * @return GoogleGAL_Service_Directory_Group
1371
  */
1372
+ public function insert(GoogleGAL_Service_Directory_Group $postBody, $optParams = array())
1373
  {
1374
  $params = array('postBody' => $postBody);
1375
  $params = array_merge($params, $optParams);
1376
+ return $this->call('insert', array($params), "GoogleGAL_Service_Directory_Group");
1377
  }
1378
  /**
1379
  * Retrieve all groups in a domain (paginated) (groups.listGroups)
1393
  * @opt_param string userKey
1394
  * Email or immutable Id of the user if only those groups are to be listed, the given user is a
1395
  * member of. If Id, it should match with id of user object
1396
+ * @return GoogleGAL_Service_Directory_Groups
1397
  */
1398
  public function listGroups($optParams = array())
1399
  {
1400
  $params = array();
1401
  $params = array_merge($params, $optParams);
1402
+ return $this->call('list', array($params), "GoogleGAL_Service_Directory_Groups");
1403
  }
1404
  /**
1405
  * Update Group. This method supports patch semantics. (groups.patch)
1406
  *
1407
  * @param string $groupKey
1408
  * Email or immutable Id of the group. If Id, it should match with id of group object
1409
+ * @param GoogleGAL_Group $postBody
1410
  * @param array $optParams Optional parameters.
1411
+ * @return GoogleGAL_Service_Directory_Group
1412
  */
1413
+ public function patch($groupKey, GoogleGAL_Service_Directory_Group $postBody, $optParams = array())
1414
  {
1415
  $params = array('groupKey' => $groupKey, 'postBody' => $postBody);
1416
  $params = array_merge($params, $optParams);
1417
+ return $this->call('patch', array($params), "GoogleGAL_Service_Directory_Group");
1418
  }
1419
  /**
1420
  * Update Group (groups.update)
1421
  *
1422
  * @param string $groupKey
1423
  * Email or immutable Id of the group. If Id, it should match with id of group object
1424
+ * @param GoogleGAL_Group $postBody
1425
  * @param array $optParams Optional parameters.
1426
+ * @return GoogleGAL_Service_Directory_Group
1427
  */
1428
+ public function update($groupKey, GoogleGAL_Service_Directory_Group $postBody, $optParams = array())
1429
  {
1430
  $params = array('groupKey' => $groupKey, 'postBody' => $postBody);
1431
  $params = array_merge($params, $optParams);
1432
+ return $this->call('update', array($params), "GoogleGAL_Service_Directory_Group");
1433
  }
1434
  }
1435
 
1437
  * The "aliases" collection of methods.
1438
  * Typical usage is:
1439
  * <code>
1440
+ * $adminService = new GoogleGAL_Service_Directory(...);
1441
  * $aliases = $adminService->aliases;
1442
  * </code>
1443
  */
1444
+ class GoogleGAL_Service_Directory_GroupsAliases_Resource extends GoogleGAL_Service_Resource
1445
  {
1446
 
1447
  /**
1464
  *
1465
  * @param string $groupKey
1466
  * Email or immutable Id of the group
1467
+ * @param GoogleGAL_Alias $postBody
1468
  * @param array $optParams Optional parameters.
1469
+ * @return GoogleGAL_Service_Directory_Alias
1470
  */
1471
+ public function insert($groupKey, GoogleGAL_Service_Directory_Alias $postBody, $optParams = array())
1472
  {
1473
  $params = array('groupKey' => $groupKey, 'postBody' => $postBody);
1474
  $params = array_merge($params, $optParams);
1475
+ return $this->call('insert', array($params), "GoogleGAL_Service_Directory_Alias");
1476
  }
1477
  /**
1478
  * List all aliases for a group (aliases.listGroupsAliases)
1480
  * @param string $groupKey
1481
  * Email or immutable Id of the group
1482
  * @param array $optParams Optional parameters.
1483
+ * @return GoogleGAL_Service_Directory_Aliases
1484
  */
1485
  public function listGroupsAliases($groupKey, $optParams = array())
1486
  {
1487
  $params = array('groupKey' => $groupKey);
1488
  $params = array_merge($params, $optParams);
1489
+ return $this->call('list', array($params), "GoogleGAL_Service_Directory_Aliases");
1490
  }
1491
  }
1492
 
1494
  * The "members" collection of methods.
1495
  * Typical usage is:
1496
  * <code>
1497
+ * $adminService = new GoogleGAL_Service_Directory(...);
1498
  * $members = $adminService->members;
1499
  * </code>
1500
  */
1501
+ class GoogleGAL_Service_Directory_Members_Resource extends GoogleGAL_Service_Resource
1502
  {
1503
 
1504
  /**
1524
  * @param string $memberKey
1525
  * Email or immutable Id of the member
1526
  * @param array $optParams Optional parameters.
1527
+ * @return GoogleGAL_Service_Directory_Member
1528
  */
1529
  public function get($groupKey, $memberKey, $optParams = array())
1530
  {
1531
  $params = array('groupKey' => $groupKey, 'memberKey' => $memberKey);
1532
  $params = array_merge($params, $optParams);
1533
+ return $this->call('get', array($params), "GoogleGAL_Service_Directory_Member");
1534
  }
1535
  /**
1536
  * Add user to the specified group. (members.insert)
1537
  *
1538
  * @param string $groupKey
1539
  * Email or immutable Id of the group
1540
+ * @param GoogleGAL_Member $postBody
1541
  * @param array $optParams Optional parameters.
1542
+ * @return GoogleGAL_Service_Directory_Member
1543
  */
1544
+ public function insert($groupKey, GoogleGAL_Service_Directory_Member $postBody, $optParams = array())
1545
  {
1546
  $params = array('groupKey' => $groupKey, 'postBody' => $postBody);
1547
  $params = array_merge($params, $optParams);
1548
+ return $this->call('insert', array($params), "GoogleGAL_Service_Directory_Member");
1549
  }
1550
  /**
1551
  * Retrieve all members in a group (paginated) (members.listMembers)
1560
  * Comma separated role values to filter list results on.
1561
  * @opt_param int maxResults
1562
  * Maximum number of results to return. Default is 200
1563
+ * @return GoogleGAL_Service_Directory_Members
1564
  */
1565
  public function listMembers($groupKey, $optParams = array())
1566
  {
1567
  $params = array('groupKey' => $groupKey);
1568
  $params = array_merge($params, $optParams);
1569
+ return $this->call('list', array($params), "GoogleGAL_Service_Directory_Members");
1570
  }
1571
  /**
1572
  * Update membership of a user in the specified group. This method supports
1576
  * Email or immutable Id of the group. If Id, it should match with id of group object
1577
  * @param string $memberKey
1578
  * Email or immutable Id of the user. If Id, it should match with id of member object
1579
+ * @param GoogleGAL_Member $postBody
1580
  * @param array $optParams Optional parameters.
1581
+ * @return GoogleGAL_Service_Directory_Member
1582
  */
1583
+ public function patch($groupKey, $memberKey, GoogleGAL_Service_Directory_Member $postBody, $optParams = array())
1584
  {
1585
  $params = array('groupKey' => $groupKey, 'memberKey' => $memberKey, 'postBody' => $postBody);
1586
  $params = array_merge($params, $optParams);
1587
+ return $this->call('patch', array($params), "GoogleGAL_Service_Directory_Member");
1588
  }
1589
  /**
1590
  * Update membership of a user in the specified group. (members.update)
1593
  * Email or immutable Id of the group. If Id, it should match with id of group object
1594
  * @param string $memberKey
1595
  * Email or immutable Id of the user. If Id, it should match with id of member object
1596
+ * @param GoogleGAL_Member $postBody
1597
  * @param array $optParams Optional parameters.
1598
+ * @return GoogleGAL_Service_Directory_Member
1599
  */
1600
+ public function update($groupKey, $memberKey, GoogleGAL_Service_Directory_Member $postBody, $optParams = array())
1601
  {
1602
  $params = array('groupKey' => $groupKey, 'memberKey' => $memberKey, 'postBody' => $postBody);
1603
  $params = array_merge($params, $optParams);
1604
+ return $this->call('update', array($params), "GoogleGAL_Service_Directory_Member");
1605
  }
1606
  }
1607
 
1609
  * The "mobiledevices" collection of methods.
1610
  * Typical usage is:
1611
  * <code>
1612
+ * $adminService = new GoogleGAL_Service_Directory(...);
1613
  * $mobiledevices = $adminService->mobiledevices;
1614
  * </code>
1615
  */
1616
+ class GoogleGAL_Service_Directory_Mobiledevices_Resource extends GoogleGAL_Service_Resource
1617
  {
1618
 
1619
  /**
1623
  * Immutable id of the Google Apps account
1624
  * @param string $resourceId
1625
  * Immutable id of Mobile Device
1626
+ * @param GoogleGAL_MobileDeviceAction $postBody
1627
  * @param array $optParams Optional parameters.
1628
  */
1629
+ public function action($customerId, $resourceId, GoogleGAL_Service_Directory_MobileDeviceAction $postBody, $optParams = array())
1630
  {
1631
  $params = array('customerId' => $customerId, 'resourceId' => $resourceId, 'postBody' => $postBody);
1632
  $params = array_merge($params, $optParams);
1658
  *
1659
  * @opt_param string projection
1660
  * Restrict information returned to a set of selected fields.
1661
+ * @return GoogleGAL_Service_Directory_MobileDevice
1662
  */
1663
  public function get($customerId, $resourceId, $optParams = array())
1664
  {
1665
  $params = array('customerId' => $customerId, 'resourceId' => $resourceId);
1666
  $params = array_merge($params, $optParams);
1667
+ return $this->call('get', array($params), "GoogleGAL_Service_Directory_MobileDevice");
1668
  }
1669
  /**
1670
  * Retrieve all Mobile Devices of a customer (paginated)
1688
  * @opt_param string query
1689
  * Search string in the format given at
1690
  * http://support.google.com/a/bin/answer.py?hl=en=1408863#search
1691
+ * @return GoogleGAL_Service_Directory_MobileDevices
1692
  */
1693
  public function listMobiledevices($customerId, $optParams = array())
1694
  {
1695
  $params = array('customerId' => $customerId);
1696
  $params = array_merge($params, $optParams);
1697
+ return $this->call('list', array($params), "GoogleGAL_Service_Directory_MobileDevices");
1698
  }
1699
  }
1700
 
1702
  * The "notifications" collection of methods.
1703
  * Typical usage is:
1704
  * <code>
1705
+ * $adminService = new GoogleGAL_Service_Directory(...);
1706
  * $notifications = $adminService->notifications;
1707
  * </code>
1708
  */
1709
+ class GoogleGAL_Service_Directory_Notifications_Resource extends GoogleGAL_Service_Resource
1710
  {
1711
 
1712
  /**
1734
  * @param string $notificationId
1735
  * The unique ID of the notification.
1736
  * @param array $optParams Optional parameters.
1737
+ * @return GoogleGAL_Service_Directory_Notification
1738
  */
1739
  public function get($customer, $notificationId, $optParams = array())
1740
  {
1741
  $params = array('customer' => $customer, 'notificationId' => $notificationId);
1742
  $params = array_merge($params, $optParams);
1743
+ return $this->call('get', array($params), "GoogleGAL_Service_Directory_Notification");
1744
  }
1745
  /**
1746
  * Retrieves a list of notifications. (notifications.listNotifications)
1755
  * Maximum number of notifications to return per page. The default is 100.
1756
  * @opt_param string language
1757
  * The ISO 639-1 code of the language notifications are returned in. The default is English (en).
1758
+ * @return GoogleGAL_Service_Directory_Notifications
1759
  */
1760
  public function listNotifications($customer, $optParams = array())
1761
  {
1762
  $params = array('customer' => $customer);
1763
  $params = array_merge($params, $optParams);
1764
+ return $this->call('list', array($params), "GoogleGAL_Service_Directory_Notifications");
1765
  }
1766
  /**
1767
  * Updates a notification. This method supports patch semantics.
1771
  * The unique ID for the customer's Google account.
1772
  * @param string $notificationId
1773
  * The unique ID of the notification.
1774
+ * @param GoogleGAL_Notification $postBody
1775
  * @param array $optParams Optional parameters.
1776
+ * @return GoogleGAL_Service_Directory_Notification
1777
  */
1778
+ public function patch($customer, $notificationId, GoogleGAL_Service_Directory_Notification $postBody, $optParams = array())
1779
  {
1780
  $params = array('customer' => $customer, 'notificationId' => $notificationId, 'postBody' => $postBody);
1781
  $params = array_merge($params, $optParams);
1782
+ return $this->call('patch', array($params), "GoogleGAL_Service_Directory_Notification");
1783
  }
1784
  /**
1785
  * Updates a notification. (notifications.update)
1788
  * The unique ID for the customer's Google account.
1789
  * @param string $notificationId
1790
  * The unique ID of the notification.
1791
+ * @param GoogleGAL_Notification $postBody
1792
  * @param array $optParams Optional parameters.
1793
+ * @return GoogleGAL_Service_Directory_Notification
1794
  */
1795
+ public function update($customer, $notificationId, GoogleGAL_Service_Directory_Notification $postBody, $optParams = array())
1796
  {
1797
  $params = array('customer' => $customer, 'notificationId' => $notificationId, 'postBody' => $postBody);
1798
  $params = array_merge($params, $optParams);
1799
+ return $this->call('update', array($params), "GoogleGAL_Service_Directory_Notification");
1800
  }
1801
  }
1802
 
1804
  * The "orgunits" collection of methods.
1805
  * Typical usage is:
1806
  * <code>
1807
+ * $adminService = new GoogleGAL_Service_Directory(...);
1808
  * $orgunits = $adminService->orgunits;
1809
  * </code>
1810
  */
1811
+ class GoogleGAL_Service_Directory_Orgunits_Resource extends GoogleGAL_Service_Resource
1812
  {
1813
 
1814
  /**
1834
  * @param string $orgUnitPath
1835
  * Full path of the organization unit
1836
  * @param array $optParams Optional parameters.
1837
+ * @return GoogleGAL_Service_Directory_OrgUnit
1838
  */
1839
  public function get($customerId, $orgUnitPath, $optParams = array())
1840
  {
1841
  $params = array('customerId' => $customerId, 'orgUnitPath' => $orgUnitPath);
1842
  $params = array_merge($params, $optParams);
1843
+ return $this->call('get', array($params), "GoogleGAL_Service_Directory_OrgUnit");
1844
  }
1845
  /**
1846
  * Add Organization Unit (orgunits.insert)
1847
  *
1848
  * @param string $customerId
1849
  * Immutable id of the Google Apps account
1850
+ * @param GoogleGAL_OrgUnit $postBody
1851
  * @param array $optParams Optional parameters.
1852
+ * @return GoogleGAL_Service_Directory_OrgUnit
1853
  */
1854
+ public function insert($customerId, GoogleGAL_Service_Directory_OrgUnit $postBody, $optParams = array())
1855
  {
1856
  $params = array('customerId' => $customerId, 'postBody' => $postBody);
1857
  $params = array_merge($params, $optParams);
1858
+ return $this->call('insert', array($params), "GoogleGAL_Service_Directory_OrgUnit");
1859
  }
1860
  /**
1861
  * Retrieve all Organization Units (orgunits.listOrgunits)
1868
  * Whether to return all sub-organizations or just immediate children
1869
  * @opt_param string orgUnitPath
1870
  * the URL-encoded organization unit
1871
+ * @return GoogleGAL_Service_Directory_OrgUnits
1872
  */
1873
  public function listOrgunits($customerId, $optParams = array())
1874
  {
1875
  $params = array('customerId' => $customerId);
1876
  $params = array_merge($params, $optParams);
1877
+ return $this->call('list', array($params), "GoogleGAL_Service_Directory_OrgUnits");
1878
  }
1879
  /**
1880
  * Update Organization Unit. This method supports patch semantics.
1884
  * Immutable id of the Google Apps account
1885
  * @param string $orgUnitPath
1886
  * Full path of the organization unit
1887
+ * @param GoogleGAL_OrgUnit $postBody
1888
  * @param array $optParams Optional parameters.
1889
+ * @return GoogleGAL_Service_Directory_OrgUnit
1890
  */
1891
+ public function patch($customerId, $orgUnitPath, GoogleGAL_Service_Directory_OrgUnit $postBody, $optParams = array())
1892
  {
1893
  $params = array('customerId' => $customerId, 'orgUnitPath' => $orgUnitPath, 'postBody' => $postBody);
1894
  $params = array_merge($params, $optParams);
1895
+ return $this->call('patch', array($params), "GoogleGAL_Service_Directory_OrgUnit");
1896
  }
1897
  /**
1898
  * Update Organization Unit (orgunits.update)
1901
  * Immutable id of the Google Apps account
1902
  * @param string $orgUnitPath
1903
  * Full path of the organization unit
1904
+ * @param GoogleGAL_OrgUnit $postBody
1905
  * @param array $optParams Optional parameters.
1906
+ * @return GoogleGAL_Service_Directory_OrgUnit
1907
  */
1908
+ public function update($customerId, $orgUnitPath, GoogleGAL_Service_Directory_OrgUnit $postBody, $optParams = array())
1909
  {
1910
  $params = array('customerId' => $customerId, 'orgUnitPath' => $orgUnitPath, 'postBody' => $postBody);
1911
  $params = array_merge($params, $optParams);
1912
+ return $this->call('update', array($params), "GoogleGAL_Service_Directory_OrgUnit");
1913
  }
1914
  }
1915
 
1917
  * The "tokens" collection of methods.
1918
  * Typical usage is:
1919
  * <code>
1920
+ * $adminService = new GoogleGAL_Service_Directory(...);
1921
  * $tokens = $adminService->tokens;
1922
  * </code>
1923
  */
1924
+ class GoogleGAL_Service_Directory_Tokens_Resource extends GoogleGAL_Service_Resource
1925
  {
1926
 
1927
  /**
1949
  * @param string $clientId
1950
  * The Client ID of the application the token is issued to.
1951
  * @param array $optParams Optional parameters.
1952
+ * @return GoogleGAL_Service_Directory_Token
1953
  */
1954
  public function get($userKey, $clientId, $optParams = array())
1955
  {
1956
  $params = array('userKey' => $userKey, 'clientId' => $clientId);
1957
  $params = array_merge($params, $optParams);
1958
+ return $this->call('get', array($params), "GoogleGAL_Service_Directory_Token");
1959
  }
1960
  /**
1961
  * Returns the set of current, valid verification codes for the specified user.
1965
  * Identifies the user in the API request. The value can be the user's primary email address, alias
1966
  * email address, or unique user ID.
1967
  * @param array $optParams Optional parameters.
1968
+ * @return GoogleGAL_Service_Directory_Tokens
1969
  */
1970
  public function listTokens($userKey, $optParams = array())
1971
  {
1972
  $params = array('userKey' => $userKey);
1973
  $params = array_merge($params, $optParams);
1974
+ return $this->call('list', array($params), "GoogleGAL_Service_Directory_Tokens");
1975
  }
1976
  }
1977
 
1979
  * The "users" collection of methods.
1980
  * Typical usage is:
1981
  * <code>
1982
+ * $adminService = new GoogleGAL_Service_Directory(...);
1983
  * $users = $adminService->users;
1984
  * </code>
1985
  */
1986
+ class GoogleGAL_Service_Directory_Users_Resource extends GoogleGAL_Service_Resource
1987
  {
1988
 
1989
  /**
2005
  * @param string $userKey
2006
  * Email or immutable Id of the user
2007
  * @param array $optParams Optional parameters.
2008
+ * @return GoogleGAL_Service_Directory_User
2009
  */
2010
  public function get($userKey, $optParams = array())
2011
  {
2012
  $params = array('userKey' => $userKey);
2013
  $params = array_merge($params, $optParams);
2014
+ return $this->call('get', array($params), "GoogleGAL_Service_Directory_User");
2015
  }
2016
  /**
2017
  * create user. (users.insert)
2018
  *
2019
+ * @param GoogleGAL_User $postBody
2020
  * @param array $optParams Optional parameters.
2021
+ * @return GoogleGAL_Service_Directory_User
2022
  */
2023
+ public function insert(GoogleGAL_Service_Directory_User $postBody, $optParams = array())
2024
  {
2025
  $params = array('postBody' => $postBody);
2026
  $params = array_merge($params, $optParams);
2027
+ return $this->call('insert', array($params), "GoogleGAL_Service_Directory_User");
2028
  }
2029
  /**
2030
  * Retrieve either deleted users or all users in a domain (paginated)
2054
  * should always be followed by a *.
2055
  * @opt_param string event
2056
  * Event on which subscription is intended (if subscribing)
2057
+ * @return GoogleGAL_Service_Directory_Users
2058
  */
2059
  public function listUsers($optParams = array())
2060
  {
2061
  $params = array();
2062
  $params = array_merge($params, $optParams);
2063
+ return $this->call('list', array($params), "GoogleGAL_Service_Directory_Users");
2064
  }
2065
  /**
2066
  * change admin status of a user (users.makeAdmin)
2067
  *
2068
  * @param string $userKey
2069
  * Email or immutable Id of the user as admin
2070
+ * @param GoogleGAL_UserMakeAdmin $postBody
2071
  * @param array $optParams Optional parameters.
2072
  */
2073
+ public function makeAdmin($userKey, GoogleGAL_Service_Directory_UserMakeAdmin $postBody, $optParams = array())
2074
  {
2075
  $params = array('userKey' => $userKey, 'postBody' => $postBody);
2076
  $params = array_merge($params, $optParams);
2081
  *
2082
  * @param string $userKey
2083
  * Email or immutable Id of the user. If Id, it should match with id of user object
2084
+ * @param GoogleGAL_User $postBody
2085
  * @param array $optParams Optional parameters.
2086
+ * @return GoogleGAL_Service_Directory_User
2087
  */
2088
+ public function patch($userKey, GoogleGAL_Service_Directory_User $postBody, $optParams = array())
2089
  {
2090
  $params = array('userKey' => $userKey, 'postBody' => $postBody);
2091
  $params = array_merge($params, $optParams);
2092
+ return $this->call('patch', array($params), "GoogleGAL_Service_Directory_User");
2093
  }
2094
  /**
2095
  * Undelete a deleted user (users.undelete)
2096
  *
2097
  * @param string $userKey
2098
  * The immutable id of the user
2099
+ * @param GoogleGAL_UserUndelete $postBody
2100
  * @param array $optParams Optional parameters.
2101
  */
2102
+ public function undelete($userKey, GoogleGAL_Service_Directory_UserUndelete $postBody, $optParams = array())
2103
  {
2104
  $params = array('userKey' => $userKey, 'postBody' => $postBody);
2105
  $params = array_merge($params, $optParams);
2110
  *
2111
  * @param string $userKey
2112
  * Email or immutable Id of the user. If Id, it should match with id of user object
2113
+ * @param GoogleGAL_User $postBody
2114
  * @param array $optParams Optional parameters.
2115
+ * @return GoogleGAL_Service_Directory_User
2116
  */
2117
+ public function update($userKey, GoogleGAL_Service_Directory_User $postBody, $optParams = array())
2118
  {
2119
  $params = array('userKey' => $userKey, 'postBody' => $postBody);
2120
  $params = array_merge($params, $optParams);
2121
+ return $this->call('update', array($params), "GoogleGAL_Service_Directory_User");
2122
  }
2123
  /**
2124
  * Watch for changes in users list (users.watch)
2125
  *
2126
+ * @param GoogleGAL_Channel $postBody
2127
  * @param array $optParams Optional parameters.
2128
  *
2129
  * @opt_param string customer
2148
  * should always be followed by a *.
2149
  * @opt_param string event
2150
  * Event on which subscription is intended (if subscribing)
2151
+ * @return GoogleGAL_Service_Directory_Channel
2152
  */
2153
+ public function watch(GoogleGAL_Service_Directory_Channel $postBody, $optParams = array())
2154
  {
2155
  $params = array('postBody' => $postBody);
2156
  $params = array_merge($params, $optParams);
2157
+ return $this->call('watch', array($params), "GoogleGAL_Service_Directory_Channel");
2158
  }
2159
  }
2160
 
2162
  * The "aliases" collection of methods.
2163
  * Typical usage is:
2164
  * <code>
2165
+ * $adminService = new GoogleGAL_Service_Directory(...);
2166
  * $aliases = $adminService->aliases;
2167
  * </code>
2168
  */
2169
+ class GoogleGAL_Service_Directory_UsersAliases_Resource extends GoogleGAL_Service_Resource
2170
  {
2171
 
2172
  /**
2189
  *
2190
  * @param string $userKey
2191
  * Email or immutable Id of the user
2192
+ * @param GoogleGAL_Alias $postBody
2193
  * @param array $optParams Optional parameters.
2194
+ * @return GoogleGAL_Service_Directory_Alias
2195
  */
2196
+ public function insert($userKey, GoogleGAL_Service_Directory_Alias $postBody, $optParams = array())
2197
  {
2198
  $params = array('userKey' => $userKey, 'postBody' => $postBody);
2199
  $params = array_merge($params, $optParams);
2200
+ return $this->call('insert', array($params), "GoogleGAL_Service_Directory_Alias");
2201
  }
2202
  /**
2203
  * List all aliases for a user (aliases.listUsersAliases)
2208
  *
2209
  * @opt_param string event
2210
  * Event on which subscription is intended (if subscribing)
2211
+ * @return GoogleGAL_Service_Directory_Aliases
2212
  */
2213
  public function listUsersAliases($userKey, $optParams = array())
2214
  {
2215
  $params = array('userKey' => $userKey);
2216
  $params = array_merge($params, $optParams);
2217
+ return $this->call('list', array($params), "GoogleGAL_Service_Directory_Aliases");
2218
  }
2219
  /**
2220
  * Watch for changes in user aliases list (aliases.watch)
2221
  *
2222
  * @param string $userKey
2223
  * Email or immutable Id of the user
2224
+ * @param GoogleGAL_Channel $postBody
2225
  * @param array $optParams Optional parameters.
2226
  *
2227
  * @opt_param string event
2228
  * Event on which subscription is intended (if subscribing)
2229
+ * @return GoogleGAL_Service_Directory_Channel
2230
  */
2231
+ public function watch($userKey, GoogleGAL_Service_Directory_Channel $postBody, $optParams = array())
2232
  {
2233
  $params = array('userKey' => $userKey, 'postBody' => $postBody);
2234
  $params = array_merge($params, $optParams);
2235
+ return $this->call('watch', array($params), "GoogleGAL_Service_Directory_Channel");
2236
  }
2237
  }
2238
  /**
2239
  * The "photos" collection of methods.
2240
  * Typical usage is:
2241
  * <code>
2242
+ * $adminService = new GoogleGAL_Service_Directory(...);
2243
  * $photos = $adminService->photos;
2244
  * </code>
2245
  */
2246
+ class GoogleGAL_Service_Directory_UsersPhotos_Resource extends GoogleGAL_Service_Resource
2247
  {
2248
 
2249
  /**
2265
  * @param string $userKey
2266
  * Email or immutable Id of the user
2267
  * @param array $optParams Optional parameters.
2268
+ * @return GoogleGAL_Service_Directory_UserPhoto
2269
  */
2270
  public function get($userKey, $optParams = array())
2271
  {
2272
  $params = array('userKey' => $userKey);
2273
  $params = array_merge($params, $optParams);
2274
+ return $this->call('get', array($params), "GoogleGAL_Service_Directory_UserPhoto");
2275
  }
2276
  /**
2277
  * Add a photo for the user. This method supports patch semantics.
2279
  *
2280
  * @param string $userKey
2281
  * Email or immutable Id of the user
2282
+ * @param GoogleGAL_UserPhoto $postBody
2283
  * @param array $optParams Optional parameters.
2284
+ * @return GoogleGAL_Service_Directory_UserPhoto
2285
  */
2286
+ public function patch($userKey, GoogleGAL_Service_Directory_UserPhoto $postBody, $optParams = array())
2287
  {
2288
  $params = array('userKey' => $userKey, 'postBody' => $postBody);
2289
  $params = array_merge($params, $optParams);
2290
+ return $this->call('patch', array($params), "GoogleGAL_Service_Directory_UserPhoto");
2291
  }
2292
  /**
2293
  * Add a photo for the user (photos.update)
2294
  *
2295
  * @param string $userKey
2296
  * Email or immutable Id of the user
2297
+ * @param GoogleGAL_UserPhoto $postBody
2298
  * @param array $optParams Optional parameters.
2299
+ * @return GoogleGAL_Service_Directory_UserPhoto
2300
  */
2301
+ public function update($userKey, GoogleGAL_Service_Directory_UserPhoto $postBody, $optParams = array())
2302
  {
2303
  $params = array('userKey' => $userKey, 'postBody' => $postBody);
2304
  $params = array_merge($params, $optParams);
2305
+ return $this->call('update', array($params), "GoogleGAL_Service_Directory_UserPhoto");
2306
  }
2307
  }
2308
 
2310
  * The "verificationCodes" collection of methods.
2311
  * Typical usage is:
2312
  * <code>
2313
+ * $adminService = new GoogleGAL_Service_Directory(...);
2314
  * $verificationCodes = $adminService->verificationCodes;
2315
  * </code>
2316
  */
2317
+ class GoogleGAL_Service_Directory_VerificationCodes_Resource extends GoogleGAL_Service_Resource
2318
  {
2319
 
2320
  /**
2353
  * Identifies the user in the API request. The value can be the user's primary email address, alias
2354
  * email address, or unique user ID.
2355
  * @param array $optParams Optional parameters.
2356
+ * @return GoogleGAL_Service_Directory_VerificationCodes
2357
  */
2358
  public function listVerificationCodes($userKey, $optParams = array())
2359
  {
2360
  $params = array('userKey' => $userKey);
2361
  $params = array_merge($params, $optParams);
2362
+ return $this->call('list', array($params), "GoogleGAL_Service_Directory_VerificationCodes");
2363
  }
2364
  }
2365
 
2366
 
2367
 
2368
 
2369
+ class GoogleGAL_Service_Directory_Alias extends GoogleGAL_Model
2370
  {
2371
  public $alias;
2372
  public $etag;
2425
  }
2426
  }
2427
 
2428
+ class GoogleGAL_Service_Directory_Aliases extends GoogleGAL_Collection
2429
  {
2430
+ protected $aliasesType = 'GoogleGAL_Service_Directory_Alias';
2431
  protected $aliasesDataType = 'array';
2432
  public $etag;
2433
  public $kind;
2463
  }
2464
  }
2465
 
2466
+ class GoogleGAL_Service_Directory_Asp extends GoogleGAL_Model
2467
  {
2468
  public $codeId;
2469
  public $creationTime;
2544
  }
2545
  }
2546
 
2547
+ class GoogleGAL_Service_Directory_Asps extends GoogleGAL_Collection
2548
  {
2549
  public $etag;
2550
+ protected $itemsType = 'GoogleGAL_Service_Directory_Asp';
2551
  protected $itemsDataType = 'array';
2552
  public $kind;
2553
 
2582
  }
2583
  }
2584
 
2585
+ class GoogleGAL_Service_Directory_Channel extends GoogleGAL_Model
2586
  {
2587
  public $address;
2588
  public $expiration;
2696
  }
2697
  }
2698
 
2699
+ class GoogleGAL_Service_Directory_ChromeOsDevice extends GoogleGAL_Model
2700
  {
2701
  public $annotatedLocation;
2702
  public $annotatedUser;
2931
  }
2932
  }
2933
 
2934
+ class GoogleGAL_Service_Directory_ChromeOsDevices extends GoogleGAL_Collection
2935
  {
2936
+ protected $chromeosdevicesType = 'GoogleGAL_Service_Directory_ChromeOsDevice';
2937
  protected $chromeosdevicesDataType = 'array';
2938
  public $etag;
2939
  public $kind;
2980
  }
2981
  }
2982
 
2983
+ class GoogleGAL_Service_Directory_Group extends GoogleGAL_Collection
2984
  {
2985
  public $adminCreated;
2986
  public $aliases;
3094
  }
3095
  }
3096
 
3097
+ class GoogleGAL_Service_Directory_Groups extends GoogleGAL_Collection
3098
  {
3099
  public $etag;
3100
+ protected $groupsType = 'GoogleGAL_Service_Directory_Group';
3101
  protected $groupsDataType = 'array';
3102
  public $kind;
3103
  public $nextPageToken;
3143
  }
3144
  }
3145
 
3146
+ class GoogleGAL_Service_Directory_Member extends GoogleGAL_Model
3147
  {
3148
  public $email;
3149
  public $etag;
3213
  }
3214
  }
3215
 
3216
+ class GoogleGAL_Service_Directory_Members extends GoogleGAL_Collection
3217
  {
3218
  public $etag;
3219
  public $kind;
3220
+ protected $membersType = 'GoogleGAL_Service_Directory_Member';
3221
  protected $membersDataType = 'array';
3222
  public $nextPageToken;
3223
 
3262
  }
3263
  }
3264
 
3265
+ class GoogleGAL_Service_Directory_MobileDevice extends GoogleGAL_Collection
3266
  {
3267
+ protected $applicationsType = 'GoogleGAL_Service_Directory_MobileDeviceApplications';
3268
  protected $applicationsDataType = 'array';
3269
  public $deviceId;
3270
  public $email;
3432
  }
3433
  }
3434
 
3435
+ class GoogleGAL_Service_Directory_MobileDeviceAction extends GoogleGAL_Model
3436
  {
3437
  public $action;
3438
 
3447
  }
3448
  }
3449
 
3450
+ class GoogleGAL_Service_Directory_MobileDeviceApplications extends GoogleGAL_Collection
3451
  {
3452
  public $displayName;
3453
  public $packageName;
3506
  }
3507
  }
3508
 
3509
+ class GoogleGAL_Service_Directory_MobileDevices extends GoogleGAL_Collection
3510
  {
3511
  public $etag;
3512
  public $kind;
3513
+ protected $mobiledevicesType = 'GoogleGAL_Service_Directory_MobileDevice';
3514
  protected $mobiledevicesDataType = 'array';
3515
  public $nextPageToken;
3516
 
3555
  }
3556
  }
3557
 
3558
+ class GoogleGAL_Service_Directory_Notification extends GoogleGAL_Model
3559
  {
3560
  public $body;
3561
  public $etag;
3647
  }
3648
  }
3649
 
3650
+ class GoogleGAL_Service_Directory_Notifications extends GoogleGAL_Collection
3651
  {
3652
  public $etag;
3653
+ protected $itemsType = 'GoogleGAL_Service_Directory_Notification';
3654
  protected $itemsDataType = 'array';
3655
  public $kind;
3656
  public $nextPageToken;
3707
  }
3708
  }
3709
 
3710
+ class GoogleGAL_Service_Directory_OrgUnit extends GoogleGAL_Model
3711
  {
3712
  public $blockInheritance;
3713
  public $description;
3788
  }
3789
  }
3790
 
3791
+ class GoogleGAL_Service_Directory_OrgUnits extends GoogleGAL_Collection
3792
  {
3793
  public $etag;
3794
  public $kind;
3795
+ protected $organizationUnitsType = 'GoogleGAL_Service_Directory_OrgUnit';
3796
  protected $organizationUnitsDataType = 'array';
3797
 
3798
  public function setEtag($etag)
3826
  }
3827
  }
3828
 
3829
+ class GoogleGAL_Service_Directory_Token extends GoogleGAL_Collection
3830
  {
3831
  public $anonymous;
3832
  public $clientId;
3918
  }
3919
  }
3920
 
3921
+ class GoogleGAL_Service_Directory_Tokens extends GoogleGAL_Collection
3922
  {
3923
  public $etag;
3924
+ protected $itemsType = 'GoogleGAL_Service_Directory_Token';
3925
  protected $itemsDataType = 'array';
3926
  public $kind;
3927
 
3956
  }
3957
  }
3958
 
3959
+ class GoogleGAL_Service_Directory_User extends GoogleGAL_Collection
3960
  {
3961
+ protected $addressesType = 'GoogleGAL_Service_Directory_UserAddress';
3962
  protected $addressesDataType = 'array';
3963
  public $agreedToTerms;
3964
  public $aliases;
3966
  public $creationTime;
3967
  public $customerId;
3968
  public $deletionTime;
3969
+ protected $emailsType = 'GoogleGAL_Service_Directory_UserEmail';
3970
  protected $emailsDataType = 'array';
3971
  public $etag;
3972
+ protected $externalIdsType = 'GoogleGAL_Service_Directory_UserExternalId';
3973
  protected $externalIdsDataType = 'array';
3974
  public $hashFunction;
3975
  public $id;
3976
+ protected $imsType = 'GoogleGAL_Service_Directory_UserIm';
3977
  protected $imsDataType = 'array';
3978
  public $includeInGlobalAddressList;
3979
  public $ipWhitelisted;
3982
  public $isMailboxSetup;
3983
  public $kind;
3984
  public $lastLoginTime;
3985
+ protected $nameType = 'GoogleGAL_Service_Directory_UserName';
3986
  protected $nameDataType = '';
3987
  public $nonEditableAliases;
3988
  public $orgUnitPath;
3989
+ protected $organizationsType = 'GoogleGAL_Service_Directory_UserOrganization';
3990
  protected $organizationsDataType = 'array';
3991
  public $password;
3992
+ protected $phonesType = 'GoogleGAL_Service_Directory_UserPhone';
3993
  protected $phonesDataType = 'array';
3994
  public $primaryEmail;
3995
+ protected $relationsType = 'GoogleGAL_Service_Directory_UserRelation';
3996
  protected $relationsDataType = 'array';
3997
  public $suspended;
3998
  public $suspensionReason;
4198
  return $this->lastLoginTime;
4199
  }
4200
 
4201
+ public function setName(GoogleGAL_Service_Directory_UserName $name)
4202
  {
4203
  $this->name = $name;
4204
  }
4309
  }
4310
  }
4311
 
4312
+ class GoogleGAL_Service_Directory_UserAddress extends GoogleGAL_Model
4313
  {
4314
  public $country;
4315
  public $countryCode;
4456
  }
4457
  }
4458
 
4459
+ class GoogleGAL_Service_Directory_UserEmail extends GoogleGAL_Model
4460
  {
4461
  public $address;
4462
  public $customType;
4504
  }
4505
  }
4506
 
4507
+ class GoogleGAL_Service_Directory_UserExternalId extends GoogleGAL_Model
4508
  {
4509
  public $customType;
4510
  public $type;
4541
  }
4542
  }
4543
 
4544
+ class GoogleGAL_Service_Directory_UserIm extends GoogleGAL_Model
4545
  {
4546
  public $customProtocol;
4547
  public $customType;
4611
  }
4612
  }
4613
 
4614
+ class GoogleGAL_Service_Directory_UserMakeAdmin extends GoogleGAL_Model
4615
  {
4616
  public $status;
4617
 
4626
  }
4627
  }
4628
 
4629
+ class GoogleGAL_Service_Directory_UserName extends GoogleGAL_Model
4630
  {
4631
  public $familyName;
4632
  public $fullName;
4663
  }
4664
  }
4665
 
4666
+ class GoogleGAL_Service_Directory_UserOrganization extends GoogleGAL_Model
4667
  {
4668
  public $costCenter;
4669
  public $customType;
4788
  }
4789
  }
4790
 
4791
+ class GoogleGAL_Service_Directory_UserPhone extends GoogleGAL_Model
4792
  {
4793
  public $customType;
4794
  public $primary;
4836
  }
4837
  }
4838
 
4839
+ class GoogleGAL_Service_Directory_UserPhoto extends GoogleGAL_Model
4840
  {
4841
  public $etag;
4842
  public $height;
4928
  }
4929
  }
4930
 
4931
+ class GoogleGAL_Service_Directory_UserRelation extends GoogleGAL_Model
4932
  {
4933
  public $customType;
4934
  public $type;
4965
  }
4966
  }
4967
 
4968
+ class GoogleGAL_Service_Directory_UserUndelete extends GoogleGAL_Model
4969
  {
4970
  public $orgUnitPath;
4971
 
4980
  }
4981
  }
4982
 
4983
+ class GoogleGAL_Service_Directory_Users extends GoogleGAL_Collection
4984
  {
4985
  public $etag;
4986
  public $kind;
4987
  public $nextPageToken;
4988
  public $triggerEvent;
4989
+ protected $usersType = 'GoogleGAL_Service_Directory_User';
4990
  protected $usersDataType = 'array';
4991
 
4992
  public function setEtag($etag)
5040
  }
5041
  }
5042
 
5043
+ class GoogleGAL_Service_Directory_VerificationCode extends GoogleGAL_Model
5044
  {
5045
  public $etag;
5046
  public $kind;
5088
  }
5089
  }
5090
 
5091
+ class GoogleGAL_Service_Directory_VerificationCodes extends GoogleGAL_Collection
5092
  {
5093
  public $etag;
5094
+ protected $itemsType = 'GoogleGAL_Service_Directory_VerificationCode';
5095
  protected $itemsDataType = 'array';
5096
  public $kind;
5097
 
core/Google/Service/Dns.php CHANGED
@@ -29,7 +29,7 @@
29
  *
30
  * @author Google, Inc.
31
  */
32
- class Google_Service_Dns extends Google_Service
33
  {
34
  /** View and manage your data across Google Cloud Platform services. */
35
  const CLOUD_PLATFORM = "https://www.googleapis.com/auth/cloud-platform";
@@ -47,16 +47,16 @@ class Google_Service_Dns extends Google_Service
47
  /**
48
  * Constructs the internal representation of the Dns service.
49
  *
50
- * @param Google_Client $client
51
  */
52
- public function __construct(Google_Client $client)
53
  {
54
  parent::__construct($client);
55
  $this->servicePath = 'dns/v1beta1/projects/';
56
  $this->version = 'v1beta1';
57
  $this->serviceName = 'dns';
58
 
59
- $this->changes = new Google_Service_Dns_Changes_Resource(
60
  $this,
61
  $this->serviceName,
62
  'changes',
@@ -132,7 +132,7 @@ class Google_Service_Dns extends Google_Service
132
  )
133
  )
134
  );
135
- $this->managedZones = new Google_Service_Dns_ManagedZones_Resource(
136
  $this,
137
  $this->serviceName,
138
  'managedZones',
@@ -200,7 +200,7 @@ class Google_Service_Dns extends Google_Service
200
  )
201
  )
202
  );
203
- $this->projects = new Google_Service_Dns_Projects_Resource(
204
  $this,
205
  $this->serviceName,
206
  'projects',
@@ -220,7 +220,7 @@ class Google_Service_Dns extends Google_Service
220
  )
221
  )
222
  );
223
- $this->resourceRecordSets = new Google_Service_Dns_ResourceRecordSets_Resource(
224
  $this,
225
  $this->serviceName,
226
  'resourceRecordSets',
@@ -269,11 +269,11 @@ class Google_Service_Dns extends Google_Service
269
  * The "changes" collection of methods.
270
  * Typical usage is:
271
  * <code>
272
- * $dnsService = new Google_Service_Dns(...);
273
  * $changes = $dnsService->changes;
274
  * </code>
275
  */
276
- class Google_Service_Dns_Changes_Resource extends Google_Service_Resource
277
  {
278
 
279
  /**
@@ -283,15 +283,15 @@ class Google_Service_Dns_Changes_Resource extends Google_Service_Resource
283
  * Identifies the project addressed by this request.
284
  * @param string $managedZone
285
  * Identifies the managed zone addressed by this request. Can be the managed zone name or id.
286
- * @param Google_Change $postBody
287
  * @param array $optParams Optional parameters.
288
- * @return Google_Service_Dns_Change
289
  */
290
- public function create($project, $managedZone, Google_Service_Dns_Change $postBody, $optParams = array())
291
  {
292
  $params = array('project' => $project, 'managedZone' => $managedZone, 'postBody' => $postBody);
293
  $params = array_merge($params, $optParams);
294
- return $this->call('create', array($params), "Google_Service_Dns_Change");
295
  }
296
  /**
297
  * Fetch the representation of an existing Change. (changes.get)
@@ -303,13 +303,13 @@ class Google_Service_Dns_Changes_Resource extends Google_Service_Resource
303
  * @param string $changeId
304
  * The identifier of the requested change, from a previous ResourceRecordSetsChangeResponse.
305
  * @param array $optParams Optional parameters.
306
- * @return Google_Service_Dns_Change
307
  */
308
  public function get($project, $managedZone, $changeId, $optParams = array())
309
  {
310
  $params = array('project' => $project, 'managedZone' => $managedZone, 'changeId' => $changeId);
311
  $params = array_merge($params, $optParams);
312
- return $this->call('get', array($params), "Google_Service_Dns_Change");
313
  }
314
  /**
315
  * Enumerate Changes to a ResourceRecordSet collection. (changes.listChanges)
@@ -330,13 +330,13 @@ class Google_Service_Dns_Changes_Resource extends Google_Service_Resource
330
  * Sorting criterion. The only supported value is change sequence.
331
  * @opt_param string sortOrder
332
  * Sorting order direction: 'ascending' or 'descending'.
333
- * @return Google_Service_Dns_ChangesListResponse
334
  */
335
  public function listChanges($project, $managedZone, $optParams = array())
336
  {
337
  $params = array('project' => $project, 'managedZone' => $managedZone);
338
  $params = array_merge($params, $optParams);
339
- return $this->call('list', array($params), "Google_Service_Dns_ChangesListResponse");
340
  }
341
  }
342
 
@@ -344,11 +344,11 @@ class Google_Service_Dns_Changes_Resource extends Google_Service_Resource
344
  * The "managedZones" collection of methods.
345
  * Typical usage is:
346
  * <code>
347
- * $dnsService = new Google_Service_Dns(...);
348
  * $managedZones = $dnsService->managedZones;
349
  * </code>
350
  */
351
- class Google_Service_Dns_ManagedZones_Resource extends Google_Service_Resource
352
  {
353
 
354
  /**
@@ -356,15 +356,15 @@ class Google_Service_Dns_ManagedZones_Resource extends Google_Service_Resource
356
  *
357
  * @param string $project
358
  * Identifies the project addressed by this request.
359
- * @param Google_ManagedZone $postBody
360
  * @param array $optParams Optional parameters.
361
- * @return Google_Service_Dns_ManagedZone
362
  */
363
- public function create($project, Google_Service_Dns_ManagedZone $postBody, $optParams = array())
364
  {
365
  $params = array('project' => $project, 'postBody' => $postBody);
366
  $params = array_merge($params, $optParams);
367
- return $this->call('create', array($params), "Google_Service_Dns_ManagedZone");
368
  }
369
  /**
370
  * Delete a previously created ManagedZone. (managedZones.delete)
@@ -389,13 +389,13 @@ class Google_Service_Dns_ManagedZones_Resource extends Google_Service_Resource
389
  * @param string $managedZone
390
  * Identifies the managed zone addressed by this request. Can be the managed zone name or id.
391
  * @param array $optParams Optional parameters.
392
- * @return Google_Service_Dns_ManagedZone
393
  */
394
  public function get($project, $managedZone, $optParams = array())
395
  {
396
  $params = array('project' => $project, 'managedZone' => $managedZone);
397
  $params = array_merge($params, $optParams);
398
- return $this->call('get', array($params), "Google_Service_Dns_ManagedZone");
399
  }
400
  /**
401
  * Enumerate ManagedZones that have been created but not yet deleted.
@@ -411,13 +411,13 @@ class Google_Service_Dns_ManagedZones_Resource extends Google_Service_Resource
411
  * @opt_param int maxResults
412
  * Optional. Maximum number of results to be returned. If unspecified, the server will decide how
413
  * many results to return.
414
- * @return Google_Service_Dns_ManagedZonesListResponse
415
  */
416
  public function listManagedZones($project, $optParams = array())
417
  {
418
  $params = array('project' => $project);
419
  $params = array_merge($params, $optParams);
420
- return $this->call('list', array($params), "Google_Service_Dns_ManagedZonesListResponse");
421
  }
422
  }
423
 
@@ -425,11 +425,11 @@ class Google_Service_Dns_ManagedZones_Resource extends Google_Service_Resource
425
  * The "projects" collection of methods.
426
  * Typical usage is:
427
  * <code>
428
- * $dnsService = new Google_Service_Dns(...);
429
  * $projects = $dnsService->projects;
430
  * </code>
431
  */
432
- class Google_Service_Dns_Projects_Resource extends Google_Service_Resource
433
  {
434
 
435
  /**
@@ -438,13 +438,13 @@ class Google_Service_Dns_Projects_Resource extends Google_Service_Resource
438
  * @param string $project
439
  * Identifies the project addressed by this request.
440
  * @param array $optParams Optional parameters.
441
- * @return Google_Service_Dns_Project
442
  */
443
  public function get($project, $optParams = array())
444
  {
445
  $params = array('project' => $project);
446
  $params = array_merge($params, $optParams);
447
- return $this->call('get', array($params), "Google_Service_Dns_Project");
448
  }
449
  }
450
 
@@ -452,11 +452,11 @@ class Google_Service_Dns_Projects_Resource extends Google_Service_Resource
452
  * The "resourceRecordSets" collection of methods.
453
  * Typical usage is:
454
  * <code>
455
- * $dnsService = new Google_Service_Dns(...);
456
  * $resourceRecordSets = $dnsService->resourceRecordSets;
457
  * </code>
458
  */
459
- class Google_Service_Dns_ResourceRecordSets_Resource extends Google_Service_Resource
460
  {
461
 
462
  /**
@@ -480,24 +480,24 @@ class Google_Service_Dns_ResourceRecordSets_Resource extends Google_Service_Reso
480
  * @opt_param string type
481
  * Restricts the list to return only records of this type. If present, the "name" parameter must
482
  * also be present.
483
- * @return Google_Service_Dns_ResourceRecordSetsListResponse
484
  */
485
  public function listResourceRecordSets($project, $managedZone, $optParams = array())
486
  {
487
  $params = array('project' => $project, 'managedZone' => $managedZone);
488
  $params = array_merge($params, $optParams);
489
- return $this->call('list', array($params), "Google_Service_Dns_ResourceRecordSetsListResponse");
490
  }
491
  }
492
 
493
 
494
 
495
 
496
- class Google_Service_Dns_Change extends Google_Collection
497
  {
498
- protected $additionsType = 'Google_Service_Dns_ResourceRecordSet';
499
  protected $additionsDataType = 'array';
500
- protected $deletionsType = 'Google_Service_Dns_ResourceRecordSet';
501
  protected $deletionsDataType = 'array';
502
  public $id;
503
  public $kind;
@@ -565,9 +565,9 @@ class Google_Service_Dns_Change extends Google_Collection
565
  }
566
  }
567
 
568
- class Google_Service_Dns_ChangesListResponse extends Google_Collection
569
  {
570
- protected $changesType = 'Google_Service_Dns_Change';
571
  protected $changesDataType = 'array';
572
  public $kind;
573
  public $nextPageToken;
@@ -603,7 +603,7 @@ class Google_Service_Dns_ChangesListResponse extends Google_Collection
603
  }
604
  }
605
 
606
- class Google_Service_Dns_ManagedZone extends Google_Collection
607
  {
608
  public $creationTime;
609
  public $description;
@@ -684,10 +684,10 @@ class Google_Service_Dns_ManagedZone extends Google_Collection
684
  }
685
  }
686
 
687
- class Google_Service_Dns_ManagedZonesListResponse extends Google_Collection
688
  {
689
  public $kind;
690
- protected $managedZonesType = 'Google_Service_Dns_ManagedZone';
691
  protected $managedZonesDataType = 'array';
692
  public $nextPageToken;
693
 
@@ -722,12 +722,12 @@ class Google_Service_Dns_ManagedZonesListResponse extends Google_Collection
722
  }
723
  }
724
 
725
- class Google_Service_Dns_Project extends Google_Model
726
  {
727
  public $id;
728
  public $kind;
729
  public $number;
730
- protected $quotaType = 'Google_Service_Dns_Quota';
731
  protected $quotaDataType = '';
732
 
733
  public function setId($id)
@@ -760,7 +760,7 @@ class Google_Service_Dns_Project extends Google_Model
760
  return $this->number;
761
  }
762
 
763
- public function setQuota(Google_Service_Dns_Quota $quota)
764
  {
765
  $this->quota = $quota;
766
  }
@@ -771,7 +771,7 @@ class Google_Service_Dns_Project extends Google_Model
771
  }
772
  }
773
 
774
- class Google_Service_Dns_Quota extends Google_Model
775
  {
776
  public $kind;
777
  public $managedZones;
@@ -852,7 +852,7 @@ class Google_Service_Dns_Quota extends Google_Model
852
  }
853
  }
854
 
855
- class Google_Service_Dns_ResourceRecordSet extends Google_Collection
856
  {
857
  public $kind;
858
  public $name;
@@ -911,11 +911,11 @@ class Google_Service_Dns_ResourceRecordSet extends Google_Collection
911
  }
912
  }
913
 
914
- class Google_Service_Dns_ResourceRecordSetsListResponse extends Google_Collection
915
  {
916
  public $kind;
917
  public $nextPageToken;
918
- protected $rrsetsType = 'Google_Service_Dns_ResourceRecordSet';
919
  protected $rrsetsDataType = 'array';
920
 
921
  public function setKind($kind)
29
  *
30
  * @author Google, Inc.
31
  */
32
+ class GoogleGAL_Service_Dns extends GoogleGAL_Service
33
  {
34
  /** View and manage your data across Google Cloud Platform services. */
35
  const CLOUD_PLATFORM = "https://www.googleapis.com/auth/cloud-platform";
47
  /**
48
  * Constructs the internal representation of the Dns service.
49
  *
50
+ * @param GoogleGAL_Client $client
51
  */
52
+ public function __construct(GoogleGAL_Client $client)
53
  {
54
  parent::__construct($client);
55
  $this->servicePath = 'dns/v1beta1/projects/';
56
  $this->version = 'v1beta1';
57
  $this->serviceName = 'dns';
58
 
59
+ $this->changes = new GoogleGAL_Service_Dns_Changes_Resource(
60
  $this,
61
  $this->serviceName,
62
  'changes',
132
  )
133
  )
134
  );
135
+ $this->managedZones = new GoogleGAL_Service_Dns_ManagedZones_Resource(
136
  $this,
137
  $this->serviceName,
138
  'managedZones',
200
  )
201
  )
202
  );
203
+ $this->projects = new GoogleGAL_Service_Dns_Projects_Resource(
204
  $this,
205
  $this->serviceName,
206
  'projects',
220
  )
221
  )
222
  );
223
+ $this->resourceRecordSets = new GoogleGAL_Service_Dns_ResourceRecordSets_Resource(
224
  $this,
225
  $this->serviceName,
226
  'resourceRecordSets',
269
  * The "changes" collection of methods.
270
  * Typical usage is:
271
  * <code>
272
+ * $dnsService = new GoogleGAL_Service_Dns(...);
273
  * $changes = $dnsService->changes;
274
  * </code>
275
  */
276
+ class GoogleGAL_Service_Dns_Changes_Resource extends GoogleGAL_Service_Resource
277
  {
278
 
279
  /**
283
  * Identifies the project addressed by this request.
284
  * @param string $managedZone
285
  * Identifies the managed zone addressed by this request. Can be the managed zone name or id.
286
+ * @param GoogleGAL_Change $postBody
287
  * @param array $optParams Optional parameters.
288
+ * @return GoogleGAL_Service_Dns_Change
289
  */
290
+ public function create($project, $managedZone, GoogleGAL_Service_Dns_Change $postBody, $optParams = array())
291
  {
292
  $params = array('project' => $project, 'managedZone' => $managedZone, 'postBody' => $postBody);
293
  $params = array_merge($params, $optParams);
294
+ return $this->call('create', array($params), "GoogleGAL_Service_Dns_Change");
295
  }
296
  /**
297
  * Fetch the representation of an existing Change. (changes.get)
303
  * @param string $changeId
304
  * The identifier of the requested change, from a previous ResourceRecordSetsChangeResponse.
305
  * @param array $optParams Optional parameters.
306
+ * @return GoogleGAL_Service_Dns_Change
307
  */
308
  public function get($project, $managedZone, $changeId, $optParams = array())
309
  {
310
  $params = array('project' => $project, 'managedZone' => $managedZone, 'changeId' => $changeId);
311
  $params = array_merge($params, $optParams);
312
+ return $this->call('get', array($params), "GoogleGAL_Service_Dns_Change");
313
  }
314
  /**
315
  * Enumerate Changes to a ResourceRecordSet collection. (changes.listChanges)
330
  * Sorting criterion. The only supported value is change sequence.
331
  * @opt_param string sortOrder
332
  * Sorting order direction: 'ascending' or 'descending'.
333
+ * @return GoogleGAL_Service_Dns_ChangesListResponse
334
  */
335
  public function listChanges($project, $managedZone, $optParams = array())
336
  {
337
  $params = array('project' => $project, 'managedZone' => $managedZone);
338
  $params = array_merge($params, $optParams);
339
+ return $this->call('list', array($params), "GoogleGAL_Service_Dns_ChangesListResponse");
340
  }
341
  }
342
 
344
  * The "managedZones" collection of methods.
345
  * Typical usage is:
346
  * <code>
347
+ * $dnsService = new GoogleGAL_Service_Dns(...);
348
  * $managedZones = $dnsService->managedZones;
349
  * </code>
350
  */
351
+ class GoogleGAL_Service_Dns_ManagedZones_Resource extends GoogleGAL_Service_Resource
352
  {
353
 
354
  /**
356
  *
357
  * @param string $project
358
  * Identifies the project addressed by this request.
359
+ * @param GoogleGAL_ManagedZone $postBody
360
  * @param array $optParams Optional parameters.
361
+ * @return GoogleGAL_Service_Dns_ManagedZone
362
  */
363
+ public function create($project, GoogleGAL_Service_Dns_ManagedZone $postBody, $optParams = array())
364
  {
365
  $params = array('project' => $project, 'postBody' => $postBody);
366
  $params = array_merge($params, $optParams);
367
+ return $this->call('create', array($params), "GoogleGAL_Service_Dns_ManagedZone");
368
  }
369
  /**
370
  * Delete a previously created ManagedZone. (managedZones.delete)
389
  * @param string $managedZone
390
  * Identifies the managed zone addressed by this request. Can be the managed zone name or id.
391
  * @param array $optParams Optional parameters.
392
+ * @return GoogleGAL_Service_Dns_ManagedZone
393
  */
394
  public function get($project, $managedZone, $optParams = array())
395
  {
396
  $params = array('project' => $project, 'managedZone' => $managedZone);
397
  $params = array_merge($params, $optParams);
398
+ return $this->call('get', array($params), "GoogleGAL_Service_Dns_ManagedZone");
399
  }
400
  /**
401
  * Enumerate ManagedZones that have been created but not yet deleted.
411
  * @opt_param int maxResults
412
  * Optional. Maximum number of results to be returned. If unspecified, the server will decide how
413
  * many results to return.
414
+ * @return GoogleGAL_Service_Dns_ManagedZonesListResponse
415
  */
416
  public function listManagedZones($project, $optParams = array())
417
  {
418
  $params = array('project' => $project);
419
  $params = array_merge($params, $optParams);
420
+ return $this->call('list', array($params), "GoogleGAL_Service_Dns_ManagedZonesListResponse");
421
  }
422
  }
423
 
425
  * The "projects" collection of methods.
426
  * Typical usage is:
427
  * <code>
428
+ * $dnsService = new GoogleGAL_Service_Dns(...);
429
  * $projects = $dnsService->projects;
430
  * </code>
431
  */
432
+ class GoogleGAL_Service_Dns_Projects_Resource extends GoogleGAL_Service_Resource
433
  {
434
 
435
  /**
438
  * @param string $project
439
  * Identifies the project addressed by this request.
440
  * @param array $optParams Optional parameters.
441
+ * @return GoogleGAL_Service_Dns_Project
442
  */
443
  public function get($project, $optParams = array())
444
  {
445
  $params = array('project' => $project);
446
  $params = array_merge($params, $optParams);
447
+ return $this->call('get', array($params), "GoogleGAL_Service_Dns_Project");
448
  }
449
  }
450
 
452
  * The "resourceRecordSets" collection of methods.
453
  * Typical usage is:
454
  * <code>
455
+ * $dnsService = new GoogleGAL_Service_Dns(...);
456
  * $resourceRecordSets = $dnsService->resourceRecordSets;
457
  * </code>
458
  */
459
+ class GoogleGAL_Service_Dns_ResourceRecordSets_Resource extends GoogleGAL_Service_Resource
460
  {
461
 
462
  /**
480
  * @opt_param string type
481
  * Restricts the list to return only records of this type. If present, the "name" parameter must
482
  * also be present.
483
+ * @return GoogleGAL_Service_Dns_ResourceRecordSetsListResponse
484
  */
485
  public function listResourceRecordSets($project, $managedZone, $optParams = array())
486
  {
487
  $params = array('project' => $project, 'managedZone' => $managedZone);
488
  $params = array_merge($params, $optParams);
489
+ return $this->call('list', array($params), "GoogleGAL_Service_Dns_ResourceRecordSetsListResponse");
490
  }
491
  }
492
 
493
 
494
 
495
 
496
+ class GoogleGAL_Service_Dns_Change extends GoogleGAL_Collection
497
  {
498
+ protected $additionsType = 'GoogleGAL_Service_Dns_ResourceRecordSet';
499
  protected $additionsDataType = 'array';
500
+ protected $deletionsType = 'GoogleGAL_Service_Dns_ResourceRecordSet';
501
  protected $deletionsDataType = 'array';
502
  public $id;
503
  public $kind;
565
  }
566
  }
567
 
568
+ class GoogleGAL_Service_Dns_ChangesListResponse extends GoogleGAL_Collection
569
  {
570
+ protected $changesType = 'GoogleGAL_Service_Dns_Change';
571
  protected $changesDataType = 'array';
572
  public $kind;
573
  public $nextPageToken;
603
  }
604
  }
605
 
606
+ class GoogleGAL_Service_Dns_ManagedZone extends GoogleGAL_Collection
607
  {
608
  public $creationTime;
609
  public $description;
684
  }
685
  }
686
 
687
+ class GoogleGAL_Service_Dns_ManagedZonesListResponse extends GoogleGAL_Collection
688
  {
689
  public $kind;
690
+ protected $managedZonesType = 'GoogleGAL_Service_Dns_ManagedZone';
691
  protected $managedZonesDataType = 'array';
692
  public $nextPageToken;
693
 
722
  }
723
  }
724
 
725
+ class GoogleGAL_Service_Dns_Project extends GoogleGAL_Model
726
  {
727
  public $id;
728
  public $kind;
729
  public $number;
730
+ protected $quotaType = 'GoogleGAL_Service_Dns_Quota';
731
  protected $quotaDataType = '';
732
 
733
  public function setId($id)
760
  return $this->number;
761
  }
762
 
763
+ public function setQuota(GoogleGAL_Service_Dns_Quota $quota)
764
  {
765
  $this->quota = $quota;
766
  }
771
  }
772
  }
773
 
774
+ class GoogleGAL_Service_Dns_Quota extends GoogleGAL_Model
775
  {
776
  public $kind;
777
  public $managedZones;
852
  }
853
  }
854
 
855
+ class GoogleGAL_Service_Dns_ResourceRecordSet extends GoogleGAL_Collection
856
  {
857
  public $kind;
858
  public $name;
911
  }
912
  }
913
 
914
+ class GoogleGAL_Service_Dns_ResourceRecordSetsListResponse extends GoogleGAL_Collection
915
  {
916
  public $kind;
917
  public $nextPageToken;
918
+ protected $rrsetsType = 'GoogleGAL_Service_Dns_ResourceRecordSet';
919
  protected $rrsetsDataType = 'array';
920
 
921
  public function setKind($kind)
core/Google/Service/DoubleClickBidManager.php CHANGED
@@ -29,7 +29,7 @@
29
  *
30
  * @author Google, Inc.
31
  */
32
- class Google_Service_DoubleClickBidManager extends Google_Service
33
  {
34
 
35
 
@@ -42,16 +42,16 @@ class Google_Service_DoubleClickBidManager extends Google_Service
42
  * Constructs the internal representation of the DoubleClickBidManager
43
  * service.
44
  *
45
- * @param Google_Client $client
46
  */
47
- public function __construct(Google_Client $client)
48
  {
49
  parent::__construct($client);
50
  $this->servicePath = 'doubleclickbidmanager/v1/';
51
  $this->version = 'v1';
52
  $this->serviceName = 'doubleclickbidmanager';
53
 
54
- $this->lineitems = new Google_Service_DoubleClickBidManager_Lineitems_Resource(
55
  $this,
56
  $this->serviceName,
57
  'lineitems',
@@ -69,7 +69,7 @@ class Google_Service_DoubleClickBidManager extends Google_Service
69
  )
70
  )
71
  );
72
- $this->queries = new Google_Service_DoubleClickBidManager_Queries_Resource(
73
  $this,
74
  $this->serviceName,
75
  'queries',
@@ -117,7 +117,7 @@ class Google_Service_DoubleClickBidManager extends Google_Service
117
  )
118
  )
119
  );
120
- $this->reports = new Google_Service_DoubleClickBidManager_Reports_Resource(
121
  $this,
122
  $this->serviceName,
123
  'reports',
@@ -145,38 +145,38 @@ class Google_Service_DoubleClickBidManager extends Google_Service
145
  * The "lineitems" collection of methods.
146
  * Typical usage is:
147
  * <code>
148
- * $doubleclickbidmanagerService = new Google_Service_DoubleClickBidManager(...);
149
  * $lineitems = $doubleclickbidmanagerService->lineitems;
150
  * </code>
151
  */
152
- class Google_Service_DoubleClickBidManager_Lineitems_Resource extends Google_Service_Resource
153
  {
154
 
155
  /**
156
  * Retrieves line items in CSV format. (lineitems.downloadlineitems)
157
  *
158
- * @param Google_DownloadLineItemsRequest $postBody
159
  * @param array $optParams Optional parameters.
160
- * @return Google_Service_DoubleClickBidManager_DownloadLineItemsResponse
161
  */
162
- public function downloadlineitems(Google_Service_DoubleClickBidManager_DownloadLineItemsRequest $postBody, $optParams = array())
163
  {
164
  $params = array('postBody' => $postBody);
165
  $params = array_merge($params, $optParams);
166
- return $this->call('downloadlineitems', array($params), "Google_Service_DoubleClickBidManager_DownloadLineItemsResponse");
167
  }
168
  /**
169
  * Uploads line items in CSV format. (lineitems.uploadlineitems)
170
  *
171
- * @param Google_UploadLineItemsRequest $postBody
172
  * @param array $optParams Optional parameters.
173
- * @return Google_Service_DoubleClickBidManager_UploadLineItemsResponse
174
  */
175
- public function uploadlineitems(Google_Service_DoubleClickBidManager_UploadLineItemsRequest $postBody, $optParams = array())
176
  {
177
  $params = array('postBody' => $postBody);
178
  $params = array_merge($params, $optParams);
179
- return $this->call('uploadlineitems', array($params), "Google_Service_DoubleClickBidManager_UploadLineItemsResponse");
180
  }
181
  }
182
 
@@ -184,25 +184,25 @@ class Google_Service_DoubleClickBidManager_Lineitems_Resource extends Google_Ser
184
  * The "queries" collection of methods.
185
  * Typical usage is:
186
  * <code>
187
- * $doubleclickbidmanagerService = new Google_Service_DoubleClickBidManager(...);
188
  * $queries = $doubleclickbidmanagerService->queries;
189
  * </code>
190
  */
191
- class Google_Service_DoubleClickBidManager_Queries_Resource extends Google_Service_Resource
192
  {
193
 
194
  /**
195
  * Creates a query. (queries.createquery)
196
  *
197
- * @param Google_Query $postBody
198
  * @param array $optParams Optional parameters.
199
- * @return Google_Service_DoubleClickBidManager_Query
200
  */
201
- public function createquery(Google_Service_DoubleClickBidManager_Query $postBody, $optParams = array())
202
  {
203
  $params = array('postBody' => $postBody);
204
  $params = array_merge($params, $optParams);
205
- return $this->call('createquery', array($params), "Google_Service_DoubleClickBidManager_Query");
206
  }
207
  /**
208
  * Deletes a stored query as well as the associated stored reports.
@@ -224,35 +224,35 @@ class Google_Service_DoubleClickBidManager_Queries_Resource extends Google_Servi
224
  * @param string $queryId
225
  * Query ID to retrieve.
226
  * @param array $optParams Optional parameters.
227
- * @return Google_Service_DoubleClickBidManager_Query
228
  */
229
  public function getquery($queryId, $optParams = array())
230
  {
231
  $params = array('queryId' => $queryId);
232
  $params = array_merge($params, $optParams);
233
- return $this->call('getquery', array($params), "Google_Service_DoubleClickBidManager_Query");
234
  }
235
  /**
236
  * Retrieves stored queries. (queries.listqueries)
237
  *
238
  * @param array $optParams Optional parameters.
239
- * @return Google_Service_DoubleClickBidManager_ListQueriesResponse
240
  */
241
  public function listqueries($optParams = array())
242
  {
243
  $params = array();
244
  $params = array_merge($params, $optParams);
245
- return $this->call('listqueries', array($params), "Google_Service_DoubleClickBidManager_ListQueriesResponse");
246
  }
247
  /**
248
  * Runs a stored query to generate a report. (queries.runquery)
249
  *
250
  * @param string $queryId
251
  * Query ID to run.
252
- * @param Google_RunQueryRequest $postBody
253
  * @param array $optParams Optional parameters.
254
  */
255
- public function runquery($queryId, Google_Service_DoubleClickBidManager_RunQueryRequest $postBody, $optParams = array())
256
  {
257
  $params = array('queryId' => $queryId, 'postBody' => $postBody);
258
  $params = array_merge($params, $optParams);
@@ -264,11 +264,11 @@ class Google_Service_DoubleClickBidManager_Queries_Resource extends Google_Servi
264
  * The "reports" collection of methods.
265
  * Typical usage is:
266
  * <code>
267
- * $doubleclickbidmanagerService = new Google_Service_DoubleClickBidManager(...);
268
  * $reports = $doubleclickbidmanagerService->reports;
269
  * </code>
270
  */
271
- class Google_Service_DoubleClickBidManager_Reports_Resource extends Google_Service_Resource
272
  {
273
 
274
  /**
@@ -277,20 +277,20 @@ class Google_Service_DoubleClickBidManager_Reports_Resource extends Google_Servi
277
  * @param string $queryId
278
  * Query ID with which the reports are associated.
279
  * @param array $optParams Optional parameters.
280
- * @return Google_Service_DoubleClickBidManager_ListReportsResponse
281
  */
282
  public function listreports($queryId, $optParams = array())
283
  {
284
  $params = array('queryId' => $queryId);
285
  $params = array_merge($params, $optParams);
286
- return $this->call('listreports', array($params), "Google_Service_DoubleClickBidManager_ListReportsResponse");
287
  }
288
  }
289
 
290
 
291
 
292
 
293
- class Google_Service_DoubleClickBidManager_DownloadLineItemsRequest extends Google_Collection
294
  {
295
  public $filterIds;
296
  public $filterType;
@@ -327,7 +327,7 @@ class Google_Service_DoubleClickBidManager_DownloadLineItemsRequest extends Goog
327
  }
328
  }
329
 
330
- class Google_Service_DoubleClickBidManager_DownloadLineItemsResponse extends Google_Model
331
  {
332
  public $lineItems;
333
 
@@ -342,7 +342,7 @@ class Google_Service_DoubleClickBidManager_DownloadLineItemsResponse extends Goo
342
  }
343
  }
344
 
345
- class Google_Service_DoubleClickBidManager_FilterPair extends Google_Model
346
  {
347
  public $type;
348
  public $value;
@@ -368,10 +368,10 @@ class Google_Service_DoubleClickBidManager_FilterPair extends Google_Model
368
  }
369
  }
370
 
371
- class Google_Service_DoubleClickBidManager_ListQueriesResponse extends Google_Collection
372
  {
373
  public $kind;
374
- protected $queriesType = 'Google_Service_DoubleClickBidManager_Query';
375
  protected $queriesDataType = 'array';
376
 
377
  public function setKind($kind)
@@ -395,10 +395,10 @@ class Google_Service_DoubleClickBidManager_ListQueriesResponse extends Google_Co
395
  }
396
  }
397
 
398
- class Google_Service_DoubleClickBidManager_ListReportsResponse extends Google_Collection
399
  {
400
  public $kind;
401
- protected $reportsType = 'Google_Service_DoubleClickBidManager_Report';
402
  protected $reportsDataType = 'array';
403
 
404
  public function setKind($kind)
@@ -422,9 +422,9 @@ class Google_Service_DoubleClickBidManager_ListReportsResponse extends Google_Co
422
  }
423
  }
424
 
425
- class Google_Service_DoubleClickBidManager_Parameters extends Google_Collection
426
  {
427
- protected $filtersType = 'Google_Service_DoubleClickBidManager_FilterPair';
428
  protected $filtersDataType = 'array';
429
  public $groupBys;
430
  public $includeInviteData;
@@ -482,17 +482,17 @@ class Google_Service_DoubleClickBidManager_Parameters extends Google_Collection
482
  }
483
  }
484
 
485
- class Google_Service_DoubleClickBidManager_Query extends Google_Model
486
  {
487
  public $kind;
488
- protected $metadataType = 'Google_Service_DoubleClickBidManager_QueryMetadata';
489
  protected $metadataDataType = '';
490
- protected $paramsType = 'Google_Service_DoubleClickBidManager_Parameters';
491
  protected $paramsDataType = '';
492
  public $queryId;
493
  public $reportDataEndTimeMs;
494
  public $reportDataStartTimeMs;
495
- protected $scheduleType = 'Google_Service_DoubleClickBidManager_QuerySchedule';
496
  protected $scheduleDataType = '';
497
  public $timezoneCode;
498
 
@@ -506,7 +506,7 @@ class Google_Service_DoubleClickBidManager_Query extends Google_Model
506
  return $this->kind;
507
  }
508
 
509
- public function setMetadata(Google_Service_DoubleClickBidManager_QueryMetadata $metadata)
510
  {
511
  $this->metadata = $metadata;
512
  }
@@ -516,7 +516,7 @@ class Google_Service_DoubleClickBidManager_Query extends Google_Model
516
  return $this->metadata;
517
  }
518
 
519
- public function setParams(Google_Service_DoubleClickBidManager_Parameters $params)
520
  {
521
  $this->params = $params;
522
  }
@@ -556,7 +556,7 @@ class Google_Service_DoubleClickBidManager_Query extends Google_Model
556
  return $this->reportDataStartTimeMs;
557
  }
558
 
559
- public function setSchedule(Google_Service_DoubleClickBidManager_QuerySchedule $schedule)
560
  {
561
  $this->schedule = $schedule;
562
  }
@@ -577,7 +577,7 @@ class Google_Service_DoubleClickBidManager_Query extends Google_Model
577
  }
578
  }
579
 
580
- class Google_Service_DoubleClickBidManager_QueryMetadata extends Google_Collection
581
  {
582
  public $dataRange;
583
  public $format;
@@ -691,7 +691,7 @@ class Google_Service_DoubleClickBidManager_QueryMetadata extends Google_Collecti
691
  }
692
  }
693
 
694
- class Google_Service_DoubleClickBidManager_QuerySchedule extends Google_Model
695
  {
696
  public $endTimeMs;
697
  public $frequency;
@@ -739,16 +739,16 @@ class Google_Service_DoubleClickBidManager_QuerySchedule extends Google_Model
739
  }
740
  }
741
 
742
- class Google_Service_DoubleClickBidManager_Report extends Google_Model
743
  {
744
- protected $keyType = 'Google_Service_DoubleClickBidManager_ReportKey';
745
  protected $keyDataType = '';
746
- protected $metadataType = 'Google_Service_DoubleClickBidManager_ReportMetadata';
747
  protected $metadataDataType = '';
748
- protected $paramsType = 'Google_Service_DoubleClickBidManager_Parameters';
749
  protected $paramsDataType = '';
750
 
751
- public function setKey(Google_Service_DoubleClickBidManager_ReportKey $key)
752
  {
753
  $this->key = $key;
754
  }
@@ -758,7 +758,7 @@ class Google_Service_DoubleClickBidManager_Report extends Google_Model
758
  return $this->key;
759
  }
760
 
761
- public function setMetadata(Google_Service_DoubleClickBidManager_ReportMetadata $metadata)
762
  {
763
  $this->metadata = $metadata;
764
  }
@@ -768,7 +768,7 @@ class Google_Service_DoubleClickBidManager_Report extends Google_Model
768
  return $this->metadata;
769
  }
770
 
771
- public function setParams(Google_Service_DoubleClickBidManager_Parameters $params)
772
  {
773
  $this->params = $params;
774
  }
@@ -779,7 +779,7 @@ class Google_Service_DoubleClickBidManager_Report extends Google_Model
779
  }
780
  }
781
 
782
- class Google_Service_DoubleClickBidManager_ReportFailure extends Google_Model
783
  {
784
  public $errorCode;
785
 
@@ -794,7 +794,7 @@ class Google_Service_DoubleClickBidManager_ReportFailure extends Google_Model
794
  }
795
  }
796
 
797
- class Google_Service_DoubleClickBidManager_ReportKey extends Google_Model
798
  {
799
  public $queryId;
800
  public $reportId;
@@ -820,12 +820,12 @@ class Google_Service_DoubleClickBidManager_ReportKey extends Google_Model
820
  }
821
  }
822
 
823
- class Google_Service_DoubleClickBidManager_ReportMetadata extends Google_Model
824
  {
825
  public $googleCloudStoragePath;
826
  public $reportDataEndTimeMs;
827
  public $reportDataStartTimeMs;
828
- protected $statusType = 'Google_Service_DoubleClickBidManager_ReportStatus';
829
  protected $statusDataType = '';
830
 
831
  public function setGoogleCloudStoragePath($googleCloudStoragePath)
@@ -858,7 +858,7 @@ class Google_Service_DoubleClickBidManager_ReportMetadata extends Google_Model
858
  return $this->reportDataStartTimeMs;
859
  }
860
 
861
- public function setStatus(Google_Service_DoubleClickBidManager_ReportStatus $status)
862
  {
863
  $this->status = $status;
864
  }
@@ -869,15 +869,15 @@ class Google_Service_DoubleClickBidManager_ReportMetadata extends Google_Model
869
  }
870
  }
871
 
872
- class Google_Service_DoubleClickBidManager_ReportStatus extends Google_Model
873
  {
874
- protected $failureType = 'Google_Service_DoubleClickBidManager_ReportFailure';
875
  protected $failureDataType = '';
876
  public $finishTimeMs;
877
  public $format;
878
  public $state;
879
 
880
- public function setFailure(Google_Service_DoubleClickBidManager_ReportFailure $failure)
881
  {
882
  $this->failure = $failure;
883
  }
@@ -918,7 +918,7 @@ class Google_Service_DoubleClickBidManager_ReportStatus extends Google_Model
918
  }
919
  }
920
 
921
- class Google_Service_DoubleClickBidManager_RowStatus extends Google_Collection
922
  {
923
  public $changed;
924
  public $entityId;
@@ -988,7 +988,7 @@ class Google_Service_DoubleClickBidManager_RowStatus extends Google_Collection
988
  }
989
  }
990
 
991
- class Google_Service_DoubleClickBidManager_RunQueryRequest extends Google_Model
992
  {
993
  public $dataRange;
994
  public $reportDataEndTimeMs;
@@ -1036,7 +1036,7 @@ class Google_Service_DoubleClickBidManager_RunQueryRequest extends Google_Model
1036
  }
1037
  }
1038
 
1039
- class Google_Service_DoubleClickBidManager_UploadLineItemsRequest extends Google_Model
1040
  {
1041
  public $dryRun;
1042
  public $format;
@@ -1073,12 +1073,12 @@ class Google_Service_DoubleClickBidManager_UploadLineItemsRequest extends Google
1073
  }
1074
  }
1075
 
1076
- class Google_Service_DoubleClickBidManager_UploadLineItemsResponse extends Google_Model
1077
  {
1078
- protected $uploadStatusType = 'Google_Service_DoubleClickBidManager_UploadStatus';
1079
  protected $uploadStatusDataType = '';
1080
 
1081
- public function setUploadStatus(Google_Service_DoubleClickBidManager_UploadStatus $uploadStatus)
1082
  {
1083
  $this->uploadStatus = $uploadStatus;
1084
  }
@@ -1089,10 +1089,10 @@ class Google_Service_DoubleClickBidManager_UploadLineItemsResponse extends Googl
1089
  }
1090
  }
1091
 
1092
- class Google_Service_DoubleClickBidManager_UploadStatus extends Google_Collection
1093
  {
1094
  public $errors;
1095
- protected $rowStatusType = 'Google_Service_DoubleClickBidManager_RowStatus';
1096
  protected $rowStatusDataType = 'array';
1097
 
1098
  public function setErrors($errors)
29
  *
30
  * @author Google, Inc.
31
  */
32
+ class GoogleGAL_Service_DoubleClickBidManager extends GoogleGAL_Service
33
  {
34
 
35
 
42
  * Constructs the internal representation of the DoubleClickBidManager
43
  * service.
44
  *
45
+ * @param GoogleGAL_Client $client
46
  */
47
+ public function __construct(GoogleGAL_Client $client)
48
  {
49
  parent::__construct($client);
50
  $this->servicePath = 'doubleclickbidmanager/v1/';
51
  $this->version = 'v1';
52
  $this->serviceName = 'doubleclickbidmanager';
53
 
54
+ $this->lineitems = new GoogleGAL_Service_DoubleClickBidManager_Lineitems_Resource(
55
  $this,
56
  $this->serviceName,
57
  'lineitems',
69
  )
70
  )
71
  );
72
+ $this->queries = new GoogleGAL_Service_DoubleClickBidManager_Queries_Resource(
73
  $this,
74
  $this->serviceName,
75
  'queries',
117
  )
118
  )
119
  );
120
+ $this->reports = new GoogleGAL_Service_DoubleClickBidManager_Reports_Resource(
121
  $this,
122
  $this->serviceName,
123
  'reports',
145
  * The "lineitems" collection of methods.
146
  * Typical usage is:
147
  * <code>
148
+ * $doubleclickbidmanagerService = new GoogleGAL_Service_DoubleClickBidManager(...);
149
  * $lineitems = $doubleclickbidmanagerService->lineitems;
150
  * </code>
151
  */
152
+ class GoogleGAL_Service_DoubleClickBidManager_Lineitems_Resource extends GoogleGAL_Service_Resource
153
  {
154
 
155
  /**
156
  * Retrieves line items in CSV format. (lineitems.downloadlineitems)
157
  *
158
+ * @param GoogleGAL_DownloadLineItemsRequest $postBody
159
  * @param array $optParams Optional parameters.
160
+ * @return GoogleGAL_Service_DoubleClickBidManager_DownloadLineItemsResponse
161
  */
162
+ public function downloadlineitems(GoogleGAL_Service_DoubleClickBidManager_DownloadLineItemsRequest $postBody, $optParams = array())
163
  {
164
  $params = array('postBody' => $postBody);
165
  $params = array_merge($params, $optParams);
166
+ return $this->call('downloadlineitems', array($params), "GoogleGAL_Service_DoubleClickBidManager_DownloadLineItemsResponse");
167
  }
168
  /**
169
  * Uploads line items in CSV format. (lineitems.uploadlineitems)
170
  *
171
+ * @param GoogleGAL_UploadLineItemsRequest $postBody
172
  * @param array $optParams Optional parameters.
173
+ * @return GoogleGAL_Service_DoubleClickBidManager_UploadLineItemsResponse
174
  */
175
+ public function uploadlineitems(GoogleGAL_Service_DoubleClickBidManager_UploadLineItemsRequest $postBody, $optParams = array())
176
  {
177
  $params = array('postBody' => $postBody);
178
  $params = array_merge($params, $optParams);
179
+ return $this->call('uploadlineitems', array($params), "GoogleGAL_Service_DoubleClickBidManager_UploadLineItemsResponse");
180
  }
181
  }
182
 
184
  * The "queries" collection of methods.
185
  * Typical usage is:
186
  * <code>
187
+ * $doubleclickbidmanagerService = new GoogleGAL_Service_DoubleClickBidManager(...);
188
  * $queries = $doubleclickbidmanagerService->queries;
189
  * </code>
190
  */
191
+ class GoogleGAL_Service_DoubleClickBidManager_Queries_Resource extends GoogleGAL_Service_Resource
192
  {
193
 
194
  /**
195
  * Creates a query. (queries.createquery)
196
  *
197
+ * @param GoogleGAL_Query $postBody
198
  * @param array $optParams Optional parameters.
199
+ * @return GoogleGAL_Service_DoubleClickBidManager_Query
200
  */
201
+ public function createquery(GoogleGAL_Service_DoubleClickBidManager_Query $postBody, $optParams = array())
202
  {
203
  $params = array('postBody' => $postBody);
204
  $params = array_merge($params, $optParams);
205
+ return $this->call('createquery', array($params), "GoogleGAL_Service_DoubleClickBidManager_Query");
206
  }
207
  /**
208
  * Deletes a stored query as well as the associated stored reports.
224
  * @param string $queryId
225
  * Query ID to retrieve.
226
  * @param array $optParams Optional parameters.
227
+ * @return GoogleGAL_Service_DoubleClickBidManager_Query
228
  */
229
  public function getquery($queryId, $optParams = array())
230
  {
231
  $params = array('queryId' => $queryId);
232
  $params = array_merge($params, $optParams);
233
+ return $this->call('getquery', array($params), "GoogleGAL_Service_DoubleClickBidManager_Query");
234
  }
235
  /**
236
  * Retrieves stored queries. (queries.listqueries)
237
  *
238
  * @param array $optParams Optional parameters.
239
+ * @return GoogleGAL_Service_DoubleClickBidManager_ListQueriesResponse
240
  */
241
  public function listqueries($optParams = array())
242
  {
243
  $params = array();
244
  $params = array_merge($params, $optParams);
245
+ return $this->call('listqueries', array($params), "GoogleGAL_Service_DoubleClickBidManager_ListQueriesResponse");
246
  }
247
  /**
248
  * Runs a stored query to generate a report. (queries.runquery)
249
  *
250
  * @param string $queryId
251
  * Query ID to run.
252
+ * @param GoogleGAL_RunQueryRequest $postBody
253
  * @param array $optParams Optional parameters.
254
  */
255
+ public function runquery($queryId, GoogleGAL_Service_DoubleClickBidManager_RunQueryRequest $postBody, $optParams = array())
256
  {
257
  $params = array('queryId' => $queryId, 'postBody' => $postBody);
258
  $params = array_merge($params, $optParams);
264
  * The "reports" collection of methods.
265
  * Typical usage is:
266
  * <code>
267
+ * $doubleclickbidmanagerService = new GoogleGAL_Service_DoubleClickBidManager(...);
268
  * $reports = $doubleclickbidmanagerService->reports;
269
  * </code>
270
  */
271
+ class GoogleGAL_Service_DoubleClickBidManager_Reports_Resource extends GoogleGAL_Service_Resource
272
  {
273
 
274
  /**
277
  * @param string $queryId
278
  * Query ID with which the reports are associated.
279
  * @param array $optParams Optional parameters.
280
+ * @return GoogleGAL_Service_DoubleClickBidManager_ListReportsResponse
281
  */
282
  public function listreports($queryId, $optParams = array())
283
  {
284
  $params = array('queryId' => $queryId);
285
  $params = array_merge($params, $optParams);
286
+ return $this->call('listreports', array($params), "GoogleGAL_Service_DoubleClickBidManager_ListReportsResponse");
287
  }
288
  }
289
 
290
 
291
 
292
 
293
+ class GoogleGAL_Service_DoubleClickBidManager_DownloadLineItemsRequest extends GoogleGAL_Collection
294
  {
295
  public $filterIds;
296
  public $filterType;
327
  }
328
  }
329
 
330
+ class GoogleGAL_Service_DoubleClickBidManager_DownloadLineItemsResponse extends GoogleGAL_Model
331
  {
332
  public $lineItems;
333
 
342
  }
343
  }
344
 
345
+ class GoogleGAL_Service_DoubleClickBidManager_FilterPair extends GoogleGAL_Model
346
  {
347
  public $type;
348
  public $value;
368
  }
369
  }
370
 
371
+ class GoogleGAL_Service_DoubleClickBidManager_ListQueriesResponse extends GoogleGAL_Collection
372
  {
373
  public $kind;
374
+ protected $queriesType = 'GoogleGAL_Service_DoubleClickBidManager_Query';
375
  protected $queriesDataType = 'array';
376
 
377
  public function setKind($kind)
395
  }
396
  }
397
 
398
+ class GoogleGAL_Service_DoubleClickBidManager_ListReportsResponse extends GoogleGAL_Collection
399
  {
400
  public $kind;
401
+ protected $reportsType = 'GoogleGAL_Service_DoubleClickBidManager_Report';
402
  protected $reportsDataType = 'array';
403
 
404
  public function setKind($kind)
422
  }
423
  }
424
 
425
+ class GoogleGAL_Service_DoubleClickBidManager_Parameters extends GoogleGAL_Collection
426
  {
427
+ protected $filtersType = 'GoogleGAL_Service_DoubleClickBidManager_FilterPair';
428
  protected $filtersDataType = 'array';
429
  public $groupBys;
430
  public $includeInviteData;
482
  }
483
  }
484
 
485
+ class GoogleGAL_Service_DoubleClickBidManager_Query extends GoogleGAL_Model
486
  {
487
  public $kind;
488
+ protected $metadataType = 'GoogleGAL_Service_DoubleClickBidManager_QueryMetadata';
489
  protected $metadataDataType = '';
490
+ protected $paramsType = 'GoogleGAL_Service_DoubleClickBidManager_Parameters';
491
  protected $paramsDataType = '';
492
  public $queryId;
493
  public $reportDataEndTimeMs;
494
  public $reportDataStartTimeMs;
495
+ protected $scheduleType = 'GoogleGAL_Service_DoubleClickBidManager_QuerySchedule';
496
  protected $scheduleDataType = '';
497
  public $timezoneCode;
498
 
506
  return $this->kind;
507
  }
508
 
509
+ public function setMetadata(GoogleGAL_Service_DoubleClickBidManager_QueryMetadata $metadata)
510
  {
511
  $this->metadata = $metadata;
512
  }
516
  return $this->metadata;
517
  }
518
 
519
+ public function setParams(GoogleGAL_Service_DoubleClickBidManager_Parameters $params)
520
  {
521
  $this->params = $params;
522
  }
556
  return $this->reportDataStartTimeMs;
557
  }
558
 
559
+ public function setSchedule(GoogleGAL_Service_DoubleClickBidManager_QuerySchedule $schedule)
560
  {
561
  $this->schedule = $schedule;
562
  }
577
  }
578
  }
579
 
580
+ class GoogleGAL_Service_DoubleClickBidManager_QueryMetadata extends GoogleGAL_Collection
581
  {
582
  public $dataRange;
583
  public $format;
691
  }
692
  }
693
 
694
+ class GoogleGAL_Service_DoubleClickBidManager_QuerySchedule extends GoogleGAL_Model
695
  {
696
  public $endTimeMs;
697
  public $frequency;
739
  }
740
  }
741
 
742
+ class GoogleGAL_Service_DoubleClickBidManager_Report extends GoogleGAL_Model
743
  {
744
+ protected $keyType = 'GoogleGAL_Service_DoubleClickBidManager_ReportKey';
745
  protected $keyDataType = '';
746
+ protected $metadataType = 'GoogleGAL_Service_DoubleClickBidManager_ReportMetadata';
747
  protected $metadataDataType = '';
748
+ protected $paramsType = 'GoogleGAL_Service_DoubleClickBidManager_Parameters';
749
  protected $paramsDataType = '';
750
 
751
+ public function setKey(GoogleGAL_Service_DoubleClickBidManager_ReportKey $key)
752
  {
753
  $this->key = $key;
754
  }
758
  return $this->key;
759
  }
760
 
761
+ public function setMetadata(GoogleGAL_Service_DoubleClickBidManager_ReportMetadata $metadata)
762
  {
763
  $this->metadata = $metadata;
764
  }
768
  return $this->metadata;
769
  }
770
 
771
+ public function setParams(GoogleGAL_Service_DoubleClickBidManager_Parameters $params)
772
  {
773
  $this->params = $params;
774
  }
779
  }
780
  }
781
 
782
+ class GoogleGAL_Service_DoubleClickBidManager_ReportFailure extends GoogleGAL_Model
783
  {
784
  public $errorCode;
785
 
794
  }
795
  }
796
 
797
+ class GoogleGAL_Service_DoubleClickBidManager_ReportKey extends GoogleGAL_Model
798
  {
799
  public $queryId;
800
  public $reportId;
820
  }
821
  }
822
 
823
+ class GoogleGAL_Service_DoubleClickBidManager_ReportMetadata extends GoogleGAL_Model
824
  {
825
  public $googleCloudStoragePath;
826
  public $reportDataEndTimeMs;
827
  public $reportDataStartTimeMs;
828
+ protected $statusType = 'GoogleGAL_Service_DoubleClickBidManager_ReportStatus';
829
  protected $statusDataType = '';
830
 
831
  public function setGoogleCloudStoragePath($googleCloudStoragePath)
858
  return $this->reportDataStartTimeMs;
859
  }
860
 
861
+ public function setStatus(GoogleGAL_Service_DoubleClickBidManager_ReportStatus $status)
862
  {
863
  $this->status = $status;
864
  }
869
  }
870
  }
871
 
872
+ class GoogleGAL_Service_DoubleClickBidManager_ReportStatus extends GoogleGAL_Model
873
  {
874
+ protected $failureType = 'GoogleGAL_Service_DoubleClickBidManager_ReportFailure';
875
  protected $failureDataType = '';
876
  public $finishTimeMs;
877
  public $format;
878
  public $state;
879
 
880
+ public function setFailure(GoogleGAL_Service_DoubleClickBidManager_ReportFailure $failure)
881
  {
882
  $this->failure = $failure;
883
  }
918
  }
919
  }
920
 
921
+ class GoogleGAL_Service_DoubleClickBidManager_RowStatus extends GoogleGAL_Collection
922
  {
923
  public $changed;
924
  public $entityId;
988
  }
989
  }
990
 
991
+ class GoogleGAL_Service_DoubleClickBidManager_RunQueryRequest extends GoogleGAL_Model
992
  {
993
  public $dataRange;
994
  public $reportDataEndTimeMs;
1036
  }
1037
  }
1038
 
1039
+ class GoogleGAL_Service_DoubleClickBidManager_UploadLineItemsRequest extends GoogleGAL_Model
1040
  {
1041
  public $dryRun;
1042
  public $format;
1073
  }
1074
  }
1075
 
1076
+ class GoogleGAL_Service_DoubleClickBidManager_UploadLineItemsResponse extends GoogleGAL_Model
1077
  {
1078
+ protected $uploadStatusType = 'GoogleGAL_Service_DoubleClickBidManager_UploadStatus';
1079
  protected $uploadStatusDataType = '';
1080
 
1081
+ public function setUploadStatus(GoogleGAL_Service_DoubleClickBidManager_UploadStatus $uploadStatus)
1082
  {
1083
  $this->uploadStatus = $uploadStatus;
1084
  }
1089
  }
1090
  }
1091
 
1092
+ class GoogleGAL_Service_DoubleClickBidManager_UploadStatus extends GoogleGAL_Collection
1093
  {
1094
  public $errors;
1095
+ protected $rowStatusType = 'GoogleGAL_Service_DoubleClickBidManager_RowStatus';
1096
  protected $rowStatusDataType = 'array';
1097
 
1098
  public function setErrors($errors)
core/Google/Service/Doubleclicksearch.php CHANGED
@@ -29,7 +29,7 @@
29
  *
30
  * @author Google, Inc.
31
  */
32
- class Google_Service_Doubleclicksearch extends Google_Service
33
  {
34
  /** View and manage your advertising data in DoubleClick Search. */
35
  const DOUBLECLICKSEARCH = "https://www.googleapis.com/auth/doubleclicksearch";
@@ -41,16 +41,16 @@ class Google_Service_Doubleclicksearch extends Google_Service
41
  /**
42
  * Constructs the internal representation of the Doubleclicksearch service.
43
  *
44
- * @param Google_Client $client
45
  */
46
- public function __construct(Google_Client $client)
47
  {
48
  parent::__construct($client);
49
  $this->servicePath = 'doubleclicksearch/v2/';
50
  $this->version = 'v2';
51
  $this->serviceName = 'doubleclicksearch';
52
 
53
- $this->conversion = new Google_Service_Doubleclicksearch_Conversion_Resource(
54
  $this,
55
  $this->serviceName,
56
  'conversion',
@@ -168,7 +168,7 @@ class Google_Service_Doubleclicksearch extends Google_Service
168
  )
169
  )
170
  );
171
- $this->reports = new Google_Service_Doubleclicksearch_Reports_Resource(
172
  $this,
173
  $this->serviceName,
174
  'reports',
@@ -219,11 +219,11 @@ class Google_Service_Doubleclicksearch extends Google_Service
219
  * The "conversion" collection of methods.
220
  * Typical usage is:
221
  * <code>
222
- * $doubleclicksearchService = new Google_Service_Doubleclicksearch(...);
223
  * $conversion = $doubleclicksearchService->conversion;
224
  * </code>
225
  */
226
- class Google_Service_Doubleclicksearch_Conversion_Resource extends Google_Service_Resource
227
  {
228
 
229
  /**
@@ -254,27 +254,27 @@ class Google_Service_Doubleclicksearch_Conversion_Resource extends Google_Servic
254
  * Numeric ID of the ad.
255
  * @opt_param string criterionId
256
  * Numeric ID of the criterion.
257
- * @return Google_Service_Doubleclicksearch_ConversionList
258
  */
259
  public function get($agencyId, $advertiserId, $engineAccountId, $endDate, $rowCount, $startDate, $startRow, $optParams = array())
260
  {
261
  $params = array('agencyId' => $agencyId, 'advertiserId' => $advertiserId, 'engineAccountId' => $engineAccountId, 'endDate' => $endDate, 'rowCount' => $rowCount, 'startDate' => $startDate, 'startRow' => $startRow);
262
  $params = array_merge($params, $optParams);
263
- return $this->call('get', array($params), "Google_Service_Doubleclicksearch_ConversionList");
264
  }
265
  /**
266
  * Inserts a batch of new conversions into DoubleClick Search.
267
  * (conversion.insert)
268
  *
269
- * @param Google_ConversionList $postBody
270
  * @param array $optParams Optional parameters.
271
- * @return Google_Service_Doubleclicksearch_ConversionList
272
  */
273
- public function insert(Google_Service_Doubleclicksearch_ConversionList $postBody, $optParams = array())
274
  {
275
  $params = array('postBody' => $postBody);
276
  $params = array_merge($params, $optParams);
277
- return $this->call('insert', array($params), "Google_Service_Doubleclicksearch_ConversionList");
278
  }
279
  /**
280
  * Updates a batch of conversions in DoubleClick Search. This method supports
@@ -294,42 +294,42 @@ class Google_Service_Doubleclicksearch_Conversion_Resource extends Google_Servic
294
  * First date (inclusive) on which to retrieve conversions. Format is yyyymmdd.
295
  * @param string $startRow
296
  * The 0-based starting index for retrieving conversions results.
297
- * @param Google_ConversionList $postBody
298
  * @param array $optParams Optional parameters.
299
- * @return Google_Service_Doubleclicksearch_ConversionList
300
  */
301
- public function patch($advertiserId, $agencyId, $endDate, $engineAccountId, $rowCount, $startDate, $startRow, Google_Service_Doubleclicksearch_ConversionList $postBody, $optParams = array())
302
  {
303
  $params = array('advertiserId' => $advertiserId, 'agencyId' => $agencyId, 'endDate' => $endDate, 'engineAccountId' => $engineAccountId, 'rowCount' => $rowCount, 'startDate' => $startDate, 'startRow' => $startRow, 'postBody' => $postBody);
304
  $params = array_merge($params, $optParams);
305
- return $this->call('patch', array($params), "Google_Service_Doubleclicksearch_ConversionList");
306
  }
307
  /**
308
  * Updates a batch of conversions in DoubleClick Search. (conversion.update)
309
  *
310
- * @param Google_ConversionList $postBody
311
  * @param array $optParams Optional parameters.
312
- * @return Google_Service_Doubleclicksearch_ConversionList
313
  */
314
- public function update(Google_Service_Doubleclicksearch_ConversionList $postBody, $optParams = array())
315
  {
316
  $params = array('postBody' => $postBody);
317
  $params = array_merge($params, $optParams);
318
- return $this->call('update', array($params), "Google_Service_Doubleclicksearch_ConversionList");
319
  }
320
  /**
321
  * Updates the availabilities of a batch of floodlight activities in DoubleClick
322
  * Search. (conversion.updateAvailability)
323
  *
324
- * @param Google_UpdateAvailabilityRequest $postBody
325
  * @param array $optParams Optional parameters.
326
- * @return Google_Service_Doubleclicksearch_UpdateAvailabilityResponse
327
  */
328
- public function updateAvailability(Google_Service_Doubleclicksearch_UpdateAvailabilityRequest $postBody, $optParams = array())
329
  {
330
  $params = array('postBody' => $postBody);
331
  $params = array_merge($params, $optParams);
332
- return $this->call('updateAvailability', array($params), "Google_Service_Doubleclicksearch_UpdateAvailabilityResponse");
333
  }
334
  }
335
 
@@ -337,25 +337,25 @@ class Google_Service_Doubleclicksearch_Conversion_Resource extends Google_Servic
337
  * The "reports" collection of methods.
338
  * Typical usage is:
339
  * <code>
340
- * $doubleclicksearchService = new Google_Service_Doubleclicksearch(...);
341
  * $reports = $doubleclicksearchService->reports;
342
  * </code>
343
  */
344
- class Google_Service_Doubleclicksearch_Reports_Resource extends Google_Service_Resource
345
  {
346
 
347
  /**
348
  * Generates and returns a report immediately. (reports.generate)
349
  *
350
- * @param Google_ReportRequest $postBody
351
  * @param array $optParams Optional parameters.
352
- * @return Google_Service_Doubleclicksearch_Report
353
  */
354
- public function generate(Google_Service_Doubleclicksearch_ReportRequest $postBody, $optParams = array())
355
  {
356
  $params = array('postBody' => $postBody);
357
  $params = array_merge($params, $optParams);
358
- return $this->call('generate', array($params), "Google_Service_Doubleclicksearch_Report");
359
  }
360
  /**
361
  * Polls for the status of a report request. (reports.get)
@@ -363,13 +363,13 @@ class Google_Service_Doubleclicksearch_Reports_Resource extends Google_Service_R
363
  * @param string $reportId
364
  * ID of the report request being polled.
365
  * @param array $optParams Optional parameters.
366
- * @return Google_Service_Doubleclicksearch_Report
367
  */
368
  public function get($reportId, $optParams = array())
369
  {
370
  $params = array('reportId' => $reportId);
371
  $params = array_merge($params, $optParams);
372
- return $this->call('get', array($params), "Google_Service_Doubleclicksearch_Report");
373
  }
374
  /**
375
  * Downloads a report file. (reports.getFile)
@@ -389,22 +389,22 @@ class Google_Service_Doubleclicksearch_Reports_Resource extends Google_Service_R
389
  /**
390
  * Inserts a report request into the reporting system. (reports.request)
391
  *
392
- * @param Google_ReportRequest $postBody
393
  * @param array $optParams Optional parameters.
394
- * @return Google_Service_Doubleclicksearch_Report
395
  */
396
- public function request(Google_Service_Doubleclicksearch_ReportRequest $postBody, $optParams = array())
397
  {
398
  $params = array('postBody' => $postBody);
399
  $params = array_merge($params, $optParams);
400
- return $this->call('request', array($params), "Google_Service_Doubleclicksearch_Report");
401
  }
402
  }
403
 
404
 
405
 
406
 
407
- class Google_Service_Doubleclicksearch_Availability extends Google_Model
408
  {
409
  public $advertiserId;
410
  public $agencyId;
@@ -474,7 +474,7 @@ class Google_Service_Doubleclicksearch_Availability extends Google_Model
474
  }
475
  }
476
 
477
- class Google_Service_Doubleclicksearch_Conversion extends Google_Collection
478
  {
479
  public $adGroupId;
480
  public $adId;
@@ -487,9 +487,9 @@ class Google_Service_Doubleclicksearch_Conversion extends Google_Collection
487
  public $conversionTimestamp;
488
  public $criterionId;
489
  public $currencyCode;
490
- protected $customDimensionType = 'Google_Service_Doubleclicksearch_CustomDimension';
491
  protected $customDimensionDataType = 'array';
492
- protected $customMetricType = 'Google_Service_Doubleclicksearch_CustomMetric';
493
  protected $customMetricDataType = 'array';
494
  public $dsConversionId;
495
  public $engineAccountId;
@@ -733,9 +733,9 @@ class Google_Service_Doubleclicksearch_Conversion extends Google_Collection
733
  }
734
  }
735
 
736
- class Google_Service_Doubleclicksearch_ConversionList extends Google_Collection
737
  {
738
- protected $conversionType = 'Google_Service_Doubleclicksearch_Conversion';
739
  protected $conversionDataType = 'array';
740
  public $kind;
741
 
@@ -760,7 +760,7 @@ class Google_Service_Doubleclicksearch_ConversionList extends Google_Collection
760
  }
761
  }
762
 
763
- class Google_Service_Doubleclicksearch_CustomDimension extends Google_Model
764
  {
765
  public $name;
766
  public $value;
@@ -786,7 +786,7 @@ class Google_Service_Doubleclicksearch_CustomDimension extends Google_Model
786
  }
787
  }
788
 
789
- class Google_Service_Doubleclicksearch_CustomMetric extends Google_Model
790
  {
791
  public $name;
792
  public $value;
@@ -812,14 +812,14 @@ class Google_Service_Doubleclicksearch_CustomMetric extends Google_Model
812
  }
813
  }
814
 
815
- class Google_Service_Doubleclicksearch_Report extends Google_Collection
816
  {
817
- protected $filesType = 'Google_Service_Doubleclicksearch_ReportFiles';
818
  protected $filesDataType = 'array';
819
  public $id;
820
  public $isReportReady;
821
  public $kind;
822
- protected $requestType = 'Google_Service_Doubleclicksearch_ReportRequest';
823
  protected $requestDataType = '';
824
  public $rowCount;
825
  public $rows;
@@ -866,7 +866,7 @@ class Google_Service_Doubleclicksearch_Report extends Google_Collection
866
  return $this->kind;
867
  }
868
 
869
- public function setRequest(Google_Service_Doubleclicksearch_ReportRequest $request)
870
  {
871
  $this->request = $request;
872
  }
@@ -917,7 +917,7 @@ class Google_Service_Doubleclicksearch_Report extends Google_Collection
917
  }
918
  }
919
 
920
- class Google_Service_Doubleclicksearch_ReportFiles extends Google_Model
921
  {
922
  public $byteCount;
923
  public $url;
@@ -943,25 +943,25 @@ class Google_Service_Doubleclicksearch_ReportFiles extends Google_Model
943
  }
944
  }
945
 
946
- class Google_Service_Doubleclicksearch_ReportRequest extends Google_Collection
947
  {
948
- protected $columnsType = 'Google_Service_Doubleclicksearch_ReportRequestColumns';
949
  protected $columnsDataType = 'array';
950
  public $downloadFormat;
951
- protected $filtersType = 'Google_Service_Doubleclicksearch_ReportRequestFilters';
952
  protected $filtersDataType = 'array';
953
  public $includeDeletedEntities;
954
  public $includeRemovedEntities;
955
  public $maxRowsPerFile;
956
- protected $orderByType = 'Google_Service_Doubleclicksearch_ReportRequestOrderBy';
957
  protected $orderByDataType = 'array';
958
- protected $reportScopeType = 'Google_Service_Doubleclicksearch_ReportRequestReportScope';
959
  protected $reportScopeDataType = '';
960
  public $reportType;
961
  public $rowCount;
962
  public $startRow;
963
  public $statisticsCurrency;
964
- protected $timeRangeType = 'Google_Service_Doubleclicksearch_ReportRequestTimeRange';
965
  protected $timeRangeDataType = '';
966
  public $verifySingleTimeZone;
967
 
@@ -1035,7 +1035,7 @@ class Google_Service_Doubleclicksearch_ReportRequest extends Google_Collection
1035
  return $this->orderBy;
1036
  }
1037
 
1038
- public function setReportScope(Google_Service_Doubleclicksearch_ReportRequestReportScope $reportScope)
1039
  {
1040
  $this->reportScope = $reportScope;
1041
  }
@@ -1085,7 +1085,7 @@ class Google_Service_Doubleclicksearch_ReportRequest extends Google_Collection
1085
  return $this->statisticsCurrency;
1086
  }
1087
 
1088
- public function setTimeRange(Google_Service_Doubleclicksearch_ReportRequestTimeRange $timeRange)
1089
  {
1090
  $this->timeRange = $timeRange;
1091
  }
@@ -1106,7 +1106,7 @@ class Google_Service_Doubleclicksearch_ReportRequest extends Google_Collection
1106
  }
1107
  }
1108
 
1109
- class Google_Service_Doubleclicksearch_ReportRequestColumns extends Google_Model
1110
  {
1111
  public $columnName;
1112
  public $endDate;
@@ -1176,14 +1176,14 @@ class Google_Service_Doubleclicksearch_ReportRequestColumns extends Google_Model
1176
  }
1177
  }
1178
 
1179
- class Google_Service_Doubleclicksearch_ReportRequestFilters extends Google_Collection
1180
  {
1181
- protected $columnType = 'Google_Service_Doubleclicksearch_ReportRequestFiltersColumn';
1182
  protected $columnDataType = '';
1183
  public $operator;
1184
  public $values;
1185
 
1186
- public function setColumn(Google_Service_Doubleclicksearch_ReportRequestFiltersColumn $column)
1187
  {
1188
  $this->column = $column;
1189
  }
@@ -1214,7 +1214,7 @@ class Google_Service_Doubleclicksearch_ReportRequestFilters extends Google_Colle
1214
  }
1215
  }
1216
 
1217
- class Google_Service_Doubleclicksearch_ReportRequestFiltersColumn extends Google_Model
1218
  {
1219
  public $columnName;
1220
  public $savedColumnName;
@@ -1240,13 +1240,13 @@ class Google_Service_Doubleclicksearch_ReportRequestFiltersColumn extends Google
1240
  }
1241
  }
1242
 
1243
- class Google_Service_Doubleclicksearch_ReportRequestOrderBy extends Google_Model
1244
  {
1245
- protected $columnType = 'Google_Service_Doubleclicksearch_ReportRequestOrderByColumn';
1246
  protected $columnDataType = '';
1247
  public $sortOrder;
1248
 
1249
- public function setColumn(Google_Service_Doubleclicksearch_ReportRequestOrderByColumn $column)
1250
  {
1251
  $this->column = $column;
1252
  }
@@ -1267,7 +1267,7 @@ class Google_Service_Doubleclicksearch_ReportRequestOrderBy extends Google_Model
1267
  }
1268
  }
1269
 
1270
- class Google_Service_Doubleclicksearch_ReportRequestOrderByColumn extends Google_Model
1271
  {
1272
  public $columnName;
1273
  public $savedColumnName;
@@ -1293,7 +1293,7 @@ class Google_Service_Doubleclicksearch_ReportRequestOrderByColumn extends Google
1293
  }
1294
  }
1295
 
1296
- class Google_Service_Doubleclicksearch_ReportRequestReportScope extends Google_Model
1297
  {
1298
  public $adGroupId;
1299
  public $adId;
@@ -1374,7 +1374,7 @@ class Google_Service_Doubleclicksearch_ReportRequestReportScope extends Google_M
1374
  }
1375
  }
1376
 
1377
- class Google_Service_Doubleclicksearch_ReportRequestTimeRange extends Google_Model
1378
  {
1379
  public $changedAttributesSinceTimestamp;
1380
  public $changedMetricsSinceTimestamp;
@@ -1422,9 +1422,9 @@ class Google_Service_Doubleclicksearch_ReportRequestTimeRange extends Google_Mod
1422
  }
1423
  }
1424
 
1425
- class Google_Service_Doubleclicksearch_UpdateAvailabilityRequest extends Google_Collection
1426
  {
1427
- protected $availabilitiesType = 'Google_Service_Doubleclicksearch_Availability';
1428
  protected $availabilitiesDataType = 'array';
1429
 
1430
  public function setAvailabilities($availabilities)
@@ -1438,9 +1438,9 @@ class Google_Service_Doubleclicksearch_UpdateAvailabilityRequest extends Google_
1438
  }
1439
  }
1440
 
1441
- class Google_Service_Doubleclicksearch_UpdateAvailabilityResponse extends Google_Collection
1442
  {
1443
- protected $availabilitiesType = 'Google_Service_Doubleclicksearch_Availability';
1444
  protected $availabilitiesDataType = 'array';
1445
 
1446
  public function setAvailabilities($availabilities)
29
  *
30
  * @author Google, Inc.
31
  */
32
+ class GoogleGAL_Service_Doubleclicksearch extends GoogleGAL_Service
33
  {
34
  /** View and manage your advertising data in DoubleClick Search. */
35
  const DOUBLECLICKSEARCH = "https://www.googleapis.com/auth/doubleclicksearch";
41
  /**
42
  * Constructs the internal representation of the Doubleclicksearch service.
43
  *
44
+ * @param GoogleGAL_Client $client
45
  */
46
+ public function __construct(GoogleGAL_Client $client)
47
  {
48
  parent::__construct($client);
49
  $this->servicePath = 'doubleclicksearch/v2/';
50
  $this->version = 'v2';
51
  $this->serviceName = 'doubleclicksearch';
52
 
53
+ $this->conversion = new GoogleGAL_Service_Doubleclicksearch_Conversion_Resource(
54
  $this,
55
  $this->serviceName,
56
  'conversion',
168
  )
169
  )
170
  );
171
+ $this->reports = new GoogleGAL_Service_Doubleclicksearch_Reports_Resource(
172
  $this,
173
  $this->serviceName,
174
  'reports',
219
  * The "conversion" collection of methods.
220
  * Typical usage is:
221
  * <code>
222
+ * $doubleclicksearchService = new GoogleGAL_Service_Doubleclicksearch(...);
223
  * $conversion = $doubleclicksearchService->conversion;
224
  * </code>
225
  */
226
+ class GoogleGAL_Service_Doubleclicksearch_Conversion_Resource extends GoogleGAL_Service_Resource
227
  {
228
 
229
  /**
254
  * Numeric ID of the ad.
255
  * @opt_param string criterionId
256
  * Numeric ID of the criterion.
257
+ * @return GoogleGAL_Service_Doubleclicksearch_ConversionList
258
  */
259
  public function get($agencyId, $advertiserId, $engineAccountId, $endDate, $rowCount, $startDate, $startRow, $optParams = array())
260
  {
261
  $params = array('agencyId' => $agencyId, 'advertiserId' => $advertiserId, 'engineAccountId' => $engineAccountId, 'endDate' => $endDate, 'rowCount' => $rowCount, 'startDate' => $startDate, 'startRow' => $startRow);
262
  $params = array_merge($params, $optParams);
263
+ return $this->call('get', array($params), "GoogleGAL_Service_Doubleclicksearch_ConversionList");
264
  }
265
  /**
266
  * Inserts a batch of new conversions into DoubleClick Search.
267
  * (conversion.insert)
268
  *
269
+ * @param GoogleGAL_ConversionList $postBody
270
  * @param array $optParams Optional parameters.
271
+ * @return GoogleGAL_Service_Doubleclicksearch_ConversionList
272
  */
273
+ public function insert(GoogleGAL_Service_Doubleclicksearch_ConversionList $postBody, $optParams = array())
274
  {
275
  $params = array('postBody' => $postBody);
276
  $params = array_merge($params, $optParams);
277
+ return $this->call('insert', array($params), "GoogleGAL_Service_Doubleclicksearch_ConversionList");
278
  }
279
  /**
280
  * Updates a batch of conversions in DoubleClick Search. This method supports
294
  * First date (inclusive) on which to retrieve conversions. Format is yyyymmdd.
295
  * @param string $startRow
296
  * The 0-based starting index for retrieving conversions results.
297
+ * @param GoogleGAL_ConversionList $postBody
298
  * @param array $optParams Optional parameters.
299
+ * @return GoogleGAL_Service_Doubleclicksearch_ConversionList
300
  */
301
+ public function patch($advertiserId, $agencyId, $endDate, $engineAccountId, $rowCount, $startDate, $startRow, GoogleGAL_Service_Doubleclicksearch_ConversionList $postBody, $optParams = array())
302
  {
303
  $params = array('advertiserId' => $advertiserId, 'agencyId' => $agencyId, 'endDate' => $endDate, 'engineAccountId' => $engineAccountId, 'rowCount' => $rowCount, 'startDate' => $startDate, 'startRow' => $startRow, 'postBody' => $postBody);
304
  $params = array_merge($params, $optParams);
305
+ return $this->call('patch', array($params), "GoogleGAL_Service_Doubleclicksearch_ConversionList");
306
  }
307
  /**
308
  * Updates a batch of conversions in DoubleClick Search. (conversion.update)
309
  *
310
+ * @param GoogleGAL_ConversionList $postBody
311
  * @param array $optParams Optional parameters.
312
+ * @return GoogleGAL_Service_Doubleclicksearch_ConversionList
313
  */
314
+ public function update(GoogleGAL_Service_Doubleclicksearch_ConversionList $postBody, $optParams = array())
315
  {
316
  $params = array('postBody' => $postBody);
317
  $params = array_merge($params, $optParams);
318
+ return $this->call('update', array($params), "GoogleGAL_Service_Doubleclicksearch_ConversionList");
319
  }
320
  /**
321
  * Updates the availabilities of a batch of floodlight activities in DoubleClick
322
  * Search. (conversion.updateAvailability)
323
  *
324
+ * @param GoogleGAL_UpdateAvailabilityRequest $postBody
325
  * @param array $optParams Optional parameters.
326
+ * @return GoogleGAL_Service_Doubleclicksearch_UpdateAvailabilityResponse
327
  */
328
+ public function updateAvailability(GoogleGAL_Service_Doubleclicksearch_UpdateAvailabilityRequest $postBody, $optParams = array())
329
  {
330
  $params = array('postBody' => $postBody);
331
  $params = array_merge($params, $optParams);
332
+ return $this->call('updateAvailability', array($params), "GoogleGAL_Service_Doubleclicksearch_UpdateAvailabilityResponse");
333
  }
334
  }
335
 
337
  * The "reports" collection of methods.
338
  * Typical usage is:
339
  * <code>
340
+ * $doubleclicksearchService = new GoogleGAL_Service_Doubleclicksearch(...);
341
  * $reports = $doubleclicksearchService->reports;
342
  * </code>
343
  */
344
+ class GoogleGAL_Service_Doubleclicksearch_Reports_Resource extends GoogleGAL_Service_Resource
345
  {
346
 
347
  /**
348
  * Generates and returns a report immediately. (reports.generate)
349
  *
350
+ * @param GoogleGAL_ReportRequest $postBody
351
  * @param array $optParams Optional parameters.
352
+ * @return GoogleGAL_Service_Doubleclicksearch_Report
353
  */
354
+ public function generate(GoogleGAL_Service_Doubleclicksearch_ReportRequest $postBody, $optParams = array())
355
  {
356
  $params = array('postBody' => $postBody);
357
  $params = array_merge($params, $optParams);
358
+ return $this->call('generate', array($params), "GoogleGAL_Service_Doubleclicksearch_Report");
359
  }
360
  /**
361
  * Polls for the status of a report request. (reports.get)
363
  * @param string $reportId
364
  * ID of the report request being polled.
365
  * @param array $optParams Optional parameters.
366
+ * @return GoogleGAL_Service_Doubleclicksearch_Report
367
  */
368
  public function get($reportId, $optParams = array())
369
  {
370
  $params = array('reportId' => $reportId);
371
  $params = array_merge($params, $optParams);
372
+ return $this->call('get', array($params), "GoogleGAL_Service_Doubleclicksearch_Report");
373
  }
374
  /**
375
  * Downloads a report file. (reports.getFile)
389
  /**
390
  * Inserts a report request into the reporting system. (reports.request)
391
  *
392
+ * @param GoogleGAL_ReportRequest $postBody
393
  * @param array $optParams Optional parameters.
394
+ * @return GoogleGAL_Service_Doubleclicksearch_Report
395
  */
396
+ public function request(GoogleGAL_Service_Doubleclicksearch_ReportRequest $postBody, $optParams = array())
397
  {
398
  $params = array('postBody' => $postBody);
399
  $params = array_merge($params, $optParams);
400
+ return $this->call('request', array($params), "GoogleGAL_Service_Doubleclicksearch_Report");
401
  }
402
  }
403
 
404
 
405
 
406
 
407
+ class GoogleGAL_Service_Doubleclicksearch_Availability extends GoogleGAL_Model
408
  {
409
  public $advertiserId;
410
  public $agencyId;
474
  }
475
  }
476
 
477
+ class GoogleGAL_Service_Doubleclicksearch_Conversion extends GoogleGAL_Collection
478
  {
479
  public $adGroupId;
480
  public $adId;
487
  public $conversionTimestamp;
488
  public $criterionId;
489
  public $currencyCode;
490
+ protected $customDimensionType = 'GoogleGAL_Service_Doubleclicksearch_CustomDimension';
491
  protected $customDimensionDataType = 'array';
492
+ protected $customMetricType = 'GoogleGAL_Service_Doubleclicksearch_CustomMetric';
493
  protected $customMetricDataType = 'array';
494
  public $dsConversionId;
495
  public $engineAccountId;
733
  }
734
  }
735
 
736
+ class GoogleGAL_Service_Doubleclicksearch_ConversionList extends GoogleGAL_Collection
737
  {
738
+ protected $conversionType = 'GoogleGAL_Service_Doubleclicksearch_Conversion';
739
  protected $conversionDataType = 'array';
740
  public $kind;
741
 
760
  }
761
  }
762
 
763
+ class GoogleGAL_Service_Doubleclicksearch_CustomDimension extends GoogleGAL_Model
764
  {
765
  public $name;
766
  public $value;
786
  }
787
  }
788
 
789
+ class GoogleGAL_Service_Doubleclicksearch_CustomMetric extends GoogleGAL_Model
790
  {
791
  public $name;
792
  public $value;
812
  }
813
  }
814
 
815
+ class GoogleGAL_Service_Doubleclicksearch_Report extends GoogleGAL_Collection
816
  {
817
+ protected $filesType = 'GoogleGAL_Service_Doubleclicksearch_ReportFiles';
818
  protected $filesDataType = 'array';
819
  public $id;
820
  public $isReportReady;
821
  public $kind;
822
+ protected $requestType = 'GoogleGAL_Service_Doubleclicksearch_ReportRequest';
823
  protected $requestDataType = '';
824
  public $rowCount;
825
  public $rows;
866
  return $this->kind;
867
  }
868
 
869
+ public function setRequest(GoogleGAL_Service_Doubleclicksearch_ReportRequest $request)
870
  {
871
  $this->request = $request;
872
  }
917
  }
918
  }
919
 
920
+ class GoogleGAL_Service_Doubleclicksearch_ReportFiles extends GoogleGAL_Model
921
  {
922
  public $byteCount;
923
  public $url;
943
  }
944
  }
945
 
946
+ class GoogleGAL_Service_Doubleclicksearch_ReportRequest extends GoogleGAL_Collection
947
  {
948
+ protected $columnsType = 'GoogleGAL_Service_Doubleclicksearch_ReportRequestColumns';
949
  protected $columnsDataType = 'array';
950
  public $downloadFormat;
951
+ protected $filtersType = 'GoogleGAL_Service_Doubleclicksearch_ReportRequestFilters';
952
  protected $filtersDataType = 'array';
953
  public $includeDeletedEntities;
954
  public $includeRemovedEntities;
955
  public $maxRowsPerFile;
956
+ protected $orderByType = 'GoogleGAL_Service_Doubleclicksearch_ReportRequestOrderBy';
957
  protected $orderByDataType = 'array';
958
+ protected $reportScopeType = 'GoogleGAL_Service_Doubleclicksearch_ReportRequestReportScope';
959
  protected $reportScopeDataType = '';
960
  public $reportType;
961
  public $rowCount;
962
  public $startRow;
963
  public $statisticsCurrency;
964
+ protected $timeRangeType = 'GoogleGAL_Service_Doubleclicksearch_ReportRequestTimeRange';
965
  protected $timeRangeDataType = '';
966
  public $verifySingleTimeZone;
967
 
1035
  return $this->orderBy;
1036
  }
1037
 
1038
+ public function setReportScope(GoogleGAL_Service_Doubleclicksearch_ReportRequestReportScope $reportScope)
1039
  {
1040
  $this->reportScope = $reportScope;
1041
  }
1085
  return $this->statisticsCurrency;
1086
  }
1087
 
1088
+ public function setTimeRange(GoogleGAL_Service_Doubleclicksearch_ReportRequestTimeRange $timeRange)
1089
  {
1090
  $this->timeRange = $timeRange;
1091
  }
1106
  }
1107
  }
1108
 
1109
+ class GoogleGAL_Service_Doubleclicksearch_ReportRequestColumns extends GoogleGAL_Model
1110
  {
1111
  public $columnName;
1112
  public $endDate;
1176
  }
1177
  }
1178
 
1179
+ class GoogleGAL_Service_Doubleclicksearch_ReportRequestFilters extends GoogleGAL_Collection
1180
  {
1181
+ protected $columnType = 'GoogleGAL_Service_Doubleclicksearch_ReportRequestFiltersColumn';
1182
  protected $columnDataType = '';
1183
  public $operator;
1184
  public $values;
1185
 
1186
+ public function setColumn(GoogleGAL_Service_Doubleclicksearch_ReportRequestFiltersColumn $column)
1187
  {
1188
  $this->column = $column;
1189
  }
1214
  }
1215
  }
1216
 
1217
+ class GoogleGAL_Service_Doubleclicksearch_ReportRequestFiltersColumn extends GoogleGAL_Model
1218
  {
1219
  public $columnName;
1220
  public $savedColumnName;
1240
  }
1241
  }
1242
 
1243
+ class GoogleGAL_Service_Doubleclicksearch_ReportRequestOrderBy extends GoogleGAL_Model
1244
  {
1245
+ protected $columnType = 'GoogleGAL_Service_Doubleclicksearch_ReportRequestOrderByColumn';
1246
  protected $columnDataType = '';
1247
  public $sortOrder;
1248
 
1249
+ public function setColumn(GoogleGAL_Service_Doubleclicksearch_ReportRequestOrderByColumn $column)
1250
  {
1251
  $this->column = $column;
1252
  }
1267
  }
1268
  }
1269
 
1270
+ class GoogleGAL_Service_Doubleclicksearch_ReportRequestOrderByColumn extends GoogleGAL_Model
1271
  {
1272
  public $columnName;
1273
  public $savedColumnName;
1293
  }
1294
  }
1295
 
1296
+ class GoogleGAL_Service_Doubleclicksearch_ReportRequestReportScope extends GoogleGAL_Model
1297
  {
1298
  public $adGroupId;
1299
  public $adId;
1374
  }
1375
  }
1376
 
1377
+ class GoogleGAL_Service_Doubleclicksearch_ReportRequestTimeRange extends GoogleGAL_Model
1378
  {
1379
  public $changedAttributesSinceTimestamp;
1380
  public $changedMetricsSinceTimestamp;
1422
  }
1423
  }
1424
 
1425
+ class GoogleGAL_Service_Doubleclicksearch_UpdateAvailabilityRequest extends GoogleGAL_Collection
1426
  {
1427
+ protected $availabilitiesType = 'GoogleGAL_Service_Doubleclicksearch_Availability';
1428
  protected $availabilitiesDataType = 'array';
1429
 
1430
  public function setAvailabilities($availabilities)
1438
  }
1439
  }
1440
 
1441
+ class GoogleGAL_Service_Doubleclicksearch_UpdateAvailabilityResponse extends GoogleGAL_Collection
1442
  {
1443
+ protected $availabilitiesType = 'GoogleGAL_Service_Doubleclicksearch_Availability';
1444
  protected $availabilitiesDataType = 'array';
1445
 
1446
  public function setAvailabilities($availabilities)
core/Google/Service/Drive.php CHANGED
@@ -29,7 +29,7 @@
29
  *
30
  * @author Google, Inc.
31
  */
32
- class Google_Service_Drive extends Google_Service
33
  {
34
  /** View and manage the files and documents in your Google Drive. */
35
  const DRIVE = "https://www.googleapis.com/auth/drive";
@@ -64,16 +64,16 @@ class Google_Service_Drive extends Google_Service
64
  /**
65
  * Constructs the internal representation of the Drive service.
66
  *
67
- * @param Google_Client $client
68
  */
69
- public function __construct(Google_Client $client)
70
  {
71
  parent::__construct($client);
72
  $this->servicePath = 'drive/v2/';
73
  $this->version = 'v2';
74
  $this->serviceName = 'drive';
75
 
76
- $this->about = new Google_Service_Drive_About_Resource(
77
  $this,
78
  $this->serviceName,
79
  'about',
@@ -100,7 +100,7 @@ class Google_Service_Drive extends Google_Service
100
  )
101
  )
102
  );
103
- $this->apps = new Google_Service_Drive_Apps_Resource(
104
  $this,
105
  $this->serviceName,
106
  'apps',
@@ -124,7 +124,7 @@ class Google_Service_Drive extends Google_Service
124
  )
125
  )
126
  );
127
- $this->changes = new Google_Service_Drive_Changes_Resource(
128
  $this,
129
  $this->serviceName,
130
  'changes',
@@ -194,7 +194,7 @@ class Google_Service_Drive extends Google_Service
194
  )
195
  )
196
  );
197
- $this->channels = new Google_Service_Drive_Channels_Resource(
198
  $this,
199
  $this->serviceName,
200
  'channels',
@@ -208,7 +208,7 @@ class Google_Service_Drive extends Google_Service
208
  )
209
  )
210
  );
211
- $this->children = new Google_Service_Drive_Children_Resource(
212
  $this,
213
  $this->serviceName,
214
  'children',
@@ -280,7 +280,7 @@ class Google_Service_Drive extends Google_Service
280
  )
281
  )
282
  );
283
- $this->comments = new Google_Service_Drive_Comments_Resource(
284
  $this,
285
  $this->serviceName,
286
  'comments',
@@ -390,7 +390,7 @@ class Google_Service_Drive extends Google_Service
390
  )
391
  )
392
  );
393
- $this->files = new Google_Service_Drive_Files_Resource(
394
  $this,
395
  $this->serviceName,
396
  'files',
@@ -672,7 +672,7 @@ class Google_Service_Drive extends Google_Service
672
  )
673
  )
674
  );
675
- $this->parents = new Google_Service_Drive_Parents_Resource(
676
  $this,
677
  $this->serviceName,
678
  'parents',
@@ -732,7 +732,7 @@ class Google_Service_Drive extends Google_Service
732
  )
733
  )
734
  );
735
- $this->permissions = new Google_Service_Drive_Permissions_Resource(
736
  $this,
737
  $this->serviceName,
738
  'permissions',
@@ -848,7 +848,7 @@ class Google_Service_Drive extends Google_Service
848
  )
849
  )
850
  );
851
- $this->properties = new Google_Service_Drive_Properties_Resource(
852
  $this,
853
  $this->serviceName,
854
  'properties',
@@ -954,7 +954,7 @@ class Google_Service_Drive extends Google_Service
954
  )
955
  )
956
  );
957
- $this->realtime = new Google_Service_Drive_Realtime_Resource(
958
  $this,
959
  $this->serviceName,
960
  'realtime',
@@ -988,7 +988,7 @@ class Google_Service_Drive extends Google_Service
988
  )
989
  )
990
  );
991
- $this->replies = new Google_Service_Drive_Replies_Resource(
992
  $this,
993
  $this->serviceName,
994
  'replies',
@@ -1124,7 +1124,7 @@ class Google_Service_Drive extends Google_Service
1124
  )
1125
  )
1126
  );
1127
- $this->revisions = new Google_Service_Drive_Revisions_Resource(
1128
  $this,
1129
  $this->serviceName,
1130
  'revisions',
@@ -1212,11 +1212,11 @@ class Google_Service_Drive extends Google_Service
1212
  * The "about" collection of methods.
1213
  * Typical usage is:
1214
  * <code>
1215
- * $driveService = new Google_Service_Drive(...);
1216
  * $about = $driveService->about;
1217
  * </code>
1218
  */
1219
- class Google_Service_Drive_About_Resource extends Google_Service_Resource
1220
  {
1221
 
1222
  /**
@@ -1233,13 +1233,13 @@ class Google_Service_Drive_About_Resource extends Google_Service_Resource
1233
  * Maximum number of remaining change IDs to count
1234
  * @opt_param string startChangeId
1235
  * Change ID to start counting from when calculating number of remaining change IDs
1236
- * @return Google_Service_Drive_About
1237
  */
1238
  public function get($optParams = array())
1239
  {
1240
  $params = array();
1241
  $params = array_merge($params, $optParams);
1242
- return $this->call('get', array($params), "Google_Service_Drive_About");
1243
  }
1244
  }
1245
 
@@ -1247,11 +1247,11 @@ class Google_Service_Drive_About_Resource extends Google_Service_Resource
1247
  * The "apps" collection of methods.
1248
  * Typical usage is:
1249
  * <code>
1250
- * $driveService = new Google_Service_Drive(...);
1251
  * $apps = $driveService->apps;
1252
  * </code>
1253
  */
1254
- class Google_Service_Drive_Apps_Resource extends Google_Service_Resource
1255
  {
1256
 
1257
  /**
@@ -1260,25 +1260,25 @@ class Google_Service_Drive_Apps_Resource extends Google_Service_Resource
1260
  * @param string $appId
1261
  * The ID of the app.
1262
  * @param array $optParams Optional parameters.
1263
- * @return Google_Service_Drive_App
1264
  */
1265
  public function get($appId, $optParams = array())
1266
  {
1267
  $params = array('appId' => $appId);
1268
  $params = array_merge($params, $optParams);
1269
- return $this->call('get', array($params), "Google_Service_Drive_App");
1270
  }
1271
  /**
1272
  * Lists a user's installed apps. (apps.listApps)
1273
  *
1274
  * @param array $optParams Optional parameters.
1275
- * @return Google_Service_Drive_AppList
1276
  */
1277
  public function listApps($optParams = array())
1278
  {
1279
  $params = array();
1280
  $params = array_merge($params, $optParams);
1281
- return $this->call('list', array($params), "Google_Service_Drive_AppList");
1282
  }
1283
  }
1284
 
@@ -1286,11 +1286,11 @@ class Google_Service_Drive_Apps_Resource extends Google_Service_Resource
1286
  * The "changes" collection of methods.
1287
  * Typical usage is:
1288
  * <code>
1289
- * $driveService = new Google_Service_Drive(...);
1290
  * $changes = $driveService->changes;
1291
  * </code>
1292
  */
1293
- class Google_Service_Drive_Changes_Resource extends Google_Service_Resource
1294
  {
1295
 
1296
  /**
@@ -1299,13 +1299,13 @@ class Google_Service_Drive_Changes_Resource extends Google_Service_Resource
1299
  * @param string $changeId
1300
  * The ID of the change.
1301
  * @param array $optParams Optional parameters.
1302
- * @return Google_Service_Drive_Change
1303
  */
1304
  public function get($changeId, $optParams = array())
1305
  {
1306
  $params = array('changeId' => $changeId);
1307
  $params = array_merge($params, $optParams);
1308
- return $this->call('get', array($params), "Google_Service_Drive_Change");
1309
  }
1310
  /**
1311
  * Lists the changes for a user. (changes.listChanges)
@@ -1324,18 +1324,18 @@ class Google_Service_Drive_Changes_Resource extends Google_Service_Resource
1324
  * Maximum number of changes to return.
1325
  * @opt_param string pageToken
1326
  * Page token for changes.
1327
- * @return Google_Service_Drive_ChangeList
1328
  */
1329
  public function listChanges($optParams = array())
1330
  {
1331
  $params = array();
1332
  $params = array_merge($params, $optParams);
1333
- return $this->call('list', array($params), "Google_Service_Drive_ChangeList");
1334
  }
1335
  /**
1336
  * Subscribe to changes for a user. (changes.watch)
1337
  *
1338
- * @param Google_Channel $postBody
1339
  * @param array $optParams Optional parameters.
1340
  *
1341
  * @opt_param bool includeSubscribed
@@ -1350,13 +1350,13 @@ class Google_Service_Drive_Changes_Resource extends Google_Service_Resource
1350
  * Maximum number of changes to return.
1351
  * @opt_param string pageToken
1352
  * Page token for changes.
1353
- * @return Google_Service_Drive_Channel
1354
  */
1355
- public function watch(Google_Service_Drive_Channel $postBody, $optParams = array())
1356
  {
1357
  $params = array('postBody' => $postBody);
1358
  $params = array_merge($params, $optParams);
1359
- return $this->call('watch', array($params), "Google_Service_Drive_Channel");
1360
  }
1361
  }
1362
 
@@ -1364,20 +1364,20 @@ class Google_Service_Drive_Changes_Resource extends Google_Service_Resource
1364
  * The "channels" collection of methods.
1365
  * Typical usage is:
1366
  * <code>
1367
- * $driveService = new Google_Service_Drive(...);
1368
  * $channels = $driveService->channels;
1369
  * </code>
1370
  */
1371
- class Google_Service_Drive_Channels_Resource extends Google_Service_Resource
1372
  {
1373
 
1374
  /**
1375
  * Stop watching resources through this channel (channels.stop)
1376
  *
1377
- * @param Google_Channel $postBody
1378
  * @param array $optParams Optional parameters.
1379
  */
1380
- public function stop(Google_Service_Drive_Channel $postBody, $optParams = array())
1381
  {
1382
  $params = array('postBody' => $postBody);
1383
  $params = array_merge($params, $optParams);
@@ -1389,11 +1389,11 @@ class Google_Service_Drive_Channels_Resource extends Google_Service_Resource
1389
  * The "children" collection of methods.
1390
  * Typical usage is:
1391
  * <code>
1392
- * $driveService = new Google_Service_Drive(...);
1393
  * $children = $driveService->children;
1394
  * </code>
1395
  */
1396
- class Google_Service_Drive_Children_Resource extends Google_Service_Resource
1397
  {
1398
 
1399
  /**
@@ -1419,28 +1419,28 @@ class Google_Service_Drive_Children_Resource extends Google_Service_Resource
1419
  * @param string $childId
1420
  * The ID of the child.
1421
  * @param array $optParams Optional parameters.
1422
- * @return Google_Service_Drive_ChildReference
1423
  */
1424
  public function get($folderId, $childId, $optParams = array())
1425
  {
1426
  $params = array('folderId' => $folderId, 'childId' => $childId);
1427
  $params = array_merge($params, $optParams);
1428
- return $this->call('get', array($params), "Google_Service_Drive_ChildReference");
1429
  }
1430
  /**
1431
  * Inserts a file into a folder. (children.insert)
1432
  *
1433
  * @param string $folderId
1434
  * The ID of the folder.
1435
- * @param Google_ChildReference $postBody
1436
  * @param array $optParams Optional parameters.
1437
- * @return Google_Service_Drive_ChildReference
1438
  */
1439
- public function insert($folderId, Google_Service_Drive_ChildReference $postBody, $optParams = array())
1440
  {
1441
  $params = array('folderId' => $folderId, 'postBody' => $postBody);
1442
  $params = array_merge($params, $optParams);
1443
- return $this->call('insert', array($params), "Google_Service_Drive_ChildReference");
1444
  }
1445
  /**
1446
  * Lists a folder's children. (children.listChildren)
@@ -1455,13 +1455,13 @@ class Google_Service_Drive_Children_Resource extends Google_Service_Resource
1455
  * Page token for children.
1456
  * @opt_param int maxResults
1457
  * Maximum number of children to return.
1458
- * @return Google_Service_Drive_ChildList
1459
  */
1460
  public function listChildren($folderId, $optParams = array())
1461
  {
1462
  $params = array('folderId' => $folderId);
1463
  $params = array_merge($params, $optParams);
1464
- return $this->call('list', array($params), "Google_Service_Drive_ChildList");
1465
  }
1466
  }
1467
 
@@ -1469,11 +1469,11 @@ class Google_Service_Drive_Children_Resource extends Google_Service_Resource
1469
  * The "comments" collection of methods.
1470
  * Typical usage is:
1471
  * <code>
1472
- * $driveService = new Google_Service_Drive(...);
1473
  * $comments = $driveService->comments;
1474
  * </code>
1475
  */
1476
- class Google_Service_Drive_Comments_Resource extends Google_Service_Resource
1477
  {
1478
 
1479
  /**
@@ -1503,28 +1503,28 @@ class Google_Service_Drive_Comments_Resource extends Google_Service_Resource
1503
  * @opt_param bool includeDeleted
1504
  * If set, this will succeed when retrieving a deleted comment, and will include any deleted
1505
  * replies.
1506
- * @return Google_Service_Drive_Comment
1507
  */
1508
  public function get($fileId, $commentId, $optParams = array())
1509
  {
1510
  $params = array('fileId' => $fileId, 'commentId' => $commentId);
1511
  $params = array_merge($params, $optParams);
1512
- return $this->call('get', array($params), "Google_Service_Drive_Comment");
1513
  }
1514
  /**
1515
  * Creates a new comment on the given file. (comments.insert)
1516
  *
1517
  * @param string $fileId
1518
  * The ID of the file.
1519
- * @param Google_Comment $postBody
1520
  * @param array $optParams Optional parameters.
1521
- * @return Google_Service_Drive_Comment
1522
  */
1523
- public function insert($fileId, Google_Service_Drive_Comment $postBody, $optParams = array())
1524
  {
1525
  $params = array('fileId' => $fileId, 'postBody' => $postBody);
1526
  $params = array_merge($params, $optParams);
1527
- return $this->call('insert', array($params), "Google_Service_Drive_Comment");
1528
  }
1529
  /**
1530
  * Lists a file's comments. (comments.listComments)
@@ -1544,13 +1544,13 @@ class Google_Service_Drive_Comments_Resource extends Google_Service_Resource
1544
  * will be returned.
1545
  * @opt_param int maxResults
1546
  * The maximum number of discussions to include in the response, used for paging.
1547
- * @return Google_Service_Drive_CommentList
1548
  */
1549
  public function listComments($fileId, $optParams = array())
1550
  {
1551
  $params = array('fileId' => $fileId);
1552
  $params = array_merge($params, $optParams);
1553
- return $this->call('list', array($params), "Google_Service_Drive_CommentList");
1554
  }
1555
  /**
1556
  * Updates an existing comment. This method supports patch semantics.
@@ -1560,15 +1560,15 @@ class Google_Service_Drive_Comments_Resource extends Google_Service_Resource
1560
  * The ID of the file.
1561
  * @param string $commentId
1562
  * The ID of the comment.
1563
- * @param Google_Comment $postBody
1564
  * @param array $optParams Optional parameters.
1565
- * @return Google_Service_Drive_Comment
1566
  */
1567
- public function patch($fileId, $commentId, Google_Service_Drive_Comment $postBody, $optParams = array())
1568
  {
1569
  $params = array('fileId' => $fileId, 'commentId' => $commentId, 'postBody' => $postBody);
1570
  $params = array_merge($params, $optParams);
1571
- return $this->call('patch', array($params), "Google_Service_Drive_Comment");
1572
  }
1573
  /**
1574
  * Updates an existing comment. (comments.update)
@@ -1577,15 +1577,15 @@ class Google_Service_Drive_Comments_Resource extends Google_Service_Resource
1577
  * The ID of the file.
1578
  * @param string $comment
29
  *
30
  * @author Google, Inc.
31
  */
32
+ class GoogleGAL_Service_Drive extends GoogleGAL_Service
33
  {
34
  /** View and manage the files and documents in your Google Drive. */
35
  const DRIVE = "https://www.googleapis.com/auth/drive";
64
  /**
65
  * Constructs the internal representation of the Drive service.
66
  *
67
+ * @param GoogleGAL_Client $client
68
  */
69
+ public function __construct(GoogleGAL_Client $client)
70
  {
71
  parent::__construct($client);
72
  $this->servicePath = 'drive/v2/';
73
  $this->version = 'v2';
74
  $this->serviceName = 'drive';
75
 
76
+ $this->about = new GoogleGAL_Service_Drive_About_Resource(
77
  $this,
78
  $this->serviceName,
79
  'about',
100
  )
101
  )
102
  );
103
+ $this->apps = new GoogleGAL_Service_Drive_Apps_Resource(
104
  $this,
105
  $this->serviceName,
106
  'apps',
124
  )
125
  )
126
  );
127
+ $this->changes = new GoogleGAL_Service_Drive_Changes_Resource(
128
  $this,
129
  $this->serviceName,
130
  'changes',
194
  )
195
  )
196
  );
197
+ $this->channels = new GoogleGAL_Service_Drive_Channels_Resource(
198
  $this,
199
  $this->serviceName,
200
  'channels',
208
  )
209
  )
210
  );
211
+ $this->children = new GoogleGAL_Service_Drive_Children_Resource(
212
  $this,
213
  $this->serviceName,
214
  'children',
280
  )
281
  )
282
  );
283
+ $this->comments = new GoogleGAL_Service_Drive_Comments_Resource(
284
  $this,
285
  $this->serviceName,
286
  'comments',
390
  )
391
  )
392
  );
393
+ $this->files = new GoogleGAL_Service_Drive_Files_Resource(
394
  $this,
395
  $this->serviceName,
396
  'files',
672
  )
673
  )
674
  );
675
+ $this->parents = new GoogleGAL_Service_Drive_Parents_Resource(
676
  $this,
677
  $this->serviceName,
678
  'parents',
732
  )
733
  )
734
  );
735
+ $this->permissions = new GoogleGAL_Service_Drive_Permissions_Resource(
736
  $this,
737
  $this->serviceName,
738
  'permissions',
848
  )
849
  )
850
  );
851
+ $this->properties = new GoogleGAL_Service_Drive_Properties_Resource(
852
  $this,
853
  $this->serviceName,
854
  'properties',
954
  )
955
  )
956
  );
957
+ $this->realtime = new GoogleGAL_Service_Drive_Realtime_Resource(
958
  $this,
959
  $this->serviceName,
960
  'realtime',
988
  )
989
  )
990
  );
991
+ $this->replies = new GoogleGAL_Service_Drive_Replies_Resource(
992
  $this,
993
  $this->serviceName,
994
  'replies',
1124
  )
1125
  )
1126
  );
1127
+ $this->revisions = new GoogleGAL_Service_Drive_Revisions_Resource(
1128
  $this,
1129
  $this->serviceName,
1130
  'revisions',
1212
  * The "about" collection of methods.
1213
  * Typical usage is:
1214
  * <code>
1215
+ * $driveService = new GoogleGAL_Service_Drive(...);
1216
  * $about = $driveService->about;
1217
  * </code>
1218
  */
1219
+ class GoogleGAL_Service_Drive_About_Resource extends GoogleGAL_Service_Resource
1220
  {
1221
 
1222
  /**
1233
  * Maximum number of remaining change IDs to count
1234
  * @opt_param string startChangeId
1235
  * Change ID to start counting from when calculating number of remaining change IDs
1236
+ * @return GoogleGAL_Service_Drive_About
1237
  */
1238
  public function get($optParams = array())
1239
  {
1240
  $params = array();
1241
  $params = array_merge($params, $optParams);
1242
+ return $this->call('get', array($params), "GoogleGAL_Service_Drive_About");
1243
  }
1244
  }
1245
 
1247
  * The "apps" collection of methods.
1248
  * Typical usage is:
1249
  * <code>
1250
+ * $driveService = new GoogleGAL_Service_Drive(...);
1251
  * $apps = $driveService->apps;
1252
  * </code>
1253
  */
1254
+ class GoogleGAL_Service_Drive_Apps_Resource extends GoogleGAL_Service_Resource
1255
  {
1256
 
1257
  /**
1260
  * @param string $appId
1261
  * The ID of the app.
1262
  * @param array $optParams Optional parameters.
1263
+ * @return GoogleGAL_Service_Drive_App
1264
  */
1265
  public function get($appId, $optParams = array())
1266
  {
1267
  $params = array('appId' => $appId);
1268
  $params = array_merge($params, $optParams);
1269
+ return $this->call('get', array($params), "GoogleGAL_Service_Drive_App");
1270
  }
1271
  /**
1272
  * Lists a user's installed apps. (apps.listApps)
1273
  *
1274
  * @param array $optParams Optional parameters.
1275
+ * @return GoogleGAL_Service_Drive_AppList
1276
  */
1277
  public function listApps($optParams = array())
1278
  {
1279
  $params = array();
1280
  $params = array_merge($params, $optParams);
1281
+ return $this->call('list', array($params), "GoogleGAL_Service_Drive_AppList");
1282
  }
1283
  }
1284
 
1286
  * The "changes" collection of methods.
1287
  * Typical usage is:
1288
  * <code>
1289
+ * $driveService = new GoogleGAL_Service_Drive(...);
1290
  * $changes = $driveService->changes;
1291
  * </code>
1292
  */
1293
+ class GoogleGAL_Service_Drive_Changes_Resource extends GoogleGAL_Service_Resource
1294
  {
1295
 
1296
  /**
1299
  * @param string $changeId
1300
  * The ID of the change.
1301
  * @param array $optParams Optional parameters.
1302
+ * @return GoogleGAL_Service_Drive_Change
1303
  */
1304
  public function get($changeId, $optParams = array())
1305
  {
1306
  $params = array('changeId' => $changeId);
1307
  $params = array_merge($params, $optParams);
1308
+ return $this->call('get', array($params), "GoogleGAL_Service_Drive_Change");
1309
  }
1310
  /**
1311
  * Lists the changes for a user. (changes.listChanges)
1324
  * Maximum number of changes to return.
1325
  * @opt_param string pageToken
1326
  * Page token for changes.
1327
+ * @return GoogleGAL_Service_Drive_ChangeList
1328
  */
1329
  public function listChanges($optParams = array())
1330
  {
1331
  $params = array();
1332
  $params = array_merge($params, $optParams);
1333
+ return $this->call('list', array($params), "GoogleGAL_Service_Drive_ChangeList");
1334
  }
1335
  /**
1336
  * Subscribe to changes for a user. (changes.watch)
1337
  *
1338
+ * @param GoogleGAL_Channel $postBody
1339
  * @param array $optParams Optional parameters.
1340
  *
1341
  * @opt_param bool includeSubscribed
1350
  * Maximum number of changes to return.
1351
  * @opt_param string pageToken
1352
  * Page token for changes.
1353
+ * @return GoogleGAL_Service_Drive_Channel
1354
  */
1355
+ public function watch(GoogleGAL_Service_Drive_Channel $postBody, $optParams = array())
1356
  {
1357
  $params = array('postBody' => $postBody);
1358
  $params = array_merge($params, $optParams);
1359
+ return $this->call('watch', array($params), "GoogleGAL_Service_Drive_Channel");
1360
  }
1361
  }
1362
 
1364
  * The "channels" collection of methods.
1365
  * Typical usage is:
1366
  * <code>
1367
+ * $driveService = new GoogleGAL_Service_Drive(...);
1368
  * $channels = $driveService->channels;
1369
  * </code>
1370
  */
1371
+ class GoogleGAL_Service_Drive_Channels_Resource extends GoogleGAL_Service_Resource
1372
  {
1373
 
1374
  /**
1375
  * Stop watching resources through this channel (channels.stop)
1376
  *
1377
+ * @param GoogleGAL_Channel $postBody
1378
  * @param array $optParams Optional parameters.
1379
  */
1380
+ public function stop(GoogleGAL_Service_Drive_Channel $postBody, $optParams = array())
1381
  {
1382
  $params = array('postBody' => $postBody);
1383
  $params = array_merge($params, $optParams);
1389
  * The "children" collection of methods.
1390
  * Typical usage is:
1391
  * <code>
1392
+ * $driveService = new GoogleGAL_Service_Drive(...);
1393
  * $children = $driveService->children;
1394
  * </code>
1395
  */
1396
+ class GoogleGAL_Service_Drive_Children_Resource extends GoogleGAL_Service_Resource
1397
  {
1398
 
1399
  /**
1419
  * @param string $childId
1420
  * The ID of the child.
1421
  * @param array $optParams Optional parameters.
1422
+ * @return GoogleGAL_Service_Drive_ChildReference
1423
  */
1424
  public function get($folderId, $childId, $optParams = array())
1425
  {
1426
  $params = array('folderId' => $folderId, 'childId' => $childId);
1427
  $params = array_merge($params, $optParams);
1428
+ return $this->call('get', array($params), "GoogleGAL_Service_Drive_ChildReference");
1429
  }
1430
  /**
1431
  * Inserts a file into a folder. (children.insert)
1432
  *
1433
  * @param string $folderId
1434
  * The ID of the folder.
1435
+ * @param GoogleGAL_ChildReference $postBody
1436
  * @param array $optParams Optional parameters.
1437
+ * @return GoogleGAL_Service_Drive_ChildReference
1438
  */
1439
+ public function insert($folderId, GoogleGAL_Service_Drive_ChildReference $postBody, $optParams = array())
1440
  {
1441
  $params = array('folderId' => $folderId, 'postBody' => $postBody);
1442
  $params = array_merge($params, $optParams);
1443
+ return $this->call('insert', array($params), "GoogleGAL_Service_Drive_ChildReference");
1444
  }
1445
  /**
1446
  * Lists a folder's children. (children.listChildren)
1455
  * Page token for children.
1456
  * @opt_param int maxResults
1457
  * Maximum number of children to return.
1458
+ * @return GoogleGAL_Service_Drive_ChildList
1459
  */
1460
  public function listChildren($folderId, $optParams = array())
1461
  {
1462
  $params = array('folderId' => $folderId);
1463
  $params = array_merge($params, $optParams);
1464
+ return $this->call('list', array($params), "GoogleGAL_Service_Drive_ChildList");
1465
  }
1466
  }
1467
 
1469
  * The "comments" collection of methods.
1470
  * Typical usage is:
1471
  * <code>
1472
+ * $driveService = new GoogleGAL_Service_Drive(...);
1473
  * $comments = $driveService->comments;
1474
  * </code>
1475
  */
1476
+ class GoogleGAL_Service_Drive_Comments_Resource extends GoogleGAL_Service_Resource
1477
  {
1478
 
1479
  /**
1503
  * @opt_param bool includeDeleted
1504
  * If set, this will succeed when retrieving a deleted comment, and will include any deleted
1505
  * replies.
1506
+ * @return GoogleGAL_Service_Drive_Comment
1507
  */
1508
  public function get($fileId, $commentId, $optParams = array())
1509
  {
1510
  $params = array('fileId' => $fileId, 'commentId' => $commentId);
1511
  $params = array_merge($params, $optParams);
1512
+ return $this->call('get', array($params), "GoogleGAL_Service_Drive_Comment");
1513
  }
1514
  /**
1515
  * Creates a new comment on the given file. (comments.insert)
1516
  *
1517
  * @param string $fileId
1518
  * The ID of the file.
1519
+ * @param GoogleGAL_Comment $postBody
1520
  * @param array $optParams Optional parameters.
1521
+ * @return GoogleGAL_Service_Drive_Comment
1522
  */
1523
+ public function insert($fileId, GoogleGAL_Service_Drive_Comment $postBody, $optParams = array())
1524
  {
1525
  $params = array('fileId' => $fileId, 'postBody' => $postBody);
1526
  $params = array_merge($params, $optParams);
1527
+ return $this->call('insert', array($params), "GoogleGAL_Service_Drive_Comment");
1528
  }
1529
  /**
1530
  * Lists a file's comments. (comments.listComments)
1544
  * will be returned.
1545
  * @opt_param int maxResults
1546
  * The maximum number of discussions to include in the response, used for paging.
1547
+ * @return GoogleGAL_Service_Drive_CommentList
1548
  */
1549
  public function listComments($fileId, $optParams = array())
1550
  {
1551
  $params = array('fileId' => $fileId);
1552
  $params = array_merge($params, $optParams);
1553
+ return $this->call('list', array($params), "GoogleGAL_Service_Drive_CommentList");
1554
  }
1555
  /**
1556
  * Updates an existing comment. This method supports patch semantics.
1560
  * The ID of the file.
1561
  * @param string $commentId
1562
  * The ID of the comment.
1563
+ * @param GoogleGAL_Comment $postBody
1564
  * @param array $optParams Optional parameters.
1565
+ * @return GoogleGAL_Service_Drive_Comment
1566
  */
1567
+ public function patch($fileId, $commentId, GoogleGAL_Service_Drive_Comment $postBody, $optParams = array())
1568
  {
1569
  $params = array('fileId' => $fileId, 'commentId' => $commentId, 'postBody' => $postBody);
1570
  $params = array_merge($params, $optParams);
1571
+ return $this->call('patch', array($params), "GoogleGAL_Service_Drive_Comment");
1572
  }
1573
  /**
1574
  * Updates an existing comment. (comments.update)
1577
  * The ID of the file.
1578
  * @param string $comment