Google Apps Login - Version 1.0

Version Description

All existing versions are functionally identical - no need to upgrade.

Download this release

Release Info

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

Version 1.0

Files changed (34) hide show
  1. google_apps_login.php +338 -0
  2. googleclient/Google_Client.php +471 -0
  3. googleclient/LICENSE +203 -0
  4. googleclient/NOTICE +4 -0
  5. googleclient/README +40 -0
  6. googleclient/auth/Google_AssertionCredentials.php +103 -0
  7. googleclient/auth/Google_Auth.php +36 -0
  8. googleclient/auth/Google_AuthNone.php +48 -0
  9. googleclient/auth/Google_LoginTicket.php +63 -0
  10. googleclient/auth/Google_OAuth2.php +453 -0
  11. googleclient/auth/Google_P12Signer.php +70 -0
  12. googleclient/auth/Google_PemVerifier.php +66 -0
  13. googleclient/auth/Google_Signer.php +30 -0
  14. googleclient/auth/Google_Verifier.php +31 -0
  15. googleclient/cache/Google_ApcCache.php +98 -0
  16. googleclient/cache/Google_Cache.php +55 -0
  17. googleclient/cache/Google_FileCache.php +137 -0
  18. googleclient/cache/Google_MemcacheCache.php +130 -0
  19. googleclient/config.php +81 -0
  20. googleclient/contrib/Google_AdExchangeSellerService.php +1262 -0
  21. googleclient/contrib/Google_AdSenseService.php +2054 -0
  22. googleclient/contrib/Google_AdexchangebuyerService.php +705 -0
  23. googleclient/contrib/Google_AdsensehostService.php +1376 -0
  24. googleclient/contrib/Google_AnalyticsService.php +4336 -0
  25. googleclient/contrib/Google_AndroidpublisherService.php +198 -0
  26. googleclient/contrib/Google_AppstateService.php +253 -0
  27. googleclient/contrib/Google_AuditService.php +274 -0
  28. googleclient/contrib/Google_BigqueryService.php +2011 -0
  29. googleclient/contrib/Google_BloggerService.php +1389 -0
  30. googleclient/contrib/Google_BooksService.php +3491 -0
  31. googleclient/contrib/Google_CalendarService.php +1971 -0
  32. googleclient/contrib/Google_CivicInfoService.php +778 -0
  33. googleclient/contrib/Google_ComputeService.php +4403 -0
  34. googleclient/contrib/Google_CoordinateService.php +252 -0
google_apps_login.php ADDED
@@ -0,0 +1,338 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+
3
+ /**
4
+ * Plugin Name: Google Apps Login
5
+ * Plugin URI: http://wp-glogin.com/
6
+ * Description: Easy login for your Wordpress users by using their Google accounts (uses OAuth2 and requires a Google Apps domain).
7
+ * Version: 1.0
8
+ * Author: Dan Lester
9
+ * Author URI: http://danlester.com/
10
+ * License: GPL3
11
+ */
12
+
13
+ class google_apps_login {
14
+
15
+ function createGoogleClient() {
16
+ require_once 'googleclient/Google_Client.php';
17
+ require_once 'googleclient/contrib/Google_Oauth2Service.php';
18
+
19
+ $options = get_option('galogin');
20
+
21
+ $client = new Google_Client();
22
+ $client->setApplicationName("Wordpress Blog");
23
+
24
+ $client->setClientId($options['ga_clientid']);
25
+ $client->setClientSecret($options['ga_clientsecret']);
26
+ $client->setRedirectUri(wp_login_url());
27
+
28
+ $client->setScopes(Array('openid', 'email', 'https://www.googleapis.com/auth/userinfo.profile'));
29
+ $client->setApprovalPrompt('auto');
30
+
31
+ $oauthservice = new Google_Oauth2Service($client);
32
+
33
+ return Array($client, $oauthservice);
34
+ }
35
+
36
+ function ga_login_styles() { ?>
37
+ <style type="text/css">
38
+ form#loginform div.galogin {
39
+ float: right;
40
+ margin-top: 28px;
41
+ background: #DFDFDF;
42
+ text-align: center;
43
+ vertical-align: middle;
44
+ border-radius: 3px;
45
+ padding: 2px;
46
+ width: 58%;
47
+ height: 27px;
48
+ }
49
+
50
+ form#loginform div.galogin a {
51
+ color: #21759B;
52
+ position: relative;
53
+ top: 6px;
54
+ }
55
+
56
+ form#loginform div.galogin a:hover {
57
+ color: #278AB7;
58
+ }
59
+
60
+ .login .button-primary {
61
+ float: none;
62
+ margin-top: 10px;
63
+ }
64
+ </style>
65
+ <?php }
66
+
67
+ function ga_login_form() {
68
+ self::_ga_unset_session();
69
+
70
+ $clients = self::createGoogleClient();
71
+ $client = $clients[0];
72
+
73
+ // Generate a CSRF token
74
+ $state = md5(rand());
75
+ $_SESSION['galogin_state'] = $state;
76
+ $client->setState($state);
77
+
78
+ // Store following WP page if any
79
+ if (array_key_exists('redirect_to', $_REQUEST)) {
80
+ $_SESSION['galogin_redirect_to'] = $_REQUEST['redirect_to'];
81
+ }
82
+
83
+ $authUrl = $client->createAuthUrl();
84
+ ?>
85
+ <div class="galogin">
86
+ <a href="<?php echo $authUrl; ?>">or <b>Login with Google</b></a>
87
+ </div>
88
+ <?php
89
+ }
90
+
91
+ function ga_authenticate($user) {
92
+ if (isset($_REQUEST['error'])) {
93
+ $user = new WP_Error('ga_login_error', $_REQUEST['error'] == 'access_denied' ? 'You did not grant access' : $_REQUEST['error']);
94
+ return self::displayAndReturnError($user);
95
+ }
96
+
97
+ $clients = self::createGoogleClient();
98
+ $client = $clients[0];
99
+ $oauthservice = $clients[1];
100
+
101
+ if (isset($_GET['code'])) {
102
+ if (session_id() && (!isset($_REQUEST['state']) || !isset($_SESSION['galogin_state'])
103
+ || $_REQUEST['state'] != $_SESSION['galogin_state'])) {
104
+ $user = new WP_Error('ga_login_error', "Session mismatch - try again, but there could be a problem setting cookies");
105
+ return self::displayAndReturnError($user);
106
+ }
107
+
108
+ try {
109
+ $client->authenticate($_GET['code']);
110
+
111
+ /* userinfo example:
112
+ "id": "115886881859296909934",
113
+ "email": "dan@danlester.com",
114
+ "verified_email": true,
115
+ "name": "Dan Lester",
116
+ "given_name": "Dan",
117
+ "family_name": "Lester",
118
+ "link": "https://plus.google.com/115886881859296909934",
119
+ "picture": "https://lh3.googleusercontent.com/-r4WThnaSX8o/AAAAAAAAAAI/AAAAAAAAABE/pEJQwH5wyqM/photo.jpg",
120
+ "gender": "male",
121
+ "locale": "en-GB",
122
+ "hd": "danlester.com"
123
+ */
124
+ $userinfo = $oauthservice->userinfo->get();
125
+ if ($userinfo && is_array($userinfo) && array_key_exists('email', $userinfo)
126
+ && array_key_exists('verified_email', $userinfo)) {
127
+
128
+ $google_email = $userinfo['email'];
129
+ $google_verified_email = $userinfo['verified_email'];
130
+
131
+ if (!$google_verified_email) {
132
+ $user = new WP_Error('ga_login_error', 'Email needs to be verified on your Google Account');
133
+ }
134
+ else {
135
+ $user = get_user_by('email', $google_email);
136
+
137
+ if (!$user) {
138
+ $user = new WP_Error('ga_login_error', 'User '.$google_email.' not registered in Wordpress');
139
+ }
140
+ else {
141
+ if (session_id() && array_key_exists('galogin_redirect_to', $_SESSION)) {
142
+ $_SESSION['galogin_do_redirect_to'] = $_SESSION['galogin_redirect_to'];
143
+ }
144
+ }
145
+ }
146
+ }
147
+ else {
148
+ $user = new WP_Error('ga_login_error', "User authenticated OK, but error fetching user details from Google");
149
+ }
150
+ } catch (Google_Exception $e) {
151
+ $user = new WP_Error('ga_login_error', $e->getMessage());
152
+ }
153
+ }
154
+
155
+ // Tidy things up for next time
156
+ self::_ga_unset_session();
157
+
158
+ if (is_wp_error($user)) {
159
+ self::displayAndReturnError($user);
160
+ }
161
+
162
+ return $user;
163
+ }
164
+
165
+ function displayAndReturnError($user) {
166
+ if (is_wp_error($user) && get_bloginfo('version') < 3.7) {
167
+ // Only newer wordpress versions display errors from $user for us
168
+ global $error;
169
+ $error = htmlentities2($user->get_error_message());
170
+ }
171
+ return $user;
172
+ }
173
+
174
+ function ga_init() {
175
+ if(!session_id()) {
176
+ @session_start();
177
+ }
178
+ if (array_key_exists('galogin_do_redirect_to', $_SESSION)) {
179
+ // Login page originally contained a redirect url, so go there now all auth is finished
180
+ $url = $_SESSION['galogin_do_redirect_to'];
181
+ unset($_SESSION['galogin_do_redirect_to']);
182
+ wp_redirect($url);
183
+ exit;
184
+ }
185
+ }
186
+
187
+ function _ga_unset_session() {
188
+ // Reset session state
189
+ if (session_id()) {
190
+ if (array_key_exists('galogin_redirect_to', $_SESSION)) {
191
+ unset($_SESSION['galogin_redirect_to']);
192
+ }
193
+ if (array_key_exists('galogin_state', $_SESSION)) {
194
+ unset($_SESSION['galogin_state']);
195
+ unset($_SESSION['state']);
196
+ }
197
+ }
198
+ }
199
+
200
+ function ga_admin_init() {
201
+
202
+ register_setting( 'galogin_options', 'galogin', Array('google_apps_login', 'ga_options_validate') );
203
+
204
+ add_settings_section('galogin_main_section', 'Main Settings',
205
+ array('google_apps_login', 'ga_section_text'), 'galogin');
206
+
207
+ add_settings_field('ga_clientid', 'Client ID',
208
+ array('google_apps_login', 'ga_do_settings_clientid'), 'galogin', 'galogin_main_section');
209
+ add_settings_field('ga_clientsecret', 'Client Secret',
210
+ array('google_apps_login', 'ga_do_settings_clientsecret'), 'galogin', 'galogin_main_section');
211
+ }
212
+
213
+ function ga_admin_menu() {
214
+ add_options_page('Google Apps Login settings', 'Google Apps Login',
215
+ 'manage_options', 'galogin_list_options',
216
+ array('google_apps_login', 'ga_options_do_page'));
217
+ }
218
+
219
+ function ga_options_do_page() { ?>
220
+ <div>
221
+ <h2>Google Apps Login setup</h2>
222
+ Set up your blog to enable Google logins.
223
+ <form action="options.php" method="post">
224
+ <?php settings_fields('galogin_options'); ?>
225
+ <?php do_settings_sections('galogin'); ?>
226
+
227
+ <input name="Submit" type="submit" value="<?php esc_attr_e('Save Changes'); ?>" />
228
+ </form></div> <?php
229
+ }
230
+
231
+ function ga_do_settings_clientid() {
232
+ $options = get_option('galogin');
233
+ echo "<input id='plugin_text_string' name='galogin[ga_clientid]' size='80' type='text' value='{$options['ga_clientid']}' />";
234
+ echo "<br /><span>Normally something like 1234567890123.apps.googleusercontent.com</span>";
235
+ }
236
+
237
+ function ga_do_settings_clientsecret() {
238
+ $options = get_option('galogin');
239
+ echo "<input id='plugin_text_string' name='galogin[ga_clientsecret]' size='40' type='text' value='{$options['ga_clientsecret']}' />";
240
+ echo "<br /><span>Normally something like sHSfR4_jf_2jsy-kjPjgf2dT</span>";
241
+ }
242
+
243
+ function ga_section_text() {
244
+ ?>
245
+ <p>The Google Apps domain admin needs to go to
246
+ <a href="https://cloud.google.com/console" target="_blank">https://cloud.google.com/console</a>. If you
247
+ are not the domain admin, you may still have permissions to use the console, so just try it. If you are
248
+ not using Google Apps, then just use your regular Gmail account to access the console.
249
+ </p>
250
+ <p>There, create a new project (any name is fine, and just leave Project ID as it is) - you may be required to
251
+ accept a verification phone call or SMS from Google.</p>
252
+
253
+ <p>Then create a Web application within the project. To create the application,
254
+ you need to click into the new project, then click <i>APIs &amp; Auth</i> in the left-hand menu.
255
+ Click <i>Registered Apps</i> beneath that, then click the red <i>Register App</i> button.
256
+ You can choose any name you wish, and make sure you select <i>Web Application</i> as the Platform type.
257
+ </p>
258
+ <p>
259
+ Once you have created the application, you may need to open up the <i>OAuth 2.0 Client ID</i> section to be able to complete
260
+ the following steps.
261
+ </p>
262
+ <p>You must input, into your new Google application, the following items:
263
+ <ul style="margin-left: 10px;">
264
+ <li>Web Origin: <?php echo site_url(); ?></li>
265
+ <li>Redirect URL: <?php echo wp_login_url(); ?></li>
266
+ <?php
267
+ if (force_ssl_login() && strtolower(substr(wp_login_url(),0,7)) == 'http://') {
268
+ ?>
269
+ <li>
270
+ Redirect URL (add a 2nd entry): https://<?php echo substr(wp_login_url(),7); ?>
271
+ </li>
272
+ <?php
273
+ }
274
+ ?>
275
+ </ul>
276
+ </p>
277
+ <p>Click Generate. You will see a Client ID and Client Secret which you must copy
278
+ and paste into the boxes below on this screen - i.e. back in your Wordpress admin, right here.</p>
279
+
280
+ <p><b>Optional:</b> In the Google Cloud Console, you can configure some things your users will see when they
281
+ login. By default, Google will tell them they are authorizing 'Project Default Service Account', which is
282
+ not very user friendly. You can change this to your company or blog name (and add your logo etc) by clicking
283
+ <i>Consent screen</i> (which is another sub-menu of <i>APIs &amp; Auth</i>).
284
+ </p>
285
+
286
+ <p><b>For support and premium features, please visit: <a href="http://wp-glogin.com/" target="_blank">http://wp-glogin.com/</a></b></p>
287
+
288
+ <?php
289
+ }
290
+
291
+ function ga_options_validate($input) {
292
+ $newinput = Array();
293
+ $newinput['ga_clientid'] = trim($input['ga_clientid']);
294
+ $newinput['ga_clientsecret'] = trim($input['ga_clientsecret']);
295
+ if(!preg_match('/^.{10}.*$/i', $newinput['ga_clientid'])) {
296
+ add_settings_error(
297
+ 'ga_clientid',
298
+ 'tooshort_texterror',
299
+ 'The Client ID should be longer than that',
300
+ 'error'
301
+ );
302
+ }
303
+ if(!preg_match('/^.{10}.*$/i', $newinput['ga_clientsecret'])) {
304
+ add_settings_error(
305
+ 'ga_clientsecret',
306
+ 'tooshort_texterror',
307
+ 'The Client Secret should be longer than that',
308
+ 'error'
309
+ );
310
+ }
311
+ return $newinput;
312
+ }
313
+
314
+ function ga_on_uninstall() {
315
+ if (!current_user_can('activate_plugins'))
316
+ return;
317
+
318
+ // Important: Check if the file is the one
319
+ // that was registered during the uninstall hook.
320
+ if (!defined( 'WP_UNINSTALL_PLUGIN' ) || __FILE__ != WP_UNINSTALL_PLUGIN)
321
+ return;
322
+
323
+ // Remove options for plugin
324
+ delete_option('galogin');
325
+ }
326
+ }
327
+
328
+ add_action('login_enqueue_scripts', array('google_apps_login', 'ga_login_styles'));
329
+ add_action('login_form', array('google_apps_login', 'ga_login_form'));
330
+ add_action('authenticate', array('google_apps_login', 'ga_authenticate'));
331
+ add_action('init', array('google_apps_login', 'ga_init'), 1);
332
+
333
+ add_action('admin_init', array('google_apps_login', 'ga_admin_init'));
334
+ add_action('admin_menu', array('google_apps_login', 'ga_admin_menu'));
335
+
336
+ register_uninstall_hook(__FILE__, array('google_apps_login', 'ga_on_uninstall'));
337
+
338
+ ?>
googleclient/Google_Client.php ADDED
@@ -0,0 +1,471 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /*
3
+ * Copyright 2010 Google Inc.
4
+ *
5
+ * Licensed under the Apache License, Version 2.0 (the "License");
6
+ * you may not use this file except in compliance with the License.
7
+ * You may obtain a copy of the License at
8
+ *
9
+ * http://www.apache.org/licenses/LICENSE-2.0
10
+ *
11
+ * Unless required by applicable law or agreed to in writing, software
12
+ * distributed under the License is distributed on an "AS IS" BASIS,
13
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14
+ * See the License for the specific language governing permissions and
15
+ * limitations under the License.
16
+ */
17
+
18
+ // Check for the json extension, the Google APIs PHP Client won't function
19
+ // without it.
20
+ if (! function_exists('json_decode')) {
21
+ throw new Exception('Google PHP API Client requires the JSON PHP extension');
22
+ }
23
+
24
+ if (! function_exists('http_build_query')) {
25
+ throw new Exception('Google PHP API Client requires http_build_query()');
26
+ }
27
+
28
+ if (! ini_get('date.timezone') && function_exists('date_default_timezone_set')) {
29
+ date_default_timezone_set('UTC');
30
+ }
31
+
32
+ // hack around with the include paths a bit so the library 'just works'
33
+ set_include_path(dirname(__FILE__) . PATH_SEPARATOR . get_include_path());
34
+
35
+ require_once "config.php";
36
+ // If a local configuration file is found, merge it's values with the default configuration
37
+ if (file_exists(dirname(__FILE__) . '/local_config.php')) {
38
+ $defaultConfig = $apiConfig;
39
+ require_once (dirname(__FILE__) . '/local_config.php');
40
+ $apiConfig = array_merge($defaultConfig, $apiConfig);
41
+ }
42
+
43
+ // Include the top level classes, they each include their own dependencies
44
+ require_once 'service/Google_Model.php';
45
+ require_once 'service/Google_Service.php';
46
+ require_once 'service/Google_ServiceResource.php';
47
+ require_once 'auth/Google_AssertionCredentials.php';
48
+ require_once 'auth/Google_Signer.php';
49
+ require_once 'auth/Google_P12Signer.php';
50
+ require_once 'service/Google_BatchRequest.php';
51
+ require_once 'external/URITemplateParser.php';
52
+ require_once 'auth/Google_Auth.php';
53
+ require_once 'cache/Google_Cache.php';
54
+ require_once 'io/Google_IO.php';
55
+ require_once('service/Google_MediaFileUpload.php');
56
+
57
+ /**
58
+ * The Google API Client
59
+ * http://code.google.com/p/google-api-php-client/
60
+ *
61
+ * @author Chris Chabot <chabotc@google.com>
62
+ * @author Chirag Shah <chirags@google.com>
63
+ */
64
+ class Google_Client {
65
+ /**
66
+ * @static
67
+ * @var Google_Auth $auth
68
+ */
69
+ static $auth;
70
+
71
+ /**
72
+ * @static
73
+ * @var Google_IO $io
74
+ */
75
+ static $io;
76
+
77
+ /**
78
+ * @static
79
+ * @var Google_Cache $cache
80
+ */
81
+ static $cache;
82
+
83
+ /**
84
+ * @static
85
+ * @var boolean $useBatch
86
+ */
87
+ static $useBatch = false;
88
+
89
+ /** @var array $scopes */
90
+ protected $scopes = array();
91
+
92
+ /** @var bool $useObjects */
93
+ protected $useObjects = false;
94
+
95
+ // definitions of services that are discovered.
96
+ protected $services = array();
97
+
98
+ // Used to track authenticated state, can't discover services after doing authenticate()
99
+ private $authenticated = false;
100
+
101
+ public function __construct($config = array()) {
102
+ global $apiConfig;
103
+ $apiConfig = array_merge($apiConfig, $config);
104
+ self::$cache = new $apiConfig['cacheClass']();
105
+ self::$auth = new $apiConfig['authClass']();
106
+ self::$io = new $apiConfig['ioClass']();
107
+ }
108
+
109
+ /**
110
+ * Add a service
111
+ */
112
+ public function addService($service, $version = false) {
113
+ global $apiConfig;
114
+ if ($this->authenticated) {
115
+ throw new Google_Exception('Cant add services after having authenticated');
116
+ }
117
+ $this->services[$service] = array();
118
+ if (isset($apiConfig['services'][$service])) {
119
+ // Merge the service descriptor with the default values
120
+ $this->services[$service] = array_merge($this->services[$service], $apiConfig['services'][$service]);
121
+ }
122
+ }
123
+
124
+ public function authenticate($code = null) {
125
+ $service = $this->prepareService();
126
+ $this->authenticated = true;
127
+ return self::$auth->authenticate($service, $code);
128
+ }
129
+
130
+ /**
131
+ * @return array
132
+ * @visible For Testing
133
+ */
134
+ public function prepareService() {
135
+ $service = array();
136
+ $scopes = array();
137
+ if ($this->scopes) {
138
+ $scopes = $this->scopes;
139
+ } else {
140
+ foreach ($this->services as $key => $val) {
141
+ if (isset($val['scope'])) {
142
+ if (is_array($val['scope'])) {
143
+ $scopes = array_merge($val['scope'], $scopes);
144
+ } else {
145
+ $scopes[] = $val['scope'];
146
+ }
147
+ } else {
148
+ $scopes[] = 'https://www.googleapis.com/auth/' . $key;
149
+ }
150
+ unset($val['discoveryURI']);
151
+ unset($val['scope']);
152
+ $service = array_merge($service, $val);
153
+ }
154
+ }
155
+ $service['scope'] = implode(' ', $scopes);
156
+ return $service;
157
+ }
158
+
159
+ /**
160
+ * Set the OAuth 2.0 access token using the string that resulted from calling authenticate()
161
+ * or Google_Client#getAccessToken().
162
+ * @param string $accessToken JSON encoded string containing in the following format:
163
+ * {"access_token":"TOKEN", "refresh_token":"TOKEN", "token_type":"Bearer",
164
+ * "expires_in":3600, "id_token":"TOKEN", "created":1320790426}
165
+ */
166
+ public function setAccessToken($accessToken) {
167
+ if ($accessToken == null || 'null' == $accessToken) {
168
+ $accessToken = null;
169
+ }
170
+ self::$auth->setAccessToken($accessToken);
171
+ }
172
+
173
+ /**
174
+ * Set the type of Auth class the client should use.
175
+ * @param string $authClassName
176
+ */
177
+ public function setAuthClass($authClassName) {
178
+ self::$auth = new $authClassName();
179
+ }
180
+
181
+ /**
182
+ * Construct the OAuth 2.0 authorization request URI.
183
+ * @return string
184
+ */
185
+ public function createAuthUrl() {
186
+ $service = $this->prepareService();
187
+ return self::$auth->createAuthUrl($service['scope']);
188
+ }
189
+
190
+ /**
191
+ * Get the OAuth 2.0 access token.
192
+ * @return string $accessToken JSON encoded string in the following format:
193
+ * {"access_token":"TOKEN", "refresh_token":"TOKEN", "token_type":"Bearer",
194
+ * "expires_in":3600,"id_token":"TOKEN", "created":1320790426}
195
+ */
196
+ public function getAccessToken() {
197
+ $token = self::$auth->getAccessToken();
198
+ return (null == $token || 'null' == $token) ? null : $token;
199
+ }
200
+
201
+ /**
202
+ * Returns if the access_token is expired.
203
+ * @return bool Returns True if the access_token is expired.
204
+ */
205
+ public function isAccessTokenExpired() {
206
+ return self::$auth->isAccessTokenExpired();
207
+ }
208
+
209
+ /**
210
+ * Set the developer key to use, these are obtained through the API Console.
211
+ * @see http://code.google.com/apis/console-help/#generatingdevkeys
212
+ * @param string $developerKey
213
+ */
214
+ public function setDeveloperKey($developerKey) {
215
+ self::$auth->setDeveloperKey($developerKey);
216
+ }
217
+
218
+ /**
219
+ * Set OAuth 2.0 "state" parameter to achieve per-request customization.
220
+ * @see http://tools.ietf.org/html/draft-ietf-oauth-v2-22#section-3.1.2.2
221
+ * @param string $state
222
+ */
223
+ public function setState($state) {
224
+ self::$auth->setState($state);
225
+ }
226
+
227
+ /**
228
+ * @param string $accessType Possible values for access_type include:
229
+ * {@code "offline"} to request offline access from the user. (This is the default value)
230
+ * {@code "online"} to request online access from the user.
231
+ */
232
+ public function setAccessType($accessType) {
233
+ self::$auth->setAccessType($accessType);
234
+ }
235
+
236
+ /**
237
+ * @param string $approvalPrompt Possible values for approval_prompt include:
238
+ * {@code "force"} to force the approval UI to appear. (This is the default value)
239
+ * {@code "auto"} to request auto-approval when possible.
240
+ */
241
+ public function setApprovalPrompt($approvalPrompt) {
242
+ self::$auth->setApprovalPrompt($approvalPrompt);
243
+ }
244
+
245
+ /**
246
+ * Set the application name, this is included in the User-Agent HTTP header.
247
+ * @param string $applicationName
248
+ */
249
+ public function setApplicationName($applicationName) {
250
+ global $apiConfig;
251
+ $apiConfig['application_name'] = $applicationName;
252
+ }
253
+
254
+ /**
255
+ * Set the OAuth 2.0 Client ID.
256
+ * @param string $clientId
257
+ */
258
+ public function setClientId($clientId) {
259
+ global $apiConfig;
260
+ $apiConfig['oauth2_client_id'] = $clientId;
261
+ self::$auth->clientId = $clientId;
262
+ }
263
+
264
+ /**
265
+ * Get the OAuth 2.0 Client ID.
266
+ */
267
+ public function getClientId() {
268
+ return self::$auth->clientId;
269
+ }
270
+
271
+ /**
272
+ * Set the OAuth 2.0 Client Secret.
273
+ * @param string $clientSecret
274
+ */
275
+ public function setClientSecret($clientSecret) {
276
+ global $apiConfig;
277
+ $apiConfig['oauth2_client_secret'] = $clientSecret;
278
+ self::$auth->clientSecret = $clientSecret;
279
+ }
280
+
281
+ /**
282
+ * Get the OAuth 2.0 Client Secret.
283
+ */
284
+ public function getClientSecret() {
285
+ return self::$auth->clientSecret;
286
+ }
287
+
288
+ /**
289
+ * Set the OAuth 2.0 Redirect URI.
290
+ * @param string $redirectUri
291
+ */
292
+ public function setRedirectUri($redirectUri) {
293
+ global $apiConfig;
294
+ $apiConfig['oauth2_redirect_uri'] = $redirectUri;
295
+ self::$auth->redirectUri = $redirectUri;
296
+ }
297
+
298
+ /**
299
+ * Get the OAuth 2.0 Redirect URI.
300
+ */
301
+ public function getRedirectUri() {
302
+ return self::$auth->redirectUri;
303
+ }
304
+
305
+ /**
306
+ * Fetches a fresh OAuth 2.0 access token with the given refresh token.
307
+ * @param string $refreshToken
308
+ * @return void
309
+ */
310
+ public function refreshToken($refreshToken) {
311
+ self::$auth->refreshToken($refreshToken);
312
+ }
313
+
314
+ /**
315
+ * Revoke an OAuth2 access token or refresh token. This method will revoke the current access
316
+ * token, if a token isn't provided.
317
+ * @throws Google_AuthException
318
+ * @param string|null $token The token (access token or a refresh token) that should be revoked.
319
+ * @return boolean Returns True if the revocation was successful, otherwise False.
320
+ */
321
+ public function revokeToken($token = null) {
322
+ self::$auth->revokeToken($token);
323
+ }
324
+
325
+ /**
326
+ * Verify an id_token. This method will verify the current id_token, if one
327
+ * isn't provided.
328
+ * @throws Google_AuthException
329
+ * @param string|null $token The token (id_token) that should be verified.
330
+ * @return Google_LoginTicket Returns an apiLoginTicket if the verification was
331
+ * successful.
332
+ */
333
+ public function verifyIdToken($token = null) {
334
+ return self::$auth->verifyIdToken($token);
335
+ }
336
+
337
+ /**
338
+ * @param Google_AssertionCredentials $creds
339
+ * @return void
340
+ */
341
+ public function setAssertionCredentials(Google_AssertionCredentials $creds) {
342
+ self::$auth->setAssertionCredentials($creds);
343
+ }
344
+
345
+ /**
346
+ * This function allows you to overrule the automatically generated scopes,
347
+ * so that you can ask for more or less permission in the auth flow
348
+ * Set this before you call authenticate() though!
349
+ * @param array $scopes, ie: array('https://www.googleapis.com/auth/plus.me', 'https://www.googleapis.com/auth/moderator')
350
+ */
351
+ public function setScopes($scopes) {
352
+ $this->scopes = is_string($scopes) ? explode(" ", $scopes) : $scopes;
353
+ }
354
+
355
+ /**
356
+ * Returns the list of scopes set on the client
357
+ * @return array the list of scopes
358
+ *
359
+ */
360
+ public function getScopes() {
361
+ return $this->scopes;
362
+ }
363
+
364
+ /**
365
+ * If 'plus.login' is included in the list of requested scopes, you can use
366
+ * this method to define types of app activities that your app will write.
367
+ * You can find a list of available types here:
368
+ * @link https://developers.google.com/+/api/moment-types
369
+ *
370
+ * @param array $requestVisibleActions Array of app activity types
371
+ */
372
+ public function setRequestVisibleActions($requestVisibleActions) {
373
+ self::$auth->requestVisibleActions =
374
+ join(" ", $requestVisibleActions);
375
+ }
376
+
377
+ /**
378
+ * Declare if objects should be returned by the api service classes.
379
+ *
380
+ * @param boolean $useObjects True if objects should be returned by the service classes.
381
+ * False if associative arrays should be returned (default behavior).
382
+ * @experimental
383
+ */
384
+ public function setUseObjects($useObjects) {
385
+ global $apiConfig;
386
+ $apiConfig['use_objects'] = $useObjects;
387
+ }
388
+
389
+ /**
390
+ * Declare if objects should be returned by the api service classes.
391
+ *
392
+ * @param boolean $useBatch True if the experimental batch support should
393
+ * be enabled. Defaults to False.
394
+ * @experimental
395
+ */
396
+ public function setUseBatch($useBatch) {
397
+ self::$useBatch = $useBatch;
398
+ }
399
+
400
+ /**
401
+ * @static
402
+ * @return Google_Auth the implementation of apiAuth.
403
+ */
404
+ public static function getAuth() {
405
+ return Google_Client::$auth;
406
+ }
407
+
408
+ /**
409
+ * @static
410
+ * @return Google_IO the implementation of apiIo.
411
+ */
412
+ public static function getIo() {
413
+ return Google_Client::$io;
414
+ }
415
+
416
+ /**
417
+ * @return Google_Cache the implementation of apiCache.
418
+ */
419
+ public function getCache() {
420
+ return Google_Client::$cache;
421
+ }
422
+ }
423
+
424
+ // Exceptions that the Google PHP API Library can throw
425
+ class Google_Exception extends Exception {}
426
+ class Google_AuthException extends Google_Exception {}
427
+ class Google_CacheException extends Google_Exception {}
428
+ class Google_IOException extends Google_Exception {}
429
+ class Google_ServiceException extends Google_Exception {
430
+ /**
431
+ * Optional list of errors returned in a JSON body of an HTTP error response.
432
+ */
433
+ protected $errors = array();
434
+
435
+ /**
436
+ * Override default constructor to add ability to set $errors.
437
+ *
438
+ * @param string $message
439
+ * @param int $code
440
+ * @param Exception|null $previous
441
+ * @param [{string, string}] errors List of errors returned in an HTTP
442
+ * response. Defaults to [].
443
+ */
444
+ public function __construct($message, $code = 0, Exception $previous = null,
445
+ $errors = array()) {
446
+ if(version_compare(PHP_VERSION, '5.3.0') >= 0) {
447
+ parent::__construct($message, $code, $previous);
448
+ } else {
449
+ parent::__construct($message, $code);
450
+ }
451
+
452
+ $this->errors = $errors;
453
+ }
454
+
455
+ /**
456
+ * An example of the possible errors returned.
457
+ *
458
+ * {
459
+ * "domain": "global",
460
+ * "reason": "authError",
461
+ * "message": "Invalid Credentials",
462
+ * "locationType": "header",
463
+ * "location": "Authorization",
464
+ * }
465
+ *
466
+ * @return [{string, string}] List of errors return in an HTTP response or [].
467
+ */
468
+ public function getErrors() {
469
+ return $this->errors;
470
+ }
471
+ }
googleclient/LICENSE ADDED
@@ -0,0 +1,203 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ Apache License
2
+ Version 2.0, January 2004
3
+ http://www.apache.org/licenses/
4
+
5
+ TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
6
+
7
+ 1. Definitions.
8
+
9
+ "License" shall mean the terms and conditions for use, reproduction,
10
+ and distribution as defined by Sections 1 through 9 of this document.
11
+
12
+ "Licensor" shall mean the copyright owner or entity authorized by
13
+ the copyright owner that is granting the License.
14
+
15
+ "Legal Entity" shall mean the union of the acting entity and all
16
+ other entities that control, are controlled by, or are under common
17
+ control with that entity. For the purposes of this definition,
18
+ "control" means (i) the power, direct or indirect, to cause the
19
+ direction or management of such entity, whether by contract or
20
+ otherwise, or (ii) ownership of fifty percent (50%) or more of the
21
+ outstanding shares, or (iii) beneficial ownership of such entity.
22
+
23
+ "You" (or "Your") shall mean an individual or Legal Entity
24
+ exercising permissions granted by this License.
25
+
26
+ "Source" form shall mean the preferred form for making modifications,
27
+ including but not limited to software source code, documentation
28
+ source, and configuration files.
29
+
30
+ "Object" form shall mean any form resulting from mechanical
31
+ transformation or translation of a Source form, including but
32
+ not limited to compiled object code, generated documentation,
33
+ and conversions to other media types.
34
+
35
+ "Work" shall mean the work of authorship, whether in Source or
36
+ Object form, made available under the License, as indicated by a
37
+ copyright notice that is included in or attached to the work
38
+ (an example is provided in the Appendix below).
39
+
40
+ "Derivative Works" shall mean any work, whether in Source or Object
41
+ form, that is based on (or derived from) the Work and for which the
42
+ editorial revisions, annotations, elaborations, or other modifications
43
+ represent, as a whole, an original work of authorship. For the purposes
44
+ of this License, Derivative Works shall not include works that remain
45
+ separable from, or merely link (or bind by name) to the interfaces of,
46
+ the Work and Derivative Works thereof.
47
+
48
+ "Contribution" shall mean any work of authorship, including
49
+ the original version of the Work and any modifications or additions
50
+ to that Work or Derivative Works thereof, that is intentionally
51
+ submitted to Licensor for inclusion in the Work by the copyright owner
52
+ or by an individual or Legal Entity authorized to submit on behalf of
53
+ the copyright owner. For the purposes of this definition, "submitted"
54
+ means any form of electronic, verbal, or written communication sent
55
+ to the Licensor or its representatives, including but not limited to
56
+ communication on electronic mailing lists, source code control systems,
57
+ and issue tracking systems that are managed by, or on behalf of, the
58
+ Licensor for the purpose of discussing and improving the Work, but
59
+ excluding communication that is conspicuously marked or otherwise
60
+ designated in writing by the copyright owner as "Not a Contribution."
61
+
62
+ "Contributor" shall mean Licensor and any individual or Legal Entity
63
+ on behalf of whom a Contribution has been received by Licensor and
64
+ subsequently incorporated within the Work.
65
+
66
+ 2. Grant of Copyright License. Subject to the terms and conditions of
67
+ this License, each Contributor hereby grants to You a perpetual,
68
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
69
+ copyright license to reproduce, prepare Derivative Works of,
70
+ publicly display, publicly perform, sublicense, and distribute the
71
+ Work and such Derivative Works in Source or Object form.
72
+
73
+ 3. Grant of Patent License. Subject to the terms and conditions of
74
+ this License, each Contributor hereby grants to You a perpetual,
75
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
76
+ (except as stated in this section) patent license to make, have made,
77
+ use, offer to sell, sell, import, and otherwise transfer the Work,
78
+ where such license applies only to those patent claims licensable
79
+ by such Contributor that are necessarily infringed by their
80
+ Contribution(s) alone or by combination of their Contribution(s)
81
+ with the Work to which such Contribution(s) was submitted. If You
82
+ institute patent litigation against any entity (including a
83
+ cross-claim or counterclaim in a lawsuit) alleging that the Work
84
+ or a Contribution incorporated within the Work constitutes direct
85
+ or contributory patent infringement, then any patent licenses
86
+ granted to You under this License for that Work shall terminate
87
+ as of the date such litigation is filed.
88
+
89
+ 4. Redistribution. You may reproduce and distribute copies of the
90
+ Work or Derivative Works thereof in any medium, with or without
91
+ modifications, and in Source or Object form, provided that You
92
+ meet the following conditions:
93
+
94
+ (a) You must give any other recipients of the Work or
95
+ Derivative Works a copy of this License; and
96
+
97
+ (b) You must cause any modified files to carry prominent notices
98
+ stating that You changed the files; and
99
+
100
+ (c) You must retain, in the Source form of any Derivative Works
101
+ that You distribute, all copyright, patent, trademark, and
102
+ attribution notices from the Source form of the Work,
103
+ excluding those notices that do not pertain to any part of
104
+ the Derivative Works; and
105
+
106
+ (d) If the Work includes a "NOTICE" text file as part of its
107
+ distribution, then any Derivative Works that You distribute must
108
+ include a readable copy of the attribution notices contained
109
+ within such NOTICE file, excluding those notices that do not
110
+ pertain to any part of the Derivative Works, in at least one
111
+ of the following places: within a NOTICE text file distributed
112
+ as part of the Derivative Works; within the Source form or
113
+ documentation, if provided along with the Derivative Works; or,
114
+ within a display generated by the Derivative Works, if and
115
+ wherever such third-party notices normally appear. The contents
116
+ of the NOTICE file are for informational purposes only and
117
+ do not modify the License. You may add Your own attribution
118
+ notices within Derivative Works that You distribute, alongside
119
+ or as an addendum to the NOTICE text from the Work, provided
120
+ that such additional attribution notices cannot be construed
121
+ as modifying the License.
122
+
123
+ You may add Your own copyright statement to Your modifications and
124
+ may provide additional or different license terms and conditions
125
+ for use, reproduction, or distribution of Your modifications, or
126
+ for any such Derivative Works as a whole, provided Your use,
127
+ reproduction, and distribution of the Work otherwise complies with
128
+ the conditions stated in this License.
129
+
130
+ 5. Submission of Contributions. Unless You explicitly state otherwise,
131
+ any Contribution intentionally submitted for inclusion in the Work
132
+ by You to the Licensor shall be under the terms and conditions of
133
+ this License, without any additional terms or conditions.
134
+ Notwithstanding the above, nothing herein shall supersede or modify
135
+ the terms of any separate license agreement you may have executed
136
+ with Licensor regarding such Contributions.
137
+
138
+ 6. Trademarks. This License does not grant permission to use the trade
139
+ names, trademarks, service marks, or product names of the Licensor,
140
+ except as required for reasonable and customary use in describing the
141
+ origin of the Work and reproducing the content of the NOTICE file.
142
+
143
+ 7. Disclaimer of Warranty. Unless required by applicable law or
144
+ agreed to in writing, Licensor provides the Work (and each
145
+ Contributor provides its Contributions) on an "AS IS" BASIS,
146
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
147
+ implied, including, without limitation, any warranties or conditions
148
+ of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
149
+ PARTICULAR PURPOSE. You are solely responsible for determining the
150
+ appropriateness of using or redistributing the Work and assume any
151
+ risks associated with Your exercise of permissions under this License.
152
+
153
+ 8. Limitation of Liability. In no event and under no legal theory,
154
+ whether in tort (including negligence), contract, or otherwise,
155
+ unless required by applicable law (such as deliberate and grossly
156
+ negligent acts) or agreed to in writing, shall any Contributor be
157
+ liable to You for damages, including any direct, indirect, special,
158
+ incidental, or consequential damages of any character arising as a
159
+ result of this License or out of the use or inability to use the
160
+ Work (including but not limited to damages for loss of goodwill,
161
+ work stoppage, computer failure or malfunction, or any and all
162
+ other commercial damages or losses), even if such Contributor
163
+ has been advised of the possibility of such damages.
164
+
165
+ 9. Accepting Warranty or Additional Liability. While redistributing
166
+ the Work or Derivative Works thereof, You may choose to offer,
167
+ and charge a fee for, acceptance of support, warranty, indemnity,
168
+ or other liability obligations and/or rights consistent with this
169
+ License. However, in accepting such obligations, You may act only
170
+ on Your own behalf and on Your sole responsibility, not on behalf
171
+ of any other Contributor, and only if You agree to indemnify,
172
+ defend, and hold each Contributor harmless for any liability
173
+ incurred by, or claims asserted against, such Contributor by reason
174
+ of your accepting any such warranty or additional liability.
175
+
176
+ END OF TERMS AND CONDITIONS
177
+
178
+ APPENDIX: How to apply the Apache License to your work.
179
+
180
+ To apply the Apache License to your work, attach the following
181
+ boilerplate notice, with the fields enclosed by brackets "[]"
182
+ replaced with your own identifying information. (Don't include
183
+ the brackets!) The text should be enclosed in the appropriate
184
+ comment syntax for the file format. We also recommend that a
185
+ file or class name and description of purpose be included on the
186
+ same "printed page" as the copyright notice for easier
187
+ identification within third-party archives.
188
+
189
+ Copyright [yyyy] [name of copyright owner]
190
+
191
+ Licensed under the Apache License, Version 2.0 (the "License");
192
+ you may not use this file except in compliance with the License.
193
+ You may obtain a copy of the License at
194
+
195
+ http://www.apache.org/licenses/LICENSE-2.0
196
+
197
+ Unless required by applicable law or agreed to in writing, software
198
+ distributed under the License is distributed on an "AS IS" BASIS,
199
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
200
+ See the License for the specific language governing permissions and
201
+ limitations under the License.
202
+
203
+
googleclient/NOTICE ADDED
@@ -0,0 +1,4 @@
 
 
 
 
1
+ This product contains the following libraries:
2
+
3
+ XRDS-Simple library from http://code.google.com/p/diso/
4
+ Apache License 2.0
googleclient/README ADDED
@@ -0,0 +1,40 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ Google APIs Client Library for PHP
2
+ =====================================
3
+
4
+ == Description
5
+ The Google API Client Library enables you to work with Google APIs such as Google+, Drive, Tasks, or Latitude on your server.
6
+
7
+ Requirements:
8
+ PHP 5.2.x or higher [http://www.php.net/]
9
+ PHP Curl extension [http://www.php.net/manual/en/intro.curl.php]
10
+ PHP JSON extension [http://php.net/manual/en/book.json.php]
11
+
12
+ Project page:
13
+ http://code.google.com/p/google-api-php-client
14
+
15
+ OAuth 2 instructions:
16
+ http://code.google.com/p/google-api-php-client/wiki/OAuth2
17
+
18
+ Report a defect or feature request here:
19
+ http://code.google.com/p/google-api-php-client/issues/entry
20
+
21
+ Subscribe to project updates in your feed reader:
22
+ http://code.google.com/feeds/p/google-api-php-client/updates/basic
23
+
24
+ Supported sample applications:
25
+ http://code.google.com/p/google-api-php-client/wiki/Samples
26
+
27
+ == Basic Example
28
+ <?php
29
+ require_once 'path/to/src/Google_Client.php';
30
+ require_once 'path/to/src/contrib/apiBooksService.php';
31
+
32
+ $client = new Google_Client();
33
+ $service = new Google_BooksService($client);
34
+
35
+ $optParams = array('filter' => 'free-ebooks');
36
+ $results = $service->volumes->listVolumes('Henry David Thoreau', $optParams);
37
+
38
+ foreach ($results['items'] as $item) {
39
+ print($item['volumeInfo']['title'] . '<br>');
40
+ }
googleclient/auth/Google_AssertionCredentials.php ADDED
@@ -0,0 +1,103 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /*
3
+ * Copyright 2012 Google Inc.
4
+ *
5
+ * Licensed under the Apache License, Version 2.0 (the "License");
6
+ * you may not use this file except in compliance with the License.
7
+ * You may obtain a copy of the License at
8
+ *
9
+ * http://www.apache.org/licenses/LICENSE-2.0
10
+ *
11
+ * Unless required by applicable law or agreed to in writing, software
12
+ * distributed under the License is distributed on an "AS IS" BASIS,
13
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14
+ * See the License for the specific language governing permissions and
15
+ * limitations under the License.
16
+ */
17
+
18
+ /**
19
+ * Credentials object used for OAuth 2.0 Signed JWT assertion grants.
20
+ *
21
+ * @author Chirag Shah <chirags@google.com>
22
+ */
23
+ class Google_AssertionCredentials {
24
+ const MAX_TOKEN_LIFETIME_SECS = 3600;
25
+
26
+ public $serviceAccountName;
27
+ public $scopes;
28
+ public $privateKey;
29
+ public $privateKeyPassword;
30
+ public $assertionType;
31
+ public $sub;
32
+ /**
33
+ * @deprecated
34
+ * @link http://tools.ietf.org/html/draft-ietf-oauth-json-web-token-06
35
+ */
36
+ public $prn;
37
+
38
+ /**
39
+ * @param $serviceAccountName
40
+ * @param $scopes array List of scopes
41
+ * @param $privateKey
42
+ * @param string $privateKeyPassword
43
+ * @param string $assertionType
44
+ * @param bool|string $sub The email address of the user for which the
45
+ * application is requesting delegated access.
46
+ */
47
+ public function __construct(
48
+ $serviceAccountName,
49
+ $scopes,
50
+ $privateKey,
51
+ $privateKeyPassword = 'notasecret',
52
+ $assertionType = 'http://oauth.net/grant_type/jwt/1.0/bearer',
53
+ $sub = false) {
54
+ $this->serviceAccountName = $serviceAccountName;
55
+ $this->scopes = is_string($scopes) ? $scopes : implode(' ', $scopes);
56
+ $this->privateKey = $privateKey;
57
+ $this->privateKeyPassword = $privateKeyPassword;
58
+ $this->assertionType = $assertionType;
59
+ $this->sub = $sub;
60
+ $this->prn = $sub;
61
+ }
62
+
63
+ public function generateAssertion() {
64
+ $now = time();
65
+
66
+ $jwtParams = array(
67
+ 'aud' => Google_OAuth2::OAUTH2_TOKEN_URI,
68
+ 'scope' => $this->scopes,
69
+ 'iat' => $now,
70
+ 'exp' => $now + self::MAX_TOKEN_LIFETIME_SECS,
71
+ 'iss' => $this->serviceAccountName,
72
+ );
73
+
74
+ if ($this->sub !== false) {
75
+ $jwtParams['sub'] = $this->sub;
76
+ } else if ($this->prn !== false) {
77
+ $jwtParams['prn'] = $this->prn;
78
+ }
79
+
80
+ return $this->makeSignedJwt($jwtParams);
81
+ }
82
+
83
+ /**
84
+ * Creates a signed JWT.
85
+ * @param array $payload
86
+ * @return string The signed JWT.
87
+ */
88
+ private function makeSignedJwt($payload) {
89
+ $header = array('typ' => 'JWT', 'alg' => 'RS256');
90
+
91
+ $segments = array(
92
+ Google_Utils::urlSafeB64Encode(json_encode($header)),
93
+ Google_Utils::urlSafeB64Encode(json_encode($payload))
94
+ );
95
+
96
+ $signingInput = implode('.', $segments);
97
+ $signer = new Google_P12Signer($this->privateKey, $this->privateKeyPassword);
98
+ $signature = $signer->sign($signingInput);
99
+ $segments[] = Google_Utils::urlSafeB64Encode($signature);
100
+
101
+ return implode(".", $segments);
102
+ }
103
+ }
googleclient/auth/Google_Auth.php ADDED
@@ -0,0 +1,36 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /*
3
+ * Copyright 2010 Google Inc.
4
+ *
5
+ * Licensed under the Apache License, Version 2.0 (the "License");
6
+ * you may not use this file except in compliance with the License.
7
+ * You may obtain a copy of the License at
8
+ *
9
+ * http://www.apache.org/licenses/LICENSE-2.0
10
+ *
11
+ * Unless required by applicable law or agreed to in writing, software
12
+ * distributed under the License is distributed on an "AS IS" BASIS,
13
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14
+ * See the License for the specific language governing permissions and
15
+ * limitations under the License.
16
+ */
17
+
18
+ require_once "Google_AuthNone.php";
19
+ require_once "Google_OAuth2.php";
20
+
21
+ /**
22
+ * Abstract class for the Authentication in the API client
23
+ * @author Chris Chabot <chabotc@google.com>
24
+ *
25
+ */
26
+ abstract class Google_Auth {
27
+ abstract public function authenticate($service);
28
+ abstract public function sign(Google_HttpRequest $request);
29
+ abstract public function createAuthUrl($scope);
30
+
31
+ abstract public function getAccessToken();
32
+ abstract public function setAccessToken($accessToken);
33
+ abstract public function setDeveloperKey($developerKey);
34
+ abstract public function refreshToken($refreshToken);
35
+ abstract public function revokeToken();
36
+ }
googleclient/auth/Google_AuthNone.php ADDED
@@ -0,0 +1,48 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /*
3
+ * Copyright 2010 Google Inc.
4
+ *
5
+ * Licensed under the Apache License, Version 2.0 (the "License");
6
+ * you may not use this file except in compliance with the License.
7
+ * You may obtain a copy of the License at
8
+ *
9
+ * http://www.apache.org/licenses/LICENSE-2.0
10
+ *
11
+ * Unless required by applicable law or agreed to in writing, software
12
+ * distributed under the License is distributed on an "AS IS" BASIS,
13
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14
+ * See the License for the specific language governing permissions and
15
+ * limitations under the License.
16
+ */
17
+
18
+ /**
19
+ * Do-nothing authentication implementation, use this if you want to make un-authenticated calls
20
+ * @author Chris Chabot <chabotc@google.com>
21
+ * @author Chirag Shah <chirags@google.com>
22
+ */
23
+ class Google_AuthNone extends Google_Auth {
24
+ public $key = null;
25
+
26
+ public function __construct() {
27
+ global $apiConfig;
28
+ if (!empty($apiConfig['developer_key'])) {
29
+ $this->setDeveloperKey($apiConfig['developer_key']);
30
+ }
31
+ }
32
+
33
+ public function setDeveloperKey($key) {$this->key = $key;}
34
+ public function authenticate($service) {/*noop*/}
35
+ public function setAccessToken($accessToken) {/* noop*/}
36
+ public function getAccessToken() {return null;}
37
+ public function createAuthUrl($scope) {return null;}
38
+ public function refreshToken($refreshToken) {/* noop*/}
39
+ public function revokeToken() {/* noop*/}
40
+
41
+ public function sign(Google_HttpRequest $request) {
42
+ if ($this->key) {
43
+ $request->setUrl($request->getUrl() . ((strpos($request->getUrl(), '?') === false) ? '?' : '&')
44
+ . 'key='.urlencode($this->key));
45
+ }
46
+ return $request;
47
+ }
48
+ }
googleclient/auth/Google_LoginTicket.php ADDED
@@ -0,0 +1,63 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /*
3
+ * Copyright 2011 Google Inc.
4
+ *
5
+ * Licensed under the Apache License, Version 2.0 (the "License");
6
+ * you may not use this file except in compliance with the License.
7
+ * You may obtain a copy of the License at
8
+ *
9
+ * http://www.apache.org/licenses/LICENSE-2.0
10
+ *
11
+ * Unless required by applicable law or agreed to in writing, software
12
+ * distributed under the License is distributed on an "AS IS" BASIS,
13
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14
+ * See the License for the specific language governing permissions and
15
+ * limitations under the License.
16
+ */
17
+
18
+ /**
19
+ * Class to hold information about an authenticated login.
20
+ *
21
+ * @author Brian Eaton <beaton@google.com>
22
+ */
23
+ class Google_LoginTicket {
24
+ const USER_ATTR = "id";
25
+
26
+ // Information from id token envelope.
27
+ private $envelope;
28
+
29
+ // Information from id token payload.
30
+ private $payload;
31
+
32
+ /**
33
+ * Creates a user based on the supplied token.
34
+ *
35
+ * @param string $envelope Header from a verified authentication token.
36
+ * @param string $payload Information from a verified authentication token.
37
+ */
38
+ public function __construct($envelope, $payload) {
39
+ $this->envelope = $envelope;
40
+ $this->payload = $payload;
41
+ }
42
+
43
+ /**
44
+ * Returns the numeric identifier for the user.
45
+ * @throws Google_AuthException
46
+ * @return
47
+ */
48
+ public function getUserId() {
49
+ if (array_key_exists(self::USER_ATTR, $this->payload)) {
50
+ return $this->payload[self::USER_ATTR];
51
+ }
52
+ throw new Google_AuthException("No user_id in token");
53
+ }
54
+
55
+ /**
56
+ * Returns attributes from the login ticket. This can contain
57
+ * various information about the user session.
58
+ * @return array
59
+ */
60
+ public function getAttributes() {
61
+ return array("envelope" => $this->envelope, "payload" => $this->payload);
62
+ }
63
+ }
googleclient/auth/Google_OAuth2.php ADDED
@@ -0,0 +1,453 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /*
3
+ * Copyright 2008 Google Inc.
4
+ *
5
+ * Licensed under the Apache License, Version 2.0 (the "License");
6
+ * you may not use this file except in compliance with the License.
7
+ * You may obtain a copy of the License at
8
+ *
9
+ * http://www.apache.org/licenses/LICENSE-2.0
10
+ *
11
+ * Unless required by applicable law or agreed to in writing, software
12
+ * distributed under the License is distributed on an "AS IS" BASIS,
13
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14
+ * See the License for the specific language governing permissions and
15
+ * limitations under the License.
16
+ */
17
+
18
+ require_once "Google_Verifier.php";
19
+ require_once "Google_LoginTicket.php";
20
+ require_once "service/Google_Utils.php";
21
+
22
+ /**
23
+ * Authentication class that deals with the OAuth 2 web-server authentication flow
24
+ *
25
+ * @author Chris Chabot <chabotc@google.com>
26
+ * @author Chirag Shah <chirags@google.com>
27
+ *
28
+ */
29
+ class Google_OAuth2 extends Google_Auth {
30
+ public $clientId;
31
+ public $clientSecret;
32
+ public $developerKey;
33
+ public $token;
34
+ public $redirectUri;
35
+ public $state;
36
+ public $accessType = 'offline';
37
+ public $approvalPrompt = 'force';
38
+ public $requestVisibleActions;
39
+
40
+ /** @var Google_AssertionCredentials $assertionCredentials */
41
+ public $assertionCredentials;
42
+
43
+ const OAUTH2_REVOKE_URI = 'https://accounts.google.com/o/oauth2/revoke';
44
+ const OAUTH2_TOKEN_URI = 'https://accounts.google.com/o/oauth2/token';
45
+ const OAUTH2_AUTH_URL = 'https://accounts.google.com/o/oauth2/auth';
46
+ const OAUTH2_FEDERATED_SIGNON_CERTS_URL = 'https://www.googleapis.com/oauth2/v1/certs';
47
+ const CLOCK_SKEW_SECS = 300; // five minutes in seconds
48
+ const AUTH_TOKEN_LIFETIME_SECS = 300; // five minutes in seconds
49
+ const MAX_TOKEN_LIFETIME_SECS = 86400; // one day in seconds
50
+
51
+ /**
52
+ * Instantiates the class, but does not initiate the login flow, leaving it
53
+ * to the discretion of the caller (which is done by calling authenticate()).
54
+ */
55
+ public function __construct() {
56
+ global $apiConfig;
57
+
58
+ if (! empty($apiConfig['developer_key'])) {
59
+ $this->developerKey = $apiConfig['developer_key'];
60
+ }
61
+
62
+ if (! empty($apiConfig['oauth2_client_id'])) {
63
+ $this->clientId = $apiConfig['oauth2_client_id'];
64
+ }
65
+
66
+ if (! empty($apiConfig['oauth2_client_secret'])) {
67
+ $this->clientSecret = $apiConfig['oauth2_client_secret'];
68
+ }
69
+
70
+ if (! empty($apiConfig['oauth2_redirect_uri'])) {
71
+ $this->redirectUri = $apiConfig['oauth2_redirect_uri'];
72
+ }
73
+
74
+ if (! empty($apiConfig['oauth2_access_type'])) {
75
+ $this->accessType = $apiConfig['oauth2_access_type'];
76
+ }
77
+
78
+ if (! empty($apiConfig['oauth2_approval_prompt'])) {
79
+ $this->approvalPrompt = $apiConfig['oauth2_approval_prompt'];
80
+ }
81
+
82
+ }
83
+
84
+ /**
85
+ * @param $service
86
+ * @param string|null $code
87
+ * @throws Google_AuthException
88
+ * @return string
89
+ */
90
+ public function authenticate($service, $code = null) {
91
+ if (!$code && isset($_GET['code'])) {
92
+ $code = $_GET['code'];
93
+ }
94
+
95
+ if ($code) {
96
+ // We got here from the redirect from a successful authorization grant, fetch the access token
97
+ $request = Google_Client::$io->makeRequest(new Google_HttpRequest(self::OAUTH2_TOKEN_URI, 'POST', array(), array(
98
+ 'code' => $code,
99
+ 'grant_type' => 'authorization_code',
100
+ 'redirect_uri' => $this->redirectUri,
101
+ 'client_id' => $this->clientId,
102
+ 'client_secret' => $this->clientSecret
103
+ )));
104
+
105
+ if ($request->getResponseHttpCode() == 200) {
106
+ $this->setAccessToken($request->getResponseBody());
107
+ $this->token['created'] = time();
108
+ return $this->getAccessToken();
109
+ } else {
110
+ $response = $request->getResponseBody();
111
+ $decodedResponse = json_decode($response, true);
112
+ if ($decodedResponse != null && $decodedResponse['error']) {
113
+ $response = $decodedResponse['error'];
114
+ }
115
+ throw new Google_AuthException("Error fetching OAuth2 access token, message: '$response'", $request->getResponseHttpCode());
116
+ }
117
+ }
118
+
119
+ $authUrl = $this->createAuthUrl($service['scope']);
120
+ header('Location: ' . $authUrl);
121
+ return true;
122
+ }
123
+
124
+ /**
125
+ * Create a URL to obtain user authorization.
126
+ * The authorization endpoint allows the user to first
127
+ * authenticate, and then grant/deny the access request.
128
+ * @param string $scope The scope is expressed as a list of space-delimited strings.
129
+ * @return string
130
+ */
131
+ public function createAuthUrl($scope) {
132
+ $params = array(
133
+ 'response_type=code',
134
+ 'redirect_uri=' . urlencode($this->redirectUri),
135
+ 'client_id=' . urlencode($this->clientId),
136
+ 'scope=' . urlencode($scope),
137
+ 'access_type=' . urlencode($this->accessType),
138
+ 'approval_prompt=' . urlencode($this->approvalPrompt),
139
+ );
140
+
141
+ // if the list of scopes contains plus.login, add request_visible_actions
142
+ // to auth URL
143
+ if(strpos($scope, 'plus.login') && count($this->requestVisibleActions) > 0) {
144
+ $params[] = 'request_visible_actions=' .
145
+ urlencode($this->requestVisibleActions);
146
+ }
147
+
148
+ if (isset($this->state)) {
149
+ $params[] = 'state=' . urlencode($this->state);
150
+ }
151
+ $params = implode('&', $params);
152
+ return self::OAUTH2_AUTH_URL . "?$params";
153
+ }
154
+
155
+ /**
156
+ * @param string $token
157
+ * @throws Google_AuthException
158
+ */
159
+ public function setAccessToken($token) {
160
+ $token = json_decode($token, true);
161
+ if ($token == null) {
162
+ throw new Google_AuthException('Could not json decode the token');
163
+ }
164
+ if (! isset($token['access_token'])) {
165
+ throw new Google_AuthException("Invalid token format");
166
+ }
167
+ $this->token = $token;
168
+ }
169
+
170
+ public function getAccessToken() {
171
+ return json_encode($this->token);
172
+ }
173
+
174
+ public function setDeveloperKey($developerKey) {
175
+ $this->developerKey = $developerKey;
176
+ }
177
+
178
+ public function setState($state) {
179
+ $this->state = $state;
180
+ }
181
+
182
+ public function setAccessType($accessType) {
183
+ $this->accessType = $accessType;
184
+ }
185
+
186
+ public function setApprovalPrompt($approvalPrompt) {
187
+ $this->approvalPrompt = $approvalPrompt;
188
+ }
189
+
190
+ public function setAssertionCredentials(Google_AssertionCredentials $creds) {
191
+ $this->assertionCredentials = $creds;
192
+ }
193
+
194
+ /**
195
+ * Include an accessToken in a given apiHttpRequest.
196
+ * @param Google_HttpRequest $request
197
+ * @return Google_HttpRequest
198
+ * @throws Google_AuthException
199
+ */
200
+ public function sign(Google_HttpRequest $request) {
201
+ // add the developer key to the request before signing it
202
+ if ($this->developerKey) {
203
+ $requestUrl = $request->getUrl();
204
+ $requestUrl .= (strpos($request->getUrl(), '?') === false) ? '?' : '&';
205
+ $requestUrl .= 'key=' . urlencode($this->developerKey);
206
+ $request->setUrl($requestUrl);
207
+ }
208
+
209
+ // Cannot sign the request without an OAuth access token.
210
+ if (null == $this->token && null == $this->assertionCredentials) {
211
+ return $request;
212
+ }
213
+
214
+ // Check if the token is set to expire in the next 30 seconds
215
+ // (or has already expired).
216
+ if ($this->isAccessTokenExpired()) {
217
+ if ($this->assertionCredentials) {
218
+ $this->refreshTokenWithAssertion();
219
+ } else {
220
+ if (! array_key_exists('refresh_token', $this->token)) {
221
+ throw new Google_AuthException("The OAuth 2.0 access token has expired, "
222
+ . "and a refresh token is not available. Refresh tokens are not "
223
+ . "returned for responses that were auto-approved.");
224
+ }
225
+ $this->refreshToken($this->token['refresh_token']);
226
+ }
227
+ }
228
+
229
+ // Add the OAuth2 header to the request
230
+ $request->setRequestHeaders(
231
+ array('Authorization' => 'Bearer ' . $this->token['access_token'])
232
+ );
233
+
234
+ return $request;
235
+ }
236
+
237
+ /**
238
+ * Fetches a fresh access token with the given refresh token.
239
+ * @param string $refreshToken
240
+ * @return void
241
+ */
242
+ public function refreshToken($refreshToken) {
243
+ $this->refreshTokenRequest(array(
244
+ 'client_id' => $this->clientId,
245
+ 'client_secret' => $this->clientSecret,
246
+ 'refresh_token' => $refreshToken,
247
+ 'grant_type' => 'refresh_token'
248
+ ));
249
+ }
250
+
251
+ /**
252
+ * Fetches a fresh access token with a given assertion token.
253
+ * @param Google_AssertionCredentials $assertionCredentials optional.
254
+ * @return void
255
+ */
256
+ public function refreshTokenWithAssertion($assertionCredentials = null) {
257
+ if (!$assertionCredentials) {
258
+ $assertionCredentials = $this->assertionCredentials;
259
+ }
260
+
261
+ $this->refreshTokenRequest(array(
262
+ 'grant_type' => 'assertion',
263
+ 'assertion_type' => $assertionCredentials->assertionType,
264
+ 'assertion' => $assertionCredentials->generateAssertion(),
265
+ ));
266
+ }
267
+
268
+ private function refreshTokenRequest($params) {
269
+ $http = new Google_HttpRequest(self::OAUTH2_TOKEN_URI, 'POST', array(), $params);
270
+ $request = Google_Client::$io->makeRequest($http);
271
+
272
+ $code = $request->getResponseHttpCode();
273
+ $body = $request->getResponseBody();
274
+ if (200 == $code) {
275
+ $token = json_decode($body, true);
276
+ if ($token == null) {
277
+ throw new Google_AuthException("Could not json decode the access token");
278
+ }
279
+
280
+ if (! isset($token['access_token']) || ! isset($token['expires_in'])) {
281
+ throw new Google_AuthException("Invalid token format");
282
+ }
283
+
284
+ $this->token['access_token'] = $token['access_token'];
285
+ $this->token['expires_in'] = $token['expires_in'];
286
+ $this->token['created'] = time();
287
+ } else {
288
+ throw new Google_AuthException("Error refreshing the OAuth2 token, message: '$body'", $code);
289
+ }
290
+ }
291
+
292
+ /**
293
+ * Revoke an OAuth2 access token or refresh token. This method will revoke the current access
294
+ * token, if a token isn't provided.
295
+ * @throws Google_AuthException
296
+ * @param string|null $token The token (access token or a refresh token) that should be revoked.
297
+ * @return boolean Returns True if the revocation was successful, otherwise False.
298
+ */
299
+ public function revokeToken($token = null) {
300
+ if (!$token) {
301
+ $token = $this->token['access_token'];
302
+ }
303
+ $request = new Google_HttpRequest(self::OAUTH2_REVOKE_URI, 'POST', array(), "token=$token");
304
+ $response = Google_Client::$io->makeRequest($request);
305
+ $code = $response->getResponseHttpCode();
306
+ if ($code == 200) {
307
+ $this->token = null;
308
+ return true;
309
+ }
310
+
311
+ return false;
312
+ }
313
+
314
+ /**
315
+ * Returns if the access_token is expired.
316
+ * @return bool Returns True if the access_token is expired.
317
+ */
318
+ public function isAccessTokenExpired() {
319
+ if (null == $this->token) {
320
+ return true;
321
+ }
322
+
323
+ // If the token is set to expire in the next 30 seconds.
324
+ $expired = ($this->token['created']
325
+ + ($this->token['expires_in'] - 30)) < time();
326
+
327
+ return $expired;
328
+ }
329
+
330
+ // Gets federated sign-on certificates to use for verifying identity tokens.
331
+ // Returns certs as array structure, where keys are key ids, and values
332
+ // are PEM encoded certificates.
333
+ private function getFederatedSignOnCerts() {
334
+ // This relies on makeRequest caching certificate responses.
335
+ $request = Google_Client::$io->makeRequest(new Google_HttpRequest(
336
+ self::OAUTH2_FEDERATED_SIGNON_CERTS_URL));
337
+ if ($request->getResponseHttpCode() == 200) {
338
+ $certs = json_decode($request->getResponseBody(), true);
339
+ if ($certs) {
340
+ return $certs;
341
+ }
342
+ }
343
+ throw new Google_AuthException(
344
+ "Failed to retrieve verification certificates: '" .
345
+ $request->getResponseBody() . "'.",
346
+ $request->getResponseHttpCode());
347
+ }
348
+
349
+ /**
350
+ * Verifies an id token and returns the authenticated apiLoginTicket.
351
+ * Throws an exception if the id token is not valid.
352
+ * The audience parameter can be used to control which id tokens are
353
+ * accepted. By default, the id token must have been issued to this OAuth2 client.
354
+ *
355
+ * @param $id_token
356
+ * @param $audience
357
+ * @return Google_LoginTicket
358
+ */
359
+ public function verifyIdToken($id_token = null, $audience = null) {
360
+ if (!$id_token) {
361
+ $id_token = $this->token['id_token'];
362
+ }
363
+
364
+ $certs = $this->getFederatedSignonCerts();
365
+ if (!$audience) {
366
+ $audience = $this->clientId;
367
+ }
368
+ return $this->verifySignedJwtWithCerts($id_token, $certs, $audience);
369
+ }
370
+
371
+ // Verifies the id token, returns the verified token contents.
372
+ // Visible for testing.
373
+ function verifySignedJwtWithCerts($jwt, $certs, $required_audience) {
374
+ $segments = explode(".", $jwt);
375
+ if (count($segments) != 3) {
376
+ throw new Google_AuthException("Wrong number of segments in token: $jwt");
377
+ }
378
+ $signed = $segments[0] . "." . $segments[1];
379
+ $signature = Google_Utils::urlSafeB64Decode($segments[2]);
380
+
381
+ // Parse envelope.
382
+ $envelope = json_decode(Google_Utils::urlSafeB64Decode($segments[0]), true);
383
+ if (!$envelope) {
384
+ throw new Google_AuthException("Can't parse token envelope: " . $segments[0]);
385
+ }
386
+
387
+ // Parse token
388
+ $json_body = Google_Utils::urlSafeB64Decode($segments[1]);
389
+ $payload = json_decode($json_body, true);
390
+ if (!$payload) {
391
+ throw new Google_AuthException("Can't parse token payload: " . $segments[1]);
392
+ }
393
+
394
+ // Check signature
395
+ $verified = false;
396
+ foreach ($certs as $keyName => $pem) {
397
+ $public_key = new Google_PemVerifier($pem);
398
+ if ($public_key->verify($signed, $signature)) {
399
+ $verified = true;
400
+ break;
401
+ }
402
+ }
403
+
404
+ if (!$verified) {
405
+ throw new Google_AuthException("Invalid token signature: $jwt");
406
+ }
407
+
408
+ // Check issued-at timestamp
409
+ $iat = 0;
410
+ if (array_key_exists("iat", $payload)) {
411
+ $iat = $payload["iat"];
412
+ }
413
+ if (!$iat) {
414
+ throw new Google_AuthException("No issue time in token: $json_body");
415
+ }
416
+ $earliest = $iat - self::CLOCK_SKEW_SECS;
417
+
418
+ // Check expiration timestamp
419
+ $now = time();
420
+ $exp = 0;
421
+ if (array_key_exists("exp", $payload)) {
422
+ $exp = $payload["exp"];
423
+ }
424
+ if (!$exp) {
425
+ throw new Google_AuthException("No expiration time in token: $json_body");
426
+ }
427
+ if ($exp >= $now + self::MAX_TOKEN_LIFETIME_SECS) {
428
+ throw new Google_AuthException(
429
+ "Expiration time too far in future: $json_body");
430
+ }
431
+
432
+ $latest = $exp + self::CLOCK_SKEW_SECS;
433
+ if ($now < $earliest) {
434
+ throw new Google_AuthException(
435
+ "Token used too early, $now < $earliest: $json_body");
436
+ }
437
+ if ($now > $latest) {
438
+ throw new Google_AuthException(
439
+ "Token used too late, $now > $latest: $json_body");
440
+ }
441
+
442
+ // TODO(beaton): check issuer field?
443
+
444
+ // Check audience
445
+ $aud = $payload["aud"];
446
+ if ($aud != $required_audience) {
447
+ throw new Google_AuthException("Wrong recipient, $aud != $required_audience: $json_body");
448
+ }
449
+
450
+ // All good.
451
+ return new Google_LoginTicket($envelope, $payload);
452
+ }
453
+ }
googleclient/auth/Google_P12Signer.php ADDED
@@ -0,0 +1,70 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /*
3
+ * Copyright 2011 Google Inc.
4
+ *
5
+ * Licensed under the Apache License, Version 2.0 (the "License");
6
+ * you may not use this file except in compliance with the License.
7
+ * You may obtain a copy of the License at
8
+ *
9
+ * http://www.apache.org/licenses/LICENSE-2.0
10
+ *
11
+ * Unless required by applicable law or agreed to in writing, software
12
+ * distributed under the License is distributed on an "AS IS" BASIS,
13
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14
+ * See the License for the specific language governing permissions and
15
+ * limitations under the License.
16
+ */
17
+
18
+ /**
19
+ * Signs data.
20
+ *
21
+ * Only used for testing.
22
+ *
23
+ * @author Brian Eaton <beaton@google.com>
24
+ */
25
+ class Google_P12Signer extends Google_Signer {
26
+ // OpenSSL private key resource
27
+ private $privateKey;
28
+
29
+ // Creates a new signer from a .p12 file.
30
+ function __construct($p12, $password) {
31
+ if (!function_exists('openssl_x509_read')) {
32
+ throw new Exception(
33
+ 'The Google PHP API library needs the openssl PHP extension');
34
+ }
35
+
36
+ // This throws on error
37
+ $certs = array();
38
+ if (!openssl_pkcs12_read($p12, $certs, $password)) {
39
+ throw new Google_AuthException("Unable to parse the p12 file. " .
40
+ "Is this a .p12 file? Is the password correct? OpenSSL error: " .
41
+ openssl_error_string());
42
+ }
43
+ // TODO(beaton): is this part of the contract for the openssl_pkcs12_read
44
+ // method? What happens if there are multiple private keys? Do we care?
45
+ if (!array_key_exists("pkey", $certs) || !$certs["pkey"]) {
46
+ throw new Google_AuthException("No private key found in p12 file.");
47
+ }
48
+ $this->privateKey = openssl_pkey_get_private($certs["pkey"]);
49
+ if (!$this->privateKey) {
50
+ throw new Google_AuthException("Unable to load private key in ");
51
+ }
52
+ }
53
+
54
+ function __destruct() {
55
+ if ($this->privateKey) {
56
+ openssl_pkey_free($this->privateKey);
57
+ }
58
+ }
59
+
60
+ function sign($data) {
61
+ if(version_compare(PHP_VERSION, '5.3.0') < 0) {
62
+ throw new Google_AuthException(
63
+ "PHP 5.3.0 or higher is required to use service accounts.");
64
+ }
65
+ if (!openssl_sign($data, $signature, $this->privateKey, "sha256")) {
66
+ throw new Google_AuthException("Unable to sign data");
67
+ }
68
+ return $signature;
69
+ }
70
+ }
googleclient/auth/Google_PemVerifier.php ADDED
@@ -0,0 +1,66 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /*
3
+ * Copyright 2011 Google Inc.
4
+ *
5
+ * Licensed under the Apache License, Version 2.0 (the "License");
6
+ * you may not use this file except in compliance with the License.
7
+ * You may obtain a copy of the License at
8
+ *
9
+ * http://www.apache.org/licenses/LICENSE-2.0
10
+ *
11
+ * Unless required by applicable law or agreed to in writing, software
12
+ * distributed under the License is distributed on an "AS IS" BASIS,
13
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14
+ * See the License for the specific language governing permissions and
15
+ * limitations under the License.
16
+ */
17
+
18
+ /**
19
+ * Verifies signatures using PEM encoded certificates.
20
+ *
21
+ * @author Brian Eaton <beaton@google.com>
22
+ */
23
+ class Google_PemVerifier extends Google_Verifier {
24
+ private $publicKey;
25
+
26
+ /**
27
+ * Constructs a verifier from the supplied PEM-encoded certificate.
28
+ *
29
+ * $pem: a PEM encoded certificate (not a file).
30
+ * @param $pem
31
+ * @throws Google_AuthException
32
+ * @throws Google_Exception
33
+ */
34
+ function __construct($pem) {
35
+ if (!function_exists('openssl_x509_read')) {
36
+ throw new Google_Exception('Google API PHP client needs the openssl PHP extension');
37
+ }
38
+ $this->publicKey = openssl_x509_read($pem);
39
+ if (!$this->publicKey) {
40
+ throw new Google_AuthException("Unable to parse PEM: $pem");
41
+ }
42
+ }
43
+
44
+ function __destruct() {
45
+ if ($this->publicKey) {
46
+ openssl_x509_free($this->publicKey);
47
+ }
48
+ }
49
+
50
+ /**
51
+ * Verifies the signature on data.
52
+ *
53
+ * Returns true if the signature is valid, false otherwise.
54
+ * @param $data
55
+ * @param $signature
56
+ * @throws Google_AuthException
57
+ * @return bool
58
+ */
59
+ function verify($data, $signature) {
60
+ $status = openssl_verify($data, $signature, $this->publicKey, "sha256");
61
+ if ($status === -1) {
62
+ throw new Google_AuthException('Signature verification error: ' . openssl_error_string());
63
+ }
64
+ return $status === 1;
65
+ }
66
+ }
googleclient/auth/Google_Signer.php ADDED
@@ -0,0 +1,30 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /*
3
+ * Copyright 2011 Google Inc.
4
+ *
5
+ * Licensed under the Apache License, Version 2.0 (the "License");
6
+ * you may not use this file except in compliance with the License.
7
+ * You may obtain a copy of the License at
8
+ *
9
+ * http://www.apache.org/licenses/LICENSE-2.0
10
+ *
11
+ * Unless required by applicable law or agreed to in writing, software
12
+ * distributed under the License is distributed on an "AS IS" BASIS,
13
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14
+ * See the License for the specific language governing permissions and
15
+ * limitations under the License.
16
+ */
17
+
18
+ require_once "Google_P12Signer.php";
19
+
20
+ /**
21
+ * Signs data.
22
+ *
23
+ * @author Brian Eaton <beaton@google.com>
24
+ */
25
+ abstract class Google_Signer {
26
+ /**
27
+ * Signs data, returns the signature as binary data.
28
+ */
29
+ abstract public function sign($data);
30
+ }
googleclient/auth/Google_Verifier.php ADDED
@@ -0,0 +1,31 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /*
3
+ * Copyright 2011 Google Inc.
4
+ *
5
+ * Licensed under the Apache License, Version 2.0 (the "License");
6
+ * you may not use this file except in compliance with the License.
7
+ * You may obtain a copy of the License at
8
+ *
9
+ * http://www.apache.org/licenses/LICENSE-2.0
10
+ *
11
+ * Unless required by applicable law or agreed to in writing, software
12
+ * distributed under the License is distributed on an "AS IS" BASIS,
13
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14
+ * See the License for the specific language governing permissions and
15
+ * limitations under the License.
16
+ */
17
+
18
+ require_once "Google_PemVerifier.php";
19
+
20
+ /**
21
+ * Verifies signatures.
22
+ *
23
+ * @author Brian Eaton <beaton@google.com>
24
+ */
25
+ abstract class Google_Verifier {
26
+ /**
27
+ * Checks a signature, returns true if the signature is correct,
28
+ * false otherwise.
29
+ */
30
+ abstract public function verify($data, $signature);
31
+ }
googleclient/cache/Google_ApcCache.php ADDED
@@ -0,0 +1,98 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /*
3
+ * Copyright 2010 Google Inc.
4
+ *
5
+ * Licensed under the Apache License, Version 2.0 (the "License");
6
+ * you may not use this file except in compliance with the License.
7
+ * You may obtain a copy of the License at
8
+ *
9
+ * http://www.apache.org/licenses/LICENSE-2.0
10
+ *
11
+ * Unless required by applicable law or agreed to in writing, software
12
+ * distributed under the License is distributed on an "AS IS" BASIS,
13
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14
+ * See the License for the specific language governing permissions and
15
+ * limitations under the License.
16
+ */
17
+
18
+ /**
19
+ * A persistent storage class based on the APC cache, which is not
20
+ * really very persistent, as soon as you restart your web server
21
+ * the storage will be wiped, however for debugging and/or speed
22
+ * it can be useful, kinda, and cache is a lot cheaper then storage.
23
+ *
24
+ * @author Chris Chabot <chabotc@google.com>
25
+ */
26
+ class Google_APCCache extends Google_Cache {
27
+
28
+ public function __construct() {
29
+ if (! function_exists('apc_add')) {
30
+ throw new Google_CacheException("Apc functions not available");
31
+ }
32
+ }
33
+
34
+ private function isLocked($key) {
35
+ if ((@apc_fetch($key . '.lock')) === false) {
36
+ return false;
37
+ }
38
+ return true;
39
+ }
40
+
41
+ private function createLock($key) {
42
+ // the interesting thing is that this could fail if the lock was created in the meantime..
43
+ // but we'll ignore that out of convenience
44
+ @apc_add($key . '.lock', '', 5);
45
+ }
46
+
47
+ private function removeLock($key) {
48
+ // suppress all warnings, if some other process removed it that's ok too
49
+ @apc_delete($key . '.lock');
50
+ }
51
+
52
+ private function waitForLock($key) {
53
+ // 20 x 250 = 5 seconds
54
+ $tries = 20;
55
+ $cnt = 0;
56
+ do {
57
+ // 250 ms is a long time to sleep, but it does stop the server from burning all resources on polling locks..
58
+ usleep(250);
59
+ $cnt ++;
60
+ } while ($cnt <= $tries && $this->isLocked($key));
61
+ if ($this->isLocked($key)) {
62
+ // 5 seconds passed, assume the owning process died off and remove it
63
+ $this->removeLock($key);
64
+ }
65
+ }
66
+
67
+ /**
68
+ * @inheritDoc
69
+ */
70
+ public function get($key, $expiration = false) {
71
+
72
+ if (($ret = @apc_fetch($key)) === false) {
73
+ return false;
74
+ }
75
+ if (!$expiration || (time() - $ret['time'] > $expiration)) {
76
+ $this->delete($key);
77
+ return false;
78
+ }
79
+ return unserialize($ret['data']);
80
+ }
81
+
82
+ /**
83
+ * @inheritDoc
84
+ */
85
+ public function set($key, $value) {
86
+ if (@apc_store($key, array('time' => time(), 'data' => serialize($value))) == false) {
87
+ throw new Google_CacheException("Couldn't store data");
88
+ }
89
+ }
90
+
91
+ /**
92
+ * @inheritDoc
93
+ * @param String $key
94
+ */
95
+ public function delete($key) {
96
+ @apc_delete($key);
97
+ }
98
+ }
googleclient/cache/Google_Cache.php ADDED
@@ -0,0 +1,55 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /*
3
+ * Copyright 2008 Google Inc.
4
+ *
5
+ * Licensed under the Apache License, Version 2.0 (the "License");
6
+ * you may not use this file except in compliance with the License.
7
+ * You may obtain a copy of the License at
8
+ *
9
+ * http://www.apache.org/licenses/LICENSE-2.0
10
+ *
11
+ * Unless required by applicable law or agreed to in writing, software
12
+ * distributed under the License is distributed on an "AS IS" BASIS,
13
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14
+ * See the License for the specific language governing permissions and
15
+ * limitations under the License.
16
+ */
17
+
18
+ require_once "Google_FileCache.php";
19
+ require_once "Google_MemcacheCache.php";
20
+
21
+ /**
22
+ * Abstract storage class
23
+ *
24
+ * @author Chris Chabot <chabotc@google.com>
25
+ */
26
+ abstract class Google_Cache {
27
+
28
+ /**
29
+ * Retrieves the data for the given key, or false if they
30
+ * key is unknown or expired
31
+ *
32
+ * @param String $key The key who's data to retrieve
33
+ * @param boolean|int $expiration Expiration time in seconds
34
+ *
35
+ */
36
+ abstract function get($key, $expiration = false);
37
+
38
+ /**
39
+ * Store the key => $value set. The $value is serialized
40
+ * by this function so can be of any type
41
+ *
42
+ * @param string $key Key of the data
43
+ * @param string $value data
44
+ */
45
+ abstract function set($key, $value);
46
+
47
+ /**
48
+ * Removes the key/data pair for the given $key
49
+ *
50
+ * @param String $key
51
+ */
52
+ abstract function delete($key);
53
+ }
54
+
55
+
googleclient/cache/Google_FileCache.php ADDED
@@ -0,0 +1,137 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /*
3
+ * Copyright 2008 Google Inc.
4
+ *
5
+ * Licensed under the Apache License, Version 2.0 (the "License");
6
+ * you may not use this file except in compliance with the License.
7
+ * You may obtain a copy of the License at
8
+ *
9
+ * http://www.apache.org/licenses/LICENSE-2.0
10
+ *
11
+ * Unless required by applicable law or agreed to in writing, software
12
+ * distributed under the License is distributed on an "AS IS" BASIS,
13
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14
+ * See the License for the specific language governing permissions and
15
+ * limitations under the License.
16
+ */
17
+
18
+ /*
19
+ * This class implements a basic on disk storage. While that does
20
+ * work quite well it's not the most elegant and scalable solution.
21
+ * It will also get you into a heap of trouble when you try to run
22
+ * this in a clustered environment. In those cases please use the
23
+ * MySql back-end
24
+ *
25
+ * @author Chris Chabot <chabotc@google.com>
26
+ */
27
+ class Google_FileCache extends Google_Cache {
28
+ private $path;
29
+
30
+ public function __construct() {
31
+ global $apiConfig;
32
+ $this->path = $apiConfig['ioFileCache_directory'];
33
+ }
34
+
35
+ private function isLocked($storageFile) {
36
+ // our lock file convention is simple: /the/file/path.lock
37
+ return file_exists($storageFile . '.lock');
38
+ }
39
+
40
+ private function createLock($storageFile) {
41
+ $storageDir = dirname($storageFile);
42
+ if (! is_dir($storageDir)) {
43
+ // @codeCoverageIgnoreStart
44
+ if (! @mkdir($storageDir, 0755, true)) {
45
+ // make sure the failure isn't because of a concurrency issue
46
+ if (! is_dir($storageDir)) {
47
+ throw new Google_CacheException("Could not create storage directory: $storageDir");
48
+ }
49
+ }
50
+ // @codeCoverageIgnoreEnd
51
+ }
52
+ @touch($storageFile . '.lock');
53
+ }
54
+
55
+ private function removeLock($storageFile) {
56
+ // suppress all warnings, if some other process removed it that's ok too
57
+ @unlink($storageFile . '.lock');
58
+ }
59
+
60
+ private function waitForLock($storageFile) {
61
+ // 20 x 250 = 5 seconds
62
+ $tries = 20;
63
+ $cnt = 0;
64
+ do {
65
+ // make sure PHP picks up on file changes. This is an expensive action but really can't be avoided
66
+ clearstatcache();
67
+ // 250 ms is a long time to sleep, but it does stop the server from burning all resources on polling locks..
68
+ usleep(250);
69
+ $cnt ++;
70
+ } while ($cnt <= $tries && $this->isLocked($storageFile));
71
+ if ($this->isLocked($storageFile)) {
72
+ // 5 seconds passed, assume the owning process died off and remove it
73
+ $this->removeLock($storageFile);
74
+ }
75
+ }
76
+
77
+ private function getCacheDir($hash) {
78
+ // use the first 2 characters of the hash as a directory prefix
79
+ // this should prevent slowdowns due to huge directory listings
80
+ // and thus give some basic amount of scalability
81
+ return $this->path . '/' . substr($hash, 0, 2);
82
+ }
83
+
84
+ private function getCacheFile($hash) {
85
+ return $this->getCacheDir($hash) . '/' . $hash;
86
+ }
87
+
88
+ public function get($key, $expiration = false) {
89
+ $storageFile = $this->getCacheFile(md5($key));
90
+ // See if this storage file is locked, if so we wait up to 5 seconds for the lock owning process to
91
+ // complete it's work. If the lock is not released within that time frame, it's cleaned up.
92
+ // This should give us a fair amount of 'Cache Stampeding' protection
93
+ if ($this->isLocked($storageFile)) {
94
+ $this->waitForLock($storageFile);
95
+ }
96
+ if (file_exists($storageFile) && is_readable($storageFile)) {
97
+ $now = time();
98
+ if (! $expiration || (($mtime = @filemtime($storageFile)) !== false && ($now - $mtime) < $expiration)) {
99
+ if (($data = @file_get_contents($storageFile)) !== false) {
100
+ $data = unserialize($data);
101
+ return $data;
102
+ }
103
+ }
104
+ }
105
+ return false;
106
+ }
107
+
108
+ public function set($key, $value) {
109
+ $storageDir = $this->getCacheDir(md5($key));
110
+ $storageFile = $this->getCacheFile(md5($key));
111
+ if ($this->isLocked($storageFile)) {
112
+ // some other process is writing to this file too, wait until it's done to prevent hiccups
113
+ $this->waitForLock($storageFile);
114
+ }
115
+ if (! is_dir($storageDir)) {
116
+ if (! @mkdir($storageDir, 0755, true)) {
117
+ throw new Google_CacheException("Could not create storage directory: $storageDir");
118
+ }
119
+ }
120
+ // we serialize the whole request object, since we don't only want the
121
+ // responseContent but also the postBody used, headers, size, etc
122
+ $data = serialize($value);
123
+ $this->createLock($storageFile);
124
+ if (! @file_put_contents($storageFile, $data)) {
125
+ $this->removeLock($storageFile);
126
+ throw new Google_CacheException("Could not store data in the file");
127
+ }
128
+ $this->removeLock($storageFile);
129
+ }
130
+
131
+ public function delete($key) {
132
+ $file = $this->getCacheFile(md5($key));
133
+ if (! @unlink($file)) {
134
+ throw new Google_CacheException("Cache file could not be deleted");
135
+ }
136
+ }
137
+ }
googleclient/cache/Google_MemcacheCache.php ADDED
@@ -0,0 +1,130 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /*
3
+ * Copyright 2008 Google Inc.
4
+ *
5
+ * Licensed under the Apache License, Version 2.0 (the "License");
6
+ * you may not use this file except in compliance with the License.
7
+ * You may obtain a copy of the License at
8
+ *
9
+ * http://www.apache.org/licenses/LICENSE-2.0
10
+ *
11
+ * Unless required by applicable law or agreed to in writing, software
12
+ * distributed under the License is distributed on an "AS IS" BASIS,
13
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14
+ * See the License for the specific language governing permissions and
15
+ * limitations under the License.
16
+ */
17
+
18
+ /**
19
+ * A persistent storage class based on the memcache, which is not
20
+ * really very persistent, as soon as you restart your memcache daemon
21
+ * the storage will be wiped, however for debugging and/or speed
22
+ * it can be useful, kinda, and cache is a lot cheaper then storage.
23
+ *
24
+ * @author Chris Chabot <chabotc@google.com>
25
+ */
26
+ class Google_MemcacheCache extends Google_Cache {
27
+ private $connection = false;
28
+
29
+ public function __construct() {
30
+ global $apiConfig;
31
+ if (! function_exists('memcache_connect')) {
32
+ throw new Google_CacheException("Memcache functions not available");
33
+ }
34
+ $this->host = $apiConfig['ioMemCacheCache_host'];
35
+ $this->port = $apiConfig['ioMemCacheCache_port'];
36
+ if (empty($this->host) || empty($this->port)) {
37
+ throw new Google_CacheException("You need to supply a valid memcache host and port");
38
+ }
39
+ }
40
+
41
+ private function isLocked($key) {
42
+ $this->check();
43
+ if ((@memcache_get($this->connection, $key . '.lock')) === false) {
44
+ return false;
45
+ }
46
+ return true;
47
+ }
48
+
49
+ private function createLock($key) {
50
+ $this->check();
51
+ // the interesting thing is that this could fail if the lock was created in the meantime..
52
+ // but we'll ignore that out of convenience
53
+ @memcache_add($this->connection, $key . '.lock', '', 0, 5);
54
+ }
55
+
56
+ private function removeLock($key) {
57
+ $this->check();
58
+ // suppress all warnings, if some other process removed it that's ok too
59
+ @memcache_delete($this->connection, $key . '.lock');
60
+ }
61
+
62
+ private function waitForLock($key) {
63
+ $this->check();
64
+ // 20 x 250 = 5 seconds
65
+ $tries = 20;
66
+ $cnt = 0;
67
+ do {
68
+ // 250 ms is a long time to sleep, but it does stop the server from burning all resources on polling locks..
69
+ usleep(250);
70
+ $cnt ++;
71
+ } while ($cnt <= $tries && $this->isLocked($key));
72
+ if ($this->isLocked($key)) {
73
+ // 5 seconds passed, assume the owning process died off and remove it
74
+ $this->removeLock($key);
75
+ }
76
+ }
77
+
78
+ // I prefer lazy initialization since the cache isn't used every request
79
+ // so this potentially saves a lot of overhead
80
+ private function connect() {
81
+ if (! $this->connection = @memcache_pconnect($this->host, $this->port)) {
82
+ throw new Google_CacheException("Couldn't connect to memcache server");
83
+ }
84
+ }
85
+
86
+ private function check() {
87
+ if (! $this->connection) {
88
+ $this->connect();
89
+ }
90
+ }
91
+
92
+ /**
93
+ * @inheritDoc
94
+ */
95
+ public function get($key, $expiration = false) {
96
+ $this->check();
97
+ if (($ret = @memcache_get($this->connection, $key)) === false) {
98
+ return false;
99
+ }
100
+ if (is_numeric($expiration) && (time() - $ret['time'] > $expiration)) {
101
+ $this->delete($key);
102
+ return false;
103
+ }
104
+ return $ret['data'];
105
+ }
106
+
107
+ /**
108
+ * @inheritDoc
109
+ * @param string $key
110
+ * @param string $value
111
+ * @throws Google_CacheException
112
+ */
113
+ public function set($key, $value) {
114
+ $this->check();
115
+ // we store it with the cache_time default expiration so objects will at least get cleaned eventually.
116
+ if (@memcache_set($this->connection, $key, array('time' => time(),
117
+ 'data' => $value), false) == false) {
118
+ throw new Google_CacheException("Couldn't store data in cache");
119
+ }
120
+ }
121
+
122
+ /**
123
+ * @inheritDoc
124
+ * @param String $key
125
+ */
126
+ public function delete($key) {
127
+ $this->check();
128
+ @memcache_delete($this->connection, $key);
129
+ }
130
+ }
googleclient/config.php ADDED
@@ -0,0 +1,81 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /*
3
+ * Copyright 2010 Google Inc.
4
+ *
5
+ * Licensed under the Apache License, Version 2.0 (the "License");
6
+ * you may not use this file except in compliance with the License.
7
+ * You may obtain a copy of the License at
8
+ *
9
+ * http://www.apache.org/licenses/LICENSE-2.0
10
+ *
11
+ * Unless required by applicable law or agreed to in writing, software
12
+ * distributed under the License is distributed on an "AS IS" BASIS,
13
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14
+ * See the License for the specific language governing permissions and
15
+ * limitations under the License.
16
+ */
17
+
18
+ global $apiConfig;
19
+ $apiConfig = array(
20
+ // True if objects should be returned by the service classes.
21
+ // False if associative arrays should be returned (default behavior).
22
+ 'use_objects' => false,
23
+
24
+ // The application_name is included in the User-Agent HTTP header.
25
+ 'application_name' => '',
26
+
27
+ // OAuth2 Settings, you can get these keys at https://code.google.com/apis/console
28
+ 'oauth2_client_id' => '',
29
+ 'oauth2_client_secret' => '',
30
+ 'oauth2_redirect_uri' => '',
31
+
32
+ // The developer key, you get this at https://code.google.com/apis/console
33
+ 'developer_key' => '',
34
+
35
+ // Site name to show in the Google's OAuth 1 authentication screen.
36
+ 'site_name' => 'www.example.org',
37
+
38
+ // Which Authentication, Storage and HTTP IO classes to use.
39
+ 'authClass' => 'Google_OAuth2',
40
+ 'ioClass' => 'Google_CurlIO',
41
+ 'cacheClass' => 'Google_FileCache',
42
+
43
+ // Don't change these unless you're working against a special development or testing environment.
44
+ 'basePath' => 'https://www.googleapis.com',
45
+
46
+ // IO Class dependent configuration, you only have to configure the values
47
+ // for the class that was configured as the ioClass above
48
+ 'ioFileCache_directory' =>
49
+ (function_exists('sys_get_temp_dir') ?
50
+ sys_get_temp_dir() . '/Google_Client' :
51
+ '/tmp/Google_Client'),
52
+
53
+ // Definition of service specific values like scopes, oauth token URLs, etc
54
+ 'services' => array(
55
+ 'analytics' => array('scope' => 'https://www.googleapis.com/auth/analytics.readonly'),
56
+ 'calendar' => array(
57
+ 'scope' => array(
58
+ "https://www.googleapis.com/auth/calendar",
59
+ "https://www.googleapis.com/auth/calendar.readonly",
60
+ )
61
+ ),
62
+ 'books' => array('scope' => 'https://www.googleapis.com/auth/books'),
63
+ 'latitude' => array(
64
+ 'scope' => array(
65
+ 'https://www.googleapis.com/auth/latitude.all.best',
66
+ 'https://www.googleapis.com/auth/latitude.all.city',
67
+ )
68
+ ),
69
+ 'moderator' => array('scope' => 'https://www.googleapis.com/auth/moderator'),
70
+ 'oauth2' => array(
71
+ 'scope' => array(
72
+ 'https://www.googleapis.com/auth/userinfo.profile',
73
+ 'https://www.googleapis.com/auth/userinfo.email',
74
+ )
75
+ ),
76
+ 'plus' => array('scope' => 'https://www.googleapis.com/auth/plus.login'),
77
+ 'siteVerification' => array('scope' => 'https://www.googleapis.com/auth/siteverification'),
78
+ 'tasks' => array('scope' => 'https://www.googleapis.com/auth/tasks'),
79
+ 'urlshortener' => array('scope' => 'https://www.googleapis.com/auth/urlshortener')
80
+ )
81
+ );
googleclient/contrib/Google_AdExchangeSellerService.php ADDED
@@ -0,0 +1,1262 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /*
3
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
4
+ * use this file except in compliance with the License. You may obtain a copy of
5
+ * the License at
6
+ *
7
+ * http://www.apache.org/licenses/LICENSE-2.0
8
+ *
9
+ * Unless required by applicable law or agreed to in writing, software
10
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
11
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
12
+ * License for the specific language governing permissions and limitations under
13
+ * the License.
14
+ */
15
+
16
+
17
+ /**
18
+ * The "accounts" collection of methods.
19
+ * Typical usage is:
20
+ * <code>
21
+ * $adexchangesellerService = new google_AdExchangeSellerService(...);
22
+ * $accounts = $adexchangesellerService->accounts;
23
+ * </code>
24
+ */
25
+ class google_AccountsServiceResource extends Google_ServiceResource {
26
+
27
+ /**
28
+ * Get information about the selected Ad Exchange account. (accounts.get)
29
+ *
30
+ * @param string $accountId Account to get information about. Tip: 'myaccount' is a valid ID.
31
+ * @param array $optParams Optional parameters.
32
+ * @return google_Account
33
+ */
34
+ public function get($accountId, $optParams = array()) {
35
+ $params = array('accountId' => $accountId);
36
+ $params = array_merge($params, $optParams);
37
+ $data = $this->__call('get', array($params));
38
+ if ($this->useObjects()) {
39
+ return new google_Account($data);
40
+ } else {
41
+ return $data;
42
+ }
43
+ }
44
+ }
45
+
46
+ /**
47
+ * The "adclients" collection of methods.
48
+ * Typical usage is:
49
+ * <code>
50
+ * $adexchangesellerService = new google_AdExchangeSellerService(...);
51
+ * $adclients = $adexchangesellerService->adclients;
52
+ * </code>
53
+ */
54
+ class google_AdclientsServiceResource extends Google_ServiceResource {
55
+
56
+ /**
57
+ * List all ad clients in this Ad Exchange account. (adclients.list)
58
+ *
59
+ * @param array $optParams Optional parameters.
60
+ *
61
+ * @opt_param string maxResults The maximum number of ad clients to include in the response, used for paging.
62
+ * @opt_param string pageToken A continuation token, used to page through ad clients. To retrieve the next page, set this parameter to the value of "nextPageToken" from the previous response.
63
+ * @return google_AdClients
64
+ */
65
+ public function listAdclients($optParams = array()) {
66
+ $params = array();
67
+ $params = array_merge($params, $optParams);
68
+ $data = $this->__call('list', array($params));
69
+ if ($this->useObjects()) {
70
+ return new google_AdClients($data);
71
+ } else {
72
+ return $data;
73
+ }
74
+ }
75
+ }
76
+
77
+ /**
78
+ * The "adunits" collection of methods.
79
+ * Typical usage is:
80
+ * <code>
81
+ * $adexchangesellerService = new google_AdExchangeSellerService(...);
82
+ * $adunits = $adexchangesellerService->adunits;
83
+ * </code>
84
+ */
85
+ class google_AdunitsServiceResource extends Google_ServiceResource {
86
+
87
+ /**
88
+ * Gets the specified ad unit in the specified ad client. (adunits.get)
89
+ *
90
+ * @param string $adClientId Ad client for which to get the ad unit.
91
+ * @param string $adUnitId Ad unit to retrieve.
92
+ * @param array $optParams Optional parameters.
93
+ * @return google_AdUnit
94
+ */
95
+ public function get($adClientId, $adUnitId, $optParams = array()) {
96
+ $params = array('adClientId' => $adClientId, 'adUnitId' => $adUnitId);
97
+ $params = array_merge($params, $optParams);
98
+ $data = $this->__call('get', array($params));
99
+ if ($this->useObjects()) {
100
+ return new google_AdUnit($data);
101
+ } else {
102
+ return $data;
103
+ }
104
+ }
105
+ /**
106
+ * List all ad units in the specified ad client for this Ad Exchange account.
107
+ * (adunits.list)
108
+ *
109
+ * @param string $adClientId Ad client for which to list ad units.
110
+ * @param array $optParams Optional parameters.
111
+ *
112
+ * @opt_param bool includeInactive Whether to include inactive ad units. Default: true.
113
+ * @opt_param string maxResults The maximum number of ad units to include in the response, used for paging.
114
+ * @opt_param string pageToken A continuation token, used to page through ad units. To retrieve the next page, set this parameter to the value of "nextPageToken" from the previous response.
115
+ * @return google_AdUnits
116
+ */
117
+ public function listAdunits($adClientId, $optParams = array()) {
118
+ $params = array('adClientId' => $adClientId);
119
+ $params = array_merge($params, $optParams);
120
+ $data = $this->__call('list', array($params));
121
+ if ($this->useObjects()) {
122
+ return new google_AdUnits($data);
123
+ } else {
124
+ return $data;
125
+ }
126
+ }
127
+ }
128
+
129
+ /**
130
+ * The "customchannels" collection of methods.
131
+ * Typical usage is:
132
+ * <code>
133
+ * $adexchangesellerService = new google_AdExchangeSellerService(...);
134
+ * $customchannels = $adexchangesellerService->customchannels;
135
+ * </code>
136
+ */
137
+ class google_AdunitsCustomchannelsServiceResource extends Google_ServiceResource {
138
+
139
+ /**
140
+ * List all custom channels which the specified ad unit belongs to.
141
+ * (customchannels.list)
142
+ *
143
+ * @param string $adClientId Ad client which contains the ad unit.
144
+ * @param string $adUnitId Ad unit for which to list custom channels.
145
+ * @param array $optParams Optional parameters.
146
+ *
147
+ * @opt_param string maxResults The maximum number of custom channels to include in the response, used for paging.
148
+ * @opt_param string pageToken A continuation token, used to page through custom channels. To retrieve the next page, set this parameter to the value of "nextPageToken" from the previous response.
149
+ * @return google_CustomChannels
150
+ */
151
+ public function listAdunitsCustomchannels($adClientId, $adUnitId, $optParams = array()) {
152
+ $params = array('adClientId' => $adClientId, 'adUnitId' => $adUnitId);
153
+ $params = array_merge($params, $optParams);
154
+ $data = $this->__call('list', array($params));
155
+ if ($this->useObjects()) {
156
+ return new google_CustomChannels($data);
157
+ } else {
158
+ return $data;
159
+ }
160
+ }
161
+ }
162
+
163
+ /**
164
+ * The "alerts" collection of methods.
165
+ * Typical usage is:
166
+ * <code>
167
+ * $adexchangesellerService = new google_AdExchangeSellerService(...);
168
+ * $alerts = $adexchangesellerService->alerts;
169
+ * </code>
170
+ */
171
+ class google_AlertsServiceResource extends Google_ServiceResource {
172
+
173
+ /**
174
+ * List the alerts for this Ad Exchange account. (alerts.list)
175
+ *
176
+ * @param array $optParams Optional parameters.
177
+ *
178
+ * @opt_param string locale The locale to use for translating alert messages. The account locale will be used if this is not supplied. The AdSense default (English) will be used if the supplied locale is invalid or unsupported.
179
+ * @return google_Alerts
180
+ */
181
+ public function listAlerts($optParams = array()) {
182
+ $params = array();
183
+ $params = array_merge($params, $optParams);
184
+ $data = $this->__call('list', array($params));
185
+ if ($this->useObjects()) {
186
+ return new google_Alerts($data);
187
+ } else {
188
+ return $data;
189
+ }
190
+ }
191
+ }
192
+
193
+ /**
194
+ * The "customchannels" collection of methods.
195
+ * Typical usage is:
196
+ * <code>
197
+ * $adexchangesellerService = new google_AdExchangeSellerService(...);
198
+ * $customchannels = $adexchangesellerService->customchannels;
199
+ * </code>
200
+ */
201
+ class google_CustomchannelsServiceResource extends Google_ServiceResource {
202
+
203
+ /**
204
+ * Get the specified custom channel from the specified ad client.
205
+ * (customchannels.get)
206
+ *
207
+ * @param string $adClientId Ad client which contains the custom channel.
208
+ * @param string $customChannelId Custom channel to retrieve.
209
+ * @param array $optParams Optional parameters.
210
+ * @return google_CustomChannel
211
+ */
212
+ public function get($adClientId, $customChannelId, $optParams = array()) {
213
+ $params = array('adClientId' => $adClientId, 'customChannelId' => $customChannelId);
214
+ $params = array_merge($params, $optParams);
215
+ $data = $this->__call('get', array($params));
216
+ if ($this->useObjects()) {
217
+ return new google_CustomChannel($data);
218
+ } else {
219
+ return $data;
220
+ }
221
+ }
222
+ /**
223
+ * List all custom channels in the specified ad client for this Ad Exchange
224
+ * account. (customchannels.list)
225
+ *
226
+ * @param string $adClientId Ad client for which to list custom channels.
227
+ * @param array $optParams Optional parameters.
228
+ *
229
+ * @opt_param string maxResults The maximum number of custom channels to include in the response, used for paging.
230
+ * @opt_param string pageToken A continuation token, used to page through custom channels. To retrieve the next page, set this parameter to the value of "nextPageToken" from the previous response.
231
+ * @return google_CustomChannels
232
+ */
233
+ public function listCustomchannels($adClientId, $optParams = array()) {
234
+ $params = array('adClientId' => $adClientId);
235
+ $params = array_merge($params, $optParams);
236
+ $data = $this->__call('list', array($params));
237
+ if ($this->useObjects()) {
238
+ return new google_CustomChannels($data);
239
+ } else {
240
+ return $data;
241
+ }
242
+ }
243
+ }
244
+
245
+ /**
246
+ * The "adunits" collection of methods.
247
+ * Typical usage is:
248
+ * <code>
249
+ * $adexchangesellerService = new google_AdExchangeSellerService(...);
250
+ * $adunits = $adexchangesellerService->adunits;
251
+ * </code>
252
+ */
253
+ class google_CustomchannelsAdunitsServiceResource extends Google_ServiceResource {
254
+
255
+ /**
256
+ * List all ad units in the specified custom channel. (adunits.list)
257
+ *
258
+ * @param string $adClientId Ad client which contains the custom channel.
259
+ * @param string $customChannelId Custom channel for which to list ad units.
260
+ * @param array $optParams Optional parameters.
261
+ *
262
+ * @opt_param bool includeInactive Whether to include inactive ad units. Default: true.
263
+ * @opt_param string maxResults The maximum number of ad units to include in the response, used for paging.
264
+ * @opt_param string pageToken A continuation token, used to page through ad units. To retrieve the next page, set this parameter to the value of "nextPageToken" from the previous response.
265
+ * @return google_AdUnits
266
+ */
267
+ public function listCustomchannelsAdunits($adClientId, $customChannelId, $optParams = array()) {
268
+ $params = array('adClientId' => $adClientId, 'customChannelId' => $customChannelId);
269
+ $params = array_merge($params, $optParams);
270
+ $data = $this->__call('list', array($params));
271
+ if ($this->useObjects()) {
272
+ return new google_AdUnits($data);
273
+ } else {
274
+ return $data;
275
+ }
276
+ }
277
+ }
278
+
279
+ /**
280
+ * The "metadata" collection of methods.
281
+ * Typical usage is:
282
+ * <code>
283
+ * $adexchangesellerService = new google_AdExchangeSellerService(...);
284
+ * $metadata = $adexchangesellerService->metadata;
285
+ * </code>
286
+ */
287
+ class google_MetadataServiceResource extends Google_ServiceResource {
288
+
289
+ }
290
+
291
+ /**
292
+ * The "dimensions" collection of methods.
293
+ * Typical usage is:
294
+ * <code>
295
+ * $adexchangesellerService = new google_AdExchangeSellerService(...);
296
+ * $dimensions = $adexchangesellerService->dimensions;
297
+ * </code>
298
+ */
299
+ class google_MetadataDimensionsServiceResource extends Google_ServiceResource {
300
+
301
+ /**
302
+ * List the metadata for the dimensions available to this AdExchange account.
303
+ * (dimensions.list)
304
+ *
305
+ * @param array $optParams Optional parameters.
306
+ * @return google_Metadata
307
+ */
308
+ public function listMetadataDimensions($optParams = array()) {
309
+ $params = array();
310
+ $params = array_merge($params, $optParams);
311
+ $data = $this->__call('list', array($params));
312
+ if ($this->useObjects()) {
313
+ return new google_Metadata($data);
314
+ } else {
315
+ return $data;
316
+ }
317
+ }
318
+ }
319
+ /**
320
+ * The "metrics" collection of methods.
321
+ * Typical usage is:
322
+ * <code>
323
+ * $adexchangesellerService = new google_AdExchangeSellerService(...);
324
+ * $metrics = $adexchangesellerService->metrics;
325
+ * </code>
326
+ */
327
+ class google_MetadataMetricsServiceResource extends Google_ServiceResource {
328
+
329
+ /**
330
+ * List the metadata for the metrics available to this AdExchange account.
331
+ * (metrics.list)
332
+ *
333
+ * @param array $optParams Optional parameters.
334
+ * @return google_Metadata
335
+ */
336
+ public function listMetadataMetrics($optParams = array()) {
337
+ $params = array();
338
+ $params = array_merge($params, $optParams);
339
+ $data = $this->__call('list', array($params));
340
+ if ($this->useObjects()) {
341
+ return new google_Metadata($data);
342
+ } else {
343
+ return $data;
344
+ }
345
+ }
346
+ }
347
+
348
+ /**
349
+ * The "preferreddeals" collection of methods.
350
+ * Typical usage is:
351
+ * <code>
352
+ * $adexchangesellerService = new google_AdExchangeSellerService(...);
353
+ * $preferreddeals = $adexchangesellerService->preferreddeals;
354
+ * </code>
355
+ */
356
+ class google_PreferreddealsServiceResource extends Google_ServiceResource {
357
+
358
+ /**
359
+ * Get information about the selected Ad Exchange Preferred Deal.
360
+ * (preferreddeals.get)
361
+ *
362
+ * @param string $dealId Preferred deal to get information about.
363
+ * @param array $optParams Optional parameters.
364
+ * @return google_PreferredDeal
365
+ */
366
+ public function get($dealId, $optParams = array()) {
367
+ $params = array('dealId' => $dealId);
368
+ $params = array_merge($params, $optParams);
369
+ $data = $this->__call('get', array($params));
370
+ if ($this->useObjects()) {
371
+ return new google_PreferredDeal($data);
372
+ } else {
373
+ return $data;
374
+ }
375
+ }
376
+ /**
377
+ * List the preferred deals for this Ad Exchange account. (preferreddeals.list)
378
+ *
379
+ * @param array $optParams Optional parameters.
380
+ * @return google_PreferredDeals
381
+ */
382
+ public function listPreferreddeals($optParams = array()) {
383
+ $params = array();
384
+ $params = array_merge($params, $optParams);
385
+ $data = $this->__call('list', array($params));
386
+ if ($this->useObjects()) {
387
+ return new google_PreferredDeals($data);
388
+ } else {
389
+ return $data;
390
+ }
391
+ }
392
+ }
393
+
394
+ /**
395
+ * The "reports" collection of methods.
396
+ * Typical usage is:
397
+ * <code>
398
+ * $adexchangesellerService = new google_AdExchangeSellerService(...);
399
+ * $reports = $adexchangesellerService->reports;
400
+ * </code>
401
+ */
402
+ class google_ReportsServiceResource extends Google_ServiceResource {
403
+
404
+ /**
405
+ * Generate an Ad Exchange report based on the report request sent in the query
406
+ * parameters. Returns the result as JSON; to retrieve output in CSV format
407
+ * specify "alt=csv" as a query parameter. (reports.generate)
408
+ *
409
+ * @param string $startDate Start of the date range to report on in "YYYY-MM-DD" format, inclusive.
410
+ * @param string $endDate End of the date range to report on in "YYYY-MM-DD" format, inclusive.
411
+ * @param array $optParams Optional parameters.
412
+ *
413
+ * @opt_param string dimension Dimensions to base the report on.
414
+ * @opt_param string filter Filters to be run on the report.
415
+ * @opt_param string locale Optional locale to use for translating report output to a local language. Defaults to "en_US" if not specified.
416
+ * @opt_param string maxResults The maximum number of rows of report data to return.
417
+ * @opt_param string metric Numeric columns to include in the report.
418
+ * @opt_param string sort The name of a dimension or metric to sort the resulting report on, optionally prefixed with "+" to sort ascending or "-" to sort descending. If no prefix is specified, the column is sorted ascending.
419
+ * @opt_param string startIndex Index of the first row of report data to return.
420
+ * @return google_Report
421
+ */
422
+ public function generate($startDate, $endDate, $optParams = array()) {
423
+ $params = array('startDate' => $startDate, 'endDate' => $endDate);
424
+ $params = array_merge($params, $optParams);
425
+ $data = $this->__call('generate', array($params));
426
+ if ($this->useObjects()) {
427
+ return new google_Report($data);
428
+ } else {
429
+ return $data;
430
+ }
431
+ }
432
+ }
433
+
434
+ /**
435
+ * The "saved" collection of methods.
436
+ * Typical usage is:
437
+ * <code>
438
+ * $adexchangesellerService = new google_AdExchangeSellerService(...);
439
+ * $saved = $adexchangesellerService->saved;
440
+ * </code>
441
+ */
442
+ class google_ReportsSavedServiceResource extends Google_ServiceResource {
443
+
444
+ /**
445
+ * Generate an Ad Exchange report based on the saved report ID sent in the query
446
+ * parameters. (saved.generate)
447
+ *
448
+ * @param string $savedReportId The saved report to retrieve.
449
+ * @param array $optParams Optional parameters.
450
+ *
451
+ * @opt_param string locale Optional locale to use for translating report output to a local language. Defaults to "en_US" if not specified.
452
+ * @opt_param int maxResults The maximum number of rows of report data to return.
453
+ * @opt_param int startIndex Index of the first row of report data to return.
454
+ * @return google_Report
455
+ */
456
+ public function generate($savedReportId, $optParams = array()) {
457
+ $params = array('savedReportId' => $savedReportId);
458
+ $params = array_merge($params, $optParams);
459
+ $data = $this->__call('generate', array($params));
460
+ if ($this->useObjects()) {
461
+ return new google_Report($data);
462
+ } else {
463
+ return $data;
464
+ }
465
+ }
466
+ /**
467
+ * List all saved reports in this Ad Exchange account. (saved.list)
468
+ *
469
+ * @param array $optParams Optional parameters.
470
+ *
471
+ * @opt_param int maxResults The maximum number of saved reports to include in the response, used for paging.
472
+ * @opt_param string pageToken A continuation token, used to page through saved reports. To retrieve the next page, set this parameter to the value of "nextPageToken" from the previous response.
473
+ * @return google_SavedReports
474
+ */
475
+ public function listReportsSaved($optParams = array()) {
476
+ $params = array();
477
+ $params = array_merge($params, $optParams);
478
+ $data = $this->__call('list', array($params));
479
+ if ($this->useObjects()) {
480
+ return new google_SavedReports($data);
481
+ } else {
482
+ return $data;
483
+ }
484
+ }
485
+ }
486
+
487
+ /**
488
+ * The "urlchannels" collection of methods.
489
+ * Typical usage is:
490
+ * <code>
491
+ * $adexchangesellerService = new google_AdExchangeSellerService(...);
492
+ * $urlchannels = $adexchangesellerService->urlchannels;
493
+ * </code>
494
+ */
495
+ class google_UrlchannelsServiceResource extends Google_ServiceResource {
496
+
497
+ /**
498
+ * List all URL channels in the specified ad client for this Ad Exchange
499
+ * account. (urlchannels.list)
500
+ *
501
+ * @param string $adClientId Ad client for which to list URL channels.
502
+ * @param array $optParams Optional parameters.
503
+ *
504
+ * @opt_param string maxResults The maximum number of URL channels to include in the response, used for paging.
505
+ * @opt_param string pageToken A continuation token, used to page through URL channels. To retrieve the next page, set this parameter to the value of "nextPageToken" from the previous response.
506
+ * @return google_UrlChannels
507
+ */
508
+ public function listUrlchannels($adClientId, $optParams = array()) {
509
+ $params = array('adClientId' => $adClientId);
510
+ $params = array_merge($params, $optParams);
511
+ $data = $this->__call('list', array($params));
512
+ if ($this->useObjects()) {
513
+ return new google_UrlChannels($data);
514
+ } else {
515
+ return $data;
516
+ }
517
+ }
518
+ }
519
+
520
+ /**
521
+ * Service definition for google_AdExchangeSeller (v1.1).
522
+ *
523
+ * <p>
524
+ * Gives Ad Exchange seller users access to their inventory and the ability to generate reports
525
+ * </p>
526
+ *
527
+ * <p>
528
+ * For more information about this service, see the
529
+ * <a href="https://developers.google.com/ad-exchange/seller-rest/" target="_blank">API Documentation</a>
530
+ * </p>
531
+ *
532
+ * @author Google, Inc.
533
+ */
534
+ class google_AdExchangeSellerService extends Google_Service {
535
+ public $accounts;
536
+ public $adclients;
537
+ public $adunits;
538
+ public $adunits_customchannels;
539
+ public $alerts;
540
+ public $customchannels;
541
+ public $customchannels_adunits;
542
+ public $metadata_dimensions;
543
+ public $metadata_metrics;
544
+ public $preferreddeals;
545
+ public $reports;
546
+ public $reports_saved;
547
+ public $urlchannels;
548
+ /**
549
+ * Constructs the internal representation of the AdExchangeSeller service.
550
+ *
551
+ * @param Google_Client $client
552
+ */
553
+ public function __construct(Google_Client $client) {
554
+ $this->servicePath = 'adexchangeseller/v1.1/';
555
+ $this->version = 'v1.1';
556
+ $this->serviceName = 'adexchangeseller';
557
+
558
+ $client->addService($this->serviceName, $this->version);
559
+ $this->accounts = new google_AccountsServiceResource($this, $this->serviceName, 'accounts', json_decode('{"methods": {"get": {"id": "adexchangeseller.accounts.get", "path": "accounts/{accountId}", "httpMethod": "GET", "parameters": {"accountId": {"type": "string", "required": true, "location": "path"}}, "response": {"$ref": "Account"}, "scopes": ["https://www.googleapis.com/auth/adexchange.seller", "https://www.googleapis.com/auth/adexchange.seller.readonly"]}}}', true));
560
+ $this->adclients = new google_AdclientsServiceResource($this, $this->serviceName, 'adclients', json_decode('{"methods": {"list": {"id": "adexchangeseller.adclients.list", "path": "adclients", "httpMethod": "GET", "parameters": {"maxResults": {"type": "integer", "format": "uint32", "minimum": "0", "maximum": "10000", "location": "query"}, "pageToken": {"type": "string", "location": "query"}}, "response": {"$ref": "AdClients"}, "scopes": ["https://www.googleapis.com/auth/adexchange.seller", "https://www.googleapis.com/auth/adexchange.seller.readonly"]}}}', true));
561
+ $this->adunits = new google_AdunitsServiceResource($this, $this->serviceName, 'adunits', json_decode('{"methods": {"get": {"id": "adexchangeseller.adunits.get", "path": "adclients/{adClientId}/adunits/{adUnitId}", "httpMethod": "GET", "parameters": {"adClientId": {"type": "string", "required": true, "location": "path"}, "adUnitId": {"type": "string", "required": true, "location": "path"}}, "response": {"$ref": "AdUnit"}, "scopes": ["https://www.googleapis.com/auth/adexchange.seller", "https://www.googleapis.com/auth/adexchange.seller.readonly"]}, "list": {"id": "adexchangeseller.adunits.list", "path": "adclients/{adClientId}/adunits", "httpMethod": "GET", "parameters": {"adClientId": {"type": "string", "required": true, "location": "path"}, "includeInactive": {"type": "boolean", "location": "query"}, "maxResults": {"type": "integer", "format": "uint32", "minimum": "0", "maximum": "10000", "location": "query"}, "pageToken": {"type": "string", "location": "query"}}, "response": {"$ref": "AdUnits"}, "scopes": ["https://www.googleapis.com/auth/adexchange.seller", "https://www.googleapis.com/auth/adexchange.seller.readonly"]}}}', true));
562
+ $this->adunits_customchannels = new google_AdunitsCustomchannelsServiceResource($this, $this->serviceName, 'customchannels', json_decode('{"methods": {"list": {"id": "adexchangeseller.adunits.customchannels.list", "path": "adclients/{adClientId}/adunits/{adUnitId}/customchannels", "httpMethod": "GET", "parameters": {"adClientId": {"type": "string", "required": true, "location": "path"}, "adUnitId": {"type": "string", "required": true, "location": "path"}, "maxResults": {"type": "integer", "format": "uint32", "minimum": "0", "maximum": "10000", "location": "query"}, "pageToken": {"type": "string", "location": "query"}}, "response": {"$ref": "CustomChannels"}, "scopes": ["https://www.googleapis.com/auth/adexchange.seller", "https://www.googleapis.com/auth/adexchange.seller.readonly"]}}}', true));
563
+ $this->alerts = new google_AlertsServiceResource($this, $this->serviceName, 'alerts', json_decode('{"methods": {"list": {"id": "adexchangeseller.alerts.list", "path": "alerts", "httpMethod": "GET", "parameters": {"locale": {"type": "string", "location": "query"}}, "response": {"$ref": "Alerts"}, "scopes": ["https://www.googleapis.com/auth/adexchange.seller", "https://www.googleapis.com/auth/adexchange.seller.readonly"]}}}', true));
564
+ $this->customchannels = new google_CustomchannelsServiceResource($this, $this->serviceName, 'customchannels', json_decode('{"methods": {"get": {"id": "adexchangeseller.customchannels.get", "path": "adclients/{adClientId}/customchannels/{customChannelId}", "httpMethod": "GET", "parameters": {"adClientId": {"type": "string", "required": true, "location": "path"}, "customChannelId": {"type": "string", "required": true, "location": "path"}}, "response": {"$ref": "CustomChannel"}, "scopes": ["https://www.googleapis.com/auth/adexchange.seller", "https://www.googleapis.com/auth/adexchange.seller.readonly"]}, "list": {"id": "adexchangeseller.customchannels.list", "path": "adclients/{adClientId}/customchannels", "httpMethod": "GET", "parameters": {"adClientId": {"type": "string", "required": true, "location": "path"}, "maxResults": {"type": "integer", "format": "uint32", "minimum": "0", "maximum": "10000", "location": "query"}, "pageToken": {"type": "string", "location": "query"}}, "response": {"$ref": "CustomChannels"}, "scopes": ["https://www.googleapis.com/auth/adexchange.seller", "https://www.googleapis.com/auth/adexchange.seller.readonly"]}}}', true));
565
+ $this->customchannels_adunits = new google_CustomchannelsAdunitsServiceResource($this, $this->serviceName, 'adunits', json_decode('{"methods": {"list": {"id": "adexchangeseller.customchannels.adunits.list", "path": "adclients/{adClientId}/customchannels/{customChannelId}/adunits", "httpMethod": "GET", "parameters": {"adClientId": {"type": "string", "required": true, "location": "path"}, "customChannelId": {"type": "string", "required": true, "location": "path"}, "includeInactive": {"type": "boolean", "location": "query"}, "maxResults": {"type": "integer", "format": "uint32", "minimum": "0", "maximum": "10000", "location": "query"}, "pageToken": {"type": "string", "location": "query"}}, "response": {"$ref": "AdUnits"}, "scopes": ["https://www.googleapis.com/auth/adexchange.seller", "https://www.googleapis.com/auth/adexchange.seller.readonly"]}}}', true));
566
+ $this->metadata_dimensions = new google_MetadataDimensionsServiceResource($this, $this->serviceName, 'dimensions', json_decode('{"methods": {"list": {"id": "adexchangeseller.metadata.dimensions.list", "path": "metadata/dimensions", "httpMethod": "GET", "response": {"$ref": "Metadata"}, "scopes": ["https://www.googleapis.com/auth/adexchange.seller", "https://www.googleapis.com/auth/adexchange.seller.readonly"]}}}', true));
567
+ $this->metadata_metrics = new google_MetadataMetricsServiceResource($this, $this->serviceName, 'metrics', json_decode('{"methods": {"list": {"id": "adexchangeseller.metadata.metrics.list", "path": "metadata/metrics", "httpMethod": "GET", "response": {"$ref": "Metadata"}, "scopes": ["https://www.googleapis.com/auth/adexchange.seller", "https://www.googleapis.com/auth/adexchange.seller.readonly"]}}}', true));
568
+ $this->preferreddeals = new google_PreferreddealsServiceResource($this, $this->serviceName, 'preferreddeals', json_decode('{"methods": {"get": {"id": "adexchangeseller.preferreddeals.get", "path": "preferreddeals/{dealId}", "httpMethod": "GET", "parameters": {"dealId": {"type": "string", "required": true, "location": "path"}}, "response": {"$ref": "PreferredDeal"}, "scopes": ["https://www.googleapis.com/auth/adexchange.seller", "https://www.googleapis.com/auth/adexchange.seller.readonly"]}, "list": {"id": "adexchangeseller.preferreddeals.list", "path": "preferreddeals", "httpMethod": "GET", "response": {"$ref": "PreferredDeals"}, "scopes": ["https://www.googleapis.com/auth/adexchange.seller", "https://www.googleapis.com/auth/adexchange.seller.readonly"]}}}', true));
569
+ $this->reports = new google_ReportsServiceResource($this, $this->serviceName, 'reports', json_decode('{"methods": {"generate": {"id": "adexchangeseller.reports.generate", "path": "reports", "httpMethod": "GET", "parameters": {"dimension": {"type": "string", "repeated": true, "location": "query"}, "endDate": {"type": "string", "required": true, "location": "query"}, "filter": {"type": "string", "repeated": true, "location": "query"}, "locale": {"type": "string", "location": "query"}, "maxResults": {"type": "integer", "format": "uint32", "minimum": "0", "maximum": "50000", "location": "query"}, "metric": {"type": "string", "repeated": true, "location": "query"}, "sort": {"type": "string", "repeated": true, "location": "query"}, "startDate": {"type": "string", "required": true, "location": "query"}, "startIndex": {"type": "integer", "format": "uint32", "minimum": "0", "maximum": "5000", "location": "query"}}, "response": {"$ref": "Report"}, "scopes": ["https://www.googleapis.com/auth/adexchange.seller", "https://www.googleapis.com/auth/adexchange.seller.readonly"], "supportsMediaDownload": true}}}', true));
570
+ $this->reports_saved = new google_ReportsSavedServiceResource($this, $this->serviceName, 'saved', json_decode('{"methods": {"generate": {"id": "adexchangeseller.reports.saved.generate", "path": "reports/{savedReportId}", "httpMethod": "GET", "parameters": {"locale": {"type": "string", "location": "query"}, "maxResults": {"type": "integer", "format": "int32", "minimum": "0", "maximum": "50000", "location": "query"}, "savedReportId": {"type": "string", "required": true, "location": "path"}, "startIndex": {"type": "integer", "format": "int32", "minimum": "0", "maximum": "5000", "location": "query"}}, "response": {"$ref": "Report"}, "scopes": ["https://www.googleapis.com/auth/adexchange.seller", "https://www.googleapis.com/auth/adexchange.seller.readonly"]}, "list": {"id": "adexchangeseller.reports.saved.list", "path": "reports/saved", "httpMethod": "GET", "parameters": {"maxResults": {"type": "integer", "format": "int32", "minimum": "0", "maximum": "100", "location": "query"}, "pageToken": {"type": "string", "location": "query"}}, "response": {"$ref": "SavedReports"}, "scopes": ["https://www.googleapis.com/auth/adexchange.seller", "https://www.googleapis.com/auth/adexchange.seller.readonly"]}}}', true));
571
+ $this->urlchannels = new google_UrlchannelsServiceResource($this, $this->serviceName, 'urlchannels', json_decode('{"methods": {"list": {"id": "adexchangeseller.urlchannels.list", "path": "adclients/{adClientId}/urlchannels", "httpMethod": "GET", "parameters": {"adClientId": {"type": "string", "required": true, "location": "path"}, "maxResults": {"type": "integer", "format": "uint32", "minimum": "0", "maximum": "10000", "location": "query"}, "pageToken": {"type": "string", "location": "query"}}, "response": {"$ref": "UrlChannels"}, "scopes": ["https://www.googleapis.com/auth/adexchange.seller", "https://www.googleapis.com/auth/adexchange.seller.readonly"]}}}', true));
572
+
573
+ }
574
+ }
575
+
576
+
577
+
578
+ class google_Account extends Google_Model {
579
+ public $id;
580
+ public $kind;
581
+ public $name;
582
+ public function setId( $id) {
583
+ $this->id = $id;
584
+ }
585
+ public function getId() {
586
+ return $this->id;
587
+ }
588
+ public function setKind( $kind) {
589
+ $this->kind = $kind;
590
+ }
591
+ public function getKind() {
592
+ return $this->kind;
593
+ }
594
+ public function setName( $name) {
595
+ $this->name = $name;
596
+ }
597
+ public function getName() {
598
+ return $this->name;
599
+ }
600
+ }
601
+
602
+ class google_AdClient extends Google_Model {
603
+ public $arcOptIn;
604
+ public $id;
605
+ public $kind;
606
+ public $productCode;
607
+ public $supportsReporting;
608
+ public function setArcOptIn( $arcOptIn) {
609
+ $this->arcOptIn = $arcOptIn;
610
+ }
611
+ public function getArcOptIn() {
612
+ return $this->arcOptIn;
613
+ }
614
+ public function setId( $id) {
615
+ $this->id = $id;
616
+ }
617
+ public function getId() {
618
+ return $this->id;
619
+ }
620
+ public function setKind( $kind) {
621
+ $this->kind = $kind;
622
+ }
623
+ public function getKind() {
624
+ return $this->kind;
625
+ }
626
+ public function setProductCode( $productCode) {
627
+ $this->productCode = $productCode;
628
+ }
629
+ public function getProductCode() {
630
+ return $this->productCode;
631
+ }
632
+ public function setSupportsReporting( $supportsReporting) {
633
+ $this->supportsReporting = $supportsReporting;
634
+ }
635
+ public function getSupportsReporting() {
636
+ return $this->supportsReporting;
637
+ }
638
+ }
639
+
640
+ class google_AdClients extends Google_Model {
641
+ public $etag;
642
+ protected $__itemsType = 'Google_AdClient';
643
+ protected $__itemsDataType = 'array';
644
+ public $items;
645
+ public $kind;
646
+ public $nextPageToken;
647
+ public function setEtag( $etag) {
648
+ $this->etag = $etag;
649
+ }
650
+ public function getEtag() {
651
+ return $this->etag;
652
+ }
653
+ public function setItems(/* array(google_AdClient) */ $items) {
654
+ $this->assertIsArray($items, 'google_AdClient', __METHOD__);
655
+ $this->items = $items;
656
+ }
657
+ public function getItems() {
658
+ return $this->items;
659
+ }
660
+ public function setKind( $kind) {
661
+ $this->kind = $kind;
662
+ }
663
+ public function getKind() {
664
+ return $this->kind;
665
+ }
666
+ public function setNextPageToken( $nextPageToken) {
667
+ $this->nextPageToken = $nextPageToken;
668
+ }
669
+ public function getNextPageToken() {
670
+ return $this->nextPageToken;
671
+ }
672
+ }
673
+
674
+ class google_AdUnit extends Google_Model {
675
+ public $code;
676
+ public $id;
677
+ public $kind;
678
+ public $name;
679
+ public $status;
680
+ public function setCode( $code) {
681
+ $this->code = $code;
682
+ }
683
+ public function getCode() {
684
+ return $this->code;
685
+ }
686
+ public function setId( $id) {
687
+ $this->id = $id;
688
+ }
689
+ public function getId() {
690
+ return $this->id;
691
+ }
692
+ public function setKind( $kind) {
693
+ $this->kind = $kind;
694
+ }
695
+ public function getKind() {
696
+ return $this->kind;
697
+ }
698
+ public function setName( $name) {
699
+ $this->name = $name;
700
+ }
701
+ public function getName() {
702
+ return $this->name;
703
+ }
704
+ public function setStatus( $status) {
705
+ $this->status = $status;
706
+ }
707
+ public function getStatus() {
708
+ return $this->status;
709
+ }
710
+ }
711
+
712
+ class google_AdUnits extends Google_Model {
713
+ public $etag;
714
+ protected $__itemsType = 'Google_AdUnit';
715
+ protected $__itemsDataType = 'array';
716
+ public $items;
717
+ public $kind;
718
+ public $nextPageToken;
719
+ public function setEtag( $etag) {
720
+ $this->etag = $etag;
721
+ }
722
+ public function getEtag() {
723
+ return $this->etag;
724
+ }
725
+ public function setItems(/* array(google_AdUnit) */ $items) {
726
+ $this->assertIsArray($items, 'google_AdUnit', __METHOD__);
727
+ $this->items = $items;
728
+ }
729
+ public function getItems() {
730
+ return $this->items;
731
+ }
732
+ public function setKind( $kind) {
733
+ $this->kind = $kind;
734
+ }
735
+ public function getKind() {
736
+ return $this->kind;
737
+ }
738
+ public function setNextPageToken( $nextPageToken) {
739
+ $this->nextPageToken = $nextPageToken;
740
+ }
741
+ public function getNextPageToken() {
742
+ return $this->nextPageToken;
743
+ }
744
+ }
745
+
746
+ class google_Alert extends Google_Model {
747
+ public $id;
748
+ public $kind;
749
+ public $message;
750
+ public $severity;
751
+ public $type;
752
+ public function setId( $id) {
753
+ $this->id = $id;
754
+ }
755
+ public function getId() {
756
+ return $this->id;
757
+ }
758
+ public function setKind( $kind) {
759
+ $this->kind = $kind;
760
+ }
761
+ public function getKind() {
762
+ return $this->kind;
763
+ }
764
+ public function setMessage( $message) {
765
+ $this->message = $message;
766
+ }
767
+ public function getMessage() {
768
+ return $this->message;
769
+ }
770
+ public function setSeverity( $severity) {
771
+ $this->severity = $severity;
772
+ }
773
+ public function getSeverity() {
774
+ return $this->severity;
775
+ }
776
+ public function setType( $type) {
777
+ $this->type = $type;
778
+ }
779
+ public function getType() {
780
+ return $this->type;
781
+ }
782
+ }
783
+
784
+ class google_Alerts extends Google_Model {
785
+ protected $__itemsType = 'Google_Alert';
786
+ protected $__itemsDataType = 'array';
787
+ public $items;
788
+ public $kind;
789
+ public function setItems(/* array(google_Alert) */ $items) {
790
+ $this->assertIsArray($items, 'google_Alert', __METHOD__);
791
+ $this->items = $items;
792
+ }
793
+ public function getItems() {
794
+ return $this->items;
795
+ }
796
+ public function setKind( $kind) {
797
+ $this->kind = $kind;
798
+ }
799
+ public function getKind() {
800
+ return $this->kind;
801
+ }
802
+ }
803
+
804
+ class google_CustomChannel extends Google_Model {
805
+ public $code;
806
+ public $id;
807
+ public $kind;
808
+ public $name;
809
+ protected $__targetingInfoType = 'Google_CustomChannelTargetingInfo';
810
+ protected $__targetingInfoDataType = '';
811
+ public $targetingInfo;
812
+ public function setCode( $code) {
813
+ $this->code = $code;
814
+ }
815
+ public function getCode() {
816
+ return $this->code;
817
+ }
818
+ public function setId( $id) {
819
+ $this->id = $id;
820
+ }
821
+ public function getId() {
822
+ return $this->id;
823
+ }
824
+ public function setKind( $kind) {
825
+ $this->kind = $kind;
826
+ }
827
+ public function getKind() {
828
+ return $this->kind;
829
+ }
830
+ public function setName( $name) {
831
+ $this->name = $name;
832
+ }
833
+ public function getName() {
834
+ return $this->name;
835
+ }
836
+ public function setTargetingInfo(Google_CustomChannelTargetingInfo $targetingInfo) {
837
+ $this->targetingInfo = $targetingInfo;
838
+ }
839
+ public function getTargetingInfo() {
840
+ return $this->targetingInfo;
841
+ }
842
+ }
843
+
844
+ class google_CustomChannelTargetingInfo extends Google_Model {
845
+ public $adsAppearOn;
846
+ public $description;
847
+ public $location;
848
+ public $siteLanguage;
849
+ public function setAdsAppearOn( $adsAppearOn) {
850
+ $this->adsAppearOn = $adsAppearOn;
851
+ }
852
+ public function getAdsAppearOn() {
853
+ return $this->adsAppearOn;
854
+ }
855
+ public function setDescription( $description) {
856
+ $this->description = $description;
857
+ }
858
+ public function getDescription() {
859
+ return $this->description;
860
+ }
861
+ public function setLocation( $location) {
862
+ $this->location = $location;
863
+ }
864
+ public function getLocation() {
865
+ return $this->location;
866
+ }
867
+ public function setSiteLanguage( $siteLanguage) {
868
+ $this->siteLanguage = $siteLanguage;
869
+ }
870
+ public function getSiteLanguage() {
871
+ return $this->siteLanguage;
872
+ }
873
+ }
874
+
875
+ class google_CustomChannels extends Google_Model {
876
+ public $etag;
877
+ protected $__itemsType = 'Google_CustomChannel';
878
+ protected $__itemsDataType = 'array';
879
+ public $items;
880
+ public $kind;
881
+ public $nextPageToken;
882
+ public function setEtag( $etag) {
883
+ $this->etag = $etag;
884
+ }
885
+ public function getEtag() {
886
+ return $this->etag;
887
+ }
888
+ public function setItems(/* array(google_CustomChannel) */ $items) {
889
+ $this->assertIsArray($items, 'google_CustomChannel', __METHOD__);
890
+ $this->items = $items;
891
+ }
892
+ public function getItems() {
893
+ return $this->items;
894
+ }
895
+ public function setKind( $kind) {
896
+ $this->kind = $kind;
897
+ }
898
+ public function getKind() {
899
+ return $this->kind;
900
+ }
901
+ public function setNextPageToken( $nextPageToken) {
902
+ $this->nextPageToken = $nextPageToken;
903
+ }
904
+ public function getNextPageToken() {
905
+ return $this->nextPageToken;
906
+ }
907
+ }
908
+
909
+ class google_Metadata extends Google_Model {
910
+ protected $__itemsType = 'Google_ReportingMetadataEntry';
911
+ protected $__itemsDataType = 'array';
912
+ public $items;
913
+ public $kind;
914
+ public function setItems(/* array(google_ReportingMetadataEntry) */ $items) {
915
+ $this->assertIsArray($items, 'google_ReportingMetadataEntry', __METHOD__);
916
+ $this->items = $items;
917
+ }
918
+ public function getItems() {
919
+ return $this->items;
920
+ }
921
+ public function setKind( $kind) {
922
+ $this->kind = $kind;
923
+ }
924
+ public function getKind() {
925
+ return $this->kind;
926
+ }
927
+ }
928
+
929
+ class google_PreferredDeal extends Google_Model {
930
+ public $advertiserName;
931
+ public $buyerNetworkName;
932
+ public $currencyCode;
933
+ public $endTime;
934
+ public $fixedCpm;
935
+ public $id;
936
+ public $kind;
937
+ public $startTime;
938
+ public function setAdvertiserName( $advertiserName) {
939
+ $this->advertiserName = $advertiserName;
940
+ }
941
+ public function getAdvertiserName() {
942
+ return $this->advertiserName;
943
+ }
944
+ public function setBuyerNetworkName( $buyerNetworkName) {
945
+ $this->buyerNetworkName = $buyerNetworkName;
946
+ }
947
+ public function getBuyerNetworkName() {
948
+ return $this->buyerNetworkName;
949
+ }
950
+ public function setCurrencyCode( $currencyCode) {
951
+ $this->currencyCode = $currencyCode;
952
+ }
953
+ public function getCurrencyCode() {
954
+ return $this->currencyCode;
955
+ }
956
+ public function setEndTime( $endTime) {
957
+ $this->endTime = $endTime;
958
+ }
959
+ public function getEndTime() {
960
+ return $this->endTime;
961
+ }
962
+ public function setFixedCpm( $fixedCpm) {
963
+ $this->fixedCpm = $fixedCpm;
964
+ }
965
+ public function getFixedCpm() {
966
+ return $this->fixedCpm;
967
+ }
968
+ public function setId( $id) {
969
+ $this->id = $id;
970
+ }
971
+ public function getId() {
972
+ return $this->id;
973
+ }
974
+ public function setKind( $kind) {
975
+ $this->kind = $kind;
976
+ }
977
+ public function getKind() {
978
+ return $this->kind;
979
+ }
980
+ public function setStartTime( $startTime) {
981
+ $this->startTime = $startTime;
982
+ }
983
+ public function getStartTime() {
984
+ return $this->startTime;
985
+ }
986
+ }
987
+
988
+ class google_PreferredDeals extends Google_Model {
989
+ protected $__itemsType = 'Google_PreferredDeal';
990
+ protected $__itemsDataType = 'array';
991
+ public $items;
992
+ public $kind;
993
+ public function setItems(/* array(google_PreferredDeal) */ $items) {
994
+ $this->assertIsArray($items, 'google_PreferredDeal', __METHOD__);
995
+ $this->items = $items;
996
+ }
997
+ public function getItems() {
998
+ return $this->items;
999
+ }
1000
+ public function setKind( $kind) {
1001
+ $this->kind = $kind;
1002
+ }
1003
+ public function getKind() {
1004
+ return $this->kind;
1005
+ }
1006
+ }
1007
+
1008
+ class google_Report extends Google_Model {
1009
+ public $averages;
1010
+ protected $__headersType = 'Google_ReportHeaders';
1011
+ protected $__headersDataType = 'array';
1012
+ public $headers;
1013
+ public $kind;
1014
+ public $rows;
1015
+ public $totalMatchedRows;
1016
+ public $totals;
1017
+ public $warnings;
1018
+ public function setAverages(/* array(google_string) */ $averages) {
1019
+ $this->assertIsArray($averages, 'google_string', __METHOD__);
1020
+ $this->averages = $averages;
1021
+ }
1022
+ public function getAverages() {
1023
+ return $this->averages;
1024
+ }
1025
+ public function setHeaders(/* array(google_ReportHeaders) */ $headers) {
1026
+ $this->assertIsArray($headers, 'google_ReportHeaders', __METHOD__);
1027
+ $this->headers = $headers;
1028
+ }
1029
+ public function getHeaders() {
1030
+ return $this->headers;
1031
+ }
1032
+ public function setKind( $kind) {
1033
+ $this->kind = $kind;
1034
+ }
1035
+ public function getKind() {
1036
+ return $this->kind;
1037
+ }
1038
+ public function setRows(/* array(google_string) */ $rows) {
1039
+ $this->assertIsArray($rows, 'google_string', __METHOD__);
1040
+ $this->rows = $rows;
1041
+ }
1042
+ public function getRows() {
1043
+ return $this->rows;
1044
+ }
1045
+ public function setTotalMatchedRows( $totalMatchedRows) {
1046
+ $this->totalMatchedRows = $totalMatchedRows;
1047
+ }
1048
+ public function getTotalMatchedRows() {
1049
+ return $this->totalMatchedRows;
1050
+ }
1051
+ public function setTotals(/* array(google_string) */ $totals) {
1052
+ $this->assertIsArray($totals, 'google_string', __METHOD__);
1053
+ $this->totals = $totals;
1054
+ }
1055
+ public function getTotals() {
1056
+ return $this->totals;
1057
+ }
1058
+ public function setWarnings(/* array(google_string) */ $warnings) {
1059
+ $this->assertIsArray($warnings, 'google_string', __METHOD__);
1060
+ $this->warnings = $warnings;
1061
+ }
1062
+ public function getWarnings() {
1063
+ return $this->warnings;
1064
+ }
1065
+ }
1066
+
1067
+ class google_ReportHeaders extends Google_Model {
1068
+ public $currency;
1069
+ public $name;
1070
+ public $type;
1071
+ public function setCurrency( $currency) {
1072
+ $this->currency = $currency;
1073
+ }
1074
+ public function getCurrency() {
1075
+ return $this->currency;
1076
+ }
1077
+ public function setName( $name) {
1078
+ $this->name = $name;
1079
+ }
1080
+ public function getName() {
1081
+ return $this->name;
1082
+ }
1083
+ public function setType( $type) {
1084
+ $this->type = $type;
1085
+ }
1086
+ public function getType() {
1087
+ return $this->type;
1088
+ }
1089
+ }
1090
+
1091
+ class google_ReportingMetadataEntry extends Google_Model {
1092
+ public $compatibleDimensions;
1093
+ public $compatibleMetrics;
1094
+ public $id;
1095
+ public $kind;
1096
+ public $requiredDimensions;
1097
+ public $requiredMetrics;
1098
+ public $supportedProducts;
1099
+ public function setCompatibleDimensions(/* array(google_string) */ $compatibleDimensions) {
1100
+ $this->assertIsArray($compatibleDimensions, 'google_string', __METHOD__);
1101
+ $this->compatibleDimensions = $compatibleDimensions;
1102
+ }
1103
+ public function getCompatibleDimensions() {
1104
+ return $this->compatibleDimensions;
1105
+ }
1106
+ public function setCompatibleMetrics(/* array(google_string) */ $compatibleMetrics) {
1107
+ $this->assertIsArray($compatibleMetrics, 'google_string', __METHOD__);
1108
+ $this->compatibleMetrics = $compatibleMetrics;
1109
+ }
1110
+ public function getCompatibleMetrics() {
1111
+ return $this->compatibleMetrics;
1112
+ }
1113
+ public function setId( $id) {
1114
+ $this->id = $id;
1115
+ }
1116
+ public function getId() {
1117
+ return $this->id;
1118
+ }
1119
+ public function setKind( $kind) {
1120
+ $this->kind = $kind;
1121
+ }
1122
+ public function getKind() {
1123
+ return $this->kind;
1124
+ }
1125
+ public function setRequiredDimensions(/* array(google_string) */ $requiredDimensions) {
1126
+ $this->assertIsArray($requiredDimensions, 'google_string', __METHOD__);
1127
+ $this->requiredDimensions = $requiredDimensions;
1128
+ }
1129
+ public function getRequiredDimensions() {
1130
+ return $this->requiredDimensions;
1131
+ }
1132
+ public function setRequiredMetrics(/* array(google_string) */ $requiredMetrics) {
1133
+ $this->assertIsArray($requiredMetrics, 'google_string', __METHOD__);
1134
+ $this->requiredMetrics = $requiredMetrics;
1135
+ }
1136
+ public function getRequiredMetrics() {
1137
+ return $this->requiredMetrics;
1138
+ }
1139
+ public function setSupportedProducts(/* array(google_string) */ $supportedProducts) {
1140
+ $this->assertIsArray($supportedProducts, 'google_string', __METHOD__);
1141
+ $this->supportedProducts = $supportedProducts;
1142
+ }
1143
+ public function getSupportedProducts() {
1144
+ return $this->supportedProducts;
1145
+ }
1146
+ }
1147
+
1148
+ class google_SavedReport extends Google_Model {
1149
+ public $id;
1150
+ public $kind;
1151
+ public $name;
1152
+ public function setId( $id) {
1153
+ $this->id = $id;
1154
+ }
1155
+ public function getId() {
1156
+ return $this->id;
1157
+ }
1158
+ public function setKind( $kind) {
1159
+ $this->kind = $kind;
1160
+ }
1161
+ public function getKind() {
1162
+ return $this->kind;
1163
+ }
1164
+ public function setName( $name) {
1165
+ $this->name = $name;
1166
+ }
1167
+ public function getName() {
1168
+ return $this->name;
1169
+ }
1170
+ }
1171
+
1172
+ class google_SavedReports extends Google_Model {
1173
+ public $etag;
1174
+ protected $__itemsType = 'Google_SavedReport';
1175
+ protected $__itemsDataType = 'array';
1176
+ public $items;
1177
+ public $kind;
1178
+ public $nextPageToken;
1179
+ public function setEtag( $etag) {
1180
+ $this->etag = $etag;
1181
+ }
1182
+ public function getEtag() {
1183
+ return $this->etag;
1184
+ }
1185
+ public function setItems(/* array(google_SavedReport) */ $items) {
1186
+ $this->assertIsArray($items, 'google_SavedReport', __METHOD__);
1187
+ $this->items = $items;
1188
+ }
1189
+ public function getItems() {
1190
+ return $this->items;
1191
+ }
1192
+ public function setKind( $kind) {
1193
+ $this->kind = $kind;
1194
+ }
1195
+ public function getKind() {
1196
+ return $this->kind;
1197
+ }
1198
+ public function setNextPageToken( $nextPageToken) {
1199
+ $this->nextPageToken = $nextPageToken;
1200
+ }
1201
+ public function getNextPageToken() {
1202
+ return $this->nextPageToken;
1203
+ }
1204
+ }
1205
+
1206
+ class google_UrlChannel extends Google_Model {
1207
+ public $id;
1208
+ public $kind;
1209
+ public $urlPattern;
1210
+ public function setId( $id) {
1211
+ $this->id = $id;
1212
+ }
1213
+ public function getId() {
1214
+ return $this->id;
1215
+ }
1216
+ public function setKind( $kind) {
1217
+ $this->kind = $kind;
1218
+ }
1219
+ public function getKind() {
1220
+ return $this->kind;
1221
+ }
1222
+ public function setUrlPattern( $urlPattern) {
1223
+ $this->urlPattern = $urlPattern;
1224
+ }
1225
+ public function getUrlPattern() {
1226
+ return $this->urlPattern;
1227
+ }
1228
+ }
1229
+
1230
+ class google_UrlChannels extends Google_Model {
1231
+ public $etag;
1232
+ protected $__itemsType = 'Google_UrlChannel';
1233
+ protected $__itemsDataType = 'array';
1234
+ public $items;
1235
+ public $kind;
1236
+ public $nextPageToken;
1237
+ public function setEtag( $etag) {
1238
+ $this->etag = $etag;
1239
+ }
1240
+ public function getEtag() {
1241
+ return $this->etag;
1242
+ }
1243
+ public function setItems(/* array(google_UrlChannel) */ $items) {
1244
+ $this->assertIsArray($items, 'google_UrlChannel', __METHOD__);
1245
+ $this->items = $items;
1246
+ }
1247
+ public function getItems() {
1248
+ return $this->items;
1249
+ }
1250
+ public function setKind( $kind) {
1251
+ $this->kind = $kind;
1252
+ }
1253
+ public function getKind() {
1254
+ return $this->kind;
1255
+ }
1256
+ public function setNextPageToken( $nextPageToken) {
1257
+ $this->nextPageToken = $nextPageToken;
1258
+ }
1259
+ public function getNextPageToken() {
1260
+ return $this->nextPageToken;
1261
+ }
1262
+ }
googleclient/contrib/Google_AdSenseService.php ADDED
@@ -0,0 +1,2054 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /*
3
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
4
+ * use this file except in compliance with the License. You may obtain a copy of
5
+ * the License at
6
+ *
7
+ * http://www.apache.org/licenses/LICENSE-2.0
8
+ *
9
+ * Unless required by applicable law or agreed to in writing, software
10
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
11
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
12
+ * License for the specific language governing permissions and limitations under
13
+ * the License.
14
+ */
15
+
16
+
17
+ /**
18
+ * The "accounts" collection of methods.
19
+ * Typical usage is:
20
+ * <code>
21
+ * $adsenseService = new Google_AdSenseService(...);
22
+ * $accounts = $adsenseService->accounts;
23
+ * </code>
24
+ */
25
+ class Google_AccountsServiceResource extends Google_ServiceResource {
26
+
27
+ /**
28
+ * Get information about the selected AdSense account. (accounts.get)
29
+ *
30
+ * @param string $accountId Account to get information about.
31
+ * @param array $optParams Optional parameters.
32
+ *
33
+ * @opt_param bool tree Whether the tree of sub accounts should be returned.
34
+ * @return Google_Account
35
+ */
36
+ public function get($accountId, $optParams = array()) {
37
+ $params = array('accountId' => $accountId);
38
+ $params = array_merge($params, $optParams);
39
+ $data = $this->__call('get', array($params));
40
+ if ($this->useObjects()) {
41
+ return new Google_Account($data);
42
+ } else {
43
+ return $data;
44
+ }
45
+ }
46
+ /**
47
+ * List all accounts available to this AdSense account. (accounts.list)
48
+ *
49
+ * @param array $optParams Optional parameters.
50
+ *
51
+ * @opt_param int maxResults The maximum number of accounts to include in the response, used for paging.
52
+ * @opt_param string pageToken A continuation token, used to page through accounts. To retrieve the next page, set this parameter to the value of "nextPageToken" from the previous response.
53
+ * @return Google_Accounts
54
+ */
55
+ public function listAccounts($optParams = array()) {
56
+ $params = array();
57
+ $params = array_merge($params, $optParams);
58
+ $data = $this->__call('list', array($params));
59
+ if ($this->useObjects()) {
60
+ return new Google_Accounts($data);
61
+ } else {
62
+ return $data;
63
+ }
64
+ }
65
+ }
66
+
67
+ /**
68
+ * The "adclients" collection of methods.
69
+ * Typical usage is:
70
+ * <code>
71
+ * $adsenseService = new Google_AdSenseService(...);
72
+ * $adclients = $adsenseService->adclients;
73
+ * </code>
74
+ */
75
+ class Google_AccountsAdclientsServiceResource extends Google_ServiceResource {
76
+
77
+ /**
78
+ * List all ad clients in the specified account. (adclients.list)
79
+ *
80
+ * @param string $accountId Account for which to list ad clients.
81
+ * @param array $optParams Optional parameters.
82
+ *
83
+ * @opt_param int maxResults The maximum number of ad clients to include in the response, used for paging.
84
+ * @opt_param string pageToken A continuation token, used to page through ad clients. To retrieve the next page, set this parameter to the value of "nextPageToken" from the previous response.
85
+ * @return Google_AdClients
86
+ */
87
+ public function listAccountsAdclients($accountId, $optParams = array()) {
88
+ $params = array('accountId' => $accountId);
89
+ $params = array_merge($params, $optParams);
90
+ $data = $this->__call('list', array($params));
91
+ if ($this->useObjects()) {
92
+ return new Google_AdClients($data);
93
+ } else {
94
+ return $data;
95
+ }
96
+ }
97
+ }
98
+ /**
99
+ * The "adunits" collection of methods.
100
+ * Typical usage is:
101
+ * <code>
102
+ * $adsenseService = new Google_AdSenseService(...);
103
+ * $adunits = $adsenseService->adunits;
104
+ * </code>
105
+ */
106
+ class Google_AccountsAdunitsServiceResource extends Google_ServiceResource {
107
+
108
+ /**
109
+ * Gets the specified ad unit in the specified ad client for the specified account. (adunits.get)
110
+ *
111
+ * @param string $accountId Account to which the ad client belongs.
112
+ * @param string $adClientId Ad client for which to get the ad unit.
113
+ * @param string $adUnitId Ad unit to retrieve.
114
+ * @param array $optParams Optional parameters.
115
+ * @return Google_AdUnit
116
+ */
117
+ public function get($accountId, $adClientId, $adUnitId, $optParams = array()) {
118
+ $params = array('accountId' => $accountId, 'adClientId' => $adClientId, 'adUnitId' => $adUnitId);
119
+ $params = array_merge($params, $optParams);
120
+ $data = $this->__call('get', array($params));
121
+ if ($this->useObjects()) {
122
+ return new Google_AdUnit($data);
123
+ } else {
124
+ return $data;
125
+ }
126
+ }
127
+ /**
128
+ * Get ad code for the specified ad unit. (adunits.getAdCode)
129
+ *
130
+ * @param string $accountId Account which contains the ad client.
131
+ * @param string $adClientId Ad client with contains the ad unit.
132
+ * @param string $adUnitId Ad unit to get the code for.
133
+ * @param array $optParams Optional parameters.
134
+ * @return Google_AdCode
135
+ */
136
+ public function getAdCode($accountId, $adClientId, $adUnitId, $optParams = array()) {
137
+ $params = array('accountId' => $accountId, 'adClientId' => $adClientId, 'adUnitId' => $adUnitId);
138
+ $params = array_merge($params, $optParams);
139
+ $data = $this->__call('getAdCode', array($params));
140
+ if ($this->useObjects()) {
141
+ return new Google_AdCode($data);
142
+ } else {
143
+ return $data;
144
+ }
145
+ }
146
+ /**
147
+ * List all ad units in the specified ad client for the specified account. (adunits.list)
148
+ *
149
+ * @param string $accountId Account to which the ad client belongs.
150
+ * @param string $adClientId Ad client for which to list ad units.
151
+ * @param array $optParams Optional parameters.
152
+ *
153
+ * @opt_param bool includeInactive Whether to include inactive ad units. Default: true.
154
+ * @opt_param int maxResults The maximum number of ad units to include in the response, used for paging.
155
+ * @opt_param string pageToken A continuation token, used to page through ad units. To retrieve the next page, set this parameter to the value of "nextPageToken" from the previous response.
156
+ * @return Google_AdUnits
157
+ */
158
+ public function listAccountsAdunits($accountId, $adClientId, $optParams = array()) {
159
+ $params = array('accountId' => $accountId, 'adClientId' => $adClientId);
160
+ $params = array_merge($params, $optParams);
161
+ $data = $this->__call('list', array($params));
162
+ if ($this->useObjects()) {
163
+ return new Google_AdUnits($data);
164
+ } else {
165
+ return $data;
166
+ }
167
+ }
168
+ }
169
+
170
+ /**
171
+ * The "customchannels" collection of methods.
172
+ * Typical usage is:
173
+ * <code>
174
+ * $adsenseService = new Google_AdSenseService(...);
175
+ * $customchannels = $adsenseService->customchannels;
176
+ * </code>
177
+ */
178
+ class Google_AccountsAdunitsCustomchannelsServiceResource extends Google_ServiceResource {
179
+
180
+ /**
181
+ * List all custom channels which the specified ad unit belongs to. (customchannels.list)
182
+ *
183
+ * @param string $accountId Account to which the ad client belongs.
184
+ * @param string $adClientId Ad client which contains the ad unit.
185
+ * @param string $adUnitId Ad unit for which to list custom channels.
186
+ * @param array $optParams Optional parameters.
187
+ *
188
+ * @opt_param int maxResults The maximum number of custom channels to include in the response, used for paging.
189
+ * @opt_param string pageToken A continuation token, used to page through custom channels. To retrieve the next page, set this parameter to the value of "nextPageToken" from the previous response.
190
+ * @return Google_CustomChannels
191
+ */
192
+ public function listAccountsAdunitsCustomchannels($accountId, $adClientId, $adUnitId, $optParams = array()) {
193
+ $params = array('accountId' => $accountId, 'adClientId' => $adClientId, 'adUnitId' => $adUnitId);
194
+ $params = array_merge($params, $optParams);
195
+ $data = $this->__call('list', array($params));
196
+ if ($this->useObjects()) {
197
+ return new Google_CustomChannels($data);
198
+ } else {
199
+ return $data;
200
+ }
201
+ }
202
+ }
203
+ /**
204
+ * The "alerts" collection of methods.
205
+ * Typical usage is:
206
+ * <code>
207
+ * $adsenseService = new Google_AdSenseService(...);
208
+ * $alerts = $adsenseService->alerts;
209
+ * </code>
210
+ */
211
+ class Google_AccountsAlertsServiceResource extends Google_ServiceResource {
212
+
213
+ /**
214
+ * List the alerts for the specified AdSense account. (alerts.list)
215
+ *
216
+ * @param string $accountId Account for which to retrieve the alerts.
217
+ * @param array $optParams Optional parameters.
218
+ *
219
+ * @opt_param string locale The locale to use for translating alert messages. The account locale will be used if this is not supplied. The AdSense default (English) will be used if the supplied locale is invalid or unsupported.
220
+ * @return Google_Alerts
221
+ */
222
+ public function listAccountsAlerts($accountId, $optParams = array()) {
223
+ $params = array('accountId' => $accountId);
224
+ $params = array_merge($params, $optParams);
225
+ $data = $this->__call('list', array($params));
226
+ if ($this->useObjects()) {
227
+ return new Google_Alerts($data);
228
+ } else {
229
+ return $data;
230
+ }
231
+ }
232
+ }
233
+ /**
234
+ * The "customchannels" collection of methods.
235
+ * Typical usage is:
236
+ * <code>
237
+ * $adsenseService = new Google_AdSenseService(...);
238
+ * $customchannels = $adsenseService->customchannels;
239
+ * </code>
240
+ */
241
+ class Google_AccountsCustomchannelsServiceResource extends Google_ServiceResource {
242
+
243
+ /**
244
+ * Get the specified custom channel from the specified ad client for the specified account.
245
+ * (customchannels.get)
246
+ *
247
+ * @param string $accountId Account to which the ad client belongs.
248
+ * @param string $adClientId Ad client which contains the custom channel.
249
+ * @param string $customChannelId Custom channel to retrieve.
250
+ * @param array $optParams Optional parameters.
251
+ * @return Google_CustomChannel
252
+ */
253
+ public function get($accountId, $adClientId, $customChannelId, $optParams = array()) {
254
+ $params = array('accountId' => $accountId, 'adClientId' => $adClientId, 'customChannelId' => $customChannelId);
255
+ $params = array_merge($params, $optParams);
256
+ $data = $this->__call('get', array($params));
257
+ if ($this->useObjects()) {
258
+ return new Google_CustomChannel($data);
259
+ } else {
260
+ return $data;
261
+ }
262
+ }
263
+ /**
264
+ * List all custom channels in the specified ad client for the specified account.
265
+ * (customchannels.list)
266
+ *
267
+ * @param string $accountId Account to which the ad client belongs.
268
+ * @param string $adClientId Ad client for which to list custom channels.
269
+ * @param array $optParams Optional parameters.
270
+ *
271
+ * @opt_param int maxResults The maximum number of custom channels to include in the response, used for paging.
272
+ * @opt_param string pageToken A continuation token, used to page through custom channels. To retrieve the next page, set this parameter to the value of "nextPageToken" from the previous response.
273
+ * @return Google_CustomChannels
274
+ */
275
+ public function listAccountsCustomchannels($accountId, $adClientId, $optParams = array()) {
276
+ $params = array('accountId' => $accountId, 'adClientId' => $adClientId);
277
+ $params = array_merge($params, $optParams);
278
+ $data = $this->__call('list', array($params));
279
+ if ($this->useObjects()) {
280
+ return new Google_CustomChannels($data);
281
+ } else {
282
+ return $data;
283
+ }
284
+ }
285
+ }
286
+
287
+ /**
288
+ * The "adunits" collection of methods.
289
+ * Typical usage is:
290
+ * <code>
291
+ * $adsenseService = new Google_AdSenseService(...);
292
+ * $adunits = $adsenseService->adunits;
293
+ * </code>
294
+ */
295
+ class Google_AccountsCustomchannelsAdunitsServiceResource extends Google_ServiceResource {
296
+
297
+ /**
298
+ * List all ad units in the specified custom channel. (adunits.list)
299
+ *
300
+ * @param string $accountId Account to which the ad client belongs.
301
+ * @param string $adClientId Ad client which contains the custom channel.
302
+ * @param string $customChannelId Custom channel for which to list ad units.
303
+ * @param array $optParams Optional parameters.
304
+ *
305
+ * @opt_param bool includeInactive Whether to include inactive ad units. Default: true.
306
+ * @opt_param int maxResults The maximum number of ad units to include in the response, used for paging.
307
+ * @opt_param string pageToken A continuation token, used to page through ad units. To retrieve the next page, set this parameter to the value of "nextPageToken" from the previous response.
308
+ * @return Google_AdUnits
309
+ */
310
+ public function listAccountsCustomchannelsAdunits($accountId, $adClientId, $customChannelId, $optParams = array()) {
311
+ $params = array('accountId' => $accountId, 'adClientId' => $adClientId, 'customChannelId' => $customChannelId);
312
+ $params = array_merge($params, $optParams);
313
+ $data = $this->__call('list', array($params));
314
+ if ($this->useObjects()) {
315
+ return new Google_AdUnits($data);
316
+ } else {
317
+ return $data;
318
+ }
319
+ }
320
+ }
321
+ /**
322
+ * The "reports" collection of methods.
323
+ * Typical usage is:
324
+ * <code>
325
+ * $adsenseService = new Google_AdSenseService(...);
326
+ * $reports = $adsenseService->reports;
327
+ * </code>
328
+ */
329
+ class Google_AccountsReportsServiceResource extends Google_ServiceResource {
330
+
331
+ /**
332
+ * Generate an AdSense report based on the report request sent in the query parameters. Returns the
333
+ * result as JSON; to retrieve output in CSV format specify "alt=csv" as a query parameter.
334
+ * (reports.generate)
335
+ *
336
+ * @param string $accountId Account upon which to report.
337
+ * @param string $startDate Start of the date range to report on in "YYYY-MM-DD" format, inclusive.
338
+ * @param string $endDate End of the date range to report on in "YYYY-MM-DD" format, inclusive.
339
+ * @param array $optParams Optional parameters.
340
+ *
341
+ * @opt_param string currency Optional currency to use when reporting on monetary metrics. Defaults to the account's currency if not set.
342
+ * @opt_param string dimension Dimensions to base the report on.
343
+ * @opt_param string filter Filters to be run on the report.
344
+ * @opt_param string locale Optional locale to use for translating report output to a local language. Defaults to "en_US" if not specified.
345
+ * @opt_param int maxResults The maximum number of rows of report data to return.
346
+ * @opt_param string metric Numeric columns to include in the report.
347
+ * @opt_param string sort The name of a dimension or metric to sort the resulting report on, optionally prefixed with "+" to sort ascending or "-" to sort descending. If no prefix is specified, the column is sorted ascending.
348
+ * @opt_param int startIndex Index of the first row of report data to return.
349
+ * @opt_param bool useTimezoneReporting Whether the report should be generated in the AdSense account's local timezone. If false default PST/PDT timezone will be used.
350
+ * @return Google_AdsenseReportsGenerateResponse
351
+ */
352
+ public function generate($accountId, $startDate, $endDate, $optParams = array()) {
353
+ $params = array('accountId' => $accountId, 'startDate' => $startDate, 'endDate' => $endDate);
354
+ $params = array_merge($params, $optParams);
355
+ $data = $this->__call('generate', array($params));
356
+ if ($this->useObjects()) {
357
+ return new Google_AdsenseReportsGenerateResponse($data);
358
+ } else {
359
+ return $data;
360
+ }
361
+ }
362
+ }
363
+
364
+ /**
365
+ * The "saved" collection of methods.
366
+ * Typical usage is:
367
+ * <code>
368
+ * $adsenseService = new Google_AdSenseService(...);
369
+ * $saved = $adsenseService->saved;
370
+ * </code>
371
+ */
372
+ class Google_AccountsReportsSavedServiceResource extends Google_ServiceResource {
373
+
374
+ /**
375
+ * Generate an AdSense report based on the saved report ID sent in the query parameters.
376
+ * (saved.generate)
377
+ *
378
+ * @param string $accountId Account to which the saved reports belong.
379
+ * @param string $savedReportId The saved report to retrieve.
380
+ * @param array $optParams Optional parameters.
381
+ *
382
+ * @opt_param string locale Optional locale to use for translating report output to a local language. Defaults to "en_US" if not specified.
383
+ * @opt_param int maxResults The maximum number of rows of report data to return.
384
+ * @opt_param int startIndex Index of the first row of report data to return.
385
+ * @return Google_AdsenseReportsGenerateResponse
386
+ */
387
+ public function generate($accountId, $savedReportId, $optParams = array()) {
388
+ $params = array('accountId' => $accountId, 'savedReportId' => $savedReportId);
389
+ $params = array_merge($params, $optParams);
390
+ $data = $this->__call('generate', array($params));
391
+ if ($this->useObjects()) {
392
+ return new Google_AdsenseReportsGenerateResponse($data);
393
+ } else {
394
+ return $data;
395
+ }
396
+ }
397
+ /**
398
+ * List all saved reports in the specified AdSense account. (saved.list)
399
+ *
400
+ * @param string $accountId Account to which the saved reports belong.
401
+ * @param array $optParams Optional parameters.
402
+ *
403
+ * @opt_param int maxResults The maximum number of saved reports to include in the response, used for paging.
404
+ * @opt_param string pageToken A continuation token, used to page through saved reports. To retrieve the next page, set this parameter to the value of "nextPageToken" from the previous response.
405
+ * @return Google_SavedReports
406
+ */
407
+ public function listAccountsReportsSaved($accountId, $optParams = array()) {
408
+ $params = array('accountId' => $accountId);
409
+ $params = array_merge($params, $optParams);
410
+ $data = $this->__call('list', array($params));
411
+ if ($this->useObjects()) {
412
+ return new Google_SavedReports($data);
413
+ } else {
414
+ return $data;
415
+ }
416
+ }
417
+ }
418
+ /**
419
+ * The "savedadstyles" collection of methods.
420
+ * Typical usage is:
421
+ * <code>
422
+ * $adsenseService = new Google_AdSenseService(...);
423
+ * $savedadstyles = $adsenseService->savedadstyles;
424
+ * </code>
425
+ */
426
+ class Google_AccountsSavedadstylesServiceResource extends Google_ServiceResource {
427
+
428
+ /**
429
+ * List a specific saved ad style for the specified account. (savedadstyles.get)
430
+ *
431
+ * @param string $accountId Account for which to get the saved ad style.
432
+ * @param string $savedAdStyleId Saved ad style to retrieve.
433
+ * @param array $optParams Optional parameters.
434
+ * @return Google_SavedAdStyle
435
+ */
436
+ public function get($accountId, $savedAdStyleId, $optParams = array()) {
437
+ $params = array('accountId' => $accountId, 'savedAdStyleId' => $savedAdStyleId);
438
+ $params = array_merge($params, $optParams);
439
+ $data = $this->__call('get', array($params));
440
+ if ($this->useObjects()) {
441
+ return new Google_SavedAdStyle($data);
442
+ } else {
443
+ return $data;
444
+ }
445
+ }
446
+ /**
447
+ * List all saved ad styles in the specified account. (savedadstyles.list)
448
+ *
449
+ * @param string $accountId Account for which to list saved ad styles.
450
+ * @param array $optParams Optional parameters.
451
+ *
452
+ * @opt_param int maxResults The maximum number of saved ad styles to include in the response, used for paging.
453
+ * @opt_param string pageToken A continuation token, used to page through saved ad styles. To retrieve the next page, set this parameter to the value of "nextPageToken" from the previous response.
454
+ * @return Google_SavedAdStyles
455
+ */
456
+ public function listAccountsSavedadstyles($accountId, $optParams = array()) {
457
+ $params = array('accountId' => $accountId);
458
+ $params = array_merge($params, $optParams);
459
+ $data = $this->__call('list', array($params));
460
+ if ($this->useObjects()) {
461
+ return new Google_SavedAdStyles($data);
462
+ } else {
463
+ return $data;
464
+ }
465
+ }
466
+ }
467
+ /**
468
+ * The "urlchannels" collection of methods.
469
+ * Typical usage is:
470
+ * <code>
471
+ * $adsenseService = new Google_AdSenseService(...);
472
+ * $urlchannels = $adsenseService->urlchannels;
473
+ * </code>
474
+ */
475
+ class Google_AccountsUrlchannelsServiceResource extends Google_ServiceResource {
476
+
477
+ /**
478
+ * List all URL channels in the specified ad client for the specified account. (urlchannels.list)
479
+ *
480
+ * @param string $accountId Account to which the ad client belongs.
481
+ * @param string $adClientId Ad client for which to list URL channels.
482
+ * @param array $optParams Optional parameters.
483
+ *
484
+ * @opt_param int maxResults The maximum number of URL channels to include in the response, used for paging.
485
+ * @opt_param string pageToken A continuation token, used to page through URL channels. To retrieve the next page, set this parameter to the value of "nextPageToken" from the previous response.
486
+ * @return Google_UrlChannels
487
+ */
488
+ public function listAccountsUrlchannels($accountId, $adClientId, $optParams = array()) {
489
+ $params = array('accountId' => $accountId, 'adClientId' => $adClientId);
490
+ $params = array_merge($params, $optParams);
491
+ $data = $this->__call('list', array($params));
492
+ if ($this->useObjects()) {
493
+ return new Google_UrlChannels($data);
494
+ } else {
495
+ return $data;
496
+ }
497
+ }
498
+ }
499
+
500
+ /**
501
+ * The "adclients" collection of methods.
502
+ * Typical usage is:
503
+ * <code>
504
+ * $adsenseService = new Google_AdSenseService(...);
505
+ * $adclients = $adsenseService->adclients;
506
+ * </code>
507
+ */
508
+ class Google_AdclientsServiceResource extends Google_ServiceResource {
509
+
510
+ /**
511
+ * List all ad clients in this AdSense account. (adclients.list)
512
+ *
513
+ * @param array $optParams Optional parameters.
514
+ *
515
+ * @opt_param int maxResults The maximum number of ad clients to include in the response, used for paging.
516
+ * @opt_param string pageToken A continuation token, used to page through ad clients. To retrieve the next page, set this parameter to the value of "nextPageToken" from the previous response.
517
+ * @return Google_AdClients
518
+ */
519
+ public function listAdclients($optParams = array()) {
520
+ $params = array();
521
+ $params = array_merge($params, $optParams);
522
+ $data = $this->__call('list', array($params));
523
+ if ($this->useObjects()) {
524
+ return new Google_AdClients($data);
525
+ } else {
526
+ return $data;
527
+ }
528
+ }
529
+ }
530
+
531
+ /**
532
+ * The "adunits" collection of methods.
533
+ * Typical usage is:
534
+ * <code>
535
+ * $adsenseService = new Google_AdSenseService(...);
536
+ * $adunits = $adsenseService->adunits;
537
+ * </code>
538
+ */
539
+ class Google_AdunitsServiceResource extends Google_ServiceResource {
540
+
541
+ /**
542
+ * Gets the specified ad unit in the specified ad client. (adunits.get)
543
+ *
544
+ * @param string $adClientId Ad client for which to get the ad unit.
545
+ * @param string $adUnitId Ad unit to retrieve.
546
+ * @param array $optParams Optional parameters.
547
+ * @return Google_AdUnit
548
+ */
549
+ public function get($adClientId, $adUnitId, $optParams = array()) {
550
+ $params = array('adClientId' => $adClientId, 'adUnitId' => $adUnitId);
551
+ $params = array_merge($params, $optParams);
552
+ $data = $this->__call('get', array($params));
553
+ if ($this->useObjects()) {
554
+ return new Google_AdUnit($data);
555
+ } else {
556
+ return $data;
557
+ }
558
+ }
559
+ /**
560
+ * Get ad code for the specified ad unit. (adunits.getAdCode)
561
+ *
562
+ * @param string $adClientId Ad client with contains the ad unit.
563
+ * @param string $adUnitId Ad unit to get the code for.
564
+ * @param array $optParams Optional parameters.
565
+ * @return Google_AdCode
566
+ */
567
+ public function getAdCode($adClientId, $adUnitId, $optParams = array()) {
568
+ $params = array('adClientId' => $adClientId, 'adUnitId' => $adUnitId);
569
+ $params = array_merge($params, $optParams);
570
+ $data = $this->__call('getAdCode', array($params));
571
+ if ($this->useObjects()) {
572
+ return new Google_AdCode($data);
573
+ } else {
574
+ return $data;
575
+ }
576
+ }
577
+ /**
578
+ * List all ad units in the specified ad client for this AdSense account. (adunits.list)
579
+ *
580
+ * @param string $adClientId Ad client for which to list ad units.
581
+ * @param array $optParams Optional parameters.
582
+ *
583
+ * @opt_param bool includeInactive Whether to include inactive ad units. Default: true.
584
+ * @opt_param int maxResults The maximum number of ad units to include in the response, used for paging.
585
+ * @opt_param string pageToken A continuation token, used to page through ad units. To retrieve the next page, set this parameter to the value of "nextPageToken" from the previous response.
586
+ * @return Google_AdUnits
587
+ */
588
+ public function listAdunits($adClientId, $optParams = array()) {
589
+ $params = array('adClientId' => $adClientId);
590
+ $params = array_merge($params, $optParams);
591
+ $data = $this->__call('list', array($params));
592
+ if ($this->useObjects()) {
593
+ return new Google_AdUnits($data);
594
+ } else {
595
+ return $data;
596
+ }
597
+ }
598
+ }
599
+
600
+ /**
601
+ * The "customchannels" collection of methods.
602
+ * Typical usage is:
603
+ * <code>
604
+ * $adsenseService = new Google_AdSenseService(...);
605
+ * $customchannels = $adsenseService->customchannels;
606
+ * </code>
607
+ */
608
+ class Google_AdunitsCustomchannelsServiceResource extends Google_ServiceResource {
609
+
610
+ /**
611
+ * List all custom channels which the specified ad unit belongs to. (customchannels.list)
612
+ *
613
+ * @param string $adClientId Ad client which contains the ad unit.
614
+ * @param string $adUnitId Ad unit for which to list custom channels.
615
+ * @param array $optParams Optional parameters.
616
+ *
617
+ * @opt_param int maxResults The maximum number of custom channels to include in the response, used for paging.
618
+ * @opt_param string pageToken A continuation token, used to page through custom channels. To retrieve the next page, set this parameter to the value of "nextPageToken" from the previous response.
619
+ * @return Google_CustomChannels
620
+ */
621
+ public function listAdunitsCustomchannels($adClientId, $adUnitId, $optParams = array()) {
622
+ $params = array('adClientId' => $adClientId, 'adUnitId' => $adUnitId);
623
+ $params = array_merge($params, $optParams);
624
+ $data = $this->__call('list', array($params));
625
+ if ($this->useObjects()) {
626
+ return new Google_CustomChannels($data);
627
+ } else {
628
+ return $data;
629
+ }
630
+ }
631
+ }
632
+
633
+ /**
634
+ * The "alerts" collection of methods.
635
+ * Typical usage is:
636
+ * <code>
637
+ * $adsenseService = new Google_AdSenseService(...);
638
+ * $alerts = $adsenseService->alerts;
639
+ * </code>
640
+ */
641
+ class Google_AlertsServiceResource extends Google_ServiceResource {
642
+
643
+ /**
644
+ * List the alerts for this AdSense account. (alerts.list)
645
+ *
646
+ * @param array $optParams Optional parameters.
647
+ *
648
+ * @opt_param string locale The locale to use for translating alert messages. The account locale will be used if this is not supplied. The AdSense default (English) will be used if the supplied locale is invalid or unsupported.
649
+ * @return Google_Alerts
650
+ */
651
+ public function listAlerts($optParams = array()) {
652
+ $params = array();
653
+ $params = array_merge($params, $optParams);
654
+ $data = $this->__call('list', array($params));
655
+ if ($this->useObjects()) {
656
+ return new Google_Alerts($data);
657
+ } else {
658
+ return $data;
659
+ }
660
+ }
661
+ }
662
+
663
+ /**
664
+ * The "customchannels" collection of methods.
665
+ * Typical usage is:
666
+ * <code>
667
+ * $adsenseService = new Google_AdSenseService(...);
668
+ * $customchannels = $adsenseService->customchannels;
669
+ * </code>
670
+ */
671
+ class Google_CustomchannelsServiceResource extends Google_ServiceResource {
672
+
673
+ /**
674
+ * Get the specified custom channel from the specified ad client. (customchannels.get)
675
+ *
676
+ * @param string $adClientId Ad client which contains the custom channel.
677
+ * @param string $customChannelId Custom channel to retrieve.
678
+ * @param array $optParams Optional parameters.
679
+ * @return Google_CustomChannel
680
+ */
681
+ public function get($adClientId, $customChannelId, $optParams = array()) {
682
+ $params = array('adClientId' => $adClientId, 'customChannelId' => $customChannelId);
683
+ $params = array_merge($params, $optParams);
684
+ $data = $this->__call('get', array($params));
685
+ if ($this->useObjects()) {
686
+ return new Google_CustomChannel($data);
687
+ } else {
688
+ return $data;
689
+ }
690
+ }
691
+ /**
692
+ * List all custom channels in the specified ad client for this AdSense account.
693
+ * (customchannels.list)
694
+ *
695
+ * @param string $adClientId Ad client for which to list custom channels.
696
+ * @param array $optParams Optional parameters.
697
+ *
698
+ * @opt_param int maxResults The maximum number of custom channels to include in the response, used for paging.
699
+ * @opt_param string pageToken A continuation token, used to page through custom channels. To retrieve the next page, set this parameter to the value of "nextPageToken" from the previous response.
700
+ * @return Google_CustomChannels
701
+ */
702
+ public function listCustomchannels($adClientId, $optParams = array()) {
703
+ $params = array('adClientId' => $adClientId);
704
+ $params = array_merge($params, $optParams);
705
+ $data = $this->__call('list', array($params));
706
+ if ($this->useObjects()) {
707
+ return new Google_CustomChannels($data);
708
+ } else {
709
+ return $data;
710
+ }
711
+ }
712
+ }
713
+
714
+ /**
715
+ * The "adunits" collection of methods.
716
+ * Typical usage is:
717
+ * <code>
718
+ * $adsenseService = new Google_AdSenseService(...);
719
+ * $adunits = $adsenseService->adunits;
720
+ * </code>
721
+ */
722
+ class Google_CustomchannelsAdunitsServiceResource extends Google_ServiceResource {
723
+
724
+ /**
725
+ * List all ad units in the specified custom channel. (adunits.list)
726
+ *
727
+ * @param string $adClientId Ad client which contains the custom channel.
728
+ * @param string $customChannelId Custom channel for which to list ad units.
729
+ * @param array $optParams Optional parameters.
730
+ *
731
+ * @opt_param bool includeInactive Whether to include inactive ad units. Default: true.
732
+ * @opt_param int maxResults The maximum number of ad units to include in the response, used for paging.
733
+ * @opt_param string pageToken A continuation token, used to page through ad units. To retrieve the next page, set this parameter to the value of "nextPageToken" from the previous response.
734
+ * @return Google_AdUnits
735
+ */
736
+ public function listCustomchannelsAdunits($adClientId, $customChannelId, $optParams = array()) {
737
+ $params = array('adClientId' => $adClientId, 'customChannelId' => $customChannelId);
738
+ $params = array_merge($params, $optParams);
739
+ $data = $this->__call('list', array($params));
740
+ if ($this->useObjects()) {
741
+ return new Google_AdUnits($data);
742
+ } else {
743
+ return $data;
744
+ }
745
+ }
746
+ }
747
+
748
+ /**
749
+ * The "metadata" collection of methods.
750
+ * Typical usage is:
751
+ * <code>
752
+ * $adsenseService = new Google_AdSenseService(...);
753
+ * $metadata = $adsenseService->metadata;
754
+ * </code>
755
+ */
756
+ class Google_MetadataServiceResource extends Google_ServiceResource {
757
+
758
+ }
759
+
760
+ /**
761
+ * The "dimensions" collection of methods.
762
+ * Typical usage is:
763
+ * <code>
764
+ * $adsenseService = new Google_AdSenseService(...);
765
+ * $dimensions = $adsenseService->dimensions;
766
+ * </code>
767
+ */
768
+ class Google_MetadataDimensionsServiceResource extends Google_ServiceResource {
769
+
770
+ /**
771
+ * List the metadata for the dimensions available to this AdSense account. (dimensions.list)
772
+ *
773
+ * @param array $optParams Optional parameters.
774
+ * @return Google_Metadata
775
+ */
776
+ public function listMetadataDimensions($optParams = array()) {
777
+ $params = array();
778
+ $params = array_merge($params, $optParams);
779
+ $data = $this->__call('list', array($params));
780
+ if ($this->useObjects()) {
781
+ return new Google_Metadata($data);
782
+ } else {
783
+ return $data;
784
+ }
785
+ }
786
+ }
787
+ /**
788
+ * The "metrics" collection of methods.
789
+ * Typical usage is:
790
+ * <code>
791
+ * $adsenseService = new Google_AdSenseService(...);
792
+ * $metrics = $adsenseService->metrics;
793
+ * </code>
794
+ */
795
+ class Google_MetadataMetricsServiceResource extends Google_ServiceResource {
796
+
797
+ /**
798
+ * List the metadata for the metrics available to this AdSense account. (metrics.list)
799
+ *
800
+ * @param array $optParams Optional parameters.
801
+ * @return Google_Metadata
802
+ */
803
+ public function listMetadataMetrics($optParams = array()) {
804
+ $params = array();
805
+ $params = array_merge($params, $optParams);
806
+ $data = $this->__call('list', array($params));
807
+ if ($this->useObjects()) {
808
+ return new Google_Metadata($data);
809
+ } else {
810
+ return $data;
811
+ }
812
+ }
813
+ }
814
+
815
+ /**
816
+ * The "reports" collection of methods.
817
+ * Typical usage is:
818
+ * <code>
819
+ * $adsenseService = new Google_AdSenseService(...);
820
+ * $reports = $adsenseService->reports;
821
+ * </code>
822
+ */
823
+ class Google_ReportsServiceResource extends Google_ServiceResource {
824
+
825
+ /**
826
+ * Generate an AdSense report based on the report request sent in the query parameters. Returns the
827
+ * result as JSON; to retrieve output in CSV format specify "alt=csv" as a query parameter.
828
+ * (reports.generate)
829
+ *
830
+ * @param string $startDate Start of the date range to report on in "YYYY-MM-DD" format, inclusive.
831
+ * @param string $endDate End of the date range to report on in "YYYY-MM-DD" format, inclusive.
832
+ * @param array $optParams Optional parameters.
833
+ *
834
+ * @opt_param string accountId Accounts upon which to report.
835
+ * @opt_param string currency Optional currency to use when reporting on monetary metrics. Defaults to the account's currency if not set.
836
+ * @opt_param string dimension Dimensions to base the report on.
837
+ * @opt_param string filter Filters to be run on the report.
838
+ * @opt_param string locale Optional locale to use for translating report output to a local language. Defaults to "en_US" if not specified.
839
+ * @opt_param int maxResults The maximum number of rows of report data to return.
840
+ * @opt_param string metric Numeric columns to include in the report.
841
+ * @opt_param string sort The name of a dimension or metric to sort the resulting report on, optionally prefixed with "+" to sort ascending or "-" to sort descending. If no prefix is specified, the column is sorted ascending.
842
+ * @opt_param int startIndex Index of the first row of report data to return.
843
+ * @opt_param bool useTimezoneReporting Whether the report should be generated in the AdSense account's local timezone. If false default PST/PDT timezone will be used.
844
+ * @return Google_AdsenseReportsGenerateResponse
845
+ */
846
+ public function generate($startDate, $endDate, $optParams = array()) {
847
+ $params = array('startDate' => $startDate, 'endDate' => $endDate);
848
+ $params = array_merge($params, $optParams);
849
+ $data = $this->__call('generate', array($params));
850
+ if ($this->useObjects()) {
851
+ return new Google_AdsenseReportsGenerateResponse($data);
852
+ } else {
853
+ return $data;
854
+ }
855
+ }
856
+ }
857
+
858
+ /**
859
+ * The "saved" collection of methods.
860
+ * Typical usage is:
861
+ * <code>
862
+ * $adsenseService = new Google_AdSenseService(...);
863
+ * $saved = $adsenseService->saved;
864
+ * </code>
865
+ */
866
+ class Google_ReportsSavedServiceResource extends Google_ServiceResource {
867
+
868
+ /**
869
+ * Generate an AdSense report based on the saved report ID sent in the query parameters.
870
+ * (saved.generate)
871
+ *
872
+ * @param string $savedReportId The saved report to retrieve.
873
+ * @param array $optParams Optional parameters.
874
+ *
875
+ * @opt_param string locale Optional locale to use for translating report output to a local language. Defaults to "en_US" if not specified.
876
+ * @opt_param int maxResults The maximum number of rows of report data to return.
877
+ * @opt_param int startIndex Index of the first row of report data to return.
878
+ * @return Google_AdsenseReportsGenerateResponse
879
+ */
880
+ public function generate($savedReportId, $optParams = array()) {
881
+ $params = array('savedReportId' => $savedReportId);
882
+ $params = array_merge($params, $optParams);
883
+ $data = $this->__call('generate', array($params));
884
+ if ($this->useObjects()) {
885
+ return new Google_AdsenseReportsGenerateResponse($data);
886
+ } else {
887
+ return $data;
888
+ }
889
+ }
890
+ /**
891
+ * List all saved reports in this AdSense account. (saved.list)
892
+ *
893
+ * @param array $optParams Optional parameters.
894
+ *
895
+ * @opt_param int maxResults The maximum number of saved reports to include in the response, used for paging.
896
+ * @opt_param string pageToken A continuation token, used to page through saved reports. To retrieve the next page, set this parameter to the value of "nextPageToken" from the previous response.
897
+ * @return Google_SavedReports
898
+ */
899
+ public function listReportsSaved($optParams = array()) {
900
+ $params = array();
901
+ $params = array_merge($params, $optParams);
902
+ $data = $this->__call('list', array($params));
903
+ if ($this->useObjects()) {
904
+ return new Google_SavedReports($data);
905
+ } else {
906
+ return $data;
907
+ }
908
+ }
909
+ }
910
+
911
+ /**
912
+ * The "savedadstyles" collection of methods.
913
+ * Typical usage is:
914
+ * <code>
915
+ * $adsenseService = new Google_AdSenseService(...);
916
+ * $savedadstyles = $adsenseService->savedadstyles;
917
+ * </code>
918
+ */
919
+ class Google_SavedadstylesServiceResource extends Google_ServiceResource {
920
+
921
+ /**
922
+ * Get a specific saved ad style from the user's account. (savedadstyles.get)
923
+ *
924
+ * @param string $savedAdStyleId Saved ad style to retrieve.
925
+ * @param array $optParams Optional parameters.
926
+ * @return Google_SavedAdStyle
927
+ */
928
+ public function get($savedAdStyleId, $optParams = array()) {
929
+ $params = array('savedAdStyleId' => $savedAdStyleId);
930
+ $params = array_merge($params, $optParams);
931
+ $data = $this->__call('get', array($params));
932
+ if ($this->useObjects()) {
933
+ return new Google_SavedAdStyle($data);
934
+ } else {
935
+ return $data;
936
+ }
937
+ }
938
+ /**
939
+ * List all saved ad styles in the user's account. (savedadstyles.list)
940
+ *
941
+ * @param array $optParams Optional parameters.
942
+ *
943
+ * @opt_param int maxResults The maximum number of saved ad styles to include in the response, used for paging.
944
+ * @opt_param string pageToken A continuation token, used to page through saved ad styles. To retrieve the next page, set this parameter to the value of "nextPageToken" from the previous response.
945
+ * @return Google_SavedAdStyles
946
+ */
947
+ public function listSavedadstyles($optParams = array()) {
948
+ $params = array();
949
+ $params = array_merge($params, $optParams);
950
+ $data = $this->__call('list', array($params));
951
+ if ($this->useObjects()) {
952
+ return new Google_SavedAdStyles($data);
953
+ } else {
954
+ return $data;
955
+ }
956
+ }
957
+ }
958
+
959
+ /**
960
+ * The "urlchannels" collection of methods.
961
+ * Typical usage is:
962
+ * <code>
963
+ * $adsenseService = new Google_AdSenseService(...);
964
+ * $urlchannels = $adsenseService->urlchannels;
965
+ * </code>
966
+ */
967
+ class Google_UrlchannelsServiceResource extends Google_ServiceResource {
968
+
969
+ /**
970
+ * List all URL channels in the specified ad client for this AdSense account. (urlchannels.list)
971
+ *
972
+ * @param string $adClientId Ad client for which to list URL channels.
973
+ * @param array $optParams Optional parameters.
974
+ *
975
+ * @opt_param int maxResults The maximum number of URL channels to include in the response, used for paging.
976
+ * @opt_param string pageToken A continuation token, used to page through URL channels. To retrieve the next page, set this parameter to the value of "nextPageToken" from the previous response.
977
+ * @return Google_UrlChannels
978
+ */
979
+ public function listUrlchannels($adClientId, $optParams = array()) {
980
+ $params = array('adClientId' => $adClientId);
981
+ $params = array_merge($params, $optParams);
982
+ $data = $this->__call('list', array($params));
983
+ if ($this->useObjects()) {
984
+ return new Google_UrlChannels($data);
985
+ } else {
986
+ return $data;
987
+ }
988
+ }
989
+ }
990
+
991
+ /**
992
+ * Service definition for Google_AdSense (v1.3).
993
+ *
994
+ * <p>
995
+ * Gives AdSense publishers access to their inventory and the ability to generate reports
996
+ * </p>
997
+ *
998
+ * <p>
999
+ * For more information about this service, see the
1000
+ * <a href="https://developers.google.com/adsense/management/" target="_blank">API Documentation</a>
1001
+ * </p>
1002
+ *
1003
+ * @author Google, Inc.
1004
+ */
1005
+ class Google_AdSenseService extends Google_Service {
1006
+ public $accounts;
1007
+ public $accounts_adclients;
1008
+ public $accounts_adunits;
1009
+ public $accounts_adunits_customchannels;
1010
+ public $accounts_alerts;
1011
+ public $accounts_customchannels;
1012
+ public $accounts_customchannels_adunits;
1013
+ public $accounts_reports;
1014
+ public $accounts_reports_saved;
1015
+ public $accounts_savedadstyles;
1016
+ public $accounts_urlchannels;
1017
+ public $adclients;
1018
+ public $adunits;
1019
+ public $adunits_customchannels;
1020
+ public $alerts;
1021
+ public $customchannels;
1022
+ public $customchannels_adunits;
1023
+ public $metadata_dimensions;
1024
+ public $metadata_metrics;
1025
+ public $reports;
1026
+ public $reports_saved;
1027
+ public $savedadstyles;
1028
+ public $urlchannels;
1029
+ /**
1030
+ * Constructs the internal representation of the AdSense service.
1031
+ *
1032
+ * @param Google_Client $client
1033
+ */
1034
+ public function __construct(Google_Client $client) {
1035
+ $this->servicePath = 'adsense/v1.3/';
1036
+ $this->version = 'v1.3';
1037
+ $this->serviceName = 'adsense';
1038
+
1039
+ $client->addService($this->serviceName, $this->version);
1040
+ $this->accounts = new Google_AccountsServiceResource($this, $this->serviceName, 'accounts', json_decode('{"methods": {"get": {"id": "adsense.accounts.get", "path": "accounts/{accountId}", "httpMethod": "GET", "parameters": {"accountId": {"type": "string", "required": true, "location": "path"}, "tree": {"type": "boolean", "location": "query"}}, "response": {"$ref": "Account"}, "scopes": ["https://www.googleapis.com/auth/adsense", "https://www.googleapis.com/auth/adsense.readonly"]}, "list": {"id": "adsense.accounts.list", "path": "accounts", "httpMethod": "GET", "parameters": {"maxResults": {"type": "integer", "format": "int32", "minimum": "0", "maximum": "10000", "location": "query"}, "pageToken": {"type": "string", "location": "query"}}, "response": {"$ref": "Accounts"}, "scopes": ["https://www.googleapis.com/auth/adsense", "https://www.googleapis.com/auth/adsense.readonly"]}}}', true));
1041
+ $this->accounts_adclients = new Google_AccountsAdclientsServiceResource($this, $this->serviceName, 'adclients', json_decode('{"methods": {"list": {"id": "adsense.accounts.adclients.list", "path": "accounts/{accountId}/adclients", "httpMethod": "GET", "parameters": {"accountId": {"type": "string", "required": true, "location": "path"}, "maxResults": {"type": "integer", "format": "int32", "minimum": "0", "maximum": "10000", "location": "query"}, "pageToken": {"type": "string", "location": "query"}}, "response": {"$ref": "AdClients"}, "scopes": ["https://www.googleapis.com/auth/adsense", "https://www.googleapis.com/auth/adsense.readonly"]}}}', true));
1042
+ $this->accounts_adunits = new Google_AccountsAdunitsServiceResource($this, $this->serviceName, 'adunits', json_decode('{"methods": {"get": {"id": "adsense.accounts.adunits.get", "path": "accounts/{accountId}/adclients/{adClientId}/adunits/{adUnitId}", "httpMethod": "GET", "parameters": {"accountId": {"type": "string", "required": true, "location": "path"}, "adClientId": {"type": "string", "required": true, "location": "path"}, "adUnitId": {"type": "string", "required": true, "location": "path"}}, "response": {"$ref": "AdUnit"}, "scopes": ["https://www.googleapis.com/auth/adsense", "https://www.googleapis.com/auth/adsense.readonly"]}, "getAdCode": {"id": "adsense.accounts.adunits.getAdCode", "path": "accounts/{accountId}/adclients/{adClientId}/adunits/{adUnitId}/adcode", "httpMethod": "GET", "parameters": {"accountId": {"type": "string", "required": true, "location": "path"}, "adClientId": {"type": "string", "required": true, "location": "path"}, "adUnitId": {"type": "string", "required": true, "location": "path"}}, "response": {"$ref": "AdCode"}, "scopes": ["https://www.googleapis.com/auth/adsense", "https://www.googleapis.com/auth/adsense.readonly"]}, "list": {"id": "adsense.accounts.adunits.list", "path": "accounts/{accountId}/adclients/{adClientId}/adunits", "httpMethod": "GET", "parameters": {"accountId": {"type": "string", "required": true, "location": "path"}, "adClientId": {"type": "string", "required": true, "location": "path"}, "includeInactive": {"type": "boolean", "location": "query"}, "maxResults": {"type": "integer", "format": "int32", "minimum": "0", "maximum": "10000", "location": "query"}, "pageToken": {"type": "string", "location": "query"}}, "response": {"$ref": "AdUnits"}, "scopes": ["https://www.googleapis.com/auth/adsense", "https://www.googleapis.com/auth/adsense.readonly"]}}}', true));
1043
+ $this->accounts_adunits_customchannels = new Google_AccountsAdunitsCustomchannelsServiceResource($this, $this->serviceName, 'customchannels', json_decode('{"methods": {"list": {"id": "adsense.accounts.adunits.customchannels.list", "path": "accounts/{accountId}/adclients/{adClientId}/adunits/{adUnitId}/customchannels", "httpMethod": "GET", "parameters": {"accountId": {"type": "string", "required": true, "location": "path"}, "adClientId": {"type": "string", "required": true, "location": "path"}, "adUnitId": {"type": "string", "required": true, "location": "path"}, "maxResults": {"type": "integer", "format": "int32", "minimum": "0", "maximum": "10000", "location": "query"}, "pageToken": {"type": "string", "location": "query"}}, "response": {"$ref": "CustomChannels"}, "scopes": ["https://www.googleapis.com/auth/adsense", "https://www.googleapis.com/auth/adsense.readonly"]}}}', true));
1044
+ $this->accounts_alerts = new Google_AccountsAlertsServiceResource($this, $this->serviceName, 'alerts', json_decode('{"methods": {"list": {"id": "adsense.accounts.alerts.list", "path": "accounts/{accountId}/alerts", "httpMethod": "GET", "parameters": {"accountId": {"type": "string", "required": true, "location": "path"}, "locale": {"type": "string", "location": "query"}}, "response": {"$ref": "Alerts"}, "scopes": ["https://www.googleapis.com/auth/adsense", "https://www.googleapis.com/auth/adsense.readonly"]}}}', true));
1045
+ $this->accounts_customchannels = new Google_AccountsCustomchannelsServiceResource($this, $this->serviceName, 'customchannels', json_decode('{"methods": {"get": {"id": "adsense.accounts.customchannels.get", "path": "accounts/{accountId}/adclients/{adClientId}/customchannels/{customChannelId}", "httpMethod": "GET", "parameters": {"accountId": {"type": "string", "required": true, "location": "path"}, "adClientId": {"type": "string", "required": true, "location": "path"}, "customChannelId": {"type": "string", "required": true, "location": "path"}}, "response": {"$ref": "CustomChannel"}, "scopes": ["https://www.googleapis.com/auth/adsense", "https://www.googleapis.com/auth/adsense.readonly"]}, "list": {"id": "adsense.accounts.customchannels.list", "path": "accounts/{accountId}/adclients/{adClientId}/customchannels", "httpMethod": "GET", "parameters": {"accountId": {"type": "string", "required": true, "location": "path"}, "adClientId": {"type": "string", "required": true, "location": "path"}, "maxResults": {"type": "integer", "format": "int32", "minimum": "0", "maximum": "10000", "location": "query"}, "pageToken": {"type": "string", "location": "query"}}, "response": {"$ref": "CustomChannels"}, "scopes": ["https://www.googleapis.com/auth/adsense", "https://www.googleapis.com/auth/adsense.readonly"]}}}', true));
1046
+ $this->accounts_customchannels_adunits = new Google_AccountsCustomchannelsAdunitsServiceResource($this, $this->serviceName, 'adunits', json_decode('{"methods": {"list": {"id": "adsense.accounts.customchannels.adunits.list", "path": "accounts/{accountId}/adclients/{adClientId}/customchannels/{customChannelId}/adunits", "httpMethod": "GET", "parameters": {"accountId": {"type": "string", "required": true, "location": "path"}, "adClientId": {"type": "string", "required": true, "location": "path"}, "customChannelId": {"type": "string", "required": true, "location": "path"}, "includeInactive": {"type": "boolean", "location": "query"}, "maxResults": {"type": "integer", "format": "int32", "minimum": "0", "maximum": "10000", "location": "query"}, "pageToken": {"type": "string", "location": "query"}}, "response": {"$ref": "AdUnits"}, "scopes": ["https://www.googleapis.com/auth/adsense", "https://www.googleapis.com/auth/adsense.readonly"]}}}', true));
1047
+ $this->accounts_reports = new Google_AccountsReportsServiceResource($this, $this->serviceName, 'reports', json_decode('{"methods": {"generate": {"id": "adsense.accounts.reports.generate", "path": "accounts/{accountId}/reports", "httpMethod": "GET", "parameters": {"accountId": {"type": "string", "required": true, "location": "path"}, "currency": {"type": "string", "location": "query"}, "dimension": {"type": "string", "repeated": true, "location": "query"}, "endDate": {"type": "string", "required": true, "location": "query"}, "filter": {"type": "string", "repeated": true, "location": "query"}, "locale": {"type": "string", "location": "query"}, "maxResults": {"type": "integer", "format": "int32", "minimum": "0", "maximum": "50000", "location": "query"}, "metric": {"type": "string", "repeated": true, "location": "query"}, "sort": {"type": "string", "repeated": true, "location": "query"}, "startDate": {"type": "string", "required": true, "location": "query"}, "startIndex": {"type": "integer", "format": "int32", "minimum": "0", "maximum": "5000", "location": "query"}, "useTimezoneReporting": {"type": "boolean", "location": "query"}}, "response": {"$ref": "AdsenseReportsGenerateResponse"}, "scopes": ["https://www.googleapis.com/auth/adsense", "https://www.googleapis.com/auth/adsense.readonly"], "supportsMediaDownload": true}}}', true));
1048
+ $this->accounts_reports_saved = new Google_AccountsReportsSavedServiceResource($this, $this->serviceName, 'saved', json_decode('{"methods": {"generate": {"id": "adsense.accounts.reports.saved.generate", "path": "accounts/{accountId}/reports/{savedReportId}", "httpMethod": "GET", "parameters": {"accountId": {"type": "string", "required": true, "location": "path"}, "locale": {"type": "string", "location": "query"}, "maxResults": {"type": "integer", "format": "int32", "minimum": "0", "maximum": "50000", "location": "query"}, "savedReportId": {"type": "string", "required": true, "location": "path"}, "startIndex": {"type": "integer", "format": "int32", "minimum": "0", "maximum": "5000", "location": "query"}}, "response": {"$ref": "AdsenseReportsGenerateResponse"}, "scopes": ["https://www.googleapis.com/auth/adsense", "https://www.googleapis.com/auth/adsense.readonly"]}, "list": {"id": "adsense.accounts.reports.saved.list", "path": "accounts/{accountId}/reports/saved", "httpMethod": "GET", "parameters": {"accountId": {"type": "string", "required": true, "location": "path"}, "maxResults": {"type": "integer", "format": "int32", "minimum": "0", "maximum": "100", "location": "query"}, "pageToken": {"type": "string", "location": "query"}}, "response": {"$ref": "SavedReports"}, "scopes": ["https://www.googleapis.com/auth/adsense", "https://www.googleapis.com/auth/adsense.readonly"]}}}', true));
1049
+ $this->accounts_savedadstyles = new Google_AccountsSavedadstylesServiceResource($this, $this->serviceName, 'savedadstyles', json_decode('{"methods": {"get": {"id": "adsense.accounts.savedadstyles.get", "path": "accounts/{accountId}/savedadstyles/{savedAdStyleId}", "httpMethod": "GET", "parameters": {"accountId": {"type": "string", "required": true, "location": "path"}, "savedAdStyleId": {"type": "string", "required": true, "location": "path"}}, "response": {"$ref": "SavedAdStyle"}, "scopes": ["https://www.googleapis.com/auth/adsense", "https://www.googleapis.com/auth/adsense.readonly"]}, "list": {"id": "adsense.accounts.savedadstyles.list", "path": "accounts/{accountId}/savedadstyles", "httpMethod": "GET", "parameters": {"accountId": {"type": "string", "required": true, "location": "path"}, "maxResults": {"type": "integer", "format": "int32", "minimum": "0", "maximum": "10000", "location": "query"}, "pageToken": {"type": "string", "location": "query"}}, "response": {"$ref": "SavedAdStyles"}, "scopes": ["https://www.googleapis.com/auth/adsense", "https://www.googleapis.com/auth/adsense.readonly"]}}}', true));
1050
+ $this->accounts_urlchannels = new Google_AccountsUrlchannelsServiceResource($this, $this->serviceName, 'urlchannels', json_decode('{"methods": {"list": {"id": "adsense.accounts.urlchannels.list", "path": "accounts/{accountId}/adclients/{adClientId}/urlchannels", "httpMethod": "GET", "parameters": {"accountId": {"type": "string", "required": true, "location": "path"}, "adClientId": {"type": "string", "required": true, "location": "path"}, "maxResults": {"type": "integer", "format": "int32", "minimum": "0", "maximum": "10000", "location": "query"}, "pageToken": {"type": "string", "location": "query"}}, "response": {"$ref": "UrlChannels"}, "scopes": ["https://www.googleapis.com/auth/adsense", "https://www.googleapis.com/auth/adsense.readonly"]}}}', true));
1051
+ $this->adclients = new Google_AdclientsServiceResource($this, $this->serviceName, 'adclients', json_decode('{"methods": {"list": {"id": "adsense.adclients.list", "path": "adclients", "httpMethod": "GET", "parameters": {"maxResults": {"type": "integer", "format": "int32", "minimum": "0", "maximum": "10000", "location": "query"}, "pageToken": {"type": "string", "location": "query"}}, "response": {"$ref": "AdClients"}, "scopes": ["https://www.googleapis.com/auth/adsense", "https://www.googleapis.com/auth/adsense.readonly"]}}}', true));
1052
+ $this->adunits = new Google_AdunitsServiceResource($this, $this->serviceName, 'adunits', json_decode('{"methods": {"get": {"id": "adsense.adunits.get", "path": "adclients/{adClientId}/adunits/{adUnitId}", "httpMethod": "GET", "parameters": {"adClientId": {"type": "string", "required": true, "location": "path"}, "adUnitId": {"type": "string", "required": true, "location": "path"}}, "response": {"$ref": "AdUnit"}, "scopes": ["https://www.googleapis.com/auth/adsense", "https://www.googleapis.com/auth/adsense.readonly"]}, "getAdCode": {"id": "adsense.adunits.getAdCode", "path": "adclients/{adClientId}/adunits/{adUnitId}/adcode", "httpMethod": "GET", "parameters": {"adClientId": {"type": "string", "required": true, "location": "path"}, "adUnitId": {"type": "string", "required": true, "location": "path"}}, "response": {"$ref": "AdCode"}, "scopes": ["https://www.googleapis.com/auth/adsense", "https://www.googleapis.com/auth/adsense.readonly"]}, "list": {"id": "adsense.adunits.list", "path": "adclients/{adClientId}/adunits", "httpMethod": "GET", "parameters": {"adClientId": {"type": "string", "required": true, "location": "path"}, "includeInactive": {"type": "boolean", "location": "query"}, "maxResults": {"type": "integer", "format": "int32", "minimum": "0", "maximum": "10000", "location": "query"}, "pageToken": {"type": "string", "location": "query"}}, "response": {"$ref": "AdUnits"}, "scopes": ["https://www.googleapis.com/auth/adsense", "https://www.googleapis.com/auth/adsense.readonly"]}}}', true));
1053
+ $this->adunits_customchannels = new Google_AdunitsCustomchannelsServiceResource($this, $this->serviceName, 'customchannels', json_decode('{"methods": {"list": {"id": "adsense.adunits.customchannels.list", "path": "adclients/{adClientId}/adunits/{adUnitId}/customchannels", "httpMethod": "GET", "parameters": {"adClientId": {"type": "string", "required": true, "location": "path"}, "adUnitId": {"type": "string", "required": true, "location": "path"}, "maxResults": {"type": "integer", "format": "int32", "minimum": "0", "maximum": "10000", "location": "query"}, "pageToken": {"type": "string", "location": "query"}}, "response": {"$ref": "CustomChannels"}, "scopes": ["https://www.googleapis.com/auth/adsense", "https://www.googleapis.com/auth/adsense.readonly"]}}}', true));
1054
+ $this->alerts = new Google_AlertsServiceResource($this, $this->serviceName, 'alerts', json_decode('{"methods": {"list": {"id": "adsense.alerts.list", "path": "alerts", "httpMethod": "GET", "parameters": {"locale": {"type": "string", "location": "query"}}, "response": {"$ref": "Alerts"}, "scopes": ["https://www.googleapis.com/auth/adsense", "https://www.googleapis.com/auth/adsense.readonly"]}}}', true));
1055
+ $this->customchannels = new Google_CustomchannelsServiceResource($this, $this->serviceName, 'customchannels', json_decode('{"methods": {"get": {"id": "adsense.customchannels.get", "path": "adclients/{adClientId}/customchannels/{customChannelId}", "httpMethod": "GET", "parameters": {"adClientId": {"type": "string", "required": true, "location": "path"}, "customChannelId": {"type": "string", "required": true, "location": "path"}}, "response": {"$ref": "CustomChannel"}, "scopes": ["https://www.googleapis.com/auth/adsense", "https://www.googleapis.com/auth/adsense.readonly"]}, "list": {"id": "adsense.customchannels.list", "path": "adclients/{adClientId}/customchannels", "httpMethod": "GET", "parameters": {"adClientId": {"type": "string", "required": true, "location": "path"}, "maxResults": {"type": "integer", "format": "int32", "minimum": "0", "maximum": "10000", "location": "query"}, "pageToken": {"type": "string", "location": "query"}}, "response": {"$ref": "CustomChannels"}, "scopes": ["https://www.googleapis.com/auth/adsense", "https://www.googleapis.com/auth/adsense.readonly"]}}}', true));
1056
+ $this->customchannels_adunits = new Google_CustomchannelsAdunitsServiceResource($this, $this->serviceName, 'adunits', json_decode('{"methods": {"list": {"id": "adsense.customchannels.adunits.list", "path": "adclients/{adClientId}/customchannels/{customChannelId}/adunits", "httpMethod": "GET", "parameters": {"adClientId": {"type": "string", "required": true, "location": "path"}, "customChannelId": {"type": "string", "required": true, "location": "path"}, "includeInactive": {"type": "boolean", "location": "query"}, "maxResults": {"type": "integer", "format": "int32", "minimum": "0", "maximum": "10000", "location": "query"}, "pageToken": {"type": "string", "location": "query"}}, "response": {"$ref": "AdUnits"}, "scopes": ["https://www.googleapis.com/auth/adsense", "https://www.googleapis.com/auth/adsense.readonly"]}}}', true));
1057
+ $this->metadata_dimensions = new Google_MetadataDimensionsServiceResource($this, $this->serviceName, 'dimensions', json_decode('{"methods": {"list": {"id": "adsense.metadata.dimensions.list", "path": "metadata/dimensions", "httpMethod": "GET", "response": {"$ref": "Metadata"}, "scopes": ["https://www.googleapis.com/auth/adsense", "https://www.googleapis.com/auth/adsense.readonly"]}}}', true));
1058
+ $this->metadata_metrics = new Google_MetadataMetricsServiceResource($this, $this->serviceName, 'metrics', json_decode('{"methods": {"list": {"id": "adsense.metadata.metrics.list", "path": "metadata/metrics", "httpMethod": "GET", "response": {"$ref": "Metadata"}, "scopes": ["https://www.googleapis.com/auth/adsense", "https://www.googleapis.com/auth/adsense.readonly"]}}}', true));
1059
+ $this->reports = new Google_ReportsServiceResource($this, $this->serviceName, 'reports', json_decode('{"methods": {"generate": {"id": "adsense.reports.generate", "path": "reports", "httpMethod": "GET", "parameters": {"accountId": {"type": "string", "repeated": true, "location": "query"}, "currency": {"type": "string", "location": "query"}, "dimension": {"type": "string", "repeated": true, "location": "query"}, "endDate": {"type": "string", "required": true, "location": "query"}, "filter": {"type": "string", "repeated": true, "location": "query"}, "locale": {"type": "string", "location": "query"}, "maxResults": {"type": "integer", "format": "int32", "minimum": "0", "maximum": "50000", "location": "query"}, "metric": {"type": "string", "repeated": true, "location": "query"}, "sort": {"type": "string", "repeated": true, "location": "query"}, "startDate": {"type": "string", "required": true, "location": "query"}, "startIndex": {"type": "integer", "format": "int32", "minimum": "0", "maximum": "5000", "location": "query"}, "useTimezoneReporting": {"type": "boolean", "location": "query"}}, "response": {"$ref": "AdsenseReportsGenerateResponse"}, "scopes": ["https://www.googleapis.com/auth/adsense", "https://www.googleapis.com/auth/adsense.readonly"], "supportsMediaDownload": true}}}', true));
1060
+ $this->reports_saved = new Google_ReportsSavedServiceResource($this, $this->serviceName, 'saved', json_decode('{"methods": {"generate": {"id": "adsense.reports.saved.generate", "path": "reports/{savedReportId}", "httpMethod": "GET", "parameters": {"locale": {"type": "string", "location": "query"}, "maxResults": {"type": "integer", "format": "int32", "minimum": "0", "maximum": "50000", "location": "query"}, "savedReportId": {"type": "string", "required": true, "location": "path"}, "startIndex": {"type": "integer", "format": "int32", "minimum": "0", "maximum": "5000", "location": "query"}}, "response": {"$ref": "AdsenseReportsGenerateResponse"}, "scopes": ["https://www.googleapis.com/auth/adsense", "https://www.googleapis.com/auth/adsense.readonly"]}, "list": {"id": "adsense.reports.saved.list", "path": "reports/saved", "httpMethod": "GET", "parameters": {"maxResults": {"type": "integer", "format": "int32", "minimum": "0", "maximum": "100", "location": "query"}, "pageToken": {"type": "string", "location": "query"}}, "response": {"$ref": "SavedReports"}, "scopes": ["https://www.googleapis.com/auth/adsense", "https://www.googleapis.com/auth/adsense.readonly"]}}}', true));
1061
+ $this->savedadstyles = new Google_SavedadstylesServiceResource($this, $this->serviceName, 'savedadstyles', json_decode('{"methods": {"get": {"id": "adsense.savedadstyles.get", "path": "savedadstyles/{savedAdStyleId}", "httpMethod": "GET", "parameters": {"savedAdStyleId": {"type": "string", "required": true, "location": "path"}}, "response": {"$ref": "SavedAdStyle"}, "scopes": ["https://www.googleapis.com/auth/adsense", "https://www.googleapis.com/auth/adsense.readonly"]}, "list": {"id": "adsense.savedadstyles.list", "path": "savedadstyles", "httpMethod": "GET", "parameters": {"maxResults": {"type": "integer", "format": "int32", "minimum": "0", "maximum": "10000", "location": "query"}, "pageToken": {"type": "string", "location": "query"}}, "response": {"$ref": "SavedAdStyles"}, "scopes": ["https://www.googleapis.com/auth/adsense", "https://www.googleapis.com/auth/adsense.readonly"]}}}', true));
1062
+ $this->urlchannels = new Google_UrlchannelsServiceResource($this, $this->serviceName, 'urlchannels', json_decode('{"methods": {"list": {"id": "adsense.urlchannels.list", "path": "adclients/{adClientId}/urlchannels", "httpMethod": "GET", "parameters": {"adClientId": {"type": "string", "required": true, "location": "path"}, "maxResults": {"type": "integer", "format": "int32", "minimum": "0", "maximum": "10000", "location": "query"}, "pageToken": {"type": "string", "location": "query"}}, "response": {"$ref": "UrlChannels"}, "scopes": ["https://www.googleapis.com/auth/adsense", "https://www.googleapis.com/auth/adsense.readonly"]}}}', true));
1063
+
1064
+ }
1065
+ }
1066
+
1067
+
1068
+
1069
+ class Google_Account extends Google_Model {
1070
+ public $id;
1071
+ public $kind;
1072
+ public $name;
1073
+ public $premium;
1074
+ protected $__subAccountsType = 'Google_Account';
1075
+ protected $__subAccountsDataType = 'array';
1076
+ public $subAccounts;
1077
+ public function setId( $id) {
1078
+ $this->id = $id;
1079
+ }
1080
+ public function getId() {
1081
+ return $this->id;
1082
+ }
1083
+ public function setKind( $kind) {
1084
+ $this->kind = $kind;
1085
+ }
1086
+ public function getKind() {
1087
+ return $this->kind;
1088
+ }
1089
+ public function setName( $name) {
1090
+ $this->name = $name;
1091
+ }
1092
+ public function getName() {
1093
+ return $this->name;
1094
+ }
1095
+ public function setPremium( $premium) {
1096
+ $this->premium = $premium;
1097
+ }
1098
+ public function getPremium() {
1099
+ return $this->premium;
1100
+ }
1101
+ public function setSubAccounts(/* array(Google_Account) */ $subAccounts) {
1102
+ $this->assertIsArray($subAccounts, 'Google_Account', __METHOD__);
1103
+ $this->subAccounts = $subAccounts;
1104
+ }
1105
+ public function getSubAccounts() {
1106
+ return $this->subAccounts;
1107
+ }
1108
+ }
1109
+
1110
+ class Google_Accounts extends Google_Model {
1111
+ public $etag;
1112
+ protected $__itemsType = 'Google_Account';
1113
+ protected $__itemsDataType = 'array';
1114
+ public $items;
1115
+ public $kind;
1116
+ public $nextPageToken;
1117
+ public function setEtag( $etag) {
1118
+ $this->etag = $etag;
1119
+ }
1120
+ public function getEtag() {
1121
+ return $this->etag;
1122
+ }
1123
+ public function setItems(/* array(Google_Account) */ $items) {
1124
+ $this->assertIsArray($items, 'Google_Account', __METHOD__);
1125
+ $this->items = $items;
1126
+ }
1127
+ public function getItems() {
1128
+ return $this->items;
1129
+ }
1130
+ public function setKind( $kind) {
1131
+ $this->kind = $kind;
1132
+ }
1133
+ public function getKind() {
1134
+ return $this->kind;
1135
+ }
1136
+ public function setNextPageToken( $nextPageToken) {
1137
+ $this->nextPageToken = $nextPageToken;
1138
+ }
1139
+ public function getNextPageToken() {
1140
+ return $this->nextPageToken;
1141
+ }
1142
+ }
1143
+
1144
+ class Google_AdClient extends Google_Model {
1145
+ public $arcOptIn;
1146
+ public $id;
1147
+ public $kind;
1148
+ public $productCode;
1149
+ public $supportsReporting;
1150
+ public function setArcOptIn( $arcOptIn) {
1151
+ $this->arcOptIn = $arcOptIn;
1152
+ }
1153
+ public function getArcOptIn() {
1154
+ return $this->arcOptIn;
1155
+ }
1156
+ public function setId( $id) {
1157
+ $this->id = $id;
1158
+ }
1159
+ public function getId() {
1160
+ return $this->id;
1161
+ }
1162
+ public function setKind( $kind) {
1163
+ $this->kind = $kind;
1164
+ }
1165
+ public function getKind() {
1166
+ return $this->kind;
1167
+ }
1168
+ public function setProductCode( $productCode) {
1169
+ $this->productCode = $productCode;
1170
+ }
1171
+ public function getProductCode() {
1172
+ return $this->productCode;
1173
+ }
1174
+ public function setSupportsReporting( $supportsReporting) {
1175
+ $this->supportsReporting = $supportsReporting;
1176
+ }
1177
+ public function getSupportsReporting() {
1178
+ return $this->supportsReporting;
1179
+ }
1180
+ }
1181
+
1182
+ class Google_AdClients extends Google_Model {
1183
+ public $etag;
1184
+ protected $__itemsType = 'Google_AdClient';
1185
+ protected $__itemsDataType = 'array';
1186
+ public $items;
1187
+ public $kind;
1188
+ public $nextPageToken;
1189
+ public function setEtag( $etag) {
1190
+ $this->etag = $etag;
1191
+ }
1192
+ public function getEtag() {
1193
+ return $this->etag;
1194
+ }
1195
+ public function setItems(/* array(Google_AdClient) */ $items) {
1196
+ $this->assertIsArray($items, 'Google_AdClient', __METHOD__);
1197
+ $this->items = $items;
1198
+ }
1199
+ public function getItems() {
1200
+ return $this->items;
1201
+ }
1202
+ public function setKind( $kind) {
1203
+ $this->kind = $kind;
1204
+ }
1205
+ public function getKind() {
1206
+ return $this->kind;
1207
+ }
1208
+ public function setNextPageToken( $nextPageToken) {
1209
+ $this->nextPageToken = $nextPageToken;
1210
+ }
1211
+ public function getNextPageToken() {
1212
+ return $this->nextPageToken;
1213
+ }
1214
+ }
1215
+
1216
+ class Google_AdCode extends Google_Model {
1217
+ public $adCode;
1218
+ public $kind;
1219
+ public function setAdCode( $adCode) {
1220
+ $this->adCode = $adCode;
1221
+ }
1222
+ public function getAdCode() {
1223
+ return $this->adCode;
1224
+ }
1225
+ public function setKind( $kind) {
1226
+ $this->kind = $kind;
1227
+ }
1228
+ public function getKind() {
1229
+ return $this->kind;
1230
+ }
1231
+ }
1232
+
1233
+ class Google_AdStyle extends Google_Model {
1234
+ protected $__colorsType = 'Google_AdStyleColors';
1235
+ protected $__colorsDataType = '';
1236
+ public $colors;
1237
+ public $corners;
1238
+ protected $__fontType = 'Google_AdStyleFont';
1239
+ protected $__fontDataType = '';
1240
+ public $font;
1241
+ public $kind;
1242
+ public function setColors(Google_AdStyleColors $colors) {
1243
+ $this->colors = $colors;
1244
+ }
1245
+ public function getColors() {
1246
+ return $this->colors;
1247
+ }
1248
+ public function setCorners( $corners) {
1249
+ $this->corners = $corners;
1250
+ }
1251
+ public function getCorners() {
1252
+ return $this->corners;
1253
+ }
1254
+ public function setFont(Google_AdStyleFont $font) {
1255
+ $this->font = $font;
1256
+ }
1257
+ public function getFont() {
1258
+ return $this->font;
1259
+ }
1260
+ public function setKind( $kind) {
1261
+ $this->kind = $kind;
1262
+ }
1263
+ public function getKind() {
1264
+ return $this->kind;
1265
+ }
1266
+ }
1267
+
1268
+ class Google_AdStyleColors extends Google_Model {
1269
+ public $background;
1270
+ public $border;
1271
+ public $text;
1272
+ public $title;
1273
+ public $url;
1274
+ public function setBackground( $background) {
1275
+ $this->background = $background;
1276
+ }
1277
+ public function getBackground() {
1278
+ return $this->background;
1279
+ }
1280
+ public function setBorder( $border) {
1281
+ $this->border = $border;
1282
+ }
1283
+ public function getBorder() {
1284
+ return $this->border;
1285
+ }
1286
+ public function setText( $text) {
1287
+ $this->text = $text;
1288
+ }
1289
+ public function getText() {
1290
+ return $this->text;
1291
+ }
1292
+ public function setTitle( $title) {
1293
+ $this->title = $title;
1294
+ }
1295
+ public function getTitle() {
1296
+ return $this->title;
1297
+ }
1298
+ public function setUrl( $url) {
1299
+ $this->url = $url;
1300
+ }
1301
+ public function getUrl() {
1302
+ return $this->url;
1303
+ }
1304
+ }
1305
+
1306
+ class Google_AdStyleFont extends Google_Model {
1307
+ public $family;
1308
+ public $size;
1309
+ public function setFamily( $family) {
1310
+ $this->family = $family;
1311
+ }
1312
+ public function getFamily() {
1313
+ return $this->family;
1314
+ }
1315
+ public function setSize( $size) {
1316
+ $this->size = $size;
1317
+ }
1318
+ public function getSize() {
1319
+ return $this->size;
1320
+ }
1321
+ }
1322
+
1323
+ class Google_AdUnit extends Google_Model {
1324
+ public $code;
1325
+ protected $__contentAdsSettingsType = 'Google_AdUnitContentAdsSettings';
1326
+ protected $__contentAdsSettingsDataType = '';
1327
+ public $contentAdsSettings;
1328
+ protected $__customStyleType = 'Google_AdStyle';
1329
+ protected $__customStyleDataType = '';
1330
+ public $customStyle;
1331
+ protected $__feedAdsSettingsType = 'Google_AdUnitFeedAdsSettings';
1332
+ protected $__feedAdsSettingsDataType = '';
1333
+ public $feedAdsSettings;
1334
+ public $id;
1335
+ public $kind;
1336
+ protected $__mobileContentAdsSettingsType = 'Google_AdUnitMobileContentAdsSettings';
1337
+ protected $__mobileContentAdsSettingsDataType = '';
1338
+ public $mobileContentAdsSettings;
1339
+ public $name;
1340
+ public $savedStyleId;
1341
+ public $status;
1342
+ public function setCode( $code) {
1343
+ $this->code = $code;
1344
+ }
1345
+ public function getCode() {
1346
+ return $this->code;
1347
+ }
1348
+ public function setContentAdsSettings(Google_AdUnitContentAdsSettings $contentAdsSettings) {
1349
+ $this->contentAdsSettings = $contentAdsSettings;
1350
+ }
1351
+ public function getContentAdsSettings() {
1352
+ return $this->contentAdsSettings;
1353
+ }
1354
+ public function setCustomStyle(Google_AdStyle $customStyle) {
1355
+ $this->customStyle = $customStyle;
1356
+ }
1357
+ public function getCustomStyle() {
1358
+ return $this->customStyle;
1359
+ }
1360
+ public function setFeedAdsSettings(Google_AdUnitFeedAdsSettings $feedAdsSettings) {
1361
+ $this->feedAdsSettings = $feedAdsSettings;
1362
+ }
1363
+ public function getFeedAdsSettings() {
1364
+ return $this->feedAdsSettings;
1365
+ }
1366
+ public function setId( $id) {
1367
+ $this->id = $id;
1368
+ }
1369
+ public function getId() {
1370
+ return $this->id;
1371
+ }
1372
+ public function setKind( $kind) {
1373
+ $this->kind = $kind;
1374
+ }
1375
+ public function getKind() {
1376
+ return $this->kind;
1377
+ }
1378
+ public function setMobileContentAdsSettings(Google_AdUnitMobileContentAdsSettings $mobileContentAdsSettings) {
1379
+ $this->mobileContentAdsSettings = $mobileContentAdsSettings;
1380
+ }
1381
+ public function getMobileContentAdsSettings() {
1382
+ return $this->mobileContentAdsSettings;
1383
+ }
1384
+ public function setName( $name) {
1385
+ $this->name = $name;
1386
+ }
1387
+ public function getName() {
1388
+ return $this->name;
1389
+ }
1390
+ public function setSavedStyleId( $savedStyleId) {
1391
+ $this->savedStyleId = $savedStyleId;
1392
+ }
1393
+ public function getSavedStyleId() {
1394
+ return $this->savedStyleId;
1395
+ }
1396
+ public function setStatus( $status) {
1397
+ $this->status = $status;
1398
+ }
1399
+ public function getStatus() {
1400
+ return $this->status;
1401
+ }
1402
+ }
1403
+
1404
+ class Google_AdUnitContentAdsSettings extends Google_Model {
1405
+ protected $__backupOptionType = 'Google_AdUnitContentAdsSettingsBackupOption';
1406
+ protected $__backupOptionDataType = '';
1407
+ public $backupOption;
1408
+ public $size;
1409
+ public $type;
1410
+ public function setBackupOption(Google_AdUnitContentAdsSettingsBackupOption $backupOption) {
1411
+ $this->backupOption = $backupOption;
1412
+ }
1413
+ public function getBackupOption() {
1414
+ return $this->backupOption;
1415
+ }
1416
+ public function setSize( $size) {
1417
+ $this->size = $size;
1418
+ }
1419
+ public function getSize() {
1420
+ return $this->size;
1421
+ }
1422
+ public function setType( $type) {
1423
+ $this->type = $type;
1424
+ }
1425
+ public function getType() {
1426
+ return $this->type;
1427
+ }
1428
+ }
1429
+
1430
+ class Google_AdUnitContentAdsSettingsBackupOption extends Google_Model {
1431
+ public $color;
1432
+ public $type;
1433
+ public $url;
1434
+ public function setColor( $color) {
1435
+ $this->color = $color;
1436
+ }
1437
+ public function getColor() {
1438
+ return $this->color;
1439
+ }
1440
+ public function setType( $type) {
1441
+ $this->type = $type;
1442
+ }
1443
+ public function getType() {
1444
+ return $this->type;
1445
+ }
1446
+ public function setUrl( $url) {
1447
+ $this->url = $url;
1448
+ }
1449
+ public function getUrl() {
1450
+ return $this->url;
1451
+ }
1452
+ }
1453
+
1454
+ class Google_AdUnitFeedAdsSettings extends Google_Model {
1455
+ public $adPosition;
1456
+ public $frequency;
1457
+ public $minimumWordCount;
1458
+ public $type;
1459
+ public function setAdPosition( $adPosition) {
1460
+ $this->adPosition = $adPosition;
1461
+ }
1462
+ public function getAdPosition() {
1463
+ return $this->adPosition;
1464
+ }
1465
+ public function setFrequency( $frequency) {
1466
+ $this->frequency = $frequency;
1467
+ }
1468
+ public function getFrequency() {
1469
+ return $this->frequency;
1470
+ }
1471
+ public function setMinimumWordCount( $minimumWordCount) {
1472
+ $this->minimumWordCount = $minimumWordCount;
1473
+ }
1474
+ public function getMinimumWordCount() {
1475
+ return $this->minimumWordCount;
1476
+ }
1477
+ public function setType( $type) {
1478
+ $this->type = $type;
1479
+ }
1480
+ public function getType() {
1481
+ return $this->type;
1482
+ }
1483
+ }
1484
+
1485
+ class Google_AdUnitMobileContentAdsSettings extends Google_Model {
1486
+ public $markupLanguage;
1487
+ public $scriptingLanguage;
1488
+ public $size;
1489
+ public $type;
1490
+ public function setMarkupLanguage( $markupLanguage) {
1491
+ $this->markupLanguage = $markupLanguage;
1492
+ }
1493
+ public function getMarkupLanguage() {
1494
+ return $this->markupLanguage;
1495
+ }
1496
+ public function setScriptingLanguage( $scriptingLanguage) {
1497
+ $this->scriptingLanguage = $scriptingLanguage;
1498
+ }
1499
+ public function getScriptingLanguage() {
1500
+ return $this->scriptingLanguage;
1501
+ }
1502
+ public function setSize( $size) {
1503
+ $this->size = $size;
1504
+ }
1505
+ public function getSize() {
1506
+ return $this->size;
1507
+ }
1508
+ public function setType( $type) {
1509
+ $this->type = $type;
1510
+ }
1511
+ public function getType() {
1512
+ return $this->type;
1513
+ }
1514
+ }
1515
+
1516
+ class Google_AdUnits extends Google_Model {
1517
+ public $etag;
1518
+ protected $__itemsType = 'Google_AdUnit';
1519
+ protected $__itemsDataType = 'array';
1520
+ public $items;
1521
+ public $kind;
1522
+ public $nextPageToken;
1523
+ public function setEtag( $etag) {
1524
+ $this->etag = $etag;
1525
+ }
1526
+ public function getEtag() {
1527
+ return $this->etag;
1528
+ }
1529
+ public function setItems(/* array(Google_AdUnit) */ $items) {
1530
+ $this->assertIsArray($items, 'Google_AdUnit', __METHOD__);
1531
+ $this->items = $items;
1532
+ }
1533
+ public function getItems() {
1534
+ return $this->items;
1535
+ }
1536
+ public function setKind( $kind) {
1537
+ $this->kind = $kind;
1538
+ }
1539
+ public function getKind() {
1540
+ return $this->kind;
1541
+ }
1542
+ public function setNextPageToken( $nextPageToken) {
1543
+ $this->nextPageToken = $nextPageToken;
1544
+ }
1545
+ public function getNextPageToken() {
1546
+ return $this->nextPageToken;
1547
+ }
1548
+ }
1549
+
1550
+ class Google_AdsenseReportsGenerateResponse extends Google_Model {
1551
+ public $averages;
1552
+ protected $__headersType = 'Google_AdsenseReportsGenerateResponseHeaders';
1553
+ protected $__headersDataType = 'array';
1554
+ public $headers;
1555
+ public $kind;
1556
+ public $rows;
1557
+ public $totalMatchedRows;
1558
+ public $totals;
1559
+ public $warnings;
1560
+ public function setAverages(/* array(Google_string) */ $averages) {
1561
+ $this->assertIsArray($averages, 'Google_string', __METHOD__);
1562
+ $this->averages = $averages;
1563
+ }
1564
+ public function getAverages() {
1565
+ return $this->averages;
1566
+ }
1567
+ public function setHeaders(/* array(Google_AdsenseReportsGenerateResponseHeaders) */ $headers) {
1568
+ $this->assertIsArray($headers, 'Google_AdsenseReportsGenerateResponseHeaders', __METHOD__);
1569
+ $this->headers = $headers;
1570
+ }
1571
+ public function getHeaders() {
1572
+ return $this->headers;
1573
+ }
1574
+ public function setKind( $kind) {
1575
+ $this->kind = $kind;
1576
+ }
1577
+ public function getKind() {
1578
+ return $this->kind;
1579
+ }
1580
+ public function setRows(/* array(Google_string) */ $rows) {
1581
+ $this->assertIsArray($rows, 'Google_string', __METHOD__);
1582
+ $this->rows = $rows;
1583
+ }
1584
+ public function getRows() {
1585
+ return $this->rows;
1586
+ }
1587
+ public function setTotalMatchedRows( $totalMatchedRows) {
1588
+ $this->totalMatchedRows = $totalMatchedRows;
1589
+ }
1590
+ public function getTotalMatchedRows() {
1591
+ return $this->totalMatchedRows;
1592
+ }
1593
+ public function setTotals(/* array(Google_string) */ $totals) {
1594
+ $this->assertIsArray($totals, 'Google_string', __METHOD__);
1595
+ $this->totals = $totals;
1596
+ }
1597
+ public function getTotals() {
1598
+ return $this->totals;
1599
+ }
1600
+ public function setWarnings(/* array(Google_string) */ $warnings) {
1601
+ $this->assertIsArray($warnings, 'Google_string', __METHOD__);
1602
+ $this->warnings = $warnings;
1603
+ }
1604
+ public function getWarnings() {
1605
+ return $this->warnings;
1606
+ }
1607
+ }
1608
+
1609
+ class Google_AdsenseReportsGenerateResponseHeaders extends Google_Model {
1610
+ public $currency;
1611
+ public $name;
1612
+ public $type;
1613
+ public function setCurrency( $currency) {
1614
+ $this->currency = $currency;
1615
+ }
1616
+ public function getCurrency() {
1617
+ return $this->currency;
1618
+ }
1619
+ public function setName( $name) {
1620
+ $this->name = $name;
1621
+ }
1622
+ public function getName() {
1623
+ return $this->name;
1624
+ }
1625
+ public function setType( $type) {
1626
+ $this->type = $type;
1627
+ }
1628
+ public function getType() {
1629
+ return $this->type;
1630
+ }
1631
+ }
1632
+
1633
+ class Google_Alert extends Google_Model {
1634
+ public $id;
1635
+ public $kind;
1636
+ public $message;
1637
+ public $severity;
1638
+ public $type;
1639
+ public function setId( $id) {
1640
+ $this->id = $id;
1641
+ }
1642
+ public function getId() {
1643
+ return $this->id;
1644
+ }
1645
+ public function setKind( $kind) {
1646
+ $this->kind = $kind;
1647
+ }
1648
+ public function getKind() {
1649
+ return $this->kind;
1650
+ }
1651
+ public function setMessage( $message) {
1652
+ $this->message = $message;
1653
+ }
1654
+ public function getMessage() {
1655
+ return $this->message;
1656
+ }
1657
+ public function setSeverity( $severity) {
1658
+ $this->severity = $severity;
1659
+ }
1660
+ public function getSeverity() {
1661
+ return $this->severity;
1662
+ }
1663
+ public function setType( $type) {
1664
+ $this->type = $type;
1665
+ }
1666
+ public function getType() {
1667
+ return $this->type;
1668
+ }
1669
+ }
1670
+
1671
+ class Google_Alerts extends Google_Model {
1672
+ protected $__itemsType = 'Google_Alert';
1673
+ protected $__itemsDataType = 'array';
1674
+ public $items;
1675
+ public $kind;
1676
+ public function setItems(/* array(Google_Alert) */ $items) {
1677
+ $this->assertIsArray($items, 'Google_Alert', __METHOD__);
1678
+ $this->items = $items;
1679
+ }
1680
+ public function getItems() {
1681
+ return $this->items;
1682
+ }
1683
+ public function setKind( $kind) {
1684
+ $this->kind = $kind;
1685
+ }
1686
+ public function getKind() {
1687
+ return $this->kind;
1688
+ }
1689
+ }
1690
+
1691
+ class Google_CustomChannel extends Google_Model {
1692
+ public $code;
1693
+ public $id;
1694
+ public $kind;
1695
+ public $name;
1696
+ protected $__targetingInfoType = 'Google_CustomChannelTargetingInfo';
1697
+ protected $__targetingInfoDataType = '';
1698
+ public $targetingInfo;
1699
+ public function setCode( $code) {
1700
+ $this->code = $code;
1701
+ }
1702
+ public function getCode() {
1703
+ return $this->code;
1704
+ }
1705
+ public function setId( $id) {
1706
+ $this->id = $id;
1707
+ }
1708
+ public function getId() {
1709
+ return $this->id;
1710
+ }
1711
+ public function setKind( $kind) {
1712
+ $this->kind = $kind;
1713
+ }
1714
+ public function getKind() {
1715
+ return $this->kind;
1716
+ }
1717
+ public function setName( $name) {
1718
+ $this->name = $name;
1719
+ }
1720
+ public function getName() {
1721
+ return $this->name;
1722
+ }
1723
+ public function setTargetingInfo(Google_CustomChannelTargetingInfo $targetingInfo) {
1724
+ $this->targetingInfo = $targetingInfo;
1725
+ }
1726
+ public function getTargetingInfo() {
1727
+ return $this->targetingInfo;
1728
+ }
1729
+ }
1730
+
1731
+ class Google_CustomChannelTargetingInfo extends Google_Model {
1732
+ public $adsAppearOn;
1733
+ public $description;
1734
+ public $location;
1735
+ public $siteLanguage;
1736
+ public function setAdsAppearOn( $adsAppearOn) {
1737
+ $this->adsAppearOn = $adsAppearOn;
1738
+ }
1739
+ public function getAdsAppearOn() {
1740
+ return $this->adsAppearOn;
1741
+ }
1742
+ public function setDescription( $description) {
1743
+ $this->description = $description;
1744
+ }
1745
+ public function getDescription() {
1746
+ return $this->description;
1747
+ }
1748
+ public function setLocation( $location) {
1749
+ $this->location = $location;
1750
+ }
1751
+ public function getLocation() {
1752
+ return $this->location;
1753
+ }
1754
+ public function setSiteLanguage( $siteLanguage) {
1755
+ $this->siteLanguage = $siteLanguage;
1756
+ }
1757
+ public function getSiteLanguage() {
1758
+ return $this->siteLanguage;
1759
+ }
1760
+ }
1761
+
1762
+ class Google_CustomChannels extends Google_Model {
1763
+ public $etag;
1764
+ protected $__itemsType = 'Google_CustomChannel';
1765
+ protected $__itemsDataType = 'array';
1766
+ public $items;
1767
+ public $kind;
1768
+ public $nextPageToken;
1769
+ public function setEtag( $etag) {
1770
+ $this->etag = $etag;
1771
+ }
1772
+ public function getEtag() {
1773
+ return $this->etag;
1774
+ }
1775
+ public function setItems(/* array(Google_CustomChannel) */ $items) {
1776
+ $this->assertIsArray($items, 'Google_CustomChannel', __METHOD__);
1777
+ $this->items = $items;
1778
+ }
1779
+ public function getItems() {
1780
+ return $this->items;
1781
+ }
1782
+ public function setKind( $kind) {
1783
+ $this->kind = $kind;
1784
+ }
1785
+ public function getKind() {
1786
+ return $this->kind;
1787
+ }
1788
+ public function setNextPageToken( $nextPageToken) {
1789
+ $this->nextPageToken = $nextPageToken;
1790
+ }
1791
+ public function getNextPageToken() {
1792
+ return $this->nextPageToken;
1793
+ }
1794
+ }
1795
+
1796
+ class Google_Metadata extends Google_Model {
1797
+ protected $__itemsType = 'Google_ReportingMetadataEntry';
1798
+ protected $__itemsDataType = 'array';
1799
+ public $items;
1800
+ public $kind;
1801
+ public function setItems(/* array(Google_ReportingMetadataEntry) */ $items) {
1802
+ $this->assertIsArray($items, 'Google_ReportingMetadataEntry', __METHOD__);
1803
+ $this->items = $items;
1804
+ }
1805
+ public function getItems() {
1806
+ return $this->items;
1807
+ }
1808
+ public function setKind( $kind) {
1809
+ $this->kind = $kind;
1810
+ }
1811
+ public function getKind() {
1812
+ return $this->kind;
1813
+ }
1814
+ }
1815
+
1816
+ class Google_ReportingMetadataEntry extends Google_Model {
1817
+ public $compatibleDimensions;
1818
+ public $compatibleMetrics;
1819
+ public $id;
1820
+ public $kind;
1821
+ public $requiredDimensions;
1822
+ public $requiredMetrics;
1823
+ public $supportedProducts;
1824
+ public function setCompatibleDimensions(/* array(Google_string) */ $compatibleDimensions) {
1825
+ $this->assertIsArray($compatibleDimensions, 'Google_string', __METHOD__);
1826
+ $this->compatibleDimensions = $compatibleDimensions;
1827
+ }
1828
+ public function getCompatibleDimensions() {
1829
+ return $this->compatibleDimensions;
1830
+ }
1831
+ public function setCompatibleMetrics(/* array(Google_string) */ $compatibleMetrics) {
1832
+ $this->assertIsArray($compatibleMetrics, 'Google_string', __METHOD__);
1833
+ $this->compatibleMetrics = $compatibleMetrics;
1834
+ }
1835
+ public function getCompatibleMetrics() {
1836
+ return $this->compatibleMetrics;
1837
+ }
1838
+ public function setId( $id) {
1839
+ $this->id = $id;
1840
+ }
1841
+ public function getId() {
1842
+ return $this->id;
1843
+ }
1844
+ public function setKind( $kind) {
1845
+ $this->kind = $kind;
1846
+ }
1847
+ public function getKind() {
1848
+ return $this->kind;
1849
+ }
1850
+ public function setRequiredDimensions(/* array(Google_string) */ $requiredDimensions) {
1851
+ $this->assertIsArray($requiredDimensions, 'Google_string', __METHOD__);
1852
+ $this->requiredDimensions = $requiredDimensions;
1853
+ }
1854
+ public function getRequiredDimensions() {
1855
+ return $this->requiredDimensions;
1856
+ }
1857
+ public function setRequiredMetrics(/* array(Google_string) */ $requiredMetrics) {
1858
+ $this->assertIsArray($requiredMetrics, 'Google_string', __METHOD__);
1859
+ $this->requiredMetrics = $requiredMetrics;
1860
+ }
1861
+ public function getRequiredMetrics() {
1862
+ return $this->requiredMetrics;
1863
+ }
1864
+ public function setSupportedProducts(/* array(Google_string) */ $supportedProducts) {
1865
+ $this->assertIsArray($supportedProducts, 'Google_string', __METHOD__);
1866
+ $this->supportedProducts = $supportedProducts;
1867
+ }
1868
+ public function getSupportedProducts() {
1869
+ return $this->supportedProducts;
1870
+ }
1871
+ }
1872
+
1873
+ class Google_SavedAdStyle extends Google_Model {
1874
+ protected $__adStyleType = 'Google_AdStyle';
1875
+ protected $__adStyleDataType = '';
1876
+ public $adStyle;
1877
+ public $id;
1878
+ public $kind;
1879
+ public $name;
1880
+ public function setAdStyle(Google_AdStyle $adStyle) {
1881
+ $this->adStyle = $adStyle;
1882
+ }
1883
+ public function getAdStyle() {
1884
+ return $this->adStyle;
1885
+ }
1886
+ public function setId( $id) {
1887
+ $this->id = $id;
1888
+ }
1889
+ public function getId() {
1890
+ return $this->id;
1891
+ }
1892
+ public function setKind( $kind) {
1893
+ $this->kind = $kind;
1894
+ }
1895
+ public function getKind() {
1896
+ return $this->kind;
1897
+ }
1898
+ public function setName( $name) {
1899
+ $this->name = $name;
1900
+ }
1901
+ public function getName() {
1902
+ return $this->name;
1903
+ }
1904
+ }
1905
+
1906
+ class Google_SavedAdStyles extends Google_Model {
1907
+ public $etag;
1908
+ protected $__itemsType = 'Google_SavedAdStyle';
1909
+ protected $__itemsDataType = 'array';
1910
+ public $items;
1911
+ public $kind;
1912
+ public $nextPageToken;
1913
+ public function setEtag( $etag) {
1914
+ $this->etag = $etag;
1915
+ }
1916
+ public function getEtag() {
1917
+ return $this->etag;
1918
+ }
1919
+ public function setItems(/* array(Google_SavedAdStyle) */ $items) {
1920
+ $this->assertIsArray($items, 'Google_SavedAdStyle', __METHOD__);
1921
+ $this->items = $items;
1922
+ }
1923
+ public function getItems() {
1924
+ return $this->items;
1925
+ }
1926
+ public function setKind( $kind) {
1927
+ $this->kind = $kind;
1928
+ }
1929
+ public function getKind() {
1930
+ return $this->kind;
1931
+ }
1932
+ public function setNextPageToken( $nextPageToken) {
1933
+ $this->nextPageToken = $nextPageToken;
1934
+ }
1935
+ public function getNextPageToken() {
1936
+ return $this->nextPageToken;
1937
+ }
1938
+ }
1939
+
1940
+ class Google_SavedReport extends Google_Model {
1941
+ public $id;
1942
+ public $kind;
1943
+ public $name;
1944
+ public function setId( $id) {
1945
+ $this->id = $id;
1946
+ }
1947
+ public function getId() {
1948
+ return $this->id;
1949
+ }
1950
+ public function setKind( $kind) {
1951
+ $this->kind = $kind;
1952
+ }
1953
+ public function getKind() {
1954
+ return $this->kind;
1955
+ }
1956
+ public function setName( $name) {
1957
+ $this->name = $name;
1958
+ }
1959
+ public function getName() {
1960
+ return $this->name;
1961
+ }
1962
+ }
1963
+
1964
+ class Google_SavedReports extends Google_Model {
1965
+ public $etag;
1966
+ protected $__itemsType = 'Google_SavedReport';
1967
+ protected $__itemsDataType = 'array';
1968
+ public $items;
1969
+ public $kind;
1970
+ public $nextPageToken;
1971
+ public function setEtag( $etag) {
1972
+ $this->etag = $etag;
1973
+ }
1974
+ public function getEtag() {
1975
+ return $this->etag;
1976
+ }
1977
+ public function setItems(/* array(Google_SavedReport) */ $items) {
1978
+ $this->assertIsArray($items, 'Google_SavedReport', __METHOD__);
1979
+ $this->items = $items;
1980
+ }
1981
+ public function getItems() {
1982
+ return $this->items;
1983
+ }
1984
+ public function setKind( $kind) {
1985
+ $this->kind = $kind;
1986
+ }
1987
+ public function getKind() {
1988
+ return $this->kind;
1989
+ }
1990
+ public function setNextPageToken( $nextPageToken) {
1991
+ $this->nextPageToken = $nextPageToken;
1992
+ }
1993
+ public function getNextPageToken() {
1994
+ return $this->nextPageToken;
1995
+ }
1996
+ }
1997
+
1998
+ class Google_UrlChannel extends Google_Model {
1999
+ public $id;
2000
+ public $kind;
2001
+ public $urlPattern;
2002
+ public function setId( $id) {
2003
+ $this->id = $id;
2004
+ }
2005
+ public function getId() {
2006
+ return $this->id;
2007
+ }
2008
+ public function setKind( $kind) {
2009
+ $this->kind = $kind;
2010
+ }
2011
+ public function getKind() {
2012
+ return $this->kind;
2013
+ }
2014
+ public function setUrlPattern( $urlPattern) {
2015
+ $this->urlPattern = $urlPattern;
2016
+ }
2017
+ public function getUrlPattern() {
2018
+ return $this->urlPattern;
2019
+ }
2020
+ }
2021
+
2022
+ class Google_UrlChannels extends Google_Model {
2023
+ public $etag;
2024
+ protected $__itemsType = 'Google_UrlChannel';
2025
+ protected $__itemsDataType = 'array';
2026
+ public $items;
2027
+ public $kind;
2028
+ public $nextPageToken;
2029
+ public function setEtag( $etag) {
2030
+ $this->etag = $etag;
2031
+ }
2032
+ public function getEtag() {
2033
+ return $this->etag;
2034
+ }
2035
+ public function setItems(/* array(Google_UrlChannel) */ $items) {
2036
+ $this->assertIsArray($items, 'Google_UrlChannel', __METHOD__);
2037
+ $this->items = $items;
2038
+ }
2039
+ public function getItems() {
2040
+ return $this->items;
2041
+ }
2042
+ public function setKind( $kind) {
2043
+ $this->kind = $kind;
2044
+ }
2045
+ public function getKind() {
2046
+ return $this->kind;
2047
+ }
2048
+ public function setNextPageToken( $nextPageToken) {
2049
+ $this->nextPageToken = $nextPageToken;
2050
+ }
2051
+ public function getNextPageToken() {
2052
+ return $this->nextPageToken;
2053
+ }
2054
+ }
googleclient/contrib/Google_AdexchangebuyerService.php ADDED
@@ -0,0 +1,705 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /*
3
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
4
+ * use this file except in compliance with the License. You may obtain a copy of
5
+ * the License at
6
+ *
7
+ * http://www.apache.org/licenses/LICENSE-2.0
8
+ *
9
+ * Unless required by applicable law or agreed to in writing, software
10
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
11
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
12
+ * License for the specific language governing permissions and limitations under
13
+ * the License.
14
+ */
15
+
16
+
17
+ /**
18
+ * The "accounts" collection of methods.
19
+ * Typical usage is:
20
+ * <code>
21
+ * $adexchangebuyerService = new Google_AdexchangebuyerService(...);
22
+ * $accounts = $adexchangebuyerService->accounts;
23
+ * </code>
24
+ */
25
+ class Google_AccountsServiceResource extends Google_ServiceResource {
26
+
27
+ /**
28
+ * Gets one account by ID. (accounts.get)
29
+ *
30
+ * @param int $id The account id
31
+ * @param array $optParams Optional parameters.
32
+ * @return Google_Account
33
+ */
34
+ public function get($id, $optParams = array()) {
35
+ $params = array('id' => $id);
36
+ $params = array_merge($params, $optParams);
37
+ $data = $this->__call('get', array($params));
38
+ if ($this->useObjects()) {
39
+ return new Google_Account($data);
40
+ } else {
41
+ return $data;
42
+ }
43
+ }
44
+ /**
45
+ * Retrieves the authenticated user's list of accounts. (accounts.list)
46
+ *
47
+ * @param array $optParams Optional parameters.
48
+ * @return Google_AccountsList
49
+ */
50
+ public function listAccounts($optParams = array()) {
51
+ $params = array();
52
+ $params = array_merge($params, $optParams);
53
+ $data = $this->__call('list', array($params));
54
+ if ($this->useObjects()) {
55
+ return new Google_AccountsList($data);
56
+ } else {
57
+ return $data;
58
+ }
59
+ }
60
+ /**
61
+ * Updates an existing account. This method supports patch semantics. (accounts.patch)
62
+ *
63
+ * @param int $id The account id
64
+ * @param Google_Account $postBody
65
+ * @param array $optParams Optional parameters.
66
+ * @return Google_Account
67
+ */
68
+ public function patch($id, Google_Account $postBody, $optParams = array()) {
69
+ $params = array('id' => $id, 'postBody' => $postBody);
70
+ $params = array_merge($params, $optParams);
71
+ $data = $this->__call('patch', array($params));
72
+ if ($this->useObjects()) {
73
+ return new Google_Account($data);
74
+ } else {
75
+ return $data;
76
+ }
77
+ }
78
+ /**
79
+ * Updates an existing account. (accounts.update)
80
+ *
81
+ * @param int $id The account id
82
+ * @param Google_Account $postBody
83
+ * @param array $optParams Optional parameters.
84
+ * @return Google_Account
85
+ */
86
+ public function update($id, Google_Account $postBody, $optParams = array()) {
87
+ $params = array('id' => $id, 'postBody' => $postBody);
88
+ $params = array_merge($params, $optParams);
89
+ $data = $this->__call('update', array($params));
90
+ if ($this->useObjects()) {
91
+ return new Google_Account($data);
92
+ } else {
93
+ return $data;
94
+ }
95
+ }
96
+ }
97
+
98
+ /**
99
+ * The "creatives" collection of methods.
100
+ * Typical usage is:
101
+ * <code>
102
+ * $adexchangebuyerService = new Google_AdexchangebuyerService(...);
103
+ * $creatives = $adexchangebuyerService->creatives;
104
+ * </code>
105
+ */
106
+ class Google_CreativesServiceResource extends Google_ServiceResource {
107
+
108
+ /**
109
+ * Gets the status for a single creative. (creatives.get)
110
+ *
111
+ * @param int $accountId The id for the account that will serve this creative.
112
+ * @param string $buyerCreativeId The buyer-specific id for this creative.
113
+ * @param array $optParams Optional parameters.
114
+ * @return Google_Creative
115
+ */
116
+ public function get($accountId, $buyerCreativeId, $optParams = array()) {
117
+ $params = array('accountId' => $accountId, 'buyerCreativeId' => $buyerCreativeId);
118
+ $params = array_merge($params, $optParams);
119
+ $data = $this->__call('get', array($params));
120
+ if ($this->useObjects()) {
121
+ return new Google_Creative($data);
122
+ } else {
123
+ return $data;
124
+ }
125
+ }
126
+ /**
127
+ * Submit a new creative. (creatives.insert)
128
+ *
129
+ * @param Google_Creative $postBody
130
+ * @param array $optParams Optional parameters.
131
+ * @return Google_Creative
132
+ */
133
+ public function insert(Google_Creative $postBody, $optParams = array()) {
134
+ $params = array('postBody' => $postBody);
135
+ $params = array_merge($params, $optParams);
136
+ $data = $this->__call('insert', array($params));
137
+ if ($this->useObjects()) {
138
+ return new Google_Creative($data);
139
+ } else {
140
+ return $data;
141
+ }
142
+ }
143
+ /**
144
+ * Retrieves a list of the authenticated user's active creatives. (creatives.list)
145
+ *
146
+ * @param array $optParams Optional parameters.
147
+ *
148
+ * @opt_param string maxResults Maximum number of entries returned on one result page. If not set, the default is 100. Optional.
149
+ * @opt_param string pageToken A continuation token, used to page through ad clients. To retrieve the next page, set this parameter to the value of "nextPageToken" from the previous response. Optional.
150
+ * @opt_param string statusFilter When specified, only creatives having the given status are returned.
151
+ * @return Google_CreativesList
152
+ */
153
+ public function listCreatives($optParams = array()) {
154
+ $params = array();
155
+ $params = array_merge($params, $optParams);
156
+ $data = $this->__call('list', array($params));
157
+ if ($this->useObjects()) {
158
+ return new Google_CreativesList($data);
159
+ } else {
160
+ return $data;
161
+ }
162
+ }
163
+ }
164
+
165
+ /**
166
+ * The "directDeals" collection of methods.
167
+ * Typical usage is:
168
+ * <code>
169
+ * $adexchangebuyerService = new Google_AdexchangebuyerService(...);
170
+ * $directDeals = $adexchangebuyerService->directDeals;
171
+ * </code>
172
+ */
173
+ class Google_DirectDealsServiceResource extends Google_ServiceResource {
174
+
175
+ /**
176
+ * Gets one direct deal by ID. (directDeals.get)
177
+ *
178
+ * @param string $id The direct deal id
179
+ * @param array $optParams Optional parameters.
180
+ * @return Google_DirectDeal
181
+ */
182
+ public function get($id, $optParams = array()) {
183
+ $params = array('id' => $id);
184
+ $params = array_merge($params, $optParams);
185
+ $data = $this->__call('get', array($params));
186
+ if ($this->useObjects()) {
187
+ return new Google_DirectDeal($data);
188
+ } else {
189
+ return $data;
190
+ }
191
+ }
192
+ /**
193
+ * Retrieves the authenticated user's list of direct deals. (directDeals.list)
194
+ *
195
+ * @param array $optParams Optional parameters.
196
+ * @return Google_DirectDealsList
197
+ */
198
+ public function listDirectDeals($optParams = array()) {
199
+ $params = array();
200
+ $params = array_merge($params, $optParams);
201
+ $data = $this->__call('list', array($params));
202
+ if ($this->useObjects()) {
203
+ return new Google_DirectDealsList($data);
204
+ } else {
205
+ return $data;
206
+ }
207
+ }
208
+ }
209
+
210
+ /**
211
+ * The "performanceReport" collection of methods.
212
+ * Typical usage is:
213
+ * <code>
214
+ * $adexchangebuyerService = new Google_AdexchangebuyerService(...);
215
+ * $performanceReport = $adexchangebuyerService->performanceReport;
216
+ * </code>
217
+ */
218
+ class Google_PerformanceReportServiceResource extends Google_ServiceResource {
219
+
220
+ /**
221
+ * Retrieves the authenticated user's list of performance metrics. (performanceReport.list)
222
+ *
223
+ * @param string $accountId The account id to get the reports for.
224
+ * @param string $endDateTime The end time for the reports.
225
+ * @param string $startDateTime The start time for the reports.
226
+ * @param array $optParams Optional parameters.
227
+ * @return Google_PerformanceReportList
228
+ */
229
+ public function listPerformanceReport($accountId, $endDateTime, $startDateTime, $optParams = array()) {
230
+ $params = array('accountId' => $accountId, 'endDateTime' => $endDateTime, 'startDateTime' => $startDateTime);
231
+ $params = array_merge($params, $optParams);
232
+ $data = $this->__call('list', array($params));
233
+ if ($this->useObjects()) {
234
+ return new Google_PerformanceReportList($data);
235
+ } else {
236
+ return $data;
237
+ }
238
+ }
239
+ }
240
+
241
+ /**
242
+ * Service definition for Google_Adexchangebuyer (v1.2).
243
+ *
244
+ * <p>
245
+ * Lets you manage your Ad Exchange Buyer account.
246
+ * </p>
247
+ *
248
+ * <p>
249
+ * For more information about this service, see the
250
+ * <a href="https://developers.google.com/ad-exchange/buyer-rest" target="_blank">API Documentation</a>
251
+ * </p>
252
+ *
253
+ * @author Google, Inc.
254
+ */
255
+ class Google_AdexchangebuyerService extends Google_Service {
256
+ public $accounts;
257
+ public $creatives;
258
+ public $directDeals;
259
+ public $performanceReport;
260
+ /**
261
+ * Constructs the internal representation of the Adexchangebuyer service.
262
+ *
263
+ * @param Google_Client $client
264
+ */
265
+ public function __construct(Google_Client $client) {
266
+ $this->servicePath = 'adexchangebuyer/v1.2/';
267
+ $this->version = 'v1.2';
268
+ $this->serviceName = 'adexchangebuyer';
269
+
270
+ $client->addService($this->serviceName, $this->version);
271
+ $this->accounts = new Google_AccountsServiceResource($this, $this->serviceName, 'accounts', json_decode('{"methods": {"get": {"id": "adexchangebuyer.accounts.get", "path": "accounts/{id}", "httpMethod": "GET", "parameters": {"id": {"type": "integer", "required": true, "format": "int32", "location": "path"}}, "response": {"$ref": "Account"}, "scopes": ["https://www.googleapis.com/auth/adexchange.buyer"]}, "list": {"id": "adexchangebuyer.accounts.list", "path": "accounts", "httpMethod": "GET", "response": {"$ref": "AccountsList"}, "scopes": ["https://www.googleapis.com/auth/adexchange.buyer"]}, "patch": {"id": "adexchangebuyer.accounts.patch", "path": "accounts/{id}", "httpMethod": "PATCH", "parameters": {"id": {"type": "integer", "required": true, "format": "int32", "location": "path"}}, "request": {"$ref": "Account"}, "response": {"$ref": "Account"}, "scopes": ["https://www.googleapis.com/auth/adexchange.buyer"]}, "update": {"id": "adexchangebuyer.accounts.update", "path": "accounts/{id}", "httpMethod": "PUT", "parameters": {"id": {"type": "integer", "required": true, "format": "int32", "location": "path"}}, "request": {"$ref": "Account"}, "response": {"$ref": "Account"}, "scopes": ["https://www.googleapis.com/auth/adexchange.buyer"]}}}', true));
272
+ $this->creatives = new Google_CreativesServiceResource($this, $this->serviceName, 'creatives', json_decode('{"methods": {"get": {"id": "adexchangebuyer.creatives.get", "path": "creatives/{accountId}/{buyerCreativeId}", "httpMethod": "GET", "parameters": {"accountId": {"type": "integer", "required": true, "format": "int32", "location": "path"}, "buyerCreativeId": {"type": "string", "required": true, "location": "path"}}, "response": {"$ref": "Creative"}, "scopes": ["https://www.googleapis.com/auth/adexchange.buyer"]}, "insert": {"id": "adexchangebuyer.creatives.insert", "path": "creatives", "httpMethod": "POST", "request": {"$ref": "Creative"}, "response": {"$ref": "Creative"}, "scopes": ["https://www.googleapis.com/auth/adexchange.buyer"]}, "list": {"id": "adexchangebuyer.creatives.list", "path": "creatives", "httpMethod": "GET", "parameters": {"maxResults": {"type": "integer", "format": "uint32", "minimum": "1", "maximum": "1000", "location": "query"}, "pageToken": {"type": "string", "location": "query"}, "statusFilter": {"type": "string", "enum": ["approved", "disapproved", "not_checked"], "location": "query"}}, "response": {"$ref": "CreativesList"}, "scopes": ["https://www.googleapis.com/auth/adexchange.buyer"]}}}', true));
273
+ $this->directDeals = new Google_DirectDealsServiceResource($this, $this->serviceName, 'directDeals', json_decode('{"methods": {"get": {"id": "adexchangebuyer.directDeals.get", "path": "directdeals/{id}", "httpMethod": "GET", "parameters": {"id": {"type": "string", "required": true, "format": "int64", "location": "path"}}, "response": {"$ref": "DirectDeal"}, "scopes": ["https://www.googleapis.com/auth/adexchange.buyer"]}, "list": {"id": "adexchangebuyer.directDeals.list", "path": "directdeals", "httpMethod": "GET", "response": {"$ref": "DirectDealsList"}, "scopes": ["https://www.googleapis.com/auth/adexchange.buyer"]}}}', true));
274
+ $this->performanceReport = new Google_PerformanceReportServiceResource($this, $this->serviceName, 'performanceReport', json_decode('{"methods": {"list": {"id": "adexchangebuyer.performanceReport.list", "path": "performancereport", "httpMethod": "GET", "parameters": {"accountId": {"type": "string", "required": true, "format": "int64", "location": "query"}, "endDateTime": {"type": "string", "required": true, "format": "int64", "location": "query"}, "startDateTime": {"type": "string", "required": true, "format": "int64", "location": "query"}}, "response": {"$ref": "PerformanceReportList"}, "scopes": ["https://www.googleapis.com/auth/adexchange.buyer"]}}}', true));
275
+
276
+ }
277
+ }
278
+
279
+
280
+
281
+ class Google_Account extends Google_Model {
282
+ protected $__bidderLocationType = 'Google_AccountBidderLocation';
283
+ protected $__bidderLocationDataType = 'array';
284
+ public $bidderLocation;
285
+ public $cookieMatchingNid;
286
+ public $cookieMatchingUrl;
287
+ public $id;
288
+ public $kind;
289
+ public $maximumTotalQps;
290
+ public function setBidderLocation(/* array(Google_AccountBidderLocation) */ $bidderLocation) {
291
+ $this->assertIsArray($bidderLocation, 'Google_AccountBidderLocation', __METHOD__);
292
+ $this->bidderLocation = $bidderLocation;
293
+ }
294
+ public function getBidderLocation() {
295
+ return $this->bidderLocation;
296
+ }
297
+ public function setCookieMatchingNid( $cookieMatchingNid) {
298
+ $this->cookieMatchingNid = $cookieMatchingNid;
299
+ }
300
+ public function getCookieMatchingNid() {
301
+ return $this->cookieMatchingNid;
302
+ }
303
+ public function setCookieMatchingUrl( $cookieMatchingUrl) {
304
+ $this->cookieMatchingUrl = $cookieMatchingUrl;
305
+ }
306
+ public function getCookieMatchingUrl() {
307
+ return $this->cookieMatchingUrl;
308
+ }
309
+ public function setId( $id) {
310
+ $this->id = $id;
311
+ }
312
+ public function getId() {
313
+ return $this->id;
314
+ }
315
+ public function setKind( $kind) {
316
+ $this->kind = $kind;
317
+ }
318
+ public function getKind() {
319
+ return $this->kind;
320
+ }
321
+ public function setMaximumTotalQps( $maximumTotalQps) {
322
+ $this->maximumTotalQps = $maximumTotalQps;
323
+ }
324
+ public function getMaximumTotalQps() {
325
+ return $this->maximumTotalQps;
326
+ }
327
+ }
328
+
329
+ class Google_AccountBidderLocation extends Google_Model {
330
+ public $maximumQps;
331
+ public $region;
332
+ public $url;
333
+ public function setMaximumQps( $maximumQps) {
334
+ $this->maximumQps = $maximumQps;
335
+ }
336
+ public function getMaximumQps() {
337
+ return $this->maximumQps;
338
+ }
339
+ public function setRegion( $region) {
340
+ $this->region = $region;
341
+ }
342
+ public function getRegion() {
343
+ return $this->region;
344
+ }
345
+ public function setUrl( $url) {
346
+ $this->url = $url;
347
+ }
348
+ public function getUrl() {
349
+ return $this->url;
350
+ }
351
+ }
352
+
353
+ class Google_AccountsList extends Google_Model {
354
+ protected $__itemsType = 'Google_Account';
355
+ protected $__itemsDataType = 'array';
356
+ public $items;
357
+ public $kind;
358
+ public function setItems(/* array(Google_Account) */ $items) {
359
+ $this->assertIsArray($items, 'Google_Account', __METHOD__);
360
+ $this->items = $items;
361
+ }
362
+ public function getItems() {
363
+ return $this->items;
364
+ }
365
+ public function setKind( $kind) {
366
+ $this->kind = $kind;
367
+ }
368
+ public function getKind() {
369
+ return $this->kind;
370
+ }
371
+ }
372
+
373
+ class Google_Creative extends Google_Model {
374
+ public $HTMLSnippet;
375
+ public $accountId;
376
+ public $advertiserId;
377
+ public $advertiserName;
378
+ public $agencyId;
379
+ public $attribute;
380
+ public $buyerCreativeId;
381
+ public $clickThroughUrl;
382
+ protected $__disapprovalReasonsType = 'Google_CreativeDisapprovalReasons';
383
+ protected $__disapprovalReasonsDataType = 'array';
384
+ public $disapprovalReasons;
385
+ public $height;
386
+ public $kind;
387
+ public $productCategories;
388
+ public $sensitiveCategories;
389
+ public $status;
390
+ public $vendorType;
391
+ public $videoURL;
392
+ public $width;
393
+ public function setHTMLSnippet( $HTMLSnippet) {
394
+ $this->HTMLSnippet = $HTMLSnippet;
395
+ }
396
+ public function getHTMLSnippet() {
397
+ return $this->HTMLSnippet;
398
+ }
399
+ public function setAccountId( $accountId) {
400
+ $this->accountId = $accountId;
401
+ }
402
+ public function getAccountId() {
403
+ return $this->accountId;
404
+ }
405
+ public function setAdvertiserId(/* array(Google_string) */ $advertiserId) {
406
+ $this->assertIsArray($advertiserId, 'Google_string', __METHOD__);
407
+ $this->advertiserId = $advertiserId;
408
+ }
409
+ public function getAdvertiserId() {
410
+ return $this->advertiserId;
411
+ }
412
+ public function setAdvertiserName( $advertiserName) {
413
+ $this->advertiserName = $advertiserName;
414
+ }
415
+ public function getAdvertiserName() {
416
+ return $this->advertiserName;
417
+ }
418
+ public function setAgencyId( $agencyId) {
419
+ $this->agencyId = $agencyId;
420
+ }
421
+ public function getAgencyId() {
422
+ return $this->agencyId;
423
+ }
424
+ public function setAttribute(/* array(Google_int) */ $attribute) {
425
+ $this->assertIsArray($attribute, 'Google_int', __METHOD__);
426
+ $this->attribute = $attribute;
427
+ }
428
+ public function getAttribute() {
429
+ return $this->attribute;
430
+ }
431
+ public function setBuyerCreativeId( $buyerCreativeId) {
432
+ $this->buyerCreativeId = $buyerCreativeId;
433
+ }
434
+ public function getBuyerCreativeId() {
435
+ return $this->buyerCreativeId;
436
+ }
437
+ public function setClickThroughUrl(/* array(Google_string) */ $clickThroughUrl) {
438
+ $this->assertIsArray($clickThroughUrl, 'Google_string', __METHOD__);
439
+ $this->clickThroughUrl = $clickThroughUrl;
440
+ }
441
+ public function getClickThroughUrl() {
442
+ return $this->clickThroughUrl;
443
+ }
444
+ public function setDisapprovalReasons(/* array(Google_CreativeDisapprovalReasons) */ $disapprovalReasons) {
445
+ $this->assertIsArray($disapprovalReasons, 'Google_CreativeDisapprovalReasons', __METHOD__);
446
+ $this->disapprovalReasons = $disapprovalReasons;
447
+ }
448
+ public function getDisapprovalReasons() {
449
+ return $this->disapprovalReasons;
450
+ }
451
+ public function setHeight( $height) {
452
+ $this->height = $height;
453
+ }
454
+ public function getHeight() {
455
+ return $this->height;
456
+ }
457
+ public function setKind( $kind) {
458
+ $this->kind = $kind;
459
+ }
460
+ public function getKind() {
461
+ return $this->kind;
462
+ }
463
+ public function setProductCategories(/* array(Google_int) */ $productCategories) {
464
+ $this->assertIsArray($productCategories, 'Google_int', __METHOD__);
465
+ $this->productCategories = $productCategories;
466
+ }
467
+ public function getProductCategories() {
468
+ return $this->productCategories;
469
+ }
470
+ public function setSensitiveCategories(/* array(Google_int) */ $sensitiveCategories) {
471
+ $this->assertIsArray($sensitiveCategories, 'Google_int', __METHOD__);
472
+ $this->sensitiveCategories = $sensitiveCategories;
473
+ }
474
+ public function getSensitiveCategories() {
475
+ return $this->sensitiveCategories;
476
+ }
477
+ public function setStatus( $status) {
478
+ $this->status = $status;
479
+ }
480
+ public function getStatus() {
481
+ return $this->status;
482
+ }
483
+ public function setVendorType(/* array(Google_int) */ $vendorType) {
484
+ $this->assertIsArray($vendorType, 'Google_int', __METHOD__);
485
+ $this->vendorType = $vendorType;
486
+ }
487
+ public function getVendorType() {
488
+ return $this->vendorType;
489
+ }
490
+ public function setVideoURL( $videoURL) {
491
+ $this->videoURL = $videoURL;
492
+ }
493
+ public function getVideoURL() {
494
+ return $this->videoURL;
495
+ }
496
+ public function setWidth( $width) {
497
+ $this->width = $width;
498
+ }
499
+ public function getWidth() {
500
+ return $this->width;
501
+ }
502
+ }
503
+
504
+ class Google_CreativeDisapprovalReasons extends Google_Model {
505
+ public $details;
506
+ public $reason;
507
+ public function setDetails(/* array(Google_string) */ $details) {
508
+ $this->assertIsArray($details, 'Google_string', __METHOD__);
509
+ $this->details = $details;
510
+ }
511
+ public function getDetails() {
512
+ return $this->details;
513
+ }
514
+ public function setReason( $reason) {
515
+ $this->reason = $reason;
516
+ }
517
+ public function getReason() {
518
+ return $this->reason;
519
+ }
520
+ }
521
+
522
+ class Google_CreativesList extends Google_Model {
523
+ protected $__itemsType = 'Google_Creative';
524
+ protected $__itemsDataType = 'array';
525
+ public $items;
526
+ public $kind;
527
+ public $nextPageToken;
528
+ public function setItems(/* array(Google_Creative) */ $items) {
529
+ $this->assertIsArray($items, 'Google_Creative', __METHOD__);
530
+ $this->items = $items;
531
+ }
532
+ public function getItems() {
533
+ return $this->items;
534
+ }
535
+ public function setKind( $kind) {
536
+ $this->kind = $kind;
537
+ }
538
+ public function getKind() {
539
+ return $this->kind;
540
+ }
541
+ public function setNextPageToken( $nextPageToken) {
542
+ $this->nextPageToken = $nextPageToken;
543
+ }
544
+ public function getNextPageToken() {
545
+ return $this->nextPageToken;
546
+ }
547
+ }
548
+
549
+ class Google_DirectDeal extends Google_Model {
550
+ public $accountId;
551
+ public $advertiser;
552
+ public $currencyCode;
553
+ public $endTime;
554
+ public $fixedCpm;
555
+ public $id;
556
+ public $kind;
557
+ public $privateExchangeMinCpm;
558
+ public $sellerNetwork;
559
+ public $startTime;
560
+ public function setAccountId( $accountId) {
561
+ $this->accountId = $accountId;
562
+ }
563
+ public function getAccountId() {
564
+ return $this->accountId;
565
+ }
566
+ public function setAdvertiser( $advertiser) {
567
+ $this->advertiser = $advertiser;
568
+ }
569
+ public function getAdvertiser() {
570
+ return $this->advertiser;
571
+ }
572
+ public function setCurrencyCode( $currencyCode) {
573
+ $this->currencyCode = $currencyCode;
574
+ }
575
+ public function getCurrencyCode() {
576
+ return $this->currencyCode;
577
+ }
578
+ public function setEndTime( $endTime) {
579
+ $this->endTime = $endTime;
580
+ }
581
+ public function getEndTime() {
582
+ return $this->endTime;
583
+ }
584
+ public function setFixedCpm( $fixedCpm) {
585
+ $this->fixedCpm = $fixedCpm;
586
+ }
587
+ public function getFixedCpm() {
588
+ return $this->fixedCpm;
589
+ }
590
+ public function setId( $id) {
591
+ $this->id = $id;
592
+ }
593
+ public function getId() {
594
+ return $this->id;
595
+ }
596
+ public function setKind( $kind) {
597
+ $this->kind = $kind;
598
+ }
599
+ public function getKind() {
600
+ return $this->kind;
601
+ }
602
+ public function setPrivateExchangeMinCpm( $privateExchangeMinCpm) {
603
+ $this->privateExchangeMinCpm = $privateExchangeMinCpm;
604
+ }
605
+ public function getPrivateExchangeMinCpm() {
606
+ return $this->privateExchangeMinCpm;
607
+ }
608
+ public function setSellerNetwork( $sellerNetwork) {
609
+ $this->sellerNetwork = $sellerNetwork;
610
+ }
611
+ public function getSellerNetwork() {
612
+ return $this->sellerNetwork;
613
+ }
614
+ public function setStartTime( $startTime) {
615
+ $this->startTime = $startTime;
616
+ }
617
+ public function getStartTime() {
618
+ return $this->startTime;
619
+ }
620
+ }
621
+
622
+ class Google_DirectDealsList extends Google_Model {
623
+ protected $__directDealsType = 'Google_DirectDeal';
624
+ protected $__directDealsDataType = 'array';
625
+ public $directDeals;
626
+ public $kind;
627
+ public function setDirectDeals(/* array(Google_DirectDeal) */ $directDeals) {
628
+ $this->assertIsArray($directDeals, 'Google_DirectDeal', __METHOD__);
629
+ $this->directDeals = $directDeals;
630
+ }
631
+ public function getDirectDeals() {
632
+ return $this->directDeals;
633
+ }
634
+ public function setKind( $kind) {
635
+ $this->kind = $kind;
636
+ }
637
+ public function getKind() {
638
+ return $this->kind;
639
+ }
640
+ }
641
+
642
+ class Google_PerformanceReportList extends Google_Model {
643
+ public $kind;
644
+ protected $__performance_reportType = 'Google_PerformanceReportListPerformanceReport';
645
+ protected $__performance_reportDataType = 'array';
646
+ public $performance_report;
647
+ public function setKind( $kind) {
648
+ $this->kind = $kind;
649
+ }
650
+ public function getKind() {
651
+ return $this->kind;
652
+ }
653
+ public function setPerformance_report(/* array(Google_PerformanceReportListPerformanceReport) */ $performance_report) {
654
+ $this->assertIsArray($performance_report, 'Google_PerformanceReportListPerformanceReport', __METHOD__);
655
+ $this->performance_report = $performance_report;
656
+ }
657
+ public function getPerformance_report() {
658
+ return $this->performance_report;
659
+ }
660
+ }
661
+
662
+ class Google_PerformanceReportListPerformanceReport extends Google_Model {
663
+ public $kind;
664
+ public $latency50thPercentile;
665
+ public $latency85thPercentile;
666
+ public $latency95thPercentile;
667
+ public $region;
668
+ public $timestamp;
669
+ public function setKind( $kind) {
670
+ $this->kind = $kind;
671
+ }
672
+ public function getKind() {
673
+ return $this->kind;
674
+ }
675
+ public function setLatency50thPercentile( $latency50thPercentile) {
676
+ $this->latency50thPercentile = $latency50thPercentile;
677
+ }
678
+ public function getLatency50thPercentile() {
679
+ return $this->latency50thPercentile;
680
+ }
681
+ public function setLatency85thPercentile( $latency85thPercentile) {
682
+ $this->latency85thPercentile = $latency85thPercentile;
683
+ }
684
+ public function getLatency85thPercentile() {
685
+ return $this->latency85thPercentile;
686
+ }
687
+ public function setLatency95thPercentile( $latency95thPercentile) {
688
+ $this->latency95thPercentile = $latency95thPercentile;
689
+ }
690
+ public function getLatency95thPercentile() {
691
+ return $this->latency95thPercentile;
692
+ }
693
+ public function setRegion( $region) {
694
+ $this->region = $region;
695
+ }
696
+ public function getRegion() {
697
+ return $this->region;
698
+ }
699
+ public function setTimestamp( $timestamp) {
700
+ $this->timestamp = $timestamp;
701
+ }
702
+ public function getTimestamp() {
703
+ return $this->timestamp;
704
+ }
705
+ }
googleclient/contrib/Google_AdsensehostService.php ADDED
@@ -0,0 +1,1376 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /*
3
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
4
+ * use this file except in compliance with the License. You may obtain a copy of
5
+ * the License at
6
+ *
7
+ * http://www.apache.org/licenses/LICENSE-2.0
8
+ *
9
+ * Unless required by applicable law or agreed to in writing, software
10
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
11
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
12
+ * License for the specific language governing permissions and limitations under
13
+ * the License.
14
+ */
15
+
16
+
17
+ /**
18
+ * The "accounts" collection of methods.
19
+ * Typical usage is:
20
+ * <code>
21
+ * $adsensehostService = new Google_AdSenseHostService(...);
22
+ * $accounts = $adsensehostService->accounts;
23
+ * </code>
24
+ */
25
+ class Google_AccountsServiceResource extends Google_ServiceResource {
26
+
27
+ /**
28
+ * Get information about the selected associated AdSense account. (accounts.get)
29
+ *
30
+ * @param string $accountId Account to get information about.
31
+ * @param array $optParams Optional parameters.
32
+ * @return Google_Account
33
+ */
34
+ public function get($accountId, $optParams = array()) {
35
+ $params = array('accountId' => $accountId);
36
+ $params = array_merge($params, $optParams);
37
+ $data = $this->__call('get', array($params));
38
+ if ($this->useObjects()) {
39
+ return new Google_Account($data);
40
+ } else {
41
+ return $data;
42
+ }
43
+ }
44
+ /**
45
+ * List hosted accounts associated with this AdSense account by ad client id. (accounts.list)
46
+ *
47
+ * @param string $filterAdClientId Ad clients to list accounts for.
48
+ * @param array $optParams Optional parameters.
49
+ * @return Google_Accounts
50
+ */
51
+ public function listAccounts($filterAdClientId, $optParams = array()) {
52
+ $params = array('filterAdClientId' => $filterAdClientId);
53
+ $params = array_merge($params, $optParams);
54
+ $data = $this->__call('list', array($params));
55
+ if ($this->useObjects()) {
56
+ return new Google_Accounts($data);
57
+ } else {
58
+ return $data;
59
+ }
60
+ }
61
+ }
62
+
63
+ /**
64
+ * The "adclients" collection of methods.
65
+ * Typical usage is:
66
+ * <code>
67
+ * $adsensehostService = new Google_AdSenseHostService(...);
68
+ * $adclients = $adsensehostService->adclients;
69
+ * </code>
70
+ */
71
+ class Google_AccountsAdclientsServiceResource extends Google_ServiceResource {
72
+
73
+ /**
74
+ * Get information about one of the ad clients in the specified publisher's AdSense account.
75
+ * (adclients.get)
76
+ *
77
+ * @param string $accountId Account which contains the ad client.
78
+ * @param string $adClientId Ad client to get.
79
+ * @param array $optParams Optional parameters.
80
+ * @return Google_AdClient
81
+ */
82
+ public function get($accountId, $adClientId, $optParams = array()) {
83
+ $params = array('accountId' => $accountId, 'adClientId' => $adClientId);
84
+ $params = array_merge($params, $optParams);
85
+ $data = $this->__call('get', array($params));
86
+ if ($this->useObjects()) {
87
+ return new Google_AdClient($data);
88
+ } else {
89
+ return $data;
90
+ }
91
+ }
92
+ /**
93
+ * List all hosted ad clients in the specified hosted account. (adclients.list)
94
+ *
95
+ * @param string $accountId Account for which to list ad clients.
96
+ * @param array $optParams Optional parameters.
97
+ *
98
+ * @opt_param string maxResults The maximum number of ad clients to include in the response, used for paging.
99
+ * @opt_param string pageToken A continuation token, used to page through ad clients. To retrieve the next page, set this parameter to the value of "nextPageToken" from the previous response.
100
+ * @return Google_AdClients
101
+ */
102
+ public function listAccountsAdclients($accountId, $optParams = array()) {
103
+ $params = array('accountId' => $accountId);
104
+ $params = array_merge($params, $optParams);
105
+ $data = $this->__call('list', array($params));
106
+ if ($this->useObjects()) {
107
+ return new Google_AdClients($data);
108
+ } else {
109
+ return $data;
110
+ }
111
+ }
112
+ }
113
+ /**
114
+ * The "adunits" collection of methods.
115
+ * Typical usage is:
116
+ * <code>
117
+ * $adsensehostService = new Google_AdSenseHostService(...);
118
+ * $adunits = $adsensehostService->adunits;
119
+ * </code>
120
+ */
121
+ class Google_AccountsAdunitsServiceResource extends Google_ServiceResource {
122
+
123
+ /**
124
+ * Delete the specified ad unit from the specified publisher AdSense account. (adunits.delete)
125
+ *
126
+ * @param string $accountId Account which contains the ad unit.
127
+ * @param string $adClientId Ad client for which to get ad unit.
128
+ * @param string $adUnitId Ad unit to delete.
129
+ * @param array $optParams Optional parameters.
130
+ * @return Google_AdUnit
131
+ */
132
+ public function delete($accountId, $adClientId, $adUnitId, $optParams = array()) {
133
+ $params = array('accountId' => $accountId, 'adClientId' => $adClientId, 'adUnitId' => $adUnitId);
134
+ $params = array_merge($params, $optParams);
135
+ $data = $this->__call('delete', array($params));
136
+ if ($this->useObjects()) {
137
+ return new Google_AdUnit($data);
138
+ } else {
139
+ return $data;
140
+ }
141
+ }
142
+ /**
143
+ * Get the specified host ad unit in this AdSense account. (adunits.get)
144
+ *
145
+ * @param string $accountId Account which contains the ad unit.
146
+ * @param string $adClientId Ad client for which to get ad unit.
147
+ * @param string $adUnitId Ad unit to get.
148
+ * @param array $optParams Optional parameters.
149
+ * @return Google_AdUnit
150
+ */
151
+ public function get($accountId, $adClientId, $adUnitId, $optParams = array()) {
152
+ $params = array('accountId' => $accountId, 'adClientId' => $adClientId, 'adUnitId' => $adUnitId);
153
+ $params = array_merge($params, $optParams);
154
+ $data = $this->__call('get', array($params));
155
+ if ($this->useObjects()) {
156
+ return new Google_AdUnit($data);
157
+ } else {
158
+ return $data;
159
+ }
160
+ }
161
+ /**
162
+ * Get ad code for the specified ad unit, attaching the specified host custom channels.
163
+ * (adunits.getAdCode)
164
+ *
165
+ * @param string $accountId Account which contains the ad client.
166
+ * @param string $adClientId Ad client with contains the ad unit.
167
+ * @param string $adUnitId Ad unit to get the code for.
168
+ * @param array $optParams Optional parameters.
169
+ *
170
+ * @opt_param string hostCustomChannelId Host custom channel to attach to the ad code.
171
+ * @return Google_AdCode
172
+ */
173
+ public function getAdCode($accountId, $adClientId, $adUnitId, $optParams = array()) {
174
+ $params = array('accountId' => $accountId, 'adClientId' => $adClientId, 'adUnitId' => $adUnitId);
175
+ $params = array_merge($params, $optParams);
176
+ $data = $this->__call('getAdCode', array($params));
177
+ if ($this->useObjects()) {
178
+ return new Google_AdCode($data);
179
+ } else {
180
+ return $data;
181
+ }
182
+ }
183
+ /**
184
+ * Insert the supplied ad unit into the specified publisher AdSense account. (adunits.insert)
185
+ *
186
+ * @param string $accountId Account which will contain the ad unit.
187
+ * @param string $adClientId Ad client into which to insert the ad unit.
188
+ * @param Google_AdUnit $postBody
189
+ * @param array $optParams Optional parameters.
190
+ * @return Google_AdUnit
191
+ */
192
+ public function insert($accountId, $adClientId, Google_AdUnit $postBody, $optParams = array()) {
193
+ $params = array('accountId' => $accountId, 'adClientId' => $adClientId, 'postBody' => $postBody);
194
+ $params = array_merge($params, $optParams);
195
+ $data = $this->__call('insert', array($params));
196
+ if ($this->useObjects()) {
197
+ return new Google_AdUnit($data);
198
+ } else {
199
+ return $data;
200
+ }
201
+ }
202
+ /**
203
+ * List all ad units in the specified publisher's AdSense account. (adunits.list)
204
+ *
205
+ * @param string $accountId Account which contains the ad client.
206
+ * @param string $adClientId Ad client for which to list ad units.
207
+ * @param array $optParams Optional parameters.
208
+ *
209
+ * @opt_param bool includeInactive Whether to include inactive ad units. Default: true.
210
+ * @opt_param string maxResults The maximum number of ad units to include in the response, used for paging.
211
+ * @opt_param string pageToken A continuation token, used to page through ad units. To retrieve the next page, set this parameter to the value of "nextPageToken" from the previous response.
212
+ * @return Google_AdUnits
213
+ */
214
+ public function listAccountsAdunits($accountId, $adClientId, $optParams = array()) {
215
+ $params = array('accountId' => $accountId, 'adClientId' => $adClientId);
216
+ $params = array_merge($params, $optParams);
217
+ $data = $this->__call('list', array($params));
218
+ if ($this->useObjects()) {
219
+ return new Google_AdUnits($data);
220
+ } else {
221
+ return $data;
222
+ }
223
+ }
224
+ /**
225
+ * Update the supplied ad unit in the specified publisher AdSense account. This method supports
226
+ * patch semantics. (adunits.patch)
227
+ *
228
+ * @param string $accountId Account which contains the ad client.
229
+ * @param string $adClientId Ad client which contains the ad unit.
230
+ * @param string $adUnitId Ad unit to get.
231
+ * @param Google_AdUnit $postBody
232
+ * @param array $optParams Optional parameters.
233
+ * @return Google_AdUnit
234
+ */
235
+ public function patch($accountId, $adClientId, $adUnitId, Google_AdUnit $postBody, $optParams = array()) {
236
+ $params = array('accountId' => $accountId, 'adClientId' => $adClientId, 'adUnitId' => $adUnitId, 'postBody' => $postBody);
237
+ $params = array_merge($params, $optParams);
238
+ $data = $this->__call('patch', array($params));
239
+ if ($this->useObjects()) {
240
+ return new Google_AdUnit($data);
241
+ } else {
242
+ return $data;
243
+ }
244
+ }
245
+ /**
246
+ * Update the supplied ad unit in the specified publisher AdSense account. (adunits.update)
247
+ *
248
+ * @param string $accountId Account which contains the ad client.
249
+ * @param string $adClientId Ad client which contains the ad unit.
250
+ * @param Google_AdUnit $postBody
251
+ * @param array $optParams Optional parameters.
252
+ * @return Google_AdUnit
253
+ */
254
+ public function update($accountId, $adClientId, Google_AdUnit $postBody, $optParams = array()) {
255
+ $params = array('accountId' => $accountId, 'adClientId' => $adClientId, 'postBody' => $postBody);
256
+ $params = array_merge($params, $optParams);
257
+ $data = $this->__call('update', array($params));
258
+ if ($this->useObjects()) {
259
+ return new Google_AdUnit($data);
260
+ } else {
261
+ return $data;
262
+ }
263
+ }
264
+ }
265
+ /**
266
+ * The "reports" collection of methods.
267
+ * Typical usage is:
268
+ * <code>
269
+ * $adsensehostService = new Google_AdSenseHostService(...);
270
+ * $reports = $adsensehostService->reports;
271
+ * </code>
272
+ */
273
+ class Google_AccountsReportsServiceResource extends Google_ServiceResource {
274
+
275
+ /**
276
+ * Generate an AdSense report based on the report request sent in the query parameters. Returns the
277
+ * result as JSON; to retrieve output in CSV format specify "alt=csv" as a query parameter.
278
+ * (reports.generate)
279
+ *
280
+ * @param string $accountId Hosted account upon which to report.
281
+ * @param string $startDate Start of the date range to report on in "YYYY-MM-DD" format, inclusive.
282
+ * @param string $endDate End of the date range to report on in "YYYY-MM-DD" format, inclusive.
283
+ * @param array $optParams Optional parameters.
284
+ *
285
+ * @opt_param string dimension Dimensions to base the report on.
286
+ * @opt_param string filter Filters to be run on the report.
287
+ * @opt_param string locale Optional locale to use for translating report output to a local language. Defaults to "en_US" if not specified.
288
+ * @opt_param string maxResults The maximum number of rows of report data to return.
289
+ * @opt_param string metric Numeric columns to include in the report.
290
+ * @opt_param string sort The name of a dimension or metric to sort the resulting report on, optionally prefixed with "+" to sort ascending or "-" to sort descending. If no prefix is specified, the column is sorted ascending.
291
+ * @opt_param string startIndex Index of the first row of report data to return.
292
+ * @return Google_Report
293
+ */
294
+ public function generate($accountId, $startDate, $endDate, $optParams = array()) {
295
+ $params = array('accountId' => $accountId, 'startDate' => $startDate, 'endDate' => $endDate);
296
+ $params = array_merge($params, $optParams);
297
+ $data = $this->__call('generate', array($params));
298
+ if ($this->useObjects()) {
299
+ return new Google_Report($data);
300
+ } else {
301
+ return $data;
302
+ }
303
+ }
304
+ }
305
+
306
+ /**
307
+ * The "adclients" collection of methods.
308
+ * Typical usage is:
309
+ * <code>
310
+ * $adsensehostService = new Google_AdSenseHostService(...);
311
+ * $adclients = $adsensehostService->adclients;
312
+ * </code>
313
+ */
314
+ class Google_AdclientsServiceResource extends Google_ServiceResource {
315
+
316
+ /**
317
+ * Get information about one of the ad clients in the Host AdSense account. (adclients.get)
318
+ *
319
+ * @param string $adClientId Ad client to get.
320
+ * @param array $optParams Optional parameters.
321
+ * @return Google_AdClient
322
+ */
323
+ public function get($adClientId, $optParams = array()) {
324
+ $params = array('adClientId' => $adClientId);
325
+ $params = array_merge($params, $optParams);
326
+ $data = $this->__call('get', array($params));
327
+ if ($this->useObjects()) {
328
+ return new Google_AdClient($data);
329
+ } else {
330
+ return $data;
331
+ }
332
+ }
333
+ /**
334
+ * List all host ad clients in this AdSense account. (adclients.list)
335
+ *
336
+ * @param array $optParams Optional parameters.
337
+ *
338
+ * @opt_param string maxResults The maximum number of ad clients to include in the response, used for paging.
339
+ * @opt_param string pageToken A continuation token, used to page through ad clients. To retrieve the next page, set this parameter to the value of "nextPageToken" from the previous response.
340
+ * @return Google_AdClients
341
+ */
342
+ public function listAdclients($optParams = array()) {
343
+ $params = array();
344
+ $params = array_merge($params, $optParams);
345
+ $data = $this->__call('list', array($params));
346
+ if ($this->useObjects()) {
347
+ return new Google_AdClients($data);
348
+ } else {
349
+ return $data;
350
+ }
351
+ }
352
+ }
353
+
354
+ /**
355
+ * The "associationsessions" collection of methods.
356
+ * Typical usage is:
357
+ * <code>
358
+ * $adsensehostService = new Google_AdSenseHostService(...);
359
+ * $associationsessions = $adsensehostService->associationsessions;
360
+ * </code>
361
+ */
362
+ class Google_AssociationsessionsServiceResource extends Google_ServiceResource {
363
+
364
+ /**
365
+ * Create an association session for initiating an association with an AdSense user.
366
+ * (associationsessions.start)
367
+ *
368
+ * @param string $productCode Products to associate with the user.
369
+ * @param string $websiteUrl The URL of the user's hosted website.
370
+ * @param array $optParams Optional parameters.
371
+ *
372
+ * @opt_param string userLocale The preferred locale of the user.
373
+ * @opt_param string websiteLocale The locale of the user's hosted website.
374
+ * @return Google_AssociationSession
375
+ */
376
+ public function start($productCode, $websiteUrl, $optParams = array()) {
377
+ $params = array('productCode' => $productCode, 'websiteUrl' => $websiteUrl);
378
+ $params = array_merge($params, $optParams);
379
+ $data = $this->__call('start', array($params));
380
+ if ($this->useObjects()) {
381
+ return new Google_AssociationSession($data);
382
+ } else {
383
+ return $data;
384
+ }
385
+ }
386
+ /**
387
+ * Verify an association session after the association callback returns from AdSense signup.
388
+ * (associationsessions.verify)
389
+ *
390
+ * @param string $token The token returned to the association callback URL.
391
+ * @param array $optParams Optional parameters.
392
+ * @return Google_AssociationSession
393
+ */
394
+ public function verify($token, $optParams = array()) {
395
+ $params = array('token' => $token);
396
+ $params = array_merge($params, $optParams);
397
+ $data = $this->__call('verify', array($params));
398
+ if ($this->useObjects()) {
399
+ return new Google_AssociationSession($data);
400
+ } else {
401
+ return $data;
402
+ }
403
+ }
404
+ }
405
+
406
+ /**
407
+ * The "customchannels" collection of methods.
408
+ * Typical usage is:
409
+ * <code>
410
+ * $adsensehostService = new Google_AdSenseHostService(...);
411
+ * $customchannels = $adsensehostService->customchannels;
412
+ * </code>
413
+ */
414
+ class Google_CustomchannelsServiceResource extends Google_ServiceResource {
415
+
416
+ /**
417
+ * Delete a specific custom channel from the host AdSense account. (customchannels.delete)
418
+ *
419
+ * @param string $adClientId Ad client from which to delete the custom channel.
420
+ * @param string $customChannelId Custom channel to delete.
421
+ * @param array $optParams Optional parameters.
422
+ * @return Google_CustomChannel
423
+ */
424
+ public function delete($adClientId, $customChannelId, $optParams = array()) {
425
+ $params = array('adClientId' => $adClientId, 'customChannelId' => $customChannelId);
426
+ $params = array_merge($params, $optParams);
427
+ $data = $this->__call('delete', array($params));
428
+ if ($this->useObjects()) {
429
+ return new Google_CustomChannel($data);
430
+ } else {
431
+ return $data;
432
+ }
433
+ }
434
+ /**
435
+ * Get a specific custom channel from the host AdSense account. (customchannels.get)
436
+ *
437
+ * @param string $adClientId Ad client from which to get the custom channel.
438
+ * @param string $customChannelId Custom channel to get.
439
+ * @param array $optParams Optional parameters.
440
+ * @return Google_CustomChannel
441
+ */
442
+ public function get($adClientId, $customChannelId, $optParams = array()) {
443
+ $params = array('adClientId' => $adClientId, 'customChannelId' => $customChannelId);
444
+ $params = array_merge($params, $optParams);
445
+ $data = $this->__call('get', array($params));
446
+ if ($this->useObjects()) {
447
+ return new Google_CustomChannel($data);
448
+ } else {
449
+ return $data;
450
+ }
451
+ }
452
+ /**
453
+ * Add a new custom channel to the host AdSense account. (customchannels.insert)
454
+ *
455
+ * @param string $adClientId Ad client to which the new custom channel will be added.
456
+ * @param Google_CustomChannel $postBody
457
+ * @param array $optParams Optional parameters.
458
+ * @return Google_CustomChannel
459
+ */
460
+ public function insert($adClientId, Google_CustomChannel $postBody, $optParams = array()) {
461
+ $params = array('adClientId' => $adClientId, 'postBody' => $postBody);
462
+ $params = array_merge($params, $optParams);
463
+ $data = $this->__call('insert', array($params));
464
+ if ($this->useObjects()) {
465
+ return new Google_CustomChannel($data);
466
+ } else {
467
+ return $data;
468
+ }
469
+ }
470
+ /**
471
+ * List all host custom channels in this AdSense account. (customchannels.list)
472
+ *
473
+ * @param string $adClientId Ad client for which to list custom channels.
474
+ * @param array $optParams Optional parameters.
475
+ *
476
+ * @opt_param string maxResults The maximum number of custom channels to include in the response, used for paging.
477
+ * @opt_param string pageToken A continuation token, used to page through custom channels. To retrieve the next page, set this parameter to the value of "nextPageToken" from the previous response.
478
+ * @return Google_CustomChannels
479
+ */
480
+ public function listCustomchannels($adClientId, $optParams = array()) {
481
+ $params = array('adClientId' => $adClientId);
482
+ $params = array_merge($params, $optParams);
483
+ $data = $this->__call('list', array($params));
484
+ if ($this->useObjects()) {
485
+ return new Google_CustomChannels($data);
486
+ } else {
487
+ return $data;
488
+ }
489
+ }
490
+ /**
491
+ * Update a custom channel in the host AdSense account. This method supports patch semantics.
492
+ * (customchannels.patch)
493
+ *
494
+ * @param string $adClientId Ad client in which the custom channel will be updated.
495
+ * @param string $customChannelId Custom channel to get.
496
+ * @param Google_CustomChannel $postBody
497
+ * @param array $optParams Optional parameters.
498
+ * @return Google_CustomChannel
499
+ */
500
+ public function patch($adClientId, $customChannelId, Google_CustomChannel $postBody, $optParams = array()) {
501
+ $params = array('adClientId' => $adClientId, 'customChannelId' => $customChannelId, 'postBody' => $postBody);
502
+ $params = array_merge($params, $optParams);
503
+ $data = $this->__call('patch', array($params));
504
+ if ($this->useObjects()) {
505
+ return new Google_CustomChannel($data);
506
+ } else {
507
+ return $data;
508
+ }
509
+ }
510
+ /**
511
+ * Update a custom channel in the host AdSense account. (customchannels.update)
512
+ *
513
+ * @param string $adClientId Ad client in which the custom channel will be updated.
514
+ * @param Google_CustomChannel $postBody
515
+ * @param array $optParams Optional parameters.
516
+ * @return Google_CustomChannel
517
+ */
518
+ public function update($adClientId, Google_CustomChannel $postBody, $optParams = array()) {
519
+ $params = array('adClientId' => $adClientId, 'postBody' => $postBody);
520
+ $params = array_merge($params, $optParams);
521
+ $data = $this->__call('update', array($params));
522
+ if ($this->useObjects()) {
523
+ return new Google_CustomChannel($data);
524
+ } else {
525
+ return $data;
526
+ }
527
+ }
528
+ }
529
+
530
+ /**
531
+ * The "reports" collection of methods.
532
+ * Typical usage is:
533
+ * <code>
534
+ * $adsensehostService = new Google_AdSenseHostService(...);
535
+ * $reports = $adsensehostService->reports;
536
+ * </code>
537
+ */
538
+ class Google_ReportsServiceResource extends Google_ServiceResource {
539
+
540
+ /**
541
+ * Generate an AdSense report based on the report request sent in the query parameters. Returns the
542
+ * result as JSON; to retrieve output in CSV format specify "alt=csv" as a query parameter.
543
+ * (reports.generate)
544
+ *
545
+ * @param string $startDate Start of the date range to report on in "YYYY-MM-DD" format, inclusive.
546
+ * @param string $endDate End of the date range to report on in "YYYY-MM-DD" format, inclusive.
547
+ * @param array $optParams Optional parameters.
548
+ *
549
+ * @opt_param string dimension Dimensions to base the report on.
550
+ * @opt_param string filter Filters to be run on the report.
551
+ * @opt_param string locale Optional locale to use for translating report output to a local language. Defaults to "en_US" if not specified.
552
+ * @opt_param string maxResults The maximum number of rows of report data to return.
553
+ * @opt_param string metric Numeric columns to include in the report.
554
+ * @opt_param string sort The name of a dimension or metric to sort the resulting report on, optionally prefixed with "+" to sort ascending or "-" to sort descending. If no prefix is specified, the column is sorted ascending.
555
+ * @opt_param string startIndex Index of the first row of report data to return.
556
+ * @return Google_Report
557
+ */
558
+ public function generate($startDate, $endDate, $optParams = array()) {
559
+ $params = array('startDate' => $startDate, 'endDate' => $endDate);
560
+ $params = array_merge($params, $optParams);
561
+ $data = $this->__call('generate', array($params));
562
+ if ($this->useObjects()) {
563
+ return new Google_Report($data);
564
+ } else {
565
+ return $data;
566
+ }
567
+ }
568
+ }
569
+
570
+ /**
571
+ * The "urlchannels" collection of methods.
572
+ * Typical usage is:
573
+ * <code>
574
+ * $adsensehostService = new Google_AdSenseHostService(...);
575
+ * $urlchannels = $adsensehostService->urlchannels;
576
+ * </code>
577
+ */
578
+ class Google_UrlchannelsServiceResource extends Google_ServiceResource {
579
+
580
+ /**
581
+ * Delete a URL channel from the host AdSense account. (urlchannels.delete)
582
+ *
583
+ * @param string $adClientId Ad client from which to delete the URL channel.
584
+ * @param string $urlChannelId URL channel to delete.
585
+ * @param array $optParams Optional parameters.
586
+ * @return Google_UrlChannel
587
+ */
588
+ public function delete($adClientId, $urlChannelId, $optParams = array()) {
589
+ $params = array('adClientId' => $adClientId, 'urlChannelId' => $urlChannelId);
590
+ $params = array_merge($params, $optParams);
591
+ $data = $this->__call('delete', array($params));
592
+ if ($this->useObjects()) {
593
+ return new Google_UrlChannel($data);
594
+ } else {
595
+ return $data;
596
+ }
597
+ }
598
+ /**
599
+ * Add a new URL channel to the host AdSense account. (urlchannels.insert)
600
+ *
601
+ * @param string $adClientId Ad client to which the new URL channel will be added.
602
+ * @param Google_UrlChannel $postBody
603
+ * @param array $optParams Optional parameters.
604
+ * @return Google_UrlChannel
605
+ */
606
+ public function insert($adClientId, Google_UrlChannel $postBody, $optParams = array()) {
607
+ $params = array('adClientId' => $adClientId, 'postBody' => $postBody);
608
+ $params = array_merge($params, $optParams);
609
+ $data = $this->__call('insert', array($params));
610
+ if ($this->useObjects()) {
611
+ return new Google_UrlChannel($data);
612
+ } else {
613
+ return $data;
614
+ }
615
+ }
616
+ /**
617
+ * List all host URL channels in the host AdSense account. (urlchannels.list)
618
+ *
619
+ * @param string $adClientId Ad client for which to list URL channels.
620
+ * @param array $optParams Optional parameters.
621
+ *
622
+ * @opt_param string maxResults The maximum number of URL channels to include in the response, used for paging.
623
+ * @opt_param string pageToken A continuation token, used to page through URL channels. To retrieve the next page, set this parameter to the value of "nextPageToken" from the previous response.
624
+ * @return Google_UrlChannels
625
+ */
626
+ public function listUrlchannels($adClientId, $optParams = array()) {
627
+ $params = array('adClientId' => $adClientId);
628
+ $params = array_merge($params, $optParams);
629
+ $data = $this->__call('list', array($params));
630
+ if ($this->useObjects()) {
631
+ return new Google_UrlChannels($data);
632
+ } else {
633
+ return $data;
634
+ }
635
+ }
636
+ }
637
+
638
+ /**
639
+ * Service definition for Google_AdSenseHost (v4.1).
640
+ *
641
+ * <p>
642
+ * Gives AdSense Hosts access to report generation, ad code generation, and publisher management capabilities.
643
+ * </p>
644
+ *
645
+ * <p>
646
+ * For more information about this service, see the
647
+ * <a href="https://developers.google.com/adsense/host/" target="_blank">API Documentation</a>
648
+ * </p>
649
+ *
650
+ * @author Google, Inc.
651
+ */
652
+ class Google_AdSenseHostService extends Google_Service {
653
+ public $accounts;
654
+ public $accounts_adclients;
655
+ public $accounts_adunits;
656
+ public $accounts_reports;
657
+ public $adclients;
658
+ public $associationsessions;
659
+ public $customchannels;
660
+ public $reports;
661
+ public $urlchannels;
662
+ /**
663
+ * Constructs the internal representation of the AdSenseHost service.
664
+ *
665
+ * @param Google_Client $client
666
+ */
667
+ public function __construct(Google_Client $client) {
668
+ $this->servicePath = 'adsensehost/v4.1/';
669
+ $this->version = 'v4.1';
670
+ $this->serviceName = 'adsensehost';
671
+
672
+ $client->addService($this->serviceName, $this->version);
673
+ $this->accounts = new Google_AccountsServiceResource($this, $this->serviceName, 'accounts', json_decode('{"methods": {"get": {"id": "adsensehost.accounts.get", "path": "accounts/{accountId}", "httpMethod": "GET", "parameters": {"accountId": {"type": "string", "required": true, "location": "path"}}, "response": {"$ref": "Account"}, "scopes": ["https://www.googleapis.com/auth/adsensehost"]}, "list": {"id": "adsensehost.accounts.list", "path": "accounts", "httpMethod": "GET", "parameters": {"filterAdClientId": {"type": "string", "required": true, "repeated": true, "location": "query"}}, "response": {"$ref": "Accounts"}, "scopes": ["https://www.googleapis.com/auth/adsensehost"]}}}', true));
674
+ $this->accounts_adclients = new Google_AccountsAdclientsServiceResource($this, $this->serviceName, 'adclients', json_decode('{"methods": {"get": {"id": "adsensehost.accounts.adclients.get", "path": "accounts/{accountId}/adclients/{adClientId}", "httpMethod": "GET", "parameters": {"accountId": {"type": "string", "required": true, "location": "path"}, "adClientId": {"type": "string", "required": true, "location": "path"}}, "response": {"$ref": "AdClient"}, "scopes": ["https://www.googleapis.com/auth/adsensehost"]}, "list": {"id": "adsensehost.accounts.adclients.list", "path": "accounts/{accountId}/adclients", "httpMethod": "GET", "parameters": {"accountId": {"type": "string", "required": true, "location": "path"}, "maxResults": {"type": "integer", "format": "uint32", "minimum": "0", "maximum": "10000", "location": "query"}, "pageToken": {"type": "string", "location": "query"}}, "response": {"$ref": "AdClients"}, "scopes": ["https://www.googleapis.com/auth/adsensehost"]}}}', true));
675
+ $this->accounts_adunits = new Google_AccountsAdunitsServiceResource($this, $this->serviceName, 'adunits', json_decode('{"methods": {"delete": {"id": "adsensehost.accounts.adunits.delete", "path": "accounts/{accountId}/adclients/{adClientId}/adunits/{adUnitId}", "httpMethod": "DELETE", "parameters": {"accountId": {"type": "string", "required": true, "location": "path"}, "adClientId": {"type": "string", "required": true, "location": "path"}, "adUnitId": {"type": "string", "required": true, "location": "path"}}, "response": {"$ref": "AdUnit"}, "scopes": ["https://www.googleapis.com/auth/adsensehost"]}, "get": {"id": "adsensehost.accounts.adunits.get", "path": "accounts/{accountId}/adclients/{adClientId}/adunits/{adUnitId}", "httpMethod": "GET", "parameters": {"accountId": {"type": "string", "required": true, "location": "path"}, "adClientId": {"type": "string", "required": true, "location": "path"}, "adUnitId": {"type": "string", "required": true, "location": "path"}}, "response": {"$ref": "AdUnit"}, "scopes": ["https://www.googleapis.com/auth/adsensehost"]}, "getAdCode": {"id": "adsensehost.accounts.adunits.getAdCode", "path": "accounts/{accountId}/adclients/{adClientId}/adunits/{adUnitId}/adcode", "httpMethod": "GET", "parameters": {"accountId": {"type": "string", "required": true, "location": "path"}, "adClientId": {"type": "string", "required": true, "location": "path"}, "adUnitId": {"type": "string", "required": true, "location": "path"}, "hostCustomChannelId": {"type": "string", "repeated": true, "location": "query"}}, "response": {"$ref": "AdCode"}, "scopes": ["https://www.googleapis.com/auth/adsensehost"]}, "insert": {"id": "adsensehost.accounts.adunits.insert", "path": "accounts/{accountId}/adclients/{adClientId}/adunits", "httpMethod": "POST", "parameters": {"accountId": {"type": "string", "required": true, "location": "path"}, "adClientId": {"type": "string", "required": true, "location": "path"}}, "request": {"$ref": "AdUnit"}, "response": {"$ref": "AdUnit"}, "scopes": ["https://www.googleapis.com/auth/adsensehost"]}, "list": {"id": "adsensehost.accounts.adunits.list", "path": "accounts/{accountId}/adclients/{adClientId}/adunits", "httpMethod": "GET", "parameters": {"accountId": {"type": "string", "required": true, "location": "path"}, "adClientId": {"type": "string", "required": true, "location": "path"}, "includeInactive": {"type": "boolean", "location": "query"}, "maxResults": {"type": "integer", "format": "uint32", "minimum": "0", "maximum": "10000", "location": "query"}, "pageToken": {"type": "string", "location": "query"}}, "response": {"$ref": "AdUnits"}, "scopes": ["https://www.googleapis.com/auth/adsensehost"]}, "patch": {"id": "adsensehost.accounts.adunits.patch", "path": "accounts/{accountId}/adclients/{adClientId}/adunits", "httpMethod": "PATCH", "parameters": {"accountId": {"type": "string", "required": true, "location": "path"}, "adClientId": {"type": "string", "required": true, "location": "path"}, "adUnitId": {"type": "string", "required": true, "location": "query"}}, "request": {"$ref": "AdUnit"}, "response": {"$ref": "AdUnit"}, "scopes": ["https://www.googleapis.com/auth/adsensehost"]}, "update": {"id": "adsensehost.accounts.adunits.update", "path": "accounts/{accountId}/adclients/{adClientId}/adunits", "httpMethod": "PUT", "parameters": {"accountId": {"type": "string", "required": true, "location": "path"}, "adClientId": {"type": "string", "required": true, "location": "path"}}, "request": {"$ref": "AdUnit"}, "response": {"$ref": "AdUnit"}, "scopes": ["https://www.googleapis.com/auth/adsensehost"]}}}', true));
676
+ $this->accounts_reports = new Google_AccountsReportsServiceResource($this, $this->serviceName, 'reports', json_decode('{"methods": {"generate": {"id": "adsensehost.accounts.reports.generate", "path": "accounts/{accountId}/reports", "httpMethod": "GET", "parameters": {"accountId": {"type": "string", "required": true, "location": "path"}, "dimension": {"type": "string", "repeated": true, "location": "query"}, "endDate": {"type": "string", "required": true, "location": "query"}, "filter": {"type": "string", "repeated": true, "location": "query"}, "locale": {"type": "string", "location": "query"}, "maxResults": {"type": "integer", "format": "uint32", "minimum": "0", "maximum": "50000", "location": "query"}, "metric": {"type": "string", "repeated": true, "location": "query"}, "sort": {"type": "string", "repeated": true, "location": "query"}, "startDate": {"type": "string", "required": true, "location": "query"}, "startIndex": {"type": "integer", "format": "uint32", "minimum": "0", "maximum": "5000", "location": "query"}}, "response": {"$ref": "Report"}, "scopes": ["https://www.googleapis.com/auth/adsensehost"]}}}', true));
677
+ $this->adclients = new Google_AdclientsServiceResource($this, $this->serviceName, 'adclients', json_decode('{"methods": {"get": {"id": "adsensehost.adclients.get", "path": "adclients/{adClientId}", "httpMethod": "GET", "parameters": {"adClientId": {"type": "string", "required": true, "location": "path"}}, "response": {"$ref": "AdClient"}, "scopes": ["https://www.googleapis.com/auth/adsensehost"]}, "list": {"id": "adsensehost.adclients.list", "path": "adclients", "httpMethod": "GET", "parameters": {"maxResults": {"type": "integer", "format": "uint32", "minimum": "0", "maximum": "10000", "location": "query"}, "pageToken": {"type": "string", "location": "query"}}, "response": {"$ref": "AdClients"}, "scopes": ["https://www.googleapis.com/auth/adsensehost"]}}}', true));
678
+ $this->associationsessions = new Google_AssociationsessionsServiceResource($this, $this->serviceName, 'associationsessions', json_decode('{"methods": {"start": {"id": "adsensehost.associationsessions.start", "path": "associationsessions/start", "httpMethod": "GET", "parameters": {"productCode": {"type": "string", "required": true, "enum": ["AFC", "AFG", "AFMC", "AFS", "AFV"], "repeated": true, "location": "query"}, "userLocale": {"type": "string", "location": "query"}, "websiteLocale": {"type": "string", "location": "query"}, "websiteUrl": {"type": "string", "required": true, "location": "query"}}, "response": {"$ref": "AssociationSession"}, "scopes": ["https://www.googleapis.com/auth/adsensehost"]}, "verify": {"id": "adsensehost.associationsessions.verify", "path": "associationsessions/verify", "httpMethod": "GET", "parameters": {"token": {"type": "string", "required": true, "location": "query"}}, "response": {"$ref": "AssociationSession"}, "scopes": ["https://www.googleapis.com/auth/adsensehost"]}}}', true));
679
+ $this->customchannels = new Google_CustomchannelsServiceResource($this, $this->serviceName, 'customchannels', json_decode('{"methods": {"delete": {"id": "adsensehost.customchannels.delete", "path": "adclients/{adClientId}/customchannels/{customChannelId}", "httpMethod": "DELETE", "parameters": {"adClientId": {"type": "string", "required": true, "location": "path"}, "customChannelId": {"type": "string", "required": true, "location": "path"}}, "response": {"$ref": "CustomChannel"}, "scopes": ["https://www.googleapis.com/auth/adsensehost"]}, "get": {"id": "adsensehost.customchannels.get", "path": "adclients/{adClientId}/customchannels/{customChannelId}", "httpMethod": "GET", "parameters": {"adClientId": {"type": "string", "required": true, "location": "path"}, "customChannelId": {"type": "string", "required": true, "location": "path"}}, "response": {"$ref": "CustomChannel"}, "scopes": ["https://www.googleapis.com/auth/adsensehost"]}, "insert": {"id": "adsensehost.customchannels.insert", "path": "adclients/{adClientId}/customchannels", "httpMethod": "POST", "parameters": {"adClientId": {"type": "string", "required": true, "location": "path"}}, "request": {"$ref": "CustomChannel"}, "response": {"$ref": "CustomChannel"}, "scopes": ["https://www.googleapis.com/auth/adsensehost"]}, "list": {"id": "adsensehost.customchannels.list", "path": "adclients/{adClientId}/customchannels", "httpMethod": "GET", "parameters": {"adClientId": {"type": "string", "required": true, "location": "path"}, "maxResults": {"type": "integer", "format": "uint32", "minimum": "0", "maximum": "10000", "location": "query"}, "pageToken": {"type": "string", "location": "query"}}, "response": {"$ref": "CustomChannels"}, "scopes": ["https://www.googleapis.com/auth/adsensehost"]}, "patch": {"id": "adsensehost.customchannels.patch", "path": "adclients/{adClientId}/customchannels", "httpMethod": "PATCH", "parameters": {"adClientId": {"type": "string", "required": true, "location": "path"}, "customChannelId": {"type": "string", "required": true, "location": "query"}}, "request": {"$ref": "CustomChannel"}, "response": {"$ref": "CustomChannel"}, "scopes": ["https://www.googleapis.com/auth/adsensehost"]}, "update": {"id": "adsensehost.customchannels.update", "path": "adclients/{adClientId}/customchannels", "httpMethod": "PUT", "parameters": {"adClientId": {"type": "string", "required": true, "location": "path"}}, "request": {"$ref": "CustomChannel"}, "response": {"$ref": "CustomChannel"}, "scopes": ["https://www.googleapis.com/auth/adsensehost"]}}}', true));
680
+ $this->reports = new Google_ReportsServiceResource($this, $this->serviceName, 'reports', json_decode('{"methods": {"generate": {"id": "adsensehost.reports.generate", "path": "reports", "httpMethod": "GET", "parameters": {"dimension": {"type": "string", "repeated": true, "location": "query"}, "endDate": {"type": "string", "required": true, "location": "query"}, "filter": {"type": "string", "repeated": true, "location": "query"}, "locale": {"type": "string", "location": "query"}, "maxResults": {"type": "integer", "format": "uint32", "minimum": "0", "maximum": "50000", "location": "query"}, "metric": {"type": "string", "repeated": true, "location": "query"}, "sort": {"type": "string", "repeated": true, "location": "query"}, "startDate": {"type": "string", "required": true, "location": "query"}, "startIndex": {"type": "integer", "format": "uint32", "minimum": "0", "maximum": "5000", "location": "query"}}, "response": {"$ref": "Report"}, "scopes": ["https://www.googleapis.com/auth/adsensehost"]}}}', true));
681
+ $this->urlchannels = new Google_UrlchannelsServiceResource($this, $this->serviceName, 'urlchannels', json_decode('{"methods": {"delete": {"id": "adsensehost.urlchannels.delete", "path": "adclients/{adClientId}/urlchannels/{urlChannelId}", "httpMethod": "DELETE", "parameters": {"adClientId": {"type": "string", "required": true, "location": "path"}, "urlChannelId": {"type": "string", "required": true, "location": "path"}}, "response": {"$ref": "UrlChannel"}, "scopes": ["https://www.googleapis.com/auth/adsensehost"]}, "insert": {"id": "adsensehost.urlchannels.insert", "path": "adclients/{adClientId}/urlchannels", "httpMethod": "POST", "parameters": {"adClientId": {"type": "string", "required": true, "location": "path"}}, "request": {"$ref": "UrlChannel"}, "response": {"$ref": "UrlChannel"}, "scopes": ["https://www.googleapis.com/auth/adsensehost"]}, "list": {"id": "adsensehost.urlchannels.list", "path": "adclients/{adClientId}/urlchannels", "httpMethod": "GET", "parameters": {"adClientId": {"type": "string", "required": true, "location": "path"}, "maxResults": {"type": "integer", "format": "uint32", "minimum": "0", "maximum": "10000", "location": "query"}, "pageToken": {"type": "string", "location": "query"}}, "response": {"$ref": "UrlChannels"}, "scopes": ["https://www.googleapis.com/auth/adsensehost"]}}}', true));
682
+
683
+ }
684
+ }
685
+
686
+
687
+
688
+ class Google_Account extends Google_Model {
689
+ public $id;
690
+ public $kind;
691
+ public $name;
692
+ public $status;
693
+ public function setId( $id) {
694
+ $this->id = $id;
695
+ }
696
+ public function getId() {
697
+ return $this->id;
698
+ }
699
+ public function setKind( $kind) {
700
+ $this->kind = $kind;
701
+ }
702
+ public function getKind() {
703
+ return $this->kind;
704
+ }
705
+ public function setName( $name) {
706
+ $this->name = $name;
707
+ }
708
+ public function getName() {
709
+ return $this->name;
710
+ }
711
+ public function setStatus( $status) {
712
+ $this->status = $status;
713
+ }
714
+ public function getStatus() {
715
+ return $this->status;
716
+ }
717
+ }
718
+
719
+ class Google_Accounts extends Google_Model {
720
+ public $etag;
721
+ protected $__itemsType = 'Google_Account';
722
+ protected $__itemsDataType = 'array';
723
+ public $items;
724
+ public $kind;
725
+ public function setEtag( $etag) {
726
+ $this->etag = $etag;
727
+ }
728
+ public function getEtag() {
729
+ return $this->etag;
730
+ }
731
+ public function setItems(/* array(Google_Account) */ $items) {
732
+ $this->assertIsArray($items, 'Google_Account', __METHOD__);
733
+ $this->items = $items;
734
+ }
735
+ public function getItems() {
736
+ return $this->items;
737
+ }
738
+ public function setKind( $kind) {
739
+ $this->kind = $kind;
740
+ }
741
+ public function getKind() {
742
+ return $this->kind;
743
+ }
744
+ }
745
+
746
+ class Google_AdClient extends Google_Model {
747
+ public $arcOptIn;
748
+ public $id;
749
+ public $kind;
750
+ public $productCode;
751
+ public $supportsReporting;
752
+ public function setArcOptIn( $arcOptIn) {
753
+ $this->arcOptIn = $arcOptIn;
754
+ }
755
+ public function getArcOptIn() {
756
+ return $this->arcOptIn;
757
+ }
758
+ public function setId( $id) {
759
+ $this->id = $id;
760
+ }
761
+ public function getId() {
762
+ return $this->id;
763
+ }
764
+ public function setKind( $kind) {
765
+ $this->kind = $kind;
766
+ }
767
+ public function getKind() {
768
+ return $this->kind;
769
+ }
770
+ public function setProductCode( $productCode) {
771
+ $this->productCode = $productCode;
772
+ }
773
+ public function getProductCode() {
774
+ return $this->productCode;
775
+ }
776
+ public function setSupportsReporting( $supportsReporting) {
777
+ $this->supportsReporting = $supportsReporting;
778
+ }
779
+ public function getSupportsReporting() {
780
+ return $this->supportsReporting;
781
+ }
782
+ }
783
+
784
+ class Google_AdClients extends Google_Model {
785
+ public $etag;
786
+ protected $__itemsType = 'Google_AdClient';
787
+ protected $__itemsDataType = 'array';
788
+ public $items;
789
+ public $kind;
790
+ public $nextPageToken;
791
+ public function setEtag( $etag) {
792
+ $this->etag = $etag;
793
+ }
794
+ public function getEtag() {
795
+ return $this->etag;
796
+ }
797
+ public function setItems(/* array(Google_AdClient) */ $items) {
798
+ $this->assertIsArray($items, 'Google_AdClient', __METHOD__);
799
+ $this->items = $items;
800
+ }
801
+ public function getItems() {
802
+ return $this->items;
803
+ }
804
+ public function setKind( $kind) {
805
+ $this->kind = $kind;
806
+ }
807
+ public function getKind() {
808
+ return $this->kind;
809
+ }
810
+ public function setNextPageToken( $nextPageToken) {
811
+ $this->nextPageToken = $nextPageToken;
812
+ }
813
+ public function getNextPageToken() {
814
+ return $this->nextPageToken;
815
+ }
816
+ }
817
+
818
+ class Google_AdCode extends Google_Model {
819
+ public $adCode;
820
+ public $kind;
821
+ public function setAdCode( $adCode) {
822
+ $this->adCode = $adCode;
823
+ }
824
+ public function getAdCode() {
825
+ return $this->adCode;
826
+ }
827
+ public function setKind( $kind) {
828
+ $this->kind = $kind;
829
+ }
830
+ public function getKind() {
831
+ return $this->kind;
832
+ }
833
+ }
834
+
835
+ class Google_AdStyle extends Google_Model {
836
+ protected $__colorsType = 'Google_AdStyleColors';
837
+ protected $__colorsDataType = '';
838
+ public $colors;
839
+ public $corners;
840
+ protected $__fontType = 'Google_AdStyleFont';
841
+ protected $__fontDataType = '';
842
+ public $font;
843
+ public $kind;
844
+ public function setColors(Google_AdStyleColors $colors) {
845
+ $this->colors = $colors;
846
+ }
847
+ public function getColors() {
848
+ return $this->colors;
849
+ }
850
+ public function setCorners( $corners) {
851
+ $this->corners = $corners;
852
+ }
853
+ public function getCorners() {
854
+ return $this->corners;
855
+ }
856
+ public function setFont(Google_AdStyleFont $font) {
857
+ $this->font = $font;
858
+ }
859
+ public function getFont() {
860
+ return $this->font;
861
+ }
862
+ public function setKind( $kind) {
863
+ $this->kind = $kind;
864
+ }
865
+ public function getKind() {
866
+ return $this->kind;
867
+ }
868
+ }
869
+
870
+ class Google_AdStyleColors extends Google_Model {
871
+ public $background;
872
+ public $border;
873
+ public $text;
874
+ public $title;
875
+ public $url;
876
+ public function setBackground( $background) {
877
+ $this->background = $background;
878
+ }
879
+ public function getBackground() {
880
+ return $this->background;
881
+ }
882
+ public function setBorder( $border) {
883
+ $this->border = $border;
884
+ }
885
+ public function getBorder() {
886
+ return $this->border;
887
+ }
888
+ public function setText( $text) {
889
+ $this->text = $text;
890
+ }
891
+ public function getText() {
892
+ return $this->text;
893
+ }
894
+ public function setTitle( $title) {
895
+ $this->title = $title;
896
+ }
897
+ public function getTitle() {
898
+ return $this->title;
899
+ }
900
+ public function setUrl( $url) {
901
+ $this->url = $url;
902
+ }
903
+ public function getUrl() {
904
+ return $this->url;
905
+ }
906
+ }
907
+
908
+ class Google_AdStyleFont extends Google_Model {
909
+ public $family;
910
+ public $size;
911
+ public function setFamily( $family) {
912
+ $this->family = $family;
913
+ }
914
+ public function getFamily() {
915
+ return $this->family;
916
+ }
917
+ public function setSize( $size) {
918
+ $this->size = $size;
919
+ }
920
+ public function getSize() {
921
+ return $this->size;
922
+ }
923
+ }
924
+
925
+ class Google_AdUnit extends Google_Model {
926
+ public $code;
927
+ protected $__contentAdsSettingsType = 'Google_AdUnitContentAdsSettings';
928
+ protected $__contentAdsSettingsDataType = '';
929
+ public $contentAdsSettings;
930
+ protected $__customStyleType = 'Google_AdStyle';
931
+ protected $__customStyleDataType = '';
932
+ public $customStyle;
933
+ public $id;
934
+ public $kind;
935
+ protected $__mobileContentAdsSettingsType = 'Google_AdUnitMobileContentAdsSettings';
936
+ protected $__mobileContentAdsSettingsDataType = '';
937
+ public $mobileContentAdsSettings;
938
+ public $name;
939
+ public $status;
940
+ public function setCode( $code) {
941
+ $this->code = $code;
942
+ }
943
+ public function getCode() {
944
+ return $this->code;
945
+ }
946
+ public function setContentAdsSettings(Google_AdUnitContentAdsSettings $contentAdsSettings) {
947
+ $this->contentAdsSettings = $contentAdsSettings;
948
+ }
949
+ public function getContentAdsSettings() {
950
+ return $this->contentAdsSettings;
951
+ }
952
+ public function setCustomStyle(Google_AdStyle $customStyle) {
953
+ $this->customStyle = $customStyle;
954
+ }
955
+ public function getCustomStyle() {
956
+ return $this->customStyle;
957
+ }
958
+ public function setId( $id) {
959
+ $this->id = $id;
960
+ }
961
+ public function getId() {
962
+ return $this->id;
963
+ }
964
+ public function setKind( $kind) {
965
+ $this->kind = $kind;
966
+ }
967
+ public function getKind() {
968
+ return $this->kind;
969
+ }
970
+ public function setMobileContentAdsSettings(Google_AdUnitMobileContentAdsSettings $mobileContentAdsSettings) {
971
+ $this->mobileContentAdsSettings = $mobileContentAdsSettings;
972
+ }
973
+ public function getMobileContentAdsSettings() {
974
+ return $this->mobileContentAdsSettings;
975
+ }
976
+ public function setName( $name) {
977
+ $this->name = $name;
978
+ }
979
+ public function getName() {
980
+ return $this->name;
981
+ }
982
+ public function setStatus( $status) {
983
+ $this->status = $status;
984
+ }
985
+ public function getStatus() {
986
+ return $this->status;
987
+ }
988
+ }
989
+
990
+ class Google_AdUnitContentAdsSettings extends Google_Model {
991
+ protected $__backupOptionType = 'Google_AdUnitContentAdsSettingsBackupOption';
992
+ protected $__backupOptionDataType = '';
993
+ public $backupOption;
994
+ public $size;
995
+ public $type;
996
+ public function setBackupOption(Google_AdUnitContentAdsSettingsBackupOption $backupOption) {
997
+ $this->backupOption = $backupOption;
998
+ }
999
+ public function getBackupOption() {
1000
+ return $this->backupOption;
1001
+ }
1002
+ public function setSize( $size) {
1003
+ $this->size = $size;
1004
+ }
1005
+ public function getSize() {
1006
+ return $this->size;
1007
+ }
1008
+ public function setType( $type) {
1009
+ $this->type = $type;
1010
+ }
1011
+ public function getType() {
1012
+ return $this->type;
1013
+ }
1014
+ }
1015
+
1016
+ class Google_AdUnitContentAdsSettingsBackupOption extends Google_Model {
1017
+ public $color;
1018
+ public $type;
1019
+ public $url;
1020
+ public function setColor( $color) {
1021
+ $this->color = $color;
1022
+ }
1023
+ public function getColor() {
1024
+ return $this->color;
1025
+ }
1026
+ public function setType( $type) {
1027
+ $this->type = $type;
1028
+ }
1029
+ public function getType() {
1030
+ return $this->type;
1031
+ }
1032
+ public function setUrl( $url) {
1033
+ $this->url = $url;
1034
+ }
1035
+ public function getUrl() {
1036
+ return $this->url;
1037
+ }
1038
+ }
1039
+
1040
+ class Google_AdUnitMobileContentAdsSettings extends Google_Model {
1041
+ public $markupLanguage;
1042
+ public $scriptingLanguage;
1043
+ public $size;
1044
+ public $type;
1045
+ public function setMarkupLanguage( $markupLanguage) {
1046
+ $this->markupLanguage = $markupLanguage;
1047
+ }
1048
+ public function getMarkupLanguage() {
1049
+ return $this->markupLanguage;
1050
+ }
1051
+ public function setScriptingLanguage( $scriptingLanguage) {
1052
+ $this->scriptingLanguage = $scriptingLanguage;
1053
+ }
1054
+ public function getScriptingLanguage() {
1055
+ return $this->scriptingLanguage;
1056
+ }
1057
+ public function setSize( $size) {
1058
+ $this->size = $size;
1059
+ }
1060
+ public function getSize() {
1061
+ return $this->size;
1062
+ }
1063
+ public function setType( $type) {
1064
+ $this->type = $type;
1065
+ }
1066
+ public function getType() {
1067
+ return $this->type;
1068
+ }
1069
+ }
1070
+
1071
+ class Google_AdUnits extends Google_Model {
1072
+ public $etag;
1073
+ protected $__itemsType = 'Google_AdUnit';
1074
+ protected $__itemsDataType = 'array';
1075
+ public $items;
1076
+ public $kind;
1077
+ public $nextPageToken;
1078
+ public function setEtag( $etag) {
1079
+ $this->etag = $etag;
1080
+ }
1081
+ public function getEtag() {
1082
+ return $this->etag;
1083
+ }
1084
+ public function setItems(/* array(Google_AdUnit) */ $items) {
1085
+ $this->assertIsArray($items, 'Google_AdUnit', __METHOD__);
1086
+ $this->items = $items;
1087
+ }
1088
+ public function getItems() {
1089
+ return $this->items;
1090
+ }
1091
+ public function setKind( $kind) {
1092
+ $this->kind = $kind;
1093
+ }
1094
+ public function getKind() {
1095
+ return $this->kind;
1096
+ }
1097
+ public function setNextPageToken( $nextPageToken) {
1098
+ $this->nextPageToken = $nextPageToken;
1099
+ }
1100
+ public function getNextPageToken() {
1101
+ return $this->nextPageToken;
1102
+ }
1103
+ }
1104
+
1105
+ class Google_AssociationSession extends Google_Model {
1106
+ public $accountId;
1107
+ public $id;
1108
+ public $kind;
1109
+ public $productCodes;
1110
+ public $redirectUrl;
1111
+ public $status;
1112
+ public $userLocale;
1113
+ public $websiteLocale;
1114
+ public $websiteUrl;
1115
+ public function setAccountId( $accountId) {
1116
+ $this->accountId = $accountId;
1117
+ }
1118
+ public function getAccountId() {
1119
+ return $this->accountId;
1120
+ }
1121
+ public function setId( $id) {
1122
+ $this->id = $id;
1123
+ }
1124
+ public function getId() {
1125
+ return $this->id;
1126
+ }
1127
+ public function setKind( $kind) {
1128
+ $this->kind = $kind;
1129
+ }
1130
+ public function getKind() {
1131
+ return $this->kind;
1132
+ }
1133
+ public function setProductCodes(/* array(Google_string) */ $productCodes) {
1134
+ $this->assertIsArray($productCodes, 'Google_string', __METHOD__);
1135
+ $this->productCodes = $productCodes;
1136
+ }
1137
+ public function getProductCodes() {
1138
+ return $this->productCodes;
1139
+ }
1140
+ public function setRedirectUrl( $redirectUrl) {
1141
+ $this->redirectUrl = $redirectUrl;
1142
+ }
1143
+ public function getRedirectUrl() {
1144
+ return $this->redirectUrl;
1145
+ }
1146
+ public function setStatus( $status) {
1147
+ $this->status = $status;
1148
+ }
1149
+ public function getStatus() {
1150
+ return $this->status;
1151
+ }
1152
+ public function setUserLocale( $userLocale) {
1153
+ $this->userLocale = $userLocale;
1154
+ }
1155
+ public function getUserLocale() {
1156
+ return $this->userLocale;
1157
+ }
1158
+ public function setWebsiteLocale( $websiteLocale) {
1159
+ $this->websiteLocale = $websiteLocale;
1160
+ }
1161
+ public function getWebsiteLocale() {
1162
+ return $this->websiteLocale;
1163
+ }
1164
+ public function setWebsiteUrl( $websiteUrl) {
1165
+ $this->websiteUrl = $websiteUrl;
1166
+ }
1167
+ public function getWebsiteUrl() {
1168
+ return $this->websiteUrl;
1169
+ }
1170
+ }
1171
+
1172
+ class Google_CustomChannel extends Google_Model {
1173
+ public $code;
1174
+ public $id;
1175
+ public $kind;
1176
+ public $name;
1177
+ public function setCode( $code) {
1178
+ $this->code = $code;
1179
+ }
1180
+ public function getCode() {
1181
+ return $this->code;
1182
+ }
1183
+ public function setId( $id) {
1184
+ $this->id = $id;
1185
+ }
1186
+ public function getId() {
1187
+ return $this->id;
1188
+ }
1189
+ public function setKind( $kind) {
1190
+ $this->kind = $kind;
1191
+ }
1192
+ public function getKind() {
1193
+ return $this->kind;
1194
+ }
1195
+ public function setName( $name) {
1196
+ $this->name = $name;
1197
+ }
1198
+ public function getName() {
1199
+ return $this->name;
1200
+ }
1201
+ }
1202
+
1203
+ class Google_CustomChannels extends Google_Model {
1204
+ public $etag;
1205
+ protected $__itemsType = 'Google_CustomChannel';
1206
+ protected $__itemsDataType = 'array';
1207
+ public $items;
1208
+ public $kind;
1209
+ public $nextPageToken;
1210
+ public function setEtag( $etag) {
1211
+ $this->etag = $etag;
1212
+ }
1213
+ public function getEtag() {
1214
+ return $this->etag;
1215
+ }
1216
+ public function setItems(/* array(Google_CustomChannel) */ $items) {
1217
+ $this->assertIsArray($items, 'Google_CustomChannel', __METHOD__);
1218
+ $this->items = $items;
1219
+ }
1220
+ public function getItems() {
1221
+ return $this->items;
1222
+ }
1223
+ public function setKind( $kind) {
1224
+ $this->kind = $kind;
1225
+ }
1226
+ public function getKind() {
1227
+ return $this->kind;
1228
+ }
1229
+ public function setNextPageToken( $nextPageToken) {
1230
+ $this->nextPageToken = $nextPageToken;
1231
+ }
1232
+ public function getNextPageToken() {
1233
+ return $this->nextPageToken;
1234
+ }
1235
+ }
1236
+
1237
+ class Google_Report extends Google_Model {
1238
+ public $averages;
1239
+ protected $__headersType = 'Google_ReportHeaders';
1240
+ protected $__headersDataType = 'array';
1241
+ public $headers;
1242
+ public $kind;
1243
+ public $rows;
1244
+ public $totalMatchedRows;
1245
+ public $totals;
1246
+ public $warnings;
1247
+ public function setAverages(/* array(Google_string) */ $averages) {
1248
+ $this->assertIsArray($averages, 'Google_string', __METHOD__);
1249
+ $this->averages = $averages;
1250
+ }
1251
+ public function getAverages() {
1252
+ return $this->averages;
1253
+ }
1254
+ public function setHeaders(/* array(Google_ReportHeaders) */ $headers) {
1255
+ $this->assertIsArray($headers, 'Google_ReportHeaders', __METHOD__);
1256
+ $this->headers = $headers;
1257
+ }
1258
+ public function getHeaders() {
1259
+ return $this->headers;
1260
+ }
1261
+ public function setKind( $kind) {
1262
+ $this->kind = $kind;
1263
+ }
1264
+ public function getKind() {
1265
+ return $this->kind;
1266
+ }
1267
+ public function setRows(/* array(Google_string) */ $rows) {
1268
+ $this->assertIsArray($rows, 'Google_string', __METHOD__);
1269
+ $this->rows = $rows;
1270
+ }
1271
+ public function getRows() {
1272
+ return $this->rows;
1273
+ }
1274
+ public function setTotalMatchedRows( $totalMatchedRows) {
1275
+ $this->totalMatchedRows = $totalMatchedRows;
1276
+ }
1277
+ public function getTotalMatchedRows() {
1278
+ return $this->totalMatchedRows;
1279
+ }
1280
+ public function setTotals(/* array(Google_string) */ $totals) {
1281
+ $this->assertIsArray($totals, 'Google_string', __METHOD__);
1282
+ $this->totals = $totals;
1283
+ }
1284
+ public function getTotals() {
1285
+ return $this->totals;
1286
+ }
1287
+ public function setWarnings(/* array(Google_string) */ $warnings) {
1288
+ $this->assertIsArray($warnings, 'Google_string', __METHOD__);
1289
+ $this->warnings = $warnings;
1290
+ }
1291
+ public function getWarnings() {
1292
+ return $this->warnings;
1293
+ }
1294
+ }
1295
+
1296
+ class Google_ReportHeaders extends Google_Model {
1297
+ public $currency;
1298
+ public $name;
1299
+ public $type;
1300
+ public function setCurrency( $currency) {
1301
+ $this->currency = $currency;
1302
+ }
1303
+ public function getCurrency() {
1304
+ return $this->currency;
1305
+ }
1306
+ public function setName( $name) {
1307
+ $this->name = $name;
1308
+ }
1309
+ public function getName() {
1310
+ return $this->name;
1311
+ }
1312
+ public function setType( $type) {
1313
+ $this->type = $type;
1314
+ }
1315
+ public function getType() {
1316
+ return $this->type;
1317
+ }
1318
+ }
1319
+
1320
+ class Google_UrlChannel extends Google_Model {
1321
+ public $id;
1322
+ public $kind;
1323
+ public $urlPattern;
1324
+ public function setId( $id) {
1325
+ $this->id = $id;
1326
+ }
1327
+ public function getId() {
1328
+ return $this->id;
1329
+ }
1330
+ public function setKind( $kind) {
1331
+ $this->kind = $kind;
1332
+ }
1333
+ public function getKind() {
1334
+ return $this->kind;
1335
+ }
1336
+ public function setUrlPattern( $urlPattern) {
1337
+ $this->urlPattern = $urlPattern;
1338
+ }
1339
+ public function getUrlPattern() {
1340
+ return $this->urlPattern;
1341
+ }
1342
+ }
1343
+
1344
+ class Google_UrlChannels extends Google_Model {
1345
+ public $etag;
1346
+ protected $__itemsType = 'Google_UrlChannel';
1347
+ protected $__itemsDataType = 'array';
1348
+ public $items;
1349
+ public $kind;
1350
+ public $nextPageToken;
1351
+ public function setEtag( $etag) {
1352
+ $this->etag = $etag;
1353
+ }
1354
+ public function getEtag() {
1355
+ return $this->etag;
1356
+ }
1357
+ public function setItems(/* array(Google_UrlChannel) */ $items) {
1358
+ $this->assertIsArray($items, 'Google_UrlChannel', __METHOD__);
1359
+ $this->items = $items;
1360
+ }
1361
+ public function getItems() {
1362
+ return $this->items;
1363
+ }
1364
+ public function setKind( $kind) {
1365
+ $this->kind = $kind;
1366
+ }
1367
+ public function getKind() {
1368
+ return $this->kind;
1369
+ }
1370
+ public function setNextPageToken( $nextPageToken) {
1371
+ $this->nextPageToken = $nextPageToken;
1372
+ }
1373
+ public function getNextPageToken() {
1374
+ return $this->nextPageToken;
1375
+ }
1376
+ }
googleclient/contrib/Google_AnalyticsService.php ADDED
@@ -0,0 +1,4336 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /*
3
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
4
+ * use this file except in compliance with the License. You may obtain a copy of
5
+ * the License at
6
+ *
7
+ * http://www.apache.org/licenses/LICENSE-2.0
8
+ *
9
+ * Unless required by applicable law or agreed to in writing, software
10
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
11
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
12
+ * License for the specific language governing permissions and limitations under
13
+ * the License.
14
+ */
15
+
16
+
17
+ /**
18
+ * The "data" collection of methods.
19
+ * Typical usage is:
20
+ * <code>
21
+ * $analyticsService = new Google_AnalyticsService(...);
22
+ * $data = $analyticsService->data;
23
+ * </code>
24
+ */
25
+ class Google_DataServiceResource extends Google_ServiceResource {
26
+
27
+ }
28
+
29
+ /**
30
+ * The "ga" collection of methods.
31
+ * Typical usage is:
32
+ * <code>
33
+ * $analyticsService = new Google_AnalyticsService(...);
34
+ * $ga = $analyticsService->ga;
35
+ * </code>
36
+ */
37
+ class Google_DataGaServiceResource extends Google_ServiceResource {
38
+
39
+ /**
40
+ * Returns Analytics data for a view (profile). (ga.get)
41
+ *
42
+ * @param string $ids Unique table ID for retrieving Analytics data. Table ID is of the form ga:XXXX, where XXXX is the Analytics view (profile) ID.
43
+ * @param string $start_date Start date for fetching Analytics data. All requests should specify a start date formatted as YYYY-MM-DD.
44
+ * @param string $end_date End date for fetching Analytics data. All requests should specify an end date formatted as YYYY-MM-DD.
45
+ * @param string $metrics A comma-separated list of Analytics metrics. E.g., 'ga:visits,ga:pageviews'. At least one metric must be specified.
46
+ * @param array $optParams Optional parameters.
47
+ *
48
+ * @opt_param string dimensions A comma-separated list of Analytics dimensions. E.g., 'ga:browser,ga:city'.
49
+ * @opt_param string filters A comma-separated list of dimension or metric filters to be applied to Analytics data.
50
+ * @opt_param int max-results The maximum number of entries to include in this feed.
51
+ * @opt_param string segment An Analytics advanced segment to be applied to data.
52
+ * @opt_param string sort A comma-separated list of dimensions or metrics that determine the sort order for Analytics data.
53
+ * @opt_param int start-index An index of the first entity to retrieve. Use this parameter as a pagination mechanism along with the max-results parameter.
54
+ * @return Google_GaData
55
+ */
56
+ public function get($ids, $start_date, $end_date, $metrics, $optParams = array()) {
57
+ $params = array('ids' => $ids, 'start-date' => $start_date, 'end-date' => $end_date, 'metrics' => $metrics);
58
+ $params = array_merge($params, $optParams);
59
+ $data = $this->__call('get', array($params));
60
+ if ($this->useObjects()) {
61
+ return new Google_GaData($data);
62
+ } else {
63
+ return $data;
64
+ }
65
+ }
66
+ }
67
+ /**
68
+ * The "mcf" collection of methods.
69
+ * Typical usage is:
70
+ * <code>
71
+ * $analyticsService = new Google_AnalyticsService(...);
72
+ * $mcf = $analyticsService->mcf;
73
+ * </code>
74
+ */
75
+ class Google_DataMcfServiceResource extends Google_ServiceResource {
76
+
77
+ /**
78
+ * Returns Analytics Multi-Channel Funnels data for a view (profile). (mcf.get)
79
+ *
80
+ * @param string $ids Unique table ID for retrieving Analytics data. Table ID is of the form ga:XXXX, where XXXX is the Analytics view (profile) ID.
81
+ * @param string $start_date Start date for fetching Analytics data. All requests should specify a start date formatted as YYYY-MM-DD.
82
+ * @param string $end_date End date for fetching Analytics data. All requests should specify an end date formatted as YYYY-MM-DD.
83
+ * @param string $metrics A comma-separated list of Multi-Channel Funnels metrics. E.g., 'mcf:totalConversions,mcf:totalConversionValue'. At least one metric must be specified.
84
+ * @param array $optParams Optional parameters.
85
+ *
86
+ * @opt_param string dimensions A comma-separated list of Multi-Channel Funnels dimensions. E.g., 'mcf:source,mcf:medium'.
87
+ * @opt_param string filters A comma-separated list of dimension or metric filters to be applied to the Analytics data.
88
+ * @opt_param int max-results The maximum number of entries to include in this feed.
89
+ * @opt_param string sort A comma-separated list of dimensions or metrics that determine the sort order for the Analytics data.
90
+ * @opt_param int start-index An index of the first entity to retrieve. Use this parameter as a pagination mechanism along with the max-results parameter.
91
+ * @return Google_McfData
92
+ */
93
+ public function get($ids, $start_date, $end_date, $metrics, $optParams = array()) {
94
+ $params = array('ids' => $ids, 'start-date' => $start_date, 'end-date' => $end_date, 'metrics' => $metrics);
95
+ $params = array_merge($params, $optParams);
96
+ $data = $this->__call('get', array($params));
97
+ if ($this->useObjects()) {
98
+ return new Google_McfData($data);
99
+ } else {
100
+ return $data;
101
+ }
102
+ }
103
+ }
104
+ /**
105
+ * The "realtime" collection of methods.
106
+ * Typical usage is:
107
+ * <code>
108
+ * $analyticsService = new Google_AnalyticsService(...);
109
+ * $realtime = $analyticsService->realtime;
110
+ * </code>
111
+ */
112
+ class Google_DataRealtimeServiceResource extends Google_ServiceResource {
113
+
114
+ /**
115
+ * Returns real time data for a view (profile). (realtime.get)
116
+ *
117
+ * @param string $ids Unique table ID for retrieving real time data. Table ID is of the form ga:XXXX, where XXXX is the Analytics view (profile) ID.
118
+ * @param string $metrics A comma-separated list of real time metrics. E.g., 'ga:activeVisitors'. At least one metric must be specified.
119
+ * @param array $optParams Optional parameters.
120
+ *
121
+ * @opt_param string dimensions A comma-separated list of real time dimensions. E.g., 'ga:medium,ga:city'.
122
+ * @opt_param string filters A comma-separated list of dimension or metric filters to be applied to real time data.
123
+ * @opt_param int max-results The maximum number of entries to include in this feed.
124
+ * @opt_param string sort A comma-separated list of dimensions or metrics that determine the sort order for real time data.
125
+ * @return Google_RealtimeData
126
+ */
127
+ public function get($ids, $metrics, $optParams = array()) {
128
+ $params = array('ids' => $ids, 'metrics' => $metrics);
129
+ $params = array_merge($params, $optParams);
130
+ $data = $this->__call('get', array($params));
131
+ if ($this->useObjects()) {
132
+ return new Google_RealtimeData($data);
133
+ } else {
134
+ return $data;
135
+ }
136
+ }
137
+ }
138
+
139
+ /**
140
+ * The "management" collection of methods.
141
+ * Typical usage is:
142
+ * <code>
143
+ * $analyticsService = new Google_AnalyticsService(...);
144
+ * $management = $analyticsService->management;
145
+ * </code>
146
+ */
147
+ class Google_ManagementServiceResource extends Google_ServiceResource {
148
+
149
+ }
150
+
151
+ /**
152
+ * The "accountUserLinks" collection of methods.
153
+ * Typical usage is:
154
+ * <code>
155
+ * $analyticsService = new Google_AnalyticsService(...);
156
+ * $accountUserLinks = $analyticsService->accountUserLinks;
157
+ * </code>
158
+ */
159
+ class Google_ManagementAccountUserLinksServiceResource extends Google_ServiceResource {
160
+
161
+ /**
162
+ * Removes a user from the given account. (accountUserLinks.delete)
163
+ *
164
+ * @param string $accountId Account ID to delete the user link for.
165
+ * @param string $linkId Link ID to delete the user link for.
166
+ * @param array $optParams Optional parameters.
167
+ */
168
+ public function delete($accountId, $linkId, $optParams = array()) {
169
+ $params = array('accountId' => $accountId, 'linkId' => $linkId);
170
+ $params = array_merge($params, $optParams);
171
+ $data = $this->__call('delete', array($params));
172
+ return $data;
173
+ }
174
+ /**
175
+ * Adds a new user to the given account. (accountUserLinks.insert)
176
+ *
177
+ * @param string $accountId Account ID to create the user link for.
178
+ * @param Google_EntityUserLink $postBody
179
+ * @param array $optParams Optional parameters.
180
+ * @return Google_EntityUserLink
181
+ */
182
+ public function insert($accountId, Google_EntityUserLink $postBody, $optParams = array()) {
183
+ $params = array('accountId' => $accountId, 'postBody' => $postBody);
184
+ $params = array_merge($params, $optParams);
185
+ $data = $this->__call('insert', array($params));
186
+ if ($this->useObjects()) {
187
+ return new Google_EntityUserLink($data);
188
+ } else {
189
+ return $data;
190
+ }
191
+ }
192
+ /**
193
+ * Lists account-user links for a given account. (accountUserLinks.list)
194
+ *
195
+ * @param string $accountId Account ID to retrieve the user links for.
196
+ * @param array $optParams Optional parameters.
197
+ *
198
+ * @opt_param int max-results The maximum number of account-user links to include in this response.
199
+ * @opt_param int start-index An index of the first account-user link to retrieve. Use this parameter as a pagination mechanism along with the max-results parameter.
200
+ * @return Google_EntityUserLinks
201
+ */
202
+ public function listManagementAccountUserLinks($accountId, $optParams = array()) {
203
+ $params = array('accountId' => $accountId);
204
+ $params = array_merge($params, $optParams);
205
+ $data = $this->__call('list', array($params));
206
+ if ($this->useObjects()) {
207
+ return new Google_EntityUserLinks($data);
208
+ } else {
209
+ return $data;
210
+ }
211
+ }
212
+ /**
213
+ * Updates permissions for an existing user on the given account.
214
+ * (accountUserLinks.update)
215
+ *
216
+ * @param string $accountId Account ID to update the account-user link for.
217
+ * @param string $linkId Link ID to update the account-user link for.
218
+ * @param Google_EntityUserLink $postBody
219
+ * @param array $optParams Optional parameters.
220
+ * @return Google_EntityUserLink
221
+ */
222
+ public function update($accountId, $linkId, Google_EntityUserLink $postBody, $optParams = array()) {
223
+ $params = array('accountId' => $accountId, 'linkId' => $linkId, 'postBody' => $postBody);
224
+ $params = array_merge($params, $optParams);
225
+ $data = $this->__call('update', array($params));
226
+ if ($this->useObjects()) {
227
+ return new Google_EntityUserLink($data);
228
+ } else {
229
+ return $data;
230
+ }
231
+ }
232
+ }
233
+ /**
234
+ * The "accounts" collection of methods.
235
+ * Typical usage is:
236
+ * <code>
237
+ * $analyticsService = new Google_AnalyticsService(...);
238
+ * $accounts = $analyticsService->accounts;
239
+ * </code>
240
+ */
241
+ class Google_ManagementAccountsServiceResource extends Google_ServiceResource {
242
+
243
+ /**
244
+ * Lists all accounts to which the user has access. (accounts.list)
245
+ *
246
+ * @param array $optParams Optional parameters.
247
+ *
248
+ * @opt_param int max-results The maximum number of accounts to include in this response.
249
+ * @opt_param int start-index An index of the first account to retrieve. Use this parameter as a pagination mechanism along with the max-results parameter.
250
+ * @return Google_Accounts
251
+ */
252
+ public function listManagementAccounts($optParams = array()) {
253
+ $params = array();
254
+ $params = array_merge($params, $optParams);
255
+ $data = $this->__call('list', array($params));
256
+ if ($this->useObjects()) {
257
+ return new Google_Accounts($data);
258
+ } else {
259
+ return $data;
260
+ }
261
+ }
262
+ }
263
+ /**
264
+ * The "customDataSources" collection of methods.
265
+ * Typical usage is:
266
+ * <code>
267
+ * $analyticsService = new Google_AnalyticsService(...);
268
+ * $customDataSources = $analyticsService->customDataSources;
269
+ * </code>
270
+ */
271
+ class Google_ManagementCustomDataSourcesServiceResource extends Google_ServiceResource {
272
+
273
+ /**
274
+ * List custom data sources to which the user has access.
275
+ * (customDataSources.list)
276
+ *
277
+ * @param string $accountId Account Id for the custom data sources to retrieve.
278
+ * @param string $webPropertyId Web property Id for the custom data sources to retrieve.
279
+ * @param array $optParams Optional parameters.
280
+ *
281
+ * @opt_param int max-results The maximum number of custom data sources to include in this response.
282
+ * @opt_param int start-index A 1-based index of the first custom data source to retrieve. Use this parameter as a pagination mechanism along with the max-results parameter.
283
+ * @return Google_CustomDataSources
284
+ */
285
+ public function listManagementCustomDataSources($accountId, $webPropertyId, $optParams = array()) {
286
+ $params = array('accountId' => $accountId, 'webPropertyId' => $webPropertyId);
287
+ $params = array_merge($params, $optParams);
288
+ $data = $this->__call('list', array($params));
289
+ if ($this->useObjects()) {
290
+ return new Google_CustomDataSources($data);
291
+ } else {
292
+ return $data;
293
+ }
294
+ }
295
+ }
296
+ /**
297
+ * The "dailyUploads" collection of methods.
298
+ * Typical usage is:
299
+ * <code>
300
+ * $analyticsService = new Google_AnalyticsService(...);
301
+ * $dailyUploads = $analyticsService->dailyUploads;
302
+ * </code>
303
+ */
304
+ class Google_ManagementDailyUploadsServiceResource extends Google_ServiceResource {
305
+
306
+ /**
307
+ * Delete uploaded data for the given date. (dailyUploads.delete)
308
+ *
309
+ * @param string $accountId Account Id associated with daily upload delete.
310
+ * @param string $webPropertyId Web property Id associated with daily upload delete.
311
+ * @param string $customDataSourceId Custom data source Id associated with daily upload delete.
312
+ * @param string $date Date for which data is to be deleted. Date should be formatted as YYYY-MM-DD.
313
+ * @param string $type Type of data for this delete.
314
+ * @param array $optParams Optional parameters.
315
+ */
316
+ public function delete($accountId, $webPropertyId, $customDataSourceId, $date, $type, $optParams = array()) {
317
+ $params = array('accountId' => $accountId, 'webPropertyId' => $webPropertyId, 'customDataSourceId' => $customDataSourceId, 'date' => $date, 'type' => $type);
318
+ $params = array_merge($params, $optParams);
319
+ $data = $this->__call('delete', array($params));
320
+ return $data;
321
+ }
322
+ /**
323
+ * List daily uploads to which the user has access. (dailyUploads.list)
324
+ *
325
+ * @param string $accountId Account Id for the daily uploads to retrieve.
326
+ * @param string $webPropertyId Web property Id for the daily uploads to retrieve.
327
+ * @param string $customDataSourceId Custom data source Id for daily uploads to retrieve.
328
+ * @param string $start_date Start date of the form YYYY-MM-DD.
329
+ * @param string $end_date End date of the form YYYY-MM-DD.
330
+ * @param array $optParams Optional parameters.
331
+ *
332
+ * @opt_param int max-results The maximum number of custom data sources to include in this response.
333
+ * @opt_param int start-index A 1-based index of the first daily upload to retrieve. Use this parameter as a pagination mechanism along with the max-results parameter.
334
+ * @return Google_DailyUploads
335
+ */
336
+ public function listManagementDailyUploads($accountId, $webPropertyId, $customDataSourceId, $start_date, $end_date, $optParams = array()) {
337
+ $params = array('accountId' => $accountId, 'webPropertyId' => $webPropertyId, 'customDataSourceId' => $customDataSourceId, 'start-date' => $start_date, 'end-date' => $end_date);
338
+ $params = array_merge($params, $optParams);
339
+ $data = $this->__call('list', array($params));
340
+ if ($this->useObjects()) {
341
+ return new Google_DailyUploads($data);
342
+ } else {
343
+ return $data;
344
+ }
345
+ }
346
+ /**
347
+ * Update/Overwrite data for a custom data source. (dailyUploads.upload)
348
+ *
349
+ * @param string $accountId Account Id associated with daily upload.
350
+ * @param string $webPropertyId Web property Id associated with daily upload.
351
+ * @param string $customDataSourceId Custom data source Id to which the data being uploaded belongs.
352
+ * @param string $date Date for which data is uploaded. Date should be formatted as YYYY-MM-DD.
353
+ * @param int $appendNumber Append number for this upload indexed from 1.
354
+ * @param string $type Type of data for this upload.
355
+ * @param array $optParams Optional parameters.
356
+ *
357
+ * @opt_param bool reset Reset/Overwrite all previous appends for this date and start over with this file as the first upload.
358
+ * @return Google_DailyUploadAppend
359
+ */
360
+ public function upload($accountId, $webPropertyId, $customDataSourceId, $date, $appendNumber, $type, $optParams = array()) {
361
+ $params = array('accountId' => $accountId, 'webPropertyId' => $webPropertyId, 'customDataSourceId' => $customDataSourceId, 'date' => $date, 'appendNumber' => $appendNumber, 'type' => $type);
362
+ $params = array_merge($params, $optParams);
363
+ $data = $this->__call('upload', array($params));
364
+ if ($this->useObjects()) {
365
+ return new Google_DailyUploadAppend($data);
366
+ } else {
367
+ return $data;
368
+ }
369
+ }
370
+ }
371
+ /**
372
+ * The "experiments" collection of methods.
373
+ * Typical usage is:
374
+ * <code>
375
+ * $analyticsService = new Google_AnalyticsService(...);
376
+ * $experiments = $analyticsService->experiments;
377
+ * </code>
378
+ */
379
+ class Google_ManagementExperimentsServiceResource extends Google_ServiceResource {
380
+
381
+ /**
382
+ * Delete an experiment. (experiments.delete)
383
+ *
384
+ * @param string $accountId Account ID to which the experiment belongs
385
+ * @param string $webPropertyId Web property ID to which the experiment belongs
386
+ * @param string $profileId View (Profile) ID to which the experiment belongs
387
+ * @param string $experimentId ID of the experiment to delete
388
+ * @param array $optParams Optional parameters.
389
+ */
390
+ public function delete($accountId, $webPropertyId, $profileId, $experimentId, $optParams = array()) {
391
+ $params = array('accountId' => $accountId, 'webPropertyId' => $webPropertyId, 'profileId' => $profileId, 'experimentId' => $experimentId);
392
+ $params = array_merge($params, $optParams);
393
+ $data = $this->__call('delete', array($params));
394
+ return $data;
395
+ }
396
+ /**
397
+ * Returns an experiment to which the user has access. (experiments.get)
398
+ *
399
+ * @param string $accountId Account ID to retrieve the experiment for.
400
+ * @param string $webPropertyId Web property ID to retrieve the experiment for.
401
+ * @param string $profileId View (Profile) ID to retrieve the experiment for.
402
+ * @param string $experimentId Experiment ID to retrieve the experiment for.
403
+ * @param array $optParams Optional parameters.
404
+ * @return Google_Experiment
405
+ */
406
+ public function get($accountId, $webPropertyId, $profileId, $experimentId, $optParams = array()) {
407
+ $params = array('accountId' => $accountId, 'webPropertyId' => $webPropertyId, 'profileId' => $profileId, 'experimentId' => $experimentId);
408
+ $params = array_merge($params, $optParams);
409
+ $data = $this->__call('get', array($params));
410
+ if ($this->useObjects()) {
411
+ return new Google_Experiment($data);
412
+ } else {
413
+ return $data;
414
+ }
415
+ }
416
+ /**
417
+ * Create a new experiment. (experiments.insert)
418
+ *
419
+ * @param string $accountId Account ID to create the experiment for.
420
+ * @param string $webPropertyId Web property ID to create the experiment for.
421
+ * @param string $profileId View (Profile) ID to create the experiment for.
422
+ * @param Google_Experiment $postBody
423
+ * @param array $optParams Optional parameters.
424
+ * @return Google_Experiment
425
+ */
426
+ public function insert($accountId, $webPropertyId, $profileId, Google_Experiment $postBody, $optParams = array()) {
427
+ $params = array('accountId' => $accountId, 'webPropertyId' => $webPropertyId, 'profileId' => $profileId, 'postBody' => $postBody);
428
+ $params = array_merge($params, $optParams);
429
+ $data = $this->__call('insert', array($params));
430
+ if ($this->useObjects()) {
431
+ return new Google_Experiment($data);
432
+ } else {
433
+ return $data;
434
+ }
435
+ }
436
+ /**
437
+ * Lists experiments to which the user has access. (experiments.list)
438
+ *
439
+ * @param string $accountId Account ID to retrieve experiments for.
440
+ * @param string $webPropertyId Web property ID to retrieve experiments for.
441
+ * @param string $profileId View (Profile) ID to retrieve experiments for.
442
+ * @param array $optParams Optional parameters.
443
+ *
444
+ * @opt_param int max-results The maximum number of experiments to include in this response.
445
+ * @opt_param int start-index An index of the first experiment to retrieve. Use this parameter as a pagination mechanism along with the max-results parameter.
446
+ * @return Google_Experiments
447
+ */
448
+ public function listManagementExperiments($accountId, $webPropertyId, $profileId, $optParams = array()) {
449
+ $params = array('accountId' => $accountId, 'webPropertyId' => $webPropertyId, 'profileId' => $profileId);
450
+ $params = array_merge($params, $optParams);
451
+ $data = $this->__call('list', array($params));
452
+ if ($this->useObjects()) {
453
+ return new Google_Experiments($data);
454
+ } else {
455
+ return $data;
456
+ }
457
+ }
458
+ /**
459
+ * Update an existing experiment. This method supports patch semantics.
460
+ * (experiments.patch)
461
+ *
462
+ * @param string $accountId Account ID of the experiment to update.
463
+ * @param string $webPropertyId Web property ID of the experiment to update.
464
+ * @param string $profileId View (Profile) ID of the experiment to update.
465
+ * @param string $experimentId Experiment ID of the experiment to update.
466
+ * @param Google_Experiment $postBody
467
+ * @param array $optParams Optional parameters.
468
+ * @return Google_Experiment
469
+ */
470
+ public function patch($accountId, $webPropertyId, $profileId, $experimentId, Google_Experiment $postBody, $optParams = array()) {
471
+ $params = array('accountId' => $accountId, 'webPropertyId' => $webPropertyId, 'profileId' => $profileId, 'experimentId' => $experimentId, 'postBody' => $postBody);
472
+ $params = array_merge($params, $optParams);
473
+ $data = $this->__call('patch', array($params));
474
+ if ($this->useObjects()) {
475
+ return new Google_Experiment($data);
476
+ } else {
477
+ return $data;
478
+ }
479
+ }
480
+ /**
481
+ * Update an existing experiment. (experiments.update)
482
+ *
483
+ * @param string $accountId Account ID of the experiment to update.
484
+ * @param string $webPropertyId Web property ID of the experiment to update.
485
+ * @param string $profileId View (Profile) ID of the experiment to update.
486
+ * @param string $experimentId Experiment ID of the experiment to update.
487
+ * @param Google_Experiment $postBody
488
+ * @param array $optParams Optional parameters.
489
+ * @return Google_Experiment
490
+ */
491
+ public function update($accountId, $webPropertyId, $profileId, $experimentId, Google_Experiment $postBody, $optParams = array()) {
492
+ $params = array('accountId' => $accountId, 'webPropertyId' => $webPropertyId, 'profileId' => $profileId, 'experimentId' => $experimentId, 'postBody' => $postBody);
493
+ $params = array_merge($params, $optParams);
494
+ $data = $this->__call('update', array($params));
495
+ if ($this->useObjects()) {
496
+ return new Google_Experiment($data);
497
+ } else {
498
+ return $data;
499
+ }
500
+ }
501
+ }
502
+ /**
503
+ * The "goals" collection of methods.
504
+ * Typical usage is:
505
+ * <code>
506
+ * $analyticsService = new Google_AnalyticsService(...);
507
+ * $goals = $analyticsService->goals;
508
+ * </code>
509
+ */
510
+ class Google_ManagementGoalsServiceResource extends Google_ServiceResource {
511
+
512
+ /**
513
+ * Gets a goal to which the user has access. (goals.get)
514
+ *
515
+ * @param string $accountId Account ID to retrieve the goal for.
516
+ * @param string $webPropertyId Web property ID to retrieve the goal for.
517
+ * @param string $profileId View (Profile) ID to retrieve the goal for.
518
+ * @param string $goalId Goal ID to retrieve the goal for.
519
+ * @param array $optParams Optional parameters.
520
+ * @return Google_Goal
521
+ */
522
+ public function get($accountId, $webPropertyId, $profileId, $goalId, $optParams = array()) {
523
+ $params = array('accountId' => $accountId, 'webPropertyId' => $webPropertyId, 'profileId' => $profileId, 'goalId' => $goalId);
524
+ $params = array_merge($params, $optParams);
525
+ $data = $this->__call('get', array($params));
526
+ if ($this->useObjects()) {
527
+ return new Google_Goal($data);
528
+ } else {
529
+ return $data;
530
+ }
531
+ }
532
+ /**
533
+ * Create a new goal. (goals.insert)
534
+ *
535
+ * @param string $accountId Account ID to create the goal for.
536
+ * @param string $webPropertyId Web property ID to create the goal for.
537
+ * @param string $profileId View (Profile) ID to create the goal for.
538
+ * @param Google_Goal $postBody
539
+ * @param array $optParams Optional parameters.
540
+ * @return Google_Goal
541
+ */
542
+ public function insert($accountId, $webPropertyId, $profileId, Google_Goal $postBody, $optParams = array()) {
543
+ $params = array('accountId' => $accountId, 'webPropertyId' => $webPropertyId, 'profileId' => $profileId, 'postBody' => $postBody);
544
+ $params = array_merge($params, $optParams);
545
+ $data = $this->__call('insert', array($params));
546
+ if ($this->useObjects()) {
547
+ return new Google_Goal($data);
548
+ } else {
549
+ return $data;
550
+ }
551
+ }
552
+ /**
553
+ * Lists goals to which the user has access. (goals.list)
554
+ *
555
+ * @param string $accountId Account ID to retrieve goals for. Can either be a specific account ID or '~all', which refers to all the accounts that user has access to.
556
+ * @param string $webPropertyId Web property ID to retrieve goals for. Can either be a specific web property ID or '~all', which refers to all the web properties that user has access to.
557
+ * @param string $profileId View (Profile) ID to retrieve goals for. Can either be a specific view (profile) ID or '~all', which refers to all the views (profiles) that user has access to.
558
+ * @param array $optParams Optional parameters.
559
+ *
560
+ * @opt_param int max-results The maximum number of goals to include in this response.
561
+ * @opt_param int start-index An index of the first goal to retrieve. Use this parameter as a pagination mechanism along with the max-results parameter.
562
+ * @return Google_Goals
563
+ */
564
+ public function listManagementGoals($accountId, $webPropertyId, $profileId, $optParams = array()) {
565
+ $params = array('accountId' => $accountId, 'webPropertyId' => $webPropertyId, 'profileId' => $profileId);
566
+ $params = array_merge($params, $optParams);
567
+ $data = $this->__call('list', array($params));
568
+ if ($this->useObjects()) {
569
+ return new Google_Goals($data);
570
+ } else {
571
+ return $data;
572
+ }
573
+ }
574
+ /**
575
+ * Updates an existing view (profile). This method supports patch semantics.
576
+ * (goals.patch)
577
+ *
578
+ * @param string $accountId Account ID to update the goal.
579
+ * @param string $webPropertyId Web property ID to update the goal.
580
+ * @param string $profileId View (Profile) ID to update the goal.
581
+ * @param string $goalId Index of the goal to be updated.
582
+ * @param Google_Goal $postBody
583
+ * @param array $optParams Optional parameters.
584
+ * @return Google_Goal
585
+ */
586
+ public function patch($accountId, $webPropertyId, $profileId, $goalId, Google_Goal $postBody, $optParams = array()) {
587
+ $params = array('accountId' => $accountId, 'webPropertyId' => $webPropertyId, 'profileId' => $profileId, 'goalId' => $goalId, 'postBody' => $postBody);
588
+ $params = array_merge($params, $optParams);
589
+ $data = $this->__call('patch', array($params));
590
+ if ($this->useObjects()) {
591
+ return new Google_Goal($data);
592
+ } else {
593
+ return $data;
594
+ }
595
+ }
596
+ /**
597
+ * Updates an existing view (profile). (goals.update)
598
+ *
599
+ * @param string $accountId Account ID to update the goal.
600
+ * @param string $webPropertyId Web property ID to update the goal.
601
+ * @param string $profileId View (Profile) ID to update the goal.
602
+ * @param string $goalId Index of the goal to be updated.
603
+ * @param Google_Goal $postBody
604
+ * @param array $optParams Optional parameters.
605
+ * @return Google_Goal
606
+ */
607
+ public function update($accountId, $webPropertyId, $profileId, $goalId, Google_Goal $postBody, $optParams = array()) {
608
+ $params = array('accountId' => $accountId, 'webPropertyId' => $webPropertyId, 'profileId' => $profileId, 'goalId' => $goalId, 'postBody' => $postBody);
609
+ $params = array_merge($params, $optParams);
610
+ $data = $this->__call('update', array($params));
611
+ if ($this->useObjects()) {
612
+ return new Google_Goal($data);
613
+ } else {
614
+ return $data;
615
+ }
616
+ }
617
+ }
618
+ /**
619
+ * The "profileUserLinks" collection of methods.
620
+ * Typical usage is:
621
+ * <code>
622
+ * $analyticsService = new Google_AnalyticsService(...);
623
+ * $profileUserLinks = $analyticsService->profileUserLinks;
624
+ * </code>
625
+ */
626
+ class Google_ManagementProfileUserLinksServiceResource extends Google_ServiceResource {
627
+
628
+ /**
629
+ * Removes a user from the given view (profile). (profileUserLinks.delete)
630
+ *
631
+ * @param string $accountId Account ID to delete the user link for.
632
+ * @param string $webPropertyId Web Property ID to delete the user link for.
633
+ * @param string $profileId View (Profile) ID to delete the user link for.
634
+ * @param string $linkId Link ID to delete the user link for.
635
+ * @param array $optParams Optional parameters.
636
+ */
637
+ public function delete($accountId, $webPropertyId, $profileId, $linkId, $optParams = array()) {
638
+ $params = array('accountId' => $accountId, 'webPropertyId' => $webPropertyId, 'profileId' => $profileId, 'linkId' => $linkId);
639
+ $params = array_merge($params, $optParams);
640
+ $data = $this->__call('delete', array($params));
641
+ return $data;
642
+ }
643
+ /**
644
+ * Adds a new user to the given view (profile). (profileUserLinks.insert)
645
+ *
646
+ * @param string $accountId Account ID to create the user link for.
647
+ * @param string $webPropertyId Web Property ID to create the user link for.
648
+ * @param string $profileId View (Profile) ID to create the user link for.
649
+ * @param Google_EntityUserLink $postBody
650
+ * @param array $optParams Optional parameters.
651
+ * @return Google_EntityUserLink
652
+ */
653
+ public function insert($accountId, $webPropertyId, $profileId, Google_EntityUserLink $postBody, $optParams = array()) {
654
+ $params = array('accountId' => $accountId, 'webPropertyId' => $webPropertyId, 'profileId' => $profileId, 'postBody' => $postBody);
655
+ $params = array_merge($params, $optParams);
656
+ $data = $this->__call('insert', array($params));
657
+ if ($this->useObjects()) {
658
+ return new Google_EntityUserLink($data);
659
+ } else {
660
+ return $data;
661
+ }
662
+ }
663
+ /**
664
+ * Lists profile-user links for a given view (profile). (profileUserLinks.list)
665
+ *
666
+ * @param string $accountId Account ID which the given view (profile) belongs to.
667
+ * @param string $webPropertyId Web Property ID which the given view (profile) belongs to.
668
+ * @param string $profileId View (Profile) ID to retrieve the profile-user links for
669
+ * @param array $optParams Optional parameters.
670
+ *
671
+ * @opt_param int max-results The maximum number of profile-user links to include in this response.
672
+ * @opt_param int start-index An index of the first profile-user link to retrieve. Use this parameter as a pagination mechanism along with the max-results parameter.
673
+ * @return Google_EntityUserLinks
674
+ */
675
+ public function listManagementProfileUserLinks($accountId, $webPropertyId, $profileId, $optParams = array()) {
676
+ $params = array('accountId' => $accountId, 'webPropertyId' => $webPropertyId, 'profileId' => $profileId);
677
+ $params = array_merge($params, $optParams);
678
+ $data = $this->__call('list', array($params));
679
+ if ($this->useObjects()) {
680
+ return new Google_EntityUserLinks($data);
681
+ } else {
682
+ return $data;
683
+ }
684
+ }
685
+ /**
686
+ * Updates permissions for an existing user on the given view (profile).
687
+ * (profileUserLinks.update)
688
+ *
689
+ * @param string $accountId Account ID to update the user link for.
690
+ * @param string $webPropertyId Web Property ID to update the user link for.
691
+ * @param string $profileId View (Profile ID) to update the user link for.
692
+ * @param string $linkId Link ID to update the user link for.
693
+ * @param Google_EntityUserLink $postBody
694
+ * @param array $optParams Optional parameters.
695
+ * @return Google_EntityUserLink
696
+ */
697
+ public function update($accountId, $webPropertyId, $profileId, $linkId, Google_EntityUserLink $postBody, $optParams = array()) {
698
+ $params = array('accountId' => $accountId, 'webPropertyId' => $webPropertyId, 'profileId' => $profileId, 'linkId' => $linkId, 'postBody' => $postBody);
699
+ $params = array_merge($params, $optParams);
700
+ $data = $this->__call('update', array($params));
701
+ if ($this->useObjects()) {
702
+ return new Google_EntityUserLink($data);
703
+ } else {
704
+ return $data;
705
+ }
706
+ }
707
+ }
708
+ /**
709
+ * The "profiles" collection of methods.
710
+ * Typical usage is:
711
+ * <code>
712
+ * $analyticsService = new Google_AnalyticsService(...);
713
+ * $profiles = $analyticsService->profiles;
714
+ * </code>
715
+ */
716
+ class Google_ManagementProfilesServiceResource extends Google_ServiceResource {
717
+
718
+ /**
719
+ * Deletes a view (profile). (profiles.delete)
720
+ *
721
+ * @param string $accountId Account ID to delete the view (profile) for.
722
+ * @param string $webPropertyId Web property ID to delete the view (profile) for.
723
+ * @param string $profileId ID of the view (profile) to be deleted.
724
+ * @param array $optParams Optional parameters.
725
+ */
726
+ public function delete($accountId, $webPropertyId, $profileId, $optParams = array()) {
727
+ $params = array('accountId' => $accountId, 'webPropertyId' => $webPropertyId, 'profileId' => $profileId);
728
+ $params = array_merge($params, $optParams);
729
+ $data = $this->__call('delete', array($params));
730
+ return $data;
731
+ }
732
+ /**
733
+ * Gets a view (profile) to which the user has access. (profiles.get)
734
+ *
735
+ * @param string $accountId Account ID to retrieve the goal for.
736
+ * @param string $webPropertyId Web property ID to retrieve the goal for.
737
+ * @param string $profileId View (Profile) ID to retrieve the goal for.
738
+ * @param array $optParams Optional parameters.
739
+ * @return Google_Profile
740
+ */
741
+ public function get($accountId, $webPropertyId, $profileId, $optParams = array()) {
742
+ $params = array('accountId' => $accountId, 'webPropertyId' => $webPropertyId, 'profileId' => $profileId);
743
+ $params = array_merge($params, $optParams);
744
+ $data = $this->__call('get', array($params));
745
+ if ($this->useObjects()) {
746
+ return new Google_Profile($data);
747
+ } else {
748
+ return $data;
749
+ }
750
+ }
751
+ /**
752
+ * Create a new view (profile). (profiles.insert)
753
+ *
754
+ * @param string $accountId Account ID to create the view (profile) for.
755
+ * @param string $webPropertyId Web property ID to create the view (profile) for.
756
+ * @param Google_Profile $postBody
757
+ * @param array $optParams Optional parameters.
758
+ * @return Google_Profile
759
+ */
760
+ public function insert($accountId, $webPropertyId, Google_Profile $postBody, $optParams = array()) {
761
+ $params = array('accountId' => $accountId, 'webPropertyId' => $webPropertyId, 'postBody' => $postBody);
762
+ $params = array_merge($params, $optParams);
763
+ $data = $this->__call('insert', array($params));
764
+ if ($this->useObjects()) {
765
+ return new Google_Profile($data);
766
+ } else {
767
+ return $data;
768
+ }
769
+ }
770
+ /**
771
+ * Lists views (profiles) to which the user has access. (profiles.list)
772
+ *
773
+ * @param string $accountId Account ID for the view (profiles) to retrieve. Can either be a specific account ID or '~all', which refers to all the accounts to which the user has access.
774
+ * @param string $webPropertyId Web property ID for the views (profiles) to retrieve. Can either be a specific web property ID or '~all', which refers to all the web properties to which the user has access.
775
+ * @param array $optParams Optional parameters.
776
+ *
777
+ * @opt_param int max-results The maximum number of views (profiles) to include in this response.
778
+ * @opt_param int start-index An index of the first entity to retrieve. Use this parameter as a pagination mechanism along with the max-results parameter.
779
+ * @return Google_Profiles
780
+ */
781
+ public function listManagementProfiles($accountId, $webPropertyId, $optParams = array()) {
782
+ $params = array('accountId' => $accountId, 'webPropertyId' => $webPropertyId);
783
+ $params = array_merge($params, $optParams);
784
+ $data = $this->__call('list', array($params));
785
+ if ($this->useObjects()) {
786
+ return new Google_Profiles($data);
787
+ } else {
788
+ return $data;
789
+ }
790
+ }
791
+ /**
792
+ * Updates an existing view (profile). This method supports patch semantics.
793
+ * (profiles.patch)
794
+ *
795
+ * @param string $accountId Account ID to which the view (profile) belongs
796
+ * @param string $webPropertyId Web property ID to which the view (profile) belongs
797
+ * @param string $profileId ID of the view (profile) to be updated.
798
+ * @param Google_Profile $postBody
799
+ * @param array $optParams Optional parameters.
800
+ * @return Google_Profile
801
+ */
802
+ public function patch($accountId, $webPropertyId, $profileId, Google_Profile $postBody, $optParams = array()) {
803
+ $params = array('accountId' => $accountId, 'webPropertyId' => $webPropertyId, 'profileId' => $profileId, 'postBody' => $postBody);
804
+ $params = array_merge($params, $optParams);
805
+ $data = $this->__call('patch', array($params));
806
+ if ($this->useObjects()) {
807
+ return new Google_Profile($data);
808
+ } else {
809
+ return $data;
810
+ }
811
+ }
812
+ /**
813
+ * Updates an existing view (profile). (profiles.update)
814
+ *
815
+ * @param string $accountId Account ID to which the view (profile) belongs
816
+ * @param string $webPropertyId Web property ID to which the view (profile) belongs
817
+ * @param string $profileId ID of the view (profile) to be updated.
818
+ * @param Google_Profile $postBody
819
+ * @param array $optParams Optional parameters.
820
+ * @return Google_Profile
821
+ */
822
+ public function update($accountId, $webPropertyId, $profileId, Google_Profile $postBody, $optParams = array()) {
823
+ $params = array('accountId' => $accountId, 'webPropertyId' => $webPropertyId, 'profileId' => $profileId, 'postBody' => $postBody);
824
+ $params = array_merge($params, $optParams);
825
+ $data = $this->__call('update', array($params));
826
+ if ($this->useObjects()) {
827
+ return new Google_Profile($data);
828
+ } else {
829
+ return $data;
830
+ }
831
+ }
832
+ }
833
+ /**
834
+ * The "segments" collection of methods.
835
+ * Typical usage is:
836
+ * <code>
837
+ * $analyticsService = new Google_AnalyticsService(...);
838
+ * $segments = $analyticsService->segments;
839
+ * </code>
840
+ */
841
+ class Google_ManagementSegmentsServiceResource extends Google_ServiceResource {
842
+
843
+ /**
844
+ * Lists advanced segments to which the user has access. (segments.list)
845
+ *
846
+ * @param array $optParams Optional parameters.
847
+ *
848
+ * @opt_param int max-results The maximum number of advanced segments to include in this response.
849
+ * @opt_param int start-index An index of the first advanced segment to retrieve. Use this parameter as a pagination mechanism along with the max-results parameter.
850
+ * @return Google_Segments
851
+ */
852
+ public function listManagementSegments($optParams = array()) {
853
+ $params = array();
854
+ $params = array_merge($params, $optParams);
855
+ $data = $this->__call('list', array($params));
856
+ if ($this->useObjects()) {
857
+ return new Google_Segments($data);
858
+ } else {
859
+ return $data;
860
+ }
861
+ }
862
+ }
863
+ /**
864
+ * The "uploads" collection of methods.
865
+ * Typical usage is:
866
+ * <code>
867
+ * $analyticsService = new Google_AnalyticsService(...);
868
+ * $uploads = $analyticsService->uploads;
869
+ * </code>
870
+ */
871
+ class Google_ManagementUploadsServiceResource extends Google_ServiceResource {
872
+
873
+ /**
874
+ * Delete data associated with a previous upload. (uploads.deleteUploadData)
875
+ *
876
+ * @param string $accountId Account Id for the uploads to be deleted.
877
+ * @param string $webPropertyId Web property Id for the uploads to be deleted.
878
+ * @param string $customDataSourceId Custom data source Id for the uploads to be deleted.
879
+ * @param Google_AnalyticsDataimportDeleteUploadDataRequest $postBody
880
+ * @param array $optParams Optional parameters.
881
+ */
882
+ public function deleteUploadData($accountId, $webPropertyId, $customDataSourceId, Google_AnalyticsDataimportDeleteUploadDataRequest $postBody, $optParams = array()) {
883
+ $params = array('accountId' => $accountId, 'webPropertyId' => $webPropertyId, 'customDataSourceId' => $customDataSourceId, 'postBody' => $postBody);
884
+ $params = array_merge($params, $optParams);
885
+ $data = $this->__call('deleteUploadData', array($params));
886
+ return $data;
887
+ }
888
+ /**
889
+ * List uploads to which the user has access. (uploads.get)
890
+ *
891
+ * @param string $accountId Account Id for the upload to retrieve.
892
+ * @param string $webPropertyId Web property Id for the upload to retrieve.
893
+ * @param string $customDataSourceId Custom data source Id for upload to retrieve.
894
+ * @param string $uploadId Upload Id to retrieve.
895
+ * @param array $optParams Optional parameters.
896
+ * @return Google_Upload
897
+ */
898
+ public function get($accountId, $webPropertyId, $customDataSourceId, $uploadId, $optParams = array()) {
899
+ $params = array('accountId' => $accountId, 'webPropertyId' => $webPropertyId, 'customDataSourceId' => $customDataSourceId, 'uploadId' => $uploadId);
900
+ $params = array_merge($params, $optParams);
901
+ $data = $this->__call('get', array($params));
902
+ if ($this->useObjects()) {
903
+ return new Google_Upload($data);
904
+ } else {
905
+ return $data;
906
+ }
907
+ }
908
+ /**
909
+ * List uploads to which the user has access. (uploads.list)
910
+ *
911
+ * @param string $accountId Account Id for the uploads to retrieve.
912
+ * @param string $webPropertyId Web property Id for the uploads to retrieve.
913
+ * @param string $customDataSourceId Custom data source Id for uploads to retrieve.
914
+ * @param array $optParams Optional parameters.
915
+ *
916
+ * @opt_param int max-results The maximum number of uploads to include in this response.
917
+ * @opt_param int start-index A 1-based index of the first upload to retrieve. Use this parameter as a pagination mechanism along with the max-results parameter.
918
+ * @return Google_Uploads
919
+ */
920
+ public function listManagementUploads($accountId, $webPropertyId, $customDataSourceId, $optParams = array()) {
921
+ $params = array('accountId' => $accountId, 'webPropertyId' => $webPropertyId, 'customDataSourceId' => $customDataSourceId);
922
+ $params = array_merge($params, $optParams);
923
+ $data = $this->__call('list', array($params));
924
+ if ($this->useObjects()) {
925
+ return new Google_Uploads($data);
926
+ } else {
927
+ return $data;
928
+ }
929
+ }
930
+ /**
931
+ * Upload/Overwrite data for a custom data source. (uploads.uploadData)
932
+ *
933
+ * @param string $accountId Account Id associated with the upload.
934
+ * @param string $webPropertyId Web property UA-string associated with the upload.
935
+ * @param string $customDataSourceId Custom data source Id to which the data being uploaded belongs.
936
+ * @param array $optParams Optional parameters.
937
+ * @return Google_Upload
938
+ */
939
+ public function uploadData($accountId, $webPropertyId, $customDataSourceId, $optParams = array()) {
940
+ $params = array('accountId' => $accountId, 'webPropertyId' => $webPropertyId, 'customDataSourceId' => $customDataSourceId);
941
+ $params = array_merge($params, $optParams);
942
+ $data = $this->__call('uploadData', array($params));
943
+ if ($this->useObjects()) {
944
+ return new Google_Upload($data);
945
+ } else {
946
+ return $data;
947
+ }
948
+ }
949
+ }
950
+ /**
951
+ * The "webproperties" collection of methods.
952
+ * Typical usage is:
953
+ * <code>
954
+ * $analyticsService = new Google_AnalyticsService(...);
955
+ * $webproperties = $analyticsService->webproperties;
956
+ * </code>
957
+ */
958
+ class Google_ManagementWebpropertiesServiceResource extends Google_ServiceResource {
959
+
960
+ /**
961
+ * Gets a web property to which the user has access. (webproperties.get)
962
+ *
963
+ * @param string $accountId Account ID to retrieve the web property for.
964
+ * @param string $webPropertyId ID to retrieve the web property for.
965
+ * @param array $optParams Optional parameters.
966
+ * @return Google_Webproperty
967
+ */
968
+ public function get($accountId, $webPropertyId, $optParams = array()) {
969
+ $params = array('accountId' => $accountId, 'webPropertyId' => $webPropertyId);
970
+ $params = array_merge($params, $optParams);
971
+ $data = $this->__call('get', array($params));
972
+ if ($this->useObjects()) {
973
+ return new Google_Webproperty($data);
974
+ } else {
975
+ return $data;
976
+ }
977
+ }
978
+ /**
979
+ * Create a new property if the account has fewer than 20 properties.
980
+ * (webproperties.insert)
981
+ *
982
+ * @param string $accountId Account ID to create the web property for.
983
+ * @param Google_Webproperty $postBody
984
+ * @param array $optParams Optional parameters.
985
+ * @return Google_Webproperty
986
+ */
987
+ public function insert($accountId, Google_Webproperty $postBody, $optParams = array()) {
988
+ $params = array('accountId' => $accountId, 'postBody' => $postBody);
989
+ $params = array_merge($params, $optParams);
990
+ $data = $this->__call('insert', array($params));
991
+ if ($this->useObjects()) {
992
+ return new Google_Webproperty($data);
993
+ } else {
994
+ return $data;
995
+ }
996
+ }
997
+ /**
998
+ * Lists web properties to which the user has access. (webproperties.list)
999
+ *
1000
+ * @param string $accountId Account ID to retrieve web properties for. Can either be a specific account ID or '~all', which refers to all the accounts that user has access to.
1001
+ * @param array $optParams Optional parameters.
1002
+ *
1003
+ * @opt_param int max-results The maximum number of web properties to include in this response.
1004
+ * @opt_param int start-index An index of the first entity to retrieve. Use this parameter as a pagination mechanism along with the max-results parameter.
1005
+ * @return Google_Webproperties
1006
+ */
1007
+ public function listManagementWebproperties($accountId, $optParams = array()) {
1008
+ $params = array('accountId' => $accountId);
1009
+ $params = array_merge($params, $optParams);
1010
+ $data = $this->__call('list', array($params));
1011
+ if ($this->useObjects()) {
1012
+ return new Google_Webproperties($data);
1013
+ } else {
1014
+ return $data;
1015
+ }
1016
+ }
1017
+ /**
1018
+ * Updates an existing web property. This method supports patch semantics.
1019
+ * (webproperties.patch)
1020
+ *
1021
+ * @param string $accountId Account ID to which the web property belongs
1022
+ * @param string $webPropertyId Web property ID
1023
+ * @param Google_Webproperty $postBody
1024
+ * @param array $optParams Optional parameters.
1025
+ * @return Google_Webproperty
1026
+ */
1027
+ public function patch($accountId, $webPropertyId, Google_Webproperty $postBody, $optParams = array()) {
1028
+ $params = array('accountId' => $accountId, 'webPropertyId' => $webPropertyId, 'postBody' => $postBody);
1029
+ $params = array_merge($params, $optParams);
1030
+ $data = $this->__call('patch', array($params));
1031
+ if ($this->useObjects()) {
1032
+ return new Google_Webproperty($data);
1033
+ } else {
1034
+ return $data;
1035
+ }
1036
+ }
1037
+ /**
1038
+ * Updates an existing web property. (webproperties.update)
1039
+ *
1040
+ * @param string $accountId Account ID to which the web property belongs
1041
+ * @param string $webPropertyId Web property ID
1042
+ * @param Google_Webproperty $postBody
1043
+ * @param array $optParams Optional parameters.
1044
+ * @return Google_Webproperty
1045
+ */
1046
+ public function update($accountId, $webPropertyId, Google_Webproperty $postBody, $optParams = array()) {
1047
+ $params = array('accountId' => $accountId, 'webPropertyId' => $webPropertyId, 'postBody' => $postBody);
1048
+ $params = array_merge($params, $optParams);
1049
+ $data = $this->__call('update', array($params));
1050
+ if ($this->useObjects()) {
1051
+ return new Google_Webproperty($data);
1052
+ } else {
1053
+ return $data;
1054
+ }
1055
+ }
1056
+ }
1057
+ /**
1058
+ * The "webpropertyUserLinks" collection of methods.
1059
+ * Typical usage is:
1060
+ * <code>
1061
+ * $analyticsService = new Google_AnalyticsService(...);
1062
+ * $webpropertyUserLinks = $analyticsService->webpropertyUserLinks;
1063
+ * </code>
1064
+ */
1065
+ class Google_ManagementWebpropertyUserLinksServiceResource extends Google_ServiceResource {
1066
+
1067
+ /**
1068
+ * Removes a user from the given web property. (webpropertyUserLinks.delete)
1069
+ *
1070
+ * @param string $accountId Account ID to delete the user link for.
1071
+ * @param string $webPropertyId Web Property ID to delete the user link for.
1072
+ * @param string $linkId Link ID to delete the user link for.
1073
+ * @param array $optParams Optional parameters.
1074
+ */
1075
+ public function delete($accountId, $webPropertyId, $linkId, $optParams = array()) {
1076
+ $params = array('accountId' => $accountId, 'webPropertyId' => $webPropertyId, 'linkId' => $linkId);
1077
+ $params = array_merge($params, $optParams);
1078
+ $data = $this->__call('delete', array($params));
1079
+ return $data;
1080
+ }
1081
+ /**
1082
+ * Adds a new user to the given web property. (webpropertyUserLinks.insert)
1083
+ *
1084
+ * @param string $accountId Account ID to create the user link for.
1085
+ * @param string $webPropertyId Web Property ID to create the user link for.
1086
+ * @param Google_EntityUserLink $postBody
1087
+ * @param array $optParams Optional parameters.
1088
+ * @return Google_EntityUserLink
1089
+ */
1090
+ public function insert($accountId, $webPropertyId, Google_EntityUserLink $postBody, $optParams = array()) {
1091
+ $params = array('accountId' => $accountId, 'webPropertyId' => $webPropertyId, 'postBody' => $postBody);
1092
+ $params = array_merge($params, $optParams);
1093
+ $data = $this->__call('insert', array($params));
1094
+ if ($this->useObjects()) {
1095
+ return new Google_EntityUserLink($data);
1096
+ } else {
1097
+ return $data;
1098
+ }
1099
+ }
1100
+ /**
1101
+ * Lists webProperty-user links for a given web property.
1102
+ * (webpropertyUserLinks.list)
1103
+ *
1104
+ * @param string $accountId Account ID which the given web property belongs to.
1105
+ * @param string $webPropertyId Web Property ID for the webProperty-user links to retrieve.
1106
+ * @param array $optParams Optional parameters.
1107
+ *
1108
+ * @opt_param int max-results The maximum number of webProperty-user Links to include in this response.
1109
+ * @opt_param int start-index An index of the first webProperty-user link to retrieve. Use this parameter as a pagination mechanism along with the max-results parameter.
1110
+ * @return Google_EntityUserLinks
1111
+ */
1112
+ public function listManagementWebpropertyUserLinks($accountId, $webPropertyId, $optParams = array()) {
1113
+ $params = array('accountId' => $accountId, 'webPropertyId' => $webPropertyId);
1114
+ $params = array_merge($params, $optParams);
1115
+ $data = $this->__call('list', array($params));
1116
+ if ($this->useObjects()) {
1117
+ return new Google_EntityUserLinks($data);
1118
+ } else {
1119
+ return $data;
1120
+ }
1121
+ }
1122
+ /**
1123
+ * Updates permissions for an existing user on the given web property.
1124
+ * (webpropertyUserLinks.update)
1125
+ *
1126
+ * @param string $accountId Account ID to update the account-user link for.
1127
+ * @param string $webPropertyId Web property ID to update the account-user link for.
1128
+ * @param string $linkId Link ID to update the account-user link for.
1129
+ * @param Google_EntityUserLink $postBody
1130
+ * @param array $optParams Optional parameters.
1131
+ * @return Google_EntityUserLink
1132
+ */
1133
+ public function update($accountId, $webPropertyId, $linkId, Google_EntityUserLink $postBody, $optParams = array()) {
1134
+ $params = array('accountId' => $accountId, 'webPropertyId' => $webPropertyId, 'linkId' => $linkId, 'postBody' => $postBody);
1135
+ $params = array_merge($params, $optParams);
1136
+ $data = $this->__call('update', array($params));
1137
+ if ($this->useObjects()) {
1138
+ return new Google_EntityUserLink($data);
1139
+ } else {
1140
+ return $data;
1141
+ }
1142
+ }
1143
+ }
1144
+
1145
+ /**
1146
+ * The "metadata" collection of methods.
1147
+ * Typical usage is:
1148
+ * <code>
1149
+ * $analyticsService = new Google_AnalyticsService(...);
1150
+ * $metadata = $analyticsService->metadata;
1151
+ * </code>
1152
+ */
1153
+ class Google_MetadataServiceResource extends Google_ServiceResource {
1154
+
1155
+ }
1156
+
1157
+ /**
1158
+ * The "columns" collection of methods.
1159
+ * Typical usage is:
1160
+ * <code>
1161
+ * $analyticsService = new Google_AnalyticsService(...);
1162
+ * $columns = $analyticsService->columns;
1163
+ * </code>
1164
+ */
1165
+ class Google_MetadataColumnsServiceResource extends Google_ServiceResource {
1166
+
1167
+ /**
1168
+ * Lists all columns for a report type (columns.list)
1169
+ *
1170
+ * @param string $reportType Report type. Allowed Values: 'ga'. Where 'ga' corresponds to the Core Reporting API
1171
+ * @param array $optParams Optional parameters.
1172
+ * @return Google_Columns
1173
+ */
1174
+ public function listMetadataColumns($reportType, $optParams = array()) {
1175
+ $params = array('reportType' => $reportType);
1176
+ $params = array_merge($params, $optParams);
1177
+ $data = $this->__call('list', array($params));
1178
+ if ($this->useObjects()) {
1179
+ return new Google_Columns($data);
1180
+ } else {
1181
+ return $data;
1182
+ }
1183
+ }
1184
+ }
1185
+
1186
+ /**
1187
+ * Service definition for Google_Analytics (v3).
1188
+ *
1189
+ * <p>
1190
+ * View and manage your Google Analytics data
1191
+ * </p>
1192
+ *
1193
+ * <p>
1194
+ * For more information about this service, see the
1195
+ * <a href="https://developers.google.com/analytics/" target="_blank">API Documentation</a>
1196
+ * </p>
1197
+ *
1198
+ * @author Google, Inc.
1199
+ */
1200
+ class Google_AnalyticsService extends Google_Service {
1201
+ public $data_ga;
1202
+ public $data_mcf;
1203
+ public $data_realtime;
1204
+ public $management_accountUserLinks;
1205
+ public $management_accounts;
1206
+ public $management_customDataSources;
1207
+ public $management_dailyUploads;
1208
+ public $management_experiments;
1209
+ public $management_goals;
1210
+ public $management_profileUserLinks;
1211
+ public $management_profiles;
1212
+ public $management_segments;
1213
+ public $management_uploads;
1214
+ public $management_webproperties;
1215
+ public $management_webpropertyUserLinks;
1216
+ public $metadata_columns;
1217
+ /**
1218
+ * Constructs the internal representation of the Analytics service.
1219
+ *
1220
+ * @param Google_Client $client
1221
+ */
1222
+ public function __construct(Google_Client $client) {
1223
+ $this->servicePath = 'analytics/v3/';
1224
+ $this->version = 'v3';
1225
+ $this->serviceName = 'analytics';
1226
+
1227
+ $client->addService($this->serviceName, $this->version);
1228
+ $this->data_ga = new Google_DataGaServiceResource($this, $this->serviceName, 'ga', json_decode('{"methods": {"get": {"id": "analytics.data.ga.get", "path": "data/ga", "httpMethod": "GET", "parameters": {"dimensions": {"type": "string", "location": "query"}, "end-date": {"type": "string", "required": true, "location": "query"}, "filters": {"type": "string", "location": "query"}, "ids": {"type": "string", "required": true, "location": "query"}, "max-results": {"type": "integer", "format": "int32", "location": "query"}, "metrics": {"type": "string", "required": true, "location": "query"}, "segment": {"type": "string", "location": "query"}, "sort": {"type": "string", "location": "query"}, "start-date": {"type": "string", "required": true, "location": "query"}, "start-index": {"type": "integer", "format": "int32", "minimum": "1", "location": "query"}}, "response": {"$ref": "GaData"}, "scopes": ["https://www.googleapis.com/auth/analytics", "https://www.googleapis.com/auth/analytics.readonly"]}}}', true));
1229
+ $this->data_mcf = new Google_DataMcfServiceResource($this, $this->serviceName, 'mcf', json_decode('{"methods": {"get": {"id": "analytics.data.mcf.get", "path": "data/mcf", "httpMethod": "GET", "parameters": {"dimensions": {"type": "string", "location": "query"}, "end-date": {"type": "string", "required": true, "location": "query"}, "filters": {"type": "string", "location": "query"}, "ids": {"type": "string", "required": true, "location": "query"}, "max-results": {"type": "integer", "format": "int32", "location": "query"}, "metrics": {"type": "string", "required": true, "location": "query"}, "sort": {"type": "string", "location": "query"}, "start-date": {"type": "string", "required": true, "location": "query"}, "start-index": {"type": "integer", "format": "int32", "minimum": "1", "location": "query"}}, "response": {"$ref": "McfData"}, "scopes": ["https://www.googleapis.com/auth/analytics", "https://www.googleapis.com/auth/analytics.readonly"]}}}', true));
1230
+ $this->data_realtime = new Google_DataRealtimeServiceResource($this, $this->serviceName, 'realtime', json_decode('{"methods": {"get": {"id": "analytics.data.realtime.get", "path": "data/realtime", "httpMethod": "GET", "parameters": {"dimensions": {"type": "string", "location": "query"}, "filters": {"type": "string", "location": "query"}, "ids": {"type": "string", "required": true, "location": "query"}, "max-results": {"type": "integer", "format": "int32", "location": "query"}, "metrics": {"type": "string", "required": true, "location": "query"}, "sort": {"type": "string", "location": "query"}}, "response": {"$ref": "RealtimeData"}, "scopes": ["https://www.googleapis.com/auth/analytics", "https://www.googleapis.com/auth/analytics.readonly"]}}}', true));
1231
+ $this->management_accountUserLinks = new Google_ManagementAccountUserLinksServiceResource($this, $this->serviceName, 'accountUserLinks', json_decode('{"methods": {"delete": {"id": "analytics.management.accountUserLinks.delete", "path": "management/accounts/{accountId}/entityUserLinks/{linkId}", "httpMethod": "DELETE", "parameters": {"accountId": {"type": "string", "required": true, "location": "path"}, "linkId": {"type": "string", "required": true, "location": "path"}}, "scopes": ["https://www.googleapis.com/auth/analytics.manage.users"]}, "insert": {"id": "analytics.management.accountUserLinks.insert", "path": "management/accounts/{accountId}/entityUserLinks", "httpMethod": "POST", "parameters": {"accountId": {"type": "string", "required": true, "location": "path"}}, "request": {"$ref": "EntityUserLink"}, "response": {"$ref": "EntityUserLink"}, "scopes": ["https://www.googleapis.com/auth/analytics.manage.users"]}, "list": {"id": "analytics.management.accountUserLinks.list", "path": "management/accounts/{accountId}/entityUserLinks", "httpMethod": "GET", "parameters": {"accountId": {"type": "string", "required": true, "location": "path"}, "max-results": {"type": "integer", "format": "int32", "location": "query"}, "start-index": {"type": "integer", "format": "int32", "minimum": "1", "location": "query"}}, "response": {"$ref": "EntityUserLinks"}, "scopes": ["https://www.googleapis.com/auth/analytics.manage.users"]}, "update": {"id": "analytics.management.accountUserLinks.update", "path": "management/accounts/{accountId}/entityUserLinks/{linkId}", "httpMethod": "PUT", "parameters": {"accountId": {"type": "string", "required": true, "location": "path"}, "linkId": {"type": "string", "required": true, "location": "path"}}, "request": {"$ref": "EntityUserLink"}, "response": {"$ref": "EntityUserLink"}, "scopes": ["https://www.googleapis.com/auth/analytics.manage.users"]}}}', true));
1232
+ $this->management_accounts = new Google_ManagementAccountsServiceResource($this, $this->serviceName, 'accounts', json_decode('{"methods": {"list": {"id": "analytics.management.accounts.list", "path": "management/accounts", "httpMethod": "GET", "parameters": {"max-results": {"type": "integer", "format": "int32", "location": "query"}, "start-index": {"type": "integer", "format": "int32", "minimum": "1", "location": "query"}}, "response": {"$ref": "Accounts"}, "scopes": ["https://www.googleapis.com/auth/analytics", "https://www.googleapis.com/auth/analytics.readonly"]}}}', true));
1233
+ $this->management_customDataSources = new Google_ManagementCustomDataSourcesServiceResource($this, $this->serviceName, 'customDataSources', json_decode('{"methods": {"list": {"id": "analytics.management.customDataSources.list", "path": "management/accounts/{accountId}/webproperties/{webPropertyId}/customDataSources", "httpMethod": "GET", "parameters": {"accountId": {"type": "string", "required": true, "location": "path"}, "max-results": {"type": "integer", "format": "int32", "minimum": "1", "location": "query"}, "start-index": {"type": "integer", "format": "int32", "minimum": "1", "location": "query"}, "webPropertyId": {"type": "string", "required": true, "location": "path"}}, "response": {"$ref": "CustomDataSources"}, "scopes": ["https://www.googleapis.com/auth/analytics", "https://www.googleapis.com/auth/analytics.readonly"]}}}', true));
1234
+ $this->management_dailyUploads = new Google_ManagementDailyUploadsServiceResource($this, $this->serviceName, 'dailyUploads', json_decode('{"methods": {"delete": {"id": "analytics.management.dailyUploads.delete", "path": "management/accounts/{accountId}/webproperties/{webPropertyId}/customDataSources/{customDataSourceId}/dailyUploads/{date}", "httpMethod": "DELETE", "parameters": {"accountId": {"type": "string", "required": true, "location": "path"}, "customDataSourceId": {"type": "string", "required": true, "location": "path"}, "date": {"type": "string", "required": true, "location": "path"}, "type": {"type": "string", "required": true, "enum": ["cost"], "location": "query"}, "webPropertyId": {"type": "string", "required": true, "location": "path"}}, "scopes": ["https://www.googleapis.com/auth/analytics"]}, "list": {"id": "analytics.management.dailyUploads.list", "path": "management/accounts/{accountId}/webproperties/{webPropertyId}/customDataSources/{customDataSourceId}/dailyUploads", "httpMethod": "GET", "parameters": {"accountId": {"type": "string", "required": true, "location": "path"}, "customDataSourceId": {"type": "string", "required": true, "location": "path"}, "end-date": {"type": "string", "required": true, "location": "query"}, "max-results": {"type": "integer", "format": "int32", "minimum": "1", "location": "query"}, "start-date": {"type": "string", "required": true, "location": "query"}, "start-index": {"type": "integer", "format": "int32", "minimum": "1", "location": "query"}, "webPropertyId": {"type": "string", "required": true, "location": "path"}}, "response": {"$ref": "DailyUploads"}, "scopes": ["https://www.googleapis.com/auth/analytics", "https://www.googleapis.com/auth/analytics.readonly"]}, "upload": {"id": "analytics.management.dailyUploads.upload", "path": "management/accounts/{accountId}/webproperties/{webPropertyId}/customDataSources/{customDataSourceId}/dailyUploads/{date}/uploads", "httpMethod": "POST", "parameters": {"accountId": {"type": "string", "required": true, "location": "path"}, "appendNumber": {"type": "integer", "required": true, "format": "int32", "minimum": "1", "maximum": "20", "location": "query"}, "customDataSourceId": {"type": "string", "required": true, "location": "path"}, "date": {"type": "string", "required": true, "location": "path"}, "reset": {"type": "boolean", "default": "false", "location": "query"}, "type": {"type": "string", "required": true, "enum": ["cost"], "location": "query"}, "webPropertyId": {"type": "string", "required": true, "location": "path"}}, "response": {"$ref": "DailyUploadAppend"}, "scopes": ["https://www.googleapis.com/auth/analytics"], "supportsMediaUpload": true, "mediaUpload": {"accept": ["application/octet-stream"], "maxSize": "5MB", "protocols": {"simple": {"multipart": true, "path": "/upload/analytics/v3/management/accounts/{accountId}/webproperties/{webPropertyId}/customDataSources/{customDataSourceId}/dailyUploads/{date}/uploads"}, "resumable": {"multipart": true, "path": "/resumable/upload/analytics/v3/management/accounts/{accountId}/webproperties/{webPropertyId}/customDataSources/{customDataSourceId}/dailyUploads/{date}/uploads"}}}}}}', true));
1235
+ $this->management_experiments = new Google_ManagementExperimentsServiceResource($this, $this->serviceName, 'experiments', json_decode('{"methods": {"delete": {"id": "analytics.management.experiments.delete", "path": "management/accounts/{accountId}/webproperties/{webPropertyId}/profiles/{profileId}/experiments/{experimentId}", "httpMethod": "DELETE", "parameters": {"accountId": {"type": "string", "required": true, "location": "path"}, "experimentId": {"type": "string", "required": true, "location": "path"}, "profileId": {"type": "string", "required": true, "location": "path"}, "webPropertyId": {"type": "string", "required": true, "location": "path"}}, "scopes": ["https://www.googleapis.com/auth/analytics"]}, "get": {"id": "analytics.management.experiments.get", "path": "management/accounts/{accountId}/webproperties/{webPropertyId}/profiles/{profileId}/experiments/{experimentId}", "httpMethod": "GET", "parameters": {"accountId": {"type": "string", "required": true, "location": "path"}, "experimentId": {"type": "string", "required": true, "location": "path"}, "profileId": {"type": "string", "required": true, "location": "path"}, "webPropertyId": {"type": "string", "required": true, "location": "path"}}, "response": {"$ref": "Experiment"}, "scopes": ["https://www.googleapis.com/auth/analytics", "https://www.googleapis.com/auth/analytics.readonly"]}, "insert": {"id": "analytics.management.experiments.insert", "path": "management/accounts/{accountId}/webproperties/{webPropertyId}/profiles/{profileId}/experiments", "httpMethod": "POST", "parameters": {"accountId": {"type": "string", "required": true, "location": "path"}, "profileId": {"type": "string", "required": true, "location": "path"}, "webPropertyId": {"type": "string", "required": true, "location": "path"}}, "request": {"$ref": "Experiment"}, "response": {"$ref": "Experiment"}, "scopes": ["https://www.googleapis.com/auth/analytics"]}, "list": {"id": "analytics.management.experiments.list", "path": "management/accounts/{accountId}/webproperties/{webPropertyId}/profiles/{profileId}/experiments", "httpMethod": "GET", "parameters": {"accountId": {"type": "string", "required": true, "location": "path"}, "max-results": {"type": "integer", "format": "int32", "location": "query"}, "profileId": {"type": "string", "required": true, "location": "path"}, "start-index": {"type": "integer", "format": "int32", "minimum": "1", "location": "query"}, "webPropertyId": {"type": "string", "required": true, "location": "path"}}, "response": {"$ref": "Experiments"}, "scopes": ["https://www.googleapis.com/auth/analytics", "https://www.googleapis.com/auth/analytics.readonly"]}, "patch": {"id": "analytics.management.experiments.patch", "path": "management/accounts/{accountId}/webproperties/{webPropertyId}/profiles/{profileId}/experiments/{experimentId}", "httpMethod": "PATCH", "parameters": {"accountId": {"type": "string", "required": true, "location": "path"}, "experimentId": {"type": "string", "required": true, "location": "path"}, "profileId": {"type": "string", "required": true, "location": "path"}, "webPropertyId": {"type": "string", "required": true, "location": "path"}}, "request": {"$ref": "Experiment"}, "response": {"$ref": "Experiment"}, "scopes": ["https://www.googleapis.com/auth/analytics"]}, "update": {"id": "analytics.management.experiments.update", "path": "management/accounts/{accountId}/webproperties/{webPropertyId}/profiles/{profileId}/experiments/{experimentId}", "httpMethod": "PUT", "parameters": {"accountId": {"type": "string", "required": true, "location": "path"}, "experimentId": {"type": "string", "required": true, "location": "path"}, "profileId": {"type": "string", "required": true, "location": "path"}, "webPropertyId": {"type": "string", "required": true, "location": "path"}}, "request": {"$ref": "Experiment"}, "response": {"$ref": "Experiment"}, "scopes": ["https://www.googleapis.com/auth/analytics"]}}}', true));
1236
+ $this->management_goals = new Google_ManagementGoalsServiceResource($this, $this->serviceName, 'goals', json_decode('{"methods": {"get": {"id": "analytics.management.goals.get", "path": "management/accounts/{accountId}/webproperties/{webPropertyId}/profiles/{profileId}/goals/{goalId}", "httpMethod": "GET", "parameters": {"accountId": {"type": "string", "required": true, "location": "path"}, "goalId": {"type": "string", "required": true, "location": "path"}, "profileId": {"type": "string", "required": true, "location": "path"}, "webPropertyId": {"type": "string", "required": true, "location": "path"}}, "response": {"$ref": "Goal"}, "scopes": ["https://www.googleapis.com/auth/analytics", "https://www.googleapis.com/auth/analytics.readonly"]}, "insert": {"id": "analytics.management.goals.insert", "path": "management/accounts/{accountId}/webproperties/{webPropertyId}/profiles/{profileId}/goals", "httpMethod": "POST", "parameters": {"accountId": {"type": "string", "required": true, "location": "path"}, "profileId": {"type": "string", "required": true, "location": "path"}, "webPropertyId": {"type": "string", "required": true, "location": "path"}}, "request": {"$ref": "Goal"}, "response": {"$ref": "Goal"}, "scopes": ["https://www.googleapis.com/auth/analytics"]}, "list": {"id": "analytics.management.goals.list", "path": "management/accounts/{accountId}/webproperties/{webPropertyId}/profiles/{profileId}/goals", "httpMethod": "GET", "parameters": {"accountId": {"type": "string", "required": true, "location": "path"}, "max-results": {"type": "integer", "format": "int32", "location": "query"}, "profileId": {"type": "string", "required": true, "location": "path"}, "start-index": {"type": "integer", "format": "int32", "minimum": "1", "location": "query"}, "webPropertyId": {"type": "string", "required": true, "location": "path"}}, "response": {"$ref": "Goals"}, "scopes": ["https://www.googleapis.com/auth/analytics", "https://www.googleapis.com/auth/analytics.readonly"]}, "patch": {"id": "analytics.management.goals.patch", "path": "management/accounts/{accountId}/webproperties/{webPropertyId}/profiles/{profileId}/goals/{goalId}", "httpMethod": "PATCH", "parameters": {"accountId": {"type": "string", "required": true, "location": "path"}, "goalId": {"type": "string", "required": true, "location": "path"}, "profileId": {"type": "string", "required": true, "location": "path"}, "webPropertyId": {"type": "string", "required": true, "location": "path"}}, "request": {"$ref": "Goal"}, "response": {"$ref": "Goal"}, "scopes": ["https://www.googleapis.com/auth/analytics"]}, "update": {"id": "analytics.management.goals.update", "path": "management/accounts/{accountId}/webproperties/{webPropertyId}/profiles/{profileId}/goals/{goalId}", "httpMethod": "PUT", "parameters": {"accountId": {"type": "string", "required": true, "location": "path"}, "goalId": {"type": "string", "required": true, "location": "path"}, "profileId": {"type": "string", "required": true, "location": "path"}, "webPropertyId": {"type": "string", "required": true, "location": "path"}}, "request": {"$ref": "Goal"}, "response": {"$ref": "Goal"}, "scopes": ["https://www.googleapis.com/auth/analytics"]}}}', true));
1237
+ $this->management_profileUserLinks = new Google_ManagementProfileUserLinksServiceResource($this, $this->serviceName, 'profileUserLinks', json_decode('{"methods": {"delete": {"id": "analytics.management.profileUserLinks.delete", "path": "management/accounts/{accountId}/webproperties/{webPropertyId}/profiles/{profileId}/entityUserLinks/{linkId}", "httpMethod": "DELETE", "parameters": {"accountId": {"type": "string", "required": true, "location": "path"}, "linkId": {"type": "string", "required": true, "location": "path"}, "profileId": {"type": "string", "required": true, "location": "path"}, "webPropertyId": {"type": "string", "required": true, "location": "path"}}, "scopes": ["https://www.googleapis.com/auth/analytics.manage.users"]}, "insert": {"id": "analytics.management.profileUserLinks.insert", "path": "management/accounts/{accountId}/webproperties/{webPropertyId}/profiles/{profileId}/entityUserLinks", "httpMethod": "POST", "parameters": {"accountId": {"type": "string", "required": true, "location": "path"}, "profileId": {"type": "string", "required": true, "location": "path"}, "webPropertyId": {"type": "string", "required": true, "location": "path"}}, "request": {"$ref": "EntityUserLink"}, "response": {"$ref": "EntityUserLink"}, "scopes": ["https://www.googleapis.com/auth/analytics.manage.users"]}, "list": {"id": "analytics.management.profileUserLinks.list", "path": "management/accounts/{accountId}/webproperties/{webPropertyId}/profiles/{profileId}/entityUserLinks", "httpMethod": "GET", "parameters": {"accountId": {"type": "string", "required": true, "location": "path"}, "max-results": {"type": "integer", "format": "int32", "location": "query"}, "profileId": {"type": "string", "required": true, "location": "path"}, "start-index": {"type": "integer", "format": "int32", "minimum": "1", "location": "query"}, "webPropertyId": {"type": "string", "required": true, "location": "path"}}, "response": {"$ref": "EntityUserLinks"}, "scopes": ["https://www.googleapis.com/auth/analytics.manage.users"]}, "update": {"id": "analytics.management.profileUserLinks.update", "path": "management/accounts/{accountId}/webproperties/{webPropertyId}/profiles/{profileId}/entityUserLinks/{linkId}", "httpMethod": "PUT", "parameters": {"accountId": {"type": "string", "required": true, "location": "path"}, "linkId": {"type": "string", "required": true, "location": "path"}, "profileId": {"type": "string", "required": true, "location": "path"}, "webPropertyId": {"type": "string", "required": true, "location": "path"}}, "request": {"$ref": "EntityUserLink"}, "response": {"$ref": "EntityUserLink"}, "scopes": ["https://www.googleapis.com/auth/analytics.manage.users"]}}}', true));
1238
+ $this->management_profiles = new Google_ManagementProfilesServiceResource($this, $this->serviceName, 'profiles', json_decode('{"methods": {"delete": {"id": "analytics.management.profiles.delete", "path": "management/accounts/{accountId}/webproperties/{webPropertyId}/profiles/{profileId}", "httpMethod": "DELETE", "parameters": {"accountId": {"type": "string", "required": true, "location": "path"}, "profileId": {"type": "string", "required": true, "location": "path"}, "webPropertyId": {"type": "string", "required": true, "location": "path"}}, "scopes": ["https://www.googleapis.com/auth/analytics"]}, "get": {"id": "analytics.management.profiles.get", "path": "management/accounts/{accountId}/webproperties/{webPropertyId}/profiles/{profileId}", "httpMethod": "GET", "parameters": {"accountId": {"type": "string", "required": true, "location": "path"}, "profileId": {"type": "string", "required": true, "location": "path"}, "webPropertyId": {"type": "string", "required": true, "location": "path"}}, "response": {"$ref": "Profile"}, "scopes": ["https://www.googleapis.com/auth/analytics", "https://www.googleapis.com/auth/analytics.readonly"]}, "insert": {"id": "analytics.management.profiles.insert", "path": "management/accounts/{accountId}/webproperties/{webPropertyId}/profiles", "httpMethod": "POST", "parameters": {"accountId": {"type": "string", "required": true, "location": "path"}, "webPropertyId": {"type": "string", "required": true, "location": "path"}}, "request": {"$ref": "Profile"}, "response": {"$ref": "Profile"}, "scopes": ["https://www.googleapis.com/auth/analytics"]}, "list": {"id": "analytics.management.profiles.list", "path": "management/accounts/{accountId}/webproperties/{webPropertyId}/profiles", "httpMethod": "GET", "parameters": {"accountId": {"type": "string", "required": true, "location": "path"}, "max-results": {"type": "integer", "format": "int32", "location": "query"}, "start-index": {"type": "integer", "format": "int32", "minimum": "1", "location": "query"}, "webPropertyId": {"type": "string", "required": true, "location": "path"}}, "response": {"$ref": "Profiles"}, "scopes": ["https://www.googleapis.com/auth/analytics", "https://www.googleapis.com/auth/analytics.readonly"]}, "patch": {"id": "analytics.management.profiles.patch", "path": "management/accounts/{accountId}/webproperties/{webPropertyId}/profiles/{profileId}", "httpMethod": "PATCH", "parameters": {"accountId": {"type": "string", "required": true, "location": "path"}, "profileId": {"type": "string", "required": true, "location": "path"}, "webPropertyId": {"type": "string", "required": true, "location": "path"}}, "request": {"$ref": "Profile"}, "response": {"$ref": "Profile"}, "scopes": ["https://www.googleapis.com/auth/analytics"]}, "update": {"id": "analytics.management.profiles.update", "path": "management/accounts/{accountId}/webproperties/{webPropertyId}/profiles/{profileId}", "httpMethod": "PUT", "parameters": {"accountId": {"type": "string", "required": true, "location": "path"}, "profileId": {"type": "string", "required": true, "location": "path"}, "webPropertyId": {"type": "string", "required": true, "location": "path"}}, "request": {"$ref": "Profile"}, "response": {"$ref": "Profile"}, "scopes": ["https://www.googleapis.com/auth/analytics"]}}}', true));
1239
+ $this->management_segments = new Google_ManagementSegmentsServiceResource($this, $this->serviceName, 'segments', json_decode('{"methods": {"list": {"id": "analytics.management.segments.list", "path": "management/segments", "httpMethod": "GET", "parameters": {"max-results": {"type": "integer", "format": "int32", "location": "query"}, "start-index": {"type": "integer", "format": "int32", "minimum": "1", "location": "query"}}, "response": {"$ref": "Segments"}, "scopes": ["https://www.googleapis.com/auth/analytics", "https://www.googleapis.com/auth/analytics.readonly"]}}}', true));
1240
+ $this->management_uploads = new Google_ManagementUploadsServiceResource($this, $this->serviceName, 'uploads', json_decode('{"methods": {"deleteUploadData": {"id": "analytics.management.uploads.deleteUploadData", "path": "management/accounts/{accountId}/webproperties/{webPropertyId}/customDataSources/{customDataSourceId}/deleteUploadData", "httpMethod": "POST", "parameters": {"accountId": {"type": "string", "required": true, "location": "path"}, "customDataSourceId": {"type": "string", "required": true, "location": "path"}, "webPropertyId": {"type": "string", "required": true, "location": "path"}}, "request": {"$ref": "AnalyticsDataimportDeleteUploadDataRequest"}, "scopes": ["https://www.googleapis.com/auth/analytics"]}, "get": {"id": "analytics.management.uploads.get", "path": "management/accounts/{accountId}/webproperties/{webPropertyId}/customDataSources/{customDataSourceId}/uploads/{uploadId}", "httpMethod": "GET", "parameters": {"accountId": {"type": "string", "required": true, "location": "path"}, "customDataSourceId": {"type": "string", "required": true, "location": "path"}, "uploadId": {"type": "string", "required": true, "location": "path"}, "webPropertyId": {"type": "string", "required": true, "location": "path"}}, "response": {"$ref": "Upload"}, "scopes": ["https://www.googleapis.com/auth/analytics", "https://www.googleapis.com/auth/analytics.readonly"]}, "list": {"id": "analytics.management.uploads.list", "path": "management/accounts/{accountId}/webproperties/{webPropertyId}/customDataSources/{customDataSourceId}/uploads", "httpMethod": "GET", "parameters": {"accountId": {"type": "string", "required": true, "location": "path"}, "customDataSourceId": {"type": "string", "required": true, "location": "path"}, "max-results": {"type": "integer", "format": "int32", "minimum": "1", "location": "query"}, "start-index": {"type": "integer", "format": "int32", "minimum": "1", "location": "query"}, "webPropertyId": {"type": "string", "required": true, "location": "path"}}, "response": {"$ref": "Uploads"}, "scopes": ["https://www.googleapis.com/auth/analytics", "https://www.googleapis.com/auth/analytics.readonly"]}, "uploadData": {"id": "analytics.management.uploads.uploadData", "path": "management/accounts/{accountId}/webproperties/{webPropertyId}/customDataSources/{customDataSourceId}/uploads", "httpMethod": "POST", "parameters": {"accountId": {"type": "string", "required": true, "location": "path"}, "customDataSourceId": {"type": "string", "required": true, "location": "path"}, "webPropertyId": {"type": "string", "required": true, "location": "path"}}, "response": {"$ref": "Upload"}, "scopes": ["https://www.googleapis.com/auth/analytics"], "supportsMediaUpload": true, "mediaUpload": {"accept": ["application/octet-stream"], "maxSize": "1GB", "protocols": {"simple": {"multipart": true, "path": "/upload/analytics/v3/management/accounts/{accountId}/webproperties/{webPropertyId}/customDataSources/{customDataSourceId}/uploads"}, "resumable": {"multipart": true, "path": "/resumable/upload/analytics/v3/management/accounts/{accountId}/webproperties/{webPropertyId}/customDataSources/{customDataSourceId}/uploads"}}}}}}', true));
1241
+ $this->management_webproperties = new Google_ManagementWebpropertiesServiceResource($this, $this->serviceName, 'webproperties', json_decode('{"methods": {"get": {"id": "analytics.management.webproperties.get", "path": "management/accounts/{accountId}/webproperties/{webPropertyId}", "httpMethod": "GET", "parameters": {"accountId": {"type": "string", "required": true, "location": "path"}, "webPropertyId": {"type": "string", "required": true, "location": "path"}}, "response": {"$ref": "Webproperty"}, "scopes": ["https://www.googleapis.com/auth/analytics", "https://www.googleapis.com/auth/analytics.readonly"]}, "insert": {"id": "analytics.management.webproperties.insert", "path": "management/accounts/{accountId}/webproperties", "httpMethod": "POST", "parameters": {"accountId": {"type": "string", "required": true, "location": "path"}}, "request": {"$ref": "Webproperty"}, "response": {"$ref": "Webproperty"}, "scopes": ["https://www.googleapis.com/auth/analytics"]}, "list": {"id": "analytics.management.webproperties.list", "path": "management/accounts/{accountId}/webproperties", "httpMethod": "GET", "parameters": {"accountId": {"type": "string", "required": true, "location": "path"}, "max-results": {"type": "integer", "format": "int32", "location": "query"}, "start-index": {"type": "integer", "format": "int32", "minimum": "1", "location": "query"}}, "response": {"$ref": "Webproperties"}, "scopes": ["https://www.googleapis.com/auth/analytics", "https://www.googleapis.com/auth/analytics.readonly"]}, "patch": {"id": "analytics.management.webproperties.patch", "path": "management/accounts/{accountId}/webproperties/{webPropertyId}", "httpMethod": "PATCH", "parameters": {"accountId": {"type": "string", "required": true, "location": "path"}, "webPropertyId": {"type": "string", "required": true, "location": "path"}}, "request": {"$ref": "Webproperty"}, "response": {"$ref": "Webproperty"}, "scopes": ["https://www.googleapis.com/auth/analytics"]}, "update": {"id": "analytics.management.webproperties.update", "path": "management/accounts/{accountId}/webproperties/{webPropertyId}", "httpMethod": "PUT", "parameters": {"accountId": {"type": "string", "required": true, "location": "path"}, "webPropertyId": {"type": "string", "required": true, "location": "path"}}, "request": {"$ref": "Webproperty"}, "response": {"$ref": "Webproperty"}, "scopes": ["https://www.googleapis.com/auth/analytics"]}}}', true));
1242
+ $this->management_webpropertyUserLinks = new Google_ManagementWebpropertyUserLinksServiceResource($this, $this->serviceName, 'webpropertyUserLinks', json_decode('{"methods": {"delete": {"id": "analytics.management.webpropertyUserLinks.delete", "path": "management/accounts/{accountId}/webproperties/{webPropertyId}/entityUserLinks/{linkId}", "httpMethod": "DELETE", "parameters": {"accountId": {"type": "string", "required": true, "location": "path"}, "linkId": {"type": "string", "required": true, "location": "path"}, "webPropertyId": {"type": "string", "required": true, "location": "path"}}, "scopes": ["https://www.googleapis.com/auth/analytics.manage.users"]}, "insert": {"id": "analytics.management.webpropertyUserLinks.insert", "path": "management/accounts/{accountId}/webproperties/{webPropertyId}/entityUserLinks", "httpMethod": "POST", "parameters": {"accountId": {"type": "string", "required": true, "location": "path"}, "webPropertyId": {"type": "string", "required": true, "location": "path"}}, "request": {"$ref": "EntityUserLink"}, "response": {"$ref": "EntityUserLink"}, "scopes": ["https://www.googleapis.com/auth/analytics.manage.users"]}, "list": {"id": "analytics.management.webpropertyUserLinks.list", "path": "management/accounts/{accountId}/webproperties/{webPropertyId}/entityUserLinks", "httpMethod": "GET", "parameters": {"accountId": {"type": "string", "required": true, "location": "path"}, "max-results": {"type": "integer", "format": "int32", "location": "query"}, "start-index": {"type": "integer", "format": "int32", "minimum": "1", "location": "query"}, "webPropertyId": {"type": "string", "required": true, "location": "path"}}, "response": {"$ref": "EntityUserLinks"}, "scopes": ["https://www.googleapis.com/auth/analytics.manage.users"]}, "update": {"id": "analytics.management.webpropertyUserLinks.update", "path": "management/accounts/{accountId}/webproperties/{webPropertyId}/entityUserLinks/{linkId}", "httpMethod": "PUT", "parameters": {"accountId": {"type": "string", "required": true, "location": "path"}, "linkId": {"type": "string", "required": true, "location": "path"}, "webPropertyId": {"type": "string", "required": true, "location": "path"}}, "request": {"$ref": "EntityUserLink"}, "response": {"$ref": "EntityUserLink"}, "scopes": ["https://www.googleapis.com/auth/analytics.manage.users"]}}}', true));
1243
+ $this->metadata_columns = new Google_MetadataColumnsServiceResource($this, $this->serviceName, 'columns', json_decode('{"methods": {"list": {"id": "analytics.metadata.columns.list", "path": "metadata/{reportType}/columns", "httpMethod": "GET", "parameters": {"reportType": {"type": "string", "required": true, "location": "path"}}, "response": {"$ref": "Columns"}, "scopes": ["https://www.googleapis.com/auth/analytics", "https://www.googleapis.com/auth/analytics.readonly"]}}}', true));
1244
+
1245
+ }
1246
+ }
1247
+
1248
+
1249
+
1250
+ class Google_Account extends Google_Model {
1251
+ protected $__childLinkType = 'Google_AccountChildLink';
1252
+ protected $__childLinkDataType = '';
1253
+ public $childLink;
1254
+ public $created;
1255
+ public $id;
1256
+ public $kind;
1257
+ public $name;
1258
+ protected $__permissionsType = 'Google_AccountPermissions';
1259
+ protected $__permissionsDataType = '';
1260
+ public $permissions;
1261
+ public $selfLink;
1262
+ public $updated;
1263
+ public function setChildLink(Google_AccountChildLink $childLink) {
1264
+ $this->childLink = $childLink;
1265
+ }
1266
+ public function getChildLink() {
1267
+ return $this->childLink;
1268
+ }
1269
+ public function setCreated( $created) {
1270
+ $this->created = $created;
1271
+ }
1272
+ public function getCreated() {
1273
+ return $this->created;
1274
+ }
1275
+ public function setId( $id) {
1276
+ $this->id = $id;
1277
+ }
1278
+ public function getId() {
1279
+ return $this->id;
1280
+ }
1281
+ public function setKind( $kind) {
1282
+ $this->kind = $kind;
1283
+ }
1284
+ public function getKind() {
1285
+ return $this->kind;
1286
+ }
1287
+ public function setName( $name) {
1288
+ $this->name = $name;
1289
+ }
1290
+ public function getName() {
1291
+ return $this->name;
1292
+ }
1293
+ public function setPermissions(Google_AccountPermissions $permissions) {
1294
+ $this->permissions = $permissions;
1295
+ }
1296
+ public function getPermissions() {
1297
+ return $this->permissions;
1298
+ }
1299
+ public function setSelfLink( $selfLink) {
1300
+ $this->selfLink = $selfLink;
1301
+ }
1302
+ public function getSelfLink() {
1303
+ return $this->selfLink;
1304
+ }
1305
+ public function setUpdated( $updated) {
1306
+ $this->updated = $updated;
1307
+ }
1308
+ public function getUpdated() {
1309
+ return $this->updated;
1310
+ }
1311
+ }
1312
+
1313
+ class Google_AccountChildLink extends Google_Model {
1314
+ public $href;
1315
+ public $type;
1316
+ public function setHref( $href) {
1317
+ $this->href = $href;
1318
+ }
1319
+ public function getHref() {
1320
+ return $this->href;
1321
+ }
1322
+ public function setType( $type) {
1323
+ $this->type = $type;
1324
+ }
1325
+ public function getType() {
1326
+ return $this->type;
1327
+ }
1328
+ }
1329
+
1330
+ class Google_AccountPermissions extends Google_Model {
1331
+ public $effective;
1332
+ public function setEffective(/* array(Google_string) */ $effective) {
1333
+ $this->assertIsArray($effective, 'Google_string', __METHOD__);
1334
+ $this->effective = $effective;
1335
+ }
1336
+ public function getEffective() {
1337
+ return $this->effective;
1338
+ }
1339
+ }
1340
+
1341
+ class Google_AccountRef extends Google_Model {
1342
+ public $href;
1343
+ public $id;
1344
+ public $kind;
1345
+ public $name;
1346
+ public function setHref( $href) {
1347
+ $this->href = $href;
1348
+ }
1349
+ public function getHref() {
1350
+ return $this->href;
1351
+ }
1352
+ public function setId( $id) {
1353
+ $this->id = $id;
1354
+ }
1355
+ public function getId() {
1356
+ return $this->id;
1357
+ }
1358
+ public function setKind( $kind) {
1359
+ $this->kind = $kind;
1360
+ }
1361
+ public function getKind() {
1362
+ return $this->kind;
1363
+ }
1364
+ public function setName( $name) {
1365
+ $this->name = $name;
1366
+ }
1367
+ public function getName() {
1368
+ return $this->name;
1369
+ }
1370
+ }
1371
+
1372
+ class Google_Accounts extends Google_Model {
1373
+ protected $__itemsType = 'Google_Account';
1374
+ protected $__itemsDataType = 'array';
1375
+ public $items;
1376
+ public $itemsPerPage;
1377
+ public $kind;
1378
+ public $nextLink;
1379
+ public $previousLink;
1380
+ public $startIndex;
1381
+ public $totalResults;
1382
+ public $username;
1383
+ public function setItems(/* array(Google_Account) */ $items) {
1384
+ $this->assertIsArray($items, 'Google_Account', __METHOD__);
1385
+ $this->items = $items;
1386
+ }
1387
+ public function getItems() {
1388
+ return $this->items;
1389
+ }
1390
+ public function setItemsPerPage( $itemsPerPage) {
1391
+ $this->itemsPerPage = $itemsPerPage;
1392
+ }
1393
+ public function getItemsPerPage() {
1394
+ return $this->itemsPerPage;
1395
+ }
1396
+ public function setKind( $kind) {
1397
+ $this->kind = $kind;
1398
+ }
1399
+ public function getKind() {
1400
+ return $this->kind;
1401
+ }
1402
+ public function setNextLink( $nextLink) {
1403
+ $this->nextLink = $nextLink;
1404
+ }
1405
+ public function getNextLink() {
1406
+ return $this->nextLink;
1407
+ }
1408
+ public function setPreviousLink( $previousLink) {
1409
+ $this->previousLink = $previousLink;
1410
+ }
1411
+ public function getPreviousLink() {
1412
+ return $this->previousLink;
1413
+ }
1414
+ public function setStartIndex( $startIndex) {
1415
+ $this->startIndex = $startIndex;
1416
+ }
1417
+ public function getStartIndex() {
1418
+ return $this->startIndex;
1419
+ }
1420
+ public function setTotalResults( $totalResults) {
1421
+ $this->totalResults = $totalResults;
1422
+ }
1423
+ public function getTotalResults() {
1424
+ return $this->totalResults;
1425
+ }
1426
+ public function setUsername( $username) {
1427
+ $this->username = $username;
1428
+ }
1429
+ public function getUsername() {
1430
+ return $this->username;
1431
+ }
1432
+ }
1433
+
1434
+ class Google_AnalyticsDataimportDeleteUploadDataRequest extends Google_Model {
1435
+ public $customDataImportUids;
1436
+ public function setCustomDataImportUids(/* array(Google_string) */ $customDataImportUids) {
1437
+ $this->assertIsArray($customDataImportUids, 'Google_string', __METHOD__);
1438
+ $this->customDataImportUids = $customDataImportUids;
1439
+ }
1440
+ public function getCustomDataImportUids() {
1441
+ return $this->customDataImportUids;
1442
+ }
1443
+ }
1444
+
1445
+ class Google_Column extends Google_Model {
1446
+ public $attributes;
1447
+ public $id;
1448
+ public $kind;
1449
+ public function setAttributes( $attributes) {
1450
+ $this->attributes = $attributes;
1451
+ }
1452
+ public function getAttributes() {
1453
+ return $this->attributes;
1454
+ }
1455
+ public function setId( $id) {
1456
+ $this->id = $id;
1457
+ }
1458
+ public function getId() {
1459
+ return $this->id;
1460
+ }
1461
+ public function setKind( $kind) {
1462
+ $this->kind = $kind;
1463
+ }
1464
+ public function getKind() {
1465
+ return $this->kind;
1466
+ }
1467
+ }
1468
+
1469
+ class Google_Columns extends Google_Model {
1470
+ public $attributeNames;
1471
+ public $etag;
1472
+ protected $__itemsType = 'Google_Column';
1473
+ protected $__itemsDataType = 'array';
1474
+ public $items;
1475
+ public $kind;
1476
+ public $totalResults;
1477
+ public function setAttributeNames(/* array(Google_string) */ $attributeNames) {
1478
+ $this->assertIsArray($attributeNames, 'Google_string', __METHOD__);
1479
+ $this->attributeNames = $attributeNames;
1480
+ }
1481
+ public function getAttributeNames() {
1482
+ return $this->attributeNames;
1483
+ }
1484
+ public function setEtag( $etag) {
1485
+ $this->etag = $etag;
1486
+ }
1487
+ public function getEtag() {
1488
+ return $this->etag;
1489
+ }
1490
+ public function setItems(/* array(Google_Column) */ $items) {
1491
+ $this->assertIsArray($items, 'Google_Column', __METHOD__);
1492
+ $this->items = $items;
1493
+ }
1494
+ public function getItems() {
1495
+ return $this->items;
1496
+ }
1497
+ public function setKind( $kind) {
1498
+ $this->kind = $kind;
1499
+ }
1500
+ public function getKind() {
1501
+ return $this->kind;
1502
+ }
1503
+ public function setTotalResults( $totalResults) {
1504
+ $this->totalResults = $totalResults;
1505
+ }
1506
+ public function getTotalResults() {
1507
+ return $this->totalResults;
1508
+ }
1509
+ }
1510
+
1511
+ class Google_CustomDataSource extends Google_Model {
1512
+ public $accountId;
1513
+ protected $__childLinkType = 'Google_CustomDataSourceChildLink';
1514
+ protected $__childLinkDataType = '';
1515
+ public $childLink;
1516
+ public $created;
1517
+ public $description;
1518
+ public $id;
1519
+ public $kind;
1520
+ public $name;
1521
+ protected $__parentLinkType = 'Google_CustomDataSourceParentLink';
1522
+ protected $__parentLinkDataType = '';
1523
+ public $parentLink;
1524
+ public $profilesLinked;
1525
+ public $selfLink;
1526
+ public $type;
1527
+ public $updated;
1528
+ public $webPropertyId;
1529
+ public function setAccountId( $accountId) {
1530
+ $this->accountId = $accountId;
1531
+ }
1532
+ public function getAccountId() {
1533
+ return $this->accountId;
1534
+ }
1535
+ public function setChildLink(Google_CustomDataSourceChildLink $childLink) {
1536
+ $this->childLink = $childLink;
1537
+ }
1538
+ public function getChildLink() {
1539
+ return $this->childLink;
1540
+ }
1541
+ public function setCreated( $created) {
1542
+ $this->created = $created;
1543
+ }
1544
+ public function getCreated() {
1545
+ return $this->created;
1546
+ }
1547
+ public function setDescription( $description) {
1548
+ $this->description = $description;
1549
+ }
1550
+ public function getDescription() {
1551
+ return $this->description;
1552
+ }
1553
+ public function setId( $id) {
1554
+ $this->id = $id;
1555
+ }
1556
+ public function getId() {
1557
+ return $this->id;
1558
+ }
1559
+ public function setKind( $kind) {
1560
+ $this->kind = $kind;
1561
+ }
1562
+ public function getKind() {
1563
+ return $this->kind;
1564
+ }
1565
+ public function setName( $name) {
1566
+ $this->name = $name;
1567
+ }
1568
+ public function getName() {
1569
+ return $this->name;
1570
+ }
1571
+ public function setParentLink(Google_CustomDataSourceParentLink $parentLink) {
1572
+ $this->parentLink = $parentLink;
1573
+ }
1574
+ public function getParentLink() {
1575
+ return $this->parentLink;
1576
+ }
1577
+ public function setProfilesLinked(/* array(Google_string) */ $profilesLinked) {
1578
+ $this->assertIsArray($profilesLinked, 'Google_string', __METHOD__);
1579
+ $this->profilesLinked = $profilesLinked;
1580
+ }
1581
+ public function getProfilesLinked() {
1582
+ return $this->profilesLinked;
1583
+ }
1584
+ public function setSelfLink( $selfLink) {
1585
+ $this->selfLink = $selfLink;
1586
+ }
1587
+ public function getSelfLink() {
1588
+ return $this->selfLink;
1589
+ }
1590
+ public function setType( $type) {
1591
+ $this->type = $type;
1592
+ }
1593
+ public function getType() {
1594
+ return $this->type;
1595
+ }
1596
+ public function setUpdated( $updated) {
1597
+ $this->updated = $updated;
1598
+ }
1599
+ public function getUpdated() {
1600
+ return $this->updated;
1601
+ }
1602
+ public function setWebPropertyId( $webPropertyId) {
1603
+ $this->webPropertyId = $webPropertyId;
1604
+ }
1605
+ public function getWebPropertyId() {
1606
+ return $this->webPropertyId;
1607
+ }
1608
+ }
1609
+
1610
+ class Google_CustomDataSourceChildLink extends Google_Model {
1611
+ public $href;
1612
+ public $type;
1613
+ public function setHref( $href) {
1614
+ $this->href = $href;
1615
+ }
1616
+ public function getHref() {
1617
+ return $this->href;
1618
+ }
1619
+ public function setType( $type) {
1620
+ $this->type = $type;
1621
+ }
1622
+ public function getType() {
1623
+ return $this->type;
1624
+ }
1625
+ }
1626
+
1627
+ class Google_CustomDataSourceParentLink extends Google_Model {
1628
+ public $href;
1629
+ public $type;
1630
+ public function setHref( $href) {
1631
+ $this->href = $href;
1632
+ }
1633
+ public function getHref() {
1634
+ return $this->href;
1635
+ }
1636
+ public function setType( $type) {
1637
+ $this->type = $type;
1638
+ }
1639
+ public function getType() {
1640
+ return $this->type;
1641
+ }
1642
+ }
1643
+
1644
+ class Google_CustomDataSources extends Google_Model {
1645
+ protected $__itemsType = 'Google_CustomDataSource';
1646
+ protected $__itemsDataType = 'array';
1647
+ public $items;
1648
+ public $itemsPerPage;
1649
+ public $kind;
1650
+ public $nextLink;
1651
+ public $previousLink;
1652
+ public $startIndex;
1653
+ public $totalResults;
1654
+ public $username;
1655
+ public function setItems(/* array(Google_CustomDataSource) */ $items) {
1656
+ $this->assertIsArray($items, 'Google_CustomDataSource', __METHOD__);
1657
+ $this->items = $items;
1658
+ }
1659
+ public function getItems() {
1660
+ return $this->items;
1661
+ }
1662
+ public function setItemsPerPage( $itemsPerPage) {
1663
+ $this->itemsPerPage = $itemsPerPage;
1664
+ }
1665
+ public function getItemsPerPage() {
1666
+ return $this->itemsPerPage;
1667
+ }
1668
+ public function setKind( $kind) {
1669
+ $this->kind = $kind;
1670
+ }
1671
+ public function getKind() {
1672
+ return $this->kind;
1673
+ }
1674
+ public function setNextLink( $nextLink) {
1675
+ $this->nextLink = $nextLink;
1676
+ }
1677
+ public function getNextLink() {
1678
+ return $this->nextLink;
1679
+ }
1680
+ public function setPreviousLink( $previousLink) {
1681
+ $this->previousLink = $previousLink;
1682
+ }
1683
+ public function getPreviousLink() {
1684
+ return $this->previousLink;
1685
+ }
1686
+ public function setStartIndex( $startIndex) {
1687
+ $this->startIndex = $startIndex;
1688
+ }
1689
+ public function getStartIndex() {
1690
+ return $this->startIndex;
1691
+ }
1692
+ public function setTotalResults( $totalResults) {
1693
+ $this->totalResults = $totalResults;
1694
+ }
1695
+ public function getTotalResults() {
1696
+ return $this->totalResults;
1697
+ }
1698
+ public function setUsername( $username) {
1699
+ $this->username = $username;
1700
+ }
1701
+ public function getUsername() {
1702
+ return $this->username;
1703
+ }
1704
+ }
1705
+
1706
+ class Google_DailyUpload extends Google_Model {
1707
+ public $accountId;
1708
+ public $appendCount;
1709
+ public $createdTime;
1710
+ public $customDataSourceId;
1711
+ public $date;
1712
+ public $kind;
1713
+ public $modifiedTime;
1714
+ protected $__parentLinkType = 'Google_DailyUploadParentLink';
1715
+ protected $__parentLinkDataType = '';
1716
+ public $parentLink;
1717
+ protected $__recentChangesType = 'Google_DailyUploadRecentChanges';
1718
+ protected $__recentChangesDataType = 'array';
1719
+ public $recentChanges;
1720
+ public $selfLink;
1721
+ public $webPropertyId;
1722
+ public function setAccountId( $accountId) {
1723
+ $this->accountId = $accountId;
1724
+ }
1725
+ public function getAccountId() {
1726
+ return $this->accountId;
1727
+ }
1728
+ public function setAppendCount( $appendCount) {
1729
+ $this->appendCount = $appendCount;
1730
+ }
1731
+ public function getAppendCount() {
1732
+ return $this->appendCount;
1733
+ }
1734
+ public function setCreatedTime( $createdTime) {
1735
+ $this->createdTime = $createdTime;
1736
+ }
1737
+ public function getCreatedTime() {
1738
+ return $this->createdTime;
1739
+ }
1740
+ public function setCustomDataSourceId( $customDataSourceId) {
1741
+ $this->customDataSourceId = $customDataSourceId;
1742
+ }
1743
+ public function getCustomDataSourceId() {
1744
+ return $this->customDataSourceId;
1745
+ }
1746
+ public function setDate( $date) {
1747
+ $this->date = $date;
1748
+ }
1749
+ public function getDate() {
1750
+ return $this->date;
1751
+ }
1752
+ public function setKind( $kind) {
1753
+ $this->kind = $kind;
1754
+ }
1755
+ public function getKind() {
1756
+ return $this->kind;
1757
+ }
1758
+ public function setModifiedTime( $modifiedTime) {
1759
+ $this->modifiedTime = $modifiedTime;
1760
+ }
1761
+ public function getModifiedTime() {
1762
+ return $this->modifiedTime;
1763
+ }
1764
+ public function setParentLink(Google_DailyUploadParentLink $parentLink) {
1765
+ $this->parentLink = $parentLink;
1766
+ }
1767
+ public function getParentLink() {
1768
+ return $this->parentLink;
1769
+ }
1770
+ public function setRecentChanges(/* array(Google_DailyUploadRecentChanges) */ $recentChanges) {
1771
+ $this->assertIsArray($recentChanges, 'Google_DailyUploadRecentChanges', __METHOD__);
1772
+ $this->recentChanges = $recentChanges;
1773
+ }
1774
+ public function getRecentChanges() {
1775
+ return $this->recentChanges;
1776
+ }
1777
+ public function setSelfLink( $selfLink) {
1778
+ $this->selfLink = $selfLink;
1779
+ }
1780
+ public function getSelfLink() {
1781
+ return $this->selfLink;
1782
+ }
1783
+ public function setWebPropertyId( $webPropertyId) {
1784
+ $this->webPropertyId = $webPropertyId;
1785
+ }
1786
+ public function getWebPropertyId() {
1787
+ return $this->webPropertyId;
1788
+ }
1789
+ }
1790
+
1791
+ class Google_DailyUploadAppend extends Google_Model {
1792
+ public $accountId;
1793
+ public $appendNumber;
1794
+ public $customDataSourceId;
1795
+ public $date;
1796
+ public $kind;
1797
+ public $nextAppendLink;
1798
+ public $webPropertyId;
1799
+ public function setAccountId( $accountId) {
1800
+ $this->accountId = $accountId;
1801
+ }
1802
+ public function getAccountId() {
1803
+ return $this->accountId;
1804
+ }
1805
+ public function setAppendNumber( $appendNumber) {
1806
+ $this->appendNumber = $appendNumber;
1807
+ }
1808
+ public function getAppendNumber() {
1809
+ return $this->appendNumber;
1810
+ }
1811
+ public function setCustomDataSourceId( $customDataSourceId) {
1812
+ $this->customDataSourceId = $customDataSourceId;
1813
+ }
1814
+ public function getCustomDataSourceId() {
1815
+ return $this->customDataSourceId;
1816
+ }
1817
+ public function setDate( $date) {
1818
+ $this->date = $date;
1819
+ }
1820
+ public function getDate() {
1821
+ return $this->date;
1822
+ }
1823
+ public function setKind( $kind) {
1824
+ $this->kind = $kind;
1825
+ }
1826
+ public function getKind() {
1827
+ return $this->kind;
1828
+ }
1829
+ public function setNextAppendLink( $nextAppendLink) {
1830
+ $this->nextAppendLink = $nextAppendLink;
1831
+ }
1832
+ public function getNextAppendLink() {
1833
+ return $this->nextAppendLink;
1834
+ }
1835
+ public function setWebPropertyId( $webPropertyId) {
1836
+ $this->webPropertyId = $webPropertyId;
1837
+ }
1838
+ public function getWebPropertyId() {
1839
+ return $this->webPropertyId;
1840
+ }
1841
+ }
1842
+
1843
+ class Google_DailyUploadParentLink extends Google_Model {
1844
+ public $href;
1845
+ public $type;
1846
+ public function setHref( $href) {
1847
+ $this->href = $href;
1848
+ }
1849
+ public function getHref() {
1850
+ return $this->href;
1851
+ }
1852
+ public function setType( $type) {
1853
+ $this->type = $type;
1854
+ }
1855
+ public function getType() {
1856
+ return $this->type;
1857
+ }
1858
+ }
1859
+
1860
+ class Google_DailyUploadRecentChanges extends Google_Model {
1861
+ public $change;
1862
+ public $time;
1863
+ public function setChange( $change) {
1864
+ $this->change = $change;
1865
+ }
1866
+ public function getChange() {
1867
+ return $this->change;
1868
+ }
1869
+ public function setTime( $time) {
1870
+ $this->time = $time;
1871
+ }
1872
+ public function getTime() {
1873
+ return $this->time;
1874
+ }
1875
+ }
1876
+
1877
+ class Google_DailyUploads extends Google_Model {
1878
+ protected $__itemsType = 'Google_DailyUpload';
1879
+ protected $__itemsDataType = 'array';
1880
+ public $items;
1881
+ public $itemsPerPage;
1882
+ public $kind;
1883
+ public $nextLink;
1884
+ public $previousLink;
1885
+ public $startIndex;
1886
+ public $totalResults;
1887
+ public $username;
1888
+ public function setItems(/* array(Google_DailyUpload) */ $items) {
1889
+ $this->assertIsArray($items, 'Google_DailyUpload', __METHOD__);
1890
+ $this->items = $items;
1891
+ }
1892
+ public function getItems() {
1893
+ return $this->items;
1894
+ }
1895
+ public function setItemsPerPage( $itemsPerPage) {
1896
+ $this->itemsPerPage = $itemsPerPage;
1897
+ }
1898
+ public function getItemsPerPage() {
1899
+ return $this->itemsPerPage;
1900
+ }
1901
+ public function setKind( $kind) {
1902
+ $this->kind = $kind;
1903
+ }
1904
+ public function getKind() {
1905
+ return $this->kind;
1906
+ }
1907
+ public function setNextLink( $nextLink) {
1908
+ $this->nextLink = $nextLink;
1909
+ }
1910
+ public function getNextLink() {
1911
+ return $this->nextLink;
1912
+ }
1913
+ public function setPreviousLink( $previousLink) {
1914
+ $this->previousLink = $previousLink;
1915
+ }
1916
+ public function getPreviousLink() {
1917
+ return $this->previousLink;
1918
+ }
1919
+ public function setStartIndex( $startIndex) {
1920
+ $this->startIndex = $startIndex;
1921
+ }
1922
+ public function getStartIndex() {
1923
+ return $this->startIndex;
1924
+ }
1925
+ public function setTotalResults( $totalResults) {
1926
+ $this->totalResults = $totalResults;
1927
+ }
1928
+ public function getTotalResults() {
1929
+ return $this->totalResults;
1930
+ }
1931
+ public function setUsername( $username) {
1932
+ $this->username = $username;
1933
+ }
1934
+ public function getUsername() {
1935
+ return $this->username;
1936
+ }
1937
+ }
1938
+
1939
+ class Google_EntityUserLink extends Google_Model {
1940
+ protected $__entityType = 'Google_EntityUserLinkEntity';
1941
+ protected $__entityDataType = '';
1942
+ public $entity;
1943
+ public $id;
1944
+ public $kind;
1945
+ protected $__permissionsType = 'Google_EntityUserLinkPermissions';
1946
+ protected $__permissionsDataType = '';
1947
+ public $permissions;
1948
+ public $selfLink;
1949
+ protected $__userRefType = 'Google_UserRef';
1950
+ protected $__userRefDataType = '';
1951
+ public $userRef;
1952
+ public function setEntity(Google_EntityUserLinkEntity $entity) {
1953
+ $this->entity = $entity;
1954
+ }
1955
+ public function getEntity() {
1956
+ return $this->entity;
1957
+ }
1958
+ public function setId( $id) {
1959
+ $this->id = $id;
1960
+ }
1961
+ public function getId() {
1962
+ return $this->id;
1963
+ }
1964
+ public function setKind( $kind) {
1965
+ $this->kind = $kind;
1966
+ }
1967
+ public function getKind() {
1968
+ return $this->kind;
1969
+ }
1970
+ public function setPermissions(Google_EntityUserLinkPermissions $permissions) {
1971
+ $this->permissions = $permissions;
1972
+ }
1973
+ public function getPermissions() {
1974
+ return $this->permissions;
1975
+ }
1976
+ public function setSelfLink( $selfLink) {
1977
+ $this->selfLink = $selfLink;
1978
+ }
1979
+ public function getSelfLink() {
1980
+ return $this->selfLink;
1981
+ }
1982
+ public function setUserRef(Google_UserRef $userRef) {
1983
+ $this->userRef = $userRef;
1984
+ }
1985
+ public function getUserRef() {
1986
+ return $this->userRef;
1987
+ }
1988
+ }
1989
+
1990
+ class Google_EntityUserLinkEntity extends Google_Model {
1991
+ protected $__accountRefType = 'Google_AccountRef';
1992
+ protected $__accountRefDataType = '';
1993
+ public $accountRef;
1994
+ protected $__profileRefType = 'Google_ProfileRef';
1995
+ protected $__profileRefDataType = '';
1996
+ public $profileRef;
1997
+ protected $__webPropertyRefType = 'Google_WebPropertyRef';
1998
+ protected $__webPropertyRefDataType = '';
1999
+ public $webPropertyRef;
2000
+ public function setAccountRef(Google_AccountRef $accountRef) {
2001
+ $this->accountRef = $accountRef;
2002
+ }
2003
+ public function getAccountRef() {
2004
+ return $this->accountRef;
2005
+ }
2006
+ public function setProfileRef(Google_ProfileRef $profileRef) {
2007
+ $this->profileRef = $profileRef;
2008
+ }
2009
+ public function getProfileRef() {
2010
+ return $this->profileRef;
2011
+ }
2012
+ public function setWebPropertyRef(Google_WebPropertyRef $webPropertyRef) {
2013
+ $this->webPropertyRef = $webPropertyRef;
2014
+ }
2015
+ public function getWebPropertyRef() {
2016
+ return $this->webPropertyRef;
2017
+ }
2018
+ }
2019
+
2020
+ class Google_EntityUserLinkPermissions extends Google_Model {
2021
+ public $effective;
2022
+ public $local;
2023
+ public function setEffective(/* array(Google_string) */ $effective) {
2024
+ $this->assertIsArray($effective, 'Google_string', __METHOD__);
2025
+ $this->effective = $effective;
2026
+ }
2027
+ public function getEffective() {
2028
+ return $this->effective;
2029
+ }
2030
+ public function setLocal(/* array(Google_string) */ $local) {
2031
+ $this->assertIsArray($local, 'Google_string', __METHOD__);
2032
+ $this->local = $local;
2033
+ }
2034
+ public function getLocal() {
2035
+ return $this->local;
2036
+ }
2037
+ }
2038
+
2039
+ class Google_EntityUserLinks extends Google_Model {
2040
+ protected $__itemsType = 'Google_EntityUserLink';
2041
+ protected $__itemsDataType = 'array';
2042
+ public $items;
2043
+ public $itemsPerPage;
2044
+ public $kind;
2045
+ public $nextLink;
2046
+ public $previousLink;
2047
+ public $startIndex;
2048
+ public $totalResults;
2049
+ public function setItems(/* array(Google_EntityUserLink) */ $items) {
2050
+ $this->assertIsArray($items, 'Google_EntityUserLink', __METHOD__);
2051
+ $this->items = $items;
2052
+ }
2053
+ public function getItems() {
2054
+ return $this->items;
2055
+ }
2056
+ public function setItemsPerPage( $itemsPerPage) {
2057
+ $this->itemsPerPage = $itemsPerPage;
2058
+ }
2059
+ public function getItemsPerPage() {
2060
+ return $this->itemsPerPage;
2061
+ }
2062
+ public function setKind( $kind) {
2063
+ $this->kind = $kind;
2064
+ }
2065
+ public function getKind() {
2066
+ return $this->kind;
2067
+ }
2068
+ public function setNextLink( $nextLink) {
2069
+ $this->nextLink = $nextLink;
2070
+ }
2071
+ public function getNextLink() {
2072
+ return $this->nextLink;
2073
+ }
2074
+ public function setPreviousLink( $previousLink) {
2075
+ $this->previousLink = $previousLink;
2076
+ }
2077
+ public function getPreviousLink() {
2078
+ return $this->previousLink;
2079
+ }
2080
+ public function setStartIndex( $startIndex) {
2081
+ $this->startIndex = $startIndex;
2082
+ }
2083
+ public function getStartIndex() {
2084
+ return $this->startIndex;
2085
+ }
2086
+ public function setTotalResults( $totalResults) {
2087
+ $this->totalResults = $totalResults;
2088
+ }
2089
+ public function getTotalResults() {
2090
+ return $this->totalResults;
2091
+ }
2092
+ }
2093
+
2094
+ class Google_Experiment extends Google_Model {
2095
+ public $accountId;
2096
+ public $created;
2097
+ public $description;
2098
+ public $editableInGaUi;
2099
+ public $endTime;
2100
+ public $id;
2101
+ public $internalWebPropertyId;
2102
+ public $kind;
2103
+ public $minimumExperimentLengthInDays;
2104
+ public $name;
2105
+ public $objectiveMetric;
2106
+ public $optimizationType;
2107
+ protected $__parentLinkType = 'Google_ExperimentParentLink';
2108
+ protected $__parentLinkDataType = '';
2109
+ public $parentLink;
2110
+ public $profileId;
2111
+ public $reasonExperimentEnded;
2112
+ public $rewriteVariationUrlsAsOriginal;
2113
+ public $selfLink;
2114
+ public $servingFramework;
2115
+ public $snippet;
2116
+ public $startTime;
2117
+ public $status;
2118
+ public $trafficCoverage;
2119
+ public $updated;
2120
+ protected $__variationsType = 'Google_ExperimentVariations';
2121
+ protected $__variationsDataType = 'array';
2122
+ public $variations;
2123
+ public $webPropertyId;
2124
+ public $winnerConfidenceLevel;
2125
+ public $winnerFound;
2126
+ public function setAccountId( $accountId) {
2127
+ $this->accountId = $accountId;
2128
+ }
2129
+ public function getAccountId() {
2130
+ return $this->accountId;
2131
+ }
2132
+ public function setCreated( $created) {
2133
+ $this->created = $created;
2134
+ }
2135
+ public function getCreated() {
2136
+ return $this->created;
2137
+ }
2138
+ public function setDescription( $description) {
2139
+ $this->description = $description;
2140
+ }
2141
+ public function getDescription() {
2142
+ return $this->description;
2143
+ }
2144
+ public function setEditableInGaUi( $editableInGaUi) {
2145
+ $this->editableInGaUi = $editableInGaUi;
2146
+ }
2147
+ public function getEditableInGaUi() {
2148
+ return $this->editableInGaUi;
2149
+ }
2150
+ public function setEndTime( $endTime) {
2151
+ $this->endTime = $endTime;
2152
+ }
2153
+ public function getEndTime() {
2154
+ return $this->endTime;
2155
+ }
2156
+ public function setId( $id) {
2157
+ $this->id = $id;
2158
+ }
2159
+ public function getId() {
2160
+ return $this->id;
2161
+ }
2162
+ public function setInternalWebPropertyId( $internalWebPropertyId) {
2163
+ $this->internalWebPropertyId = $internalWebPropertyId;
2164
+ }
2165
+ public function getInternalWebPropertyId() {
2166
+ return $this->internalWebPropertyId;
2167
+ }
2168
+ public function setKind( $kind) {
2169
+ $this->kind = $kind;
2170
+ }
2171
+ public function getKind() {
2172
+ return $this->kind;
2173
+ }
2174
+ public function setMinimumExperimentLengthInDays( $minimumExperimentLengthInDays) {
2175
+ $this->minimumExperimentLengthInDays = $minimumExperimentLengthInDays;
2176
+ }
2177
+ public function getMinimumExperimentLengthInDays() {
2178
+ return $this->minimumExperimentLengthInDays;
2179
+ }
2180
+ public function setName( $name) {
2181
+ $this->name = $name;
2182
+ }
2183
+ public function getName() {
2184
+ return $this->name;
2185
+ }
2186
+ public function setObjectiveMetric( $objectiveMetric) {
2187
+ $this->objectiveMetric = $objectiveMetric;
2188
+ }
2189
+ public function getObjectiveMetric() {
2190
+ return $this->objectiveMetric;
2191
+ }
2192
+ public function setOptimizationType( $optimizationType) {
2193
+ $this->optimizationType = $optimizationType;
2194
+ }
2195
+ public function getOptimizationType() {
2196
+ return $this->optimizationType;
2197
+ }
2198
+ public function setParentLink(Google_ExperimentParentLink $parentLink) {
2199
+ $this->parentLink = $parentLink;
2200
+ }
2201
+ public function getParentLink() {
2202
+ return $this->parentLink;
2203
+ }
2204
+ public function setProfileId( $profileId) {
2205
+ $this->profileId = $profileId;
2206
+ }
2207
+ public function getProfileId() {
2208
+ return $this->profileId;
2209
+ }
2210
+ public function setReasonExperimentEnded( $reasonExperimentEnded) {
2211
+ $this->reasonExperimentEnded = $reasonExperimentEnded;
2212
+ }
2213
+ public function getReasonExperimentEnded() {
2214
+ return $this->reasonExperimentEnded;
2215
+ }
2216
+ public function setRewriteVariationUrlsAsOriginal( $rewriteVariationUrlsAsOriginal) {
2217
+ $this->rewriteVariationUrlsAsOriginal = $rewriteVariationUrlsAsOriginal;
2218
+ }
2219
+ public function getRewriteVariationUrlsAsOriginal() {
2220
+ return $this->rewriteVariationUrlsAsOriginal;
2221
+ }
2222
+ public function setSelfLink( $selfLink) {
2223
+ $this->selfLink = $selfLink;
2224
+ }
2225
+ public function getSelfLink() {
2226
+ return $this->selfLink;
2227
+ }
2228
+ public function setServingFramework( $servingFramework) {
2229
+ $this->servingFramework = $servingFramework;
2230
+ }
2231
+ public function getServingFramework() {
2232
+ return $this->servingFramework;
2233
+ }
2234
+ public function setSnippet( $snippet) {
2235
+ $this->snippet = $snippet;
2236
+ }
2237
+ public function getSnippet() {
2238
+ return $this->snippet;
2239
+ }
2240
+ public function setStartTime( $startTime) {
2241
+ $this->startTime = $startTime;
2242
+ }
2243
+ public function getStartTime() {
2244
+ return $this->startTime;
2245
+ }
2246
+ public function setStatus( $status) {
2247
+ $this->status = $status;
2248
+ }
2249
+ public function getStatus() {
2250
+ return $this->status;
2251
+ }
2252
+ public function setTrafficCoverage( $trafficCoverage) {
2253
+ $this->trafficCoverage = $trafficCoverage;
2254
+ }
2255
+ public function getTrafficCoverage() {
2256
+ return $this->trafficCoverage;
2257
+ }
2258
+ public function setUpdated( $updated) {
2259
+ $this->updated = $updated;
2260
+ }
2261
+ public function getUpdated() {
2262
+ return $this->updated;
2263
+ }
2264
+ public function setVariations(/* array(Google_ExperimentVariations) */ $variations) {
2265
+ $this->assertIsArray($variations, 'Google_ExperimentVariations', __METHOD__);
2266
+ $this->variations = $variations;
2267
+ }
2268
+ public function getVariations() {
2269
+ return $this->variations;
2270
+ }
2271
+ public function setWebPropertyId( $webPropertyId) {
2272
+ $this->webPropertyId = $webPropertyId;
2273
+ }
2274
+ public function getWebPropertyId() {
2275
+ return $this->webPropertyId;
2276
+ }
2277
+ public function setWinnerConfidenceLevel( $winnerConfidenceLevel) {
2278
+ $this->winnerConfidenceLevel = $winnerConfidenceLevel;
2279
+ }
2280
+ public function getWinnerConfidenceLevel() {
2281
+ return $this->winnerConfidenceLevel;
2282
+ }
2283
+ public function setWinnerFound( $winnerFound) {
2284
+ $this->winnerFound = $winnerFound;
2285
+ }
2286
+ public function getWinnerFound() {
2287
+ return $this->winnerFound;
2288
+ }
2289
+ }
2290
+
2291
+ class Google_ExperimentParentLink extends Google_Model {
2292
+ public $href;
2293
+ public $type;
2294
+ public function setHref( $href) {
2295
+ $this->href = $href;
2296
+ }
2297
+ public function getHref() {
2298
+ return $this->href;
2299
+ }
2300
+ public function setType( $type) {
2301
+ $this->type = $type;
2302
+ }
2303
+ public function getType() {
2304
+ return $this->type;
2305
+ }
2306
+ }
2307
+
2308
+ class Google_ExperimentVariations extends Google_Model {
2309
+ public $name;
2310
+ public $status;
2311
+ public $url;
2312
+ public $weight;
2313
+ public $won;
2314
+ public function setName( $name) {
2315
+ $this->name = $name;
2316
+ }
2317
+ public function getName() {
2318
+ return $this->name;
2319
+ }
2320
+ public function setStatus( $status) {
2321
+ $this->status = $status;
2322
+ }
2323
+ public function getStatus() {
2324
+ return $this->status;
2325
+ }
2326
+ public function setUrl( $url) {
2327
+ $this->url = $url;
2328
+ }
2329
+ public function getUrl() {
2330
+ return $this->url;
2331
+ }
2332
+ public function setWeight( $weight) {
2333
+ $this->weight = $weight;
2334
+ }
2335
+ public function getWeight() {
2336
+ return $this->weight;
2337
+ }
2338
+ public function setWon( $won) {
2339
+ $this->won = $won;
2340
+ }
2341
+ public function getWon() {
2342
+ return $this->won;
2343
+ }
2344
+ }
2345
+
2346
+ class Google_Experiments extends Google_Model {
2347
+ protected $__itemsType = 'Google_Experiment';
2348
+ protected $__itemsDataType = 'array';
2349
+ public $items;
2350
+ public $itemsPerPage;
2351
+ public $kind;
2352
+ public $nextLink;
2353
+ public $previousLink;
2354
+ public $startIndex;
2355
+ public $totalResults;
2356
+ public $username;
2357
+ public function setItems(/* array(Google_Experiment) */ $items) {
2358
+ $this->assertIsArray($items, 'Google_Experiment', __METHOD__);
2359
+ $this->items = $items;
2360
+ }
2361
+ public function getItems() {
2362
+ return $this->items;
2363
+ }
2364
+ public function setItemsPerPage( $itemsPerPage) {
2365
+ $this->itemsPerPage = $itemsPerPage;
2366
+ }
2367
+ public function getItemsPerPage() {
2368
+ return $this->itemsPerPage;
2369
+ }
2370
+ public function setKind( $kind) {
2371
+ $this->kind = $kind;
2372
+ }
2373
+ public function getKind() {
2374
+ return $this->kind;
2375
+ }
2376
+ public function setNextLink( $nextLink) {
2377
+ $this->nextLink = $nextLink;
2378
+ }
2379
+ public function getNextLink() {
2380
+ return $this->nextLink;
2381
+ }
2382
+ public function setPreviousLink( $previousLink) {
2383
+ $this->previousLink = $previousLink;
2384
+ }
2385
+ public function getPreviousLink() {
2386
+ return $this->previousLink;
2387
+ }
2388
+ public function setStartIndex( $startIndex) {
2389
+ $this->startIndex = $startIndex;
2390
+ }
2391
+ public function getStartIndex() {
2392
+ return $this->startIndex;
2393
+ }
2394
+ public function setTotalResults( $totalResults) {
2395
+ $this->totalResults = $totalResults;
2396
+ }
2397
+ public function getTotalResults() {
2398
+ return $this->totalResults;
2399
+ }
2400
+ public function setUsername( $username) {
2401
+ $this->username = $username;
2402
+ }
2403
+ public function getUsername() {
2404
+ return $this->username;
2405
+ }
2406
+ }
2407
+
2408
+ class Google_GaData extends Google_Model {
2409
+ protected $__columnHeadersType = 'Google_GaDataColumnHeaders';
2410
+ protected $__columnHeadersDataType = 'array';
2411
+ public $columnHeaders;
2412
+ public $containsSampledData;
2413
+ public $id;
2414
+ public $itemsPerPage;
2415
+ public $kind;
2416
+ public $nextLink;
2417
+ public $previousLink;
2418
+ protected $__profileInfoType = 'Google_GaDataProfileInfo';
2419
+ protected $__profileInfoDataType = '';
2420
+ public $profileInfo;
2421
+ protected $__queryType = 'Google_GaDataQuery';
2422
+ protected $__queryDataType = '';
2423
+ public $query;
2424
+ public $rows;
2425
+ public $selfLink;
2426
+ public $totalResults;
2427
+ public $totalsForAllResults;
2428
+ public function setColumnHeaders(/* array(Google_GaDataColumnHeaders) */ $columnHeaders) {
2429
+ $this->assertIsArray($columnHeaders, 'Google_GaDataColumnHeaders', __METHOD__);
2430
+ $this->columnHeaders = $columnHeaders;
2431
+ }
2432
+ public function getColumnHeaders() {
2433
+ return $this->columnHeaders;
2434
+ }
2435
+ public function setContainsSampledData( $containsSampledData) {
2436
+ $this->containsSampledData = $containsSampledData;
2437
+ }
2438
+ public function getContainsSampledData() {
2439
+ return $this->containsSampledData;
2440
+ }
2441
+ public function setId( $id) {
2442
+ $this->id = $id;
2443
+ }
2444
+ public function getId() {
2445
+ return $this->id;
2446
+ }
2447
+ public function setItemsPerPage( $itemsPerPage) {
2448
+ $this->itemsPerPage = $itemsPerPage;
2449
+ }
2450
+ public function getItemsPerPage() {
2451
+ return $this->itemsPerPage;
2452
+ }
2453
+ public function setKind( $kind) {
2454
+ $this->kind = $kind;
2455
+ }
2456
+ public function getKind() {
2457
+ return $this->kind;
2458
+ }
2459
+ public function setNextLink( $nextLink) {
2460
+ $this->nextLink = $nextLink;
2461
+ }
2462
+ public function getNextLink() {
2463
+ return $this->nextLink;
2464
+ }
2465
+ public function setPreviousLink( $previousLink) {
2466
+ $this->previousLink = $previousLink;
2467
+ }
2468
+ public function getPreviousLink() {
2469
+ return $this->previousLink;
2470
+ }
2471
+ public function setProfileInfo(Google_GaDataProfileInfo $profileInfo) {
2472
+ $this->profileInfo = $profileInfo;
2473
+ }
2474
+ public function getProfileInfo() {
2475
+ return $this->profileInfo;
2476
+ }
2477
+ public function setQuery(Google_GaDataQuery $query) {
2478
+ $this->query = $query;
2479
+ }
2480
+ public function getQuery() {
2481
+ return $this->query;
2482
+ }
2483
+ public function setRows(/* array(Google_string) */ $rows) {
2484
+ $this->assertIsArray($rows, 'Google_string', __METHOD__);
2485
+ $this->rows = $rows;
2486
+ }
2487
+ public function getRows() {
2488
+ return $this->rows;
2489
+ }
2490
+ public function setSelfLink( $selfLink) {
2491
+ $this->selfLink = $selfLink;
2492
+ }
2493
+ public function getSelfLink() {
2494
+ return $this->selfLink;
2495
+ }
2496
+ public function setTotalResults( $totalResults) {
2497
+ $this->totalResults = $totalResults;
2498
+ }
2499
+ public function getTotalResults() {
2500
+ return $this->totalResults;
2501
+ }
2502
+ public function setTotalsForAllResults( $totalsForAllResults) {
2503
+ $this->totalsForAllResults = $totalsForAllResults;
2504
+ }
2505
+ public function getTotalsForAllResults() {
2506
+ return $this->totalsForAllResults;
2507
+ }
2508
+ }
2509
+
2510
+ class Google_GaDataColumnHeaders extends Google_Model {
2511
+ public $columnType;
2512
+ public $dataType;
2513
+ public $name;
2514
+ public function setColumnType( $columnType) {
2515
+ $this->columnType = $columnType;
2516
+ }
2517
+ public function getColumnType() {
2518
+ return $this->columnType;
2519
+ }
2520
+ public function setDataType( $dataType) {
2521
+ $this->dataType = $dataType;
2522
+ }
2523
+ public function getDataType() {
2524
+ return $this->dataType;
2525
+ }
2526
+ public function setName( $name) {
2527
+ $this->name = $name;
2528
+ }
2529
+ public function getName() {
2530
+ return $this->name;
2531
+ }
2532
+ }
2533
+
2534
+ class Google_GaDataProfileInfo extends Google_Model {
2535
+ public $accountId;
2536
+ public $internalWebPropertyId;
2537
+ public $profileId;
2538
+ public $profileName;
2539
+ public $tableId;
2540
+ public $webPropertyId;
2541
+ public function setAccountId( $accountId) {
2542
+ $this->accountId = $accountId;
2543
+ }
2544
+ public function getAccountId() {
2545
+ return $this->accountId;
2546
+ }
2547
+ public function setInternalWebPropertyId( $internalWebPropertyId) {
2548
+ $this->internalWebPropertyId = $internalWebPropertyId;
2549
+ }
2550
+ public function getInternalWebPropertyId() {
2551
+ return $this->internalWebPropertyId;
2552
+ }
2553
+ public function setProfileId( $profileId) {
2554
+ $this->profileId = $profileId;
2555
+ }
2556
+ public function getProfileId() {
2557
+ return $this->profileId;
2558
+ }
2559
+ public function setProfileName( $profileName) {
2560
+ $this->profileName = $profileName;
2561
+ }
2562
+ public function getProfileName() {
2563
+ return $this->profileName;
2564
+ }
2565
+ public function setTableId( $tableId) {
2566
+ $this->tableId = $tableId;
2567
+ }
2568
+ public function getTableId() {
2569
+ return $this->tableId;
2570
+ }
2571
+ public function setWebPropertyId( $webPropertyId) {
2572
+ $this->webPropertyId = $webPropertyId;
2573
+ }
2574
+ public function getWebPropertyId() {
2575
+ return $this->webPropertyId;
2576
+ }
2577
+ }
2578
+
2579
+ class Google_GaDataQuery extends Google_Model {
2580
+ public $dimensions;
2581
+ public $end_date;
2582
+ public $filters;
2583
+ public $ids;
2584
+ public $max_results;
2585
+ public $metrics;
2586
+ public $segment;
2587
+ public $sort;
2588
+ public $start_date;
2589
+ public $start_index;
2590
+ public function setDimensions( $dimensions) {
2591
+ $this->dimensions = $dimensions;
2592
+ }
2593
+ public function getDimensions() {
2594
+ return $this->dimensions;
2595
+ }
2596
+ public function setEnd_date( $end_date) {
2597
+ $this->end_date = $end_date;
2598
+ }
2599
+ public function getEnd_date() {
2600
+ return $this->end_date;
2601
+ }
2602
+ public function setFilters( $filters) {
2603
+ $this->filters = $filters;
2604
+ }
2605
+ public function getFilters() {
2606
+ return $this->filters;
2607
+ }
2608
+ public function setIds( $ids) {
2609
+ $this->ids = $ids;
2610
+ }
2611
+ public function getIds() {
2612
+ return $this->ids;
2613
+ }
2614
+ public function setMax_results( $max_results) {
2615
+ $this->max_results = $max_results;
2616
+ }
2617
+ public function getMax_results() {
2618
+ return $this->max_results;
2619
+ }
2620
+ public function setMetrics(/* array(Google_string) */ $metrics) {
2621
+ $this->assertIsArray($metrics, 'Google_string', __METHOD__);
2622
+ $this->metrics = $metrics;
2623
+ }
2624
+ public function getMetrics() {
2625
+ return $this->metrics;
2626
+ }
2627
+ public function setSegment( $segment) {
2628
+ $this->segment = $segment;
2629
+ }
2630
+ public function getSegment() {
2631
+ return $this->segment;
2632
+ }
2633
+ public function setSort(/* array(Google_string) */ $sort) {
2634
+ $this->assertIsArray($sort, 'Google_string', __METHOD__);
2635
+ $this->sort = $sort;
2636
+ }
2637
+ public function getSort() {
2638
+ return $this->sort;
2639
+ }
2640
+ public function setStart_date( $start_date) {
2641
+ $this->start_date = $start_date;
2642
+ }
2643
+ public function getStart_date() {
2644
+ return $this->start_date;
2645
+ }
2646
+ public function setStart_index( $start_index) {
2647
+ $this->start_index = $start_index;
2648
+ }
2649
+ public function getStart_index() {
2650
+ return $this->start_index;
2651
+ }
2652
+ }
2653
+
2654
+ class Google_Goal extends Google_Model {
2655
+ public $accountId;
2656
+ public $active;
2657
+ public $created;
2658
+ protected $__eventDetailsType = 'Google_GoalEventDetails';
2659
+ protected $__eventDetailsDataType = '';
2660
+ public $eventDetails;
2661
+ public $id;
2662
+ public $internalWebPropertyId;
2663
+ public $kind;
2664
+ public $name;
2665
+ protected $__parentLinkType = 'Google_GoalParentLink';
2666
+ protected $__parentLinkDataType = '';
2667
+ public $parentLink;
2668
+ public $profileId;
2669
+ public $selfLink;
2670
+ public $type;
2671
+ public $updated;
2672
+ protected $__urlDestinationDetailsType = 'Google_GoalUrlDestinationDetails';
2673
+ protected $__urlDestinationDetailsDataType = '';
2674
+ public $urlDestinationDetails;
2675
+ public $value;
2676
+ protected $__visitNumPagesDetailsType = 'Google_GoalVisitNumPagesDetails';
2677
+ protected $__visitNumPagesDetailsDataType = '';
2678
+ public $visitNumPagesDetails;
2679
+ protected $__visitTimeOnSiteDetailsType = 'Google_GoalVisitTimeOnSiteDetails';
2680
+ protected $__visitTimeOnSiteDetailsDataType = '';
2681
+ public $visitTimeOnSiteDetails;
2682
+ public $webPropertyId;
2683
+ public function setAccountId( $accountId) {
2684
+ $this->accountId = $accountId;
2685
+ }
2686
+ public function getAccountId() {
2687
+ return $this->accountId;
2688
+ }
2689
+ public function setActive( $active) {
2690
+ $this->active = $active;
2691
+ }
2692
+ public function getActive() {
2693
+ return $this->active;
2694
+ }
2695
+ public function setCreated( $created) {
2696
+ $this->created = $created;
2697
+ }
2698
+ public function getCreated() {
2699
+ return $this->created;
2700
+ }
2701
+ public function setEventDetails(Google_GoalEventDetails $eventDetails) {
2702
+ $this->eventDetails = $eventDetails;
2703
+ }
2704
+ public function getEventDetails() {
2705
+ return $this->eventDetails;
2706
+ }
2707
+ public function setId( $id) {
2708
+ $this->id = $id;
2709
+ }
2710
+ public function getId() {
2711
+ return $this->id;
2712
+ }
2713
+ public function setInternalWebPropertyId( $internalWebPropertyId) {
2714
+ $this->internalWebPropertyId = $internalWebPropertyId;
2715
+ }
2716
+ public function getInternalWebPropertyId() {
2717
+ return $this->internalWebPropertyId;
2718
+ }
2719
+ public function setKind( $kind) {
2720
+ $this->kind = $kind;
2721
+ }
2722
+ public function getKind() {
2723
+ return $this->kind;
2724
+ }
2725
+ public function setName( $name) {
2726
+ $this->name = $name;
2727
+ }
2728
+ public function getName() {
2729
+ return $this->name;
2730
+ }
2731
+ public function setParentLink(Google_GoalParentLink $parentLink) {
2732
+ $this->parentLink = $parentLink;
2733
+ }
2734
+ public function getParentLink() {
2735
+ return $this->parentLink;
2736
+ }
2737
+ public function setProfileId( $profileId) {
2738
+ $this->profileId = $profileId;
2739
+ }
2740
+ public function getProfileId() {
2741
+ return $this->profileId;
2742
+ }
2743
+ public function setSelfLink( $selfLink) {
2744
+ $this->selfLink = $selfLink;
2745
+ }
2746
+ public function getSelfLink() {
2747
+ return $this->selfLink;
2748
+ }
2749
+ public function setType( $type) {
2750
+ $this->type = $type;
2751
+ }
2752
+ public function getType() {
2753
+ return $this->type;
2754
+ }
2755
+ public function setUpdated( $updated) {
2756
+ $this->updated = $updated;
2757
+ }
2758
+ public function getUpdated() {
2759
+ return $this->updated;
2760
+ }
2761
+ public function setUrlDestinationDetails(Google_GoalUrlDestinationDetails $urlDestinationDetails) {
2762
+ $this->urlDestinationDetails = $urlDestinationDetails;
2763
+ }
2764
+ public function getUrlDestinationDetails() {
2765
+ return $this->urlDestinationDetails;
2766
+ }
2767
+ public function setValue( $value) {
2768
+ $this->value = $value;
2769
+ }
2770
+ public function getValue() {
2771
+ return $this->value;
2772
+ }
2773
+ public function setVisitNumPagesDetails(Google_GoalVisitNumPagesDetails $visitNumPagesDetails) {
2774
+ $this->visitNumPagesDetails = $visitNumPagesDetails;
2775
+ }
2776
+ public function getVisitNumPagesDetails() {
2777
+ return $this->visitNumPagesDetails;
2778
+ }
2779
+ public function setVisitTimeOnSiteDetails(Google_GoalVisitTimeOnSiteDetails $visitTimeOnSiteDetails) {
2780
+ $this->visitTimeOnSiteDetails = $visitTimeOnSiteDetails;
2781
+ }
2782
+ public function getVisitTimeOnSiteDetails() {
2783
+ return $this->visitTimeOnSiteDetails;
2784
+ }
2785
+ public function setWebPropertyId( $webPropertyId) {
2786
+ $this->webPropertyId = $webPropertyId;
2787
+ }
2788
+ public function getWebPropertyId() {
2789
+ return $this->webPropertyId;
2790
+ }
2791
+ }
2792
+
2793
+ class Google_GoalEventDetails extends Google_Model {
2794
+ protected $__eventConditionsType = 'Google_GoalEventDetailsEventConditions';
2795
+ protected $__eventConditionsDataType = 'array';
2796
+ public $eventConditions;
2797
+ public $useEventValue;
2798
+ public function setEventConditions(/* array(Google_GoalEventDetailsEventConditions) */ $eventConditions) {
2799
+ $this->assertIsArray($eventConditions, 'Google_GoalEventDetailsEventConditions', __METHOD__);
2800
+ $this->eventConditions = $eventConditions;
2801
+ }
2802
+ public function getEventConditions() {
2803
+ return $this->eventConditions;
2804
+ }
2805
+ public function setUseEventValue( $useEventValue) {
2806
+ $this->useEventValue = $useEventValue;
2807
+ }
2808
+ public function getUseEventValue() {
2809
+ return $this->useEventValue;
2810
+ }
2811
+ }
2812
+
2813
+ class Google_GoalEventDetailsEventConditions extends Google_Model {
2814
+ public $comparisonType;
2815
+ public $comparisonValue;
2816
+ public $expression;
2817
+ public $matchType;
2818
+ public $type;
2819
+ public function setComparisonType( $comparisonType) {
2820
+ $this->comparisonType = $comparisonType;
2821
+ }
2822
+ public function getComparisonType() {
2823
+ return $this->comparisonType;
2824
+ }
2825
+ public function setComparisonValue( $comparisonValue) {
2826
+ $this->comparisonValue = $comparisonValue;
2827
+ }
2828
+ public function getComparisonValue() {
2829
+ return $this->comparisonValue;
2830
+ }
2831
+ public function setExpression( $expression) {
2832
+ $this->expression = $expression;
2833
+ }
2834
+ public function getExpression() {
2835
+ return $this->expression;
2836
+ }
2837
+ public function setMatchType( $matchType) {
2838
+ $this->matchType = $matchType;
2839
+ }
2840
+ public function getMatchType() {
2841
+ return $this->matchType;
2842
+ }
2843
+ public function setType( $type) {
2844
+ $this->type = $type;
2845
+ }
2846
+ public function getType() {
2847
+ return $this->type;
2848
+ }
2849
+ }
2850
+
2851
+ class Google_GoalParentLink extends Google_Model {
2852
+ public $href;
2853
+ public $type;
2854
+ public function setHref( $href) {
2855
+ $this->href = $href;
2856
+ }
2857
+ public function getHref() {
2858
+ return $this->href;
2859
+ }
2860
+ public function setType( $type) {
2861
+ $this->type = $type;
2862
+ }
2863
+ public function getType() {
2864
+ return $this->type;
2865
+ }
2866
+ }
2867
+
2868
+ class Google_GoalUrlDestinationDetails extends Google_Model {
2869
+ public $caseSensitive;
2870
+ public $firstStepRequired;
2871
+ public $matchType;
2872
+ protected $__stepsType = 'Google_GoalUrlDestinationDetailsSteps';
2873
+ protected $__stepsDataType = 'array';
2874
+ public $steps;
2875
+ public $url;
2876
+ public function setCaseSensitive( $caseSensitive) {
2877
+ $this->caseSensitive = $caseSensitive;
2878
+ }
2879
+ public function getCaseSensitive() {
2880
+ return $this->caseSensitive;
2881
+ }
2882
+ public function setFirstStepRequired( $firstStepRequired) {
2883
+ $this->firstStepRequired = $firstStepRequired;
2884
+ }
2885
+ public function getFirstStepRequired() {
2886
+ return $this->firstStepRequired;
2887
+ }
2888
+ public function setMatchType( $matchType) {
2889
+ $this->matchType = $matchType;
2890
+ }
2891
+ public function getMatchType() {
2892
+ return $this->matchType;
2893
+ }
2894
+ public function setSteps(/* array(Google_GoalUrlDestinationDetailsSteps) */ $steps) {
2895
+ $this->assertIsArray($steps, 'Google_GoalUrlDestinationDetailsSteps', __METHOD__);
2896
+ $this->steps = $steps;
2897
+ }
2898
+ public function getSteps() {
2899
+ return $this->steps;
2900
+ }
2901
+ public function setUrl( $url) {
2902
+ $this->url = $url;
2903
+ }
2904
+ public function getUrl() {
2905
+ return $this->url;
2906
+ }
2907
+ }
2908
+
2909
+ class Google_GoalUrlDestinationDetailsSteps extends Google_Model {
2910
+ public $name;
2911
+ public $number;
2912
+ public $url;
2913
+ public function setName( $name) {
2914
+ $this->name = $name;
2915
+ }
2916
+ public function getName() {
2917
+ return $this->name;
2918
+ }
2919
+ public function setNumber( $number) {
2920
+ $this->number = $number;
2921
+ }
2922
+ public function getNumber() {
2923
+ return $this->number;
2924
+ }
2925
+ public function setUrl( $url) {
2926
+ $this->url = $url;
2927
+ }
2928
+ public function getUrl() {
2929
+ return $this->url;
2930
+ }
2931
+ }
2932
+
2933
+ class Google_GoalVisitNumPagesDetails extends Google_Model {
2934
+ public $comparisonType;
2935
+ public $comparisonValue;
2936
+ public function setComparisonType( $comparisonType) {
2937
+ $this->comparisonType = $comparisonType;
2938
+ }
2939
+ public function getComparisonType() {
2940
+ return $this->comparisonType;
2941
+ }
2942
+ public function setComparisonValue( $comparisonValue) {
2943
+ $this->comparisonValue = $comparisonValue;
2944
+ }
2945
+ public function getComparisonValue() {
2946
+ return $this->comparisonValue;
2947
+ }
2948
+ }
2949
+
2950
+ class Google_GoalVisitTimeOnSiteDetails extends Google_Model {
2951
+ public $comparisonType;
2952
+ public $comparisonValue;
2953
+ public function setComparisonType( $comparisonType) {
2954
+ $this->comparisonType = $comparisonType;
2955
+ }
2956
+ public function getComparisonType() {
2957
+ return $this->comparisonType;
2958
+ }
2959
+ public function setComparisonValue( $comparisonValue) {
2960
+ $this->comparisonValue = $comparisonValue;
2961
+ }
2962
+ public function getComparisonValue() {
2963
+ return $this->comparisonValue;
2964
+ }
2965
+ }
2966
+
2967
+ class Google_Goals extends Google_Model {
2968
+ protected $__itemsType = 'Google_Goal';
2969
+ protected $__itemsDataType = 'array';
2970
+ public $items;
2971
+ public $itemsPerPage;
2972
+ public $kind;
2973
+ public $nextLink;
2974
+ public $previousLink;
2975
+ public $startIndex;
2976
+ public $totalResults;
2977
+ public $username;
2978
+ public function setItems(/* array(Google_Goal) */ $items) {
2979
+ $this->assertIsArray($items, 'Google_Goal', __METHOD__);
2980
+ $this->items = $items;
2981
+ }
2982
+ public function getItems() {
2983
+ return $this->items;
2984
+ }
2985
+ public function setItemsPerPage( $itemsPerPage) {
2986
+ $this->itemsPerPage = $itemsPerPage;
2987
+ }
2988
+ public function getItemsPerPage() {
2989
+ return $this->itemsPerPage;
2990
+ }
2991
+ public function setKind( $kind) {
2992
+ $this->kind = $kind;
2993
+ }
2994
+ public function getKind() {
2995
+ return $this->kind;
2996
+ }
2997
+ public function setNextLink( $nextLink) {
2998
+ $this->nextLink = $nextLink;
2999
+ }
3000
+ public function getNextLink() {
3001
+ return $this->nextLink;
3002
+ }
3003
+ public function setPreviousLink( $previousLink) {
3004
+ $this->previousLink = $previousLink;
3005
+ }
3006
+ public function getPreviousLink() {
3007
+ return $this->previousLink;
3008
+ }
3009
+ public function setStartIndex( $startIndex) {
3010
+ $this->startIndex = $startIndex;
3011
+ }
3012
+ public function getStartIndex() {
3013
+ return $this->startIndex;
3014
+ }
3015
+ public function setTotalResults( $totalResults) {
3016
+ $this->totalResults = $totalResults;
3017
+ }
3018
+ public function getTotalResults() {
3019
+ return $this->totalResults;
3020
+ }
3021
+ public function setUsername( $username) {
3022
+ $this->username = $username;
3023
+ }
3024
+ public function getUsername() {
3025
+ return $this->username;
3026
+ }
3027
+ }
3028
+
3029
+ class Google_McfData extends Google_Model {
3030
+ protected $__columnHeadersType = 'Google_McfDataColumnHeaders';
3031
+ protected $__columnHeadersDataType = 'array';
3032
+ public $columnHeaders;
3033
+ public $containsSampledData;
3034
+ public $id;
3035
+ public $itemsPerPage;
3036
+ public $kind;
3037
+ public $nextLink;
3038
+ public $previousLink;
3039
+ protected $__profileInfoType = 'Google_McfDataProfileInfo';
3040
+ protected $__profileInfoDataType = '';
3041
+ public $profileInfo;
3042
+ protected $__queryType = 'Google_McfDataQuery';
3043
+ protected $__queryDataType = '';
3044
+ public $query;
3045
+ protected $__rowsType = 'Google_McfDataRows';
3046
+ protected $__rowsDataType = 'array';
3047
+ public $rows;
3048
+ public $selfLink;
3049
+ public $totalResults;
3050
+ public $totalsForAllResults;
3051
+ public function setColumnHeaders(/* array(Google_McfDataColumnHeaders) */ $columnHeaders) {
3052
+ $this->assertIsArray($columnHeaders, 'Google_McfDataColumnHeaders', __METHOD__);
3053
+ $this->columnHeaders = $columnHeaders;
3054
+ }
3055
+ public function getColumnHeaders() {
3056
+ return $this->columnHeaders;
3057
+ }
3058
+ public function setContainsSampledData( $containsSampledData) {
3059
+ $this->containsSampledData = $containsSampledData;
3060
+ }
3061
+ public function getContainsSampledData() {
3062
+ return $this->containsSampledData;
3063
+ }
3064
+ public function setId( $id) {
3065
+ $this->id = $id;
3066
+ }
3067
+ public function getId() {
3068
+ return $this->id;
3069
+ }
3070
+ public function setItemsPerPage( $itemsPerPage) {
3071
+ $this->itemsPerPage = $itemsPerPage;
3072
+ }
3073
+ public function getItemsPerPage() {
3074
+ return $this->itemsPerPage;
3075
+ }
3076
+ public function setKind( $kind) {
3077
+ $this->kind = $kind;
3078
+ }
3079
+ public function getKind() {
3080
+ return $this->kind;
3081
+ }
3082
+ public function setNextLink( $nextLink) {
3083
+ $this->nextLink = $nextLink;
3084
+ }
3085
+ public function getNextLink() {
3086
+ return $this->nextLink;
3087
+ }
3088
+ public function setPreviousLink( $previousLink) {
3089
+ $this->previousLink = $previousLink;
3090
+ }
3091
+ public function getPreviousLink() {
3092
+ return $this->previousLink;
3093
+ }
3094
+ public function setProfileInfo(Google_McfDataProfileInfo $profileInfo) {
3095
+ $this->profileInfo = $profileInfo;
3096
+ }
3097
+ public function getProfileInfo() {
3098
+ return $this->profileInfo;
3099
+ }
3100
+ public function setQuery(Google_McfDataQuery $query) {
3101
+ $this->query = $query;
3102
+ }
3103
+ public function getQuery() {
3104
+ return $this->query;
3105
+ }
3106
+ public function setRows(/* array(Google_McfDataRows) */ $rows) {
3107
+ $this->assertIsArray($rows, 'Google_McfDataRows', __METHOD__);
3108
+ $this->rows = $rows;
3109
+ }
3110
+ public function getRows() {
3111
+ return $this->rows;
3112
+ }
3113
+ public function setSelfLink( $selfLink) {
3114
+ $this->selfLink = $selfLink;
3115
+ }
3116
+ public function getSelfLink() {
3117
+ return $this->selfLink;
3118
+ }
3119
+ public function setTotalResults( $totalResults) {
3120
+ $this->totalResults = $totalResults;
3121
+ }
3122
+ public function getTotalResults() {
3123
+ return $this->totalResults;
3124
+ }
3125
+ public function setTotalsForAllResults( $totalsForAllResults) {
3126
+ $this->totalsForAllResults = $totalsForAllResults;
3127
+ }
3128
+ public function getTotalsForAllResults() {
3129
+ return $this->totalsForAllResults;
3130
+ }
3131
+ }
3132
+
3133
+ class Google_McfDataColumnHeaders extends Google_Model {
3134
+ public $columnType;
3135
+ public $dataType;
3136
+ public $name;
3137
+ public function setColumnType( $columnType) {
3138
+ $this->columnType = $columnType;
3139
+ }
3140
+ public function getColumnType() {
3141
+ return $this->columnType;
3142
+ }
3143
+ public function setDataType( $dataType) {
3144
+ $this->dataType = $dataType;
3145
+ }
3146
+ public function getDataType() {
3147
+ return $this->dataType;
3148
+ }
3149
+ public function setName( $name) {
3150
+ $this->name = $name;
3151
+ }
3152
+ public function getName() {
3153
+ return $this->name;
3154
+ }
3155
+ }
3156
+
3157
+ class Google_McfDataProfileInfo extends Google_Model {
3158
+ public $accountId;
3159
+ public $internalWebPropertyId;
3160
+ public $profileId;
3161
+ public $profileName;
3162
+ public $tableId;
3163
+ public $webPropertyId;
3164
+ public function setAccountId( $accountId) {
3165
+ $this->accountId = $accountId;
3166
+ }
3167
+ public function getAccountId() {
3168
+ return $this->accountId;
3169
+ }
3170
+ public function setInternalWebPropertyId( $internalWebPropertyId) {
3171
+ $this->internalWebPropertyId = $internalWebPropertyId;
3172
+ }
3173
+ public function getInternalWebPropertyId() {
3174
+ return $this->internalWebPropertyId;
3175
+ }
3176
+ public function setProfileId( $profileId) {
3177
+ $this->profileId = $profileId;
3178
+ }
3179
+ public function getProfileId() {
3180
+ return $this->profileId;
3181
+ }
3182
+ public function setProfileName( $profileName) {
3183
+ $this->profileName = $profileName;
3184
+ }
3185
+ public function getProfileName() {
3186
+ return $this->profileName;
3187
+ }
3188
+ public function setTableId( $tableId) {
3189
+ $this->tableId = $tableId;
3190
+ }
3191
+ public function getTableId() {
3192
+ return $this->tableId;
3193
+ }
3194
+ public function setWebPropertyId( $webPropertyId) {
3195
+ $this->webPropertyId = $webPropertyId;
3196
+ }
3197
+ public function getWebPropertyId() {
3198
+ return $this->webPropertyId;
3199
+ }
3200
+ }
3201
+
3202
+ class Google_McfDataQuery extends Google_Model {
3203
+ public $dimensions;
3204
+ public $end_date;
3205
+ public $filters;
3206
+ public $ids;
3207
+ public $max_results;
3208
+ public $metrics;
3209
+ public $segment;
3210
+ public $sort;
3211
+ public $start_date;
3212
+ public $start_index;
3213
+ public function setDimensions( $dimensions) {
3214
+ $this->dimensions = $dimensions;
3215
+ }
3216
+ public function getDimensions() {
3217
+ return $this->dimensions;
3218
+ }
3219
+ public function setEnd_date( $end_date) {
3220
+ $this->end_date = $end_date;
3221
+ }
3222
+ public function getEnd_date() {
3223
+ return $this->end_date;
3224
+ }
3225
+ public function setFilters( $filters) {
3226
+ $this->filters = $filters;
3227
+ }
3228
+ public function getFilters() {
3229
+ return $this->filters;
3230
+ }
3231
+ public function setIds( $ids) {
3232
+ $this->ids = $ids;
3233
+ }
3234
+ public function getIds() {
3235
+ return $this->ids;
3236
+ }
3237
+ public function setMax_results( $max_results) {
3238
+ $this->max_results = $max_results;
3239
+ }
3240
+ public function getMax_results() {
3241
+ return $this->max_results;
3242
+ }
3243
+ public function setMetrics(/* array(Google_string) */ $metrics) {
3244
+ $this->assertIsArray($metrics, 'Google_string', __METHOD__);
3245
+ $this->metrics = $metrics;
3246
+ }
3247
+ public function getMetrics() {
3248
+ return $this->metrics;
3249
+ }
3250
+ public function setSegment( $segment) {
3251
+ $this->segment = $segment;
3252
+ }
3253
+ public function getSegment() {
3254
+ return $this->segment;
3255
+ }
3256
+ public function setSort(/* array(Google_string) */ $sort) {
3257
+ $this->assertIsArray($sort, 'Google_string', __METHOD__);
3258
+ $this->sort = $sort;
3259
+ }
3260
+ public function getSort() {
3261
+ return $this->sort;
3262
+ }
3263
+ public function setStart_date( $start_date) {
3264
+ $this->start_date = $start_date;
3265
+ }
3266
+ public function getStart_date() {
3267
+ return $this->start_date;
3268
+ }
3269
+ public function setStart_index( $start_index) {
3270
+ $this->start_index = $start_index;
3271
+ }
3272
+ public function getStart_index() {
3273
+ return $this->start_index;
3274
+ }
3275
+ }
3276
+
3277
+ class Google_McfDataRows extends Google_Model {
3278
+ protected $__conversionPathValueType = 'Google_McfDataRowsConversionPathValue';
3279
+ protected $__conversionPathValueDataType = 'array';
3280
+ public $conversionPathValue;
3281
+ public $primitiveValue;
3282
+ public function setConversionPathValue(/* array(Google_McfDataRowsConversionPathValue) */ $conversionPathValue) {
3283
+ $this->assertIsArray($conversionPathValue, 'Google_McfDataRowsConversionPathValue', __METHOD__);
3284
+ $this->conversionPathValue = $conversionPathValue;
3285
+ }
3286
+ public function getConversionPathValue() {
3287
+ return $this->conversionPathValue;
3288
+ }
3289
+ public function setPrimitiveValue( $primitiveValue) {
3290
+ $this->primitiveValue = $primitiveValue;
3291
+ }
3292
+ public function getPrimitiveValue() {
3293
+ return $this->primitiveValue;
3294
+ }
3295
+ }
3296
+
3297
+ class Google_McfDataRowsConversionPathValue extends Google_Model {
3298
+ public $interactionType;
3299
+ public $nodeValue;
3300
+ public function setInteractionType( $interactionType) {
3301
+ $this->interactionType = $interactionType;
3302
+ }
3303
+ public function getInteractionType() {
3304
+ return $this->interactionType;
3305
+ }
3306
+ public function setNodeValue( $nodeValue) {
3307
+ $this->nodeValue = $nodeValue;
3308
+ }
3309
+ public function getNodeValue() {
3310
+ return $this->nodeValue;
3311
+ }
3312
+ }
3313
+
3314
+ class Google_Profile extends Google_Model {
3315
+ public $accountId;
3316
+ protected $__childLinkType = 'Google_ProfileChildLink';
3317
+ protected $__childLinkDataType = '';
3318
+ public $childLink;
3319
+ public $created;
3320
+ public $currency;
3321
+ public $defaultPage;
3322
+ public $eCommerceTracking;
3323
+ public $excludeQueryParameters;
3324
+ public $id;
3325
+ public $internalWebPropertyId;
3326
+ public $kind;
3327
+ public $name;
3328
+ protected $__parentLinkType = 'Google_ProfileParentLink';
3329
+ protected $__parentLinkDataType = '';
3330
+ public $parentLink;
3331
+ protected $__permissionsType = 'Google_ProfilePermissions';
3332
+ protected $__permissionsDataType = '';
3333
+ public $permissions;
3334
+ public $selfLink;
3335
+ public $siteSearchCategoryParameters;
3336
+ public $siteSearchQueryParameters;
3337
+ public $timezone;
3338
+ public $type;
3339
+ public $updated;
3340
+ public $webPropertyId;
3341
+ public $websiteUrl;
3342
+ public function setAccountId( $accountId) {
3343
+ $this->accountId = $accountId;
3344
+ }
3345
+ public function getAccountId() {
3346
+ return $this->accountId;
3347
+ }
3348
+ public function setChildLink(Google_ProfileChildLink $childLink) {
3349
+ $this->childLink = $childLink;
3350
+ }
3351
+ public function getChildLink() {
3352
+ return $this->childLink;
3353
+ }
3354
+ public function setCreated( $created) {
3355
+ $this->created = $created;
3356
+ }
3357
+ public function getCreated() {
3358
+ return $this->created;
3359
+ }
3360
+ public function setCurrency( $currency) {
3361
+ $this->currency = $currency;
3362
+ }
3363
+ public function getCurrency() {
3364
+ return $this->currency;
3365
+ }
3366
+ public function setDefaultPage( $defaultPage) {
3367
+ $this->defaultPage = $defaultPage;
3368
+ }
3369
+ public function getDefaultPage() {
3370
+ return $this->defaultPage;
3371
+ }
3372
+ public function setECommerceTracking( $eCommerceTracking) {
3373
+ $this->eCommerceTracking = $eCommerceTracking;
3374
+ }
3375
+ public function getECommerceTracking() {
3376
+ return $this->eCommerceTracking;
3377
+ }
3378
+ public function setExcludeQueryParameters( $excludeQueryParameters) {
3379
+ $this->excludeQueryParameters = $excludeQueryParameters;
3380
+ }
3381
+ public function getExcludeQueryParameters() {
3382
+ return $this->excludeQueryParameters;
3383
+ }
3384
+ public function setId( $id) {
3385
+ $this->id = $id;
3386
+ }
3387
+ public function getId() {
3388
+ return $this->id;
3389
+ }
3390
+ public function setInternalWebPropertyId( $internalWebPropertyId) {
3391
+ $this->internalWebPropertyId = $internalWebPropertyId;
3392
+ }
3393
+ public function getInternalWebPropertyId() {
3394
+ return $this->internalWebPropertyId;
3395
+ }
3396
+ public function setKind( $kind) {
3397
+ $this->kind = $kind;
3398
+ }
3399
+ public function getKind() {
3400
+ return $this->kind;
3401
+ }
3402
+ public function setName( $name) {
3403
+ $this->name = $name;
3404
+ }
3405
+ public function getName() {
3406
+ return $this->name;
3407
+ }
3408
+ public function setParentLink(Google_ProfileParentLink $parentLink) {
3409
+ $this->parentLink = $parentLink;
3410
+ }
3411
+ public function getParentLink() {
3412
+ return $this->parentLink;
3413
+ }
3414
+ public function setPermissions(Google_ProfilePermissions $permissions) {
3415
+ $this->permissions = $permissions;
3416
+ }
3417
+ public function getPermissions() {
3418
+ return $this->permissions;
3419
+ }
3420
+ public function setSelfLink( $selfLink) {
3421
+ $this->selfLink = $selfLink;
3422
+ }
3423
+ public function getSelfLink() {
3424
+ return $this->selfLink;
3425
+ }
3426
+ public function setSiteSearchCategoryParameters( $siteSearchCategoryParameters) {
3427
+ $this->siteSearchCategoryParameters = $siteSearchCategoryParameters;
3428
+ }
3429
+ public function getSiteSearchCategoryParameters() {
3430
+ return $this->siteSearchCategoryParameters;
3431
+ }
3432
+ public function setSiteSearchQueryParameters( $siteSearchQueryParameters) {
3433
+ $this->siteSearchQueryParameters = $siteSearchQueryParameters;
3434
+ }
3435
+ public function getSiteSearchQueryParameters() {
3436
+ return $this->siteSearchQueryParameters;
3437
+ }
3438
+ public function setTimezone( $timezone) {
3439
+ $this->timezone = $timezone;
3440
+ }
3441
+ public function getTimezone() {
3442
+ return $this->timezone;
3443
+ }
3444
+ public function setType( $type) {
3445
+ $this->type = $type;
3446
+ }
3447
+ public function getType() {
3448
+ return $this->type;
3449
+ }
3450
+ public function setUpdated( $updated) {
3451
+ $this->updated = $updated;
3452
+ }
3453
+ public function getUpdated() {
3454
+ return $this->updated;
3455
+ }
3456
+ public function setWebPropertyId( $webPropertyId) {
3457
+ $this->webPropertyId = $webPropertyId;
3458
+ }
3459
+ public function getWebPropertyId() {
3460
+ return $this->webPropertyId;
3461
+ }
3462
+ public function setWebsiteUrl( $websiteUrl) {
3463
+ $this->websiteUrl = $websiteUrl;
3464
+ }
3465
+ public function getWebsiteUrl() {
3466
+ return $this->websiteUrl;
3467
+ }
3468
+ }
3469
+
3470
+ class Google_ProfileChildLink extends Google_Model {
3471
+ public $href;
3472
+ public $type;
3473
+ public function setHref( $href) {
3474
+ $this->href = $href;
3475
+ }
3476
+ public function getHref() {
3477
+ return $this->href;
3478
+ }
3479
+ public function setType( $type) {
3480
+ $this->type = $type;
3481
+ }
3482
+ public function getType() {
3483
+ return $this->type;
3484
+ }
3485
+ }
3486
+
3487
+ class Google_ProfileParentLink extends Google_Model {
3488
+ public $href;
3489
+ public $type;
3490
+ public function setHref( $href) {
3491
+ $this->href = $href;
3492
+ }
3493
+ public function getHref() {
3494
+ return $this->href;
3495
+ }
3496
+ public function setType( $type) {
3497
+ $this->type = $type;
3498
+ }
3499
+ public function getType() {
3500
+ return $this->type;
3501
+ }
3502
+ }
3503
+
3504
+ class Google_ProfilePermissions extends Google_Model {
3505
+ public $effective;
3506
+ public function setEffective(/* array(Google_string) */ $effective) {
3507
+ $this->assertIsArray($effective, 'Google_string', __METHOD__);
3508
+ $this->effective = $effective;
3509
+ }
3510
+ public function getEffective() {
3511
+ return $this->effective;
3512
+ }
3513
+ }
3514
+
3515
+ class Google_ProfileRef extends Google_Model {
3516
+ public $accountId;
3517
+ public $href;
3518
+ public $id;
3519
+ public $internalWebPropertyId;
3520
+ public $kind;
3521
+ public $name;
3522
+ public $webPropertyId;
3523
+ public function setAccountId( $accountId) {
3524
+ $this->accountId = $accountId;
3525
+ }
3526
+ public function getAccountId() {
3527
+ return $this->accountId;
3528
+ }
3529
+ public function setHref( $href) {
3530
+ $this->href = $href;
3531
+ }
3532
+ public function getHref() {
3533
+ return $this->href;
3534
+ }
3535
+ public function setId( $id) {
3536
+ $this->id = $id;
3537
+ }
3538
+ public function getId() {
3539
+ return $this->id;
3540
+ }
3541
+ public function setInternalWebPropertyId( $internalWebPropertyId) {
3542
+ $this->internalWebPropertyId = $internalWebPropertyId;
3543
+ }
3544
+ public function getInternalWebPropertyId() {
3545
+ return $this->internalWebPropertyId;
3546
+ }
3547
+ public function setKind( $kind) {
3548
+ $this->kind = $kind;
3549
+ }
3550
+ public function getKind() {
3551
+ return $this->kind;
3552
+ }
3553
+ public function setName( $name) {
3554
+ $this->name = $name;
3555
+ }
3556
+ public function getName() {
3557
+ return $this->name;
3558
+ }
3559
+ public function setWebPropertyId( $webPropertyId) {
3560
+ $this->webPropertyId = $webPropertyId;
3561
+ }
3562
+ public function getWebPropertyId() {
3563
+ return $this->webPropertyId;
3564
+ }
3565
+ }
3566
+
3567
+ class Google_Profiles extends Google_Model {
3568
+ protected $__itemsType = 'Google_Profile';
3569
+ protected $__itemsDataType = 'array';
3570
+ public $items;
3571
+ public $itemsPerPage;
3572
+ public $kind;
3573
+ public $nextLink;
3574
+ public $previousLink;
3575
+ public $startIndex;
3576
+ public $totalResults;
3577
+ public $username;
3578
+ public function setItems(/* array(Google_Profile) */ $items) {
3579
+ $this->assertIsArray($items, 'Google_Profile', __METHOD__);
3580
+ $this->items = $items;
3581
+ }
3582
+ public function getItems() {
3583
+ return $this->items;
3584
+ }
3585
+ public function setItemsPerPage( $itemsPerPage) {
3586
+ $this->itemsPerPage = $itemsPerPage;
3587
+ }
3588
+ public function getItemsPerPage() {
3589
+ return $this->itemsPerPage;
3590
+ }
3591
+ public function setKind( $kind) {
3592
+ $this->kind = $kind;
3593
+ }
3594
+ public function getKind() {
3595
+ return $this->kind;
3596
+ }
3597
+ public function setNextLink( $nextLink) {
3598
+ $this->nextLink = $nextLink;
3599
+ }
3600
+ public function getNextLink() {
3601
+ return $this->nextLink;
3602
+ }
3603
+ public function setPreviousLink( $previousLink) {
3604
+ $this->previousLink = $previousLink;
3605
+ }
3606
+ public function getPreviousLink() {
3607
+ return $this->previousLink;
3608
+ }
3609
+ public function setStartIndex( $startIndex) {
3610
+ $this->startIndex = $startIndex;
3611
+ }
3612
+ public function getStartIndex() {
3613
+ return $this->startIndex;
3614
+ }
3615
+ public function setTotalResults( $totalResults) {
3616
+ $this->totalResults = $totalResults;
3617
+ }
3618
+ public function getTotalResults() {
3619
+ return $this->totalResults;
3620
+ }
3621
+ public function setUsername( $username) {
3622
+ $this->username = $username;
3623
+ }
3624
+ public function getUsername() {
3625
+ return $this->username;
3626
+ }
3627
+ }
3628
+
3629
+ class Google_RealtimeData extends Google_Model {
3630
+ protected $__columnHeadersType = 'Google_RealtimeDataColumnHeaders';
3631
+ protected $__columnHeadersDataType = 'array';
3632
+ public $columnHeaders;
3633
+ public $id;
3634
+ public $kind;
3635
+ protected $__profileInfoType = 'Google_RealtimeDataProfileInfo';
3636
+ protected $__profileInfoDataType = '';
3637
+ public $profileInfo;
3638
+ protected $__queryType = 'Google_RealtimeDataQuery';
3639
+ protected $__queryDataType = '';
3640
+ public $query;
3641
+ public $rows;
3642
+ public $selfLink;
3643
+ public $totalResults;
3644
+ public $totalsForAllResults;
3645
+ public function setColumnHeaders(/* array(Google_RealtimeDataColumnHeaders) */ $columnHeaders) {
3646
+ $this->assertIsArray($columnHeaders, 'Google_RealtimeDataColumnHeaders', __METHOD__);
3647
+ $this->columnHeaders = $columnHeaders;
3648
+ }
3649
+ public function getColumnHeaders() {
3650
+ return $this->columnHeaders;
3651
+ }
3652
+ public function setId( $id) {
3653
+ $this->id = $id;
3654
+ }
3655
+ public function getId() {
3656
+ return $this->id;
3657
+ }
3658
+ public function setKind( $kind) {
3659
+ $this->kind = $kind;
3660
+ }
3661
+ public function getKind() {
3662
+ return $this->kind;
3663
+ }
3664
+ public function setProfileInfo(Google_RealtimeDataProfileInfo $profileInfo) {
3665
+ $this->profileInfo = $profileInfo;
3666
+ }
3667
+ public function getProfileInfo() {
3668
+ return $this->profileInfo;
3669
+ }
3670
+ public function setQuery(Google_RealtimeDataQuery $query) {
3671
+ $this->query = $query;
3672
+ }
3673
+ public function getQuery() {
3674
+ return $this->query;
3675
+ }
3676
+ public function setRows(/* array(Google_string) */ $rows) {
3677
+ $this->assertIsArray($rows, 'Google_string', __METHOD__);
3678
+ $this->rows = $rows;
3679
+ }
3680
+ public function getRows() {
3681
+ return $this->rows;
3682
+ }
3683
+ public function setSelfLink( $selfLink) {
3684
+ $this->selfLink = $selfLink;
3685
+ }
3686
+ public function getSelfLink() {
3687
+ return $this->selfLink;
3688
+ }
3689
+ public function setTotalResults( $totalResults) {
3690
+ $this->totalResults = $totalResults;
3691
+ }
3692
+ public function getTotalResults() {
3693
+ return $this->totalResults;
3694
+ }
3695
+ public function setTotalsForAllResults( $totalsForAllResults) {
3696
+ $this->totalsForAllResults = $totalsForAllResults;
3697
+ }
3698
+ public function getTotalsForAllResults() {
3699
+ return $this->totalsForAllResults;
3700
+ }
3701
+ }
3702
+
3703
+ class Google_RealtimeDataColumnHeaders extends Google_Model {
3704
+ public $columnType;
3705
+ public $dataType;
3706
+ public $name;
3707
+ public function setColumnType( $columnType) {
3708
+ $this->columnType = $columnType;
3709
+ }
3710
+ public function getColumnType() {
3711
+ return $this->columnType;
3712
+ }
3713
+ public function setDataType( $dataType) {
3714
+ $this->dataType = $dataType;
3715
+ }
3716
+ public function getDataType() {
3717
+ return $this->dataType;
3718
+ }
3719
+ public function setName( $name) {
3720
+ $this->name = $name;
3721
+ }
3722
+ public function getName() {
3723
+ return $this->name;
3724
+ }
3725
+ }
3726
+
3727
+ class Google_RealtimeDataProfileInfo extends Google_Model {
3728
+ public $accountId;
3729
+ public $internalWebPropertyId;
3730
+ public $profileId;
3731
+ public $profileName;
3732
+ public $tableId;
3733
+ public $webPropertyId;
3734
+ public function setAccountId( $accountId) {
3735
+ $this->accountId = $accountId;
3736
+ }
3737
+ public function getAccountId() {
3738
+ return $this->accountId;
3739
+ }
3740
+ public function setInternalWebPropertyId( $internalWebPropertyId) {
3741
+ $this->internalWebPropertyId = $internalWebPropertyId;
3742
+ }
3743
+ public function getInternalWebPropertyId() {
3744
+ return $this->internalWebPropertyId;
3745
+ }
3746
+ public function setProfileId( $profileId) {
3747
+ $this->profileId = $profileId;
3748
+ }
3749
+ public function getProfileId() {
3750
+ return $this->profileId;
3751
+ }
3752
+ public function setProfileName( $profileName) {
3753
+ $this->profileName = $profileName;
3754
+ }
3755
+ public function getProfileName() {
3756
+ return $this->profileName;
3757
+ }
3758
+ public function setTableId( $tableId) {
3759
+ $this->tableId = $tableId;
3760
+ }
3761
+ public function getTableId() {
3762
+ return $this->tableId;
3763
+ }
3764
+ public function setWebPropertyId( $webPropertyId) {
3765
+ $this->webPropertyId = $webPropertyId;
3766
+ }
3767
+ public function getWebPropertyId() {
3768
+ return $this->webPropertyId;
3769
+ }
3770
+ }
3771
+
3772
+ class Google_RealtimeDataQuery extends Google_Model {
3773
+ public $dimensions;
3774
+ public $filters;
3775
+ public $ids;
3776
+ public $max_results;
3777
+ public $metrics;
3778
+ public $sort;
3779
+ public function setDimensions( $dimensions) {
3780
+ $this->dimensions = $dimensions;
3781
+ }
3782
+ public function getDimensions() {
3783
+ return $this->dimensions;
3784
+ }
3785
+ public function setFilters( $filters) {
3786
+ $this->filters = $filters;
3787
+ }
3788
+ public function getFilters() {
3789
+ return $this->filters;
3790
+ }
3791
+ public function setIds( $ids) {
3792
+ $this->ids = $ids;
3793
+ }
3794
+ public function getIds() {
3795
+ return $this->ids;
3796
+ }
3797
+ public function setMax_results( $max_results) {
3798
+ $this->max_results = $max_results;
3799
+ }
3800
+ public function getMax_results() {
3801
+ return $this->max_results;
3802
+ }
3803
+ public function setMetrics(/* array(Google_string) */ $metrics) {
3804
+ $this->assertIsArray($metrics, 'Google_string', __METHOD__);
3805
+ $this->metrics = $metrics;
3806
+ }
3807
+ public function getMetrics() {
3808
+ return $this->metrics;
3809
+ }
3810
+ public function setSort(/* array(Google_string) */ $sort) {
3811
+ $this->assertIsArray($sort, 'Google_string', __METHOD__);
3812
+ $this->sort = $sort;
3813
+ }
3814
+ public function getSort() {
3815
+ return $this->sort;
3816
+ }
3817
+ }
3818
+
3819
+ class Google_Segment extends Google_Model {
3820
+ public $created;
3821
+ public $definition;
3822
+ public $id;
3823
+ public $kind;
3824
+ public $name;
3825
+ public $segmentId;
3826
+ public $selfLink;
3827
+ public $updated;
3828
+ public function setCreated( $created) {
3829
+ $this->created = $created;
3830
+ }
3831
+ public function getCreated() {
3832
+ return $this->created;
3833
+ }
3834
+ public function setDefinition( $definition) {
3835
+ $this->definition = $definition;
3836
+ }
3837
+ public function getDefinition() {
3838
+ return $this->definition;
3839
+ }
3840
+ public function setId( $id) {
3841
+ $this->id = $id;
3842
+ }
3843
+ public function getId() {
3844
+ return $this->id;
3845
+ }
3846
+ public function setKind( $kind) {
3847
+ $this->kind = $kind;
3848
+ }
3849
+ public function getKind() {
3850
+ return $this->kind;
3851
+ }
3852
+ public function setName( $name) {
3853
+ $this->name = $name;
3854
+ }
3855
+ public function getName() {
3856
+ return $this->name;
3857
+ }
3858
+ public function setSegmentId( $segmentId) {
3859
+ $this->segmentId = $segmentId;
3860
+ }
3861
+ public function getSegmentId() {
3862
+ return $this->segmentId;
3863
+ }
3864
+ public function setSelfLink( $selfLink) {
3865
+ $this->selfLink = $selfLink;
3866
+ }
3867
+ public function getSelfLink() {
3868
+ return $this->selfLink;
3869
+ }
3870
+ public function setUpdated( $updated) {
3871
+ $this->updated = $updated;
3872
+ }
3873
+ public function getUpdated() {
3874
+ return $this->updated;
3875
+ }
3876
+ }
3877
+
3878
+ class Google_Segments extends Google_Model {
3879
+ protected $__itemsType = 'Google_Segment';
3880
+ protected $__itemsDataType = 'array';
3881
+ public $items;
3882
+ public $itemsPerPage;
3883
+ public $kind;
3884
+ public $nextLink;
3885
+ public $previousLink;
3886
+ public $startIndex;
3887
+ public $totalResults;
3888
+ public $username;
3889
+ public function setItems(/* array(Google_Segment) */ $items) {
3890
+ $this->assertIsArray($items, 'Google_Segment', __METHOD__);
3891
+ $this->items = $items;
3892
+ }
3893
+ public function getItems() {
3894
+ return $this->items;
3895
+ }
3896
+ public function setItemsPerPage( $itemsPerPage) {
3897
+ $this->itemsPerPage = $itemsPerPage;
3898
+ }
3899
+ public function getItemsPerPage() {
3900
+ return $this->itemsPerPage;
3901
+ }
3902
+ public function setKind( $kind) {
3903
+ $this->kind = $kind;
3904
+ }
3905
+ public function getKind() {
3906
+ return $this->kind;
3907
+ }
3908
+ public function setNextLink( $nextLink) {
3909
+ $this->nextLink = $nextLink;
3910
+ }
3911
+ public function getNextLink() {
3912
+ return $this->nextLink;
3913
+ }
3914
+ public function setPreviousLink( $previousLink) {
3915
+ $this->previousLink = $previousLink;
3916
+ }
3917
+ public function getPreviousLink() {
3918
+ return $this->previousLink;
3919
+ }
3920
+ public function setStartIndex( $startIndex) {
3921
+ $this->startIndex = $startIndex;
3922
+ }
3923
+ public function getStartIndex() {
3924
+ return $this->startIndex;
3925
+ }
3926
+ public function setTotalResults( $totalResults) {
3927
+ $this->totalResults = $totalResults;
3928
+ }
3929
+ public function getTotalResults() {
3930
+ return $this->totalResults;
3931
+ }
3932
+ public function setUsername( $username) {
3933
+ $this->username = $username;
3934
+ }
3935
+ public function getUsername() {
3936
+ return $this->username;
3937
+ }
3938
+ }
3939
+
3940
+ class Google_Upload extends Google_Model {
3941
+ public $accountId;
3942
+ public $customDataSourceId;
3943
+ public $errors;
3944
+ public $id;
3945
+ public $kind;
3946
+ public $status;
3947
+ public function setAccountId( $accountId) {
3948
+ $this->accountId = $accountId;
3949
+ }
3950
+ public function getAccountId() {
3951
+ return $this->accountId;
3952
+ }
3953
+ public function setCustomDataSourceId( $customDataSourceId) {
3954
+ $this->customDataSourceId = $customDataSourceId;
3955
+ }
3956
+ public function getCustomDataSourceId() {
3957
+ return $this->customDataSourceId;
3958
+ }
3959
+ public function setErrors(/* array(Google_string) */ $errors) {
3960
+ $this->assertIsArray($errors, 'Google_string', __METHOD__);
3961
+ $this->errors = $errors;
3962
+ }
3963
+ public function getErrors() {
3964
+ return $this->errors;
3965
+ }
3966
+ public function setId( $id) {
3967
+ $this->id = $id;
3968
+ }
3969
+ public function getId() {
3970
+ return $this->id;
3971
+ }
3972
+ public function setKind( $kind) {
3973
+ $this->kind = $kind;
3974
+ }
3975
+ public function getKind() {
3976
+ return $this->kind;
3977
+ }
3978
+ public function setStatus( $status) {
3979
+ $this->status = $status;
3980
+ }
3981
+ public function getStatus() {
3982
+ return $this->status;
3983
+ }
3984
+ }
3985
+
3986
+ class Google_Uploads extends Google_Model {
3987
+ protected $__itemsType = 'Google_Upload';
3988
+ protected $__itemsDataType = 'array';
3989
+ public $items;
3990
+ public $itemsPerPage;
3991
+ public $kind;
3992
+ public $nextLink;
3993
+ public $previousLink;
3994
+ public $startIndex;
3995
+ public $totalResults;
3996
+ public function setItems(/* array(Google_Upload) */ $items) {
3997
+ $this->assertIsArray($items, 'Google_Upload', __METHOD__);
3998
+ $this->items = $items;
3999
+ }
4000
+ public function getItems() {
4001
+ return $this->items;
4002
+ }
4003
+ public function setItemsPerPage( $itemsPerPage) {
4004
+ $this->itemsPerPage = $itemsPerPage;
4005
+ }
4006
+ public function getItemsPerPage() {
4007
+ return $this->itemsPerPage;
4008
+ }
4009
+ public function setKind( $kind) {
4010
+ $this->kind = $kind;
4011
+ }
4012
+ public function getKind() {
4013
+ return $this->kind;
4014
+ }
4015
+ public function setNextLink( $nextLink) {
4016
+ $this->nextLink = $nextLink;
4017
+ }
4018
+ public function getNextLink() {
4019
+ return $this->nextLink;
4020
+ }
4021
+ public function setPreviousLink( $previousLink) {
4022
+ $this->previousLink = $previousLink;
4023
+ }
4024
+ public function getPreviousLink() {
4025
+ return $this->previousLink;
4026
+ }
4027
+ public function setStartIndex( $startIndex) {
4028
+ $this->startIndex = $startIndex;
4029
+ }
4030
+ public function getStartIndex() {
4031
+ return $this->startIndex;
4032
+ }
4033
+ public function setTotalResults( $totalResults) {
4034
+ $this->totalResults = $totalResults;
4035
+ }
4036
+ public function getTotalResults() {
4037
+ return $this->totalResults;
4038
+ }
4039
+ }
4040
+
4041
+ class Google_UserRef extends Google_Model {
4042
+ public $email;
4043
+ public $id;
4044
+ public $kind;
4045
+ public function setEmail( $email) {
4046
+ $this->email = $email;
4047
+ }
4048
+ public function getEmail() {
4049
+ return $this->email;
4050
+ }
4051
+ public function setId( $id) {
4052
+ $this->id = $id;
4053
+ }
4054
+ public function getId() {
4055
+ return $this->id;
4056
+ }
4057
+ public function setKind( $kind) {
4058
+ $this->kind = $kind;
4059
+ }
4060
+ public function getKind() {
4061
+ return $this->kind;
4062
+ }
4063
+ }
4064
+
4065
+ class Google_WebPropertyRef extends Google_Model {
4066
+ public $accountId;
4067
+ public $href;
4068
+ public $id;
4069
+ public $internalWebPropertyId;
4070
+ public $kind;
4071
+ public $name;
4072
+ public function setAccountId( $accountId) {
4073
+ $this->accountId = $accountId;
4074
+ }
4075
+ public function getAccountId() {
4076
+ return $this->accountId;
4077
+ }
4078
+ public function setHref( $href) {
4079
+ $this->href = $href;
4080
+ }
4081
+ public function getHref() {
4082
+ return $this->href;
4083
+ }
4084
+ public function setId( $id) {
4085
+ $this->id = $id;
4086
+ }
4087
+ public function getId() {
4088
+ return $this->id;
4089
+ }
4090
+ public function setInternalWebPropertyId( $internalWebPropertyId) {
4091
+ $this->internalWebPropertyId = $internalWebPropertyId;
4092
+ }
4093
+ public function getInternalWebPropertyId() {
4094
+ return $this->internalWebPropertyId;
4095
+ }
4096
+ public function setKind( $kind) {
4097
+ $this->kind = $kind;
4098
+ }
4099
+ public function getKind() {
4100
+ return $this->kind;
4101
+ }
4102
+ public function setName( $name) {
4103
+ $this->name = $name;
4104
+ }
4105
+ public function getName() {
4106
+ return $this->name;
4107
+ }
4108
+ }
4109
+
4110
+ class Google_Webproperties extends Google_Model {
4111
+ protected $__itemsType = 'Google_Webproperty';
4112
+ protected $__itemsDataType = 'array';
4113
+ public $items;
4114
+ public $itemsPerPage;
4115
+ public $kind;
4116
+ public $nextLink;
4117
+ public $previousLink;
4118
+ public $startIndex;
4119
+ public $totalResults;
4120
+ public $username;
4121
+ public function setItems(/* array(Google_Webproperty) */ $items) {
4122
+ $this->assertIsArray($items, 'Google_Webproperty', __METHOD__);
4123
+ $this->items = $items;
4124
+ }
4125
+ public function getItems() {
4126
+ return $this->items;
4127
+ }
4128
+ public function setItemsPerPage( $itemsPerPage) {
4129
+ $this->itemsPerPage = $itemsPerPage;
4130
+ }
4131
+ public function getItemsPerPage() {
4132
+ return $this->itemsPerPage;
4133
+ }
4134
+ public function setKind( $kind) {
4135
+ $this->kind = $kind;
4136
+ }
4137
+ public function getKind() {
4138
+ return $this->kind;
4139
+ }
4140
+ public function setNextLink( $nextLink) {
4141
+ $this->nextLink = $nextLink;
4142
+ }
4143
+ public function getNextLink() {
4144
+ return $this->nextLink;
4145
+ }
4146
+ public function setPreviousLink( $previousLink) {
4147
+ $this->previousLink = $previousLink;
4148
+ }
4149
+ public function getPreviousLink() {
4150
+ return $this->previousLink;
4151
+ }
4152
+ public function setStartIndex( $startIndex) {
4153
+ $this->startIndex = $startIndex;
4154
+ }
4155
+ public function getStartIndex() {
4156
+ return $this->startIndex;
4157
+ }
4158
+ public function setTotalResults( $totalResults) {
4159
+ $this->totalResults = $totalResults;
4160
+ }
4161
+ public function getTotalResults() {
4162
+ return $this->totalResults;
4163
+ }
4164
+ public function setUsername( $username) {
4165
+ $this->username = $username;
4166
+ }
4167
+ public function getUsername() {
4168
+ return $this->username;
4169
+ }
4170
+ }
4171
+
4172
+ class Google_Webproperty extends Google_Model {
4173
+ public $accountId;
4174
+ protected $__childLinkType = 'Google_WebpropertyChildLink';
4175
+ protected $__childLinkDataType = '';
4176
+ public $childLink;
4177
+ public $created;
4178
+ public $defaultProfileId;
4179
+ public $id;
4180
+ public $industryVertical;
4181
+ public $internalWebPropertyId;
4182
+ public $kind;
4183
+ public $level;
4184
+ public $name;
4185
+ protected $__parentLinkType = 'Google_WebpropertyParentLink';
4186
+ protected $__parentLinkDataType = '';
4187
+ public $parentLink;
4188
+ protected $__permissionsType = 'Google_WebpropertyPermissions';
4189
+ protected $__permissionsDataType = '';
4190
+ public $permissions;
4191
+ public $profileCount;
4192
+ public $selfLink;
4193
+ public $updated;
4194
+ public $websiteUrl;
4195
+ public function setAccountId( $accountId) {
4196
+ $this->accountId = $accountId;
4197
+ }
4198
+ public function getAccountId() {
4199
+ return $this->accountId;
4200
+ }
4201
+ public function setChildLink(Google_WebpropertyChildLink $childLink) {
4202
+ $this->childLink = $childLink;
4203
+ }
4204
+ public function getChildLink() {
4205
+ return $this->childLink;
4206
+ }
4207
+ public function setCreated( $created) {
4208
+ $this->created = $created;
4209
+ }
4210
+ public function getCreated() {
4211
+ return $this->created;
4212
+ }
4213
+ public function setDefaultProfileId( $defaultProfileId) {
4214
+ $this->defaultProfileId = $defaultProfileId;
4215
+ }
4216
+ public function getDefaultProfileId() {
4217
+ return $this->defaultProfileId;
4218
+ }
4219
+ public function setId( $id) {
4220
+ $this->id = $id;
4221
+ }
4222
+ public function getId() {
4223
+ return $this->id;
4224
+ }
4225
+ public function setIndustryVertical( $industryVertical) {
4226
+ $this->industryVertical = $industryVertical;
4227
+ }
4228
+ public function getIndustryVertical() {
4229
+ return $this->industryVertical;
4230
+ }
4231
+ public function setInternalWebPropertyId( $internalWebPropertyId) {
4232
+ $this->internalWebPropertyId = $internalWebPropertyId;
4233
+ }
4234
+ public function getInternalWebPropertyId() {
4235
+ return $this->internalWebPropertyId;
4236
+ }
4237
+ public function setKind( $kind) {
4238
+ $this->kind = $kind;
4239
+ }
4240
+ public function getKind() {
4241
+ return $this->kind;
4242
+ }
4243
+ public function setLevel( $level) {
4244
+ $this->level = $level;
4245
+ }
4246
+ public function getLevel() {
4247
+ return $this->level;
4248
+ }
4249
+ public function setName( $name) {
4250
+ $this->name = $name;
4251
+ }
4252
+ public function getName() {
4253
+ return $this->name;
4254
+ }
4255
+ public function setParentLink(Google_WebpropertyParentLink $parentLink) {
4256
+ $this->parentLink = $parentLink;
4257
+ }
4258
+ public function getParentLink() {
4259
+ return $this->parentLink;
4260
+ }
4261
+ public function setPermissions(Google_WebpropertyPermissions $permissions) {
4262
+ $this->permissions = $permissions;
4263
+ }
4264
+ public function getPermissions() {
4265
+ return $this->permissions;
4266
+ }
4267
+ public function setProfileCount( $profileCount) {
4268
+ $this->profileCount = $profileCount;
4269
+ }
4270
+ public function getProfileCount() {
4271
+ return $this->profileCount;
4272
+ }
4273
+ public function setSelfLink( $selfLink) {
4274
+ $this->selfLink = $selfLink;
4275
+ }
4276
+ public function getSelfLink() {
4277
+ return $this->selfLink;
4278
+ }
4279
+ public function setUpdated( $updated) {
4280
+ $this->updated = $updated;
4281
+ }
4282
+ public function getUpdated() {
4283
+ return $this->updated;
4284
+ }
4285
+ public function setWebsiteUrl( $websiteUrl) {
4286
+ $this->websiteUrl = $websiteUrl;
4287
+ }
4288
+ public function getWebsiteUrl() {
4289
+ return $this->websiteUrl;
4290
+ }
4291
+ }
4292
+
4293
+ class Google_WebpropertyChildLink extends Google_Model {
4294
+ public $href;
4295
+ public $type;
4296
+ public function setHref( $href) {
4297
+ $this->href = $href;
4298
+ }
4299
+ public function getHref() {
4300
+ return $this->href;
4301
+ }
4302
+ public function setType( $type) {
4303
+ $this->type = $type;
4304
+ }
4305
+ public function getType() {
4306
+ return $this->type;
4307
+ }
4308
+ }
4309
+
4310
+ class Google_WebpropertyParentLink extends Google_Model {
4311
+ public $href;
4312
+ public $type;
4313
+ public function setHref( $href) {
4314
+ $this->href = $href;
4315
+ }
4316
+ public function getHref() {
4317
+ return $this->href;
4318
+ }
4319
+ public function setType( $type) {
4320
+ $this->type = $type;
4321
+ }
4322
+ public function getType() {
4323
+ return $this->type;
4324
+ }
4325
+ }
4326
+
4327
+ class Google_WebpropertyPermissions extends Google_Model {
4328
+ public $effective;
4329
+ public function setEffective(/* array(Google_string) */ $effective) {
4330
+ $this->assertIsArray($effective, 'Google_string', __METHOD__);
4331
+ $this->effective = $effective;
4332
+ }
4333
+ public function getEffective() {
4334
+ return $this->effective;
4335
+ }
4336
+ }
googleclient/contrib/Google_AndroidpublisherService.php ADDED
@@ -0,0 +1,198 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /*
3
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
4
+ * use this file except in compliance with the License. You may obtain a copy of
5
+ * the License at
6
+ *
7
+ * http://www.apache.org/licenses/LICENSE-2.0
8
+ *
9
+ * Unless required by applicable law or agreed to in writing, software
10
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
11
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
12
+ * License for the specific language governing permissions and limitations under
13
+ * the License.
14
+ */
15
+
16
+
17
+ /**
18
+ * The "inapppurchases" collection of methods.
19
+ * Typical usage is:
20
+ * <code>
21
+ * $androidpublisherService = new Google_AndroidPublisherService(...);
22
+ * $inapppurchases = $androidpublisherService->inapppurchases;
23
+ * </code>
24
+ */
25
+ class Google_InapppurchasesServiceResource extends Google_ServiceResource {
26
+
27
+ /**
28
+ * Checks the purchase and consumption status of an inapp item. (inapppurchases.get)
29
+ *
30
+ * @param string $packageName The package name of the application the inapp product was sold in (for example, 'com.some.thing').
31
+ * @param string $productId The inapp product SKU (for example, 'com.some.thing.inapp1').
32
+ * @param string $token The token provided to the user's device when the inapp product was purchased.
33
+ * @param array $optParams Optional parameters.
34
+ * @return Google_InappPurchase
35
+ */
36
+ public function get($packageName, $productId, $token, $optParams = array()) {
37
+ $params = array('packageName' => $packageName, 'productId' => $productId, 'token' => $token);
38
+ $params = array_merge($params, $optParams);
39
+ $data = $this->__call('get', array($params));
40
+ if ($this->useObjects()) {
41
+ return new Google_InappPurchase($data);
42
+ } else {
43
+ return $data;
44
+ }
45
+ }
46
+ }
47
+
48
+ /**
49
+ * The "purchases" collection of methods.
50
+ * Typical usage is:
51
+ * <code>
52
+ * $androidpublisherService = new Google_AndroidPublisherService(...);
53
+ * $purchases = $androidpublisherService->purchases;
54
+ * </code>
55
+ */
56
+ class Google_PurchasesServiceResource extends Google_ServiceResource {
57
+
58
+ /**
59
+ * Cancels a user's subscription purchase. The subscription remains valid until its expiration time.
60
+ * (purchases.cancel)
61
+ *
62
+ * @param string $packageName The package name of the application for which this subscription was purchased (for example, 'com.some.thing').
63
+ * @param string $subscriptionId The purchased subscription ID (for example, 'monthly001').
64
+ * @param string $token The token provided to the user's device when the subscription was purchased.
65
+ * @param array $optParams Optional parameters.
66
+ */
67
+ public function cancel($packageName, $subscriptionId, $token, $optParams = array()) {
68
+ $params = array('packageName' => $packageName, 'subscriptionId' => $subscriptionId, 'token' => $token);
69
+ $params = array_merge($params, $optParams);
70
+ $data = $this->__call('cancel', array($params));
71
+ return $data;
72
+ }
73
+ /**
74
+ * Checks whether a user's subscription purchase is valid and returns its expiry time.
75
+ * (purchases.get)
76
+ *
77
+ * @param string $packageName The package name of the application for which this subscription was purchased (for example, 'com.some.thing').
78
+ * @param string $subscriptionId The purchased subscription ID (for example, 'monthly001').
79
+ * @param string $token The token provided to the user's device when the subscription was purchased.
80
+ * @param array $optParams Optional parameters.
81
+ * @return Google_SubscriptionPurchase
82
+ */
83
+ public function get($packageName, $subscriptionId, $token, $optParams = array()) {
84
+ $params = array('packageName' => $packageName, 'subscriptionId' => $subscriptionId, 'token' => $token);
85
+ $params = array_merge($params, $optParams);
86
+ $data = $this->__call('get', array($params));
87
+ if ($this->useObjects()) {
88
+ return new Google_SubscriptionPurchase($data);
89
+ } else {
90
+ return $data;
91
+ }
92
+ }
93
+ }
94
+
95
+ /**
96
+ * Service definition for Google_AndroidPublisher (v1.1).
97
+ *
98
+ * <p>
99
+ * Lets Android application developers access their Google Play accounts.
100
+ * </p>
101
+ *
102
+ * <p>
103
+ * For more information about this service, see the
104
+ * <a href="https://developers.google.com/android-publisher" target="_blank">API Documentation</a>
105
+ * </p>
106
+ *
107
+ * @author Google, Inc.
108
+ */
109
+ class Google_AndroidPublisherService extends Google_Service {
110
+ public $inapppurchases;
111
+ public $purchases;
112
+ /**
113
+ * Constructs the internal representation of the AndroidPublisher service.
114
+ *
115
+ * @param Google_Client $client
116
+ */
117
+ public function __construct(Google_Client $client) {
118
+ $this->servicePath = 'androidpublisher/v1.1/applications/';
119
+ $this->version = 'v1.1';
120
+ $this->serviceName = 'androidpublisher';
121
+
122
+ $client->addService($this->serviceName, $this->version);
123
+ $this->inapppurchases = new Google_InapppurchasesServiceResource($this, $this->serviceName, 'inapppurchases', json_decode('{"methods": {"get": {"id": "androidpublisher.inapppurchases.get", "path": "{packageName}/inapp/{productId}/purchases/{token}", "httpMethod": "GET", "parameters": {"packageName": {"type": "string", "required": true, "location": "path"}, "productId": {"type": "string", "required": true, "location": "path"}, "token": {"type": "string", "required": true, "location": "path"}}, "response": {"$ref": "InappPurchase"}}}}', true));
124
+ $this->purchases = new Google_PurchasesServiceResource($this, $this->serviceName, 'purchases', json_decode('{"methods": {"cancel": {"id": "androidpublisher.purchases.cancel", "path": "{packageName}/subscriptions/{subscriptionId}/purchases/{token}/cancel", "httpMethod": "POST", "parameters": {"packageName": {"type": "string", "required": true, "location": "path"}, "subscriptionId": {"type": "string", "required": true, "location": "path"}, "token": {"type": "string", "required": true, "location": "path"}}}, "get": {"id": "androidpublisher.purchases.get", "path": "{packageName}/subscriptions/{subscriptionId}/purchases/{token}", "httpMethod": "GET", "parameters": {"packageName": {"type": "string", "required": true, "location": "path"}, "subscriptionId": {"type": "string", "required": true, "location": "path"}, "token": {"type": "string", "required": true, "location": "path"}}, "response": {"$ref": "SubscriptionPurchase"}}}}', true));
125
+
126
+ }
127
+ }
128
+
129
+
130
+
131
+ class Google_InappPurchase extends Google_Model {
132
+ public $consumptionState;
133
+ public $developerPayload;
134
+ public $kind;
135
+ public $purchaseState;
136
+ public $purchaseTime;
137
+ public function setConsumptionState( $consumptionState) {
138
+ $this->consumptionState = $consumptionState;
139
+ }
140
+ public function getConsumptionState() {
141
+ return $this->consumptionState;
142
+ }
143
+ public function setDeveloperPayload( $developerPayload) {
144
+ $this->developerPayload = $developerPayload;
145
+ }
146
+ public function getDeveloperPayload() {
147
+ return $this->developerPayload;
148
+ }
149
+ public function setKind( $kind) {
150
+ $this->kind = $kind;
151
+ }
152
+ public function getKind() {
153
+ return $this->kind;
154
+ }
155
+ public function setPurchaseState( $purchaseState) {
156
+ $this->purchaseState = $purchaseState;
157
+ }
158
+ public function getPurchaseState() {
159
+ return $this->purchaseState;
160
+ }
161
+ public function setPurchaseTime( $purchaseTime) {
162
+ $this->purchaseTime = $purchaseTime;
163
+ }
164
+ public function getPurchaseTime() {
165
+ return $this->purchaseTime;
166
+ }
167
+ }
168
+
169
+ class Google_SubscriptionPurchase extends Google_Model {
170
+ public $autoRenewing;
171
+ public $initiationTimestampMsec;
172
+ public $kind;
173
+ public $validUntilTimestampMsec;
174
+ public function setAutoRenewing( $autoRenewing) {
175
+ $this->autoRenewing = $autoRenewing;
176
+ }
177
+ public function getAutoRenewing() {
178
+ return $this->autoRenewing;
179
+ }
180
+ public function setInitiationTimestampMsec( $initiationTimestampMsec) {
181
+ $this->initiationTimestampMsec = $initiationTimestampMsec;
182
+ }
183
+ public function getInitiationTimestampMsec() {
184
+ return $this->initiationTimestampMsec;
185
+ }
186
+ public function setKind( $kind) {
187
+ $this->kind = $kind;
188
+ }
189
+ public function getKind() {
190
+ return $this->kind;
191
+ }
192
+ public function setValidUntilTimestampMsec( $validUntilTimestampMsec) {
193
+ $this->validUntilTimestampMsec = $validUntilTimestampMsec;
194
+ }
195
+ public function getValidUntilTimestampMsec() {
196
+ return $this->validUntilTimestampMsec;
197
+ }
198
+ }
googleclient/contrib/Google_AppstateService.php ADDED
@@ -0,0 +1,253 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /*
3
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
4
+ * use this file except in compliance with the License. You may obtain a copy of
5
+ * the License at
6
+ *
7
+ * http://www.apache.org/licenses/LICENSE-2.0
8
+ *
9
+ * Unless required by applicable law or agreed to in writing, software
10
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
11
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
12
+ * License for the specific language governing permissions and limitations under
13
+ * the License.
14
+ */
15
+
16
+
17
+ /**
18
+ * The "states" collection of methods.
19
+ * Typical usage is:
20
+ * <code>
21
+ * $appstateService = new Google_AppstateService(...);
22
+ * $states = $appstateService->states;
23
+ * </code>
24
+ */
25
+ class Google_StatesServiceResource extends Google_ServiceResource {
26
+
27
+ /**
28
+ * Clears (sets to empty) the data for the passed key if and only if the passed version matches the
29
+ * currently stored version. This method results in a conflict error on version mismatch.
30
+ * (states.clear)
31
+ *
32
+ * @param int $stateKey The key for the data to be retrieved.
33
+ * @param array $optParams Optional parameters.
34
+ *
35
+ * @opt_param string currentDataVersion The version of the data to be cleared. Version strings are returned by the server.
36
+ * @return Google_WriteResult
37
+ */
38
+ public function clear($stateKey, $optParams = array()) {
39
+ $params = array('stateKey' => $stateKey);
40
+ $params = array_merge($params, $optParams);
41
+ $data = $this->__call('clear', array($params));
42
+ if ($this->useObjects()) {
43
+ return new Google_WriteResult($data);
44
+ } else {
45
+ return $data;
46
+ }
47
+ }
48
+ /**
49
+ * Deletes a key and the data associated with it. The key is removed and no longer counts against
50
+ * the key quota. Note that since this method is not safe in the face of concurrent modifications,
51
+ * it should only be used for development and testing purposes. Invoking this method in shipping
52
+ * code can result in data loss and data corruption. (states.delete)
53
+ *
54
+ * @param int $stateKey The key for the data to be retrieved.
55
+ * @param array $optParams Optional parameters.
56
+ */
57
+ public function delete($stateKey, $optParams = array()) {
58
+ $params = array('stateKey' => $stateKey);
59
+ $params = array_merge($params, $optParams);
60
+ $data = $this->__call('delete', array($params));
61
+ return $data;
62
+ }
63
+ /**
64
+ * Retrieves the data corresponding to the passed key. (states.get)
65
+ *
66
+ * @param int $stateKey The key for the data to be retrieved.
67
+ * @param array $optParams Optional parameters.
68
+ * @return Google_GetResponse
69
+ */
70
+ public function get($stateKey, $optParams = array()) {
71
+ $params = array('stateKey' => $stateKey);
72
+ $params = array_merge($params, $optParams);
73
+ $data = $this->__call('get', array($params));
74
+ if ($this->useObjects()) {
75
+ return new Google_GetResponse($data);
76
+ } else {
77
+ return $data;
78
+ }
79
+ }
80
+ /**
81
+ * Lists all the states keys, and optionally the state data. (states.list)
82
+ *
83
+ * @param array $optParams Optional parameters.
84
+ *
85
+ * @opt_param bool includeData Whether to include the full data in addition to the version number
86
+ * @return Google_ListResponse
87
+ */
88
+ public function listStates($optParams = array()) {
89
+ $params = array();
90
+ $params = array_merge($params, $optParams);
91
+ $data = $this->__call('list', array($params));
92
+ if ($this->useObjects()) {
93
+ return new Google_ListResponse($data);
94
+ } else {
95
+ return $data;
96
+ }
97
+ }
98
+ /**
99
+ * Update the data associated with the input key if and only if the passed version matches the
100
+ * currently stored version. This method is safe in the face of concurrent writes. Maximum per-key
101
+ * size is 128KB. (states.update)
102
+ *
103
+ * @param int $stateKey The key for the data to be retrieved.
104
+ * @param Google_UpdateRequest $postBody
105
+ * @param array $optParams Optional parameters.
106
+ *
107
+ * @opt_param string currentStateVersion The version of the app state your application is attempting to update. If this does not match the current version, this method will return a conflict error. If there is no data stored on the server for this key, the update will succeed irrespective of the value of this parameter.
108
+ * @return Google_WriteResult
109
+ */
110
+ public function update($stateKey, Google_UpdateRequest $postBody, $optParams = array()) {
111
+ $params = array('stateKey' => $stateKey, 'postBody' => $postBody);
112
+ $params = array_merge($params, $optParams);
113
+ $data = $this->__call('update', array($params));
114
+ if ($this->useObjects()) {
115
+ return new Google_WriteResult($data);
116
+ } else {
117
+ return $data;
118
+ }
119
+ }
120
+ }
121
+
122
+ /**
123
+ * Service definition for Google_Appstate (v1).
124
+ *
125
+ * <p>
126
+ * The Google App State API.
127
+ * </p>
128
+ *
129
+ * <p>
130
+ * For more information about this service, see the
131
+ * <a href="https://developers.google.com/games/services/web/api/states" target="_blank">API Documentation</a>
132
+ * </p>
133
+ *
134
+ * @author Google, Inc.
135
+ */
136
+ class Google_AppstateService extends Google_Service {
137
+ public $states;
138
+ /**
139
+ * Constructs the internal representation of the Appstate service.
140
+ *
141
+ * @param Google_Client $client
142
+ */
143
+ public function __construct(Google_Client $client) {
144
+ $this->servicePath = 'appstate/v1/';
145
+ $this->version = 'v1';
146
+ $this->serviceName = 'appstate';
147
+
148
+ $client->addService($this->serviceName, $this->version);
149
+ $this->states = new Google_StatesServiceResource($this, $this->serviceName, 'states', json_decode('{"methods": {"clear": {"id": "appstate.states.clear", "path": "states/{stateKey}/clear", "httpMethod": "POST", "parameters": {"currentDataVersion": {"type": "string", "location": "query"}, "stateKey": {"type": "integer", "required": true, "format": "int32", "minimum": "0", "maximum": "3", "location": "path"}}, "response": {"$ref": "WriteResult"}, "scopes": ["https://www.googleapis.com/auth/appstate"]}, "delete": {"id": "appstate.states.delete", "path": "states/{stateKey}", "httpMethod": "DELETE", "parameters": {"stateKey": {"type": "integer", "required": true, "format": "int32", "minimum": "0", "maximum": "3", "location": "path"}}, "scopes": ["https://www.googleapis.com/auth/appstate"]}, "get": {"id": "appstate.states.get", "path": "states/{stateKey}", "httpMethod": "GET", "parameters": {"stateKey": {"type": "integer", "required": true, "format": "int32", "minimum": "0", "maximum": "3", "location": "path"}}, "response": {"$ref": "GetResponse"}, "scopes": ["https://www.googleapis.com/auth/appstate"]}, "list": {"id": "appstate.states.list", "path": "states", "httpMethod": "GET", "parameters": {"includeData": {"type": "boolean", "default": "false", "location": "query"}}, "response": {"$ref": "ListResponse"}, "scopes": ["https://www.googleapis.com/auth/appstate"]}, "update": {"id": "appstate.states.update", "path": "states/{stateKey}", "httpMethod": "PUT", "parameters": {"currentStateVersion": {"type": "string", "location": "query"}, "stateKey": {"type": "integer", "required": true, "format": "int32", "minimum": "0", "maximum": "3", "location": "path"}}, "request": {"$ref": "UpdateRequest"}, "response": {"$ref": "WriteResult"}, "scopes": ["https://www.googleapis.com/auth/appstate"]}}}', true));
150
+
151
+ }
152
+ }
153
+
154
+
155
+
156
+ class Google_GetResponse extends Google_Model {
157
+ public $currentStateVersion;
158
+ public $data;
159
+ public $kind;
160
+ public $stateKey;
161
+ public function setCurrentStateVersion( $currentStateVersion) {
162
+ $this->currentStateVersion = $currentStateVersion;
163
+ }
164
+ public function getCurrentStateVersion() {
165
+ return $this->currentStateVersion;
166
+ }
167
+ public function setData( $data) {
168
+ $this->data = $data;
169
+ }
170
+ public function getData() {
171
+ return $this->data;
172
+ }
173
+ public function setKind( $kind) {
174
+ $this->kind = $kind;
175
+ }
176
+ public function getKind() {
177
+ return $this->kind;
178
+ }
179
+ public function setStateKey( $stateKey) {
180
+ $this->stateKey = $stateKey;
181
+ }
182
+ public function getStateKey() {
183
+ return $this->stateKey;
184
+ }
185
+ }
186
+
187
+ class Google_ListResponse extends Google_Model {
188
+ protected $__itemsType = 'Google_GetResponse';
189
+ protected $__itemsDataType = 'array';
190
+ public $items;
191
+ public $kind;
192
+ public $maximumKeyCount;
193
+ public function setItems(/* array(Google_GetResponse) */ $items) {
194
+ $this->assertIsArray($items, 'Google_GetResponse', __METHOD__);
195
+ $this->items = $items;
196
+ }
197
+ public function getItems() {
198
+ return $this->items;
199
+ }
200
+ public function setKind( $kind) {
201
+ $this->kind = $kind;
202
+ }
203
+ public function getKind() {
204
+ return $this->kind;
205
+ }
206
+ public function setMaximumKeyCount( $maximumKeyCount) {
207
+ $this->maximumKeyCount = $maximumKeyCount;
208
+ }
209
+ public function getMaximumKeyCount() {
210
+ return $this->maximumKeyCount;
211
+ }
212
+ }
213
+
214
+ class Google_UpdateRequest extends Google_Model {
215
+ public $data;
216
+ public $kind;
217
+ public function setData( $data) {
218
+ $this->data = $data;
219
+ }
220
+ public function getData() {
221
+ return $this->data;
222
+ }
223
+ public function setKind( $kind) {
224
+ $this->kind = $kind;
225
+ }
226
+ public function getKind() {
227
+ return $this->kind;
228
+ }
229
+ }
230
+
231
+ class Google_WriteResult extends Google_Model {
232
+ public $currentStateVersion;
233
+ public $kind;
234
+ public $stateKey;
235
+ public function setCurrentStateVersion( $currentStateVersion) {
236
+ $this->currentStateVersion = $currentStateVersion;
237
+ }
238
+ public function getCurrentStateVersion() {
239
+ return $this->currentStateVersion;
240
+ }
241
+ public function setKind( $kind) {
242
+ $this->kind = $kind;
243
+ }
244
+ public function getKind() {
245
+ return $this->kind;
246
+ }
247
+ public function setStateKey( $stateKey) {
248
+ $this->stateKey = $stateKey;
249
+ }
250
+ public function getStateKey() {
251
+ return $this->stateKey;
252
+ }
253
+ }
googleclient/contrib/Google_AuditService.php ADDED
@@ -0,0 +1,274 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /*
3
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
4
+ * use this file except in compliance with the License. You may obtain a copy of
5
+ * the License at
6
+ *
7
+ * http://www.apache.org/licenses/LICENSE-2.0
8
+ *
9
+ * Unless required by applicable law or agreed to in writing, software
10
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
11
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
12
+ * License for the specific language governing permissions and limitations under
13
+ * the License.
14
+ */
15
+
16
+
17
+ /**
18
+ * The "activities" collection of methods.
19
+ * Typical usage is:
20
+ * <code>
21
+ * $auditService = new Google_AuditService(...);
22
+ * $activities = $auditService->activities;
23
+ * </code>
24
+ */
25
+ class Google_ActivitiesServiceResource extends Google_ServiceResource {
26
+
27
+ /**
28
+ * Retrieves a list of activities for a specific customer and application. (activities.list)
29
+ *
30
+ * @param string $customerId Represents the customer who is the owner of target object on which action was performed.
31
+ * @param string $applicationId Application ID of the application on which the event was performed.
32
+ * @param array $optParams Optional parameters.
33
+ *
34
+ * @opt_param string actorApplicationId Application ID of the application which interacted on behalf of the user while performing the event.
35
+ * @opt_param string actorEmail Email address of the user who performed the action.
36
+ * @opt_param string actorIpAddress IP Address of host where the event was performed. Supports both IPv4 and IPv6 addresses.
37
+ * @opt_param string caller Type of the caller.
38
+ * @opt_param string continuationToken Next page URL.
39
+ * @opt_param string endTime Return events which occured at or before this time.
40
+ * @opt_param string eventName Name of the event being queried.
41
+ * @opt_param int maxResults Number of activity records to be shown in each page.
42
+ * @opt_param string startTime Return events which occured at or after this time.
43
+ * @return Google_Activities
44
+ */
45
+ public function listActivities($customerId, $applicationId, $optParams = array()) {
46
+ $params = array('customerId' => $customerId, 'applicationId' => $applicationId);
47
+ $params = array_merge($params, $optParams);
48
+ $data = $this->__call('list', array($params));
49
+ if ($this->useObjects()) {
50
+ return new Google_Activities($data);
51
+ } else {
52
+ return $data;
53
+ }
54
+ }
55
+ }
56
+
57
+ /**
58
+ * Service definition for Google_Audit (v1).
59
+ *
60
+ * <p>
61
+ * Lets you access user activities in your enterprise made through various applications.
62
+ * </p>
63
+ *
64
+ * <p>
65
+ * For more information about this service, see the
66
+ * <a href="https://developers.google.com/google-apps/admin-audit/get_started" target="_blank">API Documentation</a>
67
+ * </p>
68
+ *
69
+ * @author Google, Inc.
70
+ */
71
+ class Google_AuditService extends Google_Service {
72
+ public $activities;
73
+ /**
74
+ * Constructs the internal representation of the Audit service.
75
+ *
76
+ * @param Google_Client $client
77
+ */
78
+ public function __construct(Google_Client $client) {
79
+ $this->servicePath = 'apps/reporting/audit/v1/';
80
+ $this->version = 'v1';
81
+ $this->serviceName = 'audit';
82
+
83
+ $client->addService($this->serviceName, $this->version);
84
+ $this->activities = new Google_ActivitiesServiceResource($this, $this->serviceName, 'activities', json_decode('{"methods": {"list": {"id": "audit.activities.list", "path": "{customerId}/{applicationId}", "httpMethod": "GET", "parameters": {"actorApplicationId": {"type": "string", "format": "int64", "location": "query"}, "actorEmail": {"type": "string", "location": "query"}, "actorIpAddress": {"type": "string", "location": "query"}, "applicationId": {"type": "string", "required": true, "format": "int64", "location": "path"}, "caller": {"type": "string", "enum": ["application_owner", "customer"], "location": "query"}, "continuationToken": {"type": "string", "location": "query"}, "customerId": {"type": "string", "required": true, "location": "path"}, "endTime": {"type": "string", "location": "query"}, "eventName": {"type": "string", "location": "query"}, "maxResults": {"type": "integer", "format": "int32", "minimum": "1", "maximum": "1000", "location": "query"}, "startTime": {"type": "string", "location": "query"}}, "response": {"$ref": "Activities"}}}}', true));
85
+
86
+ }
87
+ }
88
+
89
+
90
+
91
+ class Google_Activities extends Google_Model {
92
+ protected $__itemsType = 'Google_Activity';
93
+ protected $__itemsDataType = 'array';
94
+ public $items;
95
+ public $kind;
96
+ public $next;
97
+ public function setItems(/* array(Google_Activity) */ $items) {
98
+ $this->assertIsArray($items, 'Google_Activity', __METHOD__);
99
+ $this->items = $items;
100
+ }
101
+ public function getItems() {
102
+ return $this->items;
103
+ }
104
+ public function setKind( $kind) {
105
+ $this->kind = $kind;
106
+ }
107
+ public function getKind() {
108
+ return $this->kind;
109
+ }
110
+ public function setNext( $next) {
111
+ $this->next = $next;
112
+ }
113
+ public function getNext() {
114
+ return $this->next;
115
+ }
116
+ }
117
+
118
+ class Google_Activity extends Google_Model {
119
+ protected $__actorType = 'Google_ActivityActor';
120
+ protected $__actorDataType = '';
121
+ public $actor;
122
+ protected $__eventsType = 'Google_ActivityEvents';
123
+ protected $__eventsDataType = 'array';
124
+ public $events;
125
+ protected $__idType = 'Google_ActivityId';
126
+ protected $__idDataType = '';
127
+ public $id;
128
+ public $ipAddress;
129
+ public $kind;
130
+ public $ownerDomain;
131
+ public function setActor(Google_ActivityActor $actor) {
132
+ $this->actor = $actor;
133
+ }
134
+ public function getActor() {
135
+ return $this->actor;
136
+ }
137
+ public function setEvents(/* array(Google_ActivityEvents) */ $events) {
138
+ $this->assertIsArray($events, 'Google_ActivityEvents', __METHOD__);
139
+ $this->events = $events;
140
+ }
141
+ public function getEvents() {
142
+ return $this->events;
143
+ }
144
+ public function setId(Google_ActivityId $id) {
145
+ $this->id = $id;
146
+ }
147
+ public function getId() {
148
+ return $this->id;
149
+ }
150
+ public function setIpAddress( $ipAddress) {
151
+ $this->ipAddress = $ipAddress;
152
+ }
153
+ public function getIpAddress() {
154
+ return $this->ipAddress;
155
+ }
156
+ public function setKind( $kind) {
157
+ $this->kind = $kind;
158
+ }
159
+ public function getKind() {
160
+ return $this->kind;
161
+ }
162
+ public function setOwnerDomain( $ownerDomain) {
163
+ $this->ownerDomain = $ownerDomain;
164
+ }
165
+ public function getOwnerDomain() {
166
+ return $this->ownerDomain;
167
+ }
168
+ }
169
+
170
+ class Google_ActivityActor extends Google_Model {
171
+ public $applicationId;
172
+ public $callerType;
173
+ public $email;
174
+ public $key;
175
+ public function setApplicationId( $applicationId) {
176
+ $this->applicationId = $applicationId;
177
+ }
178
+ public function getApplicationId() {
179
+ return $this->applicationId;
180
+ }
181
+ public function setCallerType( $callerType) {
182
+ $this->callerType = $callerType;
183
+ }
184
+ public function getCallerType() {
185
+ return $this->callerType;
186
+ }
187
+ public function setEmail( $email) {
188
+ $this->email = $email;
189
+ }
190
+ public function getEmail() {
191
+ return $this->email;
192
+ }
193
+ public function setKey( $key) {
194
+ $this->key = $key;
195
+ }
196
+ public function getKey() {
197
+ return $this->key;
198
+ }
199
+ }
200
+
201
+ class Google_ActivityEvents extends Google_Model {
202
+ public $eventType;
203
+ public $name;
204
+ protected $__parametersType = 'Google_ActivityEventsParameters';
205
+ protected $__parametersDataType = 'array';
206
+ public $parameters;
207
+ public function setEventType( $eventType) {
208
+ $this->eventType = $eventType;
209
+ }
210
+ public function getEventType() {
211
+ return $this->eventType;
212
+ }
213
+ public function setName( $name) {
214
+ $this->name = $name;
215
+ }
216
+ public function getName() {
217
+ return $this->name;
218
+ }
219
+ public function setParameters(/* array(Google_ActivityEventsParameters) */ $parameters) {
220
+ $this->assertIsArray($parameters, 'Google_ActivityEventsParameters', __METHOD__);
221
+ $this->parameters = $parameters;
222
+ }
223
+ public function getParameters() {
224
+ return $this->parameters;
225
+ }
226
+ }
227
+
228
+ class Google_ActivityEventsParameters extends Google_Model {
229
+ public $name;
230
+ public $value;
231
+ public function setName( $name) {
232
+ $this->name = $name;
233
+ }
234
+ public function getName() {
235
+ return $this->name;
236
+ }
237
+ public function setValue( $value) {
238
+ $this->value = $value;
239
+ }
240
+ public function getValue() {
241
+ return $this->value;
242
+ }
243
+ }
244
+
245
+ class Google_ActivityId extends Google_Model {
246
+ public $applicationId;
247
+ public $customerId;
248
+ public $time;
249
+ public $uniqQualifier;
250
+ public function setApplicationId( $applicationId) {
251
+ $this->applicationId = $applicationId;
252
+ }
253
+ public function getApplicationId() {
254
+ return $this->applicationId;
255
+ }
256
+ public function setCustomerId( $customerId) {
257
+ $this->customerId = $customerId;
258
+ }
259
+ public function getCustomerId() {
260
+ return $this->customerId;
261
+ }
262
+ public function setTime( $time) {
263
+ $this->time = $time;
264
+ }
265
+ public function getTime() {
266
+ return $this->time;
267
+ }
268
+ public function setUniqQualifier( $uniqQualifier) {
269
+ $this->uniqQualifier = $uniqQualifier;
270
+ }
271
+ public function getUniqQualifier() {
272
+ return $this->uniqQualifier;
273
+ }
274
+ }
googleclient/contrib/Google_BigqueryService.php ADDED
@@ -0,0 +1,2011 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /*
3
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
4
+ * use this file except in compliance with the License. You may obtain a copy of
5
+ * the License at
6
+ *
7
+ * http://www.apache.org/licenses/LICENSE-2.0
8
+ *
9
+ * Unless required by applicable law or agreed to in writing, software
10
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
11
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
12
+ * License for the specific language governing permissions and limitations under
13
+ * the License.
14
+ */
15
+
16
+
17
+ /**
18
+ * The "datasets" collection of methods.
19
+ * Typical usage is:
20
+ * <code>
21
+ * $bigqueryService = new Google_BigqueryService(...);
22
+ * $datasets = $bigqueryService->datasets;
23
+ * </code>
24
+ */
25
+ class Google_DatasetsServiceResource extends Google_ServiceResource {
26
+
27
+ /**
28
+ * Deletes the dataset specified by datasetId value. Before you can delete a dataset, you must
29
+ * delete all its tables, either manually or by specifying deleteContents. Immediately after
30
+ * deletion, you can create another dataset with the same name. (datasets.delete)
31
+ *
32
+ * @param string $projectId Project ID of the dataset being deleted
33
+ * @param string $datasetId Dataset ID of dataset being deleted
34
+ * @param array $optParams Optional parameters.
35
+ *
36
+ * @opt_param bool deleteContents If True, delete all the tables in the dataset. If False and the dataset contains tables, the request will fail. Default is False
37
+ */
38
+ public function delete($projectId, $datasetId, $optParams = array()) {
39
+ $params = array('projectId' => $projectId, 'datasetId' => $datasetId);
40
+ $params = array_merge($params, $optParams);
41
+ $data = $this->__call('delete', array($params));
42
+ return $data;
43
+ }
44
+ /**
45
+ * Returns the dataset specified by datasetID. (datasets.get)
46
+ *
47
+ * @param string $projectId Project ID of the requested dataset
48
+ * @param string $datasetId Dataset ID of the requested dataset
49
+ * @param array $optParams Optional parameters.
50
+ * @return Google_Dataset
51
+ */
52
+ public function get($projectId, $datasetId, $optParams = array()) {
53
+ $params = array('projectId' => $projectId, 'datasetId' => $datasetId);
54
+ $params = array_merge($params, $optParams);
55
+ $data = $this->__call('get', array($params));
56
+ if ($this->useObjects()) {
57
+ return new Google_Dataset($data);
58
+ } else {
59
+ return $data;
60
+ }
61
+ }
62
+ /**
63
+ * Creates a new empty dataset. (datasets.insert)
64
+ *
65
+ * @param string $projectId Project ID of the new dataset
66
+ * @param Google_Dataset $postBody
67
+ * @param array $optParams Optional parameters.
68
+ * @return Google_Dataset
69
+ */
70
+ public function insert($projectId, Google_Dataset $postBody, $optParams = array()) {
71
+ $params = array('projectId' => $projectId, 'postBody' => $postBody);
72
+ $params = array_merge($params, $optParams);
73
+ $data = $this->__call('insert', array($params));
74
+ if ($this->useObjects()) {
75
+ return new Google_Dataset($data);
76
+ } else {
77
+ return $data;
78
+ }
79
+ }
80
+ /**
81
+ * Lists all the datasets in the specified project to which the caller has read access; however, a
82
+ * project owner can list (but not necessarily get) all datasets in his project. (datasets.list)
83
+ *
84
+ * @param string $projectId Project ID of the datasets to be listed
85
+ * @param array $optParams Optional parameters.
86
+ *
87
+ * @opt_param string maxResults The maximum number of results to return
88
+ * @opt_param string pageToken Page token, returned by a previous call, to request the next page of results
89
+ * @return Google_DatasetList
90
+ */
91
+ public function listDatasets($projectId, $optParams = array()) {
92
+ $params = array('projectId' => $projectId);
93
+ $params = array_merge($params, $optParams);
94
+ $data = $this->__call('list', array($params));
95
+ if ($this->useObjects()) {
96
+ return new Google_DatasetList($data);
97
+ } else {
98
+ return $data;
99
+ }
100
+ }
101
+ /**
102
+ * Updates information in an existing dataset, specified by datasetId. Properties not included in
103
+ * the submitted resource will not be changed. If you include the access property without any values
104
+ * assigned, the request will fail as you must specify at least one owner for a dataset. This method
105
+ * supports patch semantics. (datasets.patch)
106
+ *
107
+ * @param string $projectId Project ID of the dataset being updated
108
+ * @param string $datasetId Dataset ID of the dataset being updated
109
+ * @param Google_Dataset $postBody
110
+ * @param array $optParams Optional parameters.
111
+ * @return Google_Dataset
112
+ */
113
+ public function patch($projectId, $datasetId, Google_Dataset $postBody, $optParams = array()) {
114
+ $params = array('projectId' => $projectId, 'datasetId' => $datasetId, 'postBody' => $postBody);
115
+ $params = array_merge($params, $optParams);
116
+ $data = $this->__call('patch', array($params));
117
+ if ($this->useObjects()) {
118
+ return new Google_Dataset($data);
119
+ } else {
120
+ return $data;
121
+ }
122
+ }
123
+ /**
124
+ * Updates information in an existing dataset, specified by datasetId. Properties not included in
125
+ * the submitted resource will not be changed. If you include the access property without any values
126
+ * assigned, the request will fail as you must specify at least one owner for a dataset.
127
+ * (datasets.update)
128
+ *
129
+ * @param string $projectId Project ID of the dataset being updated
130
+ * @param string $datasetId Dataset ID of the dataset being updated
131
+ * @param Google_Dataset $postBody
132
+ * @param array $optParams Optional parameters.
133
+ * @return Google_Dataset
134
+ */
135
+ public function update($projectId, $datasetId, Google_Dataset $postBody, $optParams = array()) {
136
+ $params = array('projectId' => $projectId, 'datasetId' => $datasetId, 'postBody' => $postBody);
137
+ $params = array_merge($params, $optParams);
138
+ $data = $this->__call('update', array($params));
139
+ if ($this->useObjects()) {
140
+ return new Google_Dataset($data);
141
+ } else {
142
+ return $data;
143
+ }
144
+ }
145
+ }
146
+
147
+ /**
148
+ * The "jobs" collection of methods.
149
+ * Typical usage is:
150
+ * <code>
151
+ * $bigqueryService = new Google_BigqueryService(...);
152
+ * $jobs = $bigqueryService->jobs;
153
+ * </code>
154
+ */
155
+ class Google_JobsServiceResource extends Google_ServiceResource {
156
+
157
+ /**
158
+ * Retrieves the specified job by ID. (jobs.get)
159
+ *
160
+ * @param string $projectId Project ID of the requested job
161
+ * @param string $jobId Job ID of the requested job
162
+ * @param array $optParams Optional parameters.
163
+ * @return Google_Job
164
+ */
165
+ public function get($projectId, $jobId, $optParams = array()) {
166
+ $params = array('projectId' => $projectId, 'jobId' => $jobId);
167
+ $params = array_merge($params, $optParams);
168
+ $data = $this->__call('get', array($params));
169
+ if ($this->useObjects()) {
170
+ return new Google_Job($data);
171
+ } else {
172
+ return $data;
173
+ }
174
+ }
175
+ /**
176
+ * Retrieves the results of a query job. (jobs.getQueryResults)
177
+ *
178
+ * @param string $projectId Project ID of the query job
179
+ * @param string $jobId Job ID of the query job
180
+ * @param array $optParams Optional parameters.
181
+ *
182
+ * @opt_param string maxResults Maximum number of results to read
183
+ * @opt_param string pageToken Page token, returned by a previous call, to request the next page of results
184
+ * @opt_param string startIndex Zero-based index of the starting row
185
+ * @opt_param string timeoutMs How long to wait for the query to complete, in milliseconds, before returning. Default is to return immediately. If the timeout passes before the job completes, the request will fail with a TIMEOUT error
186
+ * @return Google_GetQueryResultsResponse
187
+ */
188
+ public function getQueryResults($projectId, $jobId, $optParams = array()) {
189
+ $params = array('projectId' => $projectId, 'jobId' => $jobId);
190
+ $params = array_merge($params, $optParams);
191
+ $data = $this->__call('getQueryResults', array($params));
192
+ if ($this->useObjects()) {
193
+ return new Google_GetQueryResultsResponse($data);
194
+ } else {
195
+ return $data;
196
+ }
197
+ }
198
+ /**
199
+ * Starts a new asynchronous job. (jobs.insert)
200
+ *
201
+ * @param string $projectId Project ID of the project that will be billed for the job
202
+ * @param Google_Job $postBody
203
+ * @param array $optParams Optional parameters.
204
+ * @return Google_Job
205
+ */
206
+ public function insert($projectId, Google_Job $postBody, $optParams = array()) {
207
+ $params = array('projectId' => $projectId, 'postBody' => $postBody);
208
+ $params = array_merge($params, $optParams);
209
+ $data = $this->__call('insert', array($params));
210
+ if ($this->useObjects()) {
211
+ return new Google_Job($data);
212
+ } else {
213
+ return $data;
214
+ }
215
+ }
216
+ /**
217
+ * Lists all the Jobs in the specified project that were started by the user. (jobs.list)
218
+ *
219
+ * @param string $projectId Project ID of the jobs to list
220
+ * @param array $optParams Optional parameters.
221
+ *
222
+ * @opt_param bool allUsers Whether to display jobs owned by all users in the project. Default false
223
+ * @opt_param string maxResults Maximum number of results to return
224
+ * @opt_param string pageToken Page token, returned by a previous call, to request the next page of results
225
+ * @opt_param string projection Restrict information returned to a set of selected fields
226
+ * @opt_param string stateFilter Filter for job state
227
+ * @return Google_JobList
228
+ */
229
+ public function listJobs($projectId, $optParams = array()) {
230
+ $params = array('projectId' => $projectId);
231
+ $params = array_merge($params, $optParams);
232
+ $data = $this->__call('list', array($params));
233
+ if ($this->useObjects()) {
234
+ return new Google_JobList($data);
235
+ } else {
236
+ return $data;
237
+ }
238
+ }
239
+ /**
240
+ * Runs a BigQuery SQL query synchronously and returns query results if the query completes within a
241
+ * specified timeout. (jobs.query)
242
+ *
243
+ * @param string $projectId Project ID of the project billed for the query
244
+ * @param Google_QueryRequest $postBody
245
+ * @param array $optParams Optional parameters.
246
+ * @return Google_QueryResponse
247
+ */
248
+ public function query($projectId, Google_QueryRequest $postBody, $optParams = array()) {
249
+ $params = array('projectId' => $projectId, 'postBody' => $postBody);
250
+ $params = array_merge($params, $optParams);
251
+ $data = $this->__call('query', array($params));
252
+ if ($this->useObjects()) {
253
+ return new Google_QueryResponse($data);
254
+ } else {
255
+ return $data;
256
+ }
257
+ }
258
+ }
259
+
260
+ /**
261
+ * The "projects" collection of methods.
262
+ * Typical usage is:
263
+ * <code>
264
+ * $bigqueryService = new Google_BigqueryService(...);
265
+ * $projects = $bigqueryService->projects;
266
+ * </code>
267
+ */
268
+ class Google_ProjectsServiceResource extends Google_ServiceResource {
269
+
270
+ /**
271
+ * Lists the projects to which you have at least read access. (projects.list)
272
+ *
273
+ * @param array $optParams Optional parameters.
274
+ *
275
+ * @opt_param string maxResults Maximum number of results to return
276
+ * @opt_param string pageToken Page token, returned by a previous call, to request the next page of results
277
+ * @return Google_ProjectList
278
+ */
279
+ public function listProjects($optParams = array()) {
280
+ $params = array();
281
+ $params = array_merge($params, $optParams);
282
+ $data = $this->__call('list', array($params));
283
+ if ($this->useObjects()) {
284
+ return new Google_ProjectList($data);
285
+ } else {
286
+ return $data;
287
+ }
288
+ }
289
+ }
290
+
291
+ /**
292
+ * The "tabledata" collection of methods.
293
+ * Typical usage is:
294
+ * <code>
295
+ * $bigqueryService = new Google_BigqueryService(...);
296
+ * $tabledata = $bigqueryService->tabledata;
297
+ * </code>
298
+ */
299
+ class Google_TabledataServiceResource extends Google_ServiceResource {
300
+
301
+ /**
302
+ * Retrieves table data from a specified set of rows. (tabledata.list)
303
+ *
304
+ * @param string $projectId Project ID of the table to read
305
+ * @param string $datasetId Dataset ID of the table to read
306
+ * @param string $tableId Table ID of the table to read
307
+ * @param array $optParams Optional parameters.
308
+ *
309
+ * @opt_param string maxResults Maximum number of results to return
310
+ * @opt_param string pageToken Page token, returned by a previous call, identifying the result set
311
+ * @opt_param string startIndex Zero-based index of the starting row to read
312
+ * @return Google_TableDataList
313
+ */
314
+ public function listTabledata($projectId, $datasetId, $tableId, $optParams = array()) {
315
+ $params = array('projectId' => $projectId, 'datasetId' => $datasetId, 'tableId' => $tableId);
316
+ $params = array_merge($params, $optParams);
317
+ $data = $this->__call('list', array($params));
318
+ if ($this->useObjects()) {
319
+ return new Google_TableDataList($data);
320
+ } else {
321
+ return $data;
322
+ }
323
+ }
324
+ }
325
+
326
+ /**
327
+ * The "tables" collection of methods.
328
+ * Typical usage is:
329
+ * <code>
330
+ * $bigqueryService = new Google_BigqueryService(...);
331
+ * $tables = $bigqueryService->tables;
332
+ * </code>
333
+ */
334
+ class Google_TablesServiceResource extends Google_ServiceResource {
335
+
336
+ /**
337
+ * Deletes the table specified by tableId from the dataset. If the table contains data, all the data
338
+ * will be deleted. (tables.delete)
339
+ *
340
+ * @param string $projectId Project ID of the table to delete
341
+ * @param string $datasetId Dataset ID of the table to delete
342
+ * @param string $tableId Table ID of the table to delete
343
+ * @param array $optParams Optional parameters.
344
+ */
345
+ public function delete($projectId, $datasetId, $tableId, $optParams = array()) {
346
+ $params = array('projectId' => $projectId, 'datasetId' => $datasetId, 'tableId' => $tableId);
347
+ $params = array_merge($params, $optParams);
348
+ $data = $this->__call('delete', array($params));
349
+ return $data;
350
+ }
351
+ /**
352
+ * Gets the specified table resource by table ID. This method does not return the data in the table,
353
+ * it only returns the table resource, which describes the structure of this table. (tables.get)
354
+ *
355
+ * @param string $projectId Project ID of the requested table
356
+ * @param string $datasetId Dataset ID of the requested table
357
+ * @param string $tableId Table ID of the requested table
358
+ * @param array $optParams Optional parameters.
359
+ * @return Google_Table
360
+ */
361
+ public function get($projectId, $datasetId, $tableId, $optParams = array()) {
362
+ $params = array('projectId' => $projectId, 'datasetId' => $datasetId, 'tableId' => $tableId);
363
+ $params = array_merge($params, $optParams);
364
+ $data = $this->__call('get', array($params));
365
+ if ($this->useObjects()) {
366
+ return new Google_Table($data);
367
+ } else {
368
+ return $data;
369
+ }
370
+ }
371
+ /**
372
+ * Creates a new, empty table in the dataset. (tables.insert)
373
+ *
374
+ * @param string $projectId Project ID of the new table
375
+ * @param string $datasetId Dataset ID of the new table
376
+ * @param Google_Table $postBody
377
+ * @param array $optParams Optional parameters.
378
+ * @return Google_Table
379
+ */
380
+ public function insert($projectId, $datasetId, Google_Table $postBody, $optParams = array()) {
381
+ $params = array('projectId' => $projectId, 'datasetId' => $datasetId, 'postBody' => $postBody);
382
+ $params = array_merge($params, $optParams);
383
+ $data = $this->__call('insert', array($params));
384
+ if ($this->useObjects()) {
385
+ return new Google_Table($data);
386
+ } else {
387
+ return $data;
388
+ }
389
+ }
390
+ /**
391
+ * Lists all tables in the specified dataset. (tables.list)
392
+ *
393
+ * @param string $projectId Project ID of the tables to list
394
+ * @param string $datasetId Dataset ID of the tables to list
395
+ * @param array $optParams Optional parameters.
396
+ *
397
+ * @opt_param string maxResults Maximum number of results to return
398
+ * @opt_param string pageToken Page token, returned by a previous call, to request the next page of results
399
+ * @return Google_TableList
400
+ */
401
+ public function listTables($projectId, $datasetId, $optParams = array()) {
402
+ $params = array('projectId' => $projectId, 'datasetId' => $datasetId);
403
+ $params = array_merge($params, $optParams);
404
+ $data = $this->__call('list', array($params));
405
+ if ($this->useObjects()) {
406
+ return new Google_TableList($data);
407
+ } else {
408
+ return $data;
409
+ }
410
+ }
411
+ /**
412
+ * Updates information in an existing table, specified by tableId. This method supports patch
413
+ * semantics. (tables.patch)
414
+ *
415
+ * @param string $projectId Project ID of the table to update
416
+ * @param string $datasetId Dataset ID of the table to update
417
+ * @param string $tableId Table ID of the table to update
418
+ * @param Google_Table $postBody
419
+ * @param array $optParams Optional parameters.
420
+ * @return Google_Table
421
+ */
422
+ public function patch($projectId, $datasetId, $tableId, Google_Table $postBody, $optParams = array()) {
423
+ $params = array('projectId' => $projectId, 'datasetId' => $datasetId, 'tableId' => $tableId, 'postBody' => $postBody);
424
+ $params = array_merge($params, $optParams);
425
+ $data = $this->__call('patch', array($params));
426
+ if ($this->useObjects()) {
427
+ return new Google_Table($data);
428
+ } else {
429
+ return $data;
430
+ }
431
+ }
432
+ /**
433
+ * Updates information in an existing table, specified by tableId. (tables.update)
434
+ *
435
+ * @param string $projectId Project ID of the table to update
436
+ * @param string $datasetId Dataset ID of the table to update
437
+ * @param string $tableId Table ID of the table to update
438
+ * @param Google_Table $postBody
439
+ * @param array $optParams Optional parameters.
440
+ * @return Google_Table
441
+ */
442
+ public function update($projectId, $datasetId, $tableId, Google_Table $postBody, $optParams = array()) {
443
+ $params = array('projectId' => $projectId, 'datasetId' => $datasetId, 'tableId' => $tableId, 'postBody' => $postBody);
444
+ $params = array_merge($params, $optParams);
445
+ $data = $this->__call('update', array($params));
446
+ if ($this->useObjects()) {
447
+ return new Google_Table($data);
448
+ } else {
449
+ return $data;
450
+ }
451
+ }
452
+ }
453
+
454
+ /**
455
+ * Service definition for Google_Bigquery (v2).
456
+ *
457
+ * <p>
458
+ * A data platform for customers to create, manage, share and query data.
459
+ * </p>
460
+ *
461
+ * <p>
462
+ * For more information about this service, see the
463
+ * <a href="https://developers.google.com/bigquery/docs/overview" target="_blank">API Documentation</a>
464
+ * </p>
465
+ *
466
+ * @author Google, Inc.
467
+ */
468
+ class Google_BigqueryService extends Google_Service {
469
+ public $datasets;
470
+ public $jobs;
471
+ public $projects;
472
+ public $tabledata;
473
+ public $tables;
474
+ /**
475
+ * Constructs the internal representation of the Bigquery service.
476
+ *
477
+ * @param Google_Client $client
478
+ */
479
+ public function __construct(Google_Client $client) {
480
+ $this->servicePath = 'bigquery/v2/';
481
+ $this->version = 'v2';
482
+ $this->serviceName = 'bigquery';
483
+
484
+ $client->addService($this->serviceName, $this->version);
485
+ $this->datasets = new Google_DatasetsServiceResource($this, $this->serviceName, 'datasets', json_decode('{"methods": {"delete": {"id": "bigquery.datasets.delete", "path": "projects/{projectId}/datasets/{datasetId}", "httpMethod": "DELETE", "parameters": {"datasetId": {"type": "string", "required": true, "location": "path"}, "deleteContents": {"type": "boolean", "location": "query"}, "projectId": {"type": "string", "required": true, "location": "path"}}, "scopes": ["https://www.googleapis.com/auth/bigquery", "https://www.googleapis.com/auth/cloud-platform"]}, "get": {"id": "bigquery.datasets.get", "path": "projects/{projectId}/datasets/{datasetId}", "httpMethod": "GET", "parameters": {"datasetId": {"type": "string", "required": true, "location": "path"}, "projectId": {"type": "string", "required": true, "location": "path"}}, "response": {"$ref": "Dataset"}, "scopes": ["https://www.googleapis.com/auth/bigquery", "https://www.googleapis.com/auth/cloud-platform"]}, "insert": {"id": "bigquery.datasets.insert", "path": "projects/{projectId}/datasets", "httpMethod": "POST", "parameters": {"projectId": {"type": "string", "required": true, "location": "path"}}, "request": {"$ref": "Dataset"}, "response": {"$ref": "Dataset"}, "scopes": ["https://www.googleapis.com/auth/bigquery", "https://www.googleapis.com/auth/cloud-platform"]}, "list": {"id": "bigquery.datasets.list", "path": "projects/{projectId}/datasets", "httpMethod": "GET", "parameters": {"maxResults": {"type": "integer", "format": "uint32", "location": "query"}, "pageToken": {"type": "string", "location": "query"}, "projectId": {"type": "string", "required": true, "location": "path"}}, "response": {"$ref": "DatasetList"}, "scopes": ["https://www.googleapis.com/auth/bigquery", "https://www.googleapis.com/auth/cloud-platform"]}, "patch": {"id": "bigquery.datasets.patch", "path": "projects/{projectId}/datasets/{datasetId}", "httpMethod": "PATCH", "parameters": {"datasetId": {"type": "string", "required": true, "location": "path"}, "projectId": {"type": "string", "required": true, "location": "path"}}, "request": {"$ref": "Dataset"}, "response": {"$ref": "Dataset"}, "scopes": ["https://www.googleapis.com/auth/bigquery", "https://www.googleapis.com/auth/cloud-platform"]}, "update": {"id": "bigquery.datasets.update", "path": "projects/{projectId}/datasets/{datasetId}", "httpMethod": "PUT", "parameters": {"datasetId": {"type": "string", "required": true, "location": "path"}, "projectId": {"type": "string", "required": true, "location": "path"}}, "request": {"$ref": "Dataset"}, "response": {"$ref": "Dataset"}, "scopes": ["https://www.googleapis.com/auth/bigquery", "https://www.googleapis.com/auth/cloud-platform"]}}}', true));
486
+ $this->jobs = new Google_JobsServiceResource($this, $this->serviceName, 'jobs', json_decode('{"methods": {"get": {"id": "bigquery.jobs.get", "path": "projects/{projectId}/jobs/{jobId}", "httpMethod": "GET", "parameters": {"jobId": {"type": "string", "required": true, "location": "path"}, "projectId": {"type": "string", "required": true, "location": "path"}}, "response": {"$ref": "Job"}, "scopes": ["https://www.googleapis.com/auth/bigquery", "https://www.googleapis.com/auth/cloud-platform"]}, "getQueryResults": {"id": "bigquery.jobs.getQueryResults", "path": "projects/{projectId}/queries/{jobId}", "httpMethod": "GET", "parameters": {"jobId": {"type": "string", "required": true, "location": "path"}, "maxResults": {"type": "integer", "format": "uint32", "location": "query"}, "pageToken": {"type": "string", "location": "query"}, "projectId": {"type": "string", "required": true, "location": "path"}, "startIndex": {"type": "string", "format": "uint64", "location": "query"}, "timeoutMs": {"type": "integer", "format": "uint32", "location": "query"}}, "response": {"$ref": "GetQueryResultsResponse"}, "scopes": ["https://www.googleapis.com/auth/bigquery", "https://www.googleapis.com/auth/cloud-platform"]}, "insert": {"id": "bigquery.jobs.insert", "path": "projects/{projectId}/jobs", "httpMethod": "POST", "parameters": {"projectId": {"type": "string", "required": true, "location": "path"}}, "request": {"$ref": "Job"}, "response": {"$ref": "Job"}, "scopes": ["https://www.googleapis.com/auth/bigquery", "https://www.googleapis.com/auth/cloud-platform", "https://www.googleapis.com/auth/devstorage.full_control", "https://www.googleapis.com/auth/devstorage.read_only", "https://www.googleapis.com/auth/devstorage.read_write"], "supportsMediaUpload": true, "mediaUpload": {"accept": ["application/octet-stream"], "protocols": {"simple": {"multipart": true, "path": "/upload/bigquery/v2/projects/{projectId}/jobs"}, "resumable": {"multipart": true, "path": "/resumable/upload/bigquery/v2/projects/{projectId}/jobs"}}}}, "list": {"id": "bigquery.jobs.list", "path": "projects/{projectId}/jobs", "httpMethod": "GET", "parameters": {"allUsers": {"type": "boolean", "location": "query"}, "maxResults": {"type": "integer", "format": "uint32", "location": "query"}, "pageToken": {"type": "string", "location": "query"}, "projectId": {"type": "string", "required": true, "location": "path"}, "projection": {"type": "string", "enum": ["full", "minimal"], "location": "query"}, "stateFilter": {"type": "string", "enum": ["done", "pending", "running"], "repeated": true, "location": "query"}}, "response": {"$ref": "JobList"}, "scopes": ["https://www.googleapis.com/auth/bigquery", "https://www.googleapis.com/auth/cloud-platform"]}, "query": {"id": "bigquery.jobs.query", "path": "projects/{projectId}/queries", "httpMethod": "POST", "parameters": {"projectId": {"type": "string", "required": true, "location": "path"}}, "request": {"$ref": "QueryRequest"}, "response": {"$ref": "QueryResponse"}, "scopes": ["https://www.googleapis.com/auth/bigquery", "https://www.googleapis.com/auth/cloud-platform"]}}}', true));
487
+ $this->projects = new Google_ProjectsServiceResource($this, $this->serviceName, 'projects', json_decode('{"methods": {"list": {"id": "bigquery.projects.list", "path": "projects", "httpMethod": "GET", "parameters": {"maxResults": {"type": "integer", "format": "uint32", "location": "query"}, "pageToken": {"type": "string", "location": "query"}}, "response": {"$ref": "ProjectList"}, "scopes": ["https://www.googleapis.com/auth/bigquery", "https://www.googleapis.com/auth/cloud-platform"]}}}', true));
488
+ $this->tabledata = new Google_TabledataServiceResource($this, $this->serviceName, 'tabledata', json_decode('{"methods": {"list": {"id": "bigquery.tabledata.list", "path": "projects/{projectId}/datasets/{datasetId}/tables/{tableId}/data", "httpMethod": "GET", "parameters": {"datasetId": {"type": "string", "required": true, "location": "path"}, "maxResults": {"type": "integer", "format": "uint32", "location": "query"}, "pageToken": {"type": "string", "location": "query"}, "projectId": {"type": "string", "required": true, "location": "path"}, "startIndex": {"type": "string", "format": "uint64", "location": "query"}, "tableId": {"type": "string", "required": true, "location": "path"}}, "response": {"$ref": "TableDataList"}, "scopes": ["https://www.googleapis.com/auth/bigquery", "https://www.googleapis.com/auth/cloud-platform"]}}}', true));
489
+ $this->tables = new Google_TablesServiceResource($this, $this->serviceName, 'tables', json_decode('{"methods": {"delete": {"id": "bigquery.tables.delete", "path": "projects/{projectId}/datasets/{datasetId}/tables/{tableId}", "httpMethod": "DELETE", "parameters": {"datasetId": {"type": "string", "required": true, "location": "path"}, "projectId": {"type": "string", "required": true, "location": "path"}, "tableId": {"type": "string", "required": true, "location": "path"}}, "scopes": ["https://www.googleapis.com/auth/bigquery", "https://www.googleapis.com/auth/cloud-platform"]}, "get": {"id": "bigquery.tables.get", "path": "projects/{projectId}/datasets/{datasetId}/tables/{tableId}", "httpMethod": "GET", "parameters": {"datasetId": {"type": "string", "required": true, "location": "path"}, "projectId": {"type": "string", "required": true, "location": "path"}, "tableId": {"type": "string", "required": true, "location": "path"}}, "response": {"$ref": "Table"}, "scopes": ["https://www.googleapis.com/auth/bigquery", "https://www.googleapis.com/auth/cloud-platform"]}, "insert": {"id": "bigquery.tables.insert", "path": "projects/{projectId}/datasets/{datasetId}/tables", "httpMethod": "POST", "parameters": {"datasetId": {"type": "string", "required": true, "location": "path"}, "projectId": {"type": "string", "required": true, "location": "path"}}, "request": {"$ref": "Table"}, "response": {"$ref": "Table"}, "scopes": ["https://www.googleapis.com/auth/bigquery", "https://www.googleapis.com/auth/cloud-platform"]}, "list": {"id": "bigquery.tables.list", "path": "projects/{projectId}/datasets/{datasetId}/tables", "httpMethod": "GET", "parameters": {"datasetId": {"type": "string", "required": true, "location": "path"}, "maxResults": {"type": "integer", "format": "uint32", "location": "query"}, "pageToken": {"type": "string", "location": "query"}, "projectId": {"type": "string", "required": true, "location": "path"}}, "response": {"$ref": "TableList"}, "scopes": ["https://www.googleapis.com/auth/bigquery", "https://www.googleapis.com/auth/cloud-platform"]}, "patch": {"id": "bigquery.tables.patch", "path": "projects/{projectId}/datasets/{datasetId}/tables/{tableId}", "httpMethod": "PATCH", "parameters": {"datasetId": {"type": "string", "required": true, "location": "path"}, "projectId": {"type": "string", "required": true, "location": "path"}, "tableId": {"type": "string", "required": true, "location": "path"}}, "request": {"$ref": "Table"}, "response": {"$ref": "Table"}, "scopes": ["https://www.googleapis.com/auth/bigquery", "https://www.googleapis.com/auth/cloud-platform"]}, "update": {"id": "bigquery.tables.update", "path": "projects/{projectId}/datasets/{datasetId}/tables/{tableId}", "httpMethod": "PUT", "parameters": {"datasetId": {"type": "string", "required": true, "location": "path"}, "projectId": {"type": "string", "required": true, "location": "path"}, "tableId": {"type": "string", "required": true, "location": "path"}}, "request": {"$ref": "Table"}, "response": {"$ref": "Table"}, "scopes": ["https://www.googleapis.com/auth/bigquery", "https://www.googleapis.com/auth/cloud-platform"]}}}', true));
490
+
491
+ }
492
+ }
493
+
494
+
495
+
496
+ class Google_Dataset extends Google_Model {
497
+ protected $__accessType = 'Google_DatasetAccess';
498
+ protected $__accessDataType = 'array';
499
+ public $access;
500
+ public $creationTime;
501
+ protected $__datasetReferenceType = 'Google_DatasetReference';
502
+ protected $__datasetReferenceDataType = '';
503
+ public $datasetReference;
504
+ public $description;
505
+ public $etag;
506
+ public $friendlyName;
507
+ public $id;
508
+ public $kind;
509
+ public $lastModifiedTime;
510
+ public $selfLink;
511
+ public function setAccess(/* array(Google_DatasetAccess) */ $access) {
512
+ $this->assertIsArray($access, 'Google_DatasetAccess', __METHOD__);
513
+ $this->access = $access;
514
+ }
515
+ public function getAccess() {
516
+ return $this->access;
517
+ }
518
+ public function setCreationTime( $creationTime) {
519
+ $this->creationTime = $creationTime;
520
+ }
521
+ public function getCreationTime() {
522
+ return $this->creationTime;
523
+ }
524
+ public function setDatasetReference(Google_DatasetReference $datasetReference) {
525
+ $this->datasetReference = $datasetReference;
526
+ }
527
+ public function getDatasetReference() {
528
+ return $this->datasetReference;
529
+ }
530
+ public function setDescription( $description) {
531
+ $this->description = $description;
532
+ }
533
+ public function getDescription() {
534
+ return $this->description;
535
+ }
536
+ public function setEtag( $etag) {
537
+ $this->etag = $etag;
538
+ }
539
+ public function getEtag() {
540
+ return $this->etag;
541
+ }
542
+ public function setFriendlyName( $friendlyName) {
543
+ $this->friendlyName = $friendlyName;
544
+ }
545
+ public function getFriendlyName() {
546
+ return $this->friendlyName;
547
+ }
548
+ public function setId( $id) {
549
+ $this->id = $id;
550
+ }
551
+ public function getId() {
552
+ return $this->id;
553
+ }
554
+ public function setKind( $kind) {
555
+ $this->kind = $kind;
556
+ }
557
+ public function getKind() {
558
+ return $this->kind;
559
+ }
560
+ public function setLastModifiedTime( $lastModifiedTime) {
561
+ $this->lastModifiedTime = $lastModifiedTime;
562
+ }
563
+ public function getLastModifiedTime() {
564
+ return $this->lastModifiedTime;
565
+ }
566
+ public function setSelfLink( $selfLink) {
567
+ $this->selfLink = $selfLink;
568
+ }
569
+ public function getSelfLink() {
570
+ return $this->selfLink;
571
+ }
572
+ }
573
+
574
+ class Google_DatasetAccess extends Google_Model {
575
+ public $domain;
576
+ public $groupByEmail;
577
+ public $role;
578
+ public $specialGroup;
579
+ public $userByEmail;
580
+ public function setDomain( $domain) {
581
+ $this->domain = $domain;
582
+ }
583
+ public function getDomain() {
584
+ return $this->domain;
585
+ }
586
+ public function setGroupByEmail( $groupByEmail) {
587
+ $this->groupByEmail = $groupByEmail;
588
+ }
589
+ public function getGroupByEmail() {
590
+ return $this->groupByEmail;
591
+ }
592
+ public function setRole( $role) {
593
+ $this->role = $role;
594
+ }
595
+ public function getRole() {
596
+ return $this->role;
597
+ }
598
+ public function setSpecialGroup( $specialGroup) {
599
+ $this->specialGroup = $specialGroup;
600
+ }
601
+ public function getSpecialGroup() {
602
+ return $this->specialGroup;
603
+ }
604
+ public function setUserByEmail( $userByEmail) {
605
+ $this->userByEmail = $userByEmail;
606
+ }
607
+ public function getUserByEmail() {
608
+ return $this->userByEmail;
609
+ }
610
+ }
611
+
612
+ class Google_DatasetList extends Google_Model {
613
+ protected $__datasetsType = 'Google_DatasetListDatasets';
614
+ protected $__datasetsDataType = 'array';
615
+ public $datasets;
616
+ public $etag;
617
+ public $kind;
618
+ public $nextPageToken;
619
+ public function setDatasets(/* array(Google_DatasetListDatasets) */ $datasets) {
620
+ $this->assertIsArray($datasets, 'Google_DatasetListDatasets', __METHOD__);
621
+ $this->datasets = $datasets;
622
+ }
623
+ public function getDatasets() {
624
+ return $this->datasets;
625
+ }
626
+ public function setEtag( $etag) {
627
+ $this->etag = $etag;
628
+ }
629
+ public function getEtag() {
630
+ return $this->etag;
631
+ }
632
+ public function setKind( $kind) {
633
+ $this->kind = $kind;
634
+ }
635
+ public function getKind() {
636
+ return $this->kind;
637
+ }
638
+ public function setNextPageToken( $nextPageToken) {
639
+ $this->nextPageToken = $nextPageToken;
640
+ }
641
+ public function getNextPageToken() {
642
+ return $this->nextPageToken;
643
+ }
644
+ }
645
+
646
+ class Google_DatasetListDatasets extends Google_Model {
647
+ protected $__datasetReferenceType = 'Google_DatasetReference';
648
+ protected $__datasetReferenceDataType = '';
649
+ public $datasetReference;
650
+ public $friendlyName;
651
+ public $id;
652
+ public $kind;
653
+ public function setDatasetReference(Google_DatasetReference $datasetReference) {
654
+ $this->datasetReference = $datasetReference;
655
+ }
656
+ public function getDatasetReference() {
657
+ return $this->datasetReference;
658
+ }
659
+ public function setFriendlyName( $friendlyName) {
660
+ $this->friendlyName = $friendlyName;
661
+ }
662
+ public function getFriendlyName() {
663
+ return $this->friendlyName;
664
+ }
665
+ public function setId( $id) {
666
+ $this->id = $id;
667
+ }
668
+ public function getId() {
669
+ return $this->id;
670
+ }
671
+ public function setKind( $kind) {
672
+ $this->kind = $kind;
673
+ }
674
+ public function getKind() {
675
+ return $this->kind;
676
+ }
677
+ }
678
+
679
+ class Google_DatasetReference extends Google_Model {
680
+ public $datasetId;
681
+ public $projectId;
682
+ public function setDatasetId( $datasetId) {
683
+ $this->datasetId = $datasetId;
684
+ }
685
+ public function getDatasetId() {
686
+ return $this->datasetId;
687
+ }
688
+ public function setProjectId( $projectId) {
689
+ $this->projectId = $projectId;
690
+ }
691
+ public function getProjectId() {
692
+ return $this->projectId;
693
+ }
694
+ }
695
+
696
+ class Google_ErrorProto extends Google_Model {
697
+ public $debugInfo;
698
+ public $location;
699
+ public $message;
700
+ public $reason;
701
+ public function setDebugInfo( $debugInfo) {
702
+ $this->debugInfo = $debugInfo;
703
+ }
704
+ public function getDebugInfo() {
705
+ return $this->debugInfo;
706
+ }
707
+ public function setLocation( $location) {
708
+ $this->location = $location;
709
+ }
710
+ public function getLocation() {
711
+ return $this->location;
712
+ }
713
+ public function setMessage( $message) {
714
+ $this->message = $message;
715
+ }
716
+ public function getMessage() {
717
+ return $this->message;
718
+ }
719
+ public function setReason( $reason) {
720
+ $this->reason = $reason;
721
+ }
722
+ public function getReason() {
723
+ return $this->reason;
724
+ }
725
+ }
726
+
727
+ class Google_GetQueryResultsResponse extends Google_Model {
728
+ public $cacheHit;
729
+ public $etag;
730
+ public $jobComplete;
731
+ protected $__jobReferenceType = 'Google_JobReference';
732
+ protected $__jobReferenceDataType = '';
733
+ public $jobReference;
734
+ public $kind;
735
+ public $pageToken;
736
+ protected $__rowsType = 'Google_TableRow';
737
+ protected $__rowsDataType = 'array';
738
+ public $rows;
739
+ protected $__schemaType = 'Google_TableSchema';
740
+ protected $__schemaDataType = '';
741
+ public $schema;
742
+ public $totalRows;
743
+ public function setCacheHit( $cacheHit) {
744
+ $this->cacheHit = $cacheHit;
745
+ }
746
+ public function getCacheHit() {
747
+ return $this->cacheHit;
748
+ }
749
+ public function setEtag( $etag) {
750
+ $this->etag = $etag;
751
+ }
752
+ public function getEtag() {
753
+ return $this->etag;
754
+ }
755
+ public function setJobComplete( $jobComplete) {
756
+ $this->jobComplete = $jobComplete;
757
+ }
758
+ public function getJobComplete() {
759
+ return $this->jobComplete;
760
+ }
761
+ public function setJobReference(Google_JobReference $jobReference) {
762
+ $this->jobReference = $jobReference;
763
+ }
764
+ public function getJobReference() {
765
+ return $this->jobReference;
766
+ }
767
+ public function setKind( $kind) {
768
+ $this->kind = $kind;
769
+ }
770
+ public function getKind() {
771
+ return $this->kind;
772
+ }
773
+ public function setPageToken( $pageToken) {
774
+ $this->pageToken = $pageToken;
775
+ }
776
+ public function getPageToken() {
777
+ return $this->pageToken;
778
+ }
779
+ public function setRows(/* array(Google_TableRow) */ $rows) {
780
+ $this->assertIsArray($rows, 'Google_TableRow', __METHOD__);
781
+ $this->rows = $rows;
782
+ }
783
+ public function getRows() {
784
+ return $this->rows;
785
+ }
786
+ public function setSchema(Google_TableSchema $schema) {
787
+ $this->schema = $schema;
788
+ }
789
+ public function getSchema() {
790
+ return $this->schema;
791
+ }
792
+ public function setTotalRows( $totalRows) {
793
+ $this->totalRows = $totalRows;
794
+ }
795
+ public function getTotalRows() {
796
+ return $this->totalRows;
797
+ }
798
+ }
799
+
800
+ class Google_Job extends Google_Model {
801
+ protected $__configurationType = 'Google_JobConfiguration';
802
+ protected $__configurationDataType = '';
803
+ public $configuration;
804
+ public $etag;
805
+ public $id;
806
+ protected $__jobReferenceType = 'Google_JobReference';
807
+ protected $__jobReferenceDataType = '';
808
+ public $jobReference;
809
+ public $kind;
810
+ public $selfLink;
811
+ protected $__statisticsType = 'Google_JobStatistics';
812
+ protected $__statisticsDataType = '';
813
+ public $statistics;
814
+ protected $__statusType = 'Google_JobStatus';
815
+ protected $__statusDataType = '';
816
+ public $status;
817
+ public function setConfiguration(Google_JobConfiguration $configuration) {
818
+ $this->configuration = $configuration;
819
+ }
820
+ public function getConfiguration() {
821
+ return $this->configuration;
822
+ }
823
+ public function setEtag( $etag) {
824
+ $this->etag = $etag;
825
+ }
826
+ public function getEtag() {
827
+ return $this->etag;
828
+ }
829
+ public function setId( $id) {
830
+ $this->id = $id;
831
+ }
832
+ public function getId() {
833
+ return $this->id;
834
+ }
835
+ public function setJobReference(Google_JobReference $jobReference) {
836
+ $this->jobReference = $jobReference;
837
+ }
838
+ public function getJobReference() {
839
+ return $this->jobReference;
840
+ }
841
+ public function setKind( $kind) {
842
+ $this->kind = $kind;
843
+ }
844
+ public function getKind() {
845
+ return $this->kind;
846
+ }
847
+ public function setSelfLink( $selfLink) {
848
+ $this->selfLink = $selfLink;
849
+ }
850
+ public function getSelfLink() {
851
+ return $this->selfLink;
852
+ }
853
+ public function setStatistics(Google_JobStatistics $statistics) {
854
+ $this->statistics = $statistics;
855
+ }
856
+ public function getStatistics() {
857
+ return $this->statistics;
858
+ }
859
+ public function setStatus(Google_JobStatus $status) {
860
+ $this->status = $status;
861
+ }
862
+ public function getStatus() {
863
+ return $this->status;
864
+ }
865
+ }
866
+
867
+ class Google_JobConfiguration extends Google_Model {
868
+ protected $__copyType = 'Google_JobConfigurationTableCopy';
869
+ protected $__copyDataType = '';
870
+ public $copy;
871
+ public $dryRun;
872
+ protected $__extractType = 'Google_JobConfigurationExtract';
873
+ protected $__extractDataType = '';
874
+ public $extract;
875
+ protected $__linkType = 'Google_JobConfigurationLink';
876
+ protected $__linkDataType = '';
877
+ public $link;
878
+ protected $__loadType = 'Google_JobConfigurationLoad';
879
+ protected $__loadDataType = '';
880
+ public $load;
881
+ protected $__queryType = 'Google_JobConfigurationQuery';
882
+ protected $__queryDataType = '';
883
+ public $query;
884
+ public function setCopy(Google_JobConfigurationTableCopy $copy) {
885
+ $this->copy = $copy;
886
+ }
887
+ public function getCopy() {
888
+ return $this->copy;
889
+ }
890
+ public function setDryRun( $dryRun) {
891
+ $this->dryRun = $dryRun;
892
+ }
893
+ public function getDryRun() {
894
+ return $this->dryRun;
895
+ }
896
+ public function setExtract(Google_JobConfigurationExtract $extract) {
897
+ $this->extract = $extract;
898
+ }
899
+ public function getExtract() {
900
+ return $this->extract;
901
+ }
902
+ public function setLink(Google_JobConfigurationLink $link) {
903
+ $this->link = $link;
904
+ }
905
+ public function getLink() {
906
+ return $this->link;
907
+ }
908
+ public function setLoad(Google_JobConfigurationLoad $load) {
909
+ $this->load = $load;
910
+ }
911
+ public function getLoad() {
912
+ return $this->load;
913
+ }
914
+ public function setQuery(Google_JobConfigurationQuery $query) {
915
+ $this->query = $query;
916
+ }
917
+ public function getQuery() {
918
+ return $this->query;
919
+ }
920
+ }
921
+
922
+ class Google_JobConfigurationExtract extends Google_Model {
923
+ public $destinationFormat;
924
+ public $destinationUri;
925
+ public $fieldDelimiter;
926
+ public $printHeader;
927
+ protected $__sourceTableType = 'Google_TableReference';
928
+ protected $__sourceTableDataType = '';
929
+ public $sourceTable;
930
+ public function setDestinationFormat( $destinationFormat) {
931
+ $this->destinationFormat = $destinationFormat;
932
+ }
933
+ public function getDestinationFormat() {
934
+ return $this->destinationFormat;
935
+ }
936
+ public function setDestinationUri( $destinationUri) {
937
+ $this->destinationUri = $destinationUri;
938
+ }
939
+ public function getDestinationUri() {
940
+ return $this->destinationUri;
941
+ }
942
+ public function setFieldDelimiter( $fieldDelimiter) {
943
+ $this->fieldDelimiter = $fieldDelimiter;
944
+ }
945
+ public function getFieldDelimiter() {
946
+ return $this->fieldDelimiter;
947
+ }
948
+ public function setPrintHeader( $printHeader) {
949
+ $this->printHeader = $printHeader;
950
+ }
951
+ public function getPrintHeader() {
952
+ return $this->printHeader;
953
+ }
954
+ public function setSourceTable(Google_TableReference $sourceTable) {
955
+ $this->sourceTable = $sourceTable;
956
+ }
957
+ public function getSourceTable() {
958
+ return $this->sourceTable;
959
+ }
960
+ }
961
+
962
+ class Google_JobConfigurationLink extends Google_Model {
963
+ public $createDisposition;
964
+ protected $__destinationTableType = 'Google_TableReference';
965
+ protected $__destinationTableDataType = '';
966
+ public $destinationTable;
967
+ public $sourceUri;
968
+ public $writeDisposition;
969
+ public function setCreateDisposition( $createDisposition) {
970
+ $this->createDisposition = $createDisposition;
971
+ }
972
+ public function getCreateDisposition() {
973
+ return $this->createDisposition;
974
+ }
975
+ public function setDestinationTable(Google_TableReference $destinationTable) {
976
+ $this->destinationTable = $destinationTable;
977
+ }
978
+ public function getDestinationTable() {
979
+ return $this->destinationTable;
980
+ }
981
+ public function setSourceUri(/* array(Google_string) */ $sourceUri) {
982
+ $this->assertIsArray($sourceUri, 'Google_string', __METHOD__);
983
+ $this->sourceUri = $sourceUri;
984
+ }
985
+ public function getSourceUri() {
986
+ return $this->sourceUri;
987
+ }
988
+ public function setWriteDisposition( $writeDisposition) {
989
+ $this->writeDisposition = $writeDisposition;
990
+ }
991
+ public function getWriteDisposition() {
992
+ return $this->writeDisposition;
993
+ }
994
+ }
995
+
996
+ class Google_JobConfigurationLoad extends Google_Model {
997
+ public $allowJaggedRows;
998
+ public $allowQuotedNewlines;
999
+ public $createDisposition;
1000
+ protected $__destinationTableType = 'Google_TableReference';
1001
+ protected $__destinationTableDataType = '';
1002
+ public $destinationTable;
1003
+ public $encoding;
1004
+ public $fieldDelimiter;
1005
+ public $maxBadRecords;
1006
+ public $quote;
1007
+ protected $__schemaType = 'Google_TableSchema';
1008
+ protected $__schemaDataType = '';
1009
+ public $schema;
1010
+ public $schemaInline;
1011
+ public $schemaInlineFormat;
1012
+ public $skipLeadingRows;
1013
+ public $sourceFormat;
1014
+ public $sourceUris;
1015
+ public $writeDisposition;
1016
+ public function setAllowJaggedRows( $allowJaggedRows) {
1017
+ $this->allowJaggedRows = $allowJaggedRows;
1018
+ }
1019
+ public function getAllowJaggedRows() {
1020
+ return $this->allowJaggedRows;
1021
+ }
1022
+ public function setAllowQuotedNewlines( $allowQuotedNewlines) {
1023
+ $this->allowQuotedNewlines = $allowQuotedNewlines;
1024
+ }
1025
+ public function getAllowQuotedNewlines() {
1026
+ return $this->allowQuotedNewlines;
1027
+ }
1028
+ public function setCreateDisposition( $createDisposition) {
1029
+ $this->createDisposition = $createDisposition;
1030
+ }
1031
+ public function getCreateDisposition() {
1032
+ return $this->createDisposition;
1033
+ }
1034
+ public function setDestinationTable(Google_TableReference $destinationTable) {
1035
+ $this->destinationTable = $destinationTable;
1036
+ }
1037
+ public function getDestinationTable() {
1038
+ return $this->destinationTable;
1039
+ }
1040
+ public function setEncoding( $encoding) {
1041
+ $this->encoding = $encoding;
1042
+ }
1043
+ public function getEncoding() {
1044
+ return $this->encoding;
1045
+ }
1046
+ public function setFieldDelimiter( $fieldDelimiter) {
1047
+ $this->fieldDelimiter = $fieldDelimiter;
1048
+ }
1049
+ public function getFieldDelimiter() {
1050
+ return $this->fieldDelimiter;
1051
+ }
1052
+ public function setMaxBadRecords( $maxBadRecords) {
1053
+ $this->maxBadRecords = $maxBadRecords;
1054
+ }
1055
+ public function getMaxBadRecords() {
1056
+ return $this->maxBadRecords;
1057
+ }
1058
+ public function setQuote( $quote) {
1059
+ $this->quote = $quote;
1060
+ }
1061
+ public function getQuote() {
1062
+ return $this->quote;
1063
+ }
1064
+ public function setSchema(Google_TableSchema $schema) {
1065
+ $this->schema = $schema;
1066
+ }
1067
+ public function getSchema() {
1068
+ return $this->schema;
1069
+ }
1070
+ public function setSchemaInline( $schemaInline) {
1071
+ $this->schemaInline = $schemaInline;
1072
+ }
1073
+ public function getSchemaInline() {
1074
+ return $this->schemaInline;
1075
+ }
1076
+ public function setSchemaInlineFormat( $schemaInlineFormat) {
1077
+ $this->schemaInlineFormat = $schemaInlineFormat;
1078
+ }
1079
+ public function getSchemaInlineFormat() {
1080
+ return $this->schemaInlineFormat;
1081
+ }
1082
+ public function setSkipLeadingRows( $skipLeadingRows) {
1083
+ $this->skipLeadingRows = $skipLeadingRows;
1084
+ }
1085
+ public function getSkipLeadingRows() {
1086
+ return $this->skipLeadingRows;
1087
+ }
1088
+ public function setSourceFormat( $sourceFormat) {
1089
+ $this->sourceFormat = $sourceFormat;
1090
+ }
1091
+ public function getSourceFormat() {
1092
+ return $this->sourceFormat;
1093
+ }
1094
+ public function setSourceUris(/* array(Google_string) */ $sourceUris) {
1095
+ $this->assertIsArray($sourceUris, 'Google_string', __METHOD__);
1096
+ $this->sourceUris = $sourceUris;
1097
+ }
1098
+ public function getSourceUris() {
1099
+ return $this->sourceUris;
1100
+ }
1101
+ public function setWriteDisposition( $writeDisposition) {
1102
+ $this->writeDisposition = $writeDisposition;
1103
+ }
1104
+ public function getWriteDisposition() {
1105
+ return $this->writeDisposition;
1106
+ }
1107
+ }
1108
+
1109
+ class Google_JobConfigurationQuery extends Google_Model {
1110
+ public $allowLargeResults;
1111
+ public $createDisposition;
1112
+ protected $__defaultDatasetType = 'Google_DatasetReference';
1113
+ protected $__defaultDatasetDataType = '';
1114
+ public $defaultDataset;
1115
+ protected $__destinationTableType = 'Google_TableReference';
1116
+ protected $__destinationTableDataType = '';
1117
+ public $destinationTable;
1118
+ public $minCompletionRatio;
1119
+ public $preserveNulls;
1120
+ public $priority;
1121
+ public $query;
1122
+ public $useQueryCache;
1123
+ public $writeDisposition;
1124
+ public function setAllowLargeResults( $allowLargeResults) {
1125
+ $this->allowLargeResults = $allowLargeResults;
1126
+ }
1127
+ public function getAllowLargeResults() {
1128
+ return $this->allowLargeResults;
1129
+ }
1130
+ public function setCreateDisposition( $createDisposition) {
1131
+ $this->createDisposition = $createDisposition;
1132
+ }
1133
+ public function getCreateDisposition() {
1134
+ return $this->createDisposition;
1135
+ }
1136
+ public function setDefaultDataset(Google_DatasetReference $defaultDataset) {
1137
+ $this->defaultDataset = $defaultDataset;
1138
+ }
1139
+ public function getDefaultDataset() {
1140
+ return $this->defaultDataset;
1141
+ }
1142
+ public function setDestinationTable(Google_TableReference $destinationTable) {
1143
+ $this->destinationTable = $destinationTable;
1144
+ }
1145
+ public function getDestinationTable() {
1146
+ return $this->destinationTable;
1147
+ }
1148
+ public function setMinCompletionRatio( $minCompletionRatio) {
1149
+ $this->minCompletionRatio = $minCompletionRatio;
1150
+ }
1151
+ public function getMinCompletionRatio() {
1152
+ return $this->minCompletionRatio;
1153
+ }
1154
+ public function setPreserveNulls( $preserveNulls) {
1155
+ $this->preserveNulls = $preserveNulls;
1156
+ }
1157
+ public function getPreserveNulls() {
1158
+ return $this->preserveNulls;
1159
+ }
1160
+ public function setPriority( $priority) {
1161
+ $this->priority = $priority;
1162
+ }
1163
+ public function getPriority() {
1164
+ return $this->priority;
1165
+ }
1166
+ public function setQuery( $query) {
1167
+ $this->query = $query;
1168
+ }
1169
+ public function getQuery() {
1170
+ return $this->query;
1171
+ }
1172
+ public function setUseQueryCache( $useQueryCache) {
1173
+ $this->useQueryCache = $useQueryCache;
1174
+ }
1175
+ public function getUseQueryCache() {
1176
+ return $this->useQueryCache;
1177
+ }
1178
+ public function setWriteDisposition( $writeDisposition) {
1179
+ $this->writeDisposition = $writeDisposition;
1180
+ }
1181
+ public function getWriteDisposition() {
1182
+ return $this->writeDisposition;
1183
+ }
1184
+ }
1185
+
1186
+ class Google_JobConfigurationTableCopy extends Google_Model {
1187
+ public $createDisposition;
1188
+ protected $__destinationTableType = 'Google_TableReference';
1189
+ protected $__destinationTableDataType = '';
1190
+ public $destinationTable;
1191
+ protected $__sourceTableType = 'Google_TableReference';
1192
+ protected $__sourceTableDataType = '';
1193
+ public $sourceTable;
1194
+ public $writeDisposition;
1195
+ public function setCreateDisposition( $createDisposition) {
1196
+ $this->createDisposition = $createDisposition;
1197
+ }
1198
+ public function getCreateDisposition() {
1199
+ return $this->createDisposition;
1200
+ }
1201
+ public function setDestinationTable(Google_TableReference $destinationTable) {
1202
+ $this->destinationTable = $destinationTable;
1203
+ }
1204
+ public function getDestinationTable() {
1205
+ return $this->destinationTable;
1206
+ }
1207
+ public function setSourceTable(Google_TableReference $sourceTable) {
1208
+ $this->sourceTable = $sourceTable;
1209
+ }
1210
+ public function getSourceTable() {
1211
+ return $this->sourceTable;
1212
+ }
1213
+ public function setWriteDisposition( $writeDisposition) {
1214
+ $this->writeDisposition = $writeDisposition;
1215
+ }
1216
+ public function getWriteDisposition() {
1217
+ return $this->writeDisposition;
1218
+ }
1219
+ }
1220
+
1221
+ class Google_JobList extends Google_Model {
1222
+ public $etag;
1223
+ protected $__jobsType = 'Google_JobListJobs';
1224
+ protected $__jobsDataType = 'array';
1225
+ public $jobs;
1226
+ public $kind;
1227
+ public $nextPageToken;
1228
+ public $totalItems;
1229
+ public function setEtag( $etag) {
1230
+ $this->etag = $etag;
1231
+ }
1232
+ public function getEtag() {
1233
+ return $this->etag;
1234
+ }
1235
+ public function setJobs(/* array(Google_JobListJobs) */ $jobs) {
1236
+ $this->assertIsArray($jobs, 'Google_JobListJobs', __METHOD__);
1237
+ $this->jobs = $jobs;
1238
+ }
1239
+ public function getJobs() {
1240
+ return $this->jobs;
1241
+ }
1242
+ public function setKind( $kind) {
1243
+ $this->kind = $kind;
1244
+ }
1245
+ public function getKind() {
1246
+ return $this->kind;
1247
+ }
1248
+ public function setNextPageToken( $nextPageToken) {
1249
+ $this->nextPageToken = $nextPageToken;
1250
+ }
1251
+ public function getNextPageToken() {
1252
+ return $this->nextPageToken;
1253
+ }
1254
+ public function setTotalItems( $totalItems) {
1255
+ $this->totalItems = $totalItems;
1256
+ }
1257
+ public function getTotalItems() {
1258
+ return $this->totalItems;
1259
+ }
1260
+ }
1261
+
1262
+ class Google_JobListJobs extends Google_Model {
1263
+ protected $__configurationType = 'Google_JobConfiguration';
1264
+ protected $__configurationDataType = '';
1265
+ public $configuration;
1266
+ protected $__errorResultType = 'Google_ErrorProto';
1267
+ protected $__errorResultDataType = '';
1268
+ public $errorResult;
1269
+ public $id;
1270
+ protected $__jobReferenceType = 'Google_JobReference';
1271
+ protected $__jobReferenceDataType = '';
1272
+ public $jobReference;
1273
+ public $kind;
1274
+ public $state;
1275
+ protected $__statisticsType = 'Google_JobStatistics';
1276
+ protected $__statisticsDataType = '';
1277
+ public $statistics;
1278
+ protected $__statusType = 'Google_JobStatus';
1279
+ protected $__statusDataType = '';
1280
+ public $status;
1281
+ public function setConfiguration(Google_JobConfiguration $configuration) {
1282
+ $this->configuration = $configuration;
1283
+ }
1284
+ public function getConfiguration() {
1285
+ return $this->configuration;
1286
+ }
1287
+ public function setErrorResult(Google_ErrorProto $errorResult) {
1288
+ $this->errorResult = $errorResult;
1289
+ }
1290
+ public function getErrorResult() {
1291
+ return $this->errorResult;
1292
+ }
1293
+ public function setId( $id) {
1294
+ $this->id = $id;
1295
+ }
1296
+ public function getId() {
1297
+ return $this->id;
1298
+ }
1299
+ public function setJobReference(Google_JobReference $jobReference) {
1300
+ $this->jobReference = $jobReference;
1301
+ }
1302
+ public function getJobReference() {
1303
+ return $this->jobReference;
1304
+ }
1305
+ public function setKind( $kind) {
1306
+ $this->kind = $kind;
1307
+ }
1308
+ public function getKind() {
1309
+ return $this->kind;
1310
+ }
1311
+ public function setState( $state) {
1312
+ $this->state = $state;
1313
+ }
1314
+ public function getState() {
1315
+ return $this->state;
1316
+ }
1317
+ public function setStatistics(Google_JobStatistics $statistics) {
1318
+ $this->statistics = $statistics;
1319
+ }
1320
+ public function getStatistics() {
1321
+ return $this->statistics;
1322
+ }
1323
+ public function setStatus(Google_JobStatus $status) {
1324
+ $this->status = $status;
1325
+ }
1326
+ public function getStatus() {
1327
+ return $this->status;
1328
+ }
1329
+ }
1330
+
1331
+ class Google_JobReference extends Google_Model {
1332
+ public $jobId;
1333
+ public $projectId;
1334
+ public function setJobId( $jobId) {
1335
+ $this->jobId = $jobId;
1336
+ }
1337
+ public function getJobId() {
1338
+ return $this->jobId;
1339
+ }
1340
+ public function setProjectId( $projectId) {
1341
+ $this->projectId = $projectId;
1342
+ }
1343
+ public function getProjectId() {
1344
+ return $this->projectId;
1345
+ }
1346
+ }
1347
+
1348
+ class Google_JobStatistics extends Google_Model {
1349
+ public $endTime;
1350
+ protected $__loadType = 'Google_JobStatistics3';
1351
+ protected $__loadDataType = '';
1352
+ public $load;
1353
+ protected $__queryType = 'Google_JobStatistics2';
1354
+ protected $__queryDataType = '';
1355
+ public $query;
1356
+ public $startTime;
1357
+ public $totalBytesProcessed;
1358
+ public function setEndTime( $endTime) {
1359
+ $this->endTime = $endTime;
1360
+ }
1361
+ public function getEndTime() {
1362
+ return $this->endTime;
1363
+ }
1364
+ public function setLoad(Google_JobStatistics3 $load) {
1365
+ $this->load = $load;
1366
+ }
1367
+ public function getLoad() {
1368
+ return $this->load;
1369
+ }
1370
+ public function setQuery(Google_JobStatistics2 $query) {
1371
+ $this->query = $query;
1372
+ }
1373
+ public function getQuery() {
1374
+ return $this->query;
1375
+ }
1376
+ public function setStartTime( $startTime) {
1377
+ $this->startTime = $startTime;
1378
+ }
1379
+ public function getStartTime() {
1380
+ return $this->startTime;
1381
+ }
1382
+ public function setTotalBytesProcessed( $totalBytesProcessed) {
1383
+ $this->totalBytesProcessed = $totalBytesProcessed;
1384
+ }
1385
+ public function getTotalBytesProcessed() {
1386
+ return $this->totalBytesProcessed;
1387
+ }
1388
+ }
1389
+
1390
+ class Google_JobStatistics2 extends Google_Model {
1391
+ public $cacheHit;
1392
+ public $completionRatio;
1393
+ public $totalBytesProcessed;
1394
+ public function setCacheHit( $cacheHit) {
1395
+ $this->cacheHit = $cacheHit;
1396
+ }
1397
+ public function getCacheHit() {
1398
+ return $this->cacheHit;
1399
+ }
1400
+ public function setCompletionRatio( $completionRatio) {
1401
+ $this->completionRatio = $completionRatio;
1402
+ }
1403
+ public function getCompletionRatio() {
1404
+ return $this->completionRatio;
1405
+ }
1406
+ public function setTotalBytesProcessed( $totalBytesProcessed) {
1407
+ $this->totalBytesProcessed = $totalBytesProcessed;
1408
+ }
1409
+ public function getTotalBytesProcessed() {
1410
+ return $this->totalBytesProcessed;
1411
+ }
1412
+ }
1413
+
1414
+ class Google_JobStatistics3 extends Google_Model {
1415
+ public $inputFileBytes;
1416
+ public $inputFiles;
1417
+ public $outputBytes;
1418
+ public $outputRows;
1419
+ public function setInputFileBytes( $inputFileBytes) {
1420
+ $this->inputFileBytes = $inputFileBytes;
1421
+ }
1422
+ public function getInputFileBytes() {
1423
+ return $this->inputFileBytes;
1424
+ }
1425
+ public function setInputFiles( $inputFiles) {
1426
+ $this->inputFiles = $inputFiles;
1427
+ }
1428
+ public function getInputFiles() {
1429
+ return $this->inputFiles;
1430
+ }
1431
+ public function setOutputBytes( $outputBytes) {
1432
+ $this->outputBytes = $outputBytes;
1433
+ }
1434
+ public function getOutputBytes() {
1435
+ return $this->outputBytes;
1436
+ }
1437
+ public function setOutputRows( $outputRows) {
1438
+ $this->outputRows = $outputRows;
1439
+ }
1440
+ public function getOutputRows() {
1441
+ return $this->outputRows;
1442
+ }
1443
+ }
1444
+
1445
+ class Google_JobStatus extends Google_Model {
1446
+ protected $__errorResultType = 'Google_ErrorProto';
1447
+ protected $__errorResultDataType = '';
1448
+ public $errorResult;
1449
+ protected $__errorsType = 'Google_ErrorProto';
1450
+ protected $__errorsDataType = 'array';
1451
+ public $errors;
1452
+ public $state;
1453
+ public function setErrorResult(Google_ErrorProto $errorResult) {
1454
+ $this->errorResult = $errorResult;
1455
+ }
1456
+ public function getErrorResult() {
1457
+ return $this->errorResult;
1458
+ }
1459
+ public function setErrors(/* array(Google_ErrorProto) */ $errors) {
1460
+ $this->assertIsArray($errors, 'Google_ErrorProto', __METHOD__);
1461
+ $this->errors = $errors;
1462
+ }
1463
+ public function getErrors() {
1464
+ return $this->errors;
1465
+ }
1466
+ public function setState( $state) {
1467
+ $this->state = $state;
1468
+ }
1469
+ public function getState() {
1470
+ return $this->state;
1471
+ }
1472
+ }
1473
+
1474
+ class Google_ProjectList extends Google_Model {
1475
+ public $etag;
1476
+ public $kind;
1477
+ public $nextPageToken;
1478
+ protected $__projectsType = 'Google_ProjectListProjects';
1479
+ protected $__projectsDataType = 'array';
1480
+ public $projects;
1481
+ public $totalItems;
1482
+ public function setEtag( $etag) {
1483
+ $this->etag = $etag;
1484
+ }
1485
+ public function getEtag() {
1486
+ return $this->etag;
1487
+ }
1488
+ public function setKind( $kind) {
1489
+ $this->kind = $kind;
1490
+ }
1491
+ public function getKind() {
1492
+ return $this->kind;
1493
+ }
1494
+ public function setNextPageToken( $nextPageToken) {
1495
+ $this->nextPageToken = $nextPageToken;
1496
+ }
1497
+ public function getNextPageToken() {
1498
+ return $this->nextPageToken;
1499
+ }
1500
+ public function setProjects(/* array(Google_ProjectListProjects) */ $projects) {
1501
+ $this->assertIsArray($projects, 'Google_ProjectListProjects', __METHOD__);
1502
+ $this->projects = $projects;
1503
+ }
1504
+ public function getProjects() {
1505
+ return $this->projects;
1506
+ }
1507
+ public function setTotalItems( $totalItems) {
1508
+ $this->totalItems = $totalItems;
1509
+ }
1510
+ public function getTotalItems() {
1511
+ return $this->totalItems;
1512
+ }
1513
+ }
1514
+
1515
+ class Google_ProjectListProjects extends Google_Model {
1516
+ public $friendlyName;
1517
+ public $id;
1518
+ public $kind;
1519
+ public $numericId;
1520
+ protected $__projectReferenceType = 'Google_ProjectReference';
1521
+ protected $__projectReferenceDataType = '';
1522
+ public $projectReference;
1523
+ public function setFriendlyName( $friendlyName) {
1524
+ $this->friendlyName = $friendlyName;
1525
+ }
1526
+ public function getFriendlyName() {
1527
+ return $this->friendlyName;
1528
+ }
1529
+ public function setId( $id) {
1530
+ $this->id = $id;
1531
+ }
1532
+ public function getId() {
1533
+ return $this->id;
1534
+ }
1535
+ public function setKind( $kind) {
1536
+ $this->kind = $kind;
1537
+ }
1538
+ public function getKind() {
1539
+ return $this->kind;
1540
+ }
1541
+ public function setNumericId( $numericId) {
1542
+ $this->numericId = $numericId;
1543
+ }
1544
+ public function getNumericId() {
1545
+ return $this->numericId;
1546
+ }
1547
+ public function setProjectReference(Google_ProjectReference $projectReference) {
1548
+ $this->projectReference = $projectReference;
1549
+ }
1550
+ public function getProjectReference() {
1551
+ return $this->projectReference;
1552
+ }
1553
+ }
1554
+
1555
+ class Google_ProjectReference extends Google_Model {
1556
+ public $projectId;
1557
+ public function setProjectId( $projectId) {
1558
+ $this->projectId = $projectId;
1559
+ }
1560
+ public function getProjectId() {
1561
+ return $this->projectId;
1562
+ }
1563
+ }
1564
+
1565
+ class Google_QueryRequest extends Google_Model {
1566
+ protected $__defaultDatasetType = 'Google_DatasetReference';
1567
+ protected $__defaultDatasetDataType = '';
1568
+ public $defaultDataset;
1569
+ public $dryRun;
1570
+ public $kind;
1571
+ public $maxResults;
1572
+ public $minCompletionRatio;
1573
+ public $preserveNulls;
1574
+ public $query;
1575
+ public $timeoutMs;
1576
+ public $useQueryCache;
1577
+ public function setDefaultDataset(Google_DatasetReference $defaultDataset) {
1578
+ $this->defaultDataset = $defaultDataset;
1579
+ }
1580
+ public function getDefaultDataset() {
1581
+ return $this->defaultDataset;
1582
+ }
1583
+ public function setDryRun( $dryRun) {
1584
+ $this->dryRun = $dryRun;
1585
+ }
1586
+ public function getDryRun() {
1587
+ return $this->dryRun;
1588
+ }
1589
+ public function setKind( $kind) {
1590
+ $this->kind = $kind;
1591
+ }
1592
+ public function getKind() {
1593
+ return $this->kind;
1594
+ }
1595
+ public function setMaxResults( $maxResults) {
1596
+ $this->maxResults = $maxResults;
1597
+ }
1598
+ public function getMaxResults() {
1599
+ return $this->maxResults;
1600
+ }
1601
+ public function setMinCompletionRatio( $minCompletionRatio) {
1602
+ $this->minCompletionRatio = $minCompletionRatio;
1603
+ }
1604
+ public function getMinCompletionRatio() {
1605
+ return $this->minCompletionRatio;
1606
+ }
1607
+ public function setPreserveNulls( $preserveNulls) {
1608
+ $this->preserveNulls = $preserveNulls;
1609
+ }
1610
+ public function getPreserveNulls() {
1611
+ return $this->preserveNulls;
1612
+ }
1613
+ public function setQuery( $query) {
1614
+ $this->query = $query;
1615
+ }
1616
+ public function getQuery() {
1617
+ return $this->query;
1618
+ }
1619
+ public function setTimeoutMs( $timeoutMs) {
1620
+ $this->timeoutMs = $timeoutMs;
1621
+ }
1622
+ public function getTimeoutMs() {
1623
+ return $this->timeoutMs;
1624
+ }
1625
+ public function setUseQueryCache( $useQueryCache) {
1626
+ $this->useQueryCache = $useQueryCache;
1627
+ }
1628
+ public function getUseQueryCache() {
1629
+ return $this->useQueryCache;
1630
+ }
1631
+ }
1632
+
1633
+ class Google_QueryResponse extends Google_Model {
1634
+ public $cacheHit;
1635
+ public $jobComplete;
1636
+ protected $__jobReferenceType = 'Google_JobReference';
1637
+ protected $__jobReferenceDataType = '';
1638
+ public $jobReference;
1639
+ public $kind;
1640
+ public $pageToken;
1641
+ protected $__rowsType = 'Google_TableRow';
1642
+ protected $__rowsDataType = 'array';
1643
+ public $rows;
1644
+ protected $__schemaType = 'Google_TableSchema';
1645
+ protected $__schemaDataType = '';
1646
+ public $schema;
1647
+ public $totalBytesProcessed;
1648
+ public $totalRows;
1649
+ public function setCacheHit( $cacheHit) {
1650
+ $this->cacheHit = $cacheHit;
1651
+ }
1652
+ public function getCacheHit() {
1653
+ return $this->cacheHit;
1654
+ }
1655
+ public function setJobComplete( $jobComplete) {
1656
+ $this->jobComplete = $jobComplete;
1657
+ }
1658
+ public function getJobComplete() {
1659
+ return $this->jobComplete;
1660
+ }
1661
+ public function setJobReference(Google_JobReference $jobReference) {
1662
+ $this->jobReference = $jobReference;
1663
+ }
1664
+ public function getJobReference() {
1665
+ return $this->jobReference;
1666
+ }
1667
+ public function setKind( $kind) {
1668
+ $this->kind = $kind;
1669
+ }
1670
+ public function getKind() {
1671
+ return $this->kind;
1672
+ }
1673
+ public function setPageToken( $pageToken) {
1674
+ $this->pageToken = $pageToken;
1675
+ }
1676
+ public function getPageToken() {
1677
+ return $this->pageToken;
1678
+ }
1679
+ public function setRows(/* array(Google_TableRow) */ $rows) {
1680
+ $this->assertIsArray($rows, 'Google_TableRow', __METHOD__);
1681
+ $this->rows = $rows;
1682
+ }
1683
+ public function getRows() {
1684
+ return $this->rows;
1685
+ }
1686
+ public function setSchema(Google_TableSchema $schema) {
1687
+ $this->schema = $schema;
1688
+ }
1689
+ public function getSchema() {
1690
+ return $this->schema;
1691
+ }
1692
+ public function setTotalBytesProcessed( $totalBytesProcessed) {
1693
+ $this->totalBytesProcessed = $totalBytesProcessed;
1694
+ }
1695
+ public function getTotalBytesProcessed() {
1696
+ return $this->totalBytesProcessed;
1697
+ }
1698
+ public function setTotalRows( $totalRows) {
1699
+ $this->totalRows = $totalRows;
1700
+ }
1701
+ public function getTotalRows() {
1702
+ return $this->totalRows;
1703
+ }
1704
+ }
1705
+
1706
+ class Google_Table extends Google_Model {
1707
+ public $creationTime;
1708
+ public $description;
1709
+ public $etag;
1710
+ public $expirationTime;
1711
+ public $friendlyName;
1712
+ public $id;
1713
+ public $kind;
1714
+ public $lastModifiedTime;
1715
+ public $numBytes;
1716
+ public $numRows;
1717
+ protected $__schemaType = 'Google_TableSchema';
1718
+ protected $__schemaDataType = '';
1719
+ public $schema;
1720
+ public $selfLink;
1721
+ protected $__tableReferenceType = 'Google_TableReference';
1722
+ protected $__tableReferenceDataType = '';
1723
+ public $tableReference;
1724
+ public function setCreationTime( $creationTime) {
1725
+ $this->creationTime = $creationTime;
1726
+ }
1727
+ public function getCreationTime() {
1728
+ return $this->creationTime;
1729
+ }
1730
+ public function setDescription( $description) {
1731
+ $this->description = $description;
1732
+ }
1733
+ public function getDescription() {
1734
+ return $this->description;
1735
+ }
1736
+ public function setEtag( $etag) {
1737
+ $this->etag = $etag;
1738
+ }
1739
+ public function getEtag() {
1740
+ return $this->etag;
1741
+ }
1742
+ public function setExpirationTime( $expirationTime) {
1743
+ $this->expirationTime = $expirationTime;
1744
+ }
1745
+ public function getExpirationTime() {
1746
+ return $this->expirationTime;
1747
+ }
1748
+ public function setFriendlyName( $friendlyName) {
1749
+ $this->friendlyName = $friendlyName;
1750
+ }
1751
+ public function getFriendlyName() {
1752
+ return $this->friendlyName;
1753
+ }
1754
+ public function setId( $id) {
1755
+ $this->id = $id;
1756
+ }
1757
+ public function getId() {
1758
+ return $this->id;
1759
+ }
1760
+ public function setKind( $kind) {
1761
+ $this->kind = $kind;
1762
+ }
1763
+ public function getKind() {
1764
+ return $this->kind;
1765
+ }
1766
+ public function setLastModifiedTime( $lastModifiedTime) {
1767
+ $this->lastModifiedTime = $lastModifiedTime;
1768
+ }
1769
+ public function getLastModifiedTime() {
1770
+ return $this->lastModifiedTime;
1771
+ }
1772
+ public function setNumBytes( $numBytes) {
1773
+ $this->numBytes = $numBytes;
1774
+ }
1775
+ public function getNumBytes() {
1776
+ return $this->numBytes;
1777
+ }
1778
+ public function setNumRows( $numRows) {
1779
+ $this->numRows = $numRows;
1780
+ }
1781
+ public function getNumRows() {
1782
+ return $this->numRows;
1783
+ }
1784
+ public function setSchema(Google_TableSchema $schema) {
1785
+ $this->schema = $schema;
1786
+ }
1787
+ public function getSchema() {
1788
+ return $this->schema;
1789
+ }
1790
+ public function setSelfLink( $selfLink) {
1791
+ $this->selfLink = $selfLink;
1792
+ }
1793
+ public function getSelfLink() {
1794
+ return $this->selfLink;
1795
+ }
1796
+ public function setTableReference(Google_TableReference $tableReference) {
1797
+ $this->tableReference = $tableReference;
1798
+ }
1799
+ public function getTableReference() {
1800
+ return $this->tableReference;
1801
+ }
1802
+ }
1803
+
1804
+ class Google_TableCell extends Google_Model {
1805
+ public $v;
1806
+ public function setV( $v) {
1807
+ $this->v = $v;
1808
+ }
1809
+ public function getV() {
1810
+ return $this->v;
1811
+ }
1812
+ }
1813
+
1814
+ class Google_TableDataList extends Google_Model {
1815
+ public $etag;
1816
+ public $kind;
1817
+ public $pageToken;
1818
+ protected $__rowsType = 'Google_TableRow';
1819
+ protected $__rowsDataType = 'array';
1820
+ public $rows;
1821
+ public $totalRows;
1822
+ public function setEtag( $etag) {
1823
+ $this->etag = $etag;
1824
+ }
1825
+ public function getEtag() {
1826
+ return $this->etag;
1827
+ }
1828
+ public function setKind( $kind) {
1829
+ $this->kind = $kind;
1830
+ }
1831
+ public function getKind() {
1832
+ return $this->kind;
1833
+ }
1834
+ public function setPageToken( $pageToken) {
1835
+ $this->pageToken = $pageToken;
1836
+ }
1837
+ public function getPageToken() {
1838
+ return $this->pageToken;
1839
+ }
1840
+ public function setRows(/* array(Google_TableRow) */ $rows) {
1841
+ $this->assertIsArray($rows, 'Google_TableRow', __METHOD__);
1842
+ $this->rows = $rows;
1843
+ }
1844
+ public function getRows() {
1845
+ return $this->rows;
1846
+ }
1847
+ public function setTotalRows( $totalRows) {
1848
+ $this->totalRows = $totalRows;
1849
+ }
1850
+ public function getTotalRows() {
1851
+ return $this->totalRows;
1852
+ }
1853
+ }
1854
+
1855
+ class Google_TableFieldSchema extends Google_Model {
1856
+ protected $__fieldsType = 'Google_TableFieldSchema';
1857
+ protected $__fieldsDataType = 'array';
1858
+ public $fields;
1859
+ public $mode;
1860
+ public $name;
1861
+ public $type;
1862
+ public function setFields(/* array(Google_TableFieldSchema) */ $fields) {
1863
+ $this->assertIsArray($fields, 'Google_TableFieldSchema', __METHOD__);
1864
+ $this->fields = $fields;
1865
+ }
1866
+ public function getFields() {
1867
+ return $this->fields;
1868
+ }
1869
+ public function setMode( $mode) {
1870
+ $this->mode = $mode;
1871
+ }
1872
+ public function getMode() {
1873
+ return $this->mode;
1874
+ }
1875
+ public function setName( $name) {
1876
+ $this->name = $name;
1877
+ }
1878
+ public function getName() {
1879
+ return $this->name;
1880
+ }
1881
+ public function setType( $type) {
1882
+ $this->type = $type;
1883
+ }
1884
+ public function getType() {
1885
+ return $this->type;
1886
+ }
1887
+ }
1888
+
1889
+ class Google_TableList extends Google_Model {
1890
+ public $etag;
1891
+ public $kind;
1892
+ public $nextPageToken;
1893
+ protected $__tablesType = 'Google_TableListTables';
1894
+ protected $__tablesDataType = 'array';
1895
+ public $tables;
1896
+ public $totalItems;
1897
+ public function setEtag( $etag) {
1898
+ $this->etag = $etag;
1899
+ }
1900
+ public function getEtag() {
1901
+ return $this->etag;
1902
+ }
1903
+ public function setKind( $kind) {
1904
+ $this->kind = $kind;
1905
+ }
1906
+ public function getKind() {
1907
+ return $this->kind;
1908
+ }
1909
+ public function setNextPageToken( $nextPageToken) {
1910
+ $this->nextPageToken = $nextPageToken;
1911
+ }
1912
+ public function getNextPageToken() {
1913
+ return $this->nextPageToken;
1914
+ }
1915
+ public function setTables(/* array(Google_TableListTables) */ $tables) {
1916
+ $this->assertIsArray($tables, 'Google_TableListTables', __METHOD__);
1917
+ $this->tables = $tables;
1918
+ }
1919
+ public function getTables() {
1920
+ return $this->tables;
1921
+ }
1922
+ public function setTotalItems( $totalItems) {
1923
+ $this->totalItems = $totalItems;
1924
+ }
1925
+ public function getTotalItems() {
1926
+ return $this->totalItems;
1927
+ }
1928
+ }
1929
+
1930
+ class Google_TableListTables extends Google_Model {
1931
+ public $friendlyName;
1932
+ public $id;
1933
+ public $kind;
1934
+ protected $__tableReferenceType = 'Google_TableReference';
1935
+ protected $__tableReferenceDataType = '';
1936
+ public $tableReference;
1937
+ public function setFriendlyName( $friendlyName) {
1938
+ $this->friendlyName = $friendlyName;
1939
+ }
1940
+ public function getFriendlyName() {
1941
+ return $this->friendlyName;
1942
+ }
1943
+ public function setId( $id) {
1944
+ $this->id = $id;
1945
+ }
1946
+ public function getId() {
1947
+ return $this->id;
1948
+ }
1949
+ public function setKind( $kind) {
1950
+ $this->kind = $kind;
1951
+ }
1952
+ public function getKind() {
1953
+ return $this->kind;
1954
+ }
1955
+ public function setTableReference(Google_TableReference $tableReference) {
1956
+ $this->tableReference = $tableReference;
1957
+ }
1958
+ public function getTableReference() {
1959
+ return $this->tableReference;
1960
+ }
1961
+ }
1962
+
1963
+ class Google_TableReference extends Google_Model {
1964
+ public $datasetId;
1965
+ public $projectId;
1966
+ public $tableId;
1967
+ public function setDatasetId( $datasetId) {
1968
+ $this->datasetId = $datasetId;
1969
+ }
1970
+ public function getDatasetId() {
1971
+ return $this->datasetId;
1972
+ }
1973
+ public function setProjectId( $projectId) {
1974
+ $this->projectId = $projectId;
1975
+ }
1976
+ public function getProjectId() {
1977
+ return $this->projectId;
1978
+ }
1979
+ public function setTableId( $tableId) {
1980
+ $this->tableId = $tableId;
1981
+ }
1982
+ public function getTableId() {
1983
+ return $this->tableId;
1984
+ }
1985
+ }
1986
+
1987
+ class Google_TableRow extends Google_Model {
1988
+ protected $__fType = 'Google_TableCell';
1989
+ protected $__fDataType = 'array';
1990
+ public $f;
1991
+ public function setF(/* array(Google_TableCell) */ $f) {
1992
+ $this->assertIsArray($f, 'Google_TableCell', __METHOD__);
1993
+ $this->f = $f;
1994
+ }
1995
+ public function getF() {
1996
+ return $this->f;
1997
+ }
1998
+ }
1999
+
2000
+ class Google_TableSchema extends Google_Model {
2001
+ protected $__fieldsType = 'Google_TableFieldSchema';
2002
+ protected $__fieldsDataType = 'array';
2003
+ public $fields;
2004
+ public function setFields(/* array(Google_TableFieldSchema) */ $fields) {
2005
+ $this->assertIsArray($fields, 'Google_TableFieldSchema', __METHOD__);
2006
+ $this->fields = $fields;
2007
+ }
2008
+ public function getFields() {
2009
+ return $this->fields;
2010
+ }
2011
+ }
googleclient/contrib/Google_BloggerService.php ADDED
@@ -0,0 +1,1389 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /*
3
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
4
+ * use this file except in compliance with the License. You may obtain a copy of
5
+ * the License at
6
+ *
7
+ * http://www.apache.org/licenses/LICENSE-2.0
8
+ *
9
+ * Unless required by applicable law or agreed to in writing, software
10
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
11
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
12
+ * License for the specific language governing permissions and limitations under
13
+ * the License.
14
+ */
15
+
16
+
17
+ /**
18
+ * The "blogUserInfos" collection of methods.
19
+ * Typical usage is:
20
+ * <code>
21
+ * $bloggerService = new Google_BloggerService(...);
22
+ * $blogUserInfos = $bloggerService->blogUserInfos;
23
+ * </code>
24
+ */
25
+ class Google_BlogUserInfosServiceResource extends Google_ServiceResource {
26
+
27
+ /**
28
+ * Gets one blog and user info pair by blogId and userId. (blogUserInfos.get)
29
+ *
30
+ * @param string $userId ID of the user whose blogs are to be fetched. Either the word 'self' (sans quote marks) or the user's profile identifier.
31
+ * @param string $blogId The ID of the blog to get.
32
+ * @param array $optParams Optional parameters.
33
+ *
34
+ * @opt_param string maxPosts Maximum number of posts to pull back with the blog.
35
+ * @return Google_BlogUserInfo
36
+ */
37
+ public function get($userId, $blogId, $optParams = array()) {
38
+ $params = array('userId' => $userId, 'blogId' => $blogId);
39
+ $params = array_merge($params, $optParams);
40
+ $data = $this->__call('get', array($params));
41
+ if ($this->useObjects()) {
42
+ return new Google_BlogUserInfo($data);
43
+ } else {
44
+ return $data;
45
+ }
46
+ }
47
+ }
48
+
49
+ /**
50
+ * The "blogs" collection of methods.
51
+ * Typical usage is:
52
+ * <code>
53
+ * $bloggerService = new Google_BloggerService(...);
54
+ * $blogs = $bloggerService->blogs;
55
+ * </code>
56
+ */
57
+ class Google_BlogsServiceResource extends Google_ServiceResource {
58
+
59
+ /**
60
+ * Gets one blog by id. (blogs.get)
61
+ *
62
+ * @param string $blogId The ID of the blog to get.
63
+ * @param array $optParams Optional parameters.
64
+ *
65
+ * @opt_param string maxPosts Maximum number of posts to pull back with the blog.
66
+ * @return Google_Blog
67
+ */
68
+ public function get($blogId, $optParams = array()) {
69
+ $params = array('blogId' => $blogId);
70
+ $params = array_merge($params, $optParams);
71
+ $data = $this->__call('get', array($params));
72
+ if ($this->useObjects()) {
73
+ return new Google_Blog($data);
74
+ } else {
75
+ return $data;
76
+ }
77
+ }
78
+ /**
79
+ * Retrieve a Blog by URL. (blogs.getByUrl)
80
+ *
81
+ * @param string $url The URL of the blog to retrieve.
82
+ * @param array $optParams Optional parameters.
83
+ * @return Google_Blog
84
+ */
85
+ public function getByUrl($url, $optParams = array()) {
86
+ $params = array('url' => $url);
87
+ $params = array_merge($params, $optParams);
88
+ $data = $this->__call('getByUrl', array($params));
89
+ if ($this->useObjects()) {
90
+ return new Google_Blog($data);
91
+ } else {
92
+ return $data;
93
+ }
94
+ }
95
+ /**
96
+ * Retrieves a list of blogs, possibly filtered. (blogs.listByUser)
97
+ *
98
+ * @param string $userId ID of the user whose blogs are to be fetched. Either the word 'self' (sans quote marks) or the user's profile identifier.
99
+ * @param array $optParams Optional parameters.
100
+ * @return Google_BlogList
101
+ */
102
+ public function listByUser($userId, $optParams = array()) {
103
+ $params = array('userId' => $userId);
104
+ $params = array_merge($params, $optParams);
105
+ $data = $this->__call('listByUser', array($params));
106
+ if ($this->useObjects()) {
107
+ return new Google_BlogList($data);
108
+ } else {
109
+ return $data;
110
+ }
111
+ }
112
+ }
113
+
114
+ /**
115
+ * The "comments" collection of methods.
116
+ * Typical usage is:
117
+ * <code>
118
+ * $bloggerService = new Google_BloggerService(...);
119
+ * $comments = $bloggerService->comments;
120
+ * </code>
121
+ */
122
+ class Google_CommentsServiceResource extends Google_ServiceResource {
123
+
124
+ /**
125
+ * Gets one comment by id. (comments.get)
126
+ *
127
+ * @param string $blogId ID of the blog to containing the comment.
128
+ * @param string $postId ID of the post to fetch posts from.
129
+ * @param string $commentId The ID of the comment to get.
130
+ * @param array $optParams Optional parameters.
131
+ * @return Google_Comment
132
+ */
133
+ public function get($blogId, $postId, $commentId, $optParams = array()) {
134
+ $params = array('blogId' => $blogId, 'postId' => $postId, 'commentId' => $commentId);
135
+ $params = array_merge($params, $optParams);
136
+ $data = $this->__call('get', array($params));
137
+ if ($this->useObjects()) {
138
+ return new Google_Comment($data);
139
+ } else {
140
+ return $data;
141
+ }
142
+ }
143
+ /**
144
+ * Retrieves the comments for a blog, possibly filtered. (comments.list)
145
+ *
146
+ * @param string $blogId ID of the blog to fetch comments from.
147
+ * @param string $postId ID of the post to fetch posts from.
148
+ * @param array $optParams Optional parameters.
149
+ *
150
+ * @opt_param string endDate Latest date of comment to fetch, a date-time with RFC 3339 formatting.
151
+ * @opt_param bool fetchBodies Whether the body content of the comments is included.
152
+ * @opt_param string maxResults Maximum number of comments to include in the result.
153
+ * @opt_param string pageToken Continuation token if request is paged.
154
+ * @opt_param string startDate Earliest date of comment to fetch, a date-time with RFC 3339 formatting.
155
+ * @return Google_CommentList
156
+ */
157
+ public function listComments($blogId, $postId, $optParams = array()) {
158
+ $params = array('blogId' => $blogId, 'postId' => $postId);
159
+ $params = array_merge($params, $optParams);
160
+ $data = $this->__call('list', array($params));
161
+ if ($this->useObjects()) {
162
+ return new Google_CommentList($data);
163
+ } else {
164
+ return $data;
165
+ }
166
+ }
167
+ }
168
+
169
+ /**
170
+ * The "pages" collection of methods.
171
+ * Typical usage is:
172
+ * <code>
173
+ * $bloggerService = new Google_BloggerService(...);
174
+ * $pages = $bloggerService->pages;
175
+ * </code>
176
+ */
177
+ class Google_PagesServiceResource extends Google_ServiceResource {
178
+
179
+ /**
180
+ * Gets one blog page by id. (pages.get)
181
+ *
182
+ * @param string $blogId ID of the blog containing the page.
183
+ * @param string $pageId The ID of the page to get.
184
+ * @param array $optParams Optional parameters.
185
+ * @return Google_Page
186
+ */
187
+ public function get($blogId, $pageId, $optParams = array()) {
188
+ $params = array('blogId' => $blogId, 'pageId' => $pageId);
189
+ $params = array_merge($params, $optParams);
190
+ $data = $this->__call('get', array($params));
191
+ if ($this->useObjects()) {
192
+ return new Google_Page($data);
193
+ } else {
194
+ return $data;
195
+ }
196
+ }
197
+ /**
198
+ * Retrieves pages for a blog, possibly filtered. (pages.list)
199
+ *
200
+ * @param string $blogId ID of the blog to fetch pages from.
201
+ * @param array $optParams Optional parameters.
202
+ *
203
+ * @opt_param bool fetchBodies Whether to retrieve the Page bodies.
204
+ * @return Google_PageList
205
+ */
206
+ public function listPages($blogId, $optParams = array()) {
207
+ $params = array('blogId' => $blogId);
208
+ $params = array_merge($params, $optParams);
209
+ $data = $this->__call('list', array($params));
210
+ if ($this->useObjects()) {
211
+ return new Google_PageList($data);
212
+ } else {
213
+ return $data;
214
+ }
215
+ }
216
+ }
217
+
218
+ /**
219
+ * The "posts" collection of methods.
220
+ * Typical usage is:
221
+ * <code>
222
+ * $bloggerService = new Google_BloggerService(...);
223
+ * $posts = $bloggerService->posts;
224
+ * </code>
225
+ */
226
+ class Google_PostsServiceResource extends Google_ServiceResource {
227
+
228
+ /**
229
+ * Delete a post by id. (posts.delete)
230
+ *
231
+ * @param string $blogId The Id of the Blog.
232
+ * @param string $postId The ID of the Post.
233
+ * @param array $optParams Optional parameters.
234
+ */
235
+ public function delete($blogId, $postId, $optParams = array()) {
236
+ $params = array('blogId' => $blogId, 'postId' => $postId);
237
+ $params = array_merge($params, $optParams);
238
+ $data = $this->__call('delete', array($params));
239
+ return $data;
240
+ }
241
+ /**
242
+ * Get a post by id. (posts.get)
243
+ *
244
+ * @param string $blogId ID of the blog to fetch the post from.
245
+ * @param string $postId The ID of the post
246
+ * @param array $optParams Optional parameters.
247
+ *
248
+ * @opt_param string maxComments Maximum number of comments to pull back on a post.
249
+ * @return Google_Post
250
+ */
251
+ public function get($blogId, $postId, $optParams = array()) {
252
+ $params = array('blogId' => $blogId, 'postId' => $postId);
253
+ $params = array_merge($params, $optParams);
254
+ $data = $this->__call('get', array($params));
255
+ if ($this->useObjects()) {
256
+ return new Google_Post($data);
257
+ } else {
258
+ return $data;
259
+ }
260
+ }
261
+ /**
262
+ * Retrieve a Post by Path. (posts.getByPath)
263
+ *
264
+ * @param string $blogId ID of the blog to fetch the post from.
265
+ * @param string $path Path of the Post to retrieve.
266
+ * @param array $optParams Optional parameters.
267
+ *
268
+ * @opt_param string maxComments Maximum number of comments to pull back on a post.
269
+ * @return Google_Post
270
+ */
271
+ public function getByPath($blogId, $path, $optParams = array()) {
272
+ $params = array('blogId' => $blogId, 'path' => $path);
273
+ $params = array_merge($params, $optParams);
274
+ $data = $this->__call('getByPath', array($params));
275
+ if ($this->useObjects()) {
276
+ return new Google_Post($data);
277
+ } else {
278
+ return $data;
279
+ }
280
+ }
281
+ /**
282
+ * Add a post. (posts.insert)
283
+ *
284
+ * @param string $blogId ID of the blog to add the post to.
285
+ * @param Google_Post $postBody
286
+ * @param array $optParams Optional parameters.
287
+ * @return Google_Post
288
+ */
289
+ public function insert($blogId, Google_Post $postBody, $optParams = array()) {
290
+ $params = array('blogId' => $blogId, 'postBody' => $postBody);
291
+ $params = array_merge($params, $optParams);
292
+ $data = $this->__call('insert', array($params));
293
+ if ($this->useObjects()) {
294
+ return new Google_Post($data);
295
+ } else {
296
+ return $data;
297
+ }
298
+ }
299
+ /**
300
+ * Retrieves a list of posts, possibly filtered. (posts.list)
301
+ *
302
+ * @param string $blogId ID of the blog to fetch posts from.
303
+ * @param array $optParams Optional parameters.
304
+ *
305
+ * @opt_param string endDate Latest post date to fetch, a date-time with RFC 3339 formatting.
306
+ * @opt_param bool fetchBodies Whether the body content of posts is included.
307
+ * @opt_param string labels Comma-separated list of labels to search for.
308
+ * @opt_param string maxResults Maximum number of posts to fetch.
309
+ * @opt_param string pageToken Continuation token if the request is paged.
310
+ * @opt_param string startDate Earliest post date to fetch, a date-time with RFC 3339 formatting.
311
+ * @return Google_PostList
312
+ */
313
+ public function listPosts($blogId, $optParams = array()) {
314
+ $params = array('blogId' => $blogId);
315
+ $params = array_merge($params, $optParams);
316
+ $data = $this->__call('list', array($params));
317
+ if ($this->useObjects()) {
318
+ return new Google_PostList($data);
319
+ } else {
320
+ return $data;
321
+ }
322
+ }
323
+ /**
324
+ * Update a post. This method supports patch semantics. (posts.patch)
325
+ *
326
+ * @param string $blogId The ID of the Blog.
327
+ * @param string $postId The ID of the Post.
328
+ * @param Google_Post $postBody
329
+ * @param array $optParams Optional parameters.
330
+ * @return Google_Post
331
+ */
332
+ public function patch($blogId, $postId, Google_Post $postBody, $optParams = array()) {
333
+ $params = array('blogId' => $blogId, 'postId' => $postId, 'postBody' => $postBody);
334
+ $params = array_merge($params, $optParams);
335
+ $data = $this->__call('patch', array($params));
336
+ if ($this->useObjects()) {
337
+ return new Google_Post($data);
338
+ } else {
339
+ return $data;
340
+ }
341
+ }
342
+ /**
343
+ * Search for a post. (posts.search)
344
+ *
345
+ * @param string $blogId ID of the blog to fetch the post from.
346
+ * @param string $q Query terms to search this blog for matching posts.
347
+ * @param array $optParams Optional parameters.
348
+ * @return Google_PostList
349
+ */
350
+ public function search($blogId, $q, $optParams = array()) {
351
+ $params = array('blogId' => $blogId, 'q' => $q);
352
+ $params = array_merge($params, $optParams);
353
+ $data = $this->__call('search', array($params));
354
+ if ($this->useObjects()) {
355
+ return new Google_PostList($data);
356
+ } else {
357
+ return $data;
358
+ }
359
+ }
360
+ /**
361
+ * Update a post. (posts.update)
362
+ *
363
+ * @param string $blogId The ID of the Blog.
364
+ * @param string $postId The ID of the Post.
365
+ * @param Google_Post $postBody
366
+ * @param array $optParams Optional parameters.
367
+ * @return Google_Post
368
+ */
369
+ public function update($blogId, $postId, Google_Post $postBody, $optParams = array()) {
370
+ $params = array('blogId' => $blogId, 'postId' => $postId, 'postBody' => $postBody);
371
+ $params = array_merge($params, $optParams);
372
+ $data = $this->__call('update', array($params));
373
+ if ($this->useObjects()) {
374
+ return new Google_Post($data);
375
+ } else {
376
+ return $data;
377
+ }
378
+ }
379
+ }
380
+
381
+ /**
382
+ * The "users" collection of methods.
383
+ * Typical usage is:
384
+ * <code>
385
+ * $bloggerService = new Google_BloggerService(...);
386
+ * $users = $bloggerService->users;
387
+ * </code>
388
+ */
389
+ class Google_UsersServiceResource extends Google_ServiceResource {
390
+
391
+ /**
392
+ * Gets one user by id. (users.get)
393
+ *
394
+ * @param string $userId The ID of the user to get.
395
+ * @param array $optParams Optional parameters.
396
+ * @return Google_User
397
+ */
398
+ public function get($userId, $optParams = array()) {
399
+ $params = array('userId' => $userId);
400
+ $params = array_merge($params, $optParams);
401
+ $data = $this->__call('get', array($params));
402
+ if ($this->useObjects()) {
403
+ return new Google_User($data);
404
+ } else {
405
+ return $data;
406
+ }
407
+ }
408
+ }
409
+
410
+ /**
411
+ * Service definition for Google_Blogger (v3).
412
+ *
413
+ * <p>
414
+ * API for access to the data within Blogger.
415
+ * </p>
416
+ *
417
+ * <p>
418
+ * For more information about this service, see the
419
+ * <a href="https://developers.google.com/blogger/docs/3.0/getting_started" target="_blank">API Documentation</a>
420
+ * </p>
421
+ *
422
+ * @author Google, Inc.
423
+ */
424
+ class Google_BloggerService extends Google_Service {
425
+ public $blogUserInfos;
426
+ public $blogs;
427
+ public $comments;
428
+ public $pages;
429
+ public $posts;
430
+ public $users;
431
+ /**
432
+ * Constructs the internal representation of the Blogger service.
433
+ *
434
+ * @param Google_Client $client
435
+ */
436
+ public function __construct(Google_Client $client) {
437
+ $this->servicePath = 'blogger/v3/';
438
+ $this->version = 'v3';
439
+ $this->serviceName = 'blogger';
440
+
441
+ $client->addService($this->serviceName, $this->version);
442
+ $this->blogUserInfos = new Google_BlogUserInfosServiceResource($this, $this->serviceName, 'blogUserInfos', json_decode('{"methods": {"get": {"id": "blogger.blogUserInfos.get", "path": "users/{userId}/blogs/{blogId}", "httpMethod": "GET", "parameters": {"blogId": {"type": "string", "required": true, "location": "path"}, "maxPosts": {"type": "integer", "format": "uint32", "location": "query"}, "userId": {"type": "string", "required": true, "location": "path"}}, "response": {"$ref": "BlogUserInfo"}, "scopes": ["https://www.googleapis.com/auth/blogger", "https://www.googleapis.com/auth/blogger.readonly"]}}}', true));
443
+ $this->blogs = new Google_BlogsServiceResource($this, $this->serviceName, 'blogs', json_decode('{"methods": {"get": {"id": "blogger.blogs.get", "path": "blogs/{blogId}", "httpMethod": "GET", "parameters": {"blogId": {"type": "string", "required": true, "location": "path"}, "maxPosts": {"type": "integer", "format": "uint32", "location": "query"}}, "response": {"$ref": "Blog"}, "scopes": ["https://www.googleapis.com/auth/blogger", "https://www.googleapis.com/auth/blogger.readonly"]}, "getByUrl": {"id": "blogger.blogs.getByUrl", "path": "blogs/byurl", "httpMethod": "GET", "parameters": {"url": {"type": "string", "required": true, "location": "query"}}, "response": {"$ref": "Blog"}, "scopes": ["https://www.googleapis.com/auth/blogger", "https://www.googleapis.com/auth/blogger.readonly"]}, "listByUser": {"id": "blogger.blogs.listByUser", "path": "users/{userId}/blogs", "httpMethod": "GET", "parameters": {"userId": {"type": "string", "required": true, "location": "path"}}, "response": {"$ref": "BlogList"}, "scopes": ["https://www.googleapis.com/auth/blogger", "https://www.googleapis.com/auth/blogger.readonly"]}}}', true));
444
+ $this->comments = new Google_CommentsServiceResource($this, $this->serviceName, 'comments', json_decode('{"methods": {"get": {"id": "blogger.comments.get", "path": "blogs/{blogId}/posts/{postId}/comments/{commentId}", "httpMethod": "GET", "parameters": {"blogId": {"type": "string", "required": true, "location": "path"}, "commentId": {"type": "string", "required": true, "location": "path"}, "postId": {"type": "string", "required": true, "location": "path"}}, "response": {"$ref": "Comment"}, "scopes": ["https://www.googleapis.com/auth/blogger", "https://www.googleapis.com/auth/blogger.readonly"]}, "list": {"id": "blogger.comments.list", "path": "blogs/{blogId}/posts/{postId}/comments", "httpMethod": "GET", "parameters": {"blogId": {"type": "string", "required": true, "location": "path"}, "endDate": {"type": "string", "format": "date-time", "location": "query"}, "fetchBodies": {"type": "boolean", "location": "query"}, "maxResults": {"type": "integer", "format": "uint32", "location": "query"}, "pageToken": {"type": "string", "location": "query"}, "postId": {"type": "string", "required": true, "location": "path"}, "startDate": {"type": "string", "format": "date-time", "location": "query"}}, "response": {"$ref": "CommentList"}, "scopes": ["https://www.googleapis.com/auth/blogger", "https://www.googleapis.com/auth/blogger.readonly"]}}}', true));
445
+ $this->pages = new Google_PagesServiceResource($this, $this->serviceName, 'pages', json_decode('{"methods": {"get": {"id": "blogger.pages.get", "path": "blogs/{blogId}/pages/{pageId}", "httpMethod": "GET", "parameters": {"blogId": {"type": "string", "required": true, "location": "path"}, "pageId": {"type": "string", "required": true, "location": "path"}}, "response": {"$ref": "Page"}, "scopes": ["https://www.googleapis.com/auth/blogger", "https://www.googleapis.com/auth/blogger.readonly"]}, "list": {"id": "blogger.pages.list", "path": "blogs/{blogId}/pages", "httpMethod": "GET", "parameters": {"blogId": {"type": "string", "required": true, "location": "path"}, "fetchBodies": {"type": "boolean", "location": "query"}}, "response": {"$ref": "PageList"}, "scopes": ["https://www.googleapis.com/auth/blogger", "https://www.googleapis.com/auth/blogger.readonly"]}}}', true));
446
+ $this->posts = new Google_PostsServiceResource($this, $this->serviceName, 'posts', json_decode('{"methods": {"delete": {"id": "blogger.posts.delete", "path": "blogs/{blogId}/posts/{postId}", "httpMethod": "DELETE", "parameters": {"blogId": {"type": "string", "required": true, "location": "path"}, "postId": {"type": "string", "required": true, "location": "path"}}, "scopes": ["https://www.googleapis.com/auth/blogger"]}, "get": {"id": "blogger.posts.get", "path": "blogs/{blogId}/posts/{postId}", "httpMethod": "GET", "parameters": {"blogId": {"type": "string", "required": true, "location": "path"}, "maxComments": {"type": "integer", "format": "uint32", "location": "query"}, "postId": {"type": "string", "required": true, "location": "path"}}, "response": {"$ref": "Post"}, "scopes": ["https://www.googleapis.com/auth/blogger", "https://www.googleapis.com/auth/blogger.readonly"]}, "getByPath": {"id": "blogger.posts.getByPath", "path": "blogs/{blogId}/posts/bypath", "httpMethod": "GET", "parameters": {"blogId": {"type": "string", "required": true, "location": "path"}, "maxComments": {"type": "integer", "format": "uint32", "location": "query"}, "path": {"type": "string", "required": true, "location": "query"}}, "response": {"$ref": "Post"}, "scopes": ["https://www.googleapis.com/auth/blogger", "https://www.googleapis.com/auth/blogger.readonly"]}, "insert": {"id": "blogger.posts.insert", "path": "blogs/{blogId}/posts", "httpMethod": "POST", "parameters": {"blogId": {"type": "string", "required": true, "location": "path"}}, "request": {"$ref": "Post"}, "response": {"$ref": "Post"}, "scopes": ["https://www.googleapis.com/auth/blogger"]}, "list": {"id": "blogger.posts.list", "path": "blogs/{blogId}/posts", "httpMethod": "GET", "parameters": {"blogId": {"type": "string", "required": true, "location": "path"}, "endDate": {"type": "string", "format": "date-time", "location": "query"}, "fetchBodies": {"type": "boolean", "location": "query"}, "labels": {"type": "string", "location": "query"}, "maxResults": {"type": "integer", "format": "uint32", "location": "query"}, "pageToken": {"type": "string", "location": "query"}, "startDate": {"type": "string", "format": "date-time", "location": "query"}}, "response": {"$ref": "PostList"}, "scopes": ["https://www.googleapis.com/auth/blogger", "https://www.googleapis.com/auth/blogger.readonly"]}, "patch": {"id": "blogger.posts.patch", "path": "blogs/{blogId}/posts/{postId}", "httpMethod": "PATCH", "parameters": {"blogId": {"type": "string", "required": true, "location": "path"}, "postId": {"type": "string", "required": true, "location": "path"}}, "request": {"$ref": "Post"}, "response": {"$ref": "Post"}, "scopes": ["https://www.googleapis.com/auth/blogger"]}, "search": {"id": "blogger.posts.search", "path": "blogs/{blogId}/posts/search", "httpMethod": "GET", "parameters": {"blogId": {"type": "string", "required": true, "location": "path"}, "q": {"type": "string", "required": true, "location": "query"}}, "response": {"$ref": "PostList"}, "scopes": ["https://www.googleapis.com/auth/blogger", "https://www.googleapis.com/auth/blogger.readonly"]}, "update": {"id": "blogger.posts.update", "path": "blogs/{blogId}/posts/{postId}", "httpMethod": "PUT", "parameters": {"blogId": {"type": "string", "required": true, "location": "path"}, "postId": {"type": "string", "required": true, "location": "path"}}, "request": {"$ref": "Post"}, "response": {"$ref": "Post"}, "scopes": ["https://www.googleapis.com/auth/blogger"]}}}', true));
447
+ $this->users = new Google_UsersServiceResource($this, $this->serviceName, 'users', json_decode('{"methods": {"get": {"id": "blogger.users.get", "path": "users/{userId}", "httpMethod": "GET", "parameters": {"userId": {"type": "string", "required": true, "location": "path"}}, "response": {"$ref": "User"}, "scopes": ["https://www.googleapis.com/auth/blogger", "https://www.googleapis.com/auth/blogger.readonly"]}}}', true));
448
+
449
+ }
450
+ }
451
+
452
+
453
+
454
+ class Google_Blog extends Google_Model {
455
+ public $customMetaData;
456
+ public $description;
457
+ public $id;
458
+ public $kind;
459
+ protected $__localeType = 'Google_BlogLocale';
460
+ protected $__localeDataType = '';
461
+ public $locale;
462
+ public $name;
463
+ protected $__pagesType = 'Google_BlogPages';
464
+ protected $__pagesDataType = '';
465
+ public $pages;
466
+ protected $__postsType = 'Google_BlogPosts';
467
+ protected $__postsDataType = '';
468
+ public $posts;
469
+ public $published;
470
+ public $selfLink;
471
+ public $updated;
472
+ public $url;
473
+ public function setCustomMetaData( $customMetaData) {
474
+ $this->customMetaData = $customMetaData;
475
+ }
476
+ public function getCustomMetaData() {
477
+ return $this->customMetaData;
478
+ }
479
+ public function setDescription( $description) {
480
+ $this->description = $description;
481
+ }
482
+ public function getDescription() {
483
+ return $this->description;
484
+ }
485
+ public function setId( $id) {
486
+ $this->id = $id;
487
+ }
488
+ public function getId() {
489
+ return $this->id;
490
+ }
491
+ public function setKind( $kind) {
492
+ $this->kind = $kind;
493
+ }
494
+ public function getKind() {
495
+ return $this->kind;
496
+ }
497
+ public function setLocale(Google_BlogLocale $locale) {
498
+ $this->locale = $locale;
499
+ }
500
+ public function getLocale() {
501
+ return $this->locale;
502
+ }
503
+ public function setName( $name) {
504
+ $this->name = $name;
505
+ }
506
+ public function getName() {
507
+ return $this->name;
508
+ }
509
+ public function setPages(Google_BlogPages $pages) {
510
+ $this->pages = $pages;
511
+ }
512
+ public function getPages() {
513
+ return $this->pages;
514
+ }
515
+ public function setPosts(Google_BlogPosts $posts) {
516
+ $this->posts = $posts;
517
+ }
518
+ public function getPosts() {
519
+ return $this->posts;
520
+ }
521
+ public function setPublished( $published) {
522
+ $this->published = $published;
523
+ }
524
+ public function getPublished() {
525
+ return $this->published;
526
+ }
527
+ public function setSelfLink( $selfLink) {
528
+ $this->selfLink = $selfLink;
529
+ }
530
+ public function getSelfLink() {
531
+ return $this->selfLink;
532
+ }
533
+ public function setUpdated( $updated) {
534
+ $this->updated = $updated;
535
+ }
536
+ public function getUpdated() {
537
+ return $this->updated;
538
+ }
539
+ public function setUrl( $url) {
540
+ $this->url = $url;
541
+ }
542
+ public function getUrl() {
543
+ return $this->url;
544
+ }
545
+ }
546
+
547
+ class Google_BlogList extends Google_Model {
548
+ protected $__itemsType = 'Google_Blog';
549
+ protected $__itemsDataType = 'array';
550
+ public $items;
551
+ public $kind;
552
+ public function setItems(/* array(Google_Blog) */ $items) {
553
+ $this->assertIsArray($items, 'Google_Blog', __METHOD__);
554
+ $this->items = $items;
555
+ }
556
+ public function getItems() {
557
+ return $this->items;
558
+ }
559
+ public function setKind( $kind) {
560
+ $this->kind = $kind;
561
+ }
562
+ public function getKind() {
563
+ return $this->kind;
564
+ }
565
+ }
566
+
567
+ class Google_BlogLocale extends Google_Model {
568
+ public $country;
569
+ public $language;
570
+ public $variant;
571
+ public function setCountry( $country) {
572
+ $this->country = $country;
573
+ }
574
+ public function getCountry() {
575
+ return $this->country;
576
+ }
577
+ public function setLanguage( $language) {
578
+ $this->language = $language;
579
+ }
580
+ public function getLanguage() {
581
+ return $this->language;
582
+ }
583
+ public function setVariant( $variant) {
584
+ $this->variant = $variant;
585
+ }
586
+ public function getVariant() {
587
+ return $this->variant;
588
+ }
589
+ }
590
+
591
+ class Google_BlogPages extends Google_Model {
592
+ public $selfLink;
593
+ public $totalItems;
594
+ public function setSelfLink( $selfLink) {
595
+ $this->selfLink = $selfLink;
596
+ }
597
+ public function getSelfLink() {
598
+ return $this->selfLink;
599
+ }
600
+ public function setTotalItems( $totalItems) {
601
+ $this->totalItems = $totalItems;
602
+ }
603
+ public function getTotalItems() {
604
+ return $this->totalItems;
605
+ }
606
+ }
607
+
608
+ class Google_BlogPerUserInfo extends Google_Model {
609
+ public $blogId;
610
+ public $kind;
611
+ public $photosAlbumKey;
612
+ public $userId;
613
+ public function setBlogId( $blogId) {
614
+ $this->blogId = $blogId;
615
+ }
616
+ public function getBlogId() {
617
+ return $this->blogId;
618
+ }
619
+ public function setKind( $kind) {
620
+ $this->kind = $kind;
621
+ }
622
+ public function getKind() {
623
+ return $this->kind;
624
+ }
625
+ public function setPhotosAlbumKey( $photosAlbumKey) {
626
+ $this->photosAlbumKey = $photosAlbumKey;
627
+ }
628
+ public function getPhotosAlbumKey() {
629
+ return $this->photosAlbumKey;
630
+ }
631
+ public function setUserId( $userId) {
632
+ $this->userId = $userId;
633
+ }
634
+ public function getUserId() {
635
+ return $this->userId;
636
+ }
637
+ }
638
+
639
+ class Google_BlogPosts extends Google_Model {
640
+ protected $__itemsType = 'Google_Post';
641
+ protected $__itemsDataType = 'array';
642
+ public $items;
643
+ public $selfLink;
644
+ public $totalItems;
645
+ public function setItems(/* array(Google_Post) */ $items) {
646
+ $this->assertIsArray($items, 'Google_Post', __METHOD__);
647
+ $this->items = $items;
648
+ }
649
+ public function getItems() {
650
+ return $this->items;
651
+ }
652
+ public function setSelfLink( $selfLink) {
653
+ $this->selfLink = $selfLink;
654
+ }
655
+ public function getSelfLink() {
656
+ return $this->selfLink;
657
+ }
658
+ public function setTotalItems( $totalItems) {
659
+ $this->totalItems = $totalItems;
660
+ }
661
+ public function getTotalItems() {
662
+ return $this->totalItems;
663
+ }
664
+ }
665
+
666
+ class Google_BlogUserInfo extends Google_Model {
667
+ protected $__blogType = 'Google_Blog';
668
+ protected $__blogDataType = '';
669
+ public $blog;
670
+ public $kind;
671
+ protected $__userType = 'Google_BlogPerUserInfo';
672
+ protected $__userDataType = '';
673
+ public $user;
674
+ public function setBlog(Google_Blog $blog) {
675
+ $this->blog = $blog;
676
+ }
677
+ public function getBlog() {
678
+ return $this->blog;
679
+ }
680
+ public function setKind( $kind) {
681
+ $this->kind = $kind;
682
+ }
683
+ public function getKind() {
684
+ return $this->kind;
685
+ }
686
+ public function setUser(Google_BlogPerUserInfo $user) {
687
+ $this->user = $user;
688
+ }
689
+ public function getUser() {
690
+ return $this->user;
691
+ }
692
+ }
693
+
694
+ class Google_Comment extends Google_Model {
695
+ protected $__authorType = 'Google_CommentAuthor';
696
+ protected $__authorDataType = '';
697
+ public $author;
698
+ protected $__blogType = 'Google_CommentBlog';
699
+ protected $__blogDataType = '';
700
+ public $blog;
701
+ public $content;
702
+ public $id;
703
+ protected $__inReplyToType = 'Google_CommentInReplyTo';
704
+ protected $__inReplyToDataType = '';
705
+ public $inReplyTo;
706
+ public $kind;
707
+ protected $__postType = 'Google_CommentPost';
708
+ protected $__postDataType = '';
709
+ public $post;
710
+ public $published;
711
+ public $selfLink;
712
+ public $updated;
713
+ public function setAuthor(Google_CommentAuthor $author) {
714
+ $this->author = $author;
715
+ }
716
+ public function getAuthor() {
717
+ return $this->author;
718
+ }
719
+ public function setBlog(Google_CommentBlog $blog) {
720
+ $this->blog = $blog;
721
+ }
722
+ public function getBlog() {
723
+ return $this->blog;
724
+ }
725
+ public function setContent( $content) {
726
+ $this->content = $content;
727
+ }
728
+ public function getContent() {
729
+ return $this->content;
730
+ }
731
+ public function setId( $id) {
732
+ $this->id = $id;
733
+ }
734
+ public function getId() {
735
+ return $this->id;
736
+ }
737
+ public function setInReplyTo(Google_CommentInReplyTo $inReplyTo) {
738
+ $this->inReplyTo = $inReplyTo;
739
+ }
740
+ public function getInReplyTo() {
741
+ return $this->inReplyTo;
742
+ }
743
+ public function setKind( $kind) {
744
+ $this->kind = $kind;
745
+ }
746
+ public function getKind() {
747
+ return $this->kind;
748
+ }
749
+ public function setPost(Google_CommentPost $post) {
750
+ $this->post = $post;
751
+ }
752
+ public function getPost() {
753
+ return $this->post;
754
+ }
755
+ public function setPublished( $published) {
756
+ $this->published = $published;
757
+ }
758
+ public function getPublished() {
759
+ return $this->published;
760
+ }
761
+ public function setSelfLink( $selfLink) {
762
+ $this->selfLink = $selfLink;
763
+ }
764
+ public function getSelfLink() {
765
+ return $this->selfLink;
766
+ }
767
+ public function setUpdated( $updated) {
768
+ $this->updated = $updated;
769
+ }
770
+ public function getUpdated() {
771
+ return $this->updated;
772
+ }
773
+ }
774
+
775
+ class Google_CommentAuthor extends Google_Model {
776
+ public $displayName;
777
+ public $id;
778
+ protected $__imageType = 'Google_CommentAuthorImage';
779
+ protected $__imageDataType = '';
780
+ public $image;
781
+ public $url;
782
+ public function setDisplayName( $displayName) {
783
+ $this->displayName = $displayName;
784
+ }
785
+ public function getDisplayName() {
786
+ return $this->displayName;
787
+ }
788
+ public function setId( $id) {
789
+ $this->id = $id;
790
+ }
791
+ public function getId() {
792
+ return $this->id;
793
+ }
794
+ public function setImage(Google_CommentAuthorImage $image) {
795
+ $this->image = $image;
796
+ }
797
+ public function getImage() {
798
+ return $this->image;
799
+ }
800
+ public function setUrl( $url) {
801
+ $this->url = $url;
802
+ }
803
+ public function getUrl() {
804
+ return $this->url;
805
+ }
806
+ }
807
+
808
+ class Google_CommentAuthorImage extends Google_Model {
809
+ public $url;
810
+ public function setUrl( $url) {
811
+ $this->url = $url;
812
+ }
813
+ public function getUrl() {
814
+ return $this->url;
815
+ }
816
+ }
817
+
818
+ class Google_CommentBlog extends Google_Model {
819
+ public $id;
820
+ public function setId( $id) {
821
+ $this->id = $id;
822
+ }
823
+ public function getId() {
824
+ return $this->id;
825
+ }
826
+ }
827
+
828
+ class Google_CommentInReplyTo extends Google_Model {
829
+ public $id;
830
+ public function setId( $id) {
831
+ $this->id = $id;
832
+ }
833
+ public function getId() {
834
+ return $this->id;
835
+ }
836
+ }
837
+
838
+ class Google_CommentList extends Google_Model {
839
+ protected $__itemsType = 'Google_Comment';
840
+ protected $__itemsDataType = 'array';
841
+ public $items;
842
+ public $kind;
843
+ public $nextPageToken;
844
+ public $prevPageToken;
845
+ public function setItems(/* array(Google_Comment) */ $items) {
846
+ $this->assertIsArray($items, 'Google_Comment', __METHOD__);
847
+ $this->items = $items;
848
+ }
849
+ public function getItems() {
850
+ return $this->items;
851
+ }
852
+ public function setKind( $kind) {
853
+ $this->kind = $kind;
854
+ }
855
+ public function getKind() {
856
+ return $this->kind;
857
+ }
858
+ public function setNextPageToken( $nextPageToken) {
859
+ $this->nextPageToken = $nextPageToken;
860
+ }
861
+ public function getNextPageToken() {
862
+ return $this->nextPageToken;
863
+ }
864
+ public function setPrevPageToken( $prevPageToken) {
865
+ $this->prevPageToken = $prevPageToken;
866
+ }
867
+ public function getPrevPageToken() {
868
+ return $this->prevPageToken;
869
+ }
870
+ }
871
+
872
+ class Google_CommentPost extends Google_Model {
873
+ public $id;
874
+ public function setId( $id) {
875
+ $this->id = $id;
876
+ }
877
+ public function getId() {
878
+ return $this->id;
879
+ }
880
+ }
881
+
882
+ class Google_Page extends Google_Model {
883
+ protected $__authorType = 'Google_PageAuthor';
884
+ protected $__authorDataType = '';
885
+ public $author;
886
+ protected $__blogType = 'Google_PageBlog';
887
+ protected $__blogDataType = '';
888
+ public $blog;
889
+ public $content;
890
+ public $id;
891
+ public $kind;
892
+ public $published;
893
+ public $selfLink;
894
+ public $title;
895
+ public $updated;
896
+ public $url;
897
+ public function setAuthor(Google_PageAuthor $author) {
898
+ $this->author = $author;
899
+ }
900
+ public function getAuthor() {
901
+ return $this->author;
902
+ }
903
+ public function setBlog(Google_PageBlog $blog) {
904
+ $this->blog = $blog;
905
+ }
906
+ public function getBlog() {
907
+ return $this->blog;
908
+ }
909
+ public function setContent( $content) {
910
+ $this->content = $content;
911
+ }
912
+ public function getContent() {
913
+ return $this->content;
914
+ }
915
+ public function setId( $id) {
916
+ $this->id = $id;
917
+ }
918
+ public function getId() {
919
+ return $this->id;
920
+ }
921
+ public function setKind( $kind) {
922
+ $this->kind = $kind;
923
+ }
924
+ public function getKind() {
925
+ return $this->kind;
926
+ }
927
+ public function setPublished( $published) {
928
+ $this->published = $published;
929
+ }
930
+ public function getPublished() {
931
+ return $this->published;
932
+ }
933
+ public function setSelfLink( $selfLink) {
934
+ $this->selfLink = $selfLink;
935
+ }
936
+ public function getSelfLink() {
937
+ return $this->selfLink;
938
+ }
939
+ public function setTitle( $title) {
940
+ $this->title = $title;
941
+ }
942
+ public function getTitle() {
943
+ return $this->title;
944
+ }
945
+ public function setUpdated( $updated) {
946
+ $this->updated = $updated;
947
+ }
948
+ public function getUpdated() {
949
+ return $this->updated;
950
+ }
951
+ public function setUrl( $url) {
952
+ $this->url = $url;
953
+ }
954
+ public function getUrl() {
955
+ return $this->url;
956
+ }
957
+ }
958
+
959
+ class Google_PageAuthor extends Google_Model {
960
+ public $displayName;
961
+ public $id;
962
+ protected $__imageType = 'Google_PageAuthorImage';
963
+ protected $__imageDataType = '';
964
+ public $image;
965
+ public $url;
966
+ public function setDisplayName( $displayName) {
967
+ $this->displayName = $displayName;
968
+ }
969
+ public function getDisplayName() {
970
+ return $this->displayName;
971
+ }
972
+ public function setId( $id) {
973
+ $this->id = $id;
974
+ }
975
+ public function getId() {
976
+ return $this->id;
977
+ }
978
+ public function setImage(Google_PageAuthorImage $image) {
979
+ $this->image = $image;
980
+ }
981
+ public function getImage() {
982
+ return $this->image;
983
+ }
984
+ public function setUrl( $url) {
985
+ $this->url = $url;
986
+ }
987
+ public function getUrl() {
988
+ return $this->url;
989
+ }
990
+ }
991
+
992
+ class Google_PageAuthorImage extends Google_Model {
993
+ public $url;
994
+ public function setUrl( $url) {
995
+ $this->url = $url;
996
+ }
997
+ public function getUrl() {
998
+ return $this->url;
999
+ }
1000
+ }
1001
+
1002
+ class Google_PageBlog extends Google_Model {
1003
+ public $id;
1004
+ public function setId( $id) {
1005
+ $this->id = $id;
1006
+ }
1007
+ public function getId() {
1008
+ return $this->id;
1009
+ }
1010
+ }
1011
+
1012
+ class Google_PageList extends Google_Model {
1013
+ protected $__itemsType = 'Google_Page';
1014
+ protected $__itemsDataType = 'array';
1015
+ public $items;
1016
+ public $kind;
1017
+ public function setItems(/* array(Google_Page) */ $items) {
1018
+ $this->assertIsArray($items, 'Google_Page', __METHOD__);
1019
+ $this->items = $items;
1020
+ }
1021
+ public function getItems() {
1022
+ return $this->items;
1023
+ }
1024
+ public function setKind( $kind) {
1025
+ $this->kind = $kind;
1026
+ }
1027
+ public function getKind() {
1028
+ return $this->kind;
1029
+ }
1030
+ }
1031
+
1032
+ class Google_Post extends Google_Model {
1033
+ protected $__authorType = 'Google_PostAuthor';
1034
+ protected $__authorDataType = '';
1035
+ public $author;
1036
+ protected $__blogType = 'Google_PostBlog';
1037
+ protected $__blogDataType = '';
1038
+ public $blog;
1039
+ public $content;
1040
+ public $customMetaData;
1041
+ public $id;
1042
+ public $kind;
1043
+ public $labels;
1044
+ protected $__locationType = 'Google_PostLocation';
1045
+ protected $__locationDataType = '';
1046
+ public $location;
1047
+ public $published;
1048
+ protected $__repliesType = 'Google_PostReplies';
1049
+ protected $__repliesDataType = '';
1050
+ public $replies;
1051
+ public $selfLink;
1052
+ public $title;
1053
+ public $updated;
1054
+ public $url;
1055
+ public function setAuthor(Google_PostAuthor $author) {
1056
+ $this->author = $author;
1057
+ }
1058
+ public function getAuthor() {
1059
+ return $this->author;
1060
+ }
1061
+ public function setBlog(Google_PostBlog $blog) {
1062
+ $this->blog = $blog;
1063
+ }
1064
+ public function getBlog() {
1065
+ return $this->blog;
1066
+ }
1067
+ public function setContent( $content) {
1068
+ $this->content = $content;
1069
+ }
1070
+ public function getContent() {
1071
+ return $this->content;
1072
+ }
1073
+ public function setCustomMetaData( $customMetaData) {
1074
+ $this->customMetaData = $customMetaData;
1075
+ }
1076
+ public function getCustomMetaData() {
1077
+ return $this->customMetaData;
1078
+ }
1079
+ public function setId( $id) {
1080
+ $this->id = $id;
1081
+ }
1082
+ public function getId() {
1083
+ return $this->id;
1084
+ }
1085
+ public function setKind( $kind) {
1086
+ $this->kind = $kind;
1087
+ }
1088
+ public function getKind() {
1089
+ return $this->kind;
1090
+ }
1091
+ public function setLabels(/* array(Google_string) */ $labels) {
1092
+ $this->assertIsArray($labels, 'Google_string', __METHOD__);
1093
+ $this->labels = $labels;
1094
+ }
1095
+ public function getLabels() {
1096
+ return $this->labels;
1097
+ }
1098
+ public function setLocation(Google_PostLocation $location) {
1099
+ $this->location = $location;
1100
+ }
1101
+ public function getLocation() {
1102
+ return $this->location;
1103
+ }
1104
+ public function setPublished( $published) {
1105
+ $this->published = $published;
1106
+ }
1107
+ public function getPublished() {
1108
+ return $this->published;
1109
+ }
1110
+ public function setReplies(Google_PostReplies $replies) {
1111
+ $this->replies = $replies;
1112
+ }
1113
+ public function getReplies() {
1114
+ return $this->replies;
1115
+ }
1116
+ public function setSelfLink( $selfLink) {
1117
+ $this->selfLink = $selfLink;
1118
+ }
1119
+ public function getSelfLink() {
1120
+ return $this->selfLink;
1121
+ }
1122
+ public function setTitle( $title) {
1123
+ $this->title = $title;
1124
+ }
1125
+ public function getTitle() {
1126
+ return $this->title;
1127
+ }
1128
+ public function setUpdated( $updated) {
1129
+ $this->updated = $updated;
1130
+ }
1131
+ public function getUpdated() {
1132
+ return $this->updated;
1133
+ }
1134
+ public function setUrl( $url) {
1135
+ $this->url = $url;
1136
+ }
1137
+ public function getUrl() {
1138
+ return $this->url;
1139
+ }
1140
+ }
1141
+
1142
+ class Google_PostAuthor extends Google_Model {
1143
+ public $displayName;
1144
+ public $id;
1145
+ protected $__imageType = 'Google_PostAuthorImage';
1146
+ protected $__imageDataType = '';
1147
+ public $image;
1148
+ public $url;
1149
+ public function setDisplayName( $displayName) {
1150
+ $this->displayName = $displayName;
1151
+ }
1152
+ public function getDisplayName() {
1153
+ return $this->displayName;
1154
+ }
1155
+ public function setId( $id) {
1156
+ $this->id = $id;
1157
+ }
1158
+ public function getId() {
1159
+ return $this->id;
1160
+ }
1161
+ public function setImage(Google_PostAuthorImage $image) {
1162
+ $this->image = $image;
1163
+ }
1164
+ public function getImage() {
1165
+ return $this->image;
1166
+ }
1167
+ public function setUrl( $url) {
1168
+ $this->url = $url;
1169
+ }
1170
+ public function getUrl() {
1171
+ return $this->url;
1172
+ }
1173
+ }
1174
+
1175
+ class Google_PostAuthorImage extends Google_Model {
1176
+ public $url;
1177
+ public function setUrl( $url) {
1178
+ $this->url = $url;
1179
+ }
1180
+ public function getUrl() {
1181
+ return $this->url;
1182
+ }
1183
+ }
1184
+
1185
+ class Google_PostBlog extends Google_Model {
1186
+ public $id;
1187
+ public function setId( $id) {
1188
+ $this->id = $id;
1189
+ }
1190
+ public function getId() {
1191
+ return $this->id;
1192
+ }
1193
+ }
1194
+
1195
+ class Google_PostList extends Google_Model {
1196
+ protected $__itemsType = 'Google_Post';
1197
+ protected $__itemsDataType = 'array';
1198
+ public $items;
1199
+ public $kind;
1200
+ public $nextPageToken;
1201
+ public $prevPageToken;
1202
+ public function setItems(/* array(Google_Post) */ $items) {
1203
+ $this->assertIsArray($items, 'Google_Post', __METHOD__);
1204
+ $this->items = $items;
1205
+ }
1206
+ public function getItems() {
1207
+ return $this->items;
1208
+ }
1209
+ public function setKind( $kind) {
1210
+ $this->kind = $kind;
1211
+ }
1212
+ public function getKind() {
1213
+ return $this->kind;
1214
+ }
1215
+ public function setNextPageToken( $nextPageToken) {
1216
+ $this->nextPageToken = $nextPageToken;
1217
+ }
1218
+ public function getNextPageToken() {
1219
+ return $this->nextPageToken;
1220
+ }
1221
+ public function setPrevPageToken( $prevPageToken) {
1222
+ $this->prevPageToken = $prevPageToken;
1223
+ }
1224
+ public function getPrevPageToken() {
1225
+ return $this->prevPageToken;
1226
+ }
1227
+ }
1228
+
1229
+ class Google_PostLocation extends Google_Model {
1230
+ public $lat;
1231
+ public $lng;
1232
+ public $name;
1233
+ public $span;
1234
+ public function setLat( $lat) {
1235
+ $this->lat = $lat;
1236
+ }
1237
+ public function getLat() {
1238
+ return $this->lat;
1239
+ }
1240
+ public function setLng( $lng) {
1241
+ $this->lng = $lng;
1242
+ }
1243
+ public function getLng() {
1244
+ return $this->lng;
1245
+ }
1246
+ public function setName( $name) {
1247
+ $this->name = $name;
1248
+ }
1249
+ public function getName() {
1250
+ return $this->name;
1251
+ }
1252
+ public function setSpan( $span) {
1253
+ $this->span = $span;
1254
+ }
1255
+ public function getSpan() {
1256
+ return $this->span;
1257
+ }
1258
+ }
1259
+
1260
+ class Google_PostReplies extends Google_Model {
1261
+ protected $__itemsType = 'Google_Comment';
1262
+ protected $__itemsDataType = 'array';
1263
+ public $items;
1264
+ public $selfLink;
1265
+ public $totalItems;
1266
+ public function setItems(/* array(Google_Comment) */ $items) {
1267
+ $this->assertIsArray($items, 'Google_Comment', __METHOD__);
1268
+ $this->items = $items;
1269
+ }
1270
+ public function getItems() {
1271
+ return $this->items;
1272
+ }
1273
+ public function setSelfLink( $selfLink) {
1274
+ $this->selfLink = $selfLink;
1275
+ }
1276
+ public function getSelfLink() {
1277
+ return $this->selfLink;
1278
+ }
1279
+ public function setTotalItems( $totalItems) {
1280
+ $this->totalItems = $totalItems;
1281
+ }
1282
+ public function getTotalItems() {
1283
+ return $this->totalItems;
1284
+ }
1285
+ }
1286
+
1287
+ class Google_User extends Google_Model {
1288
+ public $about;
1289
+ protected $__blogsType = 'Google_UserBlogs';
1290
+ protected $__blogsDataType = '';
1291
+ public $blogs;
1292
+ public $created;
1293
+ public $displayName;
1294
+ public $id;
1295
+ public $kind;
1296
+ protected $__localeType = 'Google_UserLocale';
1297
+ protected $__localeDataType = '';
1298
+ public $locale;
1299
+ public $selfLink;
1300
+ public $url;
1301
+ public function setAbout( $about) {
1302
+ $this->about = $about;
1303
+ }
1304
+ public function getAbout() {
1305
+ return $this->about;
1306
+ }
1307
+ public function setBlogs(Google_UserBlogs $blogs) {
1308
+ $this->blogs = $blogs;
1309
+ }
1310
+ public function getBlogs() {
1311
+ return $this->blogs;
1312
+ }
1313
+ public function setCreated( $created) {
1314
+ $this->created = $created;
1315
+ }
1316
+ public function getCreated() {
1317
+ return $this->created;
1318
+ }
1319
+ public function setDisplayName( $displayName) {
1320
+ $this->displayName = $displayName;
1321
+ }
1322
+ public function getDisplayName() {
1323
+ return $this->displayName;
1324
+ }
1325
+ public function setId( $id) {
1326
+ $this->id = $id;
1327
+ }
1328
+ public function getId() {
1329
+ return $this->id;
1330
+ }
1331
+ public function setKind( $kind) {
1332
+ $this->kind = $kind;
1333
+ }
1334
+ public function getKind() {
1335
+ return $this->kind;
1336
+ }
1337
+ public function setLocale(Google_UserLocale $locale) {
1338
+ $this->locale = $locale;
1339
+ }
1340
+ public function getLocale() {
1341
+ return $this->locale;
1342
+ }
1343
+ public function setSelfLink( $selfLink) {
1344
+ $this->selfLink = $selfLink;
1345
+ }
1346
+ public function getSelfLink() {
1347
+ return $this->selfLink;
1348
+ }
1349
+ public function setUrl( $url) {
1350
+ $this->url = $url;
1351
+ }
1352
+ public function getUrl() {
1353
+ return $this->url;
1354
+ }
1355
+ }
1356
+
1357
+ class Google_UserBlogs extends Google_Model {
1358
+ public $selfLink;
1359
+ public function setSelfLink( $selfLink) {
1360
+ $this->selfLink = $selfLink;
1361
+ }
1362
+ public function getSelfLink() {
1363
+ return $this->selfLink;
1364
+ }
1365
+ }
1366
+
1367
+ class Google_UserLocale extends Google_Model {
1368
+ public $country;
1369
+ public $language;
1370
+ public $variant;
1371
+ public function setCountry( $country) {
1372
+ $this->country = $country;
1373
+ }
1374
+ public function getCountry() {
1375
+ return $this->country;
1376
+ }
1377
+ public function setLanguage( $language) {
1378
+ $this->language = $language;
1379
+ }
1380
+ public function getLanguage() {
1381
+ return $this->language;
1382
+ }
1383
+ public function setVariant( $variant) {
1384
+ $this->variant = $variant;
1385
+ }
1386
+ public function getVariant() {
1387
+ return $this->variant;
1388
+ }
1389
+ }
googleclient/contrib/Google_BooksService.php ADDED
@@ -0,0 +1,3491 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /*
3
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
4
+ * use this file except in compliance with the License. You may obtain a copy of
5
+ * the License at
6
+ *
7
+ * http://www.apache.org/licenses/LICENSE-2.0
8
+ *
9
+ * Unless required by applicable law or agreed to in writing, software
10
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
11
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
12
+ * License for the specific language governing permissions and limitations under
13
+ * the License.
14
+ */
15
+
16
+
17
+ /**
18
+ * The "bookshelves" collection of methods.
19
+ * Typical usage is:
20
+ * <code>
21
+ * $booksService = new Google_BooksService(...);
22
+ * $bookshelves = $booksService->bookshelves;
23
+ * </code>
24
+ */
25
+ class Google_BookshelvesServiceResource extends Google_ServiceResource {
26
+
27
+ /**
28
+ * Retrieves metadata for a specific bookshelf for the specified user. (bookshelves.get)
29
+ *
30
+ * @param string $userId ID of user for whom to retrieve bookshelves.
31
+ * @param string $shelf ID of bookshelf to retrieve.
32
+ * @param array $optParams Optional parameters.
33
+ *
34
+ * @opt_param string source String to identify the originator of this request.
35
+ * @return Google_Bookshelf
36
+ */
37
+ public function get($userId, $shelf, $optParams = array()) {
38
+ $params = array('userId' => $userId, 'shelf' => $shelf);
39
+ $params = array_merge($params, $optParams);
40
+ $data = $this->__call('get', array($params));
41
+ if ($this->useObjects()) {
42
+ return new Google_Bookshelf($data);
43
+ } else {
44
+ return $data;
45
+ }
46
+ }
47
+ /**
48
+ * Retrieves a list of public bookshelves for the specified user. (bookshelves.list)
49
+ *
50
+ * @param string $userId ID of user for whom to retrieve bookshelves.
51
+ * @param array $optParams Optional parameters.
52
+ *
53
+ * @opt_param string source String to identify the originator of this request.
54
+ * @return Google_Bookshelves
55
+ */
56
+ public function listBookshelves($userId, $optParams = array()) {
57
+ $params = array('userId' => $userId);
58
+ $params = array_merge($params, $optParams);
59
+ $data = $this->__call('list', array($params));
60
+ if ($this->useObjects()) {
61
+ return new Google_Bookshelves($data);
62
+ } else {
63
+ return $data;
64
+ }
65
+ }
66
+ }
67
+
68
+ /**
69
+ * The "volumes" collection of methods.
70
+ * Typical usage is:
71
+ * <code>
72
+ * $booksService = new Google_BooksService(...);
73
+ * $volumes = $booksService->volumes;
74
+ * </code>
75
+ */
76
+ class Google_BookshelvesVolumesServiceResource extends Google_ServiceResource {
77
+
78
+ /**
79
+ * Retrieves volumes in a specific bookshelf for the specified user. (volumes.list)
80
+ *
81
+ * @param string $userId ID of user for whom to retrieve bookshelf volumes.
82
+ * @param string $shelf ID of bookshelf to retrieve volumes.
83
+ * @param array $optParams Optional parameters.
84
+ *
85
+ * @opt_param string maxResults Maximum number of results to return
86
+ * @opt_param bool showPreorders Set to true to show pre-ordered books. Defaults to false.
87
+ * @opt_param string source String to identify the originator of this request.
88
+ * @opt_param string startIndex Index of the first element to return (starts at 0)
89
+ * @return Google_Volumes
90
+ */
91
+ public function listBookshelvesVolumes($userId, $shelf, $optParams = array()) {
92
+ $params = array('userId' => $userId, 'shelf' => $shelf);
93
+ $params = array_merge($params, $optParams);
94
+ $data = $this->__call('list', array($params));
95
+ if ($this->useObjects()) {
96
+ return new Google_Volumes($data);
97
+ } else {
98
+ return $data;
99
+ }
100
+ }
101
+ }
102
+
103
+ /**
104
+ * The "cloudloading" collection of methods.
105
+ * Typical usage is:
106
+ * <code>
107
+ * $booksService = new Google_BooksService(...);
108
+ * $cloudloading = $booksService->cloudloading;
109
+ * </code>
110
+ */
111
+ class Google_CloudloadingServiceResource extends Google_ServiceResource {
112
+
113
+ /**
114
+ * (cloudloading.addBook)
115
+ *
116
+ * @param array $optParams Optional parameters.
117
+ *
118
+ * @opt_param string drive_document_id A drive document id. The upload_client_token must not be set.
119
+ * @opt_param string mime_type The document MIME type. It can be set only if the drive_document_id is set.
120
+ * @opt_param string name The document name. It can be set only if the drive_document_id is set.
121
+ * @opt_param string upload_client_token
122
+ * @return Google_BooksCloudloadingResource
123
+ */
124
+ public function addBook($optParams = array()) {
125
+ $params = array();
126
+ $params = array_merge($params, $optParams);
127
+ $data = $this->__call('addBook', array($params));
128
+ if ($this->useObjects()) {
129
+ return new Google_BooksCloudloadingResource($data);
130
+ } else {
131
+ return $data;
132
+ }
133
+ }
134
+ /**
135
+ * Remove the book and its contents (cloudloading.deleteBook)
136
+ *
137
+ * @param string $volumeId The id of the book to be removed.
138
+ * @param array $optParams Optional parameters.
139
+ */
140
+ public function deleteBook($volumeId, $optParams = array()) {
141
+ $params = array('volumeId' => $volumeId);
142
+ $params = array_merge($params, $optParams);
143
+ $data = $this->__call('deleteBook', array($params));
144
+ return $data;
145
+ }
146
+ /**
147
+ * (cloudloading.updateBook)
148
+ *
149
+ * @param Google_BooksCloudloadingResource $postBody
150
+ * @param array $optParams Optional parameters.
151
+ * @return Google_BooksCloudloadingResource
152
+ */
153
+ public function updateBook(Google_BooksCloudloadingResource $postBody, $optParams = array()) {
154
+ $params = array('postBody' => $postBody);
155
+ $params = array_merge($params, $optParams);
156
+ $data = $this->__call('updateBook', array($params));
157
+ if ($this->useObjects()) {
158
+ return new Google_BooksCloudloadingResource($data);
159
+ } else {
160
+ return $data;
161
+ }
162
+ }
163
+ }
164
+
165
+ /**
166
+ * The "layers" collection of methods.
167
+ * Typical usage is:
168
+ * <code>
169
+ * $booksService = new Google_BooksService(...);
170
+ * $layers = $booksService->layers;
171
+ * </code>
172
+ */
173
+ class Google_LayersServiceResource extends Google_ServiceResource {
174
+
175
+ /**
176
+ * Gets the layer summary for a volume. (layers.get)
177
+ *
178
+ * @param string $volumeId The volume to retrieve layers for.
179
+ * @param string $summaryId The ID for the layer to get the summary for.
180
+ * @param array $optParams Optional parameters.
181
+ *
182
+ * @opt_param string contentVersion The content version for the requested volume.
183
+ * @opt_param string source String to identify the originator of this request.
184
+ * @return Google_Layersummary
185
+ */
186
+ public function get($volumeId, $summaryId, $optParams = array()) {
187
+ $params = array('volumeId' => $volumeId, 'summaryId' => $summaryId);
188
+ $params = array_merge($params, $optParams);
189
+ $data = $this->__call('get', array($params));
190
+ if ($this->useObjects()) {
191
+ return new Google_Layersummary($data);
192
+ } else {
193
+ return $data;
194
+ }
195
+ }
196
+ /**
197
+ * List the layer summaries for a volume. (layers.list)
198
+ *
199
+ * @param string $volumeId The volume to retrieve layers for.
200
+ * @param array $optParams Optional parameters.
201
+ *
202
+ * @opt_param string contentVersion The content version for the requested volume.
203
+ * @opt_param string maxResults Maximum number of results to return
204
+ * @opt_param string pageToken The value of the nextToken from the previous page.
205
+ * @opt_param string source String to identify the originator of this request.
206
+ * @return Google_Layersummaries
207
+ */
208
+ public function listLayers($volumeId, $optParams = array()) {
209
+ $params = array('volumeId' => $volumeId);
210
+ $params = array_merge($params, $optParams);
211
+ $data = $this->__call('list', array($params));
212
+ if ($this->useObjects()) {
213
+ return new Google_Layersummaries($data);
214
+ } else {
215
+ return $data;
216
+ }
217
+ }
218
+ }
219
+
220
+ /**
221
+ * The "annotationData" collection of methods.
222
+ * Typical usage is:
223
+ * <code>
224
+ * $booksService = new Google_BooksService(...);
225
+ * $annotationData = $booksService->annotationData;
226
+ * </code>
227
+ */
228
+ class Google_LayersAnnotationDataServiceResource extends Google_ServiceResource {
229
+
230
+ /**
231
+ * Gets the annotation data. (annotationData.get)
232
+ *
233
+ * @param string $volumeId The volume to retrieve annotations for.
234
+ * @param string $layerId The ID for the layer to get the annotations.
235
+ * @param string $annotationDataId The ID of the annotation data to retrieve.
236
+ * @param string $contentVersion The content version for the volume you are trying to retrieve.
237
+ * @param array $optParams Optional parameters.
238
+ *
239
+ * @opt_param int h The requested pixel height for any images. If height is provided width must also be provided.
240
+ * @opt_param string locale The locale information for the data. ISO-639-1 language and ISO-3166-1 country code. Ex: 'en_US'.
241
+ * @opt_param int scale The requested scale for the image.
242
+ * @opt_param string source String to identify the originator of this request.
243
+ * @opt_param int w The requested pixel width for any images. If width is provided height must also be provided.
244
+ * @return Google_Annotationdata
245
+ */
246
+ public function get($volumeId, $layerId, $annotationDataId, $contentVersion, $optParams = array()) {
247
+ $params = array('volumeId' => $volumeId, 'layerId' => $layerId, 'annotationDataId' => $annotationDataId, 'contentVersion' => $contentVersion);
248
+ $params = array_merge($params, $optParams);
249
+ $data = $this->__call('get', array($params));
250
+ if ($this->useObjects()) {
251
+ return new Google_Annotationdata($data);
252
+ } else {
253
+ return $data;
254
+ }
255
+ }
256
+ /**
257
+ * Gets the annotation data for a volume and layer. (annotationData.list)
258
+ *
259
+ * @param string $volumeId The volume to retrieve annotation data for.
260
+ * @param string $layerId The ID for the layer to get the annotation data.
261
+ * @param string $contentVersion The content version for the requested volume.
262
+ * @param array $optParams Optional parameters.
263
+ *
264
+ * @opt_param string annotationDataId The list of Annotation Data Ids to retrieve. Pagination is ignored if this is set.
265
+ * @opt_param int h The requested pixel height for any images. If height is provided width must also be provided.
266
+ * @opt_param string locale The locale information for the data. ISO-639-1 language and ISO-3166-1 country code. Ex: 'en_US'.
267
+ * @opt_param string maxResults Maximum number of results to return
268
+ * @opt_param string pageToken The value of the nextToken from the previous page.
269
+ * @opt_param int scale The requested scale for the image.
270
+ * @opt_param string source String to identify the originator of this request.
271
+ * @opt_param string updatedMax RFC 3339 timestamp to restrict to items updated prior to this timestamp (exclusive).
272
+ * @opt_param string updatedMin RFC 3339 timestamp to restrict to items updated since this timestamp (inclusive).
273
+ * @opt_param int w The requested pixel width for any images. If width is provided height must also be provided.
274
+ * @return Google_Annotationsdata
275
+ */
276
+ public function listLayersAnnotationData($volumeId, $layerId, $contentVersion, $optParams = array()) {
277
+ $params = array('volumeId' => $volumeId, 'layerId' => $layerId, 'contentVersion' => $contentVersion);
278
+ $params = array_merge($params, $optParams);
279
+ $data = $this->__call('list', array($params));
280
+ if ($this->useObjects()) {
281
+ return new Google_Annotationsdata($data);
282
+ } else {
283
+ return $data;
284
+ }
285
+ }
286
+ }
287
+ /**
288
+ * The "volumeAnnotations" collection of methods.
289
+ * Typical usage is:
290
+ * <code>
291
+ * $booksService = new Google_BooksService(...);
292
+ * $volumeAnnotations = $booksService->volumeAnnotations;
293
+ * </code>
294
+ */
295
+ class Google_LayersVolumeAnnotationsServiceResource extends Google_ServiceResource {
296
+
297
+ /**
298
+ * Gets the volume annotation. (volumeAnnotations.get)
299
+ *
300
+ * @param string $volumeId The volume to retrieve annotations for.
301
+ * @param string $layerId The ID for the layer to get the annotations.
302
+ * @param string $annotationId The ID of the volume annotation to retrieve.
303
+ * @param array $optParams Optional parameters.
304
+ *
305
+ * @opt_param string locale The locale information for the data. ISO-639-1 language and ISO-3166-1 country code. Ex: 'en_US'.
306
+ * @opt_param string source String to identify the originator of this request.
307
+ * @return Google_Volumeannotation
308
+ */
309
+ public function get($volumeId, $layerId, $annotationId, $optParams = array()) {
310
+ $params = array('volumeId' => $volumeId, 'layerId' => $layerId, 'annotationId' => $annotationId);
311
+ $params = array_merge($params, $optParams);
312
+ $data = $this->__call('get', array($params));
313
+ if ($this->useObjects()) {
314
+ return new Google_Volumeannotation($data);
315
+ } else {
316
+ return $data;
317
+ }
318
+ }
319
+ /**
320
+ * Gets the volume annotations for a volume and layer. (volumeAnnotations.list)
321
+ *
322
+ * @param string $volumeId The volume to retrieve annotations for.
323
+ * @param string $layerId The ID for the layer to get the annotations.
324
+ * @param string $contentVersion The content version for the requested volume.
325
+ * @param array $optParams Optional parameters.
326
+ *
327
+ * @opt_param string endOffset The end offset to end retrieving data from.
328
+ * @opt_param string endPosition The end position to end retrieving data from.
329
+ * @opt_param string locale The locale information for the data. ISO-639-1 language and ISO-3166-1 country code. Ex: 'en_US'.
330
+ * @opt_param string maxResults Maximum number of results to return
331
+ * @opt_param string pageToken The value of the nextToken from the previous page.
332
+ * @opt_param bool showDeleted Set to true to return deleted annotations. updatedMin must be in the request to use this. Defaults to false.
333
+ * @opt_param string source String to identify the originator of this request.
334
+ * @opt_param string startOffset The start offset to start retrieving data from.
335
+ * @opt_param string startPosition The start position to start retrieving data from.
336
+ * @opt_param string updatedMax RFC 3339 timestamp to restrict to items updated prior to this timestamp (exclusive).
337
+ * @opt_param string updatedMin RFC 3339 timestamp to restrict to items updated since this timestamp (inclusive).
338
+ * @opt_param string volumeAnnotationsVersion The version of the volume annotations that you are requesting.
339
+ * @return Google_Volumeannotations
340
+ */
341
+ public function listLayersVolumeAnnotations($volumeId, $layerId, $contentVersion, $optParams = array()) {
342
+ $params = array('volumeId' => $volumeId, 'layerId' => $layerId, 'contentVersion' => $contentVersion);
343
+ $params = array_merge($params, $optParams);
344
+ $data = $this->__call('list', array($params));
345
+ if ($this->useObjects()) {
346
+ return new Google_Volumeannotations($data);
347
+ } else {
348
+ return $data;
349
+ }
350
+ }
351
+ }
352
+
353
+ /**
354
+ * The "myconfig" collection of methods.
355
+ * Typical usage is:
356
+ * <code>
357
+ * $booksService = new Google_BooksService(...);
358
+ * $myconfig = $booksService->myconfig;
359
+ * </code>
360
+ */
361
+ class Google_MyconfigServiceResource extends Google_ServiceResource {
362
+
363
+ /**
364
+ * Release downloaded content access restriction. (myconfig.releaseDownloadAccess)
365
+ *
366
+ * @param string $volumeIds The volume(s) to release restrictions for.
367
+ * @param string $cpksver The device/version ID from which to release the restriction.
368
+ * @param array $optParams Optional parameters.
369
+ *
370
+ * @opt_param string locale ISO-639-1, ISO-3166-1 codes for message localization, i.e. en_US.
371
+ * @opt_param string source String to identify the originator of this request.
372
+ * @return Google_DownloadAccesses
373
+ */
374
+ public function releaseDownloadAccess($volumeIds, $cpksver, $optParams = array()) {
375
+ $params = array('volumeIds' => $volumeIds, 'cpksver' => $cpksver);
376
+ $params = array_merge($params, $optParams);
377
+ $data = $this->__call('releaseDownloadAccess', array($params));
378
+ if ($this->useObjects()) {
379
+ return new Google_DownloadAccesses($data);
380
+ } else {
381
+ return $data;
382
+ }
383
+ }
384
+ /**
385
+ * Request concurrent and download access restrictions. (myconfig.requestAccess)
386
+ *
387
+ * @param string $source String to identify the originator of this request.
388
+ * @param string $volumeId The volume to request concurrent/download restrictions for.
389
+ * @param string $nonce The client nonce value.
390
+ * @param string $cpksver The device/version ID from which to request the restrictions.
391
+ * @param array $optParams Optional parameters.
392
+ *
393
+ * @opt_param string locale ISO-639-1, ISO-3166-1 codes for message localization, i.e. en_US.
394
+ * @return Google_RequestAccess
395
+ */
396
+ public function requestAccess($source, $volumeId, $nonce, $cpksver, $optParams = array()) {
397
+ $params = array('source' => $source, 'volumeId' => $volumeId, 'nonce' => $nonce, 'cpksver' => $cpksver);
398
+ $params = array_merge($params, $optParams);
399
+ $data = $this->__call('requestAccess', array($params));
400
+ if ($this->useObjects()) {
401
+ return new Google_RequestAccess($data);
402
+ } else {
403
+ return $data;
404
+ }
405
+ }
406
+ /**
407
+ * Request downloaded content access for specified volumes on the My eBooks shelf.
408
+ * (myconfig.syncVolumeLicenses)
409
+ *
410
+ * @param string $source String to identify the originator of this request.
411
+ * @param string $nonce The client nonce value.
412
+ * @param string $cpksver The device/version ID from which to release the restriction.
413
+ * @param array $optParams Optional parameters.
414
+ *
415
+ * @opt_param string locale ISO-639-1, ISO-3166-1 codes for message localization, i.e. en_US.
416
+ * @opt_param bool showPreorders Set to true to show pre-ordered books. Defaults to false.
417
+ * @opt_param string volumeIds The volume(s) to request download restrictions for.
418
+ * @return Google_Volumes
419
+ */
420
+ public function syncVolumeLicenses($source, $nonce, $cpksver, $optParams = array()) {
421
+ $params = array('source' => $source, 'nonce' => $nonce, 'cpksver' => $cpksver);
422
+ $params = array_merge($params, $optParams);
423
+ $data = $this->__call('syncVolumeLicenses', array($params));
424
+ if ($this->useObjects()) {
425
+ return new Google_Volumes($data);
426
+ } else {
427
+ return $data;
428
+ }
429
+ }
430
+ }
431
+
432
+ /**
433
+ * The "mylibrary" collection of methods.
434
+ * Typical usage is:
435
+ * <code>
436
+ * $booksService = new Google_BooksService(...);
437
+ * $mylibrary = $booksService->mylibrary;
438
+ * </code>
439
+ */
440
+ class Google_MylibraryServiceResource extends Google_ServiceResource {
441
+
442
+ }
443
+
444
+ /**
445
+ * The "annotations" collection of methods.
446
+ * Typical usage is:
447
+ * <code>
448
+ * $booksService = new Google_BooksService(...);
449
+ * $annotations = $booksService->annotations;
450
+ * </code>
451
+ */
452
+ class Google_MylibraryAnnotationsServiceResource extends Google_ServiceResource {
453
+
454
+ /**
455
+ * Deletes an annotation. (annotations.delete)
456
+ *
457
+ * @param string $annotationId The ID for the annotation to delete.
458
+ * @param array $optParams Optional parameters.
459
+ *
460
+ * @opt_param string source String to identify the originator of this request.
461
+ */
462
+ public function delete($annotationId, $optParams = array()) {
463
+ $params = array('annotationId' => $annotationId);
464
+ $params = array_merge($params, $optParams);
465
+ $data = $this->__call('delete', array($params));
466
+ return $data;
467
+ }
468
+ /**
469
+ * Gets an annotation by its ID. (annotations.get)
470
+ *
471
+ * @param string $annotationId The ID for the annotation to retrieve.
472
+ * @param array $optParams Optional parameters.
473
+ *
474
+ * @opt_param string source String to identify the originator of this request.
475
+ * @return Google_Annotation
476
+ */
477
+ public function get($annotationId, $optParams = array()) {
478
+ $params = array('annotationId' => $annotationId);
479
+ $params = array_merge($params, $optParams);
480
+ $data = $this->__call('get', array($params));
481
+ if ($this->useObjects()) {
482
+ return new Google_Annotation($data);
483
+ } else {
484
+ return $data;
485
+ }
486
+ }
487
+ /**
488
+ * Inserts a new annotation. (annotations.insert)
489
+ *
490
+ * @param Google_Annotation $postBody
491
+ * @param array $optParams Optional parameters.
492
+ *
493
+ * @opt_param string source String to identify the originator of this request.
494
+ * @return Google_Annotation
495
+ */
496
+ public function insert(Google_Annotation $postBody, $optParams = array()) {
497
+ $params = array('postBody' => $postBody);
498
+ $params = array_merge($params, $optParams);
499
+ $data = $this->__call('insert', array($params));
500
+ if ($this->useObjects()) {
501
+ return new Google_Annotation($data);
502
+ } else {
503
+ return $data;
504
+ }
505
+ }
506
+ /**
507
+ * Retrieves a list of annotations, possibly filtered. (annotations.list)
508
+ *
509
+ * @param array $optParams Optional parameters.
510
+ *
511
+ * @opt_param string contentVersion The content version for the requested volume.
512
+ * @opt_param string layerId The layer ID to limit annotation by.
513
+ * @opt_param string maxResults Maximum number of results to return
514
+ * @opt_param string pageIds The page ID(s) for the volume that is being queried.
515
+ * @opt_param string pageToken The value of the nextToken from the previous page.
516
+ * @opt_param bool showDeleted Set to true to return deleted annotations. updatedMin must be in the request to use this. Defaults to false.
517
+ * @opt_param string source String to identify the originator of this request.
518
+ * @opt_param string updatedMax RFC 3339 timestamp to restrict to items updated prior to this timestamp (exclusive).
519
+ * @opt_param string updatedMin RFC 3339 timestamp to restrict to items updated since this timestamp (inclusive).
520
+ * @opt_param string volumeId The volume to restrict annotations to.
521
+ * @return Google_Annotations
522
+ */
523
+ public function listMylibraryAnnotations($optParams = array()) {
524
+ $params = array();
525
+ $params = array_merge($params, $optParams);
526
+ $data = $this->__call('list', array($params));
527
+ if ($this->useObjects()) {
528
+ return new Google_Annotations($data);
529
+ } else {
530
+ return $data;
531
+ }
532
+ }
533
+ /**
534
+ * Updates an existing annotation. (annotations.update)
535
+ *
536
+ * @param string $annotationId The ID for the annotation to update.
537
+ * @param Google_Annotation $postBody
538
+ * @param array $optParams Optional parameters.
539
+ *
540
+ * @opt_param string source String to identify the originator of this request.
541
+ * @return Google_Annotation
542
+ */
543
+ public function update($annotationId, Google_Annotation $postBody, $optParams = array()) {
544
+ $params = array('annotationId' => $annotationId, 'postBody' => $postBody);
545
+ $params = array_merge($params, $optParams);
546
+ $data = $this->__call('update', array($params));
547
+ if ($this->useObjects()) {
548
+ return new Google_Annotation($data);
549
+ } else {
550
+ return $data;
551
+ }
552
+ }
553
+ }
554
+ /**
555
+ * The "bookshelves" collection of methods.
556
+ * Typical usage is:
557
+ * <code>
558
+ * $booksService = new Google_BooksService(...);
559
+ * $bookshelves = $booksService->bookshelves;
560
+ * </code>
561
+ */
562
+ class Google_MylibraryBookshelvesServiceResource extends Google_ServiceResource {
563
+
564
+ /**
565
+ * Adds a volume to a bookshelf. (bookshelves.addVolume)
566
+ *
567
+ * @param string $shelf ID of bookshelf to which to add a volume.
568
+ * @param string $volumeId ID of volume to add.
569
+ * @param array $optParams Optional parameters.
570
+ *
571
+ * @opt_param string source String to identify the originator of this request.
572
+ */
573
+ public function addVolume($shelf, $volumeId, $optParams = array()) {
574
+ $params = array('shelf' => $shelf, 'volumeId' => $volumeId);
575
+ $params = array_merge($params, $optParams);
576
+ $data = $this->__call('addVolume', array($params));
577
+ return $data;
578
+ }
579
+ /**
580
+ * Clears all volumes from a bookshelf. (bookshelves.clearVolumes)
581
+ *
582
+ * @param string $shelf ID of bookshelf from which to remove a volume.
583
+ * @param array $optParams Optional parameters.
584
+ *
585
+ * @opt_param string source String to identify the originator of this request.
586
+ */
587
+ public function clearVolumes($shelf, $optParams = array()) {
588
+ $params = array('shelf' => $shelf);
589
+ $params = array_merge($params, $optParams);
590
+ $data = $this->__call('clearVolumes', array($params));
591
+ return $data;
592
+ }
593
+ /**
594
+ * Retrieves metadata for a specific bookshelf belonging to the authenticated user.
595
+ * (bookshelves.get)
596
+ *
597
+ * @param string $shelf ID of bookshelf to retrieve.
598
+ * @param array $optParams Optional parameters.
599
+ *
600
+ * @opt_param string source String to identify the originator of this request.
601
+ * @return Google_Bookshelf
602
+ */
603
+ public function get($shelf, $optParams = array()) {
604
+ $params = array('shelf' => $shelf);
605
+ $params = array_merge($params, $optParams);
606
+ $data = $this->__call('get', array($params));
607
+ if ($this->useObjects()) {
608
+ return new Google_Bookshelf($data);
609
+ } else {
610
+ return $data;
611
+ }
612
+ }
613
+ /**
614
+ * Retrieves a list of bookshelves belonging to the authenticated user. (bookshelves.list)
615
+ *
616
+ * @param array $optParams Optional parameters.
617
+ *
618
+ * @opt_param string source String to identify the originator of this request.
619
+ * @return Google_Bookshelves
620
+ */
621
+ public function listMylibraryBookshelves($optParams = array()) {
622
+ $params = array();
623
+ $params = array_merge($params, $optParams);
624
+ $data = $this->__call('list', array($params));
625
+ if ($this->useObjects()) {
626
+ return new Google_Bookshelves($data);
627
+ } else {
628
+ return $data;
629
+ }
630
+ }
631
+ /**
632
+ * Moves a volume within a bookshelf. (bookshelves.moveVolume)
633
+ *
634
+ * @param string $shelf ID of bookshelf with the volume.
635
+ * @param string $volumeId ID of volume to move.
636
+ * @param int $volumePosition Position on shelf to move the item (0 puts the item before the current first item, 1 puts it between the first and the second and so on.)
637
+ * @param array $optParams Optional parameters.
638
+ *
639
+ * @opt_param string source String to identify the originator of this request.
640
+ */
641
+ public function moveVolume($shelf, $volumeId, $volumePosition, $optParams = array()) {
642
+ $params = array('shelf' => $shelf, 'volumeId' => $volumeId, 'volumePosition' => $volumePosition);
643
+ $params = array_merge($params, $optParams);
644
+ $data = $this->__call('moveVolume', array($params));
645
+ return $data;
646
+ }
647
+ /**
648
+ * Removes a volume from a bookshelf. (bookshelves.removeVolume)
649
+ *
650
+ * @param string $shelf ID of bookshelf from which to remove a volume.
651
+ * @param string $volumeId ID of volume to remove.
652
+ * @param array $optParams Optional parameters.
653
+ *
654
+ * @opt_param string source String to identify the originator of this request.
655
+ */
656
+ public function removeVolume($shelf, $volumeId, $optParams = array()) {
657
+ $params = array('shelf' => $shelf, 'volumeId' => $volumeId);
658
+ $params = array_merge($params, $optParams);
659
+ $data = $this->__call('removeVolume', array($params));
660
+ return $data;
661
+ }
662
+ }
663
+
664
+ /**
665
+ * The "volumes" collection of methods.
666
+ * Typical usage is:
667
+ * <code>
668
+ * $booksService = new Google_BooksService(...);
669
+ * $volumes = $booksService->volumes;
670
+ * </code>
671
+ */
672
+ class Google_MylibraryBookshelvesVolumesServiceResource extends Google_ServiceResource {
673
+
674
+ /**
675
+ * Gets volume information for volumes on a bookshelf. (volumes.list)
676
+ *
677
+ * @param string $shelf The bookshelf ID or name retrieve volumes for.
678
+ * @param array $optParams Optional parameters.
679
+ *
680
+ * @opt_param string country ISO-3166-1 code to override the IP-based location.
681
+ * @opt_param string maxResults Maximum number of results to return
682
+ * @opt_param string projection Restrict information returned to a set of selected fields.
683
+ * @opt_param string q Full-text search query string in this bookshelf.
684
+ * @opt_param bool showPreorders Set to true to show pre-ordered books. Defaults to false.
685
+ * @opt_param string source String to identify the originator of this request.
686
+ * @opt_param string startIndex Index of the first element to return (starts at 0)
687
+ * @return Google_Volumes
688
+ */
689
+ public function listMylibraryBookshelvesVolumes($shelf, $optParams = array()) {
690
+ $params = array('shelf' => $shelf);
691
+ $params = array_merge($params, $optParams);
692
+ $data = $this->__call('list', array($params));
693
+ if ($this->useObjects()) {
694
+ return new Google_Volumes($data);
695
+ } else {
696
+ return $data;
697
+ }
698
+ }
699
+ }
700
+ /**
701
+ * The "readingpositions" collection of methods.
702
+ * Typical usage is:
703
+ * <code>
704
+ * $booksService = new Google_BooksService(...);
705
+ * $readingpositions = $booksService->readingpositions;
706
+ * </code>
707
+ */
708
+ class Google_MylibraryReadingpositionsServiceResource extends Google_ServiceResource {
709
+
710
+ /**
711
+ * Retrieves my reading position information for a volume. (readingpositions.get)
712
+ *
713
+ * @param string $volumeId ID of volume for which to retrieve a reading position.
714
+ * @param array $optParams Optional parameters.
715
+ *
716
+ * @opt_param string contentVersion Volume content version for which this reading position is requested.
717
+ * @opt_param string source String to identify the originator of this request.
718
+ * @return Google_ReadingPosition
719
+ */
720
+ public function get($volumeId, $optParams = array()) {
721
+ $params = array('volumeId' => $volumeId);
722
+ $params = array_merge($params, $optParams);
723
+ $data = $this->__call('get', array($params));
724
+ if ($this->useObjects()) {
725
+ return new Google_ReadingPosition($data);
726
+ } else {
727
+ return $data;
728
+ }
729
+ }
730
+ /**
731
+ * Sets my reading position information for a volume. (readingpositions.setPosition)
732
+ *
733
+ * @param string $volumeId ID of volume for which to update the reading position.
734
+ * @param string $timestamp RFC 3339 UTC format timestamp associated with this reading position.
735
+ * @param string $position Position string for the new volume reading position.
736
+ * @param array $optParams Optional parameters.
737
+ *
738
+ * @opt_param string action Action that caused this reading position to be set.
739
+ * @opt_param string contentVersion Volume content version for which this reading position applies.
740
+ * @opt_param string deviceCookie Random persistent device cookie optional on set position.
741
+ * @opt_param string source String to identify the originator of this request.
742
+ */
743
+ public function setPosition($volumeId, $timestamp, $position, $optParams = array()) {
744
+ $params = array('volumeId' => $volumeId, 'timestamp' => $timestamp, 'position' => $position);
745
+ $params = array_merge($params, $optParams);
746
+ $data = $this->__call('setPosition', array($params));
747
+ return $data;
748
+ }
749
+ }
750
+
751
+ /**
752
+ * The "volumes" collection of methods.
753
+ * Typical usage is:
754
+ * <code>
755
+ * $booksService = new Google_BooksService(...);
756
+ * $volumes = $booksService->volumes;
757
+ * </code>
758
+ */
759
+ class Google_VolumesServiceResource extends Google_ServiceResource {
760
+
761
+ /**
762
+ * Gets volume information for a single volume. (volumes.get)
763
+ *
764
+ * @param string $volumeId ID of volume to retrieve.
765
+ * @param array $optParams Optional parameters.
766
+ *
767
+ * @opt_param string country ISO-3166-1 code to override the IP-based location.
768
+ * @opt_param string partner Brand results for partner ID.
769
+ * @opt_param string projection Restrict information returned to a set of selected fields.
770
+ * @opt_param string source String to identify the originator of this request.
771
+ * @return Google_Volume
772
+ */
773
+ public function get($volumeId, $optParams = array()) {
774
+ $params = array('volumeId' => $volumeId);
775
+ $params = array_merge($params, $optParams);
776
+ $data = $this->__call('get', array($params));
777
+ if ($this->useObjects()) {
778
+ return new Google_Volume($data);
779
+ } else {
780
+ return $data;
781
+ }
782
+ }
783
+ /**
784
+ * Performs a book search. (volumes.list)
785
+ *
786
+ * @param string $q Full-text search query string.
787
+ * @param array $optParams Optional parameters.
788
+ *
789
+ * @opt_param string download Restrict to volumes by download availability.
790
+ * @opt_param string filter Filter search results.
791
+ * @opt_param string langRestrict Restrict results to books with this language code.
792
+ * @opt_param string libraryRestrict Restrict search to this user's library.
793
+ * @opt_param string maxResults Maximum number of results to return.
794
+ * @opt_param string orderBy Sort search results.
795
+ * @opt_param string partner Restrict and brand results for partner ID.
796
+ * @opt_param string printType Restrict to books or magazines.
797
+ * @opt_param string projection Restrict information returned to a set of selected fields.
798
+ * @opt_param bool showPreorders Set to true to show books available for preorder. Defaults to false.
799
+ * @opt_param string source String to identify the originator of this request.
800
+ * @opt_param string startIndex Index of the first result to return (starts at 0)
801
+ * @return Google_Volumes
802
+ */
803
+ public function listVolumes($q, $optParams = array()) {
804
+ $params = array('q' => $q);
805
+ $params = array_merge($params, $optParams);
806
+ $data = $this->__call('list', array($params));
807
+ if ($this->useObjects()) {
808
+ return new Google_Volumes($data);
809
+ } else {
810
+ return $data;
811
+ }
812
+ }
813
+ }
814
+
815
+ /**
816
+ * The "associated" collection of methods.
817
+ * Typical usage is:
818
+ * <code>
819
+ * $booksService = new Google_BooksService(...);
820
+ * $associated = $booksService->associated;
821
+ * </code>
822
+ */
823
+ class Google_VolumesAssociatedServiceResource extends Google_ServiceResource {
824
+
825
+ /**
826
+ * Return a list of associated books. (associated.list)
827
+ *
828
+ * @param string $volumeId ID of the source volume.
829
+ * @param array $optParams Optional parameters.
830
+ *
831
+ * @opt_param string association Association type.
832
+ * @opt_param string locale ISO-639-1 language and ISO-3166-1 country code. Ex: 'en_US'. Used for generating recommendations.
833
+ * @opt_param string source String to identify the originator of this request.
834
+ * @return Google_Volumes
835
+ */
836
+ public function listVolumesAssociated($volumeId, $optParams = array()) {
837
+ $params = array('volumeId' => $volumeId);
838
+ $params = array_merge($params, $optParams);
839
+ $data = $this->__call('list', array($params));
840
+ if ($this->useObjects()) {
841
+ return new Google_Volumes($data);
842
+ } else {
843
+ return $data;
844
+ }
845
+ }
846
+ }
847
+ /**
848
+ * The "mybooks" collection of methods.
849
+ * Typical usage is:
850
+ * <code>
851
+ * $booksService = new Google_BooksService(...);
852
+ * $mybooks = $booksService->mybooks;
853
+ * </code>
854
+ */
855
+ class Google_VolumesMybooksServiceResource extends Google_ServiceResource {
856
+
857
+ /**
858
+ * Return a list of books in My Library. (mybooks.list)
859
+ *
860
+ * @param array $optParams Optional parameters.
861
+ *
862
+ * @opt_param string acquireMethod How the book was aquired
863
+ * @opt_param string locale ISO-639-1 language and ISO-3166-1 country code. Ex:'en_US'. Used for generating recommendations.
864
+ * @opt_param string maxResults Maximum number of results to return.
865
+ * @opt_param string processingState The processing state of the user uploaded volumes to be returned. Applicable only if the UPLOADED is specified in the acquireMethod.
866
+ * @opt_param string source String to identify the originator of this request.
867
+ * @opt_param string startIndex Index of the first result to return (starts at 0)
868
+ * @return Google_Volumes
869
+ */
870
+ public function listVolumesMybooks($optParams = array()) {
871
+ $params = array();
872
+ $params = array_merge($params, $optParams);
873
+ $data = $this->__call('list', array($params));
874
+ if ($this->useObjects()) {
875
+ return new Google_Volumes($data);
876
+ } else {
877
+ return $data;
878
+ }
879
+ }
880
+ }
881
+ /**
882
+ * The "recommended" collection of methods.
883
+ * Typical usage is:
884
+ * <code>
885
+ * $booksService = new Google_BooksService(...);
886
+ * $recommended = $booksService->recommended;
887
+ * </code>
888
+ */
889
+ class Google_VolumesRecommendedServiceResource extends Google_ServiceResource {
890
+
891
+ /**
892
+ * Return a list of recommended books for the current user. (recommended.list)
893
+ *
894
+ * @param array $optParams Optional parameters.
895
+ *
896
+ * @opt_param string locale ISO-639-1 language and ISO-3166-1 country code. Ex: 'en_US'. Used for generating recommendations.
897
+ * @opt_param string source String to identify the originator of this request.
898
+ * @return Google_Volumes
899
+ */
900
+ public function listVolumesRecommended($optParams = array()) {
901
+ $params = array();
902
+ $params = array_merge($params, $optParams);
903
+ $data = $this->__call('list', array($params));
904
+ if ($this->useObjects()) {
905
+ return new Google_Volumes($data);
906
+ } else {
907
+ return $data;
908
+ }
909
+ }
910
+ }
911
+ /**
912
+ * The "useruploaded" collection of methods.
913
+ * Typical usage is:
914
+ * <code>
915
+ * $booksService = new Google_BooksService(...);
916
+ * $useruploaded = $booksService->useruploaded;
917
+ * </code>
918
+ */
919
+ class Google_VolumesUseruploadedServiceResource extends Google_ServiceResource {
920
+
921
+ /**
922
+ * Return a list of books uploaded by the current user. (useruploaded.list)
923
+ *
924
+ * @param array $optParams Optional parameters.
925
+ *
926
+ * @opt_param string locale ISO-639-1 language and ISO-3166-1 country code. Ex: 'en_US'. Used for generating recommendations.
927
+ * @opt_param string maxResults Maximum number of results to return.
928
+ * @opt_param string processingState The processing state of the user uploaded volumes to be returned.
929
+ * @opt_param string source String to identify the originator of this request.
930
+ * @opt_param string startIndex Index of the first result to return (starts at 0)
931
+ * @opt_param string volumeId The ids of the volumes to be returned. If not specified all that match the processingState are returned.
932
+ * @return Google_Volumes
933
+ */
934
+ public function listVolumesUseruploaded($optParams = array()) {
935
+ $params = array();
936
+ $params = array_merge($params, $optParams);
937
+ $data = $this->__call('list', array($params));
938
+ if ($this->useObjects()) {
939
+ return new Google_Volumes($data);
940
+ } else {
941
+ return $data;
942
+ }
943
+ }
944
+ }
945
+
946
+ /**
947
+ * Service definition for Google_Books (v1).
948
+ *
949
+ * <p>
950
+ * Lets you search for books and manage your Google Books library.
951
+ * </p>
952
+ *
953
+ * <p>
954
+ * For more information about this service, see the
955
+ * <a href="https://developers.google.com/books/docs/v1/getting_started" target="_blank">API Documentation</a>
956
+ * </p>
957
+ *
958
+ * @author Google, Inc.
959
+ */
960
+ class Google_BooksService extends Google_Service {
961
+ public $bookshelves;
962
+ public $bookshelves_volumes;
963
+ public $cloudloading;
964
+ public $layers;
965
+ public $layers_annotationData;
966
+ public $layers_volumeAnnotations;
967
+ public $myconfig;
968
+ public $mylibrary_annotations;
969
+ public $mylibrary_bookshelves;
970
+ public $mylibrary_bookshelves_volumes;
971
+ public $mylibrary_readingpositions;
972
+ public $volumes;
973
+ public $volumes_associated;
974
+ public $volumes_mybooks;
975
+ public $volumes_recommended;
976
+ public $volumes_useruploaded;
977
+ /**
978
+ * Constructs the internal representation of the Books service.
979
+ *
980
+ * @param Google_Client $client
981
+ */
982
+ public function __construct(Google_Client $client) {
983
+ $this->servicePath = 'books/v1/';
984
+ $this->version = 'v1';
985
+ $this->serviceName = 'books';
986
+
987
+ $client->addService($this->serviceName, $this->version);
988
+ $this->bookshelves = new Google_BookshelvesServiceResource($this, $this->serviceName, 'bookshelves', json_decode('{"methods": {"get": {"id": "books.bookshelves.get", "path": "users/{userId}/bookshelves/{shelf}", "httpMethod": "GET", "parameters": {"shelf": {"type": "string", "required": true, "location": "path"}, "source": {"type": "string", "location": "query"}, "userId": {"type": "string", "required": true, "location": "path"}}, "response": {"$ref": "Bookshelf"}, "scopes": ["https://www.googleapis.com/auth/books"]}, "list": {"id": "books.bookshelves.list", "path": "users/{userId}/bookshelves", "httpMethod": "GET", "parameters": {"source": {"type": "string", "location": "query"}, "userId": {"type": "string", "required": true, "location": "path"}}, "response": {"$ref": "Bookshelves"}, "scopes": ["https://www.googleapis.com/auth/books"]}}}', true));
989
+ $this->bookshelves_volumes = new Google_BookshelvesVolumesServiceResource($this, $this->serviceName, 'volumes', json_decode('{"methods": {"list": {"id": "books.bookshelves.volumes.list", "path": "users/{userId}/bookshelves/{shelf}/volumes", "httpMethod": "GET", "parameters": {"maxResults": {"type": "integer", "format": "uint32", "minimum": "0", "location": "query"}, "shelf": {"type": "string", "required": true, "location": "path"}, "showPreorders": {"type": "boolean", "location": "query"}, "source": {"type": "string", "location": "query"}, "startIndex": {"type": "integer", "format": "uint32", "minimum": "0", "location": "query"}, "userId": {"type": "string", "required": true, "location": "path"}}, "response": {"$ref": "Volumes"}, "scopes": ["https://www.googleapis.com/auth/books"]}}}', true));
990
+ $this->cloudloading = new Google_CloudloadingServiceResource($this, $this->serviceName, 'cloudloading', json_decode('{"methods": {"addBook": {"id": "books.cloudloading.addBook", "path": "cloudloading/addBook", "httpMethod": "POST", "parameters": {"drive_document_id": {"type": "string", "location": "query"}, "mime_type": {"type": "string", "location": "query"}, "name": {"type": "string", "location": "query"}, "upload_client_token": {"type": "string", "location": "query"}}, "response": {"$ref": "BooksCloudloadingResource"}, "scopes": ["https://www.googleapis.com/auth/books"]}, "deleteBook": {"id": "books.cloudloading.deleteBook", "path": "cloudloading/deleteBook", "httpMethod": "POST", "parameters": {"volumeId": {"type": "string", "required": true, "location": "query"}}, "scopes": ["https://www.googleapis.com/auth/books"]}, "updateBook": {"id": "books.cloudloading.updateBook", "path": "cloudloading/updateBook", "httpMethod": "POST", "request": {"$ref": "BooksCloudloadingResource"}, "response": {"$ref": "BooksCloudloadingResource"}, "scopes": ["https://www.googleapis.com/auth/books"]}}}', true));
991
+ $this->layers = new Google_LayersServiceResource($this, $this->serviceName, 'layers', json_decode('{"methods": {"get": {"id": "books.layers.get", "path": "volumes/{volumeId}/layersummary/{summaryId}", "httpMethod": "GET", "parameters": {"contentVersion": {"type": "string", "location": "query"}, "source": {"type": "string", "location": "query"}, "summaryId": {"type": "string", "required": true, "location": "path"}, "volumeId": {"type": "string", "required": true, "location": "path"}}, "response": {"$ref": "Layersummary"}, "scopes": ["https://www.googleapis.com/auth/books"]}, "list": {"id": "books.layers.list", "path": "volumes/{volumeId}/layersummary", "httpMethod": "GET", "parameters": {"contentVersion": {"type": "string", "location": "query"}, "maxResults": {"type": "integer", "format": "uint32", "minimum": "0", "maximum": "200", "location": "query"}, "pageToken": {"type": "string", "location": "query"}, "source": {"type": "string", "location": "query"}, "volumeId": {"type": "string", "required": true, "location": "path"}}, "response": {"$ref": "Layersummaries"}, "scopes": ["https://www.googleapis.com/auth/books"]}}}', true));
992
+ $this->layers_annotationData = new Google_LayersAnnotationDataServiceResource($this, $this->serviceName, 'annotationData', json_decode('{"methods": {"get": {"id": "books.layers.annotationData.get", "path": "volumes/{volumeId}/layers/{layerId}/data/{annotationDataId}", "httpMethod": "GET", "parameters": {"annotationDataId": {"type": "string", "required": true, "location": "path"}, "contentVersion": {"type": "string", "required": true, "location": "query"}, "h": {"type": "integer", "format": "int32", "location": "query"}, "layerId": {"type": "string", "required": true, "location": "path"}, "locale": {"type": "string", "location": "query"}, "scale": {"type": "integer", "format": "int32", "minimum": "0", "location": "query"}, "source": {"type": "string", "location": "query"}, "volumeId": {"type": "string", "required": true, "location": "path"}, "w": {"type": "integer", "format": "int32", "location": "query"}}, "response": {"$ref": "Annotationdata"}, "scopes": ["https://www.googleapis.com/auth/books"]}, "list": {"id": "books.layers.annotationData.list", "path": "volumes/{volumeId}/layers/{layerId}/data", "httpMethod": "GET", "parameters": {"annotationDataId": {"type": "string", "repeated": true, "location": "query"}, "contentVersion": {"type": "string", "required": true, "location": "query"}, "h": {"type": "integer", "format": "int32", "location": "query"}, "layerId": {"type": "string", "required": true, "location": "path"}, "locale": {"type": "string", "location": "query"}, "maxResults": {"type": "integer", "format": "uint32", "minimum": "0", "maximum": "200", "location": "query"}, "pageToken": {"type": "string", "location": "query"}, "scale": {"type": "integer", "format": "int32", "minimum": "0", "location": "query"}, "source": {"type": "string", "location": "query"}, "updatedMax": {"type": "string", "location": "query"}, "updatedMin": {"type": "string", "location": "query"}, "volumeId": {"type": "string", "required": true, "location": "path"}, "w": {"type": "integer", "format": "int32", "location": "query"}}, "response": {"$ref": "Annotationsdata"}, "scopes": ["https://www.googleapis.com/auth/books"]}}}', true));
993
+ $this->layers_volumeAnnotations = new Google_LayersVolumeAnnotationsServiceResource($this, $this->serviceName, 'volumeAnnotations', json_decode('{"methods": {"get": {"id": "books.layers.volumeAnnotations.get", "path": "volumes/{volumeId}/layers/{layerId}/annotations/{annotationId}", "httpMethod": "GET", "parameters": {"annotationId": {"type": "string", "required": true, "location": "path"}, "layerId": {"type": "string", "required": true, "location": "path"}, "locale": {"type": "string", "location": "query"}, "source": {"type": "string", "location": "query"}, "volumeId": {"type": "string", "required": true, "location": "path"}}, "response": {"$ref": "Volumeannotation"}, "scopes": ["https://www.googleapis.com/auth/books"]}, "list": {"id": "books.layers.volumeAnnotations.list", "path": "volumes/{volumeId}/layers/{layerId}", "httpMethod": "GET", "parameters": {"contentVersion": {"type": "string", "required": true, "location": "query"}, "endOffset": {"type": "string", "location": "query"}, "endPosition": {"type": "string", "location": "query"}, "layerId": {"type": "string", "required": true, "location": "path"}, "locale": {"type": "string", "location": "query"}, "maxResults": {"type": "integer", "format": "uint32", "minimum": "0", "maximum": "200", "location": "query"}, "pageToken": {"type": "string", "location": "query"}, "showDeleted": {"type": "boolean", "location": "query"}, "source": {"type": "string", "location": "query"}, "startOffset": {"type": "string", "location": "query"}, "startPosition": {"type": "string", "location": "query"}, "updatedMax": {"type": "string", "location": "query"}, "updatedMin": {"type": "string", "location": "query"}, "volumeAnnotationsVersion": {"type": "string", "location": "query"}, "volumeId": {"type": "string", "required": true, "location": "path"}}, "response": {"$ref": "Volumeannotations"}, "scopes": ["https://www.googleapis.com/auth/books"]}}}', true));
994
+ $this->myconfig = new Google_MyconfigServiceResource($this, $this->serviceName, 'myconfig', json_decode('{"methods": {"releaseDownloadAccess": {"id": "books.myconfig.releaseDownloadAccess", "path": "myconfig/releaseDownloadAccess", "httpMethod": "POST", "parameters": {"cpksver": {"type": "string", "required": true, "location": "query"}, "locale": {"type": "string", "location": "query"}, "source": {"type": "string", "location": "query"}, "volumeIds": {"type": "string", "required": true, "repeated": true, "location": "query"}}, "response": {"$ref": "DownloadAccesses"}, "scopes": ["https://www.googleapis.com/auth/books"]}, "requestAccess": {"id": "books.myconfig.requestAccess", "path": "myconfig/requestAccess", "httpMethod": "POST", "parameters": {"cpksver": {"type": "string", "required": true, "location": "query"}, "locale": {"type": "string", "location": "query"}, "nonce": {"type": "string", "required": true, "location": "query"}, "source": {"type": "string", "required": true, "location": "query"}, "volumeId": {"type": "string", "required": true, "location": "query"}}, "response": {"$ref": "RequestAccess"}, "scopes": ["https://www.googleapis.com/auth/books"]}, "syncVolumeLicenses": {"id": "books.myconfig.syncVolumeLicenses", "path": "myconfig/syncVolumeLicenses", "httpMethod": "POST", "parameters": {"cpksver": {"type": "string", "required": true, "location": "query"}, "locale": {"type": "string", "location": "query"}, "nonce": {"type": "string", "required": true, "location": "query"}, "showPreorders": {"type": "boolean", "location": "query"}, "source": {"type": "string", "required": true, "location": "query"}, "volumeIds": {"type": "string", "repeated": true, "location": "query"}}, "response": {"$ref": "Volumes"}, "scopes": ["https://www.googleapis.com/auth/books"]}}}', true));
995
+ $this->mylibrary_annotations = new Google_MylibraryAnnotationsServiceResource($this, $this->serviceName, 'annotations', json_decode('{"methods": {"delete": {"id": "books.mylibrary.annotations.delete", "path": "mylibrary/annotations/{annotationId}", "httpMethod": "DELETE", "parameters": {"annotationId": {"type": "string", "required": true, "location": "path"}, "source": {"type": "string", "location": "query"}}, "scopes": ["https://www.googleapis.com/auth/books"]}, "get": {"id": "books.mylibrary.annotations.get", "path": "mylibrary/annotations/{annotationId}", "httpMethod": "GET", "parameters": {"annotationId": {"type": "string", "required": true, "location": "path"}, "source": {"type": "string", "location": "query"}}, "response": {"$ref": "Annotation"}, "scopes": ["https://www.googleapis.com/auth/books"]}, "insert": {"id": "books.mylibrary.annotations.insert", "path": "mylibrary/annotations", "httpMethod": "POST", "parameters": {"source": {"type": "string", "location": "query"}}, "request": {"$ref": "Annotation"}, "response": {"$ref": "Annotation"}, "scopes": ["https://www.googleapis.com/auth/books"]}, "list": {"id": "books.mylibrary.annotations.list", "path": "mylibrary/annotations", "httpMethod": "GET", "parameters": {"contentVersion": {"type": "string", "location": "query"}, "layerId": {"type": "string", "location": "query"}, "maxResults": {"type": "integer", "format": "uint32", "minimum": "0", "maximum": "40", "location": "query"}, "pageIds": {"type": "string", "repeated": true, "location": "query"}, "pageToken": {"type": "string", "location": "query"}, "showDeleted": {"type": "boolean", "location": "query"}, "source": {"type": "string", "location": "query"}, "updatedMax": {"type": "string", "location": "query"}, "updatedMin": {"type": "string", "location": "query"}, "volumeId": {"type": "string", "location": "query"}}, "response": {"$ref": "Annotations"}, "scopes": ["https://www.googleapis.com/auth/books"]}, "update": {"id": "books.mylibrary.annotations.update", "path": "mylibrary/annotations/{annotationId}", "httpMethod": "PUT", "parameters": {"annotationId": {"type": "string", "required": true, "location": "path"}, "source": {"type": "string", "location": "query"}}, "request": {"$ref": "Annotation"}, "response": {"$ref": "Annotation"}, "scopes": ["https://www.googleapis.com/auth/books"]}}}', true));
996
+ $this->mylibrary_bookshelves = new Google_MylibraryBookshelvesServiceResource($this, $this->serviceName, 'bookshelves', json_decode('{"methods": {"addVolume": {"id": "books.mylibrary.bookshelves.addVolume", "path": "mylibrary/bookshelves/{shelf}/addVolume", "httpMethod": "POST", "parameters": {"shelf": {"type": "string", "required": true, "location": "path"}, "source": {"type": "string", "location": "query"}, "volumeId": {"type": "string", "required": true, "location": "query"}}, "scopes": ["https://www.googleapis.com/auth/books"]}, "clearVolumes": {"id": "books.mylibrary.bookshelves.clearVolumes", "path": "mylibrary/bookshelves/{shelf}/clearVolumes", "httpMethod": "POST", "parameters": {"shelf": {"type": "string", "required": true, "location": "path"}, "source": {"type": "string", "location": "query"}}, "scopes": ["https://www.googleapis.com/auth/books"]}, "get": {"id": "books.mylibrary.bookshelves.get", "path": "mylibrary/bookshelves/{shelf}", "httpMethod": "GET", "parameters": {"shelf": {"type": "string", "required": true, "location": "path"}, "source": {"type": "string", "location": "query"}}, "response": {"$ref": "Bookshelf"}, "scopes": ["https://www.googleapis.com/auth/books"]}, "list": {"id": "books.mylibrary.bookshelves.list", "path": "mylibrary/bookshelves", "httpMethod": "GET", "parameters": {"source": {"type": "string", "location": "query"}}, "response": {"$ref": "Bookshelves"}, "scopes": ["https://www.googleapis.com/auth/books"]}, "moveVolume": {"id": "books.mylibrary.bookshelves.moveVolume", "path": "mylibrary/bookshelves/{shelf}/moveVolume", "httpMethod": "POST", "parameters": {"shelf": {"type": "string", "required": true, "location": "path"}, "source": {"type": "string", "location": "query"}, "volumeId": {"type": "string", "required": true, "location": "query"}, "volumePosition": {"type": "integer", "required": true, "format": "int32", "location": "query"}}, "scopes": ["https://www.googleapis.com/auth/books"]}, "removeVolume": {"id": "books.mylibrary.bookshelves.removeVolume", "path": "mylibrary/bookshelves/{shelf}/removeVolume", "httpMethod": "POST", "parameters": {"shelf": {"type": "string", "required": true, "location": "path"}, "source": {"type": "string", "location": "query"}, "volumeId": {"type": "string", "required": true, "location": "query"}}, "scopes": ["https://www.googleapis.com/auth/books"]}}}', true));
997
+ $this->mylibrary_bookshelves_volumes = new Google_MylibraryBookshelvesVolumesServiceResource($this, $this->serviceName, 'volumes', json_decode('{"methods": {"list": {"id": "books.mylibrary.bookshelves.volumes.list", "path": "mylibrary/bookshelves/{shelf}/volumes", "httpMethod": "GET", "parameters": {"country": {"type": "string", "location": "query"}, "maxResults": {"type": "integer", "format": "uint32", "minimum": "0", "location": "query"}, "projection": {"type": "string", "enum": ["full", "lite"], "location": "query"}, "q": {"type": "string", "location": "query"}, "shelf": {"type": "string", "required": true, "location": "path"}, "showPreorders": {"type": "boolean", "location": "query"}, "source": {"type": "string", "location": "query"}, "startIndex": {"type": "integer", "format": "uint32", "minimum": "0", "location": "query"}}, "response": {"$ref": "Volumes"}, "scopes": ["https://www.googleapis.com/auth/books"]}}}', true));
998
+ $this->mylibrary_readingpositions = new Google_MylibraryReadingpositionsServiceResource($this, $this->serviceName, 'readingpositions', json_decode('{"methods": {"get": {"id": "books.mylibrary.readingpositions.get", "path": "mylibrary/readingpositions/{volumeId}", "httpMethod": "GET", "parameters": {"contentVersion": {"type": "string", "location": "query"}, "source": {"type": "string", "location": "query"}, "volumeId": {"type": "string", "required": true, "location": "path"}}, "response": {"$ref": "ReadingPosition"}, "scopes": ["https://www.googleapis.com/auth/books"]}, "setPosition": {"id": "books.mylibrary.readingpositions.setPosition", "path": "mylibrary/readingpositions/{volumeId}/setPosition", "httpMethod": "POST", "parameters": {"action": {"type": "string", "enum": ["bookmark", "chapter", "next-page", "prev-page", "scroll", "search"], "location": "query"}, "contentVersion": {"type": "string", "location": "query"}, "deviceCookie": {"type": "string", "location": "query"}, "position": {"type": "string", "required": true, "location": "query"}, "source": {"type": "string", "location": "query"}, "timestamp": {"type": "string", "required": true, "location": "query"}, "volumeId": {"type": "string", "required": true, "location": "path"}}, "scopes": ["https://www.googleapis.com/auth/books"]}}}', true));
999
+ $this->volumes = new Google_VolumesServiceResource($this, $this->serviceName, 'volumes', json_decode('{"methods": {"get": {"id": "books.volumes.get", "path": "volumes/{volumeId}", "httpMethod": "GET", "parameters": {"country": {"type": "string", "location": "query"}, "partner": {"type": "string", "location": "query"}, "projection": {"type": "string", "enum": ["full", "lite"], "location": "query"}, "source": {"type": "string", "location": "query"}, "volumeId": {"type": "string", "required": true, "location": "path"}}, "response": {"$ref": "Volume"}, "scopes": ["https://www.googleapis.com/auth/books"]}, "list": {"id": "books.volumes.list", "path": "volumes", "httpMethod": "GET", "parameters": {"download": {"type": "string", "enum": ["epub"], "location": "query"}, "filter": {"type": "string", "enum": ["ebooks", "free-ebooks", "full", "paid-ebooks", "partial"], "location": "query"}, "langRestrict": {"type": "string", "location": "query"}, "libraryRestrict": {"type": "string", "enum": ["my-library", "no-restrict"], "location": "query"}, "maxResults": {"type": "integer", "format": "uint32", "minimum": "0", "maximum": "40", "location": "query"}, "orderBy": {"type": "string", "enum": ["newest", "relevance"], "location": "query"}, "partner": {"type": "string", "location": "query"}, "printType": {"type": "string", "enum": ["all", "books", "magazines"], "location": "query"}, "projection": {"type": "string", "enum": ["full", "lite"], "location": "query"}, "q": {"type": "string", "required": true, "location": "query"}, "showPreorders": {"type": "boolean", "location": "query"}, "source": {"type": "string", "location": "query"}, "startIndex": {"type": "integer", "format": "uint32", "minimum": "0", "location": "query"}}, "response": {"$ref": "Volumes"}, "scopes": ["https://www.googleapis.com/auth/books"]}}}', true));
1000
+ $this->volumes_associated = new Google_VolumesAssociatedServiceResource($this, $this->serviceName, 'associated', json_decode('{"methods": {"list": {"id": "books.volumes.associated.list", "path": "volumes/{volumeId}/associated", "httpMethod": "GET", "parameters": {"association": {"type": "string", "enum": ["end-of-sample", "end-of-volume"], "location": "query"}, "locale": {"type": "string", "location": "query"}, "source": {"type": "string", "location": "query"}, "volumeId": {"type": "string", "required": true, "location": "path"}}, "response": {"$ref": "Volumes"}, "scopes": ["https://www.googleapis.com/auth/books"]}}}', true));
1001
+ $this->volumes_mybooks = new Google_VolumesMybooksServiceResource($this, $this->serviceName, 'mybooks', json_decode('{"methods": {"list": {"id": "books.volumes.mybooks.list", "path": "volumes/mybooks", "httpMethod": "GET", "parameters": {"acquireMethod": {"type": "string", "enum": ["PREORDERED", "PUBLIC_DOMAIN", "PURCHASED", "SAMPLE", "UPLOADED"], "repeated": true, "location": "query"}, "locale": {"type": "string", "location": "query"}, "maxResults": {"type": "integer", "format": "uint32", "minimum": "0", "maximum": "100", "location": "query"}, "processingState": {"type": "string", "enum": ["COMPLETED_FAILED", "COMPLETED_SUCCESS", "RUNNING"], "repeated": true, "location": "query"}, "source": {"type": "string", "location": "query"}, "startIndex": {"type": "integer", "format": "uint32", "minimum": "0", "location": "query"}}, "response": {"$ref": "Volumes"}, "scopes": ["https://www.googleapis.com/auth/books"]}}}', true));
1002
+ $this->volumes_recommended = new Google_VolumesRecommendedServiceResource($this, $this->serviceName, 'recommended', json_decode('{"methods": {"list": {"id": "books.volumes.recommended.list", "path": "volumes/recommended", "httpMethod": "GET", "parameters": {"locale": {"type": "string", "location": "query"}, "source": {"type": "string", "location": "query"}}, "response": {"$ref": "Volumes"}, "scopes": ["https://www.googleapis.com/auth/books"]}}}', true));
1003
+ $this->volumes_useruploaded = new Google_VolumesUseruploadedServiceResource($this, $this->serviceName, 'useruploaded', json_decode('{"methods": {"list": {"id": "books.volumes.useruploaded.list", "path": "volumes/useruploaded", "httpMethod": "GET", "parameters": {"locale": {"type": "string", "location": "query"}, "maxResults": {"type": "integer", "format": "uint32", "minimum": "0", "maximum": "40", "location": "query"}, "processingState": {"type": "string", "enum": ["COMPLETED_FAILED", "COMPLETED_SUCCESS", "RUNNING"], "repeated": true, "location": "query"}, "source": {"type": "string", "location": "query"}, "startIndex": {"type": "integer", "format": "uint32", "minimum": "0", "location": "query"}, "volumeId": {"type": "string", "repeated": true, "location": "query"}}, "response": {"$ref": "Volumes"}, "scopes": ["https://www.googleapis.com/auth/books"]}}}', true));
1004
+
1005
+ }
1006
+ }
1007
+
1008
+
1009
+
1010
+ class Google_Annotation extends Google_Model {
1011
+ public $afterSelectedText;
1012
+ public $beforeSelectedText;
1013
+ protected $__clientVersionRangesType = 'Google_AnnotationClientVersionRanges';
1014
+ protected $__clientVersionRangesDataType = '';
1015
+ public $clientVersionRanges;
1016
+ public $created;
1017
+ protected $__currentVersionRangesType = 'Google_AnnotationCurrentVersionRanges';
1018
+ protected $__currentVersionRangesDataType = '';
1019
+ public $currentVersionRanges;
1020
+ public $data;
1021
+ public $deleted;
1022
+ public $highlightStyle;
1023
+ public $id;
1024
+ public $kind;
1025
+ public $layerId;
1026
+ public $pageIds;
1027
+ public $selectedText;
1028
+ public $selfLink;
1029
+ public $updated;
1030
+ public $volumeId;
1031
+ public function setAfterSelectedText( $afterSelectedText) {
1032
+ $this->afterSelectedText = $afterSelectedText;
1033
+ }
1034
+ public function getAfterSelectedText() {
1035
+ return $this->afterSelectedText;
1036
+ }
1037
+ public function setBeforeSelectedText( $beforeSelectedText) {
1038
+ $this->beforeSelectedText = $beforeSelectedText;
1039
+ }
1040
+ public function getBeforeSelectedText() {
1041
+ return $this->beforeSelectedText;
1042
+ }
1043
+ public function setClientVersionRanges(Google_AnnotationClientVersionRanges $clientVersionRanges) {
1044
+ $this->clientVersionRanges = $clientVersionRanges;
1045
+ }
1046
+ public function getClientVersionRanges() {
1047
+ return $this->clientVersionRanges;
1048
+ }
1049
+ public function setCreated( $created) {
1050
+ $this->created = $created;
1051
+ }
1052
+ public function getCreated() {
1053
+ return $this->created;
1054
+ }
1055
+ public function setCurrentVersionRanges(Google_AnnotationCurrentVersionRanges $currentVersionRanges) {
1056
+ $this->currentVersionRanges = $currentVersionRanges;
1057
+ }
1058
+ public function getCurrentVersionRanges() {
1059
+ return $this->currentVersionRanges;
1060
+ }
1061
+ public function setData( $data) {
1062
+ $this->data = $data;
1063
+ }
1064
+ public function getData() {
1065
+ return $this->data;
1066
+ }
1067
+ public function setDeleted( $deleted) {
1068
+ $this->deleted = $deleted;
1069
+ }
1070
+ public function getDeleted() {
1071
+ return $this->deleted;
1072
+ }
1073
+ public function setHighlightStyle( $highlightStyle) {
1074
+ $this->highlightStyle = $highlightStyle;
1075
+ }
1076
+ public function getHighlightStyle() {
1077
+ return $this->highlightStyle;
1078
+ }
1079
+ public function setId( $id) {
1080
+ $this->id = $id;
1081
+ }
1082
+ public function getId() {
1083
+ return $this->id;
1084
+ }
1085
+ public function setKind( $kind) {
1086
+ $this->kind = $kind;
1087
+ }
1088
+ public function getKind() {
1089
+ return $this->kind;
1090
+ }
1091
+ public function setLayerId( $layerId) {
1092
+ $this->layerId = $layerId;
1093
+ }
1094
+ public function getLayerId() {
1095
+ return $this->layerId;
1096
+ }
1097
+ public function setPageIds(/* array(Google_string) */ $pageIds) {
1098
+ $this->assertIsArray($pageIds, 'Google_string', __METHOD__);
1099
+ $this->pageIds = $pageIds;
1100
+ }
1101
+ public function getPageIds() {
1102
+ return $this->pageIds;
1103
+ }
1104
+ public function setSelectedText( $selectedText) {
1105
+ $this->selectedText = $selectedText;
1106
+ }
1107
+ public function getSelectedText() {
1108
+ return $this->selectedText;
1109
+ }
1110
+ public function setSelfLink( $selfLink) {
1111
+ $this->selfLink = $selfLink;
1112
+ }
1113
+ public function getSelfLink() {
1114
+ return $this->selfLink;
1115
+ }
1116
+ public function setUpdated( $updated) {
1117
+ $this->updated = $updated;
1118
+ }
1119
+ public function getUpdated() {
1120
+ return $this->updated;
1121
+ }
1122
+ public function setVolumeId( $volumeId) {
1123
+ $this->volumeId = $volumeId;
1124
+ }
1125
+ public function getVolumeId() {
1126
+ return $this->volumeId;
1127
+ }
1128
+ }
1129
+
1130
+ class Google_AnnotationClientVersionRanges extends Google_Model {
1131
+ protected $__cfiRangeType = 'Google_BooksAnnotationsRange';
1132
+ protected $__cfiRangeDataType = '';
1133
+ public $cfiRange;
1134
+ public $contentVersion;
1135
+ protected $__gbImageRangeType = 'Google_BooksAnnotationsRange';
1136
+ protected $__gbImageRangeDataType = '';
1137
+ public $gbImageRange;
1138
+ protected $__gbTextRangeType = 'Google_BooksAnnotationsRange';
1139
+ protected $__gbTextRangeDataType = '';
1140
+ public $gbTextRange;
1141
+ protected $__imageCfiRangeType = 'Google_BooksAnnotationsRange';
1142
+ protected $__imageCfiRangeDataType = '';
1143
+ public $imageCfiRange;
1144
+ public function setCfiRange(Google_BooksAnnotationsRange $cfiRange) {
1145
+ $this->cfiRange = $cfiRange;
1146
+ }
1147
+ public function getCfiRange() {
1148
+ return $this->cfiRange;
1149
+ }
1150
+ public function setContentVersion( $contentVersion) {
1151
+ $this->contentVersion = $contentVersion;
1152
+ }
1153
+ public function getContentVersion() {
1154
+ return $this->contentVersion;
1155
+ }
1156
+ public function setGbImageRange(Google_BooksAnnotationsRange $gbImageRange) {
1157
+ $this->gbImageRange = $gbImageRange;
1158
+ }
1159
+ public function getGbImageRange() {
1160
+ return $this->gbImageRange;
1161
+ }
1162
+ public function setGbTextRange(Google_BooksAnnotationsRange $gbTextRange) {
1163
+ $this->gbTextRange = $gbTextRange;
1164
+ }
1165
+ public function getGbTextRange() {
1166
+ return $this->gbTextRange;
1167
+ }
1168
+ public function setImageCfiRange(Google_BooksAnnotationsRange $imageCfiRange) {
1169
+ $this->imageCfiRange = $imageCfiRange;
1170
+ }
1171
+ public function getImageCfiRange() {
1172
+ return $this->imageCfiRange;
1173
+ }
1174
+ }
1175
+
1176
+ class Google_AnnotationCurrentVersionRanges extends Google_Model {
1177
+ protected $__cfiRangeType = 'Google_BooksAnnotationsRange';
1178
+ protected $__cfiRangeDataType = '';
1179
+ public $cfiRange;
1180
+ public $contentVersion;
1181
+ protected $__gbImageRangeType = 'Google_BooksAnnotationsRange';
1182
+ protected $__gbImageRangeDataType = '';
1183
+ public $gbImageRange;
1184
+ protected $__gbTextRangeType = 'Google_BooksAnnotationsRange';
1185
+ protected $__gbTextRangeDataType = '';
1186
+ public $gbTextRange;
1187
+ protected $__imageCfiRangeType = 'Google_BooksAnnotationsRange';
1188
+ protected $__imageCfiRangeDataType = '';
1189
+ public $imageCfiRange;
1190
+ public function setCfiRange(Google_BooksAnnotationsRange $cfiRange) {
1191
+ $this->cfiRange = $cfiRange;
1192
+ }
1193
+ public function getCfiRange() {
1194
+ return $this->cfiRange;
1195
+ }
1196
+ public function setContentVersion( $contentVersion) {
1197
+ $this->contentVersion = $contentVersion;
1198
+ }
1199
+ public function getContentVersion() {
1200
+ return $this->contentVersion;
1201
+ }
1202
+ public function setGbImageRange(Google_BooksAnnotationsRange $gbImageRange) {
1203
+ $this->gbImageRange = $gbImageRange;
1204
+ }
1205
+ public function getGbImageRange() {
1206
+ return $this->gbImageRange;
1207
+ }
1208
+ public function setGbTextRange(Google_BooksAnnotationsRange $gbTextRange) {
1209
+ $this->gbTextRange = $gbTextRange;
1210
+ }
1211
+ public function getGbTextRange() {
1212
+ return $this->gbTextRange;
1213
+ }
1214
+ public function setImageCfiRange(Google_BooksAnnotationsRange $imageCfiRange) {
1215
+ $this->imageCfiRange = $imageCfiRange;
1216
+ }
1217
+ public function getImageCfiRange() {
1218
+ return $this->imageCfiRange;
1219
+ }
1220
+ }
1221
+
1222
+ class Google_Annotationdata extends Google_Model {
1223
+ public $annotationType;
1224
+ public $data;
1225
+ public $encoded_data;
1226
+ public $id;
1227
+ public $kind;
1228
+ public $layerId;
1229
+ public $selfLink;
1230
+ public $updated;
1231
+ public $volumeId;
1232
+ public function setAnnotationType( $annotationType) {
1233
+ $this->annotationType = $annotationType;
1234
+ }
1235
+ public function getAnnotationType() {
1236
+ return $this->annotationType;
1237
+ }
1238
+ public function setData( $data) {
1239
+ $this->data = $data;
1240
+ }
1241
+ public function getData() {
1242
+ return $this->data;
1243
+ }
1244
+ public function setEncoded_data( $encoded_data) {
1245
+ $this->encoded_data = $encoded_data;
1246
+ }
1247
+ public function getEncoded_data() {
1248
+ return $this->encoded_data;
1249
+ }
1250
+ public function setId( $id) {
1251
+ $this->id = $id;
1252
+ }
1253
+ public function getId() {
1254
+ return $this->id;
1255
+ }
1256
+ public function setKind( $kind) {
1257
+ $this->kind = $kind;
1258
+ }
1259
+ public function getKind() {
1260
+ return $this->kind;
1261
+ }
1262
+ public function setLayerId( $layerId) {
1263
+ $this->layerId = $layerId;
1264
+ }
1265
+ public function getLayerId() {
1266
+ return $this->layerId;
1267
+ }
1268
+ public function setSelfLink( $selfLink) {
1269
+ $this->selfLink = $selfLink;
1270
+ }
1271
+ public function getSelfLink() {
1272
+ return $this->selfLink;
1273
+ }
1274
+ public function setUpdated( $updated) {
1275
+ $this->updated = $updated;
1276
+ }
1277
+ public function getUpdated() {
1278
+ return $this->updated;
1279
+ }
1280
+ public function setVolumeId( $volumeId) {
1281
+ $this->volumeId = $volumeId;
1282
+ }
1283
+ public function getVolumeId() {
1284
+ return $this->volumeId;
1285
+ }
1286
+ }
1287
+
1288
+ class Google_Annotations extends Google_Model {
1289
+ protected $__itemsType = 'Google_Annotation';
1290
+ protected $__itemsDataType = 'array';
1291
+ public $items;
1292
+ public $kind;
1293
+ public $nextPageToken;
1294
+ public $totalItems;
1295
+ public function setItems(/* array(Google_Annotation) */ $items) {
1296
+ $this->assertIsArray($items, 'Google_Annotation', __METHOD__);
1297
+ $this->items = $items;
1298
+ }
1299
+ public function getItems() {
1300
+ return $this->items;
1301
+ }
1302
+ public function setKind( $kind) {
1303
+ $this->kind = $kind;
1304
+ }
1305
+ public function getKind() {
1306
+ return $this->kind;
1307
+ }
1308
+ public function setNextPageToken( $nextPageToken) {
1309
+ $this->nextPageToken = $nextPageToken;
1310
+ }
1311
+ public function getNextPageToken() {
1312
+ return $this->nextPageToken;
1313
+ }
1314
+ public function setTotalItems( $totalItems) {
1315
+ $this->totalItems = $totalItems;
1316
+ }
1317
+ public function getTotalItems() {
1318
+ return $this->totalItems;
1319
+ }
1320
+ }
1321
+
1322
+ class Google_Annotationsdata extends Google_Model {
1323
+ protected $__itemsType = 'Google_Annotationdata';
1324
+ protected $__itemsDataType = 'array';
1325
+ public $items;
1326
+ public $kind;
1327
+ public $nextPageToken;
1328
+ public $totalItems;
1329
+ public function setItems(/* array(Google_Annotationdata) */ $items) {
1330
+ $this->assertIsArray($items, 'Google_Annotationdata', __METHOD__);
1331
+ $this->items = $items;
1332
+ }
1333
+ public function getItems() {
1334
+ return $this->items;
1335
+ }
1336
+ public function setKind( $kind) {
1337
+ $this->kind = $kind;
1338
+ }
1339
+ public function getKind() {
1340
+ return $this->kind;
1341
+ }
1342
+ public function setNextPageToken( $nextPageToken) {
1343
+ $this->nextPageToken = $nextPageToken;
1344
+ }
1345
+ public function getNextPageToken() {
1346
+ return $this->nextPageToken;
1347
+ }
1348
+ public function setTotalItems( $totalItems) {
1349
+ $this->totalItems = $totalItems;
1350
+ }
1351
+ public function getTotalItems() {
1352
+ return $this->totalItems;
1353
+ }
1354
+ }
1355
+
1356
+ class Google_BooksAnnotationsRange extends Google_Model {
1357
+ public $endOffset;
1358
+ public $endPosition;
1359
+ public $startOffset;
1360
+ public $startPosition;
1361
+ public function setEndOffset( $endOffset) {
1362
+ $this->endOffset = $endOffset;
1363
+ }
1364
+ public function getEndOffset() {
1365
+ return $this->endOffset;
1366
+ }
1367
+ public function setEndPosition( $endPosition) {
1368
+ $this->endPosition = $endPosition;
1369
+ }
1370
+ public function getEndPosition() {
1371
+ return $this->endPosition;
1372
+ }
1373
+ public function setStartOffset( $startOffset) {
1374
+ $this->startOffset = $startOffset;
1375
+ }
1376
+ public function getStartOffset() {
1377
+ return $this->startOffset;
1378
+ }
1379
+ public function setStartPosition( $startPosition) {
1380
+ $this->startPosition = $startPosition;
1381
+ }
1382
+ public function getStartPosition() {
1383
+ return $this->startPosition;
1384
+ }
1385
+ }
1386
+
1387
+ class Google_BooksCloudloadingResource extends Google_Model {
1388
+ public $author;
1389
+ public $processingState;
1390
+ public $title;
1391
+ public $volumeId;
1392
+ public function setAuthor( $author) {
1393
+ $this->author = $author;
1394
+ }
1395
+ public function getAuthor() {
1396
+ return $this->author;
1397
+ }
1398
+ public function setProcessingState( $processingState) {
1399
+ $this->processingState = $processingState;
1400
+ }
1401
+ public function getProcessingState() {
1402
+ return $this->processingState;
1403
+ }
1404
+ public function setTitle( $title) {
1405
+ $this->title = $title;
1406
+ }
1407
+ public function getTitle() {
1408
+ return $this->title;
1409
+ }
1410
+ public function setVolumeId( $volumeId) {
1411
+ $this->volumeId = $volumeId;
1412
+ }
1413
+ public function getVolumeId() {
1414
+ return $this->volumeId;
1415
+ }
1416
+ }
1417
+
1418
+ class Google_BooksLayerDictData extends Google_Model {
1419
+ protected $__commonType = 'Google_BooksLayerDictDataCommon';
1420
+ protected $__commonDataType = '';
1421
+ public $common;
1422
+ protected $__dictType = 'Google_BooksLayerDictDataDict';
1423
+ protected $__dictDataType = '';
1424
+ public $dict;
1425
+ public function setCommon(Google_BooksLayerDictDataCommon $common) {
1426
+ $this->common = $common;
1427
+ }
1428
+ public function getCommon() {
1429
+ return $this->common;
1430
+ }
1431
+ public function setDict(Google_BooksLayerDictDataDict $dict) {
1432
+ $this->dict = $dict;
1433
+ }
1434
+ public function getDict() {
1435
+ return $this->dict;
1436
+ }
1437
+ }
1438
+
1439
+ class Google_BooksLayerDictDataCommon extends Google_Model {
1440
+ public $title;
1441
+ public function setTitle( $title) {
1442
+ $this->title = $title;
1443
+ }
1444
+ public function getTitle() {
1445
+ return $this->title;
1446
+ }
1447
+ }
1448
+
1449
+ class Google_BooksLayerDictDataDict extends Google_Model {
1450
+ protected $__sourceType = 'Google_BooksLayerDictDataDictSource';
1451
+ protected $__sourceDataType = '';
1452
+ public $source;
1453
+ protected $__wordsType = 'Google_BooksLayerDictDataDictWords';
1454
+ protected $__wordsDataType = 'array';
1455
+ public $words;
1456
+ public function setSource(Google_BooksLayerDictDataDictSource $source) {
1457
+ $this->source = $source;
1458
+ }
1459
+ public function getSource() {
1460
+ return $this->source;
1461
+ }
1462
+ public function setWords(/* array(Google_BooksLayerDictDataDictWords) */ $words) {
1463
+ $this->assertIsArray($words, 'Google_BooksLayerDictDataDictWords', __METHOD__);
1464
+ $this->words = $words;
1465
+ }
1466
+ public function getWords() {
1467
+ return $this->words;
1468
+ }
1469
+ }
1470
+
1471
+ class Google_BooksLayerDictDataDictSource extends Google_Model {
1472
+ public $attribution;
1473
+ public $url;
1474
+ public function setAttribution( $attribution) {
1475
+ $this->attribution = $attribution;
1476
+ }
1477
+ public function getAttribution() {
1478
+ return $this->attribution;
1479
+ }
1480
+ public function setUrl( $url) {
1481
+ $this->url = $url;
1482
+ }
1483
+ public function getUrl() {
1484
+ return $this->url;
1485
+ }
1486
+ }
1487
+
1488
+ class Google_BooksLayerDictDataDictWords extends Google_Model {
1489
+ protected $__derivativesType = 'Google_BooksLayerDictDataDictWordsDerivatives';
1490
+ protected $__derivativesDataType = 'array';
1491
+ public $derivatives;
1492
+ protected $__examplesType = 'Google_BooksLayerDictDataDictWordsExamples';
1493
+ protected $__examplesDataType = 'array';
1494
+ public $examples;
1495
+ protected $__sensesType = 'Google_BooksLayerDictDataDictWordsSenses';
1496
+ protected $__sensesDataType = 'array';
1497
+ public $senses;
1498
+ protected $__sourceType = 'Google_BooksLayerDictDataDictWordsSource';
1499
+ protected $__sourceDataType = '';
1500
+ public $source;
1501
+ public function setDerivatives(/* array(Google_BooksLayerDictDataDictWordsDerivatives) */ $derivatives) {
1502
+ $this->assertIsArray($derivatives, 'Google_BooksLayerDictDataDictWordsDerivatives', __METHOD__);
1503
+ $this->derivatives = $derivatives;
1504
+ }
1505
+ public function getDerivatives() {
1506
+ return $this->derivatives;
1507
+ }
1508
+ public function setExamples(/* array(Google_BooksLayerDictDataDictWordsExamples) */ $examples) {
1509
+ $this->assertIsArray($examples, 'Google_BooksLayerDictDataDictWordsExamples', __METHOD__);
1510
+ $this->examples = $examples;
1511
+ }
1512
+ public function getExamples() {
1513
+ return $this->examples;
1514
+ }
1515
+ public function setSenses(/* array(Google_BooksLayerDictDataDictWordsSenses) */ $senses) {
1516
+ $this->assertIsArray($senses, 'Google_BooksLayerDictDataDictWordsSenses', __METHOD__);
1517
+ $this->senses = $senses;
1518
+ }
1519
+ public function getSenses() {
1520
+ return $this->senses;
1521
+ }
1522
+ public function setSource(Google_BooksLayerDictDataDictWordsSource $source) {
1523
+ $this->source = $source;
1524
+ }
1525
+ public function getSource() {
1526
+ return $this->source;
1527
+ }
1528
+ }
1529
+
1530
+ class Google_BooksLayerDictDataDictWordsDerivatives extends Google_Model {
1531
+ protected $__sourceType = 'Google_BooksLayerDictDataDictWordsDerivativesSource';
1532
+ protected $__sourceDataType = '';
1533
+ public $source;
1534
+ public $text;
1535
+ public function setSource(Google_BooksLayerDictDataDictWordsDerivativesSource $source) {
1536
+ $this->source = $source;
1537
+ }
1538
+ public function getSource() {
1539
+ return $this->source;
1540
+ }
1541
+ public function setText( $text) {
1542
+ $this->text = $text;
1543
+ }
1544
+ public function getText() {
1545
+ return $this->text;
1546
+ }
1547
+ }
1548
+
1549
+ class Google_BooksLayerDictDataDictWordsDerivativesSource extends Google_Model {
1550
+ public $attribution;
1551
+ public $url;
1552
+ public function setAttribution( $attribution) {
1553
+ $this->attribution = $attribution;
1554
+ }
1555
+ public function getAttribution() {
1556
+ return $this->attribution;
1557
+ }
1558
+ public function setUrl( $url) {
1559
+ $this->url = $url;
1560
+ }
1561
+ public function getUrl() {
1562
+ return $this->url;
1563
+ }
1564
+ }
1565
+
1566
+ class Google_BooksLayerDictDataDictWordsExamples extends Google_Model {
1567
+ protected $__sourceType = 'Google_BooksLayerDictDataDictWordsExamplesSource';
1568
+ protected $__sourceDataType = '';
1569
+ public $source;
1570
+ public $text;
1571
+ public function setSource(Google_BooksLayerDictDataDictWordsExamplesSource $source) {
1572
+ $this->source = $source;
1573
+ }
1574
+ public function getSource() {
1575
+ return $this->source;
1576
+ }
1577
+ public function setText( $text) {
1578
+ $this->text = $text;
1579
+ }
1580
+ public function getText() {
1581
+ return $this->text;
1582
+ }
1583
+ }
1584
+
1585
+ class Google_BooksLayerDictDataDictWordsExamplesSource extends Google_Model {
1586
+ public $attribution;
1587
+ public $url;
1588
+ public function setAttribution( $attribution) {
1589
+ $this->attribution = $attribution;
1590
+ }
1591
+ public function getAttribution() {
1592
+ return $this->attribution;
1593
+ }
1594
+ public function setUrl( $url) {
1595
+ $this->url = $url;
1596
+ }
1597
+ public function getUrl() {
1598
+ return $this->url;
1599
+ }
1600
+ }
1601
+
1602
+ class Google_BooksLayerDictDataDictWordsSenses extends Google_Model {
1603
+ protected $__conjugationsType = 'Google_BooksLayerDictDataDictWordsSensesConjugations';
1604
+ protected $__conjugationsDataType = 'array';
1605
+ public $conjugations;
1606
+ protected $__definitionsType = 'Google_BooksLayerDictDataDictWordsSensesDefinitions';
1607
+ protected $__definitionsDataType = 'array';
1608
+ public $definitions;
1609
+ public $partOfSpeech;
1610
+ public $pronunciation;
1611
+ public $pronunciationUrl;
1612
+ protected $__sourceType = 'Google_BooksLayerDictDataDictWordsSensesSource';
1613
+ protected $__sourceDataType = '';
1614
+ public $source;
1615
+ public $syllabification;
1616
+ protected $__synonymsType = 'Google_BooksLayerDictDataDictWordsSensesSynonyms';
1617
+ protected $__synonymsDataType = 'array';
1618
+ public $synonyms;
1619
+ public function setConjugations(/* array(Google_BooksLayerDictDataDictWordsSensesConjugations) */ $conjugations) {
1620
+ $this->assertIsArray($conjugations, 'Google_BooksLayerDictDataDictWordsSensesConjugations', __METHOD__);
1621
+ $this->conjugations = $conjugations;
1622
+ }
1623
+ public function getConjugations() {
1624
+ return $this->conjugations;
1625
+ }
1626
+ public function setDefinitions(/* array(Google_BooksLayerDictDataDictWordsSensesDefinitions) */ $definitions) {
1627
+ $this->assertIsArray($definitions, 'Google_BooksLayerDictDataDictWordsSensesDefinitions', __METHOD__);
1628
+ $this->definitions = $definitions;
1629
+ }
1630
+ public function getDefinitions() {
1631
+ return $this->definitions;
1632
+ }
1633
+ public function setPartOfSpeech( $partOfSpeech) {
1634
+ $this->partOfSpeech = $partOfSpeech;
1635
+ }
1636
+ public function getPartOfSpeech() {
1637
+ return $this->partOfSpeech;
1638
+ }
1639
+ public function setPronunciation( $pronunciation) {
1640
+ $this->pronunciation = $pronunciation;
1641
+ }
1642
+ public function getPronunciation() {
1643
+ return $this->pronunciation;
1644
+ }
1645
+ public function setPronunciationUrl( $pronunciationUrl) {
1646
+ $this->pronunciationUrl = $pronunciationUrl;
1647
+ }
1648
+ public function getPronunciationUrl() {
1649
+ return $this->pronunciationUrl;
1650
+ }
1651
+ public function setSource(Google_BooksLayerDictDataDictWordsSensesSource $source) {
1652
+ $this->source = $source;
1653
+ }
1654
+ public function getSource() {
1655
+ return $this->source;
1656
+ }
1657
+ public function setSyllabification( $syllabification) {
1658
+ $this->syllabification = $syllabification;
1659
+ }
1660
+ public function getSyllabification() {
1661
+ return $this->syllabification;
1662
+ }
1663
+ public function setSynonyms(/* array(Google_BooksLayerDictDataDictWordsSensesSynonyms) */ $synonyms) {
1664
+ $this->assertIsArray($synonyms, 'Google_BooksLayerDictDataDictWordsSensesSynonyms', __METHOD__);
1665
+ $this->synonyms = $synonyms;
1666
+ }
1667
+ public function getSynonyms() {
1668
+ return $this->synonyms;
1669
+ }
1670
+ }
1671
+
1672
+ class Google_BooksLayerDictDataDictWordsSensesConjugations extends Google_Model {
1673
+ public $type;
1674
+ public $value;
1675
+ public function setType( $type) {
1676
+ $this->type = $type;
1677
+ }
1678
+ public function getType() {
1679
+ return $this->type;
1680
+ }
1681
+ public function setValue( $value) {
1682
+ $this->value = $value;
1683
+ }
1684
+ public function getValue() {
1685
+ return $this->value;
1686
+ }
1687
+ }
1688
+
1689
+ class Google_BooksLayerDictDataDictWordsSensesDefinitions extends Google_Model {
1690
+ public $definition;
1691
+ protected $__examplesType = 'Google_BooksLayerDictDataDictWordsSensesDefinitionsExamples';
1692
+ protected $__examplesDataType = 'array';
1693
+ public $examples;
1694
+ public function setDefinition( $definition) {
1695
+ $this->definition = $definition;
1696
+ }
1697
+ public function getDefinition() {
1698
+ return $this->definition;
1699
+ }
1700
+ public function setExamples(/* array(Google_BooksLayerDictDataDictWordsSensesDefinitionsExamples) */ $examples) {
1701
+ $this->assertIsArray($examples, 'Google_BooksLayerDictDataDictWordsSensesDefinitionsExamples', __METHOD__);
1702
+ $this->examples = $examples;
1703
+ }
1704
+ public function getExamples() {
1705
+ return $this->examples;
1706
+ }
1707
+ }
1708
+
1709
+ class Google_BooksLayerDictDataDictWordsSensesDefinitionsExamples extends Google_Model {
1710
+ protected $__sourceType = 'Google_BooksLayerDictDataDictWordsSensesDefinitionsExamplesSource';
1711
+ protected $__sourceDataType = '';
1712
+ public $source;
1713
+ public $text;
1714
+ public function setSource(Google_BooksLayerDictDataDictWordsSensesDefinitionsExamplesSource $source) {
1715
+ $this->source = $source;
1716
+ }
1717
+ public function getSource() {
1718
+ return $this->source;
1719
+ }
1720
+ public function setText( $text) {
1721
+ $this->text = $text;
1722
+ }
1723
+ public function getText() {
1724
+ return $this->text;
1725
+ }
1726
+ }
1727
+
1728
+ class Google_BooksLayerDictDataDictWordsSensesDefinitionsExamplesSource extends Google_Model {
1729
+ public $attribution;
1730
+ public $url;
1731
+ public function setAttribution( $attribution) {
1732
+ $this->attribution = $attribution;
1733
+ }
1734
+ public function getAttribution() {
1735
+ return $this->attribution;
1736
+ }
1737
+ public function setUrl( $url) {
1738
+ $this->url = $url;
1739
+ }
1740
+ public function getUrl() {
1741
+ return $this->url;
1742
+ }
1743
+ }
1744
+
1745
+ class Google_BooksLayerDictDataDictWordsSensesSource extends Google_Model {
1746
+ public $attribution;
1747
+ public $url;
1748
+ public function setAttribution( $attribution) {
1749
+ $this->attribution = $attribution;
1750
+ }
1751
+ public function getAttribution() {
1752
+ return $this->attribution;
1753
+ }
1754
+ public function setUrl( $url) {
1755
+ $this->url = $url;
1756
+ }
1757
+ public function getUrl() {
1758
+ return $this->url;
1759
+ }
1760
+ }
1761
+
1762
+ class Google_BooksLayerDictDataDictWordsSensesSynonyms extends Google_Model {
1763
+ protected $__sourceType = 'Google_BooksLayerDictDataDictWordsSensesSynonymsSource';
1764
+ protected $__sourceDataType = '';
1765
+ public $source;
1766
+ public $text;
1767
+ public function setSource(Google_BooksLayerDictDataDictWordsSensesSynonymsSource $source) {
1768
+ $this->source = $source;
1769
+ }
1770
+ public function getSource() {
1771
+ return $this->source;
1772
+ }
1773
+ public function setText( $text) {
1774
+ $this->text = $text;
1775
+ }
1776
+ public function getText() {
1777
+ return $this->text;
1778
+ }
1779
+ }
1780
+
1781
+ class Google_BooksLayerDictDataDictWordsSensesSynonymsSource extends Google_Model {
1782
+ public $attribution;
1783
+ public $url;
1784
+ public function setAttribution( $attribution) {
1785
+ $this->attribution = $attribution;
1786
+ }
1787
+ public function getAttribution() {
1788
+ return $this->attribution;
1789
+ }
1790
+ public function setUrl( $url) {
1791
+ $this->url = $url;
1792
+ }
1793
+ public function getUrl() {
1794
+ return $this->url;
1795
+ }
1796
+ }
1797
+
1798
+ class Google_BooksLayerDictDataDictWordsSource extends Google_Model {
1799
+ public $attribution;
1800
+ public $url;
1801
+ public function setAttribution( $attribution) {
1802
+ $this->attribution = $attribution;
1803
+ }
1804
+ public function getAttribution() {
1805
+ return $this->attribution;
1806
+ }
1807
+ public function setUrl( $url) {
1808
+ $this->url = $url;
1809
+ }
1810
+ public function getUrl() {
1811
+ return $this->url;
1812
+ }
1813
+ }
1814
+
1815
+ class Google_BooksLayerGeoData extends Google_Model {
1816
+ protected $__commonType = 'Google_BooksLayerGeoDataCommon';
1817
+ protected $__commonDataType = '';
1818
+ public $common;
1819
+ protected $__geoType = 'Google_BooksLayerGeoDataGeo';
1820
+ protected $__geoDataType = '';
1821
+ public $geo;
1822
+ public function setCommon(Google_BooksLayerGeoDataCommon $common) {
1823
+ $this->common = $common;
1824
+ }
1825
+ public function getCommon() {
1826
+ return $this->common;
1827
+ }
1828
+ public function setGeo(Google_BooksLayerGeoDataGeo $geo) {
1829
+ $this->geo = $geo;
1830
+ }
1831
+ public function getGeo() {
1832
+ return $this->geo;
1833
+ }
1834
+ }
1835
+
1836
+ class Google_BooksLayerGeoDataCommon extends Google_Model {
1837
+ public $lang;
1838
+ public $previewImageUrl;
1839
+ public $snippet;
1840
+ public $snippetUrl;
1841
+ public $title;
1842
+ public function setLang( $lang) {
1843
+ $this->lang = $lang;
1844
+ }
1845
+ public function getLang() {
1846
+ return $this->lang;
1847
+ }
1848
+ public function setPreviewImageUrl( $previewImageUrl) {
1849
+ $this->previewImageUrl = $previewImageUrl;
1850
+ }
1851
+ public function getPreviewImageUrl() {
1852
+ return $this->previewImageUrl;
1853
+ }
1854
+ public function setSnippet( $snippet) {
1855
+ $this->snippet = $snippet;
1856
+ }
1857
+ public function getSnippet() {
1858
+ return $this->snippet;
1859
+ }
1860
+ public function setSnippetUrl( $snippetUrl) {
1861
+ $this->snippetUrl = $snippetUrl;
1862
+ }
1863
+ public function getSnippetUrl() {
1864
+ return $this->snippetUrl;
1865
+ }
1866
+ public function setTitle( $title) {
1867
+ $this->title = $title;
1868
+ }
1869
+ public function getTitle() {
1870
+ return $this->title;
1871
+ }
1872
+ }
1873
+
1874
+ class Google_BooksLayerGeoDataGeo extends Google_Model {
1875
+ protected $__boundaryType = 'Google_BooksLayerGeoDataGeoBoundary';
1876
+ protected $__boundaryDataType = 'array';
1877
+ public $boundary;
1878
+ public $cachePolicy;
1879
+ public $countryCode;
1880
+ public $latitude;
1881
+ public $longitude;
1882
+ public $mapType;
1883
+ protected $__viewportType = 'Google_BooksLayerGeoDataGeoViewport';
1884
+ protected $__viewportDataType = '';
1885
+ public $viewport;
1886
+ public $zoom;
1887
+ public function setBoundary(/* array(Google_BooksLayerGeoDataGeoBoundary) */ $boundary) {
1888
+ $this->assertIsArray($boundary, 'Google_BooksLayerGeoDataGeoBoundary', __METHOD__);
1889
+ $this->boundary = $boundary;
1890
+ }
1891
+ public function getBoundary() {
1892
+ return $this->boundary;
1893
+ }
1894
+ public function setCachePolicy( $cachePolicy) {
1895
+ $this->cachePolicy = $cachePolicy;
1896
+ }
1897
+ public function getCachePolicy() {
1898
+ return $this->cachePolicy;
1899
+ }
1900
+ public function setCountryCode( $countryCode) {
1901
+ $this->countryCode = $countryCode;
1902
+ }
1903
+ public function getCountryCode() {
1904
+ return $this->countryCode;
1905
+ }
1906
+ public function setLatitude( $latitude) {
1907
+ $this->latitude = $latitude;
1908
+ }
1909
+ public function getLatitude() {
1910
+ return $this->latitude;
1911
+ }
1912
+ public function setLongitude( $longitude) {
1913
+ $this->longitude = $longitude;
1914
+ }
1915
+ public function getLongitude() {
1916
+ return $this->longitude;
1917
+ }
1918
+ public function setMapType( $mapType) {
1919
+ $this->mapType = $mapType;
1920
+ }
1921
+ public function getMapType() {
1922
+ return $this->mapType;
1923
+ }
1924
+ public function setViewport(Google_BooksLayerGeoDataGeoViewport $viewport) {
1925
+ $this->viewport = $viewport;
1926
+ }
1927
+ public function getViewport() {
1928
+ return $this->viewport;
1929
+ }
1930
+ public function setZoom( $zoom) {
1931
+ $this->zoom = $zoom;
1932
+ }
1933
+ public function getZoom() {
1934
+ return $this->zoom;
1935
+ }
1936
+ }
1937
+
1938
+ class Google_BooksLayerGeoDataGeoBoundary extends Google_Model {
1939
+ public $latitude;
1940
+ public $longitude;
1941
+ public function setLatitude( $latitude) {
1942
+ $this->latitude = $latitude;
1943
+ }
1944
+ public function getLatitude() {
1945
+ return $this->latitude;
1946
+ }
1947
+ public function setLongitude( $longitude) {
1948
+ $this->longitude = $longitude;
1949
+ }
1950
+ public function getLongitude() {
1951
+ return $this->longitude;
1952
+ }
1953
+ }
1954
+
1955
+ class Google_BooksLayerGeoDataGeoViewport extends Google_Model {
1956
+ protected $__hiType = 'Google_BooksLayerGeoDataGeoViewportHi';
1957
+ protected $__hiDataType = '';
1958
+ public $hi;
1959
+ protected $__loType = 'Google_BooksLayerGeoDataGeoViewportLo';
1960
+ protected $__loDataType = '';
1961
+ public $lo;
1962
+ public function setHi(Google_BooksLayerGeoDataGeoViewportHi $hi) {
1963
+ $this->hi = $hi;
1964
+ }
1965
+ public function getHi() {
1966
+ return $this->hi;
1967
+ }
1968
+ public function setLo(Google_BooksLayerGeoDataGeoViewportLo $lo) {
1969
+ $this->lo = $lo;
1970
+ }
1971
+ public function getLo() {
1972
+ return $this->lo;
1973
+ }
1974
+ }
1975
+
1976
+ class Google_BooksLayerGeoDataGeoViewportHi extends Google_Model {
1977
+ public $latitude;
1978
+ public $longitude;
1979
+ public function setLatitude( $latitude) {
1980
+ $this->latitude = $latitude;
1981
+ }
1982
+ public function getLatitude() {
1983
+ return $this->latitude;
1984
+ }
1985
+ public function setLongitude( $longitude) {
1986
+ $this->longitude = $longitude;
1987
+ }
1988
+ public function getLongitude() {
1989
+ return $this->longitude;
1990
+ }
1991
+ }
1992
+
1993
+ class Google_BooksLayerGeoDataGeoViewportLo extends Google_Model {
1994
+ public $latitude;
1995
+ public $longitude;
1996
+ public function setLatitude( $latitude) {
1997
+ $this->latitude = $latitude;
1998
+ }
1999
+ public function getLatitude() {
2000
+ return $this->latitude;
2001
+ }
2002
+ public function setLongitude( $longitude) {
2003
+ $this->longitude = $longitude;
2004
+ }
2005
+ public function getLongitude() {
2006
+ return $this->longitude;
2007
+ }
2008
+ }
2009
+
2010
+ class Google_Bookshelf extends Google_Model {
2011
+ public $access;
2012
+ public $created;
2013
+ public $description;
2014
+ public $id;
2015
+ public $kind;
2016
+ public $selfLink;
2017
+ public $title;
2018
+ public $updated;
2019
+ public $volumeCount;
2020
+ public $volumesLastUpdated;
2021
+ public function setAccess( $access) {
2022
+ $this->access = $access;
2023
+ }
2024
+ public function getAccess() {
2025
+ return $this->access;
2026
+ }
2027
+ public function setCreated( $created) {
2028
+ $this->created = $created;
2029
+ }
2030
+ public function getCreated() {
2031
+ return $this->created;
2032
+ }
2033
+ public function setDescription( $description) {
2034
+ $this->description = $description;
2035
+ }
2036
+ public function getDescription() {
2037
+ return $this->description;
2038
+ }
2039
+ public function setId( $id) {
2040
+ $this->id = $id;
2041
+ }
2042
+ public function getId() {
2043
+ return $this->id;
2044
+ }
2045
+ public function setKind( $kind) {
2046
+ $this->kind = $kind;
2047
+ }
2048
+ public function getKind() {
2049
+ return $this->kind;
2050
+ }
2051
+ public function setSelfLink( $selfLink) {
2052
+ $this->selfLink = $selfLink;
2053
+ }
2054
+ public function getSelfLink() {
2055
+ return $this->selfLink;
2056
+ }
2057
+ public function setTitle( $title) {
2058
+ $this->title = $title;
2059
+ }
2060
+ public function getTitle() {
2061
+ return $this->title;
2062
+ }
2063
+ public function setUpdated( $updated) {
2064
+ $this->updated = $updated;
2065
+ }
2066
+ public function getUpdated() {
2067
+ return $this->updated;
2068
+ }
2069
+ public function setVolumeCount( $volumeCount) {
2070
+ $this->volumeCount = $volumeCount;
2071
+ }
2072
+ public function getVolumeCount() {
2073
+ return $this->volumeCount;
2074
+ }
2075
+ public function setVolumesLastUpdated( $volumesLastUpdated) {
2076
+ $this->volumesLastUpdated = $volumesLastUpdated;
2077
+ }
2078
+ public function getVolumesLastUpdated() {
2079
+ return $this->volumesLastUpdated;
2080
+ }
2081
+ }
2082
+
2083
+ class Google_Bookshelves extends Google_Model {
2084
+ protected $__itemsType = 'Google_Bookshelf';
2085
+ protected $__itemsDataType = 'array';
2086
+ public $items;
2087
+ public $kind;
2088
+ public function setItems(/* array(Google_Bookshelf) */ $items) {
2089
+ $this->assertIsArray($items, 'Google_Bookshelf', __METHOD__);
2090
+ $this->items = $items;
2091
+ }
2092
+ public function getItems() {
2093
+ return $this->items;
2094
+ }
2095
+ public function setKind( $kind) {
2096
+ $this->kind = $kind;
2097
+ }
2098
+ public function getKind() {
2099
+ return $this->kind;
2100
+ }
2101
+ }
2102
+
2103
+ class Google_ConcurrentAccessRestriction extends Google_Model {
2104
+ public $deviceAllowed;
2105
+ public $kind;
2106
+ public $maxConcurrentDevices;
2107
+ public $message;
2108
+ public $nonce;
2109
+ public $reasonCode;
2110
+ public $restricted;
2111
+ public $signature;
2112
+ public $source;
2113
+ public $timeWindowSeconds;
2114
+ public $volumeId;
2115
+ public function setDeviceAllowed( $deviceAllowed) {
2116
+ $this->deviceAllowed = $deviceAllowed;
2117
+ }
2118
+ public function getDeviceAllowed() {
2119
+ return $this->deviceAllowed;
2120
+ }
2121
+ public function setKind( $kind) {
2122
+ $this->kind = $kind;
2123
+ }
2124
+ public function getKind() {
2125
+ return $this->kind;
2126
+ }
2127
+ public function setMaxConcurrentDevices( $maxConcurrentDevices) {
2128
+ $this->maxConcurrentDevices = $maxConcurrentDevices;
2129
+ }
2130
+ public function getMaxConcurrentDevices() {
2131
+ return $this->maxConcurrentDevices;
2132
+ }
2133
+ public function setMessage( $message) {
2134
+ $this->message = $message;
2135
+ }
2136
+ public function getMessage() {
2137
+ return $this->message;
2138
+ }
2139
+ public function setNonce( $nonce) {
2140
+ $this->nonce = $nonce;
2141
+ }
2142
+ public function getNonce() {
2143
+ return $this->nonce;
2144
+ }
2145
+ public function setReasonCode( $reasonCode) {
2146
+ $this->reasonCode = $reasonCode;
2147
+ }
2148
+ public function getReasonCode() {
2149
+ return $this->reasonCode;
2150
+ }
2151
+ public function setRestricted( $restricted) {
2152
+ $this->restricted = $restricted;
2153
+ }
2154
+ public function getRestricted() {
2155
+ return $this->restricted;
2156
+ }
2157
+ public function setSignature( $signature) {
2158
+ $this->signature = $signature;
2159
+ }
2160
+ public function getSignature() {
2161
+ return $this->signature;
2162
+ }
2163
+ public function setSource( $source) {
2164
+ $this->source = $source;
2165
+ }
2166
+ public function getSource() {
2167
+ return $this->source;
2168
+ }
2169
+ public function setTimeWindowSeconds( $timeWindowSeconds) {
2170
+ $this->timeWindowSeconds = $timeWindowSeconds;
2171
+ }
2172
+ public function getTimeWindowSeconds() {
2173
+ return $this->timeWindowSeconds;
2174
+ }
2175
+ public function setVolumeId( $volumeId) {
2176
+ $this->volumeId = $volumeId;
2177
+ }
2178
+ public function getVolumeId() {
2179
+ return $this->volumeId;
2180
+ }
2181
+ }
2182
+
2183
+ class Google_DownloadAccessRestriction extends Google_Model {
2184
+ public $deviceAllowed;
2185
+ public $downloadsAcquired;
2186
+ public $justAcquired;
2187
+ public $kind;
2188
+ public $maxDownloadDevices;
2189
+ public $message;
2190
+ public $nonce;
2191
+ public $reasonCode;
2192
+ public $restricted;
2193
+ public $signature;
2194
+ public $source;
2195
+ public $volumeId;
2196
+ public function setDeviceAllowed( $deviceAllowed) {
2197
+ $this->deviceAllowed = $deviceAllowed;
2198
+ }
2199
+ public function getDeviceAllowed() {
2200
+ return $this->deviceAllowed;
2201
+ }
2202
+ public function setDownloadsAcquired( $downloadsAcquired) {
2203
+ $this->downloadsAcquired = $downloadsAcquired;
2204
+ }
2205
+ public function getDownloadsAcquired() {
2206
+ return $this->downloadsAcquired;
2207
+ }
2208
+ public function setJustAcquired( $justAcquired) {
2209
+ $this->justAcquired = $justAcquired;
2210
+ }
2211
+ public function getJustAcquired() {
2212
+ return $this->justAcquired;
2213
+ }
2214
+ public function setKind( $kind) {
2215
+ $this->kind = $kind;
2216
+ }
2217
+ public function getKind() {
2218
+ return $this->kind;
2219
+ }
2220
+ public function setMaxDownloadDevices( $maxDownloadDevices) {
2221
+ $this->maxDownloadDevices = $maxDownloadDevices;
2222
+ }
2223
+ public function getMaxDownloadDevices() {
2224
+ return $this->maxDownloadDevices;
2225
+ }
2226
+ public function setMessage( $message) {
2227
+ $this->message = $message;
2228
+ }
2229
+ public function getMessage() {
2230
+ return $this->message;
2231
+ }
2232
+ public function setNonce( $nonce) {
2233
+ $this->nonce = $nonce;
2234
+ }
2235
+ public function getNonce() {
2236
+ return $this->nonce;
2237
+ }
2238
+ public function setReasonCode( $reasonCode) {
2239
+ $this->reasonCode = $reasonCode;
2240
+ }
2241
+ public function getReasonCode() {
2242
+ return $this->reasonCode;
2243
+ }
2244
+ public function setRestricted( $restricted) {
2245
+ $this->restricted = $restricted;
2246
+ }
2247
+ public function getRestricted() {
2248
+ return $this->restricted;
2249
+ }
2250
+ public function setSignature( $signature) {
2251
+ $this->signature = $signature;
2252
+ }
2253
+ public function getSignature() {
2254
+ return $this->signature;
2255
+ }
2256
+ public function setSource( $source) {
2257
+ $this->source = $source;
2258
+ }
2259
+ public function getSource() {
2260
+ return $this->source;
2261
+ }
2262
+ public function setVolumeId( $volumeId) {
2263
+ $this->volumeId = $volumeId;
2264
+ }
2265
+ public function getVolumeId() {
2266
+ return $this->volumeId;
2267
+ }
2268
+ }
2269
+
2270
+ class Google_DownloadAccesses extends Google_Model {
2271
+ protected $__downloadAccessListType = 'Google_DownloadAccessRestriction';
2272
+ protected $__downloadAccessListDataType = 'array';
2273
+ public $downloadAccessList;
2274
+ public $kind;
2275
+ public function setDownloadAccessList(/* array(Google_DownloadAccessRestriction) */ $downloadAccessList) {
2276
+ $this->assertIsArray($downloadAccessList, 'Google_DownloadAccessRestriction', __METHOD__);
2277
+ $this->downloadAccessList = $downloadAccessList;
2278
+ }
2279
+ public function getDownloadAccessList() {
2280
+ return $this->downloadAccessList;
2281
+ }
2282
+ public function setKind( $kind) {
2283
+ $this->kind = $kind;
2284
+ }
2285
+ public function getKind() {
2286
+ return $this->kind;
2287
+ }
2288
+ }
2289
+
2290
+ class Google_Layersummaries extends Google_Model {
2291
+ protected $__itemsType = 'Google_Layersummary';
2292
+ protected $__itemsDataType = 'array';
2293
+ public $items;
2294
+ public $kind;
2295
+ public $totalItems;
2296
+ public function setItems(/* array(Google_Layersummary) */ $items) {
2297
+ $this->assertIsArray($items, 'Google_Layersummary', __METHOD__);
2298
+ $this->items = $items;
2299
+ }
2300
+ public function getItems() {
2301
+ return $this->items;
2302
+ }
2303
+ public function setKind( $kind) {
2304
+ $this->kind = $kind;
2305
+ }
2306
+ public function getKind() {
2307
+ return $this->kind;
2308
+ }
2309
+ public function setTotalItems( $totalItems) {
2310
+ $this->totalItems = $totalItems;
2311
+ }
2312
+ public function getTotalItems() {
2313
+ return $this->totalItems;
2314
+ }
2315
+ }
2316
+
2317
+ class Google_Layersummary extends Google_Model {
2318
+ public $annotationCount;
2319
+ public $annotationTypes;
2320
+ public $annotationsDataLink;
2321
+ public $annotationsLink;
2322
+ public $contentVersion;
2323
+ public $dataCount;
2324
+ public $id;
2325
+ public $kind;
2326
+ public $layerId;
2327
+ public $selfLink;
2328
+ public $updated;
2329
+ public $volumeAnnotationsVersion;
2330
+ public $volumeId;
2331
+ public function setAnnotationCount( $annotationCount) {
2332
+ $this->annotationCount = $annotationCount;
2333
+ }
2334
+ public function getAnnotationCount() {
2335
+ return $this->annotationCount;
2336
+ }
2337
+ public function setAnnotationTypes(/* array(Google_string) */ $annotationTypes) {
2338
+ $this->assertIsArray($annotationTypes, 'Google_string', __METHOD__);
2339
+ $this->annotationTypes = $annotationTypes;
2340
+ }
2341
+ public function getAnnotationTypes() {
2342
+ return $this->annotationTypes;
2343
+ }
2344
+ public function setAnnotationsDataLink( $annotationsDataLink) {
2345
+ $this->annotationsDataLink = $annotationsDataLink;
2346
+ }
2347
+ public function getAnnotationsDataLink() {
2348
+ return $this->annotationsDataLink;
2349
+ }
2350
+ public function setAnnotationsLink( $annotationsLink) {
2351
+ $this->annotationsLink = $annotationsLink;
2352
+ }
2353
+ public function getAnnotationsLink() {
2354
+ return $this->annotationsLink;
2355
+ }
2356
+ public function setContentVersion( $contentVersion) {
2357
+ $this->contentVersion = $contentVersion;
2358
+ }
2359
+ public function getContentVersion() {
2360
+ return $this->contentVersion;
2361
+ }
2362
+ public function setDataCount( $dataCount) {
2363
+ $this->dataCount = $dataCount;
2364
+ }
2365
+ public function getDataCount() {
2366
+ return $this->dataCount;
2367
+ }
2368
+ public function setId( $id) {
2369
+ $this->id = $id;
2370
+ }
2371
+ public function getId() {
2372
+ return $this->id;
2373
+ }
2374
+ public function setKind( $kind) {
2375
+ $this->kind = $kind;
2376
+ }
2377
+ public function getKind() {
2378
+ return $this->kind;
2379
+ }
2380
+ public function setLayerId( $layerId) {
2381
+ $this->layerId = $layerId;
2382
+ }
2383
+ public function getLayerId() {
2384
+ return $this->layerId;
2385
+ }
2386
+ public function setSelfLink( $selfLink) {
2387
+ $this->selfLink = $selfLink;
2388
+ }
2389
+ public function getSelfLink() {
2390
+ return $this->selfLink;
2391
+ }
2392
+ public function setUpdated( $updated) {
2393
+ $this->updated = $updated;
2394
+ }
2395
+ public function getUpdated() {
2396
+ return $this->updated;
2397
+ }
2398
+ public function setVolumeAnnotationsVersion( $volumeAnnotationsVersion) {
2399
+ $this->volumeAnnotationsVersion = $volumeAnnotationsVersion;
2400
+ }
2401
+ public function getVolumeAnnotationsVersion() {
2402
+ return $this->volumeAnnotationsVersion;
2403
+ }
2404
+ public function setVolumeId( $volumeId) {
2405
+ $this->volumeId = $volumeId;
2406
+ }
2407
+ public function getVolumeId() {
2408
+ return $this->volumeId;
2409
+ }
2410
+ }
2411
+
2412
+ class Google_ReadingPosition extends Google_Model {
2413
+ public $epubCfiPosition;
2414
+ public $gbImagePosition;
2415
+ public $gbTextPosition;
2416
+ public $kind;
2417
+ public $pdfPosition;
2418
+ public $updated;
2419
+ public $volumeId;
2420
+ public function setEpubCfiPosition( $epubCfiPosition) {
2421
+ $this->epubCfiPosition = $epubCfiPosition;
2422
+ }
2423
+ public function getEpubCfiPosition() {
2424
+ return $this->epubCfiPosition;
2425
+ }
2426
+ public function setGbImagePosition( $gbImagePosition) {
2427
+ $this->gbImagePosition = $gbImagePosition;
2428
+ }
2429
+ public function getGbImagePosition() {
2430
+ return $this->gbImagePosition;
2431
+ }
2432
+ public function setGbTextPosition( $gbTextPosition) {
2433
+ $this->gbTextPosition = $gbTextPosition;
2434
+ }
2435
+ public function getGbTextPosition() {
2436
+ return $this->gbTextPosition;
2437
+ }
2438
+ public function setKind( $kind) {
2439
+ $this->kind = $kind;
2440
+ }
2441
+ public function getKind() {
2442
+ return $this->kind;
2443
+ }
2444
+ public function setPdfPosition( $pdfPosition) {
2445
+ $this->pdfPosition = $pdfPosition;
2446
+ }
2447
+ public function getPdfPosition() {
2448
+ return $this->pdfPosition;
2449
+ }
2450
+ public function setUpdated( $updated) {
2451
+ $this->updated = $updated;
2452
+ }
2453
+ public function getUpdated() {
2454
+ return $this->updated;
2455
+ }
2456
+ public function setVolumeId( $volumeId) {
2457
+ $this->volumeId = $volumeId;
2458
+ }
2459
+ public function getVolumeId() {
2460
+ return $this->volumeId;
2461
+ }
2462
+ }
2463
+
2464
+ class Google_RequestAccess extends Google_Model {
2465
+ protected $__concurrentAccessType = 'Google_ConcurrentAccessRestriction';
2466
+ protected $__concurrentAccessDataType = '';
2467
+ public $concurrentAccess;
2468
+ protected $__downloadAccessType = 'Google_DownloadAccessRestriction';
2469
+ protected $__downloadAccessDataType = '';
2470
+ public $downloadAccess;
2471
+ public $kind;
2472
+ public function setConcurrentAccess(Google_ConcurrentAccessRestriction $concurrentAccess) {
2473
+ $this->concurrentAccess = $concurrentAccess;
2474
+ }
2475
+ public function getConcurrentAccess() {
2476
+ return $this->concurrentAccess;
2477
+ }
2478
+ public function setDownloadAccess(Google_DownloadAccessRestriction $downloadAccess) {
2479
+ $this->downloadAccess = $downloadAccess;
2480
+ }
2481
+ public function getDownloadAccess() {
2482
+ return $this->downloadAccess;
2483
+ }
2484
+ public function setKind( $kind) {
2485
+ $this->kind = $kind;
2486
+ }
2487
+ public function getKind() {
2488
+ return $this->kind;
2489
+ }
2490
+ }
2491
+
2492
+ class Google_Review extends Google_Model {
2493
+ protected $__authorType = 'Google_ReviewAuthor';
2494
+ protected $__authorDataType = '';
2495
+ public $author;
2496
+ public $content;
2497
+ public $date;
2498
+ public $fullTextUrl;
2499
+ public $kind;
2500
+ public $rating;
2501
+ protected $__sourceType = 'Google_ReviewSource';
2502
+ protected $__sourceDataType = '';
2503
+ public $source;
2504
+ public $title;
2505
+ public $type;
2506
+ public $volumeId;
2507
+ public function setAuthor(Google_ReviewAuthor $author) {
2508
+ $this->author = $author;
2509
+ }
2510
+ public function getAuthor() {
2511
+ return $this->author;
2512
+ }
2513
+ public function setContent( $content) {
2514
+ $this->content = $content;
2515
+ }
2516
+ public function getContent() {
2517
+ return $this->content;
2518
+ }
2519
+ public function setDate( $date) {
2520
+ $this->date = $date;
2521
+ }
2522
+ public function getDate() {
2523
+ return $this->date;
2524
+ }
2525
+ public function setFullTextUrl( $fullTextUrl) {
2526
+ $this->fullTextUrl = $fullTextUrl;
2527
+ }
2528
+ public function getFullTextUrl() {
2529
+ return $this->fullTextUrl;
2530
+ }
2531
+ public function setKind( $kind) {
2532
+ $this->kind = $kind;
2533
+ }
2534
+ public function getKind() {
2535
+ return $this->kind;
2536
+ }
2537
+ public function setRating( $rating) {
2538
+ $this->rating = $rating;
2539
+ }
2540
+ public function getRating() {
2541
+ return $this->rating;
2542
+ }
2543
+ public function setSource(Google_ReviewSource $source) {
2544
+ $this->source = $source;
2545
+ }
2546
+ public function getSource() {
2547
+ return $this->source;
2548
+ }
2549
+ public function setTitle( $title) {
2550
+ $this->title = $title;
2551
+ }
2552
+ public function getTitle() {
2553
+ return $this->title;
2554
+ }
2555
+ public function setType( $type) {
2556
+ $this->type = $type;
2557
+ }
2558
+ public function getType() {
2559
+ return $this->type;
2560
+ }
2561
+ public function setVolumeId( $volumeId) {
2562
+ $this->volumeId = $volumeId;
2563
+ }
2564
+ public function getVolumeId() {
2565
+ return $this->volumeId;
2566
+ }
2567
+ }
2568
+
2569
+ class Google_ReviewAuthor extends Google_Model {
2570
+ public $displayName;
2571
+ public function setDisplayName( $displayName) {
2572
+ $this->displayName = $displayName;
2573
+ }
2574
+ public function getDisplayName() {
2575
+ return $this->displayName;
2576
+ }
2577
+ }
2578
+
2579
+ class Google_ReviewSource extends Google_Model {
2580
+ public $description;
2581
+ public $extraDescription;
2582
+ public $url;
2583
+ public function setDescription( $description) {
2584
+ $this->description = $description;
2585
+ }
2586
+ public function getDescription() {
2587
+ return $this->description;
2588
+ }
2589
+ public function setExtraDescription( $extraDescription) {
2590
+ $this->extraDescription = $extraDescription;
2591
+ }
2592
+ public function getExtraDescription() {
2593
+ return $this->extraDescription;
2594
+ }
2595
+ public function setUrl( $url) {
2596
+ $this->url = $url;
2597
+ }
2598
+ public function getUrl() {
2599
+ return $this->url;
2600
+ }
2601
+ }
2602
+
2603
+ class Google_Volume extends Google_Model {
2604
+ protected $__accessInfoType = 'Google_VolumeAccessInfo';
2605
+ protected $__accessInfoDataType = '';
2606
+ public $accessInfo;
2607
+ public $etag;
2608
+ public $id;
2609
+ public $kind;
2610
+ protected $__layerInfoType = 'Google_VolumeLayerInfo';
2611
+ protected $__layerInfoDataType = '';
2612
+ public $layerInfo;
2613
+ protected $__recommendedInfoType = 'Google_VolumeRecommendedInfo';
2614
+ protected $__recommendedInfoDataType = '';
2615
+ public $recommendedInfo;
2616
+ protected $__saleInfoType = 'Google_VolumeSaleInfo';
2617
+ protected $__saleInfoDataType = '';
2618
+ public $saleInfo;
2619
+ protected $__searchInfoType = 'Google_VolumeSearchInfo';
2620
+ protected $__searchInfoDataType = '';
2621
+ public $searchInfo;
2622
+ public $selfLink;
2623
+ protected $__userInfoType = 'Google_VolumeUserInfo';
2624
+ protected $__userInfoDataType = '';
2625
+ public $userInfo;
2626
+ protected $__volumeInfoType = 'Google_VolumeVolumeInfo';
2627
+ protected $__volumeInfoDataType = '';
2628
+ public $volumeInfo;
2629
+ public function setAccessInfo(Google_VolumeAccessInfo $accessInfo) {
2630
+ $this->accessInfo = $accessInfo;
2631
+ }
2632
+ public function getAccessInfo() {
2633
+ return $this->accessInfo;
2634
+ }
2635
+ public function setEtag( $etag) {
2636
+ $this->etag = $etag;
2637
+ }
2638
+ public function getEtag() {
2639
+ return $this->etag;
2640
+ }
2641
+ public function setId( $id) {
2642
+ $this->id = $id;
2643
+ }
2644
+ public function getId() {
2645
+ return $this->id;
2646
+ }
2647
+ public function setKind( $kind) {
2648
+ $this->kind = $kind;
2649
+ }
2650
+ public function getKind() {
2651
+ return $this->kind;
2652
+ }
2653
+ public function setLayerInfo(Google_VolumeLayerInfo $layerInfo) {
2654
+ $this->layerInfo = $layerInfo;
2655
+ }
2656
+ public function getLayerInfo() {
2657
+ return $this->layerInfo;
2658
+ }
2659
+ public function setRecommendedInfo(Google_VolumeRecommendedInfo $recommendedInfo) {
2660
+ $this->recommendedInfo = $recommendedInfo;
2661
+ }
2662
+ public function getRecommendedInfo() {
2663
+ return $this->recommendedInfo;
2664
+ }
2665
+ public function setSaleInfo(Google_VolumeSaleInfo $saleInfo) {
2666
+ $this->saleInfo = $saleInfo;
2667
+ }
2668
+ public function getSaleInfo() {
2669
+ return $this->saleInfo;
2670
+ }
2671
+ public function setSearchInfo(Google_VolumeSearchInfo $searchInfo) {
2672
+ $this->searchInfo = $searchInfo;
2673
+ }
2674
+ public function getSearchInfo() {
2675
+ return $this->searchInfo;
2676
+ }
2677
+ public function setSelfLink( $selfLink) {
2678
+ $this->selfLink = $selfLink;
2679
+ }
2680
+ public function getSelfLink() {
2681
+ return $this->selfLink;
2682
+ }
2683
+ public function setUserInfo(Google_VolumeUserInfo $userInfo) {
2684
+ $this->userInfo = $userInfo;
2685
+ }
2686
+ public function getUserInfo() {
2687
+ return $this->userInfo;
2688
+ }
2689
+ public function setVolumeInfo(Google_VolumeVolumeInfo $volumeInfo) {
2690
+ $this->volumeInfo = $volumeInfo;
2691
+ }
2692
+ public function getVolumeInfo() {
2693
+ return $this->volumeInfo;
2694
+ }
2695
+ }
2696
+
2697
+ class Google_VolumeAccessInfo extends Google_Model {
2698
+ public $accessViewStatus;
2699
+ public $country;
2700
+ protected $__downloadAccessType = 'Google_DownloadAccessRestriction';
2701
+ protected $__downloadAccessDataType = '';
2702
+ public $downloadAccess;
2703
+ public $embeddable;
2704
+ protected $__epubType = 'Google_VolumeAccessInfoEpub';
2705
+ protected $__epubDataType = '';
2706
+ public $epub;
2707
+ protected $__pdfType = 'Google_VolumeAccessInfoPdf';
2708
+ protected $__pdfDataType = '';
2709
+ public $pdf;
2710
+ public $publicDomain;
2711
+ public $textToSpeechPermission;
2712
+ public $viewOrderUrl;
2713
+ public $viewability;
2714
+ public $webReaderLink;
2715
+ public function setAccessViewStatus( $accessViewStatus) {
2716
+ $this->accessViewStatus = $accessViewStatus;
2717
+ }
2718
+ public function getAccessViewStatus() {
2719
+ return $this->accessViewStatus;
2720
+ }
2721
+ public function setCountry( $country) {
2722
+ $this->country = $country;
2723
+ }
2724
+ public function getCountry() {
2725
+ return $this->country;
2726
+ }
2727
+ public function setDownloadAccess(Google_DownloadAccessRestriction $downloadAccess) {
2728
+ $this->downloadAccess = $downloadAccess;
2729
+ }
2730
+ public function getDownloadAccess() {
2731
+ return $this->downloadAccess;
2732
+ }
2733
+ public function setEmbeddable( $embeddable) {
2734
+ $this->embeddable = $embeddable;
2735
+ }
2736
+ public function getEmbeddable() {
2737
+ return $this->embeddable;
2738
+ }
2739
+ public function setEpub(Google_VolumeAccessInfoEpub $epub) {
2740
+ $this->epub = $epub;
2741
+ }
2742
+ public function getEpub() {
2743
+ return $this->epub;
2744
+ }
2745
+ public function setPdf(Google_VolumeAccessInfoPdf $pdf) {
2746
+ $this->pdf = $pdf;
2747
+ }
2748
+ public function getPdf() {
2749
+ return $this->pdf;
2750
+ }
2751
+ public function setPublicDomain( $publicDomain) {
2752
+ $this->publicDomain = $publicDomain;
2753
+ }
2754
+ public function getPublicDomain() {
2755
+ return $this->publicDomain;
2756
+ }
2757
+ public function setTextToSpeechPermission( $textToSpeechPermission) {
2758
+ $this->textToSpeechPermission = $textToSpeechPermission;
2759
+ }
2760
+ public function getTextToSpeechPermission() {
2761
+ return $this->textToSpeechPermission;
2762
+ }
2763
+ public function setViewOrderUrl( $viewOrderUrl) {
2764
+ $this->viewOrderUrl = $viewOrderUrl;
2765
+ }
2766
+ public function getViewOrderUrl() {
2767
+ return $this->viewOrderUrl;
2768
+ }
2769
+ public function setViewability( $viewability) {
2770
+ $this->viewability = $viewability;
2771
+ }
2772
+ public function getViewability() {
2773
+ return $this->viewability;
2774
+ }
2775
+ public function setWebReaderLink( $webReaderLink) {
2776
+ $this->webReaderLink = $webReaderLink;
2777
+ }
2778
+ public function getWebReaderLink() {
2779
+ return $this->webReaderLink;
2780
+ }
2781
+ }
2782
+
2783
+ class Google_VolumeAccessInfoEpub extends Google_Model {
2784
+ public $acsTokenLink;
2785
+ public $downloadLink;
2786
+ public $isAvailable;
2787
+ public function setAcsTokenLink( $acsTokenLink) {
2788
+ $this->acsTokenLink = $acsTokenLink;
2789
+ }
2790
+ public function getAcsTokenLink() {
2791
+ return $this->acsTokenLink;
2792
+ }
2793
+ public function setDownloadLink( $downloadLink) {
2794
+ $this->downloadLink = $downloadLink;
2795
+ }
2796
+ public function getDownloadLink() {
2797
+ return $this->downloadLink;
2798
+ }
2799
+ public function setIsAvailable( $isAvailable) {
2800
+ $this->isAvailable = $isAvailable;
2801
+ }
2802
+ public function getIsAvailable() {
2803
+ return $this->isAvailable;
2804
+ }
2805
+ }
2806
+
2807
+ class Google_VolumeAccessInfoPdf extends Google_Model {
2808
+ public $acsTokenLink;
2809
+ public $downloadLink;
2810
+ public $isAvailable;
2811
+ public function setAcsTokenLink( $acsTokenLink) {
2812
+ $this->acsTokenLink = $acsTokenLink;
2813
+ }
2814
+ public function getAcsTokenLink() {
2815
+ return $this->acsTokenLink;
2816
+ }
2817
+ public function setDownloadLink( $downloadLink) {
2818
+ $this->downloadLink = $downloadLink;
2819
+ }
2820
+ public function getDownloadLink() {
2821
+ return $this->downloadLink;
2822
+ }
2823
+ public function setIsAvailable( $isAvailable) {
2824
+ $this->isAvailable = $isAvailable;
2825
+ }
2826
+ public function getIsAvailable() {
2827
+ return $this->isAvailable;
2828
+ }
2829
+ }
2830
+
2831
+ class Google_VolumeLayerInfo extends Google_Model {
2832
+ protected $__layersType = 'Google_VolumeLayerInfoLayers';
2833
+ protected $__layersDataType = 'array';
2834
+ public $layers;
2835
+ public function setLayers(/* array(Google_VolumeLayerInfoLayers) */ $layers) {
2836
+ $this->assertIsArray($layers, 'Google_VolumeLayerInfoLayers', __METHOD__);
2837
+ $this->layers = $layers;
2838
+ }
2839
+ public function getLayers() {
2840
+ return $this->layers;
2841
+ }
2842
+ }
2843
+
2844
+ class Google_VolumeLayerInfoLayers extends Google_Model {
2845
+ public $layerId;
2846
+ public $volumeAnnotationsVersion;
2847
+ public function setLayerId( $layerId) {
2848
+ $this->layerId = $layerId;
2849
+ }
2850
+ public function getLayerId() {
2851
+ return $this->layerId;
2852
+ }
2853
+ public function setVolumeAnnotationsVersion( $volumeAnnotationsVersion) {
2854
+ $this->volumeAnnotationsVersion = $volumeAnnotationsVersion;
2855
+ }
2856
+ public function getVolumeAnnotationsVersion() {
2857
+ return $this->volumeAnnotationsVersion;
2858
+ }
2859
+ }
2860
+
2861
+ class Google_VolumeRecommendedInfo extends Google_Model {
2862
+ public $explanation;
2863
+ public function setExplanation( $explanation) {
2864
+ $this->explanation = $explanation;
2865
+ }
2866
+ public function getExplanation() {
2867
+ return $this->explanation;
2868
+ }
2869
+ }
2870
+
2871
+ class Google_VolumeSaleInfo extends Google_Model {
2872
+ public $buyLink;
2873
+ public $country;
2874
+ public $isEbook;
2875
+ protected $__listPriceType = 'Google_VolumeSaleInfoListPrice';
2876
+ protected $__listPriceDataType = '';
2877
+ public $listPrice;
2878
+ public $onSaleDate;
2879
+ protected $__retailPriceType = 'Google_VolumeSaleInfoRetailPrice';
2880
+ protected $__retailPriceDataType = '';
2881
+ public $retailPrice;
2882
+ public $saleability;
2883
+ public function setBuyLink( $buyLink) {
2884
+ $this->buyLink = $buyLink;
2885
+ }
2886
+ public function getBuyLink() {
2887
+ return $this->buyLink;
2888
+ }
2889
+ public function setCountry( $country) {
2890
+ $this->country = $country;
2891
+ }
2892
+ public function getCountry() {
2893
+ return $this->country;
2894
+ }
2895
+ public function setIsEbook( $isEbook) {
2896
+ $this->isEbook = $isEbook;
2897
+ }
2898
+ public function getIsEbook() {
2899
+ return $this->isEbook;
2900
+ }
2901
+ public function setListPrice(Google_VolumeSaleInfoListPrice $listPrice) {
2902
+ $this->listPrice = $listPrice;
2903
+ }
2904
+ public function getListPrice() {
2905
+ return $this->listPrice;
2906
+ }
2907
+ public function setOnSaleDate( $onSaleDate) {
2908
+ $this->onSaleDate = $onSaleDate;
2909
+ }
2910
+ public function getOnSaleDate() {
2911
+ return $this->onSaleDate;
2912
+ }
2913
+ public function setRetailPrice(Google_VolumeSaleInfoRetailPrice $retailPrice) {
2914
+ $this->retailPrice = $retailPrice;
2915
+ }
2916
+ public function getRetailPrice() {
2917
+ return $this->retailPrice;
2918
+ }
2919
+ public function setSaleability( $saleability) {
2920
+ $this->saleability = $saleability;
2921
+ }
2922
+ public function getSaleability() {
2923
+ return $this->saleability;
2924
+ }
2925
+ }
2926
+
2927
+ class Google_VolumeSaleInfoListPrice extends Google_Model {
2928
+ public $amount;
2929
+ public $currencyCode;
2930
+ public function setAmount( $amount) {
2931
+ $this->amount = $amount;
2932
+ }
2933
+ public function getAmount() {
2934
+ return $this->amount;
2935
+ }
2936
+ public function setCurrencyCode( $currencyCode) {
2937
+ $this->currencyCode = $currencyCode;
2938
+ }
2939
+ public function getCurrencyCode() {
2940
+ return $this->currencyCode;
2941
+ }
2942
+ }
2943
+
2944
+ class Google_VolumeSaleInfoRetailPrice extends Google_Model {
2945
+ public $amount;
2946
+ public $currencyCode;
2947
+ public function setAmount( $amount) {
2948
+ $this->amount = $amount;
2949
+ }
2950
+ public function getAmount() {
2951
+ return $this->amount;
2952
+ }
2953
+ public function setCurrencyCode( $currencyCode) {
2954
+ $this->currencyCode = $currencyCode;
2955
+ }
2956
+ public function getCurrencyCode() {
2957
+ return $this->currencyCode;
2958
+ }
2959
+ }
2960
+
2961
+ class Google_VolumeSearchInfo extends Google_Model {
2962
+ public $textSnippet;
2963
+ public function setTextSnippet( $textSnippet) {
2964
+ $this->textSnippet = $textSnippet;
2965
+ }
2966
+ public function getTextSnippet() {
2967
+ return $this->textSnippet;
2968
+ }
2969
+ }
2970
+
2971
+ class Google_VolumeUserInfo extends Google_Model {
2972
+ public $isInMyBooks;
2973
+ public $isPreordered;
2974
+ public $isPurchased;
2975
+ public $isUploaded;
2976
+ protected $__readingPositionType = 'Google_ReadingPosition';
2977
+ protected $__readingPositionDataType = '';
2978
+ public $readingPosition;
2979
+ protected $__reviewType = 'Google_Review';
2980
+ protected $__reviewDataType = '';
2981
+ public $review;
2982
+ public $updated;
2983
+ protected $__userUploadedVolumeInfoType = 'Google_VolumeUserInfoUserUploadedVolumeInfo';
2984
+ protected $__userUploadedVolumeInfoDataType = '';
2985
+ public $userUploadedVolumeInfo;
2986
+ public function setIsInMyBooks( $isInMyBooks) {
2987
+ $this->isInMyBooks = $isInMyBooks;
2988
+ }
2989
+ public function getIsInMyBooks() {
2990
+ return $this->isInMyBooks;
2991
+ }
2992
+ public function setIsPreordered( $isPreordered) {
2993
+ $this->isPreordered = $isPreordered;
2994
+ }
2995
+ public function getIsPreordered() {
2996
+ return $this->isPreordered;
2997
+ }
2998
+ public function setIsPurchased( $isPurchased) {
2999
+ $this->isPurchased = $isPurchased;
3000
+ }
3001
+ public function getIsPurchased() {
3002
+ return $this->isPurchased;
3003
+ }
3004
+ public function setIsUploaded( $isUploaded) {
3005
+ $this->isUploaded = $isUploaded;
3006
+ }
3007
+ public function getIsUploaded() {
3008
+ return $this->isUploaded;
3009
+ }
3010
+ public function setReadingPosition(Google_ReadingPosition $readingPosition) {
3011
+ $this->readingPosition = $readingPosition;
3012
+ }
3013
+ public function getReadingPosition() {
3014
+ return $this->readingPosition;
3015
+ }
3016
+ public function setReview(Google_Review $review) {
3017
+ $this->review = $review;
3018
+ }
3019
+ public function getReview() {
3020
+ return $this->review;
3021
+ }
3022
+ public function setUpdated( $updated) {
3023
+ $this->updated = $updated;
3024
+ }
3025
+ public function getUpdated() {
3026
+ return $this->updated;
3027
+ }
3028
+ public function setUserUploadedVolumeInfo(Google_VolumeUserInfoUserUploadedVolumeInfo $userUploadedVolumeInfo) {
3029
+ $this->userUploadedVolumeInfo = $userUploadedVolumeInfo;
3030
+ }
3031
+ public function getUserUploadedVolumeInfo() {
3032
+ return $this->userUploadedVolumeInfo;
3033
+ }
3034
+ }
3035
+
3036
+ class Google_VolumeUserInfoUserUploadedVolumeInfo extends Google_Model {
3037
+ public $processingState;
3038
+ public function setProcessingState( $processingState) {
3039
+ $this->processingState = $processingState;
3040
+ }
3041
+ public function getProcessingState() {
3042
+ return $this->processingState;
3043
+ }
3044
+ }
3045
+
3046
+ class Google_VolumeVolumeInfo extends Google_Model {
3047
+ public $authors;
3048
+ public $averageRating;
3049
+ public $canonicalVolumeLink;
3050
+ public $categories;
3051
+ public $contentVersion;
3052
+ public $description;
3053
+ protected $__dimensionsType = 'Google_VolumeVolumeInfoDimensions';
3054
+ protected $__dimensionsDataType = '';
3055
+ public $dimensions;
3056
+ protected $__imageLinksType = 'Google_VolumeVolumeInfoImageLinks';
3057
+ protected $__imageLinksDataType = '';
3058
+ public $imageLinks;
3059
+ protected $__industryIdentifiersType = 'Google_VolumeVolumeInfoIndustryIdentifiers';
3060
+ protected $__industryIdentifiersDataType = 'array';
3061
+ public $industryIdentifiers;
3062
+ public $infoLink;
3063
+ public $language;
3064
+ public $mainCategory;
3065
+ public $pageCount;
3066
+ public $previewLink;
3067
+ public $printType;
3068
+ public $publishedDate;
3069
+ public $publisher;
3070
+ public $ratingsCount;
3071
+ public $subtitle;
3072
+ public $title;
3073
+ public function setAuthors(/* array(Google_string) */ $authors) {
3074
+ $this->assertIsArray($authors, 'Google_string', __METHOD__);
3075
+ $this->authors = $authors;
3076
+ }
3077
+ public function getAuthors() {
3078
+ return $this->authors;
3079
+ }
3080
+ public function setAverageRating( $averageRating) {
3081
+ $this->averageRating = $averageRating;
3082
+ }
3083
+ public function getAverageRating() {
3084
+ return $this->averageRating;
3085
+ }
3086
+ public function setCanonicalVolumeLink( $canonicalVolumeLink) {
3087
+ $this->canonicalVolumeLink = $canonicalVolumeLink;
3088
+ }
3089
+ public function getCanonicalVolumeLink() {
3090
+ return $this->canonicalVolumeLink;
3091
+ }
3092
+ public function setCategories(/* array(Google_string) */ $categories) {
3093
+ $this->assertIsArray($categories, 'Google_string', __METHOD__);
3094
+ $this->categories = $categories;
3095
+ }
3096
+ public function getCategories() {
3097
+ return $this->categories;
3098
+ }
3099
+ public function setContentVersion( $contentVersion) {
3100
+ $this->contentVersion = $contentVersion;
3101
+ }
3102
+ public function getContentVersion() {
3103
+ return $this->contentVersion;
3104
+ }
3105
+ public function setDescription( $description) {
3106
+ $this->description = $description;
3107
+ }
3108
+ public function getDescription() {
3109
+ return $this->description;
3110
+ }
3111
+ public function setDimensions(Google_VolumeVolumeInfoDimensions $dimensions) {
3112
+ $this->dimensions = $dimensions;
3113
+ }
3114
+ public function getDimensions() {
3115
+ return $this->dimensions;
3116
+ }
3117
+ public function setImageLinks(Google_VolumeVolumeInfoImageLinks $imageLinks) {
3118
+ $this->imageLinks = $imageLinks;
3119
+ }
3120
+ public function getImageLinks() {
3121
+ return $this->imageLinks;
3122
+ }
3123
+ public function setIndustryIdentifiers(/* array(Google_VolumeVolumeInfoIndustryIdentifiers) */ $industryIdentifiers) {
3124
+ $this->assertIsArray($industryIdentifiers, 'Google_VolumeVolumeInfoIndustryIdentifiers', __METHOD__);
3125
+ $this->industryIdentifiers = $industryIdentifiers;
3126
+ }
3127
+ public function getIndustryIdentifiers() {
3128
+ return $this->industryIdentifiers;
3129
+ }
3130
+ public function setInfoLink( $infoLink) {
3131
+ $this->infoLink = $infoLink;
3132
+ }
3133
+ public function getInfoLink() {
3134
+ return $this->infoLink;
3135
+ }
3136
+ public function setLanguage( $language) {
3137
+ $this->language = $language;
3138
+ }
3139
+ public function getLanguage() {
3140
+ return $this->language;
3141
+ }
3142
+ public function setMainCategory( $mainCategory) {
3143
+ $this->mainCategory = $mainCategory;
3144
+ }
3145
+ public function getMainCategory() {
3146
+ return $this->mainCategory;
3147
+ }
3148
+ public function setPageCount( $pageCount) {
3149
+ $this->pageCount = $pageCount;
3150
+ }
3151
+ public function getPageCount() {
3152
+ return $this->pageCount;
3153
+ }
3154
+ public function setPreviewLink( $previewLink) {
3155
+ $this->previewLink = $previewLink;
3156
+ }
3157
+ public function getPreviewLink() {
3158
+ return $this->previewLink;
3159
+ }
3160
+ public function setPrintType( $printType) {
3161
+ $this->printType = $printType;
3162
+ }
3163
+ public function getPrintType() {
3164
+ return $this->printType;
3165
+ }
3166
+ public function setPublishedDate( $publishedDate) {
3167
+ $this->publishedDate = $publishedDate;
3168
+ }
3169
+ public function getPublishedDate() {
3170
+ return $this->publishedDate;
3171
+ }
3172
+ public function setPublisher( $publisher) {
3173
+ $this->publisher = $publisher;
3174
+ }
3175
+ public function getPublisher() {
3176
+ return $this->publisher;
3177
+ }
3178
+ public function setRatingsCount( $ratingsCount) {
3179
+ $this->ratingsCount = $ratingsCount;
3180
+ }
3181
+ public function getRatingsCount() {
3182
+ return $this->ratingsCount;
3183
+ }
3184
+ public function setSubtitle( $subtitle) {
3185
+ $this->subtitle = $subtitle;
3186
+ }
3187
+ public function getSubtitle() {
3188
+ return $this->subtitle;
3189
+ }
3190
+ public function setTitle( $title) {
3191
+ $this->title = $title;
3192
+ }
3193
+ public function getTitle() {
3194
+ return $this->title;
3195
+ }
3196
+ }
3197
+
3198
+ class Google_VolumeVolumeInfoDimensions extends Google_Model {
3199
+ public $height;
3200
+ public $thickness;
3201
+ public $width;
3202
+ public function setHeight( $height) {
3203
+ $this->height = $height;
3204
+ }
3205
+ public function getHeight() {
3206
+ return $this->height;
3207
+ }
3208
+ public function setThickness( $thickness) {
3209
+ $this->thickness = $thickness;
3210
+ }
3211
+ public function getThickness() {
3212
+ return $this->thickness;
3213
+ }
3214
+ public function setWidth( $width) {
3215
+ $this->width = $width;
3216
+ }
3217
+ public function getWidth() {
3218
+ return $this->width;
3219
+ }
3220
+ }
3221
+
3222
+ class Google_VolumeVolumeInfoImageLinks extends Google_Model {
3223
+ public $extraLarge;
3224
+ public $large;
3225
+ public $medium;
3226
+ public $small;
3227
+ public $smallThumbnail;
3228
+ public $thumbnail;
3229
+ public function setExtraLarge( $extraLarge) {
3230
+ $this->extraLarge = $extraLarge;
3231
+ }
3232
+ public function getExtraLarge() {
3233
+ return $this->extraLarge;
3234
+ }
3235
+ public function setLarge( $large) {
3236
+ $this->large = $large;
3237
+ }
3238
+ public function getLarge() {
3239
+ return $this->large;
3240
+ }
3241
+ public function setMedium( $medium) {
3242
+ $this->medium = $medium;
3243
+ }
3244
+ public function getMedium() {
3245
+ return $this->medium;
3246
+ }
3247
+ public function setSmall( $small) {
3248
+ $this->small = $small;
3249
+ }
3250
+ public function getSmall() {
3251
+ return $this->small;
3252
+ }
3253
+ public function setSmallThumbnail( $smallThumbnail) {
3254
+ $this->smallThumbnail = $smallThumbnail;
3255
+ }
3256
+ public function getSmallThumbnail() {
3257
+ return $this->smallThumbnail;
3258
+ }
3259
+ public function setThumbnail( $thumbnail) {
3260
+ $this->thumbnail = $thumbnail;
3261
+ }
3262
+ public function getThumbnail() {
3263
+ return $this->thumbnail;
3264
+ }
3265
+ }
3266
+
3267
+ class Google_VolumeVolumeInfoIndustryIdentifiers extends Google_Model {
3268
+ public $identifier;
3269
+ public $type;
3270
+ public function setIdentifier( $identifier) {
3271
+ $this->identifier = $identifier;
3272
+ }
3273
+ public function getIdentifier() {
3274
+ return $this->identifier;
3275
+ }
3276
+ public function setType( $type) {
3277
+ $this->type = $type;
3278
+ }
3279
+ public function getType() {
3280
+ return $this->type;
3281
+ }
3282
+ }
3283
+
3284
+ class Google_Volumeannotation extends Google_Model {
3285
+ public $annotationDataId;
3286
+ public $annotationDataLink;
3287
+ public $annotationType;
3288
+ protected $__contentRangesType = 'Google_VolumeannotationContentRanges';
3289
+ protected $__contentRangesDataType = '';
3290
+ public $contentRanges;
3291
+ public $data;
3292
+ public $deleted;
3293
+ public $id;
3294
+ public $kind;
3295
+ public $layerId;
3296
+ public $pageIds;
3297
+ public $selectedText;
3298
+ public $selfLink;
3299
+ public $updated;
3300
+ public $volumeId;
3301
+ public function setAnnotationDataId( $annotationDataId) {
3302
+ $this->annotationDataId = $annotationDataId;
3303
+ }
3304
+ public function getAnnotationDataId() {
3305
+ return $this->annotationDataId;
3306
+ }
3307
+ public function setAnnotationDataLink( $annotationDataLink) {
3308
+ $this->annotationDataLink = $annotationDataLink;
3309
+ }
3310
+ public function getAnnotationDataLink() {
3311
+ return $this->annotationDataLink;
3312
+ }
3313
+ public function setAnnotationType( $annotationType) {
3314
+ $this->annotationType = $annotationType;
3315
+ }
3316
+ public function getAnnotationType() {
3317
+ return $this->annotationType;
3318
+ }
3319
+ public function setContentRanges(Google_VolumeannotationContentRanges $contentRanges) {
3320
+ $this->contentRanges = $contentRanges;
3321
+ }
3322
+ public function getContentRanges() {
3323
+ return $this->contentRanges;
3324
+ }
3325
+ public function setData( $data) {
3326
+ $this->data = $data;
3327
+ }
3328
+ public function getData() {
3329
+ return $this->data;
3330
+ }
3331
+ public function setDeleted( $deleted) {
3332
+ $this->deleted = $deleted;
3333
+ }
3334
+ public function getDeleted() {
3335
+ return $this->deleted;
3336
+ }
3337
+ public function setId( $id) {
3338
+ $this->id = $id;
3339
+ }
3340
+ public function getId() {
3341
+ return $this->id;
3342
+ }
3343
+ public function setKind( $kind) {
3344
+ $this->kind = $kind;
3345
+ }
3346
+ public function getKind() {
3347
+ return $this->kind;
3348
+ }
3349
+ public function setLayerId( $layerId) {
3350
+ $this->layerId = $layerId;
3351
+ }
3352
+ public function getLayerId() {
3353
+ return $this->layerId;
3354
+ }
3355
+ public function setPageIds(/* array(Google_string) */ $pageIds) {
3356
+ $this->assertIsArray($pageIds, 'Google_string', __METHOD__);
3357
+ $this->pageIds = $pageIds;
3358
+ }
3359
+ public function getPageIds() {
3360
+ return $this->pageIds;
3361
+ }
3362
+ public function setSelectedText( $selectedText) {
3363
+ $this->selectedText = $selectedText;
3364
+ }
3365
+ public function getSelectedText() {
3366
+ return $this->selectedText;
3367
+ }
3368
+ public function setSelfLink( $selfLink) {
3369
+ $this->selfLink = $selfLink;
3370
+ }
3371
+ public function getSelfLink() {
3372
+ return $this->selfLink;
3373
+ }
3374
+ public function setUpdated( $updated) {
3375
+ $this->updated = $updated;
3376
+ }
3377
+ public function getUpdated() {
3378
+ return $this->updated;
3379
+ }
3380
+ public function setVolumeId( $volumeId) {
3381
+ $this->volumeId = $volumeId;
3382
+ }
3383
+ public function getVolumeId() {
3384
+ return $this->volumeId;
3385
+ }
3386
+ }
3387
+
3388
+ class Google_VolumeannotationContentRanges extends Google_Model {
3389
+ protected $__cfiRangeType = 'Google_BooksAnnotationsRange';
3390
+ protected $__cfiRangeDataType = '';
3391
+ public $cfiRange;
3392
+ public $contentVersion;
3393
+ protected $__gbImageRangeType = 'Google_BooksAnnotationsRange';
3394
+ protected $__gbImageRangeDataType = '';
3395
+ public $gbImageRange;
3396
+ protected $__gbTextRangeType = 'Google_BooksAnnotationsRange';
3397
+ protected $__gbTextRangeDataType = '';
3398
+ public $gbTextRange;
3399
+ public function setCfiRange(Google_BooksAnnotationsRange $cfiRange) {
3400
+ $this->cfiRange = $cfiRange;
3401
+ }
3402
+ public function getCfiRange() {
3403
+ return $this->cfiRange;
3404
+ }
3405
+ public function setContentVersion( $contentVersion) {
3406
+ $this->contentVersion = $contentVersion;
3407
+ }
3408
+ public function getContentVersion() {
3409
+ return $this->contentVersion;
3410
+ }
3411
+ public function setGbImageRange(Google_BooksAnnotationsRange $gbImageRange) {
3412
+ $this->gbImageRange = $gbImageRange;
3413
+ }
3414
+ public function getGbImageRange() {
3415
+ return $this->gbImageRange;
3416
+ }
3417
+ public function setGbTextRange(Google_BooksAnnotationsRange $gbTextRange) {
3418
+ $this->gbTextRange = $gbTextRange;
3419
+ }
3420
+ public function getGbTextRange() {
3421
+ return $this->gbTextRange;
3422
+ }
3423
+ }
3424
+
3425
+ class Google_Volumeannotations extends Google_Model {
3426
+ protected $__itemsType = 'Google_Volumeannotation';
3427
+ protected $__itemsDataType = 'array';
3428
+ public $items;
3429
+ public $kind;
3430
+ public $nextPageToken;
3431
+ public $totalItems;
3432
+ public $version;
3433
+ public function setItems(/* array(Google_Volumeannotation) */ $items) {
3434
+ $this->assertIsArray($items, 'Google_Volumeannotation', __METHOD__);
3435
+ $this->items = $items;
3436
+ }
3437
+ public function getItems() {
3438
+ return $this->items;
3439
+ }
3440
+ public function setKind( $kind) {
3441
+ $this->kind = $kind;
3442
+ }
3443
+ public function getKind() {
3444
+ return $this->kind;
3445
+ }
3446
+ public function setNextPageToken( $nextPageToken) {
3447
+ $this->nextPageToken = $nextPageToken;
3448
+ }
3449
+ public function getNextPageToken() {
3450
+ return $this->nextPageToken;
3451
+ }
3452
+ public function setTotalItems( $totalItems) {
3453
+ $this->totalItems = $totalItems;
3454
+ }
3455
+ public function getTotalItems() {
3456
+ return $this->totalItems;
3457
+ }
3458
+ public function setVersion( $version) {
3459
+ $this->version = $version;
3460
+ }
3461
+ public function getVersion() {
3462
+ return $this->version;
3463
+ }
3464
+ }
3465
+
3466
+ class Google_Volumes extends Google_Model {
3467
+ protected $__itemsType = 'Google_Volume';
3468
+ protected $__itemsDataType = 'array';
3469
+ public $items;
3470
+ public $kind;
3471
+ public $totalItems;
3472
+ public function setItems(/* array(Google_Volume) */ $items) {
3473
+ $this->assertIsArray($items, 'Google_Volume', __METHOD__);
3474
+ $this->items = $items;
3475
+ }
3476
+ public function getItems() {
3477
+ return $this->items;
3478
+ }
3479
+ public function setKind( $kind) {
3480
+ $this->kind = $kind;
3481
+ }
3482
+ public function getKind() {
3483
+ return $this->kind;
3484
+ }
3485
+ public function setTotalItems( $totalItems) {
3486
+ $this->totalItems = $totalItems;
3487
+ }
3488
+ public function getTotalItems() {
3489
+ return $this->totalItems;
3490
+ }
3491
+ }
googleclient/contrib/Google_CalendarService.php ADDED
@@ -0,0 +1,1971 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /*
3
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
4
+ * use this file except in compliance with the License. You may obtain a copy of
5
+ * the License at
6
+ *
7
+ * http://www.apache.org/licenses/LICENSE-2.0
8
+ *
9
+ * Unless required by applicable law or agreed to in writing, software
10
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
11
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
12
+ * License for the specific language governing permissions and limitations under
13
+ * the License.
14
+ */
15
+
16
+
17
+ /**
18
+ * The "acl" collection of methods.
19
+ * Typical usage is:
20
+ * <code>
21
+ * $calendarService = new Google_CalendarService(...);
22
+ * $acl = $calendarService->acl;
23
+ * </code>
24
+ */
25
+ class Google_AclServiceResource extends Google_ServiceResource {
26
+
27
+ /**
28
+ * Deletes an access control rule. (acl.delete)
29
+ *
30
+ * @param string $calendarId Calendar identifier.
31
+ * @param string $ruleId ACL rule identifier.
32
+ * @param array $optParams Optional parameters.
33
+ */
34
+ public function delete($calendarId, $ruleId, $optParams = array()) {
35
+ $params = array('calendarId' => $calendarId, 'ruleId' => $ruleId);
36
+ $params = array_merge($params, $optParams);
37
+ $data = $this->__call('delete', array($params));
38
+ return $data;
39
+ }
40
+ /**
41
+ * Returns an access control rule. (acl.get)
42
+ *
43
+ * @param string $calendarId Calendar identifier.
44
+ * @param string $ruleId ACL rule identifier.
45
+ * @param array $optParams Optional parameters.
46
+ * @return Google_AclRule
47
+ */
48
+ public function get($calendarId, $ruleId, $optParams = array()) {
49
+ $params = array('calendarId' => $calendarId, 'ruleId' => $ruleId);
50
+ $params = array_merge($params, $optParams);
51
+ $data = $this->__call('get', array($params));
52
+ if ($this->useObjects()) {
53
+ return new Google_AclRule($data);
54
+ } else {
55
+ return $data;
56
+ }
57
+ }
58
+ /**
59
+ * Creates an access control rule. (acl.insert)
60
+ *
61
+ * @param string $calendarId Calendar identifier.
62
+ * @param Google_AclRule $postBody
63
+ * @param array $optParams Optional parameters.
64
+ * @return Google_AclRule
65
+ */
66
+ public function insert($calendarId, Google_AclRule $postBody, $optParams = array()) {
67
+ $params = array('calendarId' => $calendarId, 'postBody' => $postBody);
68
+ $params = array_merge($params, $optParams);
69
+ $data = $this->__call('insert', array($params));
70
+ if ($this->useObjects()) {
71
+ return new Google_AclRule($data);
72
+ } else {
73
+ return $data;
74
+ }
75
+ }
76
+ /**
77
+ * Returns the rules in the access control list for the calendar. (acl.list)
78
+ *
79
+ * @param string $calendarId Calendar identifier.
80
+ * @param array $optParams Optional parameters.
81
+ * @return Google_Acl
82
+ */
83
+ public function listAcl($calendarId, $optParams = array()) {
84
+ $params = array('calendarId' => $calendarId);
85
+ $params = array_merge($params, $optParams);
86
+ $data = $this->__call('list', array($params));
87
+ if ($this->useObjects()) {
88
+ return new Google_Acl($data);
89
+ } else {
90
+ return $data;
91
+ }
92
+ }
93
+ /**
94
+ * Updates an access control rule. This method supports patch semantics. (acl.patch)
95
+ *
96
+ * @param string $calendarId Calendar identifier.
97
+ * @param string $ruleId ACL rule identifier.
98
+ * @param Google_AclRule $postBody
99
+ * @param array $optParams Optional parameters.
100
+ * @return Google_AclRule
101
+ */
102
+ public function patch($calendarId, $ruleId, Google_AclRule $postBody, $optParams = array()) {
103
+ $params = array('calendarId' => $calendarId, 'ruleId' => $ruleId, 'postBody' => $postBody);
104
+ $params = array_merge($params, $optParams);
105
+ $data = $this->__call('patch', array($params));
106
+ if ($this->useObjects()) {
107
+ return new Google_AclRule($data);
108
+ } else {
109
+ return $data;
110
+ }
111
+ }
112
+ /**
113
+ * Updates an access control rule. (acl.update)
114
+ *
115
+ * @param string $calendarId Calendar identifier.
116
+ * @param string $ruleId ACL rule identifier.
117
+ * @param Google_AclRule $postBody
118
+ * @param array $optParams Optional parameters.
119
+ * @return Google_AclRule
120
+ */
121
+ public function update($calendarId, $ruleId, Google_AclRule $postBody, $optParams = array()) {
122
+ $params = array('calendarId' => $calendarId, 'ruleId' => $ruleId, 'postBody' => $postBody);
123
+ $params = array_merge($params, $optParams);
124
+ $data = $this->__call('update', array($params));
125
+ if ($this->useObjects()) {
126
+ return new Google_AclRule($data);
127
+ } else {
128
+ return $data;
129
+ }
130
+ }
131
+ }
132
+
133
+ /**
134
+ * The "calendarList" collection of methods.
135
+ * Typical usage is:
136
+ * <code>
137
+ * $calendarService = new Google_CalendarService(...);
138
+ * $calendarList = $calendarService->calendarList;
139
+ * </code>
140
+ */
141
+ class Google_CalendarListServiceResource extends Google_ServiceResource {
142
+
143
+ /**
144
+ * Deletes an entry on the user's calendar list. (calendarList.delete)
145
+ *
146
+ * @param string $calendarId Calendar identifier.
147
+ * @param array $optParams Optional parameters.
148
+ */
149
+ public function delete($calendarId, $optParams = array()) {
150
+ $params = array('calendarId' => $calendarId);
151
+ $params = array_merge($params, $optParams);
152
+ $data = $this->__call('delete', array($params));
153
+ return $data;
154
+ }
155
+ /**
156
+ * Returns an entry on the user's calendar list. (calendarList.get)
157
+ *
158
+ * @param string $calendarId Calendar identifier.
159
+ * @param array $optParams Optional parameters.
160
+ * @return Google_CalendarListEntry
161
+ */
162
+ public function get($calendarId, $optParams = array()) {
163
+ $params = array('calendarId' => $calendarId);
164
+ $params = array_merge($params, $optParams);
165
+ $data = $this->__call('get', array($params));
166
+ if ($this->useObjects()) {
167
+ return new Google_CalendarListEntry($data);
168
+ } else {
169
+ return $data;
170
+ }
171
+ }
172
+ /**
173
+ * Adds an entry to the user's calendar list. (calendarList.insert)
174
+ *
175
+ * @param Google_CalendarListEntry $postBody
176
+ * @param array $optParams Optional parameters.
177
+ *
178
+ * @opt_param bool colorRgbFormat Whether to use the 'foregroundColor' and 'backgroundColor' fields to write the calendar colors (RGB). If this feature is used, the index-based 'colorId' field will be set to the best matching option automatically. Optional. The default is False.
179
+ * @return Google_CalendarListEntry
180
+ */
181
+ public function insert(Google_CalendarListEntry $postBody, $optParams = array()) {
182
+ $params = array('postBody' => $postBody);
183
+ $params = array_merge($params, $optParams);
184
+ $data = $this->__call('insert', array($params));
185
+ if ($this->useObjects()) {
186
+ return new Google_CalendarListEntry($data);
187
+ } else {
188
+ return $data;
189
+ }
190
+ }
191
+ /**
192
+ * Returns entries on the user's calendar list. (calendarList.list)
193
+ *
194
+ * @param array $optParams Optional parameters.
195
+ *
196
+ * @opt_param int maxResults Maximum number of entries returned on one result page. Optional.
197
+ * @opt_param string minAccessRole The minimum access role for the user in the returned entires. Optional. The default is no restriction.
198
+ * @opt_param string pageToken Token specifying which result page to return. Optional.
199
+ * @opt_param bool showHidden Whether to show hidden entries. Optional. The default is False.
200
+ * @return Google_CalendarList
201
+ */
202
+ public function listCalendarList($optParams = array()) {
203
+ $params = array();
204
+ $params = array_merge($params, $optParams);
205
+ $data = $this->__call('list', array($params));
206
+ if ($this->useObjects()) {
207
+ return new Google_CalendarList($data);
208
+ } else {
209
+ return $data;
210
+ }
211
+ }
212
+ /**
213
+ * Updates an entry on the user's calendar list. This method supports patch semantics.
214
+ * (calendarList.patch)
215
+ *
216
+ * @param string $calendarId Calendar identifier.
217
+ * @param Google_CalendarListEntry $postBody
218
+ * @param array $optParams Optional parameters.
219
+ *
220
+ * @opt_param bool colorRgbFormat Whether to use the 'foregroundColor' and 'backgroundColor' fields to write the calendar colors (RGB). If this feature is used, the index-based 'colorId' field will be set to the best matching option automatically. Optional. The default is False.
221
+ * @return Google_CalendarListEntry
222
+ */
223
+ public function patch($calendarId, Google_CalendarListEntry $postBody, $optParams = array()) {
224
+ $params = array('calendarId' => $calendarId, 'postBody' => $postBody);
225
+ $params = array_merge($params, $optParams);
226
+ $data = $this->__call('patch', array($params));
227
+ if ($this->useObjects()) {
228
+ return new Google_CalendarListEntry($data);
229
+ } else {
230
+ return $data;
231
+ }
232
+ }
233
+ /**
234
+ * Updates an entry on the user's calendar list. (calendarList.update)
235
+ *
236
+ * @param string $calendarId Calendar identifier.
237
+ * @param Google_CalendarListEntry $postBody
238
+ * @param array $optParams Optional parameters.
239
+ *
240
+ * @opt_param bool colorRgbFormat Whether to use the 'foregroundColor' and 'backgroundColor' fields to write the calendar colors (RGB). If this feature is used, the index-based 'colorId' field will be set to the best matching option automatically. Optional. The default is False.
241
+ * @return Google_CalendarListEntry
242
+ */
243
+ public function update($calendarId, Google_CalendarListEntry $postBody, $optParams = array()) {
244
+ $params = array('calendarId' => $calendarId, 'postBody' => $postBody);
245
+ $params = array_merge($params, $optParams);
246
+ $data = $this->__call('update', array($params));
247
+ if ($this->useObjects()) {
248
+ return new Google_CalendarListEntry($data);
249
+ } else {
250
+ return $data;
251
+ }
252
+ }
253
+ }
254
+
255
+ /**
256
+ * The "calendars" collection of methods.
257
+ * Typical usage is:
258
+ * <code>
259
+ * $calendarService = new Google_CalendarService(...);
260
+ * $calendars = $calendarService->calendars;
261
+ * </code>
262
+ */
263
+ class Google_CalendarsServiceResource extends Google_ServiceResource {
264
+
265
+ /**
266
+ * Clears a primary calendar. This operation deletes all data associated with the primary calendar
267
+ * of an account and cannot be undone. (calendars.clear)
268
+ *
269
+ * @param string $calendarId Calendar identifier.
270
+ * @param array $optParams Optional parameters.
271
+ */
272
+ public function clear($calendarId, $optParams = array()) {
273
+ $params = array('calendarId' => $calendarId);
274
+ $params = array_merge($params, $optParams);
275
+ $data = $this->__call('clear', array($params));
276
+ return $data;
277
+ }
278
+ /**
279
+ * Deletes a secondary calendar. (calendars.delete)
280
+ *
281
+ * @param string $calendarId Calendar identifier.
282
+ * @param array $optParams Optional parameters.
283
+ */
284
+ public function delete($calendarId, $optParams = array()) {
285
+ $params = array('calendarId' => $calendarId);
286
+ $params = array_merge($params, $optParams);
287
+ $data = $this->__call('delete', array($params));
288
+ return $data;
289
+ }
290
+ /**
291
+ * Returns metadata for a calendar. (calendars.get)
292
+ *
293
+ * @param string $calendarId Calendar identifier.
294
+ * @param array $optParams Optional parameters.
295
+ * @return Google_Calendar
296
+ */
297
+ public function get($calendarId, $optParams = array()) {
298
+ $params = array('calendarId' => $calendarId);
299
+ $params = array_merge($params, $optParams);
300
+ $data = $this->__call('get', array($params));
301
+ if ($this->useObjects()) {
302
+ return new Google_Calendar($data);
303
+ } else {
304
+ return $data;
305
+ }
306
+ }
307
+ /**
308
+ * Creates a secondary calendar. (calendars.insert)
309
+ *
310
+ * @param Google_Calendar $postBody
311
+ * @param array $optParams Optional parameters.
312
+ * @return Google_Calendar
313
+ */
314
+ public function insert(Google_Calendar $postBody, $optParams = array()) {
315
+ $params = array('postBody' => $postBody);
316
+ $params = array_merge($params, $optParams);
317
+ $data = $this->__call('insert', array($params));
318
+ if ($this->useObjects()) {
319
+ return new Google_Calendar($data);
320
+ } else {
321
+ return $data;
322
+ }
323
+ }
324
+ /**
325
+ * Updates metadata for a calendar. This method supports patch semantics. (calendars.patch)
326
+ *
327
+ * @param string $calendarId Calendar identifier.
328
+ * @param Google_Calendar $postBody
329
+ * @param array $optParams Optional parameters.
330
+ * @return Google_Calendar
331
+ */
332
+ public function patch($calendarId, Google_Calendar $postBody, $optParams = array()) {
333
+ $params = array('calendarId' => $calendarId, 'postBody' => $postBody);
334
+ $params = array_merge($params, $optParams);
335
+ $data = $this->__call('patch', array($params));
336
+ if ($this->useObjects()) {
337
+ return new Google_Calendar($data);
338
+ } else {
339
+ return $data;
340
+ }
341
+ }
342
+ /**
343
+ * Updates metadata for a calendar. (calendars.update)
344
+ *
345
+ * @param string $calendarId Calendar identifier.
346
+ * @param Google_Calendar $postBody
347
+ * @param array $optParams Optional parameters.
348
+ * @return Google_Calendar
349
+ */
350
+ public function update($calendarId, Google_Calendar $postBody, $optParams = array()) {
351
+ $params = array('calendarId' => $calendarId, 'postBody' => $postBody);
352
+ $params = array_merge($params, $optParams);
353
+ $data = $this->__call('update', array($params));
354
+ if ($this->useObjects()) {
355
+ return new Google_Calendar($data);
356
+ } else {
357
+ return $data;
358
+ }
359
+ }
360
+ }
361
+
362
+ /**
363
+ * The "colors" collection of methods.
364
+ * Typical usage is:
365
+ * <code>
366
+ * $calendarService = new Google_CalendarService(...);
367
+ * $colors = $calendarService->colors;
368
+ * </code>
369
+ */
370
+ class Google_ColorsServiceResource extends Google_ServiceResource {
371
+
372
+ /**
373
+ * Returns the color definitions for calendars and events. (colors.get)
374
+ *
375
+ * @param array $optParams Optional parameters.
376
+ * @return Google_Colors
377
+ */
378
+ public function get($optParams = array()) {
379
+ $params = array();
380
+ $params = array_merge($params, $optParams);
381
+ $data = $this->__call('get', array($params));
382
+ if ($this->useObjects()) {
383
+ return new Google_Colors($data);
384
+ } else {
385
+ return $data;
386
+ }
387
+ }
388
+ }
389
+
390
+ /**
391
+ * The "events" collection of methods.
392
+ * Typical usage is:
393
+ * <code>
394
+ * $calendarService = new Google_CalendarService(...);
395
+ * $events = $calendarService->events;
396
+ * </code>
397
+ */
398
+ class Google_EventsServiceResource extends Google_ServiceResource {
399
+
400
+ /**
401
+ * Deletes an event. (events.delete)
402
+ *
403
+ * @param string $calendarId Calendar identifier.
404
+ * @param string $eventId Event identifier.
405
+ * @param array $optParams Optional parameters.
406
+ *
407
+ * @opt_param bool sendNotifications Whether to send notifications about the deletion of the event. Optional. The default is False.
408
+ */
409
+ public function delete($calendarId, $eventId, $optParams = array()) {
410
+ $params = array('calendarId' => $calendarId, 'eventId' => $eventId);
411
+ $params = array_merge($params, $optParams);
412
+ $data = $this->__call('delete', array($params));
413
+ return $data;
414
+ }
415
+ /**
416
+ * Returns an event. (events.get)
417
+ *
418
+ * @param string $calendarId Calendar identifier.
419
+ * @param string $eventId Event identifier.
420
+ * @param array $optParams Optional parameters.
421
+ *
422
+ * @opt_param bool alwaysIncludeEmail Whether to always include a value in the "email" field for the organizer, creator and attendees, even if no real email is available (i.e. a generated, non-working value will be provided). The use of this option is discouraged and should only be used by clients which cannot handle the absence of an email address value in the mentioned places. Optional. The default is False.
423
+ * @opt_param int maxAttendees The maximum number of attendees to include in the response. If there are more than the specified number of attendees, only the participant is returned. Optional.
424
+ * @opt_param string timeZone Time zone used in the response. Optional. The default is the time zone of the calendar.
425
+ * @return Google_Event
426
+ */
427
+ public function get($calendarId, $eventId, $optParams = array()) {
428
+ $params = array('calendarId' => $calendarId, 'eventId' => $eventId);
429
+ $params = array_merge($params, $optParams);
430
+ $data = $this->__call('get', array($params));
431
+ if ($this->useObjects()) {
432
+ return new Google_Event($data);
433
+ } else {
434
+ return $data;
435
+ }
436
+ }
437
+ /**
438
+ * Imports an event. (events.import)
439
+ *
440
+ * @param string $calendarId Calendar identifier.
441
+ * @param Google_Event $postBody
442
+ * @param array $optParams Optional parameters.
443
+ * @return Google_Event
444
+ */
445
+ public function import($calendarId, Google_Event $postBody, $optParams = array()) {
446
+ $params = array('calendarId' => $calendarId, 'postBody' => $postBody);
447
+ $params = array_merge($params, $optParams);
448
+ $data = $this->__call('import', array($params));
449
+ if ($this->useObjects()) {
450
+ return new Google_Event($data);
451
+ } else {
452
+ return $data;
453
+ }
454
+ }
455
+ /**
456
+ * Creates an event. (events.insert)
457
+ *
458
+ * @param string $calendarId Calendar identifier.
459
+ * @param Google_Event $postBody
460
+ * @param array $optParams Optional parameters.
461
+ *
462
+ * @opt_param int maxAttendees The maximum number of attendees to include in the response. If there are more than the specified number of attendees, only the participant is returned. Optional.
463
+ * @opt_param bool sendNotifications Whether to send notifications about the creation of the new event. Optional. The default is False.
464
+ * @return Google_Event
465
+ */
466
+ public function insert($calendarId, Google_Event $postBody, $optParams = array()) {
467
+ $params = array('calendarId' => $calendarId, 'postBody' => $postBody);
468
+ $params = array_merge($params, $optParams);
469
+ $data = $this->__call('insert', array($params));
470
+ if ($this->useObjects()) {
471
+ return new Google_Event($data);
472
+ } else {
473
+ return $data;
474
+ }
475
+ }
476
+ /**
477
+ * Returns instances of the specified recurring event. (events.instances)
478
+ *
479
+ * @param string $calendarId Calendar identifier.
480
+ * @param string $eventId Recurring event identifier.
481
+ * @param array $optParams Optional parameters.
482
+ *
483
+ * @opt_param bool alwaysIncludeEmail Whether to always include a value in the "email" field for the organizer, creator and attendees, even if no real email is available (i.e. a generated, non-working value will be provided). The use of this option is discouraged and should only be used by clients which cannot handle the absence of an email address value in the mentioned places. Optional. The default is False.
484
+ * @opt_param int maxAttendees The maximum number of attendees to include in the response. If there are more than the specified number of attendees, only the participant is returned. Optional.
485
+ * @opt_param int maxResults Maximum number of events returned on one result page. Optional.
486
+ * @opt_param string originalStart The original start time of the instance in the result. Optional.
487
+ * @opt_param string pageToken Token specifying which result page to return. Optional.
488
+ * @opt_param bool showDeleted Whether to include deleted events (with 'status' equals 'cancelled') in the result. Cancelled instances of recurring events will still be included if 'singleEvents' is False. Optional. The default is False.
489
+ * @opt_param string timeMax Upper bound (exclusive) for an event's start time to filter by. Optional. The default is not to filter by start time.
490
+ * @opt_param string timeMin Lower bound (inclusive) for an event's end time to filter by. Optional. The default is not to filter by end time.
491
+ * @opt_param string timeZone Time zone used in the response. Optional. The default is the time zone of the calendar.
492
+ * @return Google_Events
493
+ */
494
+ public function instances($calendarId, $eventId, $optParams = array()) {
495
+ $params = array('calendarId' => $calendarId, 'eventId' => $eventId);
496
+ $params = array_merge($params, $optParams);
497
+ $data = $this->__call('instances', array($params));
498
+ if ($this->useObjects()) {
499
+ return new Google_Events($data);
500
+ } else {
501
+ return $data;
502
+ }
503
+ }
504
+ /**
505
+ * Returns events on the specified calendar. (events.list)
506
+ *
507
+ * @param string $calendarId Calendar identifier.
508
+ * @param array $optParams Optional parameters.
509
+ *
510
+ * @opt_param bool alwaysIncludeEmail Whether to always include a value in the "email" field for the organizer, creator and attendees, even if no real email is available (i.e. a generated, non-working value will be provided). The use of this option is discouraged and should only be used by clients which cannot handle the absence of an email address value in the mentioned places. Optional. The default is False.
511
+ * @opt_param string iCalUID Specifies iCalendar UID (iCalUID) of events to be included in the response. Optional.
512
+ * @opt_param int maxAttendees The maximum number of attendees to include in the response. If there are more than the specified number of attendees, only the participant is returned. Optional.
513
+ * @opt_param int maxResults Maximum number of events returned on one result page. Optional.
514
+ * @opt_param string orderBy The order of the events returned in the result. Optional. The default is an unspecified, stable order.
515
+ * @opt_param string pageToken Token specifying which result page to return. Optional.
516
+ * @opt_param string q Free text search terms to find events that match these terms in any field, except for extended properties. Optional.
517
+ * @opt_param bool showDeleted Whether to include deleted events (with 'status' equals 'cancelled') in the result. Cancelled instances of recurring events (but not the underlying recurring event) will still be included if 'showDeleted' and 'singleEvents' are both False. If 'showDeleted' and 'singleEvents' are both True, only single instances of deleted events (but not the underlying recurring events) are returned. Optional. The default is False.
518
+ * @opt_param bool showHiddenInvitations Whether to include hidden invitations in the result. Optional. The default is False.
519
+ * @opt_param bool singleEvents Whether to expand recurring events into instances and only return single one-off events and instances of recurring events, but not the underlying recurring events themselves. Optional. The default is False.
520
+ * @opt_param string timeMax Upper bound (exclusive) for an event's start time to filter by. Optional. The default is not to filter by start time.
521
+ * @opt_param string timeMin Lower bound (inclusive) for an event's end time to filter by. Optional. The default is not to filter by end time.
522
+ * @opt_param string timeZone Time zone used in the response. Optional. The default is the time zone of the calendar.
523
+ * @opt_param string updatedMin Lower bound for an event's last modification time (as a RFC 3339 timestamp) to filter by. Optional. The default is not to filter by last modification time.
524
+ * @return Google_Events
525
+ */
526
+ public function listEvents($calendarId, $optParams = array()) {
527
+ $params = array('calendarId' => $calendarId);
528
+ $params = array_merge($params, $optParams);
529
+ $data = $this->__call('list', array($params));
530
+ if ($this->useObjects()) {
531
+ return new Google_Events($data);
532
+ } else {
533
+ return $data;
534
+ }
535
+ }
536
+ /**
537
+ * Moves an event to another calendar, i.e. changes an event's organizer. (events.move)
538
+ *
539
+ * @param string $calendarId Calendar identifier of the source calendar where the event currently is on.
540
+ * @param string $eventId Event identifier.
541
+ * @param string $destination Calendar identifier of the target calendar where the event is to be moved to.
542
+ * @param array $optParams Optional parameters.
543
+ *
544
+ * @opt_param bool sendNotifications Whether to send notifications about the change of the event's organizer. Optional. The default is False.
545
+ * @return Google_Event
546
+ */
547
+ public function move($calendarId, $eventId, $destination, $optParams = array()) {
548
+ $params = array('calendarId' => $calendarId, 'eventId' => $eventId, 'destination' => $destination);
549
+ $params = array_merge($params, $optParams);
550
+ $data = $this->__call('move', array($params));
551
+ if ($this->useObjects()) {
552
+ return new Google_Event($data);
553
+ } else {
554
+ return $data;
555
+ }
556
+ }
557
+ /**
558
+ * Updates an event. This method supports patch semantics. (events.patch)
559
+ *
560
+ * @param string $calendarId Calendar identifier.
561
+ * @param string $eventId Event identifier.
562
+ * @param Google_Event $postBody
563
+ * @param array $optParams Optional parameters.
564
+ *
565
+ * @opt_param bool alwaysIncludeEmail Whether to always include a value in the "email" field for the organizer, creator and attendees, even if no real email is available (i.e. a generated, non-working value will be provided). The use of this option is discouraged and should only be used by clients which cannot handle the absence of an email address value in the mentioned places. Optional. The default is False.
566
+ * @opt_param int maxAttendees The maximum number of attendees to include in the response. If there are more than the specified number of attendees, only the participant is returned. Optional.
567
+ * @opt_param bool sendNotifications Whether to send notifications about the event update (e.g. attendee's responses, title changes, etc.). Optional. The default is False.
568
+ * @return Google_Event
569
+ */
570
+ public function patch($calendarId, $eventId, Google_Event $postBody, $optParams = array()) {
571
+ $params = array('calendarId' => $calendarId, 'eventId' => $eventId, 'postBody' => $postBody);
572
+ $params = array_merge($params, $optParams);
573
+ $data = $this->__call('patch', array($params));
574
+ if ($this->useObjects()) {
575
+ return new Google_Event($data);
576
+ } else {
577
+ return $data;
578
+ }
579
+ }
580
+ /**
581
+ * Creates an event based on a simple text string. (events.quickAdd)
582
+ *
583
+ * @param string $calendarId Calendar identifier.
584
+ * @param string $text The text describing the event to be created.
585
+ * @param array $optParams Optional parameters.
586
+ *
587
+ * @opt_param bool sendNotifications Whether to send notifications about the creation of the event. Optional. The default is False.
588
+ * @return Google_Event
589
+ */
590
+ public function quickAdd($calendarId, $text, $optParams = array()) {
591
+ $params = array('calendarId' => $calendarId, 'text' => $text);
592
+ $params = array_merge($params, $optParams);
593
+ $data = $this->__call('quickAdd', array($params));
594
+ if ($this->useObjects()) {
595
+ return new Google_Event($data);
596
+ } else {
597
+ return $data;
598
+ }
599
+ }
600
+ /**
601
+ * Updates an event. (events.update)
602
+ *
603
+ * @param string $calendarId Calendar identifier.
604
+ * @param string $eventId Event identifier.
605
+ * @param Google_Event $postBody
606
+ * @param array $optParams Optional parameters.
607
+ *
608
+ * @opt_param bool alwaysIncludeEmail Whether to always include a value in the "email" field for the organizer, creator and attendees, even if no real email is available (i.e. a generated, non-working value will be provided). The use of this option is discouraged and should only be used by clients which cannot handle the absence of an email address value in the mentioned places. Optional. The default is False.
609
+ * @opt_param int maxAttendees The maximum number of attendees to include in the response. If there are more than the specified number of attendees, only the participant is returned. Optional.
610
+ * @opt_param bool sendNotifications Whether to send notifications about the event update (e.g. attendee's responses, title changes, etc.). Optional. The default is False.
611
+ * @return Google_Event
612
+ */
613
+ public function update($calendarId, $eventId, Google_Event $postBody, $optParams = array()) {
614
+ $params = array('calendarId' => $calendarId, 'eventId' => $eventId, 'postBody' => $postBody);
615
+ $params = array_merge($params, $optParams);
616
+ $data = $this->__call('update', array($params));
617
+ if ($this->useObjects()) {
618
+ return new Google_Event($data);
619
+ } else {
620
+ return $data;
621
+ }
622
+ }
623
+ }
624
+
625
+ /**
626
+ * The "freebusy" collection of methods.
627
+ * Typical usage is:
628
+ * <code>
629
+ * $calendarService = new Google_CalendarService(...);
630
+ * $freebusy = $calendarService->freebusy;
631
+ * </code>
632
+ */
633
+ class Google_FreebusyServiceResource extends Google_ServiceResource {
634
+
635
+ /**
636
+ * Returns free/busy information for a set of calendars. (freebusy.query)
637
+ *
638
+ * @param Google_FreeBusyRequest $postBody
639
+ * @param array $optParams Optional parameters.
640
+ * @return Google_FreeBusyResponse
641
+ */
642
+ public function query(Google_FreeBusyRequest $postBody, $optParams = array()) {
643
+ $params = array('postBody' => $postBody);
644
+ $params = array_merge($params, $optParams);
645
+ $data = $this->__call('query', array($params));
646
+ if ($this->useObjects()) {
647
+ return new Google_FreeBusyResponse($data);
648
+ } else {
649
+ return $data;
650
+ }
651
+ }
652
+ }
653
+
654
+ /**
655
+ * The "settings" collection of methods.
656
+ * Typical usage is:
657
+ * <code>
658
+ * $calendarService = new Google_CalendarService(...);
659
+ * $settings = $calendarService->settings;
660
+ * </code>
661
+ */
662
+ class Google_SettingsServiceResource extends Google_ServiceResource {
663
+
664
+ /**
665
+ * Returns a single user setting. (settings.get)
666
+ *
667
+ * @param string $setting Name of the user setting.
668
+ * @param array $optParams Optional parameters.
669
+ * @return Google_Setting
670
+ */
671
+ public function get($setting, $optParams = array()) {
672
+ $params = array('setting' => $setting);
673
+ $params = array_merge($params, $optParams);
674
+ $data = $this->__call('get', array($params));
675
+ if ($this->useObjects()) {
676
+ return new Google_Setting($data);
677
+ } else {
678
+ return $data;
679
+ }
680
+ }
681
+ /**
682
+ * Returns all user settings for the authenticated user. (settings.list)
683
+ *
684
+ * @param array $optParams Optional parameters.
685
+ * @return Google_Settings
686
+ */
687
+ public function listSettings($optParams = array()) {
688
+ $params = array();
689
+ $params = array_merge($params, $optParams);
690
+ $data = $this->__call('list', array($params));
691
+ if ($this->useObjects()) {
692
+ return new Google_Settings($data);
693
+ } else {
694
+ return $data;
695
+ }
696
+ }
697
+ }
698
+
699
+ /**
700
+ * Service definition for Google_Calendar (v3).
701
+ *
702
+ * <p>
703
+ * Lets you manipulate events and other calendar data.
704
+ * </p>
705
+ *
706
+ * <p>
707
+ * For more information about this service, see the
708
+ * <a href="https://developers.google.com/google-apps/calendar/firstapp" target="_blank">API Documentation</a>
709
+ * </p>
710
+ *
711
+ * @author Google, Inc.
712
+ */
713
+ class Google_CalendarService extends Google_Service {
714
+ public $acl;
715
+ public $calendarList;
716
+ public $calendars;
717
+ public $colors;
718
+ public $events;
719
+ public $freebusy;
720
+ public $settings;
721
+ /**
722
+ * Constructs the internal representation of the Calendar service.
723
+ *
724
+ * @param Google_Client $client
725
+ */
726
+ public function __construct(Google_Client $client) {
727
+ $this->servicePath = 'calendar/v3/';
728
+ $this->version = 'v3';
729
+ $this->serviceName = 'calendar';
730
+
731
+ $client->addService($this->serviceName, $this->version);
732
+ $this->acl = new Google_AclServiceResource($this, $this->serviceName, 'acl', json_decode('{"methods": {"delete": {"id": "calendar.acl.delete", "path": "calendars/{calendarId}/acl/{ruleId}", "httpMethod": "DELETE", "parameters": {"calendarId": {"type": "string", "required": true, "location": "path"}, "ruleId": {"type": "string", "required": true, "location": "path"}}, "scopes": ["https://www.googleapis.com/auth/calendar"]}, "get": {"id": "calendar.acl.get", "path": "calendars/{calendarId}/acl/{ruleId}", "httpMethod": "GET", "parameters": {"calendarId": {"type": "string", "required": true, "location": "path"}, "ruleId": {"type": "string", "required": true, "location": "path"}}, "response": {"$ref": "AclRule"}, "scopes": ["https://www.googleapis.com/auth/calendar", "https://www.googleapis.com/auth/calendar.readonly"]}, "insert": {"id": "calendar.acl.insert", "path": "calendars/{calendarId}/acl", "httpMethod": "POST", "parameters": {"calendarId": {"type": "string", "required": true, "location": "path"}}, "request": {"$ref": "AclRule"}, "response": {"$ref": "AclRule"}, "scopes": ["https://www.googleapis.com/auth/calendar"]}, "list": {"id": "calendar.acl.list", "path": "calendars/{calendarId}/acl", "httpMethod": "GET", "parameters": {"calendarId": {"type": "string", "required": true, "location": "path"}}, "response": {"$ref": "Acl"}, "scopes": ["https://www.googleapis.com/auth/calendar"]}, "patch": {"id": "calendar.acl.patch", "path": "calendars/{calendarId}/acl/{ruleId}", "httpMethod": "PATCH", "parameters": {"calendarId": {"type": "string", "required": true, "location": "path"}, "ruleId": {"type": "string", "required": true, "location": "path"}}, "request": {"$ref": "AclRule"}, "response": {"$ref": "AclRule"}, "scopes": ["https://www.googleapis.com/auth/calendar"]}, "update": {"id": "calendar.acl.update", "path": "calendars/{calendarId}/acl/{ruleId}", "httpMethod": "PUT", "parameters": {"calendarId": {"type": "string", "required": true, "location": "path"}, "ruleId": {"type": "string", "required": true, "location": "path"}}, "request": {"$ref": "AclRule"}, "response": {"$ref": "AclRule"}, "scopes": ["https://www.googleapis.com/auth/calendar"]}}}', true));
733
+ $this->calendarList = new Google_CalendarListServiceResource($this, $this->serviceName, 'calendarList', json_decode('{"methods": {"delete": {"id": "calendar.calendarList.delete", "path": "users/me/calendarList/{calendarId}", "httpMethod": "DELETE", "parameters": {"calendarId": {"type": "string", "required": true, "location": "path"}}, "scopes": ["https://www.googleapis.com/auth/calendar"]}, "get": {"id": "calendar.calendarList.get", "path": "users/me/calendarList/{calendarId}", "httpMethod": "GET", "parameters": {"calendarId": {"type": "string", "required": true, "location": "path"}}, "response": {"$ref": "CalendarListEntry"}, "scopes": ["https://www.googleapis.com/auth/calendar", "https://www.googleapis.com/auth/calendar.readonly"]}, "insert": {"id": "calendar.calendarList.insert", "path": "users/me/calendarList", "httpMethod": "POST", "parameters": {"colorRgbFormat": {"type": "boolean", "location": "query"}}, "request": {"$ref": "CalendarListEntry"}, "response": {"$ref": "CalendarListEntry"}, "scopes": ["https://www.googleapis.com/auth/calendar"]}, "list": {"id": "calendar.calendarList.list", "path": "users/me/calendarList", "httpMethod": "GET", "parameters": {"maxResults": {"type": "integer", "format": "int32", "minimum": "1", "location": "query"}, "minAccessRole": {"type": "string", "enum": ["freeBusyReader", "owner", "reader", "writer"], "location": "query"}, "pageToken": {"type": "string", "location": "query"}, "showHidden": {"type": "boolean", "location": "query"}}, "response": {"$ref": "CalendarList"}, "scopes": ["https://www.googleapis.com/auth/calendar", "https://www.googleapis.com/auth/calendar.readonly"]}, "patch": {"id": "calendar.calendarList.patch", "path": "users/me/calendarList/{calendarId}", "httpMethod": "PATCH", "parameters": {"calendarId": {"type": "string", "required": true, "location": "path"}, "colorRgbFormat": {"type": "boolean", "location": "query"}}, "request": {"$ref": "CalendarListEntry"}, "response": {"$ref": "CalendarListEntry"}, "scopes": ["https://www.googleapis.com/auth/calendar"]}, "update": {"id": "calendar.calendarList.update", "path": "users/me/calendarList/{calendarId}", "httpMethod": "PUT", "parameters": {"calendarId": {"type": "string", "required": true, "location": "path"}, "colorRgbFormat": {"type": "boolean", "location": "query"}}, "request": {"$ref": "CalendarListEntry"}, "response": {"$ref": "CalendarListEntry"}, "scopes": ["https://www.googleapis.com/auth/calendar"]}}}', true));
734
+ $this->calendars = new Google_CalendarsServiceResource($this, $this->serviceName, 'calendars', json_decode('{"methods": {"clear": {"id": "calendar.calendars.clear", "path": "calendars/{calendarId}/clear", "httpMethod": "POST", "parameters": {"calendarId": {"type": "string", "required": true, "location": "path"}}, "scopes": ["https://www.googleapis.com/auth/calendar"]}, "delete": {"id": "calendar.calendars.delete", "path": "calendars/{calendarId}", "httpMethod": "DELETE", "parameters": {"calendarId": {"type": "string", "required": true, "location": "path"}}, "scopes": ["https://www.googleapis.com/auth/calendar"]}, "get": {"id": "calendar.calendars.get", "path": "calendars/{calendarId}", "httpMethod": "GET", "parameters": {"calendarId": {"type": "string", "required": true, "location": "path"}}, "response": {"$ref": "Calendar"}, "scopes": ["https://www.googleapis.com/auth/calendar", "https://www.googleapis.com/auth/calendar.readonly"]}, "insert": {"id": "calendar.calendars.insert", "path": "calendars", "httpMethod": "POST", "request": {"$ref": "Calendar"}, "response": {"$ref": "Calendar"}, "scopes": ["https://www.googleapis.com/auth/calendar"]}, "patch": {"id": "calendar.calendars.patch", "path": "calendars/{calendarId}", "httpMethod": "PATCH", "parameters": {"calendarId": {"type": "string", "required": true, "location": "path"}}, "request": {"$ref": "Calendar"}, "response": {"$ref": "Calendar"}, "scopes": ["https://www.googleapis.com/auth/calendar"]}, "update": {"id": "calendar.calendars.update", "path": "calendars/{calendarId}", "httpMethod": "PUT", "parameters": {"calendarId": {"type": "string", "required": true, "location": "path"}}, "request": {"$ref": "Calendar"}, "response": {"$ref": "Calendar"}, "scopes": ["https://www.googleapis.com/auth/calendar"]}}}', true));
735
+ $this->colors = new Google_ColorsServiceResource($this, $this->serviceName, 'colors', json_decode('{"methods": {"get": {"id": "calendar.colors.get", "path": "colors", "httpMethod": "GET", "response": {"$ref": "Colors"}, "scopes": ["https://www.googleapis.com/auth/calendar", "https://www.googleapis.com/auth/calendar.readonly"]}}}', true));
736
+ $this->events = new Google_EventsServiceResource($this, $this->serviceName, 'events', json_decode('{"methods": {"delete": {"id": "calendar.events.delete", "path": "calendars/{calendarId}/events/{eventId}", "httpMethod": "DELETE", "parameters": {"calendarId": {"type": "string", "required": true, "location": "path"}, "eventId": {"type": "string", "required": true, "location": "path"}, "sendNotifications": {"type": "boolean", "location": "query"}}, "scopes": ["https://www.googleapis.com/auth/calendar"]}, "get": {"id": "calendar.events.get", "path": "calendars/{calendarId}/events/{eventId}", "httpMethod": "GET", "parameters": {"alwaysIncludeEmail": {"type": "boolean", "location": "query"}, "calendarId": {"type": "string", "required": true, "location": "path"}, "eventId": {"type": "string", "required": true, "location": "path"}, "maxAttendees": {"type": "integer", "format": "int32", "minimum": "1", "location": "query"}, "timeZone": {"type": "string", "location": "query"}}, "response": {"$ref": "Event"}, "scopes": ["https://www.googleapis.com/auth/calendar", "https://www.googleapis.com/auth/calendar.readonly"]}, "import": {"id": "calendar.events.import", "path": "calendars/{calendarId}/events/import", "httpMethod": "POST", "parameters": {"calendarId": {"type": "string", "required": true, "location": "path"}}, "request": {"$ref": "Event"}, "response": {"$ref": "Event"}, "scopes": ["https://www.googleapis.com/auth/calendar"]}, "insert": {"id": "calendar.events.insert", "path": "calendars/{calendarId}/events", "httpMethod": "POST", "parameters": {"calendarId": {"type": "string", "required": true, "location": "path"}, "maxAttendees": {"type": "integer", "format": "int32", "minimum": "1", "location": "query"}, "sendNotifications": {"type": "boolean", "location": "query"}}, "request": {"$ref": "Event"}, "response": {"$ref": "Event"}, "scopes": ["https://www.googleapis.com/auth/calendar"]}, "instances": {"id": "calendar.events.instances", "path": "calendars/{calendarId}/events/{eventId}/instances", "httpMethod": "GET", "parameters": {"alwaysIncludeEmail": {"type": "boolean", "location": "query"}, "calendarId": {"type": "string", "required": true, "location": "path"}, "eventId": {"type": "string", "required": true, "location": "path"}, "maxAttendees": {"type": "integer", "format": "int32", "minimum": "1", "location": "query"}, "maxResults": {"type": "integer", "format": "int32", "minimum": "1", "location": "query"}, "originalStart": {"type": "string", "location": "query"}, "pageToken": {"type": "string", "location": "query"}, "showDeleted": {"type": "boolean", "location": "query"}, "timeMax": {"type": "string", "format": "date-time", "location": "query"}, "timeMin": {"type": "string", "format": "date-time", "location": "query"}, "timeZone": {"type": "string", "location": "query"}}, "response": {"$ref": "Events"}, "scopes": ["https://www.googleapis.com/auth/calendar", "https://www.googleapis.com/auth/calendar.readonly"], "supportsSubscription": true}, "list": {"id": "calendar.events.list", "path": "calendars/{calendarId}/events", "httpMethod": "GET", "parameters": {"alwaysIncludeEmail": {"type": "boolean", "location": "query"}, "calendarId": {"type": "string", "required": true, "location": "path"}, "iCalUID": {"type": "string", "location": "query"}, "maxAttendees": {"type": "integer", "format": "int32", "minimum": "1", "location": "query"}, "maxResults": {"type": "integer", "format": "int32", "minimum": "1", "location": "query"}, "orderBy": {"type": "string", "enum": ["startTime", "updated"], "location": "query"}, "pageToken": {"type": "string", "location": "query"}, "q": {"type": "string", "location": "query"}, "showDeleted": {"type": "boolean", "location": "query"}, "showHiddenInvitations": {"type": "boolean", "location": "query"}, "singleEvents": {"type": "boolean", "location": "query"}, "timeMax": {"type": "string", "format": "date-time", "location": "query"}, "timeMin": {"type": "string", "format": "date-time", "location": "query"}, "timeZone": {"type": "string", "location": "query"}, "updatedMin": {"type": "string", "format": "date-time", "location": "query"}}, "response": {"$ref": "Events"}, "scopes": ["https://www.googleapis.com/auth/calendar", "https://www.googleapis.com/auth/calendar.readonly"], "supportsSubscription": true}, "move": {"id": "calendar.events.move", "path": "calendars/{calendarId}/events/{eventId}/move", "httpMethod": "POST", "parameters": {"calendarId": {"type": "string", "required": true, "location": "path"}, "destination": {"type": "string", "required": true, "location": "query"}, "eventId": {"type": "string", "required": true, "location": "path"}, "sendNotifications": {"type": "boolean", "location": "query"}}, "response": {"$ref": "Event"}, "scopes": ["https://www.googleapis.com/auth/calendar"]}, "patch": {"id": "calendar.events.patch", "path": "calendars/{calendarId}/events/{eventId}", "httpMethod": "PATCH", "parameters": {"alwaysIncludeEmail": {"type": "boolean", "location": "query"}, "calendarId": {"type": "string", "required": true, "location": "path"}, "eventId": {"type": "string", "required": true, "location": "path"}, "maxAttendees": {"type": "integer", "format": "int32", "minimum": "1", "location": "query"}, "sendNotifications": {"type": "boolean", "location": "query"}}, "request": {"$ref": "Event"}, "response": {"$ref": "Event"}, "scopes": ["https://www.googleapis.com/auth/calendar"]}, "quickAdd": {"id": "calendar.events.quickAdd", "path": "calendars/{calendarId}/events/quickAdd", "httpMethod": "POST", "parameters": {"calendarId": {"type": "string", "required": true, "location": "path"}, "sendNotifications": {"type": "boolean", "location": "query"}, "text": {"type": "string", "required": true, "location": "query"}}, "response": {"$ref": "Event"}, "scopes": ["https://www.googleapis.com/auth/calendar"]}, "update": {"id": "calendar.events.update", "path": "calendars/{calendarId}/events/{eventId}", "httpMethod": "PUT", "parameters": {"alwaysIncludeEmail": {"type": "boolean", "location": "query"}, "calendarId": {"type": "string", "required": true, "location": "path"}, "eventId": {"type": "string", "required": true, "location": "path"}, "maxAttendees": {"type": "integer", "format": "int32", "minimum": "1", "location": "query"}, "sendNotifications": {"type": "boolean", "location": "query"}}, "request": {"$ref": "Event"}, "response": {"$ref": "Event"}, "scopes": ["https://www.googleapis.com/auth/calendar"]}}}', true));
737
+ $this->freebusy = new Google_FreebusyServiceResource($this, $this->serviceName, 'freebusy', json_decode('{"methods": {"query": {"id": "calendar.freebusy.query", "path": "freeBusy", "httpMethod": "POST", "request": {"$ref": "FreeBusyRequest"}, "response": {"$ref": "FreeBusyResponse"}, "scopes": ["https://www.googleapis.com/auth/calendar", "https://www.googleapis.com/auth/calendar.readonly"]}}}', true));
738
+ $this->settings = new Google_SettingsServiceResource($this, $this->serviceName, 'settings', json_decode('{"methods": {"get": {"id": "calendar.settings.get", "path": "users/me/settings/{setting}", "httpMethod": "GET", "parameters": {"setting": {"type": "string", "required": true, "location": "path"}}, "response": {"$ref": "Setting"}, "scopes": ["https://www.googleapis.com/auth/calendar", "https://www.googleapis.com/auth/calendar.readonly"]}, "list": {"id": "calendar.settings.list", "path": "users/me/settings", "httpMethod": "GET", "response": {"$ref": "Settings"}, "scopes": ["https://www.googleapis.com/auth/calendar", "https://www.googleapis.com/auth/calendar.readonly"]}}}', true));
739
+
740
+ }
741
+ }
742
+
743
+
744
+
745
+ class Google_Acl extends Google_Model {
746
+ public $etag;
747
+ protected $__itemsType = 'Google_AclRule';
748
+ protected $__itemsDataType = 'array';
749
+ public $items;
750
+ public $kind;
751
+ public $nextPageToken;
752
+ public function setEtag( $etag) {
753
+ $this->etag = $etag;
754
+ }
755
+ public function getEtag() {
756
+ return $this->etag;
757
+ }
758
+ public function setItems(/* array(Google_AclRule) */ $items) {
759
+ $this->assertIsArray($items, 'Google_AclRule', __METHOD__);
760
+ $this->items = $items;
761
+ }
762
+ public function getItems() {
763
+ return $this->items;
764
+ }
765
+ public function setKind( $kind) {
766
+ $this->kind = $kind;
767
+ }
768
+ public function getKind() {
769
+ return $this->kind;
770
+ }
771
+ public function setNextPageToken( $nextPageToken) {
772
+ $this->nextPageToken = $nextPageToken;
773
+ }
774
+ public function getNextPageToken() {
775
+ return $this->nextPageToken;
776
+ }
777
+ }
778
+
779
+ class Google_AclRule extends Google_Model {
780
+ public $etag;
781
+ public $id;
782
+ public $kind;
783
+ public $role;
784
+ protected $__scopeType = 'Google_AclRuleScope';
785
+ protected $__scopeDataType = '';
786
+ public $scope;
787
+ public function setEtag( $etag) {
788
+ $this->etag = $etag;
789
+ }
790
+ public function getEtag() {
791
+ return $this->etag;
792
+ }
793
+ public function setId( $id) {
794
+ $this->id = $id;
795
+ }
796
+ public function getId() {
797
+ return $this->id;
798
+ }
799
+ public function setKind( $kind) {
800
+ $this->kind = $kind;
801
+ }
802
+ public function getKind() {
803
+ return $this->kind;
804
+ }
805
+ public function setRole( $role) {
806
+ $this->role = $role;
807
+ }
808
+ public function getRole() {
809
+ return $this->role;
810
+ }
811
+ public function setScope(Google_AclRuleScope $scope) {
812
+ $this->scope = $scope;
813
+ }
814
+ public function getScope() {
815
+ return $this->scope;
816
+ }
817
+ }
818
+
819
+ class Google_AclRuleScope extends Google_Model {
820
+ public $type;
821
+ public $value;
822
+ public function setType( $type) {
823
+ $this->type = $type;
824
+ }
825
+ public function getType() {
826
+ return $this->type;
827
+ }
828
+ public function setValue( $value) {
829
+ $this->value = $value;
830
+ }
831
+ public function getValue() {
832
+ return $this->value;
833
+ }
834
+ }
835
+
836
+ class Google_Calendar extends Google_Model {
837
+ public $description;
838
+ public $etag;
839
+ public $id;
840
+ public $kind;
841
+ public $location;
842
+ public $summary;
843
+ public $timeZone;
844
+ public function setDescription( $description) {
845
+ $this->description = $description;
846
+ }
847
+ public function getDescription() {
848
+ return $this->description;
849
+ }
850
+ public function setEtag( $etag) {
851
+ $this->etag = $etag;
852
+ }
853
+ public function getEtag() {
854
+ return $this->etag;
855
+ }
856
+ public function setId( $id) {
857
+ $this->id = $id;
858
+ }
859
+ public function getId() {
860
+ return $this->id;
861
+ }
862
+ public function setKind( $kind) {
863
+ $this->kind = $kind;
864
+ }
865
+ public function getKind() {
866
+ return $this->kind;
867
+ }
868
+ public function setLocation( $location) {
869
+ $this->location = $location;
870
+ }
871
+ public function getLocation() {
872
+ return $this->location;
873
+ }
874
+ public function setSummary( $summary) {
875
+ $this->summary = $summary;
876
+ }
877
+ public function getSummary() {
878
+ return $this->summary;
879
+ }
880
+ public function setTimeZone( $timeZone) {
881
+ $this->timeZone = $timeZone;
882
+ }
883
+ public function getTimeZone() {
884
+ return $this->timeZone;
885
+ }
886
+ }
887
+
888
+ class Google_CalendarList extends Google_Model {
889
+ public $etag;
890
+ protected $__itemsType = 'Google_CalendarListEntry';
891
+ protected $__itemsDataType = 'array';
892
+ public $items;
893
+ public $kind;
894
+ public $nextPageToken;
895
+ public function setEtag( $etag) {
896
+ $this->etag = $etag;
897
+ }
898
+ public function getEtag() {
899
+ return $this->etag;
900
+ }
901
+ public function setItems(/* array(Google_CalendarListEntry) */ $items) {
902
+ $this->assertIsArray($items, 'Google_CalendarListEntry', __METHOD__);
903
+ $this->items = $items;
904
+ }
905
+ public function getItems() {
906
+ return $this->items;
907
+ }
908
+ public function setKind( $kind) {
909
+ $this->kind = $kind;
910
+ }
911
+ public function getKind() {
912
+ return $this->kind;
913
+ }
914
+ public function setNextPageToken( $nextPageToken) {
915
+ $this->nextPageToken = $nextPageToken;
916
+ }
917
+ public function getNextPageToken() {
918
+ return $this->nextPageToken;
919
+ }
920
+ }
921
+
922
+ class Google_CalendarListEntry extends Google_Model {
923
+ public $accessRole;
924
+ public $backgroundColor;
925
+ public $colorId;
926
+ protected $__defaultRemindersType = 'Google_EventReminder';
927
+ protected $__defaultRemindersDataType = 'array';
928
+ public $defaultReminders;
929
+ public $description;
930
+ public $etag;
931
+ public $foregroundColor;
932
+ public $hidden;
933
+ public $id;
934
+ public $kind;
935
+ public $location;
936
+ public $primary;
937
+ public $selected;
938
+ public $summary;
939
+ public $summaryOverride;
940
+ public $timeZone;
941
+ public function setAccessRole( $accessRole) {
942
+ $this->accessRole = $accessRole;
943
+ }
944
+ public function getAccessRole() {
945
+ return $this->accessRole;
946
+ }
947
+ public function setBackgroundColor( $backgroundColor) {
948
+ $this->backgroundColor = $backgroundColor;
949
+ }
950
+ public function getBackgroundColor() {
951
+ return $this->backgroundColor;
952
+ }
953
+ public function setColorId( $colorId) {
954
+ $this->colorId = $colorId;
955
+ }
956
+ public function getColorId() {
957
+ return $this->colorId;
958
+ }
959
+ public function setDefaultReminders(/* array(Google_EventReminder) */ $defaultReminders) {
960
+ $this->assertIsArray($defaultReminders, 'Google_EventReminder', __METHOD__);
961
+ $this->defaultReminders = $defaultReminders;
962
+ }
963
+ public function getDefaultReminders() {
964
+ return $this->defaultReminders;
965
+ }
966
+ public function setDescription( $description) {
967
+ $this->description = $description;
968
+ }
969
+ public function getDescription() {
970
+ return $this->description;
971
+ }
972
+ public function setEtag( $etag) {
973
+ $this->etag = $etag;
974
+ }
975
+ public function getEtag() {
976
+ return $this->etag;
977
+ }
978
+ public function setForegroundColor( $foregroundColor) {
979
+ $this->foregroundColor = $foregroundColor;
980
+ }
981
+ public function getForegroundColor() {
982
+ return $this->foregroundColor;
983
+ }
984
+ public function setHidden( $hidden) {
985
+ $this->hidden = $hidden;
986
+ }
987
+ public function getHidden() {
988
+ return $this->hidden;
989
+ }
990
+ public function setId( $id) {
991
+ $this->id = $id;
992
+ }
993
+ public function getId() {
994
+ return $this->id;
995
+ }
996
+ public function setKind( $kind) {
997
+ $this->kind = $kind;
998
+ }
999
+ public function getKind() {
1000
+ return $this->kind;
1001
+ }
1002
+ public function setLocation( $location) {
1003
+ $this->location = $location;
1004
+ }
1005
+ public function getLocation() {
1006
+ return $this->location;
1007
+ }
1008
+ public function setPrimary( $primary) {
1009
+ $this->primary = $primary;
1010
+ }
1011
+ public function getPrimary() {
1012
+ return $this->primary;
1013
+ }
1014
+ public function setSelected( $selected) {
1015
+ $this->selected = $selected;
1016
+ }
1017
+ public function getSelected() {
1018
+ return $this->selected;
1019
+ }
1020
+ public function setSummary( $summary) {
1021
+ $this->summary = $summary;
1022
+ }
1023
+ public function getSummary() {
1024
+ return $this->summary;
1025
+ }
1026
+ public function setSummaryOverride( $summaryOverride) {
1027
+ $this->summaryOverride = $summaryOverride;
1028
+ }
1029
+ public function getSummaryOverride() {
1030
+ return $this->summaryOverride;
1031
+ }
1032
+ public function setTimeZone( $timeZone) {
1033
+ $this->timeZone = $timeZone;
1034
+ }
1035
+ public function getTimeZone() {
1036
+ return $this->timeZone;
1037
+ }
1038
+ }
1039
+
1040
+ class Google_ColorDefinition extends Google_Model {
1041
+ public $background;
1042
+ public $foreground;
1043
+ public function setBackground( $background) {
1044
+ $this->background = $background;
1045
+ }
1046
+ public function getBackground() {
1047
+ return $this->background;
1048
+ }
1049
+ public function setForeground( $foreground) {
1050
+ $this->foreground = $foreground;
1051
+ }
1052
+ public function getForeground() {
1053
+ return $this->foreground;
1054
+ }
1055
+ }
1056
+
1057
+ class Google_Colors extends Google_Model {
1058
+ protected $__calendarType = 'Google_ColorDefinition';
1059
+ protected $__calendarDataType = 'map';
1060
+ public $calendar;
1061
+ protected $__eventType = 'Google_ColorDefinition';
1062
+ protected $__eventDataType = 'map';
1063
+ public $event;
1064
+ public $kind;
1065
+ public $updated;
1066
+ public function setCalendar(Google_ColorDefinition $calendar) {
1067
+ $this->calendar = $calendar;
1068
+ }
1069
+ public function getCalendar() {
1070
+ return $this->calendar;
1071
+ }
1072
+ public function setEvent(Google_ColorDefinition $event) {
1073
+ $this->event = $event;
1074
+ }
1075
+ public function getEvent() {
1076
+ return $this->event;
1077
+ }
1078
+ public function setKind( $kind) {
1079
+ $this->kind = $kind;
1080
+ }
1081
+ public function getKind() {
1082
+ return $this->kind;
1083
+ }
1084
+ public function setUpdated( $updated) {
1085
+ $this->updated = $updated;
1086
+ }
1087
+ public function getUpdated() {
1088
+ return $this->updated;
1089
+ }
1090
+ }
1091
+
1092
+ class Google_Error extends Google_Model {
1093
+ public $domain;
1094
+ public $reason;
1095
+ public function setDomain( $domain) {
1096
+ $this->domain = $domain;
1097
+ }
1098
+ public function getDomain() {
1099
+ return $this->domain;
1100
+ }
1101
+ public function setReason( $reason) {
1102
+ $this->reason = $reason;
1103
+ }
1104
+ public function getReason() {
1105
+ return $this->reason;
1106
+ }
1107
+ }
1108
+
1109
+ class Google_Event extends Google_Model {
1110
+ public $anyoneCanAddSelf;
1111
+ protected $__attendeesType = 'Google_EventAttendee';
1112
+ protected $__attendeesDataType = 'array';
1113
+ public $attendees;
1114
+ public $attendeesOmitted;
1115
+ public $colorId;
1116
+ public $created;
1117
+ protected $__creatorType = 'Google_EventCreator';
1118
+ protected $__creatorDataType = '';
1119
+ public $creator;
1120
+ public $description;
1121
+ protected $__endType = 'Google_EventDateTime';
1122
+ protected $__endDataType = '';
1123
+ public $end;
1124
+ public $endTimeUnspecified;
1125
+ public $etag;
1126
+ protected $__extendedPropertiesType = 'Google_EventExtendedProperties';
1127
+ protected $__extendedPropertiesDataType = '';
1128
+ public $extendedProperties;
1129
+ protected $__gadgetType = 'Google_EventGadget';
1130
+ protected $__gadgetDataType = '';
1131
+ public $gadget;
1132
+ public $guestsCanInviteOthers;
1133
+ public $guestsCanModify;
1134
+ public $guestsCanSeeOtherGuests;
1135
+ public $hangoutLink;
1136
+ public $htmlLink;
1137
+ public $iCalUID;
1138
+ public $id;
1139
+ public $kind;
1140
+ public $location;
1141
+ public $locked;
1142
+ protected $__organizerType = 'Google_EventOrganizer';
1143
+ protected $__organizerDataType = '';
1144
+ public $organizer;
1145
+ protected $__originalStartTimeType = 'Google_EventDateTime';
1146
+ protected $__originalStartTimeDataType = '';
1147
+ public $originalStartTime;
1148
+ public $privateCopy;
1149
+ public $recurrence;
1150
+ public $recurringEventId;
1151
+ protected $__remindersType = 'Google_EventReminders';
1152
+ protected $__remindersDataType = '';
1153
+ public $reminders;
1154
+ public $sequence;
1155
+ protected $__sourceType = 'Google_EventSource';
1156
+ protected $__sourceDataType = '';
1157
+ public $source;
1158
+ protected $__startType = 'Google_EventDateTime';
1159
+ protected $__startDataType = '';
1160
+ public $start;
1161
+ public $status;
1162
+ public $summary;
1163
+ public $transparency;
1164
+ public $updated;
1165
+ public $visibility;
1166
+ public function setAnyoneCanAddSelf( $anyoneCanAddSelf) {
1167
+ $this->anyoneCanAddSelf = $anyoneCanAddSelf;
1168
+ }
1169
+ public function getAnyoneCanAddSelf() {
1170
+ return $this->anyoneCanAddSelf;
1171
+ }
1172
+ public function setAttendees(/* array(Google_EventAttendee) */ $attendees) {
1173
+ $this->assertIsArray($attendees, 'Google_EventAttendee', __METHOD__);
1174
+ $this->attendees = $attendees;
1175
+ }
1176
+ public function getAttendees() {
1177
+ return $this->attendees;
1178
+ }
1179
+ public function setAttendeesOmitted( $attendeesOmitted) {
1180
+ $this->attendeesOmitted = $attendeesOmitted;
1181
+ }
1182
+ public function getAttendeesOmitted() {
1183
+ return $this->attendeesOmitted;
1184
+ }
1185
+ public function setColorId( $colorId) {
1186
+ $this->colorId = $colorId;
1187
+ }
1188
+ public function getColorId() {
1189
+ return $this->colorId;
1190
+ }
1191
+ public function setCreated( $created) {
1192
+ $this->created = $created;
1193
+ }
1194
+ public function getCreated() {
1195
+ return $this->created;
1196
+ }
1197
+ public function setCreator(Google_EventCreator $creator) {
1198
+ $this->creator = $creator;
1199
+ }
1200
+ public function getCreator() {
1201
+ return $this->creator;
1202
+ }
1203
+ public function setDescription( $description) {
1204
+ $this->description = $description;
1205
+ }
1206
+ public function getDescription() {
1207
+ return $this->description;
1208
+ }
1209
+ public function setEnd(Google_EventDateTime $end) {
1210
+ $this->end = $end;
1211
+ }
1212
+ public function getEnd() {
1213
+ return $this->end;
1214
+ }
1215
+ public function setEndTimeUnspecified( $endTimeUnspecified) {
1216
+ $this->endTimeUnspecified = $endTimeUnspecified;
1217
+ }
1218
+ public function getEndTimeUnspecified() {
1219
+ return $this->endTimeUnspecified;
1220
+ }
1221
+ public function setEtag( $etag) {
1222
+ $this->etag = $etag;
1223
+ }
1224
+ public function getEtag() {
1225
+ return $this->etag;
1226
+ }
1227
+ public function setExtendedProperties(Google_EventExtendedProperties $extendedProperties) {
1228
+ $this->extendedProperties = $extendedProperties;
1229
+ }
1230
+ public function getExtendedProperties() {
1231
+ return $this->extendedProperties;
1232
+ }
1233
+ public function setGadget(Google_EventGadget $gadget) {
1234
+ $this->gadget = $gadget;
1235
+ }
1236
+ public function getGadget() {
1237
+ return $this->gadget;
1238
+ }
1239
+ public function setGuestsCanInviteOthers( $guestsCanInviteOthers) {
1240
+ $this->guestsCanInviteOthers = $guestsCanInviteOthers;
1241
+ }
1242
+ public function getGuestsCanInviteOthers() {
1243
+ return $this->guestsCanInviteOthers;
1244
+ }
1245
+ public function setGuestsCanModify( $guestsCanModify) {
1246
+ $this->guestsCanModify = $guestsCanModify;
1247
+ }
1248
+ public function getGuestsCanModify() {
1249
+ return $this->guestsCanModify;
1250
+ }
1251
+ public function setGuestsCanSeeOtherGuests( $guestsCanSeeOtherGuests) {
1252
+ $this->guestsCanSeeOtherGuests = $guestsCanSeeOtherGuests;
1253
+ }
1254
+ public function getGuestsCanSeeOtherGuests() {
1255
+ return $this->guestsCanSeeOtherGuests;
1256
+ }
1257
+ public function setHangoutLink( $hangoutLink) {
1258
+ $this->hangoutLink = $hangoutLink;
1259
+ }
1260
+ public function getHangoutLink() {
1261
+ return $this->hangoutLink;
1262
+ }
1263
+ public function setHtmlLink( $htmlLink) {
1264
+ $this->htmlLink = $htmlLink;
1265
+ }
1266
+ public function getHtmlLink() {
1267
+ return $this->htmlLink;
1268
+ }
1269
+ public function setICalUID( $iCalUID) {
1270
+ $this->iCalUID = $iCalUID;
1271
+ }
1272
+ public function getICalUID() {
1273
+ return $this->iCalUID;
1274
+ }
1275
+ public function setId( $id) {
1276
+ $this->id = $id;
1277
+ }
1278
+ public function getId() {
1279
+ return $this->id;
1280
+ }
1281
+ public function setKind( $kind) {
1282
+ $this->kind = $kind;
1283
+ }
1284
+ public function getKind() {
1285
+ return $this->kind;
1286
+ }
1287
+ public function setLocation( $location) {
1288
+ $this->location = $location;
1289
+ }
1290
+ public function getLocation() {
1291
+ return $this->location;
1292
+ }
1293
+ public function setLocked( $locked) {
1294
+ $this->locked = $locked;
1295
+ }
1296
+ public function getLocked() {
1297
+ return $this->locked;
1298
+ }
1299
+ public function setOrganizer(Google_EventOrganizer $organizer) {
1300
+ $this->organizer = $organizer;
1301
+ }
1302
+ public function getOrganizer() {
1303
+ return $this->organizer;
1304
+ }
1305
+ public function setOriginalStartTime(Google_EventDateTime $originalStartTime) {
1306
+ $this->originalStartTime = $originalStartTime;
1307
+ }
1308
+ public function getOriginalStartTime() {
1309
+ return $this->originalStartTime;
1310
+ }
1311
+ public function setPrivateCopy( $privateCopy) {
1312
+ $this->privateCopy = $privateCopy;
1313
+ }
1314
+ public function getPrivateCopy() {
1315
+ return $this->privateCopy;
1316
+ }
1317
+ public function setRecurrence(/* array(Google_string) */ $recurrence) {
1318
+ $this->assertIsArray($recurrence, 'Google_string', __METHOD__);
1319
+ $this->recurrence = $recurrence;
1320
+ }
1321
+ public function getRecurrence() {
1322
+ return $this->recurrence;
1323
+ }
1324
+ public function setRecurringEventId( $recurringEventId) {
1325
+ $this->recurringEventId = $recurringEventId;
1326
+ }
1327
+ public function getRecurringEventId() {
1328
+ return $this->recurringEventId;
1329
+ }
1330
+ public function setReminders(Google_EventReminders $reminders) {
1331
+ $this->reminders = $reminders;
1332
+ }
1333
+ public function getReminders() {
1334
+ return $this->reminders;
1335
+ }
1336
+ public function setSequence( $sequence) {
1337
+ $this->sequence = $sequence;
1338
+ }
1339
+ public function getSequence() {
1340
+ return $this->sequence;
1341
+ }
1342
+ public function setSource(Google_EventSource $source) {
1343
+ $this->source = $source;
1344
+ }
1345
+ public function getSource() {
1346
+ return $this->source;
1347
+ }
1348
+ public function setStart(Google_EventDateTime $start) {
1349
+ $this->start = $start;
1350
+ }
1351
+ public function getStart() {
1352
+ return $this->start;
1353
+ }
1354
+ public function setStatus( $status) {
1355
+ $this->status = $status;
1356
+ }
1357
+ public function getStatus() {
1358
+ return $this->status;
1359
+ }
1360
+ public function setSummary( $summary) {
1361
+ $this->summary = $summary;
1362
+ }
1363
+ public function getSummary() {
1364
+ return $this->summary;
1365
+ }
1366
+ public function setTransparency( $transparency) {
1367
+ $this->transparency = $transparency;
1368
+ }
1369
+ public function getTransparency() {
1370
+ return $this->transparency;
1371
+ }
1372
+ public function setUpdated( $updated) {
1373
+ $this->updated = $updated;
1374
+ }
1375
+ public function getUpdated() {
1376
+ return $this->updated;
1377
+ }
1378
+ public function setVisibility( $visibility) {
1379
+ $this->visibility = $visibility;
1380
+ }
1381
+ public function getVisibility() {
1382
+ return $this->visibility;
1383
+ }
1384
+ }
1385
+
1386
+ class Google_EventAttendee extends Google_Model {
1387
+ public $additionalGuests;
1388
+ public $comment;
1389
+ public $displayName;
1390
+ public $email;
1391
+ public $id;
1392
+ public $optional;
1393
+ public $organizer;
1394
+ public $resource;
1395
+ public $responseStatus;
1396
+ public $self;
1397
+ public function setAdditionalGuests( $additionalGuests) {
1398
+ $this->additionalGuests = $additionalGuests;
1399
+ }
1400
+ public function getAdditionalGuests() {
1401
+ return $this->additionalGuests;
1402
+ }
1403
+ public function setComment( $comment) {
1404
+ $this->comment = $comment;
1405
+ }
1406
+ public function getComment() {
1407
+ return $this->comment;
1408
+ }
1409
+ public function setDisplayName( $displayName) {
1410
+ $this->displayName = $displayName;
1411
+ }
1412
+ public function getDisplayName() {
1413
+ return $this->displayName;
1414
+ }
1415
+ public function setEmail( $email) {
1416
+ $this->email = $email;
1417
+ }
1418
+ public function getEmail() {
1419
+ return $this->email;
1420
+ }
1421
+ public function setId( $id) {
1422
+ $this->id = $id;
1423
+ }
1424
+ public function getId() {
1425
+ return $this->id;
1426
+ }
1427
+ public function setOptional( $optional) {
1428
+ $this->optional = $optional;
1429
+ }
1430
+ public function getOptional() {
1431
+ return $this->optional;
1432
+ }
1433
+ public function setOrganizer( $organizer) {
1434
+ $this->organizer = $organizer;
1435
+ }
1436
+ public function getOrganizer() {
1437
+ return $this->organizer;
1438
+ }
1439
+ public function setResource( $resource) {
1440
+ $this->resource = $resource;
1441
+ }
1442
+ public function getResource() {
1443
+ return $this->resource;
1444
+ }
1445
+ public function setResponseStatus( $responseStatus) {
1446
+ $this->responseStatus = $responseStatus;
1447
+ }
1448
+ public function getResponseStatus() {
1449
+ return $this->responseStatus;
1450
+ }
1451
+ public function setSelf( $self) {
1452
+ $this->self = $self;
1453
+ }
1454
+ public function getSelf() {
1455
+ return $this->self;
1456
+ }
1457
+ }
1458
+
1459
+ class Google_EventCreator extends Google_Model {
1460
+ public $displayName;
1461
+ public $email;
1462
+ public $id;
1463
+ public $self;
1464
+ public function setDisplayName( $displayName) {
1465
+ $this->displayName = $displayName;
1466
+ }
1467
+ public function getDisplayName() {
1468
+ return $this->displayName;
1469
+ }
1470
+ public function setEmail( $email) {
1471
+ $this->email = $email;
1472
+ }
1473
+ public function getEmail() {
1474
+ return $this->email;
1475
+ }
1476
+ public function setId( $id) {
1477
+ $this->id = $id;
1478
+ }
1479
+ public function getId() {
1480
+ return $this->id;
1481
+ }
1482
+ public function setSelf( $self) {
1483
+ $this->self = $self;
1484
+ }
1485
+ public function getSelf() {
1486
+ return $this->self;
1487
+ }
1488
+ }
1489
+
1490
+ class Google_EventDateTime extends Google_Model {
1491
+ public $date;
1492
+ public $dateTime;
1493
+ public $timeZone;
1494
+ public function setDate( $date) {
1495
+ $this->date = $date;
1496
+ }
1497
+ public function getDate() {
1498
+ return $this->date;
1499
+ }
1500
+ public function setDateTime( $dateTime) {
1501
+ $this->dateTime = $dateTime;
1502
+ }
1503
+ public function getDateTime() {
1504
+ return $this->dateTime;
1505
+ }
1506
+ public function setTimeZone( $timeZone) {
1507
+ $this->timeZone = $timeZone;
1508
+ }
1509
+ public function getTimeZone() {
1510
+ return $this->timeZone;
1511
+ }
1512
+ }
1513
+
1514
+ class Google_EventExtendedProperties extends Google_Model {
1515
+ public $private;
1516
+ public $shared;
1517
+ public function setPrivate( $private) {
1518
+ $this->private = $private;
1519
+ }
1520
+ public function getPrivate() {
1521
+ return $this->private;
1522
+ }
1523
+ public function setShared( $shared) {
1524
+ $this->shared = $shared;
1525
+ }
1526
+ public function getShared() {
1527
+ return $this->shared;
1528
+ }
1529
+ }
1530
+
1531
+ class Google_EventGadget extends Google_Model {
1532
+ public $display;
1533
+ public $height;
1534
+ public $iconLink;
1535
+ public $link;
1536
+ public $preferences;
1537
+ public $title;
1538
+ public $type;
1539
+ public $width;
1540
+ public function setDisplay( $display) {
1541
+ $this->display = $display;
1542
+ }
1543
+ public function getDisplay() {
1544
+ return $this->display;
1545
+ }
1546
+ public function setHeight( $height) {
1547
+ $this->height = $height;
1548
+ }
1549
+ public function getHeight() {
1550
+ return $this->height;
1551
+ }
1552
+ public function setIconLink( $iconLink) {
1553
+ $this->iconLink = $iconLink;
1554
+ }
1555
+ public function getIconLink() {
1556
+ return $this->iconLink;
1557
+ }
1558
+ public function setLink( $link) {
1559
+ $this->link = $link;
1560
+ }
1561
+ public function getLink() {
1562
+ return $this->link;
1563
+ }
1564
+ public function setPreferences( $preferences) {
1565
+ $this->preferences = $preferences;
1566
+ }
1567
+ public function getPreferences() {
1568
+ return $this->preferences;
1569
+ }
1570
+ public function setTitle( $title) {
1571
+ $this->title = $title;
1572
+ }
1573
+ public function getTitle() {
1574
+ return $this->title;
1575
+ }
1576
+ public function setType( $type) {
1577
+ $this->type = $type;
1578
+ }
1579
+ public function getType() {
1580
+ return $this->type;
1581
+ }
1582
+ public function setWidth( $width) {
1583
+ $this->width = $width;
1584
+ }
1585
+ public function getWidth() {
1586
+ return $this->width;
1587
+ }
1588
+ }
1589
+
1590
+ class Google_EventOrganizer extends Google_Model {
1591
+ public $displayName;
1592
+ public $email;
1593
+ public $id;
1594
+ public $self;
1595
+ public function setDisplayName( $displayName) {
1596
+ $this->displayName = $displayName;
1597
+ }
1598
+ public function getDisplayName() {
1599
+ return $this->displayName;
1600
+ }
1601
+ public function setEmail( $email) {
1602
+ $this->email = $email;
1603
+ }
1604
+ public function getEmail() {
1605
+ return $this->email;
1606
+ }
1607
+ public function setId( $id) {
1608
+ $this->id = $id;
1609
+ }
1610
+ public function getId() {
1611
+ return $this->id;
1612
+ }
1613
+ public function setSelf( $self) {
1614
+ $this->self = $self;
1615
+ }
1616
+ public function getSelf() {
1617
+ return $this->self;
1618
+ }
1619
+ }
1620
+
1621
+ class Google_EventReminder extends Google_Model {
1622
+ public $method;
1623
+ public $minutes;
1624
+ public function setMethod( $method) {
1625
+ $this->method = $method;
1626
+ }
1627
+ public function getMethod() {
1628
+ return $this->method;
1629
+ }
1630
+ public function setMinutes( $minutes) {
1631
+ $this->minutes = $minutes;
1632
+ }
1633
+ public function getMinutes() {
1634
+ return $this->minutes;
1635
+ }
1636
+ }
1637
+
1638
+ class Google_EventReminders extends Google_Model {
1639
+ protected $__overridesType = 'Google_EventReminder';
1640
+ protected $__overridesDataType = 'array';
1641
+ public $overrides;
1642
+ public $useDefault;
1643
+ public function setOverrides(/* array(Google_EventReminder) */ $overrides) {
1644
+ $this->assertIsArray($overrides, 'Google_EventReminder', __METHOD__);
1645
+ $this->overrides = $overrides;
1646
+ }
1647
+ public function getOverrides() {
1648
+ return $this->overrides;
1649
+ }
1650
+ public function setUseDefault( $useDefault) {
1651
+ $this->useDefault = $useDefault;
1652
+ }
1653
+ public function getUseDefault() {
1654
+ return $this->useDefault;
1655
+ }
1656
+ }
1657
+
1658
+ class Google_EventSource extends Google_Model {
1659
+ public $title;
1660
+ public $url;
1661
+ public function setTitle( $title) {
1662
+ $this->title = $title;
1663
+ }
1664
+ public function getTitle() {
1665
+ return $this->title;
1666
+ }
1667
+ public function setUrl( $url) {
1668
+ $this->url = $url;
1669
+ }
1670
+ public function getUrl() {
1671
+ return $this->url;
1672
+ }
1673
+ }
1674
+
1675
+ class Google_Events extends Google_Model {
1676
+ public $accessRole;
1677
+ protected $__defaultRemindersType = 'Google_EventReminder';
1678
+ protected $__defaultRemindersDataType = 'array';
1679
+ public $defaultReminders;
1680
+ public $description;
1681
+ public $etag;
1682
+ protected $__itemsType = 'Google_Event';
1683
+ protected $__itemsDataType = 'array';
1684
+ public $items;
1685
+ public $kind;
1686
+ public $nextPageToken;
1687
+ public $summary;
1688
+ public $timeZone;
1689
+ public $updated;
1690
+ public function setAccessRole( $accessRole) {
1691
+ $this->accessRole = $accessRole;
1692
+ }
1693
+ public function getAccessRole() {
1694
+ return $this->accessRole;
1695
+ }
1696
+ public function setDefaultReminders(/* array(Google_EventReminder) */ $defaultReminders) {
1697
+ $this->assertIsArray($defaultReminders, 'Google_EventReminder', __METHOD__);
1698
+ $this->defaultReminders = $defaultReminders;
1699
+ }
1700
+ public function getDefaultReminders() {
1701
+ return $this->defaultReminders;
1702
+ }
1703
+ public function setDescription( $description) {
1704
+ $this->description = $description;
1705
+ }
1706
+ public function getDescription() {
1707
+ return $this->description;
1708
+ }
1709
+ public function setEtag( $etag) {
1710
+ $this->etag = $etag;
1711
+ }
1712
+ public function getEtag() {
1713
+ return $this->etag;
1714
+ }
1715
+ public function setItems(/* array(Google_Event) */ $items) {
1716
+ $this->assertIsArray($items, 'Google_Event', __METHOD__);
1717
+ $this->items = $items;
1718
+ }
1719
+ public function getItems() {
1720
+ return $this->items;
1721
+ }
1722
+ public function setKind( $kind) {
1723
+ $this->kind = $kind;
1724
+ }
1725
+ public function getKind() {
1726
+ return $this->kind;
1727
+ }
1728
+ public function setNextPageToken( $nextPageToken) {
1729
+ $this->nextPageToken = $nextPageToken;
1730
+ }
1731
+ public function getNextPageToken() {
1732
+ return $this->nextPageToken;
1733
+ }
1734
+ public function setSummary( $summary) {
1735
+ $this->summary = $summary;
1736
+ }
1737
+ public function getSummary() {
1738
+ return $this->summary;
1739
+ }
1740
+ public function setTimeZone( $timeZone) {
1741
+ $this->timeZone = $timeZone;
1742
+ }
1743
+ public function getTimeZone() {
1744
+ return $this->timeZone;
1745
+ }
1746
+ public function setUpdated( $updated) {
1747
+ $this->updated = $updated;
1748
+ }
1749
+ public function getUpdated() {
1750
+ return $this->updated;
1751
+ }
1752
+ }
1753
+
1754
+ class Google_FreeBusyCalendar extends Google_Model {
1755
+ protected $__busyType = 'Google_TimePeriod';
1756
+ protected $__busyDataType = 'array';
1757
+ public $busy;
1758
+ protected $__errorsType = 'Google_Error';
1759
+ protected $__errorsDataType = 'array';
1760
+ public $errors;
1761
+ public function setBusy(/* array(Google_TimePeriod) */ $busy) {
1762
+ $this->assertIsArray($busy, 'Google_TimePeriod', __METHOD__);
1763
+ $this->busy = $busy;
1764
+ }
1765
+ public function getBusy() {
1766
+ return $this->busy;
1767
+ }
1768
+ public function setErrors(/* array(Google_Error) */ $errors) {
1769
+ $this->assertIsArray($errors, 'Google_Error', __METHOD__);
1770
+ $this->errors = $errors;
1771
+ }
1772
+ public function getErrors() {
1773
+ return $this->errors;
1774
+ }
1775
+ }
1776
+
1777
+ class Google_FreeBusyGroup extends Google_Model {
1778
+ public $calendars;
1779
+ protected $__errorsType = 'Google_Error';
1780
+ protected $__errorsDataType = 'array';
1781
+ public $errors;
1782
+ public function setCalendars(/* array(Google_string) */ $calendars) {
1783
+ $this->assertIsArray($calendars, 'Google_string', __METHOD__);
1784
+ $this->calendars = $calendars;
1785
+ }
1786
+ public function getCalendars() {
1787
+ return $this->calendars;
1788
+ }
1789
+ public function setErrors(/* array(Google_Error) */ $errors) {
1790
+ $this->assertIsArray($errors, 'Google_Error', __METHOD__);
1791
+ $this->errors = $errors;
1792
+ }
1793
+ public function getErrors() {
1794
+ return $this->errors;
1795
+ }
1796
+ }
1797
+
1798
+ class Google_FreeBusyRequest extends Google_Model {
1799
+ public $calendarExpansionMax;
1800
+ public $groupExpansionMax;
1801
+ protected $__itemsType = 'Google_FreeBusyRequestItem';
1802
+ protected $__itemsDataType = 'array';
1803
+ public $items;
1804
+ public $timeMax;
1805
+ public $timeMin;
1806
+ public $timeZone;
1807
+ public function setCalendarExpansionMax( $calendarExpansionMax) {
1808
+ $this->calendarExpansionMax = $calendarExpansionMax;
1809
+ }
1810
+ public function getCalendarExpansionMax() {
1811
+ return $this->calendarExpansionMax;
1812
+ }
1813
+ public function setGroupExpansionMax( $groupExpansionMax) {
1814
+ $this->groupExpansionMax = $groupExpansionMax;
1815
+ }
1816
+ public function getGroupExpansionMax() {
1817
+ return $this->groupExpansionMax;
1818
+ }
1819
+ public function setItems(/* array(Google_FreeBusyRequestItem) */ $items) {
1820
+ $this->assertIsArray($items, 'Google_FreeBusyRequestItem', __METHOD__);
1821
+ $this->items = $items;
1822
+ }
1823
+ public function getItems() {
1824
+ return $this->items;
1825
+ }
1826
+ public function setTimeMax( $timeMax) {
1827
+ $this->timeMax = $timeMax;
1828
+ }
1829
+ public function getTimeMax() {
1830
+ return $this->timeMax;
1831
+ }
1832
+ public function setTimeMin( $timeMin) {
1833
+ $this->timeMin = $timeMin;
1834
+ }
1835
+ public function getTimeMin() {
1836
+ return $this->timeMin;
1837
+ }
1838
+ public function setTimeZone( $timeZone) {
1839
+ $this->timeZone = $timeZone;
1840
+ }
1841
+ public function getTimeZone() {
1842
+ return $this->timeZone;
1843
+ }
1844
+ }
1845
+
1846
+ class Google_FreeBusyRequestItem extends Google_Model {
1847
+ public $id;
1848
+ public function setId( $id) {
1849
+ $this->id = $id;
1850
+ }
1851
+ public function getId() {
1852
+ return $this->id;
1853
+ }
1854
+ }
1855
+
1856
+ class Google_FreeBusyResponse extends Google_Model {
1857
+ protected $__calendarsType = 'Google_FreeBusyCalendar';
1858
+ protected $__calendarsDataType = 'map';
1859
+ public $calendars;
1860
+ protected $__groupsType = 'Google_FreeBusyGroup';
1861
+ protected $__groupsDataType = 'map';
1862
+ public $groups;
1863
+ public $kind;
1864
+ public $timeMax;
1865
+ public $timeMin;
1866
+ public function setCalendars(Google_FreeBusyCalendar $calendars) {
1867
+ $this->calendars = $calendars;
1868
+ }
1869
+ public function getCalendars() {
1870
+ return $this->calendars;
1871
+ }
1872
+ public function setGroups(Google_FreeBusyGroup $groups) {
1873
+ $this->groups = $groups;
1874
+ }
1875
+ public function getGroups() {
1876
+ return $this->groups;
1877
+ }
1878
+ public function setKind( $kind) {
1879
+ $this->kind = $kind;
1880
+ }
1881
+ public function getKind() {
1882
+ return $this->kind;
1883
+ }
1884
+ public function setTimeMax( $timeMax) {
1885
+ $this->timeMax = $timeMax;
1886
+ }
1887
+ public function getTimeMax() {
1888
+ return $this->timeMax;
1889
+ }
1890
+ public function setTimeMin( $timeMin) {
1891
+ $this->timeMin = $timeMin;
1892
+ }
1893
+ public function getTimeMin() {
1894
+ return $this->timeMin;
1895
+ }
1896
+ }
1897
+
1898
+ class Google_Setting extends Google_Model {
1899
+ public $etag;
1900
+ public $id;
1901
+ public $kind;
1902
+ public $value;
1903
+ public function setEtag( $etag) {
1904
+ $this->etag = $etag;
1905
+ }
1906
+ public function getEtag() {
1907
+ return $this->etag;
1908
+ }
1909
+ public function setId( $id) {
1910
+ $this->id = $id;
1911
+ }
1912
+ public function getId() {
1913
+ return $this->id;
1914
+ }
1915
+ public function setKind( $kind) {
1916
+ $this->kind = $kind;
1917
+ }
1918
+ public function getKind() {
1919
+ return $this->kind;
1920
+ }
1921
+ public function setValue( $value) {
1922
+ $this->value = $value;
1923
+ }
1924
+ public function getValue() {
1925
+ return $this->value;
1926
+ }
1927
+ }
1928
+
1929
+ class Google_Settings extends Google_Model {
1930
+ public $etag;
1931
+ protected $__itemsType = 'Google_Setting';
1932
+ protected $__itemsDataType = 'array';
1933
+ public $items;
1934
+ public $kind;
1935
+ public function setEtag( $etag) {
1936
+ $this->etag = $etag;
1937
+ }
1938
+ public function getEtag() {
1939
+ return $this->etag;
1940
+ }
1941
+ public function setItems(/* array(Google_Setting) */ $items) {
1942
+ $this->assertIsArray($items, 'Google_Setting', __METHOD__);
1943
+ $this->items = $items;
1944
+ }
1945
+ public function getItems() {
1946
+ return $this->items;
1947
+ }
1948
+ public function setKind( $kind) {
1949
+ $this->kind = $kind;
1950
+ }
1951
+ public function getKind() {
1952
+ return $this->kind;
1953
+ }
1954
+ }
1955
+
1956
+ class Google_TimePeriod extends Google_Model {
1957
+ public $end;
1958
+ public $start;
1959
+ public function setEnd( $end) {
1960
+ $this->end = $end;
1961
+ }
1962
+ public function getEnd() {
1963
+ return $this->end;
1964
+ }
1965
+ public function setStart( $start) {
1966
+ $this->start = $start;
1967
+ }
1968
+ public function getStart() {
1969
+ return $this->start;
1970
+ }
1971
+ }
googleclient/contrib/Google_CivicInfoService.php ADDED
@@ -0,0 +1,778 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /*
3
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
4
+ * use this file except in compliance with the License. You may obtain a copy of
5
+ * the License at
6
+ *
7
+ * http://www.apache.org/licenses/LICENSE-2.0
8
+ *
9
+ * Unless required by applicable law or agreed to in writing, software
10
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
11
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
12
+ * License for the specific language governing permissions and limitations under
13
+ * the License.
14
+ */
15
+
16
+
17
+ /**
18
+ * The "elections" collection of methods.
19
+ * Typical usage is:
20
+ * <code>
21
+ * $civicinfoService = new Google_CivicInfoService(...);
22
+ * $elections = $civicinfoService->elections;
23
+ * </code>
24
+ */
25
+ class Google_ElectionsServiceResource extends Google_ServiceResource {
26
+
27
+ /**
28
+ * List of available elections to query. (elections.electionQuery)
29
+ *
30
+ * @param array $optParams Optional parameters.
31
+ * @return Google_ElectionsQueryResponse
32
+ */
33
+ public function electionQuery($optParams = array()) {
34
+ $params = array();
35
+ $params = array_merge($params, $optParams);
36
+ $data = $this->__call('electionQuery', array($params));
37
+ if ($this->useObjects()) {
38
+ return new Google_ElectionsQueryResponse($data);
39
+ } else {
40
+ return $data;
41
+ }
42
+ }
43
+ /**
44
+ * Looks up information relevant to a voter based on the voter's registered address.
45
+ * (elections.voterInfoQuery)
46
+ *
47
+ * @param string $electionId The unique ID of the election to look up. A list of election IDs can be obtained at.https://www.googleapis.com/civicinfo/{version}/elections
48
+ * @param Google_VoterInfoRequest $postBody
49
+ * @param array $optParams Optional parameters.
50
+ *
51
+ * @opt_param bool officialOnly If set to true, only data from official state sources will be returned.
52
+ * @return Google_VoterInfoResponse
53
+ */
54
+ public function voterInfoQuery($electionId, Google_VoterInfoRequest $postBody, $optParams = array()) {
55
+ $params = array('electionId' => $electionId, 'postBody' => $postBody);
56
+ $params = array_merge($params, $optParams);
57
+ $data = $this->__call('voterInfoQuery', array($params));
58
+ if ($this->useObjects()) {
59
+ return new Google_VoterInfoResponse($data);
60
+ } else {
61
+ return $data;
62
+ }
63
+ }
64
+ }
65
+
66
+ /**
67
+ * Service definition for Google_CivicInfo (us_v1).
68
+ *
69
+ * <p>
70
+ * An API for accessing civic information.
71
+ * </p>
72
+ *
73
+ * <p>
74
+ * For more information about this service, see the
75
+ * <a href="https://developers.google.com/civic-information" target="_blank">API Documentation</a>
76
+ * </p>
77
+ *
78
+ * @author Google, Inc.
79
+ */
80
+ class Google_CivicInfoService extends Google_Service {
81
+ public $elections;
82
+ /**
83
+ * Constructs the internal representation of the CivicInfo service.
84
+ *
85
+ * @param Google_Client $client
86
+ */
87
+ public function __construct(Google_Client $client) {
88
+ $this->servicePath = 'civicinfo/us_v1/';
89
+ $this->version = 'us_v1';
90
+ $this->serviceName = 'civicinfo';
91
+
92
+ $client->addService($this->serviceName, $this->version);
93
+ $this->elections = new Google_ElectionsServiceResource($this, $this->serviceName, 'elections', json_decode('{"methods": {"electionQuery": {"id": "civicinfo.elections.electionQuery", "path": "elections", "httpMethod": "GET", "response": {"$ref": "ElectionsQueryResponse"}}, "voterInfoQuery": {"id": "civicinfo.elections.voterInfoQuery", "path": "voterinfo/{electionId}/lookup", "httpMethod": "POST", "parameters": {"electionId": {"type": "string", "required": true, "format": "int64", "location": "path"}, "officialOnly": {"type": "boolean", "default": "false", "location": "query"}}, "request": {"$ref": "VoterInfoRequest"}, "response": {"$ref": "VoterInfoResponse"}}}}', true));
94
+
95
+ }
96
+ }
97
+
98
+
99
+
100
+ class Google_AdministrationRegion extends Google_Model {
101
+ protected $__electionAdministrationBodyType = 'Google_AdministrativeBody';
102
+ protected $__electionAdministrationBodyDataType = '';
103
+ public $electionAdministrationBody;
104
+ public $id;
105
+ protected $__local_jurisdictionType = 'Google_AdministrationRegion';
106
+ protected $__local_jurisdictionDataType = '';
107
+ public $local_jurisdiction;
108
+ public $name;
109
+ protected $__sourcesType = 'Google_Source';
110
+ protected $__sourcesDataType = 'array';
111
+ public $sources;
112
+ public function setElectionAdministrationBody(Google_AdministrativeBody $electionAdministrationBody) {
113
+ $this->electionAdministrationBody = $electionAdministrationBody;
114
+ }
115
+ public function getElectionAdministrationBody() {
116
+ return $this->electionAdministrationBody;
117
+ }
118
+ public function setId( $id) {
119
+ $this->id = $id;
120
+ }
121
+ public function getId() {
122
+ return $this->id;
123
+ }
124
+ public function setLocal_jurisdiction(Google_AdministrationRegion $local_jurisdiction) {
125
+ $this->local_jurisdiction = $local_jurisdiction;
126
+ }
127
+ public function getLocal_jurisdiction() {
128
+ return $this->local_jurisdiction;
129
+ }
130
+ public function setName( $name) {
131
+ $this->name = $name;
132
+ }
133
+ public function getName() {
134
+ return $this->name;
135
+ }
136
+ public function setSources(/* array(Google_Source) */ $sources) {
137
+ $this->assertIsArray($sources, 'Google_Source', __METHOD__);
138
+ $this->sources = $sources;
139
+ }
140
+ public function getSources() {
141
+ return $this->sources;
142
+ }
143
+ }
144
+
145
+ class Google_AdministrativeBody extends Google_Model {
146
+ public $absenteeVotingInfoUrl;
147
+ public $ballotInfoUrl;
148
+ protected $__correspondenceAddressType = 'Google_SimpleAddressType';
149
+ protected $__correspondenceAddressDataType = '';
150
+ public $correspondenceAddress;
151
+ public $electionInfoUrl;
152
+ protected $__electionOfficialsType = 'Google_ElectionOfficial';
153
+ protected $__electionOfficialsDataType = 'array';
154
+ public $electionOfficials;
155
+ public $electionRegistrationConfirmationUrl;
156
+ public $electionRegistrationUrl;
157
+ public $electionRulesUrl;
158
+ public $hoursOfOperation;
159
+ public $name;
160
+ protected $__physicalAddressType = 'Google_SimpleAddressType';
161
+ protected $__physicalAddressDataType = '';
162
+ public $physicalAddress;
163
+ public $voter_services;
164
+ public $votingLocationFinderUrl;
165
+ public function setAbsenteeVotingInfoUrl( $absenteeVotingInfoUrl) {
166
+ $this->absenteeVotingInfoUrl = $absenteeVotingInfoUrl;
167
+ }
168
+ public function getAbsenteeVotingInfoUrl() {
169
+ return $this->absenteeVotingInfoUrl;
170
+ }
171
+ public function setBallotInfoUrl( $ballotInfoUrl) {
172
+ $this->ballotInfoUrl = $ballotInfoUrl;
173
+ }
174
+ public function getBallotInfoUrl() {
175
+ return $this->ballotInfoUrl;
176
+ }
177
+ public function setCorrespondenceAddress(Google_SimpleAddressType $correspondenceAddress) {
178
+ $this->correspondenceAddress = $correspondenceAddress;
179
+ }
180
+ public function getCorrespondenceAddress() {
181
+ return $this->correspondenceAddress;
182
+ }
183
+ public function setElectionInfoUrl( $electionInfoUrl) {
184
+ $this->electionInfoUrl = $electionInfoUrl;
185
+ }
186
+ public function getElectionInfoUrl() {
187
+ return $this->electionInfoUrl;
188
+ }
189
+ public function setElectionOfficials(/* array(Google_ElectionOfficial) */ $electionOfficials) {
190
+ $this->assertIsArray($electionOfficials, 'Google_ElectionOfficial', __METHOD__);
191
+ $this->electionOfficials = $electionOfficials;
192
+ }
193
+ public function getElectionOfficials() {
194
+ return $this->electionOfficials;
195
+ }
196
+ public function setElectionRegistrationConfirmationUrl( $electionRegistrationConfirmationUrl) {
197
+ $this->electionRegistrationConfirmationUrl = $electionRegistrationConfirmationUrl;
198
+ }
199
+ public function getElectionRegistrationConfirmationUrl() {
200
+ return $this->electionRegistrationConfirmationUrl;
201
+ }
202
+ public function setElectionRegistrationUrl( $electionRegistrationUrl) {
203
+ $this->electionRegistrationUrl = $electionRegistrationUrl;
204
+ }
205
+ public function getElectionRegistrationUrl() {
206
+ return $this->electionRegistrationUrl;
207
+ }
208
+ public function setElectionRulesUrl( $electionRulesUrl) {
209
+ $this->electionRulesUrl = $electionRulesUrl;
210
+ }
211
+ public function getElectionRulesUrl() {
212
+ return $this->electionRulesUrl;
213
+ }
214
+ public function setHoursOfOperation( $hoursOfOperation) {
215
+ $this->hoursOfOperation = $hoursOfOperation;
216
+ }
217
+ public function getHoursOfOperation() {
218
+ return $this->hoursOfOperation;
219
+ }
220
+ public function setName( $name) {
221
+ $this->name = $name;
222
+ }
223
+ public function getName() {
224
+ return $this->name;
225
+ }
226
+ public function setPhysicalAddress(Google_SimpleAddressType $physicalAddress) {
227
+ $this->physicalAddress = $physicalAddress;
228
+ }
229
+ public function getPhysicalAddress() {
230
+ return $this->physicalAddress;
231
+ }
232
+ public function setVoter_services(/* array(Google_string) */ $voter_services) {
233
+ $this->assertIsArray($voter_services, 'Google_string', __METHOD__);
234
+ $this->voter_services = $voter_services;
235
+ }
236
+ public function getVoter_services() {
237
+ return $this->voter_services;
238
+ }
239
+ public function setVotingLocationFinderUrl( $votingLocationFinderUrl) {
240
+ $this->votingLocationFinderUrl = $votingLocationFinderUrl;
241
+ }
242
+ public function getVotingLocationFinderUrl() {
243
+ return $this->votingLocationFinderUrl;
244
+ }
245
+ }
246
+
247
+ class Google_Candidate extends Google_Model {
248
+ public $candidateUrl;
249
+ protected $__channelsType = 'Google_Channel';
250
+ protected $__channelsDataType = 'array';
251
+ public $channels;
252
+ public $email;
253
+ public $name;
254
+ public $orderOnBallot;
255
+ public $party;
256
+ public $phone;
257
+ public $photoUrl;
258
+ public function setCandidateUrl( $candidateUrl) {
259
+ $this->candidateUrl = $candidateUrl;
260
+ }
261
+ public function getCandidateUrl() {
262
+ return $this->candidateUrl;
263
+ }
264
+ public function setChannels(/* array(Google_Channel) */ $channels) {
265
+ $this->assertIsArray($channels, 'Google_Channel', __METHOD__);
266
+ $this->channels = $channels;
267
+ }
268
+ public function getChannels() {
269
+ return $this->channels;
270
+ }
271
+ public function setEmail( $email) {
272
+ $this->email = $email;
273
+ }
274
+ public function getEmail() {
275
+ return $this->email;
276
+ }
277
+ public function setName( $name) {
278
+ $this->name = $name;
279
+ }
280
+ public function getName() {
281
+ return $this->name;
282
+ }
283
+ public function setOrderOnBallot( $orderOnBallot) {
284
+ $this->orderOnBallot = $orderOnBallot;
285
+ }
286
+ public function getOrderOnBallot() {
287
+ return $this->orderOnBallot;
288
+ }
289
+ public function setParty( $party) {
290
+ $this->party = $party;
291
+ }
292
+ public function getParty() {
293
+ return $this->party;
294
+ }
295
+ public function setPhone( $phone) {
296
+ $this->phone = $phone;
297
+ }
298
+ public function getPhone() {
299
+ return $this->phone;
300
+ }
301
+ public function setPhotoUrl( $photoUrl) {
302
+ $this->photoUrl = $photoUrl;
303
+ }
304
+ public function getPhotoUrl() {
305
+ return $this->photoUrl;
306
+ }
307
+ }
308
+
309
+ class Google_Channel extends Google_Model {
310
+ public $id;
311
+ public $type;
312
+ public function setId( $id) {
313
+ $this->id = $id;
314
+ }
315
+ public function getId() {
316
+ return $this->id;
317
+ }
318
+ public function setType( $type) {
319
+ $this->type = $type;
320
+ }
321
+ public function getType() {
322
+ return $this->type;
323
+ }
324
+ }
325
+
326
+ class Google_Contest extends Google_Model {
327
+ public $ballotPlacement;
328
+ protected $__candidatesType = 'Google_Candidate';
329
+ protected $__candidatesDataType = 'array';
330
+ public $candidates;
331
+ protected $__districtType = 'Google_ElectoralDistrict';
332
+ protected $__districtDataType = '';
333
+ public $district;
334
+ public $electorateSpecifications;
335
+ public $id;
336
+ public $level;
337
+ public $numberElected;
338
+ public $numberVotingFor;
339
+ public $office;
340
+ public $primaryParty;
341
+ public $referendumSubtitle;
342
+ public $referendumTitle;
343
+ public $referendumUrl;
344
+ protected $__sourcesType = 'Google_Source';
345
+ protected $__sourcesDataType = 'array';
346
+ public $sources;
347
+ public $special;
348
+ public $type;
349
+ public function setBallotPlacement( $ballotPlacement) {
350
+ $this->ballotPlacement = $ballotPlacement;
351
+ }
352
+ public function getBallotPlacement() {
353
+ return $this->ballotPlacement;
354
+ }
355
+ public function setCandidates(/* array(Google_Candidate) */ $candidates) {
356
+ $this->assertIsArray($candidates, 'Google_Candidate', __METHOD__);
357
+ $this->candidates = $candidates;
358
+ }
359
+ public function getCandidates() {
360
+ return $this->candidates;
361
+ }
362
+ public function setDistrict(Google_ElectoralDistrict $district) {
363
+ $this->district = $district;
364
+ }
365
+ public function getDistrict() {
366
+ return $this->district;
367
+ }
368
+ public function setElectorateSpecifications( $electorateSpecifications) {
369
+ $this->electorateSpecifications = $electorateSpecifications;
370
+ }
371
+ public function getElectorateSpecifications() {
372
+ return $this->electorateSpecifications;
373
+ }
374
+ public function setId( $id) {
375
+ $this->id = $id;
376
+ }
377
+ public function getId() {
378
+ return $this->id;
379
+ }
380
+ public function setLevel( $level) {
381
+ $this->level = $level;
382
+ }
383
+ public function getLevel() {
384
+ return $this->level;
385
+ }
386
+ public function setNumberElected( $numberElected) {
387
+ $this->numberElected = $numberElected;
388
+ }
389
+ public function getNumberElected() {
390
+ return $this->numberElected;
391
+ }
392
+ public function setNumberVotingFor( $numberVotingFor) {
393
+ $this->numberVotingFor = $numberVotingFor;
394
+ }
395
+ public function getNumberVotingFor() {
396
+ return $this->numberVotingFor;
397
+ }
398
+ public function setOffice( $office) {
399
+ $this->office = $office;
400
+ }
401
+ public function getOffice() {
402
+ return $this->office;
403
+ }
404
+ public function setPrimaryParty( $primaryParty) {
405
+ $this->primaryParty = $primaryParty;
406
+ }
407
+ public function getPrimaryParty() {
408
+ return $this->primaryParty;
409
+ }
410
+ public function setReferendumSubtitle( $referendumSubtitle) {
411
+ $this->referendumSubtitle = $referendumSubtitle;
412
+ }
413
+ public function getReferendumSubtitle() {
414
+ return $this->referendumSubtitle;
415
+ }
416
+ public function setReferendumTitle( $referendumTitle) {
417
+ $this->referendumTitle = $referendumTitle;
418
+ }
419
+ public function getReferendumTitle() {
420
+ return $this->referendumTitle;
421
+ }
422
+ public function setReferendumUrl( $referendumUrl) {
423
+ $this->referendumUrl = $referendumUrl;
424
+ }
425
+ public function getReferendumUrl() {
426
+ return $this->referendumUrl;
427
+ }
428
+ public function setSources(/* array(Google_Source) */ $sources) {
429
+ $this->assertIsArray($sources, 'Google_Source', __METHOD__);
430
+ $this->sources = $sources;
431
+ }
432
+ public function getSources() {
433
+ return $this->sources;
434
+ }
435
+ public function setSpecial( $special) {
436
+ $this->special = $special;
437
+ }
438
+ public function getSpecial() {
439
+ return $this->special;
440
+ }
441
+ public function setType( $type) {
442
+ $this->type = $type;
443
+ }
444
+ public function getType() {
445
+ return $this->type;
446
+ }
447
+ }
448
+
449
+ class Google_Election extends Google_Model {
450
+ public $electionDay;
451
+ public $id;
452
+ public $name;
453
+ public function setElectionDay( $electionDay) {
454
+ $this->electionDay = $electionDay;
455
+ }
456
+ public function getElectionDay() {
457
+ return $this->electionDay;
458
+ }
459
+ public function setId( $id) {
460
+ $this->id = $id;
461
+ }
462
+ public function getId() {
463
+ return $this->id;
464
+ }
465
+ public function setName( $name) {
466
+ $this->name = $name;
467
+ }
468
+ public function getName() {
469
+ return $this->name;
470
+ }
471
+ }
472
+
473
+ class Google_ElectionOfficial extends Google_Model {
474
+ public $emailAddress;
475
+ public $faxNumber;
476
+ public $name;
477
+ public $officePhoneNumber;
478
+ public $title;
479
+ public function setEmailAddress( $emailAddress) {
480
+ $this->emailAddress = $emailAddress;
481
+ }
482
+ public function getEmailAddress() {
483
+ return $this->emailAddress;
484
+ }
485
+ public function setFaxNumber( $faxNumber) {
486
+ $this->faxNumber = $faxNumber;
487
+ }
488
+ public function getFaxNumber() {
489
+ return $this->faxNumber;
490
+ }
491
+ public function setName( $name) {
492
+ $this->name = $name;
493
+ }
494
+ public function getName() {
495
+ return $this->name;
496
+ }
497
+ public function setOfficePhoneNumber( $officePhoneNumber) {
498
+ $this->officePhoneNumber = $officePhoneNumber;
499
+ }
500
+ public function getOfficePhoneNumber() {
501
+ return $this->officePhoneNumber;
502
+ }
503
+ public function setTitle( $title) {
504
+ $this->title = $title;
505
+ }
506
+ public function getTitle() {
507
+ return $this->title;
508
+ }
509
+ }
510
+
511
+ class Google_ElectionsQueryResponse extends Google_Model {
512
+ protected $__electionsType = 'Google_Election';
513
+ protected $__electionsDataType = 'array';
514
+ public $elections;
515
+ public $kind;
516
+ public function setElections(/* array(Google_Election) */ $elections) {
517
+ $this->assertIsArray($elections, 'Google_Election', __METHOD__);
518
+ $this->elections = $elections;
519
+ }
520
+ public function getElections() {
521
+ return $this->elections;
522
+ }
523
+ public function setKind( $kind) {
524
+ $this->kind = $kind;
525
+ }
526
+ public function getKind() {
527
+ return $this->kind;
528
+ }
529
+ }
530
+
531
+ class Google_ElectoralDistrict extends Google_Model {
532
+ public $id;
533
+ public $name;
534
+ public $scope;
535
+ public function setId( $id) {
536
+ $this->id = $id;
537
+ }
538
+ public function getId() {
539
+ return $this->id;
540
+ }
541
+ public function setName( $name) {
542
+ $this->name = $name;
543
+ }
544
+ public function getName() {
545
+ return $this->name;
546
+ }
547
+ public function setScope( $scope) {
548
+ $this->scope = $scope;
549
+ }
550
+ public function getScope() {
551
+ return $this->scope;
552
+ }
553
+ }
554
+
555
+ class Google_PollingLocation extends Google_Model {
556
+ protected $__addressType = 'Google_SimpleAddressType';
557
+ protected $__addressDataType = '';
558
+ public $address;
559
+ public $endDate;
560
+ public $id;
561
+ public $name;
562
+ public $notes;
563
+ public $pollingHours;
564
+ protected $__sourcesType = 'Google_Source';
565
+ protected $__sourcesDataType = 'array';
566
+ public $sources;
567
+ public $startDate;
568
+ public $voterServices;
569
+ public function setAddress(Google_SimpleAddressType $address) {
570
+ $this->address = $address;
571
+ }
572
+ public function getAddress() {
573
+ return $this->address;
574
+ }
575
+ public function setEndDate( $endDate) {
576
+ $this->endDate = $endDate;
577
+ }
578
+ public function getEndDate() {
579
+ return $this->endDate;
580
+ }
581
+ public function setId( $id) {
582
+ $this->id = $id;
583
+ }
584
+ public function getId() {
585
+ return $this->id;
586
+ }
587
+ public function setName( $name) {
588
+ $this->name = $name;
589
+ }
590
+ public function getName() {
591
+ return $this->name;
592
+ }
593
+ public function setNotes( $notes) {
594
+ $this->notes = $notes;
595
+ }
596
+ public function getNotes() {
597
+ return $this->notes;
598
+ }
599
+ public function setPollingHours( $pollingHours) {
600
+ $this->pollingHours = $pollingHours;
601
+ }
602
+ public function getPollingHours() {
603
+ return $this->pollingHours;
604
+ }
605
+ public function setSources(/* array(Google_Source) */ $sources) {
606
+ $this->assertIsArray($sources, 'Google_Source', __METHOD__);
607
+ $this->sources = $sources;
608
+ }
609
+ public function getSources() {
610
+ return $this->sources;
611
+ }
612
+ public function setStartDate( $startDate) {
613
+ $this->startDate = $startDate;
614
+ }
615
+ public function getStartDate() {
616
+ return $this->startDate;
617
+ }
618
+ public function setVoterServices( $voterServices) {
619
+ $this->voterServices = $voterServices;
620
+ }
621
+ public function getVoterServices() {
622
+ return $this->voterServices;
623
+ }
624
+ }
625
+
626
+ class Google_SimpleAddressType extends Google_Model {
627
+ public $city;
628
+ public $line1;
629
+ public $line2;
630
+ public $line3;
631
+ public $locationName;
632
+ public $state;
633
+ public $zip;
634
+ public function setCity( $city) {
635
+ $this->city = $city;
636
+ }
637
+ public function getCity() {
638
+ return $this->city;
639
+ }
640
+ public function setLine1( $line1) {
641
+ $this->line1 = $line1;
642
+ }
643
+ public function getLine1() {
644
+ return $this->line1;
645
+ }
646
+ public function setLine2( $line2) {
647
+ $this->line2 = $line2;
648
+ }
649
+ public function getLine2() {
650
+ return $this->line2;
651
+ }
652
+ public function setLine3( $line3) {
653
+ $this->line3 = $line3;
654
+ }
655
+ public function getLine3() {
656
+ return $this->line3;
657
+ }
658
+ public function setLocationName( $locationName) {
659
+ $this->locationName = $locationName;
660
+ }
661
+ public function getLocationName() {
662
+ return $this->locationName;
663
+ }
664
+ public function setState( $state) {
665
+ $this->state = $state;
666
+ }
667
+ public function getState() {
668
+ return $this->state;
669
+ }
670
+ public function setZip( $zip) {
671
+ $this->zip = $zip;
672
+ }
673
+ public function getZip() {
674
+ return $this->zip;
675
+ }
676
+ }
677
+
678
+ class Google_Source extends Google_Model {
679
+ public $name;
680
+ public $official;
681
+ public function setName( $name) {
682
+ $this->name = $name;
683
+ }
684
+ public function getName() {
685
+ return $this->name;
686
+ }
687
+ public function setOfficial( $official) {
688
+ $this->official = $official;
689
+ }
690
+ public function getOfficial() {
691
+ return $this->official;
692
+ }
693
+ }
694
+
695
+ class Google_VoterInfoRequest extends Google_Model {
696
+ public $address;
697
+ public function setAddress( $address) {
698
+ $this->address = $address;
699
+ }
700
+ public function getAddress() {
701
+ return $this->address;
702
+ }
703
+ }
704
+
705
+ class Google_VoterInfoResponse extends Google_Model {
706
+ protected $__contestsType = 'Google_Contest';
707
+ protected $__contestsDataType = 'array';
708
+ public $contests;
709
+ protected $__earlyVoteSitesType = 'Google_PollingLocation';
710
+ protected $__earlyVoteSitesDataType = 'array';
711
+ public $earlyVoteSites;
712
+ protected $__electionType = 'Google_Election';
713
+ protected $__electionDataType = '';
714
+ public $election;
715
+ public $kind;
716
+ protected $__normalizedInputType = 'Google_SimpleAddressType';
717
+ protected $__normalizedInputDataType = '';
718
+ public $normalizedInput;
719
+ protected $__pollingLocationsType = 'Google_PollingLocation';
720
+ protected $__pollingLocationsDataType = 'array';
721
+ public $pollingLocations;
722
+ protected $__stateType = 'Google_AdministrationRegion';
723
+ protected $__stateDataType = 'array';
724
+ public $state;
725
+ public $status;
726
+ public function setContests(/* array(Google_Contest) */ $contests) {
727
+ $this->assertIsArray($contests, 'Google_Contest', __METHOD__);
728
+ $this->contests = $contests;
729
+ }
730
+ public function getContests() {
731
+ return $this->contests;
732
+ }
733
+ public function setEarlyVoteSites(/* array(Google_PollingLocation) */ $earlyVoteSites) {
734
+ $this->assertIsArray($earlyVoteSites, 'Google_PollingLocation', __METHOD__);
735
+ $this->earlyVoteSites = $earlyVoteSites;
736
+ }
737
+ public function getEarlyVoteSites() {
738
+ return $this->earlyVoteSites;
739
+ }
740
+ public function setElection(Google_Election $election) {
741
+ $this->election = $election;
742
+ }
743
+ public function getElection() {
744
+ return $this->election;
745
+ }
746
+ public function setKind( $kind) {
747
+ $this->kind = $kind;
748
+ }
749
+ public function getKind() {
750
+ return $this->kind;
751
+ }
752
+ public function setNormalizedInput(Google_SimpleAddressType $normalizedInput) {
753
+ $this->normalizedInput = $normalizedInput;
754
+ }
755
+ public function getNormalizedInput() {
756
+ return $this->normalizedInput;
757
+ }
758
+ public function setPollingLocations(/* array(Google_PollingLocation) */ $pollingLocations) {
759
+ $this->assertIsArray($pollingLocations, 'Google_PollingLocation', __METHOD__);
760
+ $this->pollingLocations = $pollingLocations;
761
+ }
762
+ public function getPollingLocations() {
763
+ return $this->pollingLocations;
764
+ }
765
+ public function setState(/* array(Google_AdministrationRegion) */ $state) {
766
+ $this->assertIsArray($state, 'Google_AdministrationRegion', __METHOD__);
767
+ $this->state = $state;
768
+ }
769
+ public function getState() {
770
+ return $this->state;
771
+ }
772
+ public function setStatus( $status) {
773
+ $this->status = $status;
774
+ }
775
+ public function getStatus() {
776
+ return $this->status;
777
+ }
778
+ }
googleclient/contrib/Google_ComputeService.php ADDED
@@ -0,0 +1,4403 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /*
3
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
4
+ * use this file except in compliance with the License. You may obtain a copy of
5
+ * the License at
6
+ *
7
+ * http://www.apache.org/licenses/LICENSE-2.0
8
+ *
9
+ * Unless required by applicable law or agreed to in writing, software
10
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
11
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
12
+ * License for the specific language governing permissions and limitations under
13
+ * the License.
14
+ */
15
+
16
+
17
+ /**
18
+ * The "addresses" collection of methods.
19
+ * Typical usage is:
20
+ * <code>
21
+ * $computeService = new Google_ComputeService(...);
22
+ * $addresses = $computeService->addresses;
23
+ * </code>
24
+ */
25
+ class Google_AddressesServiceResource extends Google_ServiceResource {
26
+
27
+ /**
28
+ * Retrieves the list of addresses grouped by scope. (addresses.aggregatedList)
29
+ *
30
+ * @param string $project Name of the project scoping this request.
31
+ * @param array $optParams Optional parameters.
32
+ *
33
+ * @opt_param string filter Optional. Filter expression for filtering listed resources.
34
+ * @opt_param string maxResults Optional. Maximum count of results to be returned. Maximum and default value is 100.
35
+ * @opt_param string pageToken Optional. Tag returned by a previous list request truncated by maxResults. Used to continue a previous list request.
36
+ * @return Google_AddressAggregatedList
37
+ */
38
+ public function aggregatedList($project, $optParams = array()) {
39
+ $params = array('project' => $project);
40
+ $params = array_merge($params, $optParams);
41
+ $data = $this->__call('aggregatedList', array($params));
42
+ if ($this->useObjects()) {
43
+ return new Google_AddressAggregatedList($data);
44
+ } else {
45
+ return $data;
46
+ }
47
+ }
48
+ /**
49
+ * Deletes the specified address resource. (addresses.delete)
50
+ *
51
+ * @param string $project Name of the project scoping this request.
52
+ * @param string $region Name of the region scoping this request.
53
+ * @param string $address Name of the address resource to delete.
54
+ * @param array $optParams Optional parameters.
55
+ * @return Google_Operation
56
+ */
57
+ public function delete($project, $region, $address, $optParams = array()) {
58
+ $params = array('project' => $project, 'region' => $region, 'address' => $address);
59
+ $params = array_merge($params, $optParams);
60
+ $data = $this->__call('delete', array($params));
61
+ if ($this->useObjects()) {
62
+ return new Google_Operation($data);
63
+ } else {
64
+ return $data;
65
+ }
66
+ }
67
+ /**
68
+ * Returns the specified address resource. (addresses.get)
69
+ *
70
+ * @param string $project Name of the project scoping this request.
71
+ * @param string $region Name of the region scoping this request.
72
+ * @param string $address Name of the address resource to return.
73
+ * @param array $optParams Optional parameters.
74
+ * @return Google_Address
75
+ */
76
+ public function get($project, $region, $address, $optParams = array()) {
77
+ $params = array('project' => $project, 'region' => $region, 'address' => $address);
78
+ $params = array_merge($params, $optParams);
79
+ $data = $this->__call('get', array($params));
80
+ if ($this->useObjects()) {
81
+ return new Google_Address($data);
82
+ } else {
83
+ return $data;
84
+ }
85
+ }
86
+ /**
87
+ * Creates an address resource in the specified project using the data included in the request.
88
+ * (addresses.insert)
89
+ *
90
+ * @param string $project Name of the project scoping this request.
91
+ * @param string $region Name of the region scoping this request.
92
+ * @param Google_Address $postBody
93
+ * @param array $optParams Optional parameters.
94
+ * @return Google_Operation
95
+ */
96
+ public function insert($project, $region, Google_Address $postBody, $optParams = array()) {
97
+ $params = array('project' => $project, 'region' => $region, 'postBody' => $postBody);
98
+ $params = array_merge($params, $optParams);
99
+ $data = $this->__call('insert', array($params));
100
+ if ($this->useObjects()) {
101
+ return new Google_Operation($data);
102
+ } else {
103
+ return $data;
104
+ }
105
+ }
106
+ /**
107
+ * Retrieves the list of address resources contained within the specified region. (addresses.list)
108
+ *
109
+ * @param string $project Name of the project scoping this request.
110
+ * @param string $region Name of the region scoping this request.
111
+ * @param array $optParams Optional parameters.
112
+ *
113
+ * @opt_param string filter Optional. Filter expression for filtering listed resources.
114
+ * @opt_param string maxResults Optional. Maximum count of results to be returned. Maximum and default value is 100.
115
+ * @opt_param string pageToken Optional. Tag returned by a previous list request truncated by maxResults. Used to continue a previous list request.
116
+ * @return Google_AddressList
117
+ */
118
+ public function listAddresses($project, $region, $optParams = array()) {
119
+ $params = array('project' => $project, 'region' => $region);
120
+ $params = array_merge($params, $optParams);
121
+ $data = $this->__call('list', array($params));
122
+ if ($this->useObjects()) {
123
+ return new Google_AddressList($data);
124
+ } else {
125
+ return $data;
126
+ }
127
+ }
128
+ }
129
+
130
+ /**
131
+ * The "disks" collection of methods.
132
+ * Typical usage is:
133
+ * <code>
134
+ * $computeService = new Google_ComputeService(...);
135
+ * $disks = $computeService->disks;
136
+ * </code>
137
+ */
138
+ class Google_DisksServiceResource extends Google_ServiceResource {
139
+
140
+ /**
141
+ * Retrieves the list of disks grouped by scope. (disks.aggregatedList)
142
+ *
143
+ * @param string $project Name of the project scoping this request.
144
+ * @param array $optParams Optional parameters.
145
+ *
146
+ * @opt_param string filter Optional. Filter expression for filtering listed resources.
147
+ * @opt_param string maxResults Optional. Maximum count of results to be returned. Maximum and default value is 100.
148
+ * @opt_param string pageToken Optional. Tag returned by a previous list request truncated by maxResults. Used to continue a previous list request.
149
+ * @return Google_DiskAggregatedList
150
+ */
151
+ public function aggregatedList($project, $optParams = array()) {
152
+ $params = array('project' => $project);
153
+ $params = array_merge($params, $optParams);
154
+ $data = $this->__call('aggregatedList', array($params));
155
+ if ($this->useObjects()) {
156
+ return new Google_DiskAggregatedList($data);
157
+ } else {
158
+ return $data;
159
+ }
160
+ }
161
+ /**
162
+ * (disks.createSnapshot)
163
+ *
164
+ * @param string $project Name of the project scoping this request.
165
+ * @param string $zone Name of the zone scoping this request.
166
+ * @param string $disk Name of the persistent disk resource to delete.
167
+ * @param Google_Snapshot $postBody
168
+ * @param array $optParams Optional parameters.
169
+ * @return Google_Operation
170
+ */
171
+ public function createSnapshot($project, $zone, $disk, Google_Snapshot $postBody, $optParams = array()) {
172
+ $params = array('project' => $project, 'zone' => $zone, 'disk' => $disk, 'postBody' => $postBody);
173
+ $params = array_merge($params, $optParams);
174
+ $data = $this->__call('createSnapshot', array($params));
175
+ if ($this->useObjects()) {
176
+ return new Google_Operation($data);
177
+ } else {
178
+ return $data;
179
+ }
180
+ }
181
+ /**
182
+ * Deletes the specified persistent disk resource. (disks.delete)
183
+ *
184
+ * @param string $project Name of the project scoping this request.
185
+ * @param string $zone Name of the zone scoping this request.
186
+ * @param string $disk Name of the persistent disk resource to delete.
187
+ * @param array $optParams Optional parameters.
188
+ * @return Google_Operation
189
+ */
190
+ public function delete($project, $zone, $disk, $optParams = array()) {
191
+ $params = array('project' => $project, 'zone' => $zone, 'disk' => $disk);
192
+ $params = array_merge($params, $optParams);
193
+ $data = $this->__call('delete', array($params));
194
+ if ($this->useObjects()) {
195
+ return new Google_Operation($data);
196
+ } else {
197
+ return $data;
198
+ }
199
+ }
200
+ /**
201
+ * Returns the specified persistent disk resource. (disks.get)
202
+ *
203
+ * @param string $project Name of the project scoping this request.
204
+ * @param string $zone Name of the zone scoping this request.
205
+ * @param string $disk Name of the persistent disk resource to return.
206
+ * @param array $optParams Optional parameters.
207
+ * @return Google_Disk
208
+ */
209
+ public function get($project, $zone, $disk, $optParams = array()) {
210
+ $params = array('project' => $project, 'zone' => $zone, 'disk' => $disk);
211
+ $params = array_merge($params, $optParams);
212
+ $data = $this->__call('get', array($params));
213
+ if ($this->useObjects()) {
214
+ return new Google_Disk($data);
215
+ } else {
216
+ return $data;
217
+ }
218
+ }
219
+ /**
220
+ * Creates a persistent disk resource in the specified project using the data included in the
221
+ * request. (disks.insert)
222
+ *
223
+ * @param string $project Name of the project scoping this request.
224
+ * @param string $zone Name of the zone scoping this request.
225
+ * @param Google_Disk $postBody
226
+ * @param array $optParams Optional parameters.
227
+ *
228
+ * @opt_param string sourceImage Optional. Source image to restore onto a disk.
229
+ * @return Google_Operation
230
+ */
231
+ public function insert($project, $zone, Google_Disk $postBody, $optParams = array()) {
232
+ $params = array('project' => $project, 'zone' => $zone, 'postBody' => $postBody);
233
+ $params = array_merge($params, $optParams);
234
+ $data = $this->__call('insert', array($params));
235
+ if ($this->useObjects()) {
236
+ return new Google_Operation($data);
237
+ } else {
238
+ return $data;
239
+ }
240
+ }
241
+ /**
242
+ * Retrieves the list of persistent disk resources contained within the specified zone. (disks.list)
243
+ *
244
+ * @param string $project Name of the project scoping this request.
245
+ * @param string $zone Name of the zone scoping this request.
246
+ * @param array $optParams Optional parameters.
247
+ *
248
+ * @opt_param string filter Optional. Filter expression for filtering listed resources.
249
+ * @opt_param string maxResults Optional. Maximum count of results to be returned. Maximum and default value is 100.
250
+ * @opt_param string pageToken Optional. Tag returned by a previous list request truncated by maxResults. Used to continue a previous list request.
251
+ * @return Google_DiskList
252
+ */
253
+ public function listDisks($project, $zone, $optParams = array()) {
254
+ $params = array('project' => $project, 'zone' => $zone);
255
+ $params = array_merge($params, $optParams);
256
+ $data = $this->__call('list', array($params));
257
+ if ($this->useObjects()) {
258
+ return new Google_DiskList($data);
259
+ } else {
260
+ return $data;
261
+ }
262
+ }
263
+ }
264
+
265
+ /**
266
+ * The "firewalls" collection of methods.
267
+ * Typical usage is:
268
+ * <code>
269
+ * $computeService = new Google_ComputeService(...);
270
+ * $firewalls = $computeService->firewalls;
271
+ * </code>
272
+ */
273
+ class Google_FirewallsServiceResource extends Google_ServiceResource {
274
+
275
+ /**
276
+ * Deletes the specified firewall resource. (firewalls.delete)
277
+ *
278
+ * @param string $project Name of the project scoping this request.
279
+ * @param string $firewall Name of the firewall resource to delete.
280
+ * @param array $optParams Optional parameters.
281
+ * @return Google_Operation
282
+ */
283
+ public function delete($project, $firewall, $optParams = array()) {
284
+ $params = array('project' => $project, 'firewall' => $firewall);
285
+ $params = array_merge($params, $optParams);
286
+ $data = $this->__call('delete', array($params));
287
+ if ($this->useObjects()) {
288
+ return new Google_Operation($data);
289
+ } else {
290
+ return $data;
291
+ }
292
+ }
293
+ /**
294
+ * Returns the specified firewall resource. (firewalls.get)
295
+ *
296
+ * @param string $project Name of the project scoping this request.
297
+ * @param string $firewall Name of the firewall resource to return.
298
+ * @param array $optParams Optional parameters.
299
+ * @return Google_Firewall
300
+ */
301
+ public function get($project, $firewall, $optParams = array()) {
302
+ $params = array('project' => $project, 'firewall' => $firewall);
303
+ $params = array_merge($params, $optParams);
304
+ $data = $this->__call('get', array($params));
305
+ if ($this->useObjects()) {
306
+ return new Google_Firewall($data);
307
+ } else {
308
+ return $data;
309
+ }
310
+ }
311
+ /**
312
+ * Creates a firewall resource in the specified project using the data included in the request.
313
+ * (firewalls.insert)
314
+ *
315
+ * @param string $project Name of the project scoping this request.
316
+ * @param Google_Firewall $postBody
317
+ * @param array $optParams Optional parameters.
318
+ * @return Google_Operation
319
+ */
320
+ public function insert($project, Google_Firewall $postBody, $optParams = array()) {
321
+ $params = array('project' => $project, 'postBody' => $postBody);
322
+ $params = array_merge($params, $optParams);
323
+ $data = $this->__call('insert', array($params));
324
+ if ($this->useObjects()) {
325
+ return new Google_Operation($data);
326
+ } else {
327
+ return $data;
328
+ }
329
+ }
330
+ /**
331
+ * Retrieves the list of firewall resources available to the specified project. (firewalls.list)
332
+ *
333
+ * @param string $project Name of the project scoping this request.
334
+ * @param array $optParams Optional parameters.
335
+ *
336
+ * @opt_param string filter Optional. Filter expression for filtering listed resources.
337
+ * @opt_param string maxResults Optional. Maximum count of results to be returned. Maximum and default value is 100.
338
+ * @opt_param string pageToken Optional. Tag returned by a previous list request truncated by maxResults. Used to continue a previous list request.
339
+ * @return Google_FirewallList
340
+ */
341
+ public function listFirewalls($project, $optParams = array()) {
342
+ $params = array('project' => $project);
343
+ $params = array_merge($params, $optParams);
344
+ $data = $this->__call('list', array($params));
345
+ if ($this->useObjects()) {
346
+ return new Google_FirewallList($data);
347
+ } else {
348
+ return $data;
349
+ }
350
+ }
351
+ /**
352
+ * Updates the specified firewall resource with the data included in the request. This method
353
+ * supports patch semantics. (firewalls.patch)
354
+ *
355
+ * @param string $project Name of the project scoping this request.
356
+ * @param string $firewall Name of the firewall resource to update.
357
+ * @param Google_Firewall $postBody
358
+ * @param array $optParams Optional parameters.
359
+ * @return Google_Operation
360
+ */
361
+ public function patch($project, $firewall, Google_Firewall $postBody, $optParams = array()) {
362
+ $params = array('project' => $project, 'firewall' => $firewall, 'postBody' => $postBody);
363
+ $params = array_merge($params, $optParams);
364
+ $data = $this->__call('patch', array($params));
365
+ if ($this->useObjects()) {
366
+ return new Google_Operation($data);
367
+ } else {
368
+ return $data;
369
+ }
370
+ }
371
+ /**
372
+ * Updates the specified firewall resource with the data included in the request. (firewalls.update)
373
+ *
374
+ * @param string $project Name of the project scoping this request.
375
+ * @param string $firewall Name of the firewall resource to update.
376
+ * @param Google_Firewall $postBody
377
+ * @param array $optParams Optional parameters.
378
+ * @return Google_Operation
379
+ */
380
+ public function update($project, $firewall, Google_Firewall $postBody, $optParams = array()) {
381
+ $params = array('project' => $project, 'firewall' => $firewall, 'postBody' => $postBody);
382
+ $params = array_merge($params, $optParams);
383
+ $data = $this->__call('update', array($params));
384
+ if ($this->useObjects()) {
385
+ return new Google_Operation($data);
386
+ } else {
387
+ return $data;
388
+ }
389
+ }
390
+ }
391
+
392
+ /**
393
+ * The "globalOperations" collection of methods.
394
+ * Typical usage is:
395
+ * <code>
396
+ * $computeService = new Google_ComputeService(...);
397
+ * $globalOperations = $computeService->globalOperations;
398
+ * </code>
399
+ */
400
+ class Google_GlobalOperationsServiceResource extends Google_ServiceResource {
401
+
402
+ /**
403
+ * Retrieves the list of all operations grouped by scope. (globalOperations.aggregatedList)
404
+ *
405
+ * @param string $project Name of the project scoping this request.
406
+ * @param array $optParams Optional parameters.
407
+ *
408
+ * @opt_param string filter Optional. Filter expression for filtering listed resources.
409
+ * @opt_param string maxResults Optional. Maximum count of results to be returned. Maximum and default value is 100.
410
+ * @opt_param string pageToken Optional. Tag returned by a previous list request truncated by maxResults. Used to continue a previous list request.
411
+ * @return Google_OperationAggregatedList
412
+ */
413
+ public function aggregatedList($project, $optParams = array()) {
414
+ $params = array('project' => $project);
415
+ $params = array_merge($params, $optParams);
416
+ $data = $this->__call('aggregatedList', array($params));
417
+ if ($this->useObjects()) {
418
+ return new Google_OperationAggregatedList($data);
419
+ } else {
420
+ return $data;
421
+ }
422
+ }
423
+ /**
424
+ * Deletes the specified operation resource. (globalOperations.delete)
425
+ *
426
+ * @param string $project Name of the project scoping this request.
427
+ * @param string $operation Name of the operation resource to delete.
428
+ * @param array $optParams Optional parameters.
429
+ */
430
+ public function delete($project, $operation, $optParams = array()) {
431
+ $params = array('project' => $project, 'operation' => $operation);
432
+ $params = array_merge($params, $optParams);
433
+ $data = $this->__call('delete', array($params));
434
+ return $data;
435
+ }
436
+ /**
437
+ * Retrieves the specified operation resource. (globalOperations.get)
438
+ *
439
+ * @param string $project Name of the project scoping this request.
440
+ * @param string $operation Name of the operation resource to return.
441
+ * @param array $optParams Optional parameters.
442
+ * @return Google_Operation
443
+ */
444
+ public function get($project, $operation, $optParams = array()) {
445
+ $params = array('project' => $project, 'operation' => $operation);
446
+ $params = array_merge($params, $optParams);
447
+ $data = $this->__call('get', array($params));
448
+ if ($this->useObjects()) {
449
+ return new Google_Operation($data);
450
+ } else {
451
+ return $data;
452
+ }
453
+ }
454
+ /**
455
+ * Retrieves the list of operation resources contained within the specified project.
456
+ * (globalOperations.list)
457
+ *
458
+ * @param string $project Name of the project scoping this request.
459
+ * @param array $optParams Optional parameters.
460
+ *
461
+ * @opt_param string filter Optional. Filter expression for filtering listed resources.
462
+ * @opt_param string maxResults Optional. Maximum count of results to be returned. Maximum and default value is 100.
463
+ * @opt_param string pageToken Optional. Tag returned by a previous list request truncated by maxResults. Used to continue a previous list request.
464
+ * @return Google_OperationList
465
+ */
466
+ public function listGlobalOperations($project, $optParams = array()) {
467
+ $params = array('project' => $project);
468
+ $params = array_merge($params, $optParams);
469
+ $data = $this->__call('list', array($params));
470
+ if ($this->useObjects()) {
471
+ return new Google_OperationList($data);
472
+ } else {
473
+ return $data;
474
+ }
475
+ }
476
+ }
477
+
478
+ /**
479
+ * The "images" collection of methods.
480
+ * Typical usage is:
481
+ * <code>
482
+ * $computeService = new Google_ComputeService(...);
483
+ * $images = $computeService->images;
484
+ * </code>
485
+ */
486
+ class Google_ImagesServiceResource extends Google_ServiceResource {
487
+
488
+ /**
489
+ * Deletes the specified image resource. (images.delete)
490
+ *
491
+ * @param string $project Name of the project scoping this request.
492
+ * @param string $image Name of the image resource to delete.
493
+ * @param array $optParams Optional parameters.
494
+ * @return Google_Operation
495
+ */
496
+ public function delete($project, $image, $optParams = array()) {
497
+ $params = array('project' => $project, 'image' => $image);
498
+ $params = array_merge($params, $optParams);
499
+ $data = $this->__call('delete', array($params));
500
+ if ($this->useObjects()) {
501
+ return new Google_Operation($data);
502
+ } else {
503
+ return $data;
504
+ }
505
+ }
506
+ /**
507
+ * Sets the deprecation status of an image. If no message body is given, clears the deprecation
508
+ * status instead. (images.deprecate)
509
+ *
510
+ * @param string $project Name of the project scoping this request.
511
+ * @param string $image Image name.
512
+ * @param Google_DeprecationStatus $postBody
513
+ * @param array $optParams Optional parameters.
514
+ * @return Google_Operation
515
+ */
516
+ public function deprecate($project, $image, Google_DeprecationStatus $postBody, $optParams = array()) {
517
+ $params = array('project' => $project, 'image' => $image, 'postBody' => $postBody);
518
+ $params = array_merge($params, $optParams);
519
+ $data = $this->__call('deprecate', array($params));
520
+ if ($this->useObjects()) {
521
+ return new Google_Operation($data);
522
+ } else {
523
+ return $data;
524
+ }
525
+ }
526
+ /**
527
+ * Returns the specified image resource. (images.get)
528
+ *
529
+ * @param string $project Name of the project scoping this request.
530
+ * @param string $image Name of the image resource to return.
531
+ * @param array $optParams Optional parameters.
532
+ * @return Google_Image
533
+ */
534
+ public function get($project, $image, $optParams = array()) {
535
+ $params = array('project' => $project, 'image' => $image);
536
+ $params = array_merge($params, $optParams);
537
+ $data = $this->__call('get', array($params));
538
+ if ($this->useObjects()) {
539
+ return new Google_Image($data);
540
+ } else {
541
+ return $data;
542
+ }
543
+ }
544
+ /**
545
+ * Creates an image resource in the specified project using the data included in the request.
546
+ * (images.insert)
547
+ *
548
+ * @param string $project Name of the project scoping this request.
549
+ * @param Google_Image $postBody
550
+ * @param array $optParams Optional parameters.
551
+ * @return Google_Operation
552
+ */
553
+ public function insert($project, Google_Image $postBody, $optParams = array()) {
554
+ $params = array('project' => $project, 'postBody' => $postBody);
555
+ $params = array_merge($params, $optParams);
556
+ $data = $this->__call('insert', array($params));
557
+ if ($this->useObjects()) {
558
+ return new Google_Operation($data);
559
+ } else {
560
+ return $data;
561
+ }
562
+ }
563
+ /**
564
+ * Retrieves the list of image resources available to the specified project. (images.list)
565
+ *
566
+ * @param string $project Name of the project scoping this request.
567
+ * @param array $optParams Optional parameters.
568
+ *
569
+ * @opt_param string filter Optional. Filter expression for filtering listed resources.
570
+ * @opt_param string maxResults Optional. Maximum count of results to be returned. Maximum and default value is 100.
571
+ * @opt_param string pageToken Optional. Tag returned by a previous list request truncated by maxResults. Used to continue a previous list request.
572
+ * @return Google_ImageList
573
+ */
574
+ public function listImages($project, $optParams = array()) {
575
+ $params = array('project' => $project);
576
+ $params = array_merge($params, $optParams);
577
+ $data = $this->__call('list', array($params));
578
+ if ($this->useObjects()) {
579
+ return new Google_ImageList($data);
580
+ } else {
581
+ return $data;
582
+ }
583
+ }
584
+ }
585
+
586
+ /**
587
+ * The "instances" collection of methods.
588
+ * Typical usage is:
589
+ * <code>
590
+ * $computeService = new Google_ComputeService(...);
591
+ * $instances = $computeService->instances;
592
+ * </code>
593
+ */
594
+ class Google_InstancesServiceResource extends Google_ServiceResource {
595
+
596
+ /**
597
+ * Adds an access config to an instance's network interface. (instances.addAccessConfig)
598
+ *
599
+ * @param string $project Project name.
600
+ * @param string $zone Name of the zone scoping this request.
601
+ * @param string $instance Instance name.
602
+ * @param string $networkInterface Network interface name.
603
+ * @param Google_AccessConfig $postBody
604
+ * @param array $optParams Optional parameters.
605
+ * @return Google_Operation
606
+ */
607
+ public function addAccessConfig($project, $zone, $instance, $networkInterface, Google_AccessConfig $postBody, $optParams = array()) {
608
+ $params = array('project' => $project, 'zone' => $zone, 'instance' => $instance, 'networkInterface' => $networkInterface, 'postBody' => $postBody);
609
+ $params = array_merge($params, $optParams);
610
+ $data = $this->__call('addAccessConfig', array($params));
611
+ if ($this->useObjects()) {
612
+ return new Google_Operation($data);
613
+ } else {
614
+ return $data;
615
+ }
616
+ }
617
+ /**
618
+ * (instances.aggregatedList)
619
+ *
620
+ * @param string $project Name of the project scoping this request.
621
+ * @param array $optParams Optional parameters.
622
+ *
623
+ * @opt_param string filter Optional. Filter expression for filtering listed resources.
624
+ * @opt_param string maxResults Optional. Maximum count of results to be returned. Maximum and default value is 100.
625
+ * @opt_param string pageToken Optional. Tag returned by a previous list request truncated by maxResults. Used to continue a previous list request.
626
+ * @return Google_InstanceAggregatedList
627
+ */
628
+ public function aggregatedList($project, $optParams = array()) {
629
+ $params = array('project' => $project);
630
+ $params = array_merge($params, $optParams);
631
+ $data = $this->__call('aggregatedList', array($params));
632
+ if ($this->useObjects()) {
633
+ return new Google_InstanceAggregatedList($data);
634
+ } else {
635
+ return $data;
636
+ }
637
+ }
638
+ /**
639
+ * Attaches a disk resource to an instance. (instances.attachDisk)
640
+ *
641
+ * @param string $project Project name.
642
+ * @param string $zone Name of the zone scoping this request.
643
+ * @param string $instance Instance name.
644
+ * @param Google_AttachedDisk $postBody
645
+ * @param array $optParams Optional parameters.
646
+ * @return Google_Operation
647
+ */
648
+ public function attachDisk($project, $zone, $instance, Google_AttachedDisk $postBody, $optParams = array()) {
649
+ $params = array('project' => $project, 'zone' => $zone, 'instance' => $instance, 'postBody' => $postBody);
650
+ $params = array_merge($params, $optParams);
651
+ $data = $this->__call('attachDisk', array($params));
652
+ if ($this->useObjects()) {
653
+ return new Google_Operation($data);
654
+ } else {
655
+ return $data;
656
+ }
657
+ }
658
+ /**
659
+ * Deletes the specified instance resource. (instances.delete)
660
+ *
661
+ * @param string $project Name of the project scoping this request.
662
+ * @param string $zone Name of the zone scoping this request.
663
+ * @param string $instance Name of the instance resource to delete.
664
+ * @param array $optParams Optional parameters.
665
+ * @return Google_Operation
666
+ */
667
+ public function delete($project, $zone, $instance, $optParams = array()) {
668
+ $params = array('project' => $project, 'zone' => $zone, 'instance' => $instance);
669
+ $params = array_merge($params, $optParams);
670
+ $data = $this->__call('delete', array($params));
671
+ if ($this->useObjects()) {
672
+ return new Google_Operation($data);
673
+ } else {
674
+ return $data;
675
+ }
676
+ }
677
+ /**
678
+ * Deletes an access config from an instance's network interface. (instances.deleteAccessConfig)
679
+ *
680
+ * @param string $project Project name.
681
+ * @param string $zone Name of the zone scoping this request.
682
+ * @param string $instance Instance name.
683
+ * @param string $accessConfig Access config name.
684
+ * @param string $networkInterface Network interface name.
685
+ * @param array $optParams Optional parameters.
686
+ * @return Google_Operation
687
+ */
688
+ public function deleteAccessConfig($project, $zone, $instance, $accessConfig, $networkInterface, $optParams = array()) {
689
+ $params = array('project' => $project, 'zone' => $zone, 'instance' => $instance, 'accessConfig' => $accessConfig, 'networkInterface' => $networkInterface);
690
+ $params = array_merge($params, $optParams);
691
+ $data = $this->__call('deleteAccessConfig', array($params));
692
+ if ($this->useObjects()) {
693
+ return new Google_Operation($data);
694
+ } else {
695
+ return $data;
696
+ }
697
+ }
698
+ /**
699
+ * Detaches a disk from an instance. (instances.detachDisk)
700
+ *
701
+ * @param string $project Project name.
702
+ * @param string $zone Name of the zone scoping this request.
703
+ * @param string $instance Instance name.
704
+ * @param string $deviceName Disk device name to detach.
705
+ * @param array $optParams Optional parameters.
706
+ * @return Google_Operation
707
+ */
708
+ public function detachDisk($project, $zone, $instance, $deviceName, $optParams = array()) {
709
+ $params = array('project' => $project, 'zone' => $zone, 'instance' => $instance, 'deviceName' => $deviceName);
710
+ $params = array_merge($params, $optParams);
711
+ $data = $this->__call('detachDisk', array($params));
712
+ if ($this->useObjects()) {
713
+ return new Google_Operation($data);
714
+ } else {
715
+ return $data;
716
+ }
717
+ }
718
+ /**
719
+ * Returns the specified instance resource. (instances.get)
720
+ *
721
+ * @param string $project Name of the project scoping this request.
722
+ * @param string $zone Name of the zone scoping this request.
723
+ * @param string $instance Name of the instance resource to return.
724
+ * @param array $optParams Optional parameters.
725
+ * @return Google_Instance
726
+ */
727
+ public function get($project, $zone, $instance, $optParams = array()) {
728
+ $params = array('project' => $project, 'zone' => $zone, 'instance' => $instance);
729
+ $params = array_merge($params, $optParams);
730
+ $data = $this->__call('get', array($params));
731
+ if ($this->useObjects()) {
732
+ return new Google_Instance($data);
733
+ } else {
734
+ return $data;
735
+ }
736
+ }
737
+ /**
738
+ * Returns the specified instance's serial port output. (instances.getSerialPortOutput)
739
+ *
740
+ * @param string $project Name of the project scoping this request.
741
+ * @param string $zone Name of the zone scoping this request.
742
+ * @param string $instance Name of the instance scoping this request.
743
+ * @param array $optParams Optional parameters.
744
+ * @return Google_SerialPortOutput
745
+ */
746
+ public function getSerialPortOutput($project, $zone, $instance, $optParams = array()) {
747
+ $params = array('project' => $project, 'zone' => $zone, 'instance' => $instance);
748
+ $params = array_merge($params, $optParams);
749
+ $data = $this->__call('getSerialPortOutput', array($params));
750
+ if ($this->useObjects()) {
751
+ return new Google_SerialPortOutput($data);
752
+ } else {
753
+ return $data;
754
+ }
755
+ }
756
+ /**
757
+ * Creates an instance resource in the specified project using the data included in the request.
758
+ * (instances.insert)
759
+ *
760
+ * @param string $project Name of the project scoping this request.
761
+ * @param string $zone Name of the zone scoping this request.
762
+ * @param Google_Instance $postBody
763
+ * @param array $optParams Optional parameters.
764
+ * @return Google_Operation
765
+ */
766
+ public function insert($project, $zone, Google_Instance $postBody, $optParams = array()) {
767
+ $params = array('project' => $project, 'zone' => $zone, 'postBody' => $postBody);
768
+ $params = array_merge($params, $optParams);
769
+ $data = $this->__call('insert', array($params));
770
+ if ($this->useObjects()) {
771
+ return new Google_Operation($data);
772
+ } else {
773
+ return $data;
774
+ }
775
+ }
776
+ /**
777
+ * Retrieves the list of instance resources contained within the specified zone. (instances.list)
778
+ *
779
+ * @param string $project Name of the project scoping this request.
780
+ * @param string $zone Name of the zone scoping this request.
781
+ * @param array $optParams Optional parameters.
782
+ *
783
+ * @opt_param string filter Optional. Filter expression for filtering listed resources.
784
+ * @opt_param string maxResults Optional. Maximum count of results to be returned. Maximum and default value is 100.
785
+ * @opt_param string pageToken Optional. Tag returned by a previous list request truncated by maxResults. Used to continue a previous list request.
786
+ * @return Google_InstanceList
787
+ */
788
+ public function listInstances($project, $zone, $optParams = array()) {
789
+ $params = array('project' => $project, 'zone' => $zone);
790
+ $params = array_merge($params, $optParams);
791
+ $data = $this->__call('list', array($params));
792
+ if ($this->useObjects()) {
793
+ return new Google_InstanceList($data);
794
+ } else {
795
+ return $data;
796
+ }
797
+ }
798
+ /**
799
+ * Performs a hard reset on the instance. (instances.reset)
800
+ *
801
+ * @param string $project Name of the project scoping this request.
802
+ * @param string $zone Name of the zone scoping this request.
803
+ * @param string $instance Name of the instance scoping this request.
804
+ * @param array $optParams Optional parameters.
805
+ * @return Google_Operation
806
+ */
807
+ public function reset($project, $zone, $instance, $optParams = array()) {
808
+ $params = array('project' => $project, 'zone' => $zone, 'instance' => $instance);
809
+ $params = array_merge($params, $optParams);
810
+ $data = $this->__call('reset', array($params));
811
+ if ($this->useObjects()) {
812
+ return new Google_Operation($data);
813
+ } else {
814
+ return $data;
815
+ }
816
+ }
817
+ /**
818
+ * Sets metadata for the specified instance to the data included in the request.
819
+ * (instances.setMetadata)
820
+ *
821
+ * @param string $project Name of the project scoping this request.
822
+ * @param string $zone Name of the zone scoping this request.
823
+ * @param string $instance Name of the instance scoping this request.
824
+ * @param Google_Metadata $postBody
825
+ * @param array $optParams Optional parameters.
826
+ * @return Google_Operation
827
+ */
828
+ public function setMetadata($project, $zone, $instance, Google_Metadata $postBody, $optParams = array()) {
829
+ $params = array('project' => $project, 'zone' => $zone, 'instance' => $instance, 'postBody' => $postBody);
830
+ $params = array_merge($params, $optParams);
831
+ $data = $this->__call('setMetadata', array($params));
832
+ if ($this->useObjects()) {
833
+ return new Google_Operation($data);
834
+ } else {
835
+ return $data;
836
+ }
837
+ }
838
+ /**
839
+ * Sets tags for the specified instance to the data included in the request. (instances.setTags)
840
+ *
841
+ * @param string $project Name of the project scoping this request.
842
+ * @param string $zone Name of the zone scoping this request.
843
+ * @param string $instance Name of the instance scoping this request.
844
+ * @param Google_Tags $postBody
845
+ * @param array $optParams Optional parameters.
846
+ * @return Google_Operation
847
+ */
848
+ public function setTags($project, $zone, $instance, Google_Tags $postBody, $optParams = array()) {
849
+ $params = array('project' => $project, 'zone' => $zone, 'instance' => $instance, 'postBody' => $postBody);
850
+ $params = array_merge($params, $optParams);
851
+ $data = $this->__call('setTags', array($params));
852
+ if ($this->useObjects()) {
853
+ return new Google_Operation($data);
854
+ } else {
855
+ return $data;
856
+ }
857
+ }
858
+ }
859
+
860
+ /**
861
+ * The "kernels" collection of methods.
862
+ * Typical usage is:
863
+ * <code>
864
+ * $computeService = new Google_ComputeService(...);
865
+ * $kernels = $computeService->kernels;
866
+ * </code>
867
+ */
868
+ class Google_KernelsServiceResource extends Google_ServiceResource {
869
+
870
+ /**
871
+ * Returns the specified kernel resource. (kernels.get)
872
+ *
873
+ * @param string $project Name of the project scoping this request.
874
+ * @param string $kernel Name of the kernel resource to return.
875
+ * @param array $optParams Optional parameters.
876
+ * @return Google_Kernel
877
+ */
878
+ public function get($project, $kernel, $optParams = array()) {
879
+ $params = array('project' => $project, 'kernel' => $kernel);
880
+ $params = array_merge($params, $optParams);
881
+ $data = $this->__call('get', array($params));
882
+ if ($this->useObjects()) {
883
+ return new Google_Kernel($data);
884
+ } else {
885
+ return $data;
886
+ }
887
+ }
888
+ /**
889
+ * Retrieves the list of kernel resources available to the specified project. (kernels.list)
890
+ *
891
+ * @param string $project Name of the project scoping this request.
892
+ * @param array $optParams Optional parameters.
893
+ *
894
+ * @opt_param string filter Optional. Filter expression for filtering listed resources.
895
+ * @opt_param string maxResults Optional. Maximum count of results to be returned. Maximum and default value is 100.
896
+ * @opt_param string pageToken Optional. Tag returned by a previous list request truncated by maxResults. Used to continue a previous list request.
897
+ * @return Google_KernelList
898
+ */
899
+ public function listKernels($project, $optParams = array()) {
900
+ $params = array('project' => $project);
901
+ $params = array_merge($params, $optParams);
902
+ $data = $this->__call('list', array($params));
903
+ if ($this->useObjects()) {
904
+ return new Google_KernelList($data);
905
+ } else {
906
+ return $data;
907
+ }
908
+ }
909
+ }
910
+
911
+ /**
912
+ * The "machineTypes" collection of methods.
913
+ * Typical usage is:
914
+ * <code>
915
+ * $computeService = new Google_ComputeService(...);
916
+ * $machineTypes = $computeService->machineTypes;
917
+ * </code>
918
+ */
919
+ class Google_MachineTypesServiceResource extends Google_ServiceResource {
920
+
921
+ /**
922
+ * Retrieves the list of machine type resources grouped by scope. (machineTypes.aggregatedList)
923
+ *
924
+ * @param string $project Name of the project scoping this request.
925
+ * @param array $optParams Optional parameters.
926
+ *
927
+ * @opt_param string filter Optional. Filter expression for filtering listed resources.
928
+ * @opt_param string maxResults Optional. Maximum count of results to be returned. Maximum and default value is 100.
929
+ * @opt_param string pageToken Optional. Tag returned by a previous list request truncated by maxResults. Used to continue a previous list request.
930
+ * @return Google_MachineTypeAggregatedList
931
+ */
932
+ public function aggregatedList($project, $optParams = array()) {
933
+ $params = array('project' => $project);
934
+ $params = array_merge($params, $optParams);
935
+ $data = $this->__call('aggregatedList', array($params));
936
+ if ($this->useObjects()) {
937
+ return new Google_MachineTypeAggregatedList($data);
938
+ } else {
939
+ return $data;
940
+ }
941
+ }
942
+ /**
943
+ * Returns the specified machine type resource. (machineTypes.get)
944
+ *
945
+ * @param string $project Name of the project scoping this request.
946
+ * @param string $zone Name of the zone scoping this request.
947
+ * @param string $machineType Name of the machine type resource to return.
948
+ * @param array $optParams Optional parameters.
949
+ * @return Google_MachineType
950
+ */
951
+ public function get($project, $zone, $machineType, $optParams = array()) {
952
+ $params = array('project' => $project, 'zone' => $zone, 'machineType' => $machineType);
953
+ $params = array_merge($params, $optParams);
954
+ $data = $this->__call('get', array($params));
955
+ if ($this->useObjects()) {
956
+ return new Google_MachineType($data);
957
+ } else {
958
+ return $data;
959
+ }
960
+ }
961
+ /**
962
+ * Retrieves the list of machine type resources available to the specified project.
963
+ * (machineTypes.list)
964
+ *
965
+ * @param string $project Name of the project scoping this request.
966
+ * @param string $zone Name of the zone scoping this request.
967
+ * @param array $optParams Optional parameters.
968
+ *
969
+ * @opt_param string filter Optional. Filter expression for filtering listed resources.
970
+ * @opt_param string maxResults Optional. Maximum count of results to be returned. Maximum and default value is 100.
971
+ * @opt_param string pageToken Optional. Tag returned by a previous list request truncated by maxResults. Used to continue a previous list request.
972
+ * @return Google_MachineTypeList
973
+ */
974
+ public function listMachineTypes($project, $zone, $optParams = array()) {
975
+ $params = array('project' => $project, 'zone' => $zone);
976
+ $params = array_merge($params, $optParams);
977
+ $data = $this->__call('list', array($params));
978
+ if ($this->useObjects()) {
979
+ return new Google_MachineTypeList($data);
980
+ } else {
981
+ return $data;
982
+ }
983
+ }
984
+ }
985
+
986
+ /**
987
+ * The "networks" collection of methods.
988
+ * Typical usage is:
989
+ * <code>
990
+ * $computeService = new Google_ComputeService(...);
991
+ * $networks = $computeService->networks;
992
+ * </code>
993
+ */
994
+ class Google_NetworksServiceResource extends Google_ServiceResource {
995
+
996
+ /**
997
+ * Deletes the specified network resource. (networks.delete)
998
+ *
999
+ * @param string $project Name of the project scoping this request.
1000
+ * @param string $network Name of the network resource to delete.
1001
+ * @param array $optParams Optional parameters.
1002
+ * @return Google_Operation
1003
+ */
1004
+ public function delete($project, $network, $optParams = array()) {
1005
+ $params = array('project' => $project, 'network' => $network);
1006
+ $params = array_merge($params, $optParams);
1007
+ $data = $this->__call('delete', array($params));
1008
+ if ($this->useObjects()) {
1009
+ return new Google_Operation($data);
1010
+ } else {
1011
+ return $data;
1012
+ }
1013
+ }
1014
+ /**
1015
+ * Returns the specified network resource. (networks.get)
1016
+ *
1017
+ * @param string $project Name of the project scoping this request.
1018
+ * @param string $network Name of the network resource to return.
1019
+ * @param array $optParams Optional parameters.
1020
+ * @return Google_Network
1021
+ */
1022
+ public function get($project, $network, $optParams = array()) {
1023
+ $params = array('project' => $project, 'network' => $network);
1024
+ $params = array_merge($params, $optParams);
1025
+ $data = $this->__call('get', array($params));
1026
+ if ($this->useObjects()) {
1027
+ return new Google_Network($data);
1028
+ } else {
1029
+ return $data;
1030
+ }
1031
+ }
1032
+ /**
1033
+ * Creates a network resource in the specified project using the data included in the request.
1034
+ * (networks.insert)
1035
+ *
1036
+ * @param string $project Name of the project scoping this request.
1037
+ * @param Google_Network $postBody
1038
+ * @param array $optParams Optional parameters.
1039
+ * @return Google_Operation
1040
+ */
1041
+ public function insert($project, Google_Network $postBody, $optParams = array()) {
1042
+ $params = array('project' => $project, 'postBody' => $postBody);
1043
+ $params = array_merge($params, $optParams);
1044
+ $data = $this->__call('insert', array($params));
1045
+ if ($this->useObjects()) {
1046
+ return new Google_Operation($data);
1047
+ } else {
1048
+ return $data;
1049
+ }
1050
+ }
1051
+ /**
1052
+ * Retrieves the list of network resources available to the specified project. (networks.list)
1053
+ *
1054
+ * @param string $project Name of the project scoping this request.
1055
+ * @param array $optParams Optional parameters.
1056
+ *
1057
+ * @opt_param string filter Optional. Filter expression for filtering listed resources.
1058
+ * @opt_param string maxResults Optional. Maximum count of results to be returned. Maximum and default value is 100.
1059
+ * @opt_param string pageToken Optional. Tag returned by a previous list request truncated by maxResults. Used to continue a previous list request.
1060
+ * @return Google_NetworkList
1061
+ */
1062
+ public function listNetworks($project, $optParams = array()) {
1063
+ $params = array('project' => $project);
1064
+ $params = array_merge($params, $optParams);
1065
+ $data = $this->__call('list', array($params));
1066
+ if ($this->useObjects()) {
1067
+ return new Google_NetworkList($data);
1068
+ } else {
1069
+ return $data;
1070
+ }
1071
+ }
1072
+ }
1073
+
1074
+ /**
1075
+ * The "projects" collection of methods.
1076
+ * Typical usage is:
1077
+ * <code>
1078
+ * $computeService = new Google_ComputeService(...);
1079
+ * $projects = $computeService->projects;
1080
+ * </code>
1081
+ */
1082
+ class Google_ProjectsServiceResource extends Google_ServiceResource {
1083
+
1084
+ /**
1085
+ * Returns the specified project resource. (projects.get)
1086
+ *
1087
+ * @param string $project Name of the project resource to retrieve.
1088
+ * @param array $optParams Optional parameters.
1089
+ * @return Google_Project
1090
+ */
1091
+ public function get($project, $optParams = array()) {
1092
+ $params = array('project' => $project);
1093
+ $params = array_merge($params, $optParams);
1094
+ $data = $this->__call('get', array($params));
1095
+ if ($this->useObjects()) {
1096
+ return new Google_Project($data);
1097
+ } else {
1098
+ return $data;
1099
+ }
1100
+ }
1101
+ /**
1102
+ * Sets metadata common to all instances within the specified project using the data included in the
1103
+ * request. (projects.setCommonInstanceMetadata)
1104
+ *
1105
+ * @param string $project Name of the project scoping this request.
1106
+ * @param Google_Metadata $postBody
1107
+ * @param array $optParams Optional parameters.
1108
+ * @return Google_Operation
1109
+ */
1110
+ public function setCommonInstanceMetadata($project, Google_Metadata $postBody, $optParams = array()) {
1111
+ $params = array('project' => $project, 'postBody' => $postBody);
1112
+ $params = array_merge($params, $optParams);
1113
+ $data = $this->__call('setCommonInstanceMetadata', array($params));
1114
+ if ($this->useObjects()) {
1115
+ return new Google_Operation($data);
1116
+ } else {
1117
+ return $data;
1118
+ }
1119
+ }
1120
+ }
1121
+
1122
+ /**
1123
+ * The "regionOperations" collection of methods.
1124
+ * Typical usage is:
1125
+ * <code>
1126
+ * $computeService = new Google_ComputeService(...);
1127
+ * $regionOperations = $computeService->regionOperations;
1128
+ * </code>
1129
+ */
1130
+ class Google_RegionOperationsServiceResource extends Google_ServiceResource {
1131
+
1132
+ /**
1133
+ * Deletes the specified region-specific operation resource. (regionOperations.delete)
1134
+ *
1135
+ * @param string $project Name of the project scoping this request.
1136
+ * @param string $region Name of the region scoping this request.
1137
+ * @param string $operation Name of the operation resource to delete.
1138
+ * @param array $optParams Optional parameters.
1139
+ */
1140
+ public function delete($project, $region, $operation, $optParams = array()) {
1141
+ $params = array('project' => $project, 'region' => $region, 'operation' => $operation);
1142
+ $params = array_merge($params, $optParams);
1143
+ $data = $this->__call('delete', array($params));
1144
+ return $data;
1145
+ }
1146
+ /**
1147
+ * Retrieves the specified region-specific operation resource. (regionOperations.get)
1148
+ *
1149
+ * @param string $project Name of the project scoping this request.
1150
+ * @param string $region Name of the zone scoping this request.
1151
+ * @param string $operation Name of the operation resource to return.
1152
+ * @param array $optParams Optional parameters.
1153
+ * @return Google_Operation
1154
+ */
1155
+ public function get($project, $region, $operation, $optParams = array()) {
1156
+ $params = array('project' => $project, 'region' => $region, 'operation' => $operation);
1157
+ $params = array_merge($params, $optParams);
1158
+ $data = $this->__call('get', array($params));
1159
+ if ($this->useObjects()) {
1160
+ return new Google_Operation($data);
1161
+ } else {
1162
+ return $data;
1163
+ }
1164
+ }
1165
+ /**
1166
+ * Retrieves the list of operation resources contained within the specified region.
1167
+ * (regionOperations.list)
1168
+ *
1169
+ * @param string $project Name of the project scoping this request.
1170
+ * @param string $region Name of the region scoping this request.
1171
+ * @param array $optParams Optional parameters.
1172
+ *
1173
+ * @opt_param string filter Optional. Filter expression for filtering listed resources.
1174
+ * @opt_param string maxResults Optional. Maximum count of results to be returned. Maximum and default value is 100.
1175
+ * @opt_param string pageToken Optional. Tag returned by a previous list request truncated by maxResults. Used to continue a previous list request.
1176
+ * @return Google_OperationList
1177
+ */
1178
+ public function listRegionOperations($project, $region, $optParams = array()) {
1179
+ $params = array('project' => $project, 'region' => $region);
1180
+ $params = array_merge($params, $optParams);
1181
+ $data = $this->__call('list', array($params));
1182
+ if ($this->useObjects()) {
1183
+ return new Google_OperationList($data);
1184
+ } else {
1185
+ return $data;
1186
+ }
1187
+ }
1188
+ }
1189
+
1190
+ /**
1191
+ * The "regions" collection of methods.
1192
+ * Typical usage is:
1193
+ * <code>
1194
+ * $computeService = new Google_ComputeService(...);
1195
+ * $regions = $computeService->regions;
1196
+ * </code>
1197
+ */
1198
+ class Google_RegionsServiceResource extends Google_ServiceResource {
1199
+
1200
+ /**
1201
+ * Returns the specified region resource. (regions.get)
1202
+ *
1203
+ * @param string $project Name of the project scoping this request.
1204
+ * @param string $region Name of the region resource to return.
1205
+ * @param array $optParams Optional parameters.
1206
+ * @return Google_Region
1207
+ */
1208
+ public function get($project, $region, $optParams = array()) {
1209
+ $params = array('project' => $project, 'region' => $region);
1210
+ $params = array_merge($params, $optParams);
1211
+ $data = $this->__call('get', array($params));
1212
+ if ($this->useObjects()) {
1213
+ return new Google_Region($data);
1214
+ } else {
1215
+ return $data;
1216
+ }
1217
+ }
1218
+ /**
1219
+ * Retrieves the list of region resources available to the specified project. (regions.list)
1220
+ *
1221
+ * @param string $project Name of the project scoping this request.
1222
+ * @param array $optParams Optional parameters.
1223
+ *
1224
+ * @opt_param string filter Optional. Filter expression for filtering listed resources.
1225
+ * @opt_param string maxResults Optional. Maximum count of results to be returned. Maximum and default value is 100.
1226
+ * @opt_param string pageToken Optional. Tag returned by a previous list request truncated by maxResults. Used to continue a previous list request.
1227
+ * @return Google_RegionList
1228
+ */
1229
+ public function listRegions($project, $optParams = array()) {
1230
+ $params = array('project' => $project);
1231
+ $params = array_merge($params, $optParams);
1232
+ $data = $this->__call('list', array($params));
1233
+ if ($this->useObjects()) {
1234
+ return new Google_RegionList($data);
1235
+ } else {
1236
+ return $data;
1237
+ }
1238
+ }
1239
+ }
1240
+
1241
+ /**
1242
+ * The "routes" collection of methods.
1243
+ * Typical usage is:
1244
+ * <code>
1245
+ * $computeService = new Google_ComputeService(...);
1246
+ * $routes = $computeService->routes;
1247
+ * </code>
1248
+ */
1249
+ class Google_RoutesServiceResource extends Google_ServiceResource {
1250
+
1251
+ /**
1252
+ * Deletes the specified route resource. (routes.delete)
1253
+ *
1254
+ * @param string $project Name of the project scoping this request.
1255
+ * @param string $route Name of the route resource to delete.
1256
+ * @param array $optParams Optional parameters.
1257
+ * @return Google_Operation
1258
+ */
1259
+ public function delete($project, $route, $optParams = array()) {
1260
+ $params = array('project' => $project, 'route' => $route);
1261
+ $params = array_merge($params, $optParams);
1262
+ $data = $this->__call('delete', array($params));
1263
+ if ($this->useObjects()) {
1264
+ return new Google_Operation($data);
1265
+ } else {
1266
+ return $data;
1267
+ }
1268
+ }
1269
+ /**
1270
+ * Returns the specified route resource. (routes.get)
1271
+ *
1272
+ * @param string $project Name of the project scoping this request.
1273
+ * @param string $route Name of the route resource to return.
1274
+ * @param array $optParams Optional parameters.
1275
+ * @return Google_Route
1276
+ */
1277
+ public function get($project, $route, $optParams = array()) {
1278
+ $params = array('project' => $project, 'route' => $route);
1279
+ $params = array_merge($params, $optParams);
1280
+ $data = $this->__call('get', array($params));
1281
+ if ($this->useObjects()) {
1282
+ return new Google_Route($data);
1283
+ } else {
1284
+ return $data;
1285
+ }
1286
+ }
1287
+ /**
1288
+ * Creates a route resource in the specified project using the data included in the request.
1289
+ * (routes.insert)
1290
+ *
1291
+ * @param string $project Name of the project scoping this request.
1292
+ * @param Google_Route $postBody
1293
+ * @param array $optParams Optional parameters.
1294
+ * @return Google_Operation
1295
+ */
1296
+ public function insert($project, Google_Route $postBody, $optParams = array()) {
1297
+ $params = array('project' => $project, 'postBody' => $postBody);
1298
+ $params = array_merge($params, $optParams);
1299
+ $data = $this->__call('insert', array($params));
1300
+ if ($this->useObjects()) {
1301
+ return new Google_Operation($data);
1302
+ } else {
1303
+ return $data;
1304
+ }
1305
+ }
1306
+ /**
1307
+ * Retrieves the list of route resources available to the specified project. (routes.list)
1308
+ *
1309
+ * @param string $project Name of the project scoping this request.
1310
+ * @param array $optParams Optional parameters.
1311
+ *
1312
+ * @opt_param string filter Optional. Filter expression for filtering listed resources.
1313
+ * @opt_param string maxResults Optional. Maximum count of results to be returned. Maximum and default value is 100.
1314
+ * @opt_param string pageToken Optional. Tag returned by a previous list request truncated by maxResults. Used to continue a previous list request.
1315
+ * @return Google_RouteList
1316
+ */
1317
+ public function listRoutes($project, $optParams = array()) {
1318
+ $params = array('project' => $project);
1319
+ $params = array_merge($params, $optParams);
1320
+ $data = $this->__call('list', array($params));
1321
+ if ($this->useObjects()) {
1322
+ return new Google_RouteList($data);
1323
+ } else {
1324
+ return $data;
1325
+ }
1326
+ }
1327
+ }
1328
+
1329
+ /**
1330
+ * The "snapshots" collection of methods.
1331
+ * Typical usage is:
1332
+ * <code>
1333
+ * $computeService = new Google_ComputeService(...);
1334
+ * $snapshots = $computeService->snapshots;
1335
+ * </code>
1336
+ */
1337
+ class Google_SnapshotsServiceResource extends Google_ServiceResource {
1338
+
1339
+ /**
1340
+ * Deletes the specified persistent disk snapshot resource. (snapshots.delete)
1341
+ *
1342
+ * @param string $project Name of the project scoping this request.
1343
+ * @param string $snapshot Name of the persistent disk snapshot resource to delete.
1344
+ * @param array $optParams Optional parameters.
1345
+ * @return Google_Operation
1346
+ */
1347
+ public function delete($project, $snapshot, $optParams = array()) {
1348
+ $params = array('project' => $project, 'snapshot' => $snapshot);
1349
+ $params = array_merge($params, $optParams);
1350
+ $data = $this->__call('delete', array($params));
1351
+ if ($this->useObjects()) {
1352
+ return new Google_Operation($data);
1353
+ } else {
1354
+ return $data;
1355
+ }
1356
+ }
1357
+ /**
1358
+ * Returns the specified persistent disk snapshot resource. (snapshots.get)
1359
+ *
1360
+ * @param string $project Name of the project scoping this request.
1361
+ * @param string $snapshot Name of the persistent disk snapshot resource to return.
1362
+ * @param array $optParams Optional parameters.
1363
+ * @return Google_Snapshot
1364
+ */
1365
+ public function get($project, $snapshot, $optParams = array()) {
1366
+ $params = array('project' => $project, 'snapshot' => $snapshot);
1367
+ $params = array_merge($params, $optParams);
1368
+ $data = $this->__call('get', array($params));
1369
+ if ($this->useObjects()) {
1370
+ return new Google_Snapshot($data);
1371
+ } else {
1372
+ return $data;
1373
+ }
1374
+ }
1375
+ /**
1376
+ * Retrieves the list of persistent disk snapshot resources contained within the specified project.
1377
+ * (snapshots.list)
1378
+ *
1379
+ * @param string $project Name of the project scoping this request.
1380
+ * @param array $optParams Optional parameters.
1381
+ *
1382
+ * @opt_param string filter Optional. Filter expression for filtering listed resources.
1383
+ * @opt_param string maxResults Optional. Maximum count of results to be returned. Maximum and default value is 100.
1384
+ * @opt_param string pageToken Optional. Tag returned by a previous list request truncated by maxResults. Used to continue a previous list request.
1385
+ * @return Google_SnapshotList
1386
+ */
1387
+ public function listSnapshots($project, $optParams = array()) {
1388
+ $params = array('project' => $project);
1389
+ $params = array_merge($params, $optParams);
1390
+ $data = $this->__call('list', array($params));
1391
+ if ($this->useObjects()) {
1392
+ return new Google_SnapshotList($data);
1393
+ } else {
1394
+ return $data;
1395
+ }
1396
+ }
1397
+ }
1398
+
1399
+ /**
1400
+ * The "zoneOperations" collection of methods.
1401
+ * Typical usage is:
1402
+ * <code>
1403
+ * $computeService = new Google_ComputeService(...);
1404
+ * $zoneOperations = $computeService->zoneOperations;
1405
+ * </code>
1406
+ */
1407
+ class Google_ZoneOperationsServiceResource extends Google_ServiceResource {
1408
+
1409
+ /**
1410
+ * Deletes the specified zone-specific operation resource. (zoneOperations.delete)
1411
+ *
1412
+ * @param string $project Name of the project scoping this request.
1413
+ * @param string $zone Name of the zone scoping this request.
1414
+ * @param string $operation Name of the operation resource to delete.
1415
+ * @param array $optParams Optional parameters.
1416
+ */
1417
+ public function delete($project, $zone, $operation, $optParams = array()) {
1418
+ $params = array('project' => $project, 'zone' => $zone, 'operation' => $operation);
1419
+ $params = array_merge($params, $optParams);
1420
+ $data = $this->__call('delete', array($params));
1421
+ return $data;
1422
+ }
1423
+ /**
1424
+ * Retrieves the specified zone-specific operation resource. (zoneOperations.get)
1425
+ *
1426
+ * @param string $project Name of the project scoping this request.
1427
+ * @param string $zone Name of the zone scoping this request.
1428
+ * @param string $operation Name of the operation resource to return.
1429
+ * @param array $optParams Optional parameters.
1430
+ * @return Google_Operation
1431
+ */
1432
+ public function get($project, $zone, $operation, $optParams = array()) {
1433
+ $params = array('project' => $project, 'zone' => $zone, 'operation' => $operation);
1434
+ $params = array_merge($params, $optParams);
1435
+ $data = $this->__call('get', array($params));
1436
+ if ($this->useObjects()) {
1437
+ return new Google_Operation($data);
1438
+ } else {
1439
+ return $data;
1440
+ }
1441
+ }
1442
+ /**
1443
+ * Retrieves the list of operation resources contained within the specified zone.
1444
+ * (zoneOperations.list)
1445
+ *
1446
+ * @param string $project Name of the project scoping this request.
1447
+ * @param string $zone Name of the zone scoping this request.
1448
+ * @param array $optParams Optional parameters.
1449
+ *
1450
+ * @opt_param string filter Optional. Filter expression for filtering listed resources.
1451
+ * @opt_param string maxResults Optional. Maximum count of results to be returned. Maximum and default value is 100.
1452
+ * @opt_param string pageToken Optional. Tag returned by a previous list request truncated by maxResults. Used to continue a previous list request.
1453
+ * @return Google_OperationList
1454
+ */
1455
+ public function listZoneOperations($project, $zone, $optParams = array()) {
1456
+ $params = array('project' => $project, 'zone' => $zone);
1457
+ $params = array_merge($params, $optParams);
1458
+ $data = $this->__call('list', array($params));
1459
+ if ($this->useObjects()) {
1460
+ return new Google_OperationList($data);
1461
+ } else {
1462
+ return $data;
1463
+ }
1464
+ }
1465
+ }
1466
+
1467
+ /**
1468
+ * The "zones" collection of methods.
1469
+ * Typical usage is:
1470
+ * <code>
1471
+ * $computeService = new Google_ComputeService(...);
1472
+ * $zones = $computeService->zones;
1473
+ * </code>
1474
+ */
1475
+ class Google_ZonesServiceResource extends Google_ServiceResource {
1476
+
1477
+ /**
1478
+ * Returns the specified zone resource. (zones.get)
1479
+ *
1480
+ * @param string $project Name of the project scoping this request.
1481
+ * @param string $zone Name of the zone resource to return.
1482
+ * @param array $optParams Optional parameters.
1483
+ * @return Google_Zone
1484
+ */
1485
+ public function get($project, $zone, $optParams = array()) {
1486
+ $params = array('project' => $project, 'zone' => $zone);
1487
+ $params = array_merge($params, $optParams);
1488
+ $data = $this->__call('get', array($params));
1489
+ if ($this->useObjects()) {
1490
+ return new Google_Zone($data);
1491
+ } else {
1492
+ return $data;
1493
+ }
1494
+ }
1495
+ /**
1496
+ * Retrieves the list of zone resources available to the specified project. (zones.list)
1497
+ *
1498
+ * @param string $project Name of the project scoping this request.
1499
+ * @param array $optParams Optional parameters.
1500
+ *
1501
+ * @opt_param string filter Optional. Filter expression for filtering listed resources.
1502
+ * @opt_param string maxResults Optional. Maximum count of results to be returned. Maximum and default value is 100.
1503
+ * @opt_param string pageToken Optional. Tag returned by a previous list request truncated by maxResults. Used to continue a previous list request.
1504
+ * @return Google_ZoneList
1505
+ */
1506
+ public function listZones($project, $optParams = array()) {
1507
+ $params = array('project' => $project);
1508
+ $params = array_merge($params, $optParams);
1509
+ $data = $this->__call('list', array($params));
1510
+ if ($this->useObjects()) {
1511
+ return new Google_ZoneList($data);
1512
+ } else {
1513
+ return $data;
1514
+ }
1515
+ }
1516
+ }
1517
+
1518
+ /**
1519
+ * Service definition for Google_Compute (v1beta15).
1520
+ *
1521
+ * <p>
1522
+ * API for the Google Compute Engine service.
1523
+ * </p>
1524
+ *
1525
+ * <p>
1526
+ * For more information about this service, see the
1527
+ * <a href="https://developers.google.com/compute/docs/reference/v1beta15" target="_blank">API Documentation</a>
1528
+ * </p>
1529
+ *
1530
+ * @author Google, Inc.
1531
+ */
1532
+ class Google_ComputeService extends Google_Service {
1533
+ public $addresses;
1534
+ public $disks;
1535
+ public $firewalls;
1536
+ public $globalOperations;
1537
+ public $images;
1538
+ public $instances;
1539
+ public $kernels;
1540
+ public $machineTypes;
1541
+ public $networks;
1542
+ public $projects;
1543
+ public $regionOperations;
1544
+ public $regions;
1545
+ public $routes;
1546
+ public $snapshots;
1547
+ public $zoneOperations;
1548
+ public $zones;
1549
+ /**
1550
+ * Constructs the internal representation of the Compute service.
1551
+ *
1552
+ * @param Google_Client $client
1553
+ */
1554
+ public function __construct(Google_Client $client) {
1555
+ $this->servicePath = 'compute/v1beta15/projects/';
1556
+ $this->version = 'v1beta15';
1557
+ $this->serviceName = 'compute';
1558
+
1559
+ $client->addService($this->serviceName, $this->version);
1560
+ $this->addresses = new Google_AddressesServiceResource($this, $this->serviceName, 'addresses', json_decode('{"methods": {"aggregatedList": {"id": "compute.addresses.aggregatedList", "path": "{project}/aggregated/addresses", "httpMethod": "GET", "parameters": {"filter": {"type": "string", "location": "query"}, "maxResults": {"type": "integer", "default": "100", "format": "uint32", "minimum": "0", "maximum": "100", "location": "query"}, "pageToken": {"type": "string", "location": "query"}, "project": {"type": "string", "required": true, "location": "path"}}, "response": {"$ref": "AddressAggregatedList"}, "scopes": ["https://www.googleapis.com/auth/compute", "https://www.googleapis.com/auth/compute.readonly"]}, "delete": {"id": "compute.addresses.delete", "path": "{project}/regions/{region}/addresses/{address}", "httpMethod": "DELETE", "parameters": {"address": {"type": "string", "required": true, "location": "path"}, "project": {"type": "string", "required": true, "location": "path"}, "region": {"type": "string", "required": true, "location": "path"}}, "response": {"$ref": "Operation"}, "scopes": ["https://www.googleapis.com/auth/compute"]}, "get": {"id": "compute.addresses.get", "path": "{project}/regions/{region}/addresses/{address}", "httpMethod": "GET", "parameters": {"address": {"type": "string", "required": true, "location": "path"}, "project": {"type": "string", "required": true, "location": "path"}, "region": {"type": "string", "required": true, "location": "path"}}, "response": {"$ref": "Address"}, "scopes": ["https://www.googleapis.com/auth/compute", "https://www.googleapis.com/auth/compute.readonly"]}, "insert": {"id": "compute.addresses.insert", "path": "{project}/regions/{region}/addresses", "httpMethod": "POST", "parameters": {"project": {"type": "string", "required": true, "location": "path"}, "region": {"type": "string", "required": true, "location": "path"}}, "request": {"$ref": "Address"}, "response": {"$ref": "Operation"}, "scopes": ["https://www.googleapis.com/auth/compute"]}, "list": {"id": "compute.addresses.list", "path": "{project}/regions/{region}/addresses", "httpMethod": "GET", "parameters": {"filter": {"type": "string", "location": "query"}, "maxResults": {"type": "integer", "default": "100", "format": "uint32", "minimum": "0", "maximum": "100", "location": "query"}, "pageToken": {"type": "string", "location": "query"}, "project": {"type": "string", "required": true, "location": "path"}, "region": {"type": "string", "required": true, "location": "path"}}, "response": {"$ref": "AddressList"}, "scopes": ["https://www.googleapis.com/auth/compute", "https://www.googleapis.com/auth/compute.readonly"]}}}', true));
1561
+ $this->disks = new Google_DisksServiceResource($this, $this->serviceName, 'disks', json_decode('{"methods": {"aggregatedList": {"id": "compute.disks.aggregatedList", "path": "{project}/aggregated/disks", "httpMethod": "GET", "parameters": {"filter": {"type": "string", "location": "query"}, "maxResults": {"type": "integer", "default": "100", "format": "uint32", "minimum": "0", "maximum": "100", "location": "query"}, "pageToken": {"type": "string", "location": "query"}, "project": {"type": "string", "required": true, "location": "path"}}, "response": {"$ref": "DiskAggregatedList"}, "scopes": ["https://www.googleapis.com/auth/compute", "https://www.googleapis.com/auth/compute.readonly"]}, "createSnapshot": {"id": "compute.disks.createSnapshot", "path": "{project}/zones/{zone}/disks/{disk}/createSnapshot", "httpMethod": "POST", "parameters": {"disk": {"type": "string", "required": true, "location": "path"}, "project": {"type": "string", "required": true, "location": "path"}, "zone": {"type": "string", "required": true, "location": "path"}}, "request": {"$ref": "Snapshot"}, "response": {"$ref": "Operation"}, "scopes": ["https://www.googleapis.com/auth/compute"]}, "delete": {"id": "compute.disks.delete", "path": "{project}/zones/{zone}/disks/{disk}", "httpMethod": "DELETE", "parameters": {"disk": {"type": "string", "required": true, "location": "path"}, "project": {"type": "string", "required": true, "location": "path"}, "zone": {"type": "string", "required": true, "location": "path"}}, "response": {"$ref": "Operation"}, "scopes": ["https://www.googleapis.com/auth/compute"]}, "get": {"id": "compute.disks.get", "path": "{project}/zones/{zone}/disks/{disk}", "httpMethod": "GET", "parameters": {"disk": {"type": "string", "required": true, "location": "path"}, "project": {"type": "string", "required": true, "location": "path"}, "zone": {"type": "string", "required": true, "location": "path"}}, "response": {"$ref": "Disk"}, "scopes": ["https://www.googleapis.com/auth/compute", "https://www.googleapis.com/auth/compute.readonly"]}, "insert": {"id": "compute.disks.insert", "path": "{project}/zones/{zone}/disks", "httpMethod": "POST", "parameters": {"project": {"type": "string", "required": true, "location": "path"}, "sourceImage": {"type": "string", "location": "query"}, "zone": {"type": "string", "required": true, "location": "path"}}, "request": {"$ref": "Disk"}, "response": {"$ref": "Operation"}, "scopes": ["https://www.googleapis.com/auth/compute"]}, "list": {"id": "compute.disks.list", "path": "{project}/zones/{zone}/disks", "httpMethod": "GET", "parameters": {"filter": {"type": "string", "location": "query"}, "maxResults": {"type": "integer", "default": "100", "format": "uint32", "minimum": "0", "maximum": "100", "location": "query"}, "pageToken": {"type": "string", "location": "query"}, "project": {"type": "string", "required": true, "location": "path"}, "zone": {"type": "string", "required": true, "location": "path"}}, "response": {"$ref": "DiskList"}, "scopes": ["https://www.googleapis.com/auth/compute", "https://www.googleapis.com/auth/compute.readonly"]}}}', true));
1562
+ $this->firewalls = new Google_FirewallsServiceResource($this, $this->serviceName, 'firewalls', json_decode('{"methods": {"delete": {"id": "compute.firewalls.delete", "path": "{project}/global/firewalls/{firewall}", "httpMethod": "DELETE", "parameters": {"firewall": {"type": "string", "required": true, "location": "path"}, "project": {"type": "string", "required": true, "location": "path"}}, "response": {"$ref": "Operation"}, "scopes": ["https://www.googleapis.com/auth/compute"]}, "get": {"id": "compute.firewalls.get", "path": "{project}/global/firewalls/{firewall}", "httpMethod": "GET", "parameters": {"firewall": {"type": "string", "required": true, "location": "path"}, "project": {"type": "string", "required": true, "location": "path"}}, "response": {"$ref": "Firewall"}, "scopes": ["https://www.googleapis.com/auth/compute", "https://www.googleapis.com/auth/compute.readonly"]}, "insert": {"id": "compute.firewalls.insert", "path": "{project}/global/firewalls", "httpMethod": "POST", "parameters": {"project": {"type": "string", "required": true, "location": "path"}}, "request": {"$ref": "Firewall"}, "response": {"$ref": "Operation"}, "scopes": ["https://www.googleapis.com/auth/compute"]}, "list": {"id": "compute.firewalls.list", "path": "{project}/global/firewalls", "httpMethod": "GET", "parameters": {"filter": {"type": "string", "location": "query"}, "maxResults": {"type": "integer", "default": "100", "format": "uint32", "minimum": "0", "maximum": "100", "location": "query"}, "pageToken": {"type": "string", "location": "query"}, "project": {"type": "string", "required": true, "location": "path"}}, "response": {"$ref": "FirewallList"}, "scopes": ["https://www.googleapis.com/auth/compute", "https://www.googleapis.com/auth/compute.readonly"]}, "patch": {"id": "compute.firewalls.patch", "path": "{project}/global/firewalls/{firewall}", "httpMethod": "PATCH", "parameters": {"firewall": {"type": "string", "required": true, "location": "path"}, "project": {"type": "string", "required": true, "location": "path"}}, "request": {"$ref": "Firewall"}, "response": {"$ref": "Operation"}, "scopes": ["https://www.googleapis.com/auth/compute"]}, "update": {"id": "compute.firewalls.update", "path": "{project}/global/firewalls/{firewall}", "httpMethod": "PUT", "parameters": {"firewall": {"type": "string", "required": true, "location": "path"}, "project": {"type": "string", "required": true, "location": "path"}}, "request": {"$ref": "Firewall"}, "response": {"$ref": "Operation"}, "scopes": ["https://www.googleapis.com/auth/compute"]}}}', true));
1563
+ $this->globalOperations = new Google_GlobalOperationsServiceResource($this, $this->serviceName, 'globalOperations', json_decode('{"methods": {"aggregatedList": {"id": "compute.globalOperations.aggregatedList", "path": "{project}/aggregated/operations", "httpMethod": "GET", "parameters": {"filter": {"type": "string", "location": "query"}, "maxResults": {"type": "integer", "default": "100", "format": "uint32", "minimum": "0", "maximum": "100", "location": "query"}, "pageToken": {"type": "string", "location": "query"}, "project": {"type": "string", "required": true, "location": "path"}}, "response": {"$ref": "OperationAggregatedList"}, "scopes": ["https://www.googleapis.com/auth/compute", "https://www.googleapis.com/auth/compute.readonly"]}, "delete": {"id": "compute.globalOperations.delete", "path": "{project}/global/operations/{operation}", "httpMethod": "DELETE", "parameters": {"operation": {"type": "string", "required": true, "location": "path"}, "project": {"type": "string", "required": true, "location": "path"}}, "scopes": ["https://www.googleapis.com/auth/compute"]}, "get": {"id": "compute.globalOperations.get", "path": "{project}/global/operations/{operation}", "httpMethod": "GET", "parameters": {"operation": {"type": "string", "required": true, "location": "path"}, "project": {"type": "string", "required": true, "location": "path"}}, "response": {"$ref": "Operation"}, "scopes": ["https://www.googleapis.com/auth/compute", "https://www.googleapis.com/auth/compute.readonly"]}, "list": {"id": "compute.globalOperations.list", "path": "{project}/global/operations", "httpMethod": "GET", "parameters": {"filter": {"type": "string", "location": "query"}, "maxResults": {"type": "integer", "default": "100", "format": "uint32", "minimum": "0", "maximum": "100", "location": "query"}, "pageToken": {"type": "string", "location": "query"}, "project": {"type": "string", "required": true, "location": "path"}}, "response": {"$ref": "OperationList"}, "scopes": ["https://www.googleapis.com/auth/compute", "https://www.googleapis.com/auth/compute.readonly"]}}}', true));
1564
+ $this->images = new Google_ImagesServiceResource($this, $this->serviceName, 'images', json_decode('{"methods": {"delete": {"id": "compute.images.delete", "path": "{project}/global/images/{image}", "httpMethod": "DELETE", "parameters": {"image": {"type": "string", "required": true, "location": "path"}, "project": {"type": "string", "required": true, "location": "path"}}, "response": {"$ref": "Operation"}, "scopes": ["https://www.googleapis.com/auth/compute"]}, "deprecate": {"id": "compute.images.deprecate", "path": "{project}/global/images/{image}/deprecate", "httpMethod": "POST", "parameters": {"image": {"type": "string", "required": true, "location": "path"}, "project": {"type": "string", "required": true, "location": "path"}}, "request": {"$ref": "DeprecationStatus"}, "response": {"$ref": "Operation"}, "scopes": ["https://www.googleapis.com/auth/compute"]}, "get": {"id": "compute.images.get", "path": "{project}/global/images/{image}", "httpMethod": "GET", "parameters": {"image": {"type": "string", "required": true, "location": "path"}, "project": {"type": "string", "required": true, "location": "path"}}, "response": {"$ref": "Image"}, "scopes": ["https://www.googleapis.com/auth/compute", "https://www.googleapis.com/auth/compute.readonly"]}, "insert": {"id": "compute.images.insert", "path": "{project}/global/images", "httpMethod": "POST", "parameters": {"project": {"type": "string", "required": true, "location": "path"}}, "request": {"$ref": "Image"}, "response": {"$ref": "Operation"}, "scopes": ["https://www.googleapis.com/auth/compute", "https://www.googleapis.com/auth/devstorage.read_only"]}, "list": {"id": "compute.images.list", "path": "{project}/global/images", "httpMethod": "GET", "parameters": {"filter": {"type": "string", "location": "query"}, "maxResults": {"type": "integer", "default": "100", "format": "uint32", "minimum": "0", "maximum": "100", "location": "query"}, "pageToken": {"type": "string", "location": "query"}, "project": {"type": "string", "required": true, "location": "path"}}, "response": {"$ref": "ImageList"}, "scopes": ["https://www.googleapis.com/auth/compute", "https://www.googleapis.com/auth/compute.readonly"]}}}', true));
1565
+ $this->instances = new Google_InstancesServiceResource($this, $this->serviceName, 'instances', json_decode('{"methods": {"addAccessConfig": {"id": "compute.instances.addAccessConfig", "path": "{project}/zones/{zone}/instances/{instance}/addAccessConfig", "httpMethod": "POST", "parameters": {"instance": {"type": "string", "required": true, "location": "path"}, "networkInterface": {"type": "string", "required": true, "location": "query"}, "project": {"type": "string", "required": true, "location": "path"}, "zone": {"type": "string", "required": true, "location": "path"}}, "request": {"$ref": "AccessConfig"}, "response": {"$ref": "Operation"}, "scopes": ["https://www.googleapis.com/auth/compute"]}, "aggregatedList": {"id": "compute.instances.aggregatedList", "path": "{project}/aggregated/instances", "httpMethod": "GET", "parameters": {"filter": {"type": "string", "location": "query"}, "maxResults": {"type": "integer", "default": "100", "format": "uint32", "minimum": "0", "maximum": "100", "location": "query"}, "pageToken": {"type": "string", "location": "query"}, "project": {"type": "string", "required": true, "location": "path"}}, "response": {"$ref": "InstanceAggregatedList"}, "scopes": ["https://www.googleapis.com/auth/compute", "https://www.googleapis.com/auth/compute.readonly"]}, "attachDisk": {"id": "compute.instances.attachDisk", "path": "{project}/zones/{zone}/instances/{instance}/attachDisk", "httpMethod": "POST", "parameters": {"instance": {"type": "string", "required": true, "location": "path"}, "project": {"type": "string", "required": true, "location": "path"}, "zone": {"type": "string", "required": true, "location": "path"}}, "request": {"$ref": "AttachedDisk"}, "response": {"$ref": "Operation"}, "scopes": ["https://www.googleapis.com/auth/compute"]}, "delete": {"id": "compute.instances.delete", "path": "{project}/zones/{zone}/instances/{instance}", "httpMethod": "DELETE", "parameters": {"instance": {"type": "string", "required": true, "location": "path"}, "project": {"type": "string", "required": true, "location": "path"}, "zone": {"type": "string", "required": true, "location": "path"}}, "response": {"$ref": "Operation"}, "scopes": ["https://www.googleapis.com/auth/compute"]}, "deleteAccessConfig": {"id": "compute.instances.deleteAccessConfig", "path": "{project}/zones/{zone}/instances/{instance}/deleteAccessConfig", "httpMethod": "POST", "parameters": {"accessConfig": {"type": "string", "required": true, "location": "query"}, "instance": {"type": "string", "required": true, "location": "path"}, "networkInterface": {"type": "string", "required": true, "location": "query"}, "project": {"type": "string", "required": true, "location": "path"}, "zone": {"type": "string", "required": true, "location": "path"}}, "response": {"$ref": "Operation"}, "scopes": ["https://www.googleapis.com/auth/compute"]}, "detachDisk": {"id": "compute.instances.detachDisk", "path": "{project}/zones/{zone}/instances/{instance}/detachDisk", "httpMethod": "POST", "parameters": {"deviceName": {"type": "string", "required": true, "location": "query"}, "instance": {"type": "string", "required": true, "location": "path"}, "project": {"type": "string", "required": true, "location": "path"}, "zone": {"type": "string", "required": true, "location": "path"}}, "response": {"$ref": "Operation"}, "scopes": ["https://www.googleapis.com/auth/compute"]}, "get": {"id": "compute.instances.get", "path": "{project}/zones/{zone}/instances/{instance}", "httpMethod": "GET", "parameters": {"instance": {"type": "string", "required": true, "location": "path"}, "project": {"type": "string", "required": true, "location": "path"}, "zone": {"type": "string", "required": true, "location": "path"}}, "response": {"$ref": "Instance"}, "scopes": ["https://www.googleapis.com/auth/compute", "https://www.googleapis.com/auth/compute.readonly"]}, "getSerialPortOutput": {"id": "compute.instances.getSerialPortOutput", "path": "{project}/zones/{zone}/instances/{instance}/serialPort", "httpMethod": "GET", "parameters": {"instance": {"type": "string", "required": true, "location": "path"}, "project": {"type": "string", "required": true, "location": "path"}, "zone": {"type": "string", "required": true, "location": "path"}}, "response": {"$ref": "SerialPortOutput"}, "scopes": ["https://www.googleapis.com/auth/compute", "https://www.googleapis.com/auth/compute.readonly"]}, "insert": {"id": "compute.instances.insert", "path": "{project}/zones/{zone}/instances", "httpMethod": "POST", "parameters": {"project": {"type": "string", "required": true, "location": "path"}, "zone": {"type": "string", "required": true, "location": "path"}}, "request": {"$ref": "Instance"}, "response": {"$ref": "Operation"}, "scopes": ["https://www.googleapis.com/auth/compute"]}, "list": {"id": "compute.instances.list", "path": "{project}/zones/{zone}/instances", "httpMethod": "GET", "parameters": {"filter": {"type": "string", "location": "query"}, "maxResults": {"type": "integer", "default": "100", "format": "uint32", "minimum": "0", "maximum": "100", "location": "query"}, "pageToken": {"type": "string", "location": "query"}, "project": {"type": "string", "required": true, "location": "path"}, "zone": {"type": "string", "required": true, "location": "path"}}, "response": {"$ref": "InstanceList"}, "scopes": ["https://www.googleapis.com/auth/compute", "https://www.googleapis.com/auth/compute.readonly"]}, "reset": {"id": "compute.instances.reset", "path": "{project}/zones/{zone}/instances/{instance}/reset", "httpMethod": "POST", "parameters": {"instance": {"type": "string", "required": true, "location": "path"}, "project": {"type": "string", "required": true, "location": "path"}, "zone": {"type": "string", "required": true, "location": "path"}}, "response": {"$ref": "Operation"}, "scopes": ["https://www.googleapis.com/auth/compute"]}, "setMetadata": {"id": "compute.instances.setMetadata", "path": "{project}/zones/{zone}/instances/{instance}/setMetadata", "httpMethod": "POST", "parameters": {"instance": {"type": "string", "required": true, "location": "path"}, "project": {"type": "string", "required": true, "location": "path"}, "zone": {"type": "string", "required": true, "location": "path"}}, "request": {"$ref": "Metadata"}, "response": {"$ref": "Operation"}, "scopes": ["https://www.googleapis.com/auth/compute"]}, "setTags": {"id": "compute.instances.setTags", "path": "{project}/zones/{zone}/instances/{instance}/setTags", "httpMethod": "POST", "parameters": {"instance": {"type": "string", "required": true, "location": "path"}, "project": {"type": "string", "required": true, "location": "path"}, "zone": {"type": "string", "required": true, "location": "path"}}, "request": {"$ref": "Tags"}, "response": {"$ref": "Operation"}, "scopes": ["https://www.googleapis.com/auth/compute"]}}}', true));
1566
+ $this->kernels = new Google_KernelsServiceResource($this, $this->serviceName, 'kernels', json_decode('{"methods": {"get": {"id": "compute.kernels.get", "path": "{project}/global/kernels/{kernel}", "httpMethod": "GET", "parameters": {"kernel": {"type": "string", "required": true, "location": "path"}, "project": {"type": "string", "required": true, "location": "path"}}, "response": {"$ref": "Kernel"}, "scopes": ["https://www.googleapis.com/auth/compute", "https://www.googleapis.com/auth/compute.readonly"]}, "list": {"id": "compute.kernels.list", "path": "{project}/global/kernels", "httpMethod": "GET", "parameters": {"filter": {"type": "string", "location": "query"}, "maxResults": {"type": "integer", "default": "100", "format": "uint32", "minimum": "0", "maximum": "100", "location": "query"}, "pageToken": {"type": "string", "location": "query"}, "project": {"type": "string", "required": true, "location": "path"}}, "response": {"$ref": "KernelList"}, "scopes": ["https://www.googleapis.com/auth/compute", "https://www.googleapis.com/auth/compute.readonly"]}}}', true));
1567
+ $this->machineTypes = new Google_MachineTypesServiceResource($this, $this->serviceName, 'machineTypes', json_decode('{"methods": {"aggregatedList": {"id": "compute.machineTypes.aggregatedList", "path": "{project}/aggregated/machineTypes", "httpMethod": "GET", "parameters": {"filter": {"type": "string", "location": "query"}, "maxResults": {"type": "integer", "default": "100", "format": "uint32", "minimum": "0", "maximum": "100", "location": "query"}, "pageToken": {"type": "string", "location": "query"}, "project": {"type": "string", "required": true, "location": "path"}}, "response": {"$ref": "MachineTypeAggregatedList"}, "scopes": ["https://www.googleapis.com/auth/compute", "https://www.googleapis.com/auth/compute.readonly"]}, "get": {"id": "compute.machineTypes.get", "path": "{project}/zones/{zone}/machineTypes/{machineType}", "httpMethod": "GET", "parameters": {"machineType": {"type": "string", "required": true, "location": "path"}, "project": {"type": "string", "required": true, "location": "path"}, "zone": {"type": "string", "required": true, "location": "path"}}, "response": {"$ref": "MachineType"}, "scopes": ["https://www.googleapis.com/auth/compute", "https://www.googleapis.com/auth/compute.readonly"]}, "list": {"id": "compute.machineTypes.list", "path": "{project}/zones/{zone}/machineTypes", "httpMethod": "GET", "parameters": {"filter": {"type": "string", "location": "query"}, "maxResults": {"type": "integer", "default": "100", "format": "uint32", "minimum": "0", "maximum": "100", "location": "query"}, "pageToken": {"type": "string", "location": "query"}, "project": {"type": "string", "required": true, "location": "path"}, "zone": {"type": "string", "required": true, "location": "path"}}, "response": {"$ref": "MachineTypeList"}, "scopes": ["https://www.googleapis.com/auth/compute", "https://www.googleapis.com/auth/compute.readonly"]}}}', true));
1568
+ $this->networks = new Google_NetworksServiceResource($this, $this->serviceName, 'networks', json_decode('{"methods": {"delete": {"id": "compute.networks.delete", "path": "{project}/global/networks/{network}", "httpMethod": "DELETE", "parameters": {"network": {"type": "string", "required": true, "location": "path"}, "project": {"type": "string", "required": true, "location": "path"}}, "response": {"$ref": "Operation"}, "scopes": ["https://www.googleapis.com/auth/compute"]}, "get": {"id": "compute.networks.get", "path": "{project}/global/networks/{network}", "httpMethod": "GET", "parameters": {"network": {"type": "string", "required": true, "location": "path"}, "project": {"type": "string", "required": true, "location": "path"}}, "response": {"$ref": "Network"}, "scopes": ["https://www.googleapis.com/auth/compute", "https://www.googleapis.com/auth/compute.readonly"]}, "insert": {"id": "compute.networks.insert", "path": "{project}/global/networks", "httpMethod": "POST", "parameters": {"project": {"type": "string", "required": true, "location": "path"}}, "request": {"$ref": "Network"}, "response": {"$ref": "Operation"}, "scopes": ["https://www.googleapis.com/auth/compute"]}, "list": {"id": "compute.networks.list", "path": "{project}/global/networks", "httpMethod": "GET", "parameters": {"filter": {"type": "string", "location": "query"}, "maxResults": {"type": "integer", "default": "100", "format": "uint32", "minimum": "0", "maximum": "100", "location": "query"}, "pageToken": {"type": "string", "location": "query"}, "project": {"type": "string", "required": true, "location": "path"}}, "response": {"$ref": "NetworkList"}, "scopes": ["https://www.googleapis.com/auth/compute", "https://www.googleapis.com/auth/compute.readonly"]}}}', true));
1569
+ $this->projects = new Google_ProjectsServiceResource($this, $this->serviceName, 'projects', json_decode('{"methods": {"get": {"id": "compute.projects.get", "path": "{project}", "httpMethod": "GET", "parameters": {"project": {"type": "string", "required": true, "location": "path"}}, "response": {"$ref": "Project"}, "scopes": ["https://www.googleapis.com/auth/compute", "https://www.googleapis.com/auth/compute.readonly"]}, "setCommonInstanceMetadata": {"id": "compute.projects.setCommonInstanceMetadata", "path": "{project}/setCommonInstanceMetadata", "httpMethod": "POST", "parameters": {"project": {"type": "string", "required": true, "location": "path"}}, "request": {"$ref": "Metadata"}, "response": {"$ref": "Operation"}, "scopes": ["https://www.googleapis.com/auth/compute"]}}}', true));
1570
+ $this->regionOperations = new Google_RegionOperationsServiceResource($this, $this->serviceName, 'regionOperations', json_decode('{"methods": {"delete": {"id": "compute.regionOperations.delete", "path": "{project}/regions/{region}/operations/{operation}", "httpMethod": "DELETE", "parameters": {"operation": {"type": "string", "required": true, "location": "path"}, "project": {"type": "string", "required": true, "location": "path"}, "region": {"type": "string", "required": true, "location": "path"}}, "scopes": ["https://www.googleapis.com/auth/compute"]}, "get": {"id": "compute.regionOperations.get", "path": "{project}/regions/{region}/operations/{operation}", "httpMethod": "GET", "parameters": {"operation": {"type": "string", "required": true, "location": "path"}, "project": {"type": "string", "required": true, "location": "path"}, "region": {"type": "string", "required": true, "location": "path"}}, "response": {"$ref": "Operation"}, "scopes": ["https://www.googleapis.com/auth/compute", "https://www.googleapis.com/auth/compute.readonly"]}, "list": {"id": "compute.regionOperations.list", "path": "{project}/regions/{region}/operations", "httpMethod": "GET", "parameters": {"filter": {"type": "string", "location": "query"}, "maxResults": {"type": "integer", "default": "100", "format": "uint32", "minimum": "0", "maximum": "100", "location": "query"}, "pageToken": {"type": "string", "location": "query"}, "project": {"type": "string", "required": true, "location": "path"}, "region": {"type": "string", "required": true, "location": "path"}}, "response": {"$ref": "OperationList"}, "scopes": ["https://www.googleapis.com/auth/compute", "https://www.googleapis.com/auth/compute.readonly"]}}}', true));
1571
+ $this->regions = new Google_RegionsServiceResource($this, $this->serviceName, 'regions', json_decode('{"methods": {"get": {"id": "compute.regions.get", "path": "{project}/regions/{region}", "httpMethod": "GET", "parameters": {"project": {"type": "string", "required": true, "location": "path"}, "region": {"type": "string", "required": true, "location": "path"}}, "response": {"$ref": "Region"}, "scopes": ["https://www.googleapis.com/auth/compute", "https://www.googleapis.com/auth/compute.readonly"]}, "list": {"id": "compute.regions.list", "path": "{project}/regions", "httpMethod": "GET", "parameters": {"filter": {"type": "string", "location": "query"}, "maxResults": {"type": "integer", "default": "100", "format": "uint32", "minimum": "0", "maximum": "100", "location": "query"}, "pageToken": {"type": "string", "location": "query"}, "project": {"type": "string", "required": true, "location": "path"}}, "response": {"$ref": "RegionList"}, "scopes": ["https://www.googleapis.com/auth/compute", "https://www.googleapis.com/auth/compute.readonly"]}}}', true));
1572
+ $this->routes = new Google_RoutesServiceResource($this, $this->serviceName, 'routes', json_decode('{"methods": {"delete": {"id": "compute.routes.delete", "path": "{project}/global/routes/{route}", "httpMethod": "DELETE", "parameters": {"project": {"type": "string", "required": true, "location": "path"}, "route": {"type": "string", "required": true, "location": "path"}}, "response": {"$ref": "Operation"}, "scopes": ["https://www.googleapis.com/auth/compute"]}, "get": {"id": "compute.routes.get", "path": "{project}/global/routes/{route}", "httpMethod": "GET", "parameters": {"project": {"type": "string", "required": true, "location": "path"}, "route": {"type": "string", "required": true, "location": "path"}}, "response": {"$ref": "Route"}, "scopes": ["https://www.googleapis.com/auth/compute", "https://www.googleapis.com/auth/compute.readonly"]}, "insert": {"id": "compute.routes.insert", "path": "{project}/global/routes", "httpMethod": "POST", "parameters": {"project": {"type": "string", "required": true, "location": "path"}}, "request": {"$ref": "Route"}, "response": {"$ref": "Operation"}, "scopes": ["https://www.googleapis.com/auth/compute"]}, "list": {"id": "compute.routes.list", "path": "{project}/global/routes", "httpMethod": "GET", "parameters": {"filter": {"type": "string", "location": "query"}, "maxResults": {"type": "integer", "default": "100", "format": "uint32", "minimum": "0", "maximum": "100", "location": "query"}, "pageToken": {"type": "string", "location": "query"}, "project": {"type": "string", "required": true, "location": "path"}}, "response": {"$ref": "RouteList"}, "scopes": ["https://www.googleapis.com/auth/compute", "https://www.googleapis.com/auth/compute.readonly"]}}}', true));
1573
+ $this->snapshots = new Google_SnapshotsServiceResource($this, $this->serviceName, 'snapshots', json_decode('{"methods": {"delete": {"id": "compute.snapshots.delete", "path": "{project}/global/snapshots/{snapshot}", "httpMethod": "DELETE", "parameters": {"project": {"type": "string", "required": true, "location": "path"}, "snapshot": {"type": "string", "required": true, "location": "path"}}, "response": {"$ref": "Operation"}, "scopes": ["https://www.googleapis.com/auth/compute"]}, "get": {"id": "compute.snapshots.get", "path": "{project}/global/snapshots/{snapshot}", "httpMethod": "GET", "parameters": {"project": {"type": "string", "required": true, "location": "path"}, "snapshot": {"type": "string", "required": true, "location": "path"}}, "response": {"$ref": "Snapshot"}, "scopes": ["https://www.googleapis.com/auth/compute", "https://www.googleapis.com/auth/compute.readonly"]}, "list": {"id": "compute.snapshots.list", "path": "{project}/global/snapshots", "httpMethod": "GET", "parameters": {"filter": {"type": "string", "location": "query"}, "maxResults": {"type": "integer", "default": "100", "format": "uint32", "minimum": "0", "maximum": "100", "location": "query"}, "pageToken": {"type": "string", "location": "query"}, "project": {"type": "string", "required": true, "location": "path"}}, "response": {"$ref": "SnapshotList"}, "scopes": ["https://www.googleapis.com/auth/compute", "https://www.googleapis.com/auth/compute.readonly"]}}}', true));
1574
+ $this->zoneOperations = new Google_ZoneOperationsServiceResource($this, $this->serviceName, 'zoneOperations', json_decode('{"methods": {"delete": {"id": "compute.zoneOperations.delete", "path": "{project}/zones/{zone}/operations/{operation}", "httpMethod": "DELETE", "parameters": {"operation": {"type": "string", "required": true, "location": "path"}, "project": {"type": "string", "required": true, "location": "path"}, "zone": {"type": "string", "required": true, "location": "path"}}, "scopes": ["https://www.googleapis.com/auth/compute"]}, "get": {"id": "compute.zoneOperations.get", "path": "{project}/zones/{zone}/operations/{operation}", "httpMethod": "GET", "parameters": {"operation": {"type": "string", "required": true, "location": "path"}, "project": {"type": "string", "required": true, "location": "path"}, "zone": {"type": "string", "required": true, "location": "path"}}, "response": {"$ref": "Operation"}, "scopes": ["https://www.googleapis.com/auth/compute", "https://www.googleapis.com/auth/compute.readonly"]}, "list": {"id": "compute.zoneOperations.list", "path": "{project}/zones/{zone}/operations", "httpMethod": "GET", "parameters": {"filter": {"type": "string", "location": "query"}, "maxResults": {"type": "integer", "default": "100", "format": "uint32", "minimum": "0", "maximum": "100", "location": "query"}, "pageToken": {"type": "string", "location": "query"}, "project": {"type": "string", "required": true, "location": "path"}, "zone": {"type": "string", "required": true, "location": "path"}}, "response": {"$ref": "OperationList"}, "scopes": ["https://www.googleapis.com/auth/compute", "https://www.googleapis.com/auth/compute.readonly"]}}}', true));
1575
+ $this->zones = new Google_ZonesServiceResource($this, $this->serviceName, 'zones', json_decode('{"methods": {"get": {"id": "compute.zones.get", "path": "{project}/zones/{zone}", "httpMethod": "GET", "parameters": {"project": {"type": "string", "required": true, "location": "path"}, "zone": {"type": "string", "required": true, "location": "path"}}, "response": {"$ref": "Zone"}, "scopes": ["https://www.googleapis.com/auth/compute", "https://www.googleapis.com/auth/compute.readonly"]}, "list": {"id": "compute.zones.list", "path": "{project}/zones", "httpMethod": "GET", "parameters": {"filter": {"type": "string", "location": "query"}, "maxResults": {"type": "integer", "default": "100", "format": "uint32", "minimum": "0", "maximum": "100", "location": "query"}, "pageToken": {"type": "string", "location": "query"}, "project": {"type": "string", "required": true, "location": "path"}}, "response": {"$ref": "ZoneList"}, "scopes": ["https://www.googleapis.com/auth/compute", "https://www.googleapis.com/auth/compute.readonly"]}}}', true));
1576
+
1577
+ }
1578
+ }
1579
+
1580
+
1581
+
1582
+ class Google_AccessConfig extends Google_Model {
1583
+ public $kind;
1584
+ public $name;
1585
+ public $natIP;
1586
+ public $type;
1587
+ public function setKind( $kind) {
1588
+ $this->kind = $kind;
1589
+ }
1590
+ public function getKind() {
1591
+ return $this->kind;
1592
+ }
1593
+ public function setName( $name) {
1594
+ $this->name = $name;
1595
+ }
1596
+ public function getName() {
1597
+ return $this->name;
1598
+ }
1599
+ public function setNatIP( $natIP) {
1600
+ $this->natIP = $natIP;
1601
+ }
1602
+ public function getNatIP() {
1603
+ return $this->natIP;
1604
+ }
1605
+ public function setType( $type) {
1606
+ $this->type = $type;
1607
+ }
1608
+ public function getType() {
1609
+ return $this->type;
1610
+ }
1611
+ }
1612
+
1613
+ class Google_Address extends Google_Model {
1614
+ public $address;
1615
+ public $creationTimestamp;
1616
+ public $description;
1617
+ public $id;
1618
+ public $kind;
1619
+ public $name;
1620
+ public $region;
1621
+ public $selfLink;
1622
+ public $status;
1623
+ public $user;
1624
+ public function setAddress( $address) {
1625
+ $this->address = $address;
1626
+ }
1627
+ public function getAddress() {
1628
+ return $this->address;
1629
+ }
1630
+ public function setCreationTimestamp( $creationTimestamp) {
1631
+ $this->creationTimestamp = $creationTimestamp;
1632
+ }
1633
+ public function getCreationTimestamp() {
1634
+ return $this->creationTimestamp;
1635
+ }
1636
+ public function setDescription( $description) {
1637
+ $this->description = $description;
1638
+ }
1639
+ public function getDescription() {
1640
+ return $this->description;
1641
+ }
1642
+ public function setId( $id) {
1643
+ $this->id = $id;
1644
+ }
1645
+ public function getId() {
1646
+ return $this->id;
1647
+ }
1648
+ public function setKind( $kind) {
1649
+ $this->kind = $kind;
1650
+ }
1651
+ public function getKind() {
1652
+ return $this->kind;
1653
+ }
1654
+ public function setName( $name) {
1655
+ $this->name = $name;
1656
+ }
1657
+ public function getName() {
1658
+ return $this->name;
1659
+ }
1660
+ public function setRegion( $region) {
1661
+ $this->region = $region;
1662
+ }
1663
+ public function getRegion() {
1664
+ return $this->region;
1665
+ }
1666
+ public function setSelfLink( $selfLink) {
1667
+ $this->selfLink = $selfLink;
1668
+ }
1669
+ public function getSelfLink() {
1670
+ return $this->selfLink;
1671
+ }
1672
+ public function setStatus( $status) {
1673
+ $this->status = $status;
1674
+ }
1675
+ public function getStatus() {
1676
+ return $this->status;
1677
+ }
1678
+ public function setUser( $user) {
1679
+ $this->user = $user;
1680
+ }
1681
+ public function getUser() {
1682
+ return $this->user;
1683
+ }
1684
+ }
1685
+
1686
+ class Google_AddressAggregatedList extends Google_Model {
1687
+ public $id;
1688
+ protected $__itemsType = 'Google_AddressesScopedList';
1689
+ protected $__itemsDataType = 'map';
1690
+ public $items;
1691
+ public $kind;
1692
+ public $nextPageToken;
1693
+ public $selfLink;
1694
+ public function setId( $id) {
1695
+ $this->id = $id;
1696
+ }
1697
+ public function getId() {
1698
+ return $this->id;
1699
+ }
1700
+ public function setItems(Google_AddressesScopedList $items) {
1701
+ $this->items = $items;
1702
+ }
1703
+ public function getItems() {
1704
+ return $this->items;
1705
+ }
1706
+ public function setKind( $kind) {
1707
+ $this->kind = $kind;
1708
+ }
1709
+ public function getKind() {
1710
+ return $this->kind;
1711
+ }
1712
+ public function setNextPageToken( $nextPageToken) {
1713
+ $this->nextPageToken = $nextPageToken;
1714
+ }
1715
+ public function getNextPageToken() {
1716
+ return $this->nextPageToken;
1717
+ }
1718
+ public function setSelfLink( $selfLink) {
1719
+ $this->selfLink = $selfLink;
1720
+ }
1721
+ public function getSelfLink() {
1722
+ return $this->selfLink;
1723
+ }
1724
+ }
1725
+
1726
+ class Google_AddressList extends Google_Model {
1727
+ public $id;
1728
+ protected $__itemsType = 'Google_Address';
1729
+ protected $__itemsDataType = 'array';
1730
+ public $items;
1731
+ public $kind;
1732
+ public $nextPageToken;
1733
+ public $selfLink;
1734
+ public function setId( $id) {
1735
+ $this->id = $id;
1736
+ }
1737
+ public function getId() {
1738
+ return $this->id;
1739
+ }
1740
+ public function setItems(/* array(Google_Address) */ $items) {
1741
+ $this->assertIsArray($items, 'Google_Address', __METHOD__);
1742
+ $this->items = $items;
1743
+ }
1744
+ public function getItems() {
1745
+ return $this->items;
1746
+ }
1747
+ public function setKind( $kind) {
1748
+ $this->kind = $kind;
1749
+ }
1750
+ public function getKind() {
1751
+ return $this->kind;
1752
+ }
1753
+ public function setNextPageToken( $nextPageToken) {
1754
+ $this->nextPageToken = $nextPageToken;
1755
+ }
1756
+ public function getNextPageToken() {
1757
+ return $this->nextPageToken;
1758
+ }
1759
+ public function setSelfLink( $selfLink) {
1760
+ $this->selfLink = $selfLink;
1761
+ }
1762
+ public function getSelfLink() {
1763
+ return $this->selfLink;
1764
+ }
1765
+ }
1766
+
1767
+ class Google_AddressesScopedList extends Google_Model {
1768
+ protected $__addressesType = 'Google_Address';
1769
+ protected $__addressesDataType = 'array';
1770
+ public $addresses;
1771
+ protected $__warningType = 'Google_AddressesScopedListWarning';
1772
+ protected $__warningDataType = '';
1773
+ public $warning;
1774
+ public function setAddresses(/* array(Google_Address) */ $addresses) {
1775
+ $this->assertIsArray($addresses, 'Google_Address', __METHOD__);
1776
+ $this->addresses = $addresses;
1777
+ }
1778
+ public function getAddresses() {
1779
+ return $this->addresses;
1780
+ }
1781
+ public function setWarning(Google_AddressesScopedListWarning $warning) {
1782
+ $this->warning = $warning;
1783
+ }
1784
+ public function getWarning() {
1785
+ return $this->warning;
1786
+ }
1787
+ }
1788
+
1789
+ class Google_AddressesScopedListWarning extends Google_Model {
1790
+ public $code;
1791
+ protected $__dataType = 'Google_AddressesScopedListWarningData';
1792
+ protected $__dataDataType = 'array';
1793
+ public $data;
1794
+ public $message;
1795
+ public function setCode( $code) {
1796
+ $this->code = $code;
1797
+ }
1798
+ public function getCode() {
1799
+ return $this->code;
1800
+ }
1801
+ public function setData(/* array(Google_AddressesScopedListWarningData) */ $data) {
1802
+ $this->assertIsArray($data, 'Google_AddressesScopedListWarningData', __METHOD__);
1803
+ $this->data = $data;
1804
+ }
1805
+ public function getData() {
1806
+ return $this->data;
1807
+ }
1808
+ public function setMessage( $message) {
1809
+ $this->message = $message;
1810
+ }
1811
+ public function getMessage() {
1812
+ return $this->message;
1813
+ }
1814
+ }
1815
+
1816
+ class Google_AddressesScopedListWarningData extends Google_Model {
1817
+ public $key;
1818
+ public $value;
1819
+ public function setKey( $key) {
1820
+ $this->key = $key;
1821
+ }
1822
+ public function getKey() {
1823
+ return $this->key;
1824
+ }
1825
+ public function setValue( $value) {
1826
+ $this->value = $value;
1827
+ }
1828
+ public function getValue() {
1829
+ return $this->value;
1830
+ }
1831
+ }
1832
+
1833
+ class Google_AttachedDisk extends Google_Model {
1834
+ public $boot;
1835
+ public $deviceName;
1836
+ public $index;
1837
+ public $kind;
1838
+ public $mode;
1839
+ public $source;
1840
+ public $type;
1841
+ public function setBoot( $boot) {
1842
+ $this->boot = $boot;
1843
+ }
1844
+ public function getBoot() {
1845
+ return $this->boot;
1846
+ }
1847
+ public function setDeviceName( $deviceName) {
1848
+ $this->deviceName = $deviceName;
1849
+ }
1850
+ public function getDeviceName() {
1851
+ return $this->deviceName;
1852
+ }
1853
+ public function setIndex( $index) {
1854
+ $this->index = $index;
1855
+ }
1856
+ public function getIndex() {
1857
+ return $this->index;
1858
+ }
1859
+ public function setKind( $kind) {
1860
+ $this->kind = $kind;
1861
+ }
1862
+ public function getKind() {
1863
+ return $this->kind;
1864
+ }
1865
+ public function setMode( $mode) {
1866
+ $this->mode = $mode;
1867
+ }
1868
+ public function getMode() {
1869
+ return $this->mode;
1870
+ }
1871
+ public function setSource( $source) {
1872
+ $this->source = $source;
1873
+ }
1874
+ public function getSource() {
1875
+ return $this->source;
1876
+ }
1877
+ public function setType( $type) {
1878
+ $this->type = $type;
1879
+ }
1880
+ public function getType() {
1881
+ return $this->type;
1882
+ }
1883
+ }
1884
+
1885
+ class Google_DeprecationStatus extends Google_Model {
1886
+ public $deleted;
1887
+ public $deprecated;
1888
+ public $obsolete;
1889
+ public $replacement;
1890
+ public $state;
1891
+ public function setDeleted( $deleted) {
1892
+ $this->deleted = $deleted;
1893
+ }
1894
+ public function getDeleted() {
1895
+ return $this->deleted;
1896
+ }
1897
+ public function setDeprecated( $deprecated) {
1898
+ $this->deprecated = $deprecated;
1899
+ }
1900
+ public function getDeprecated() {
1901
+ return $this->deprecated;
1902
+ }
1903
+ public function setObsolete( $obsolete) {
1904
+ $this->obsolete = $obsolete;
1905
+ }
1906
+ public function getObsolete() {
1907
+ return $this->obsolete;
1908
+ }
1909
+ public function setReplacement( $replacement) {
1910
+ $this->replacement = $replacement;
1911
+ }
1912
+ public function getReplacement() {
1913
+ return $this->replacement;
1914
+ }
1915
+ public function setState( $state) {
1916
+ $this->state = $state;
1917
+ }
1918
+ public function getState() {
1919
+ return $this->state;
1920
+ }
1921
+ }
1922
+
1923
+ class Google_Disk extends Google_Model {
1924
+ public $creationTimestamp;
1925
+ public $description;
1926
+ public $id;
1927
+ public $kind;
1928
+ public $name;
1929
+ public $options;
1930
+ public $selfLink;
1931
+ public $sizeGb;
1932
+ public $sourceSnapshot;
1933
+ public $sourceSnapshotId;
1934
+ public $status;
1935
+ public $zone;
1936
+ public function setCreationTimestamp( $creationTimestamp) {
1937
+ $this->creationTimestamp = $creationTimestamp;
1938
+ }
1939
+ public function getCreationTimestamp() {
1940
+ return $this->creationTimestamp;
1941
+ }
1942
+ public function setDescription( $description) {
1943
+ $this->description = $description;
1944
+ }
1945
+ public function getDescription() {
1946
+ return $this->description;
1947
+ }
1948
+ public function setId( $id) {
1949
+ $this->id = $id;
1950
+ }
1951
+ public function getId() {
1952
+ return $this->id;
1953
+ }
1954
+ public function setKind( $kind) {
1955
+ $this->kind = $kind;
1956
+ }
1957
+ public function getKind() {
1958
+ return $this->kind;
1959
+ }
1960
+ public function setName( $name) {
1961
+ $this->name = $name;
1962
+ }
1963
+ public function getName() {
1964
+ return $this->name;
1965
+ }
1966
+ public function setOptions( $options) {
1967
+ $this->options = $options;
1968
+ }
1969
+ public function getOptions() {
1970
+ return $this->options;
1971
+ }
1972
+ public function setSelfLink( $selfLink) {
1973
+ $this->selfLink = $selfLink;
1974
+ }
1975
+ public function getSelfLink() {
1976
+ return $this->selfLink;
1977
+ }
1978
+ public function setSizeGb( $sizeGb) {
1979
+ $this->sizeGb = $sizeGb;
1980
+ }
1981
+ public function getSizeGb() {
1982
+ return $this->sizeGb;
1983
+ }
1984
+ public function setSourceSnapshot( $sourceSnapshot) {
1985
+ $this->sourceSnapshot = $sourceSnapshot;
1986
+ }
1987
+ public function getSourceSnapshot() {
1988
+ return $this->sourceSnapshot;
1989
+ }
1990
+ public function setSourceSnapshotId( $sourceSnapshotId) {
1991
+ $this->sourceSnapshotId = $sourceSnapshotId;
1992
+ }
1993
+ public function getSourceSnapshotId() {
1994
+ return $this->sourceSnapshotId;
1995
+ }
1996
+ public function setStatus( $status) {
1997
+ $this->status = $status;
1998
+ }
1999
+ public function getStatus() {
2000
+ return $this->status;
2001
+ }
2002
+ public function setZone( $zone) {
2003
+ $this->zone = $zone;
2004
+ }
2005
+ public function getZone() {
2006
+ return $this->zone;
2007
+ }
2008
+ }
2009
+
2010
+ class Google_DiskAggregatedList extends Google_Model {
2011
+ public $id;
2012
+ protected $__itemsType = 'Google_DisksScopedList';
2013
+ protected $__itemsDataType = 'map';
2014
+ public $items;
2015
+ public $kind;
2016
+ public $nextPageToken;
2017
+ public $selfLink;
2018
+ public function setId( $id) {
2019
+ $this->id = $id;
2020
+ }
2021
+ public function getId() {
2022
+ return $this->id;
2023
+ }
2024
+ public function setItems(Google_DisksScopedList $items) {
2025
+ $this->items = $items;
2026
+ }
2027
+ public function getItems() {
2028
+ return $this->items;
2029
+ }
2030
+ public function setKind( $kind) {
2031
+ $this->kind = $kind;
2032
+ }
2033
+ public function getKind() {
2034
+ return $this->kind;
2035
+ }
2036
+ public function setNextPageToken( $nextPageToken) {
2037
+ $this->nextPageToken = $nextPageToken;
2038
+ }
2039
+ public function getNextPageToken() {
2040
+ return $this->nextPageToken;
2041
+ }
2042
+ public function setSelfLink( $selfLink) {
2043
+ $this->selfLink = $selfLink;
2044
+ }
2045
+ public function getSelfLink() {
2046
+ return $this->selfLink;
2047
+ }
2048
+ }
2049
+
2050
+ class Google_DiskList extends Google_Model {
2051
+ public $id;
2052
+ protected $__itemsType = 'Google_Disk';
2053
+ protected $__itemsDataType = 'array';
2054
+ public $items;
2055
+ public $kind;
2056
+ public $nextPageToken;
2057
+ public $selfLink;
2058
+ public function setId( $id) {
2059
+ $this->id = $id;
2060
+ }
2061
+ public function getId() {
2062
+ return $this->id;
2063
+ }
2064
+ public function setItems(/* array(Google_Disk) */ $items) {
2065
+ $this->assertIsArray($items, 'Google_Disk', __METHOD__);
2066
+ $this->items = $items;
2067
+ }
2068
+ public function getItems() {
2069
+ return $this->items;
2070
+ }
2071
+ public function setKind( $kind) {
2072
+ $this->kind = $kind;
2073
+ }
2074
+ public function getKind() {
2075
+ return $this->kind;
2076
+ }
2077
+ public function setNextPageToken( $nextPageToken) {
2078
+ $this->nextPageToken = $nextPageToken;
2079
+ }
2080
+ public function getNextPageToken() {
2081
+ return $this->nextPageToken;
2082
+ }
2083
+ public function setSelfLink( $selfLink) {
2084
+ $this->selfLink = $selfLink;
2085
+ }
2086
+ public function getSelfLink() {
2087
+ return $this->selfLink;
2088
+ }
2089
+ }
2090
+
2091
+ class Google_DisksScopedList extends Google_Model {
2092
+ protected $__disksType = 'Google_Disk';
2093
+ protected $__disksDataType = 'array';
2094
+ public $disks;
2095
+ protected $__warningType = 'Google_DisksScopedListWarning';
2096
+ protected $__warningDataType = '';
2097
+ public $warning;
2098
+ public function setDisks(/* array(Google_Disk) */ $disks) {
2099
+ $this->assertIsArray($disks, 'Google_Disk', __METHOD__);
2100
+ $this->disks = $disks;
2101
+ }
2102
+ public function getDisks() {
2103
+ return $this->disks;
2104
+ }
2105
+ public function setWarning(Google_DisksScopedListWarning $warning) {
2106
+ $this->warning = $warning;
2107
+ }
2108
+ public function getWarning() {
2109
+ return $this->warning;
2110
+ }
2111
+ }
2112
+
2113
+ class Google_DisksScopedListWarning extends Google_Model {
2114
+ public $code;
2115
+ protected $__dataType = 'Google_DisksScopedListWarningData';
2116
+ protected $__dataDataType = 'array';
2117
+ public $data;
2118
+ public $message;
2119
+ public function setCode( $code) {
2120
+ $this->code = $code;
2121
+ }
2122
+ public function getCode() {
2123
+ return $this->code;
2124
+ }
2125
+ public function setData(/* array(Google_DisksScopedListWarningData) */ $data) {
2126
+ $this->assertIsArray($data, 'Google_DisksScopedListWarningData', __METHOD__);
2127
+ $this->data = $data;
2128
+ }
2129
+ public function getData() {
2130
+ return $this->data;
2131
+ }
2132
+ public function setMessage( $message) {
2133
+ $this->message = $message;
2134
+ }
2135
+ public function getMessage() {
2136
+ return $this->message;
2137
+ }
2138
+ }
2139
+
2140
+ class Google_DisksScopedListWarningData extends Google_Model {
2141
+ public $key;
2142
+ public $value;
2143
+ public function setKey( $key) {
2144
+ $this->key = $key;
2145
+ }
2146
+ public function getKey() {
2147
+ return $this->key;
2148
+ }
2149
+ public function setValue( $value) {
2150
+ $this->value = $value;
2151
+ }
2152
+ public function getValue() {
2153
+ return $this->value;
2154
+ }
2155
+ }
2156
+
2157
+ class Google_Firewall extends Google_Model {
2158
+ protected $__allowedType = 'Google_FirewallAllowed';
2159
+ protected $__allowedDataType = 'array';
2160
+ public $allowed;
2161
+ public $creationTimestamp;
2162
+ public $description;
2163
+ public $id;
2164
+ public $kind;
2165
+ public $name;
2166
+ public $network;
2167
+ public $selfLink;
2168
+ public $sourceRanges;
2169
+ public $sourceTags;
2170
+ public $targetTags;
2171
+ public function setAllowed(/* array(Google_FirewallAllowed) */ $allowed) {
2172
+ $this->assertIsArray($allowed, 'Google_FirewallAllowed', __METHOD__);
2173
+ $this->allowed = $allowed;
2174
+ }
2175
+ public function getAllowed() {
2176
+ return $this->allowed;
2177
+ }
2178
+ public function setCreationTimestamp( $creationTimestamp) {
2179
+ $this->creationTimestamp = $creationTimestamp;
2180
+ }
2181
+ public function getCreationTimestamp() {
2182
+ return $this->creationTimestamp;
2183
+ }
2184
+ public function setDescription( $description) {
2185
+ $this->description = $description;
2186
+ }
2187
+ public function getDescription() {
2188
+ return $this->description;
2189
+ }
2190
+ public function setId( $id) {
2191
+ $this->id = $id;
2192
+ }
2193
+ public function getId() {
2194
+ return $this->id;
2195
+ }
2196
+ public function setKind( $kind) {
2197
+ $this->kind = $kind;
2198
+ }
2199
+ public function getKind() {
2200
+ return $this->kind;
2201
+ }
2202
+ public function setName( $name) {
2203
+ $this->name = $name;
2204
+ }
2205
+ public function getName() {
2206
+ return $this->name;
2207
+ }
2208
+ public function setNetwork( $network) {
2209
+ $this->network = $network;
2210
+ }
2211
+ public function getNetwork() {
2212
+ return $this->network;
2213
+ }
2214
+ public function setSelfLink( $selfLink) {
2215
+ $this->selfLink = $selfLink;
2216
+ }
2217
+ public function getSelfLink() {
2218
+ return $this->selfLink;
2219
+ }
2220
+ public function setSourceRanges(/* array(Google_string) */ $sourceRanges) {
2221
+ $this->assertIsArray($sourceRanges, 'Google_string', __METHOD__);
2222
+ $this->sourceRanges = $sourceRanges;
2223
+ }
2224
+ public function getSourceRanges() {
2225
+ return $this->sourceRanges;
2226
+ }
2227
+ public function setSourceTags(/* array(Google_string) */ $sourceTags) {
2228
+ $this->assertIsArray($sourceTags, 'Google_string', __METHOD__);
2229
+ $this->sourceTags = $sourceTags;
2230
+ }
2231
+ public function getSourceTags() {
2232
+ return $this->sourceTags;
2233
+ }
2234
+ public function setTargetTags(/* array(Google_string) */ $targetTags) {
2235
+ $this->assertIsArray($targetTags, 'Google_string', __METHOD__);
2236
+ $this->targetTags = $targetTags;
2237
+ }
2238
+ public function getTargetTags() {
2239
+ return $this->targetTags;
2240
+ }
2241
+ }
2242
+
2243
+ class Google_FirewallAllowed extends Google_Model {
2244
+ public $IPProtocol;
2245
+ public $ports;
2246
+ public function setIPProtocol( $IPProtocol) {
2247
+ $this->IPProtocol = $IPProtocol;
2248
+ }
2249
+ public function getIPProtocol() {
2250
+ return $this->IPProtocol;
2251
+ }
2252
+ public function setPorts(/* array(Google_string) */ $ports) {
2253
+ $this->assertIsArray($ports, 'Google_string', __METHOD__);
2254
+ $this->ports = $ports;
2255
+ }
2256
+ public function getPorts() {
2257
+ return $this->ports;
2258
+ }
2259
+ }
2260
+
2261
+ class Google_FirewallList extends Google_Model {
2262
+ public $id;
2263
+ protected $__itemsType = 'Google_Firewall';
2264
+ protected $__itemsDataType = 'array';
2265
+ public $items;
2266
+ public $kind;
2267
+ public $nextPageToken;
2268
+ public $selfLink;
2269
+ public function setId( $id) {
2270
+ $this->id = $id;
2271
+ }
2272
+ public function getId() {
2273
+ return $this->id;
2274
+ }
2275
+ public function setItems(/* array(Google_Firewall) */ $items) {
2276
+ $this->assertIsArray($items, 'Google_Firewall', __METHOD__);
2277
+ $this->items = $items;
2278
+ }
2279
+ public function getItems() {
2280
+ return $this->items;
2281
+ }
2282
+ public function setKind( $kind) {
2283
+ $this->kind = $kind;
2284
+ }
2285
+ public function getKind() {
2286
+ return $this->kind;
2287
+ }
2288
+ public function setNextPageToken( $nextPageToken) {
2289
+ $this->nextPageToken = $nextPageToken;
2290
+ }
2291
+ public function getNextPageToken() {
2292
+ return $this->nextPageToken;
2293
+ }
2294
+ public function setSelfLink( $selfLink) {
2295
+ $this->selfLink = $selfLink;
2296
+ }
2297
+ public function getSelfLink() {
2298
+ return $this->selfLink;
2299
+ }
2300
+ }
2301
+
2302
+ class Google_Image extends Google_Model {
2303
+ public $creationTimestamp;
2304
+ protected $__deprecatedType = 'Google_DeprecationStatus';
2305
+ protected $__deprecatedDataType = '';
2306
+ public $deprecated;
2307
+ public $description;
2308
+ public $id;
2309
+ public $kind;
2310
+ public $name;
2311
+ public $preferredKernel;
2312
+ protected $__rawDiskType = 'Google_ImageRawDisk';
2313
+ protected $__rawDiskDataType = '';
2314
+ public $rawDisk;
2315
+ public $selfLink;
2316
+ public $sourceType;
2317
+ public $status;
2318
+ public function setCreationTimestamp( $creationTimestamp) {
2319
+ $this->creationTimestamp = $creationTimestamp;
2320
+ }
2321
+ public function getCreationTimestamp() {
2322
+ return $this->creationTimestamp;
2323
+ }
2324
+ public function setDeprecated(Google_DeprecationStatus $deprecated) {
2325
+ $this->deprecated = $deprecated;
2326
+ }
2327
+ public function getDeprecated() {
2328
+ return $this->deprecated;
2329
+ }
2330
+ public function setDescription( $description) {
2331
+ $this->description = $description;
2332
+ }
2333
+ public function getDescription() {
2334
+ return $this->description;
2335
+ }
2336
+ public function setId( $id) {
2337
+ $this->id = $id;
2338
+ }
2339
+ public function getId() {
2340
+ return $this->id;
2341
+ }
2342
+ public function setKind( $kind) {
2343
+ $this->kind = $kind;
2344
+ }
2345
+ public function getKind() {
2346
+ return $this->kind;
2347
+ }
2348
+ public function setName( $name) {
2349
+ $this->name = $name;
2350
+ }
2351
+ public function getName() {
2352
+ return $this->name;
2353
+ }
2354
+ public function setPreferredKernel( $preferredKernel) {
2355
+ $this->preferredKernel = $preferredKernel;
2356
+ }
2357
+ public function getPreferredKernel() {
2358
+ return $this->preferredKernel;
2359
+ }
2360
+ public function setRawDisk(Google_ImageRawDisk $rawDisk) {
2361
+ $this->rawDisk = $rawDisk;
2362
+ }
2363
+ public function getRawDisk() {
2364
+ return $this->rawDisk;
2365
+ }
2366
+ public function setSelfLink( $selfLink) {
2367
+ $this->selfLink = $selfLink;
2368
+ }
2369
+ public function getSelfLink() {
2370
+ return $this->selfLink;
2371
+ }
2372
+ public function setSourceType( $sourceType) {
2373
+ $this->sourceType = $sourceType;
2374
+ }
2375
+ public function getSourceType() {
2376
+ return $this->sourceType;
2377
+ }
2378
+ public function setStatus( $status) {
2379
+ $this->status = $status;
2380
+ }
2381
+ public function getStatus() {
2382
+ return $this->status;
2383
+ }
2384
+ }
2385
+
2386
+ class Google_ImageList extends Google_Model {
2387
+ public $id;
2388
+ protected $__itemsType = 'Google_Image';
2389
+ protected $__itemsDataType = 'array';
2390
+ public $items;
2391
+ public $kind;
2392
+ public $nextPageToken;
2393
+ public $selfLink;
2394
+ public function setId( $id) {
2395
+ $this->id = $id;
2396
+ }
2397
+ public function getId() {
2398
+ return $this->id;
2399
+ }
2400
+ public function setItems(/* array(Google_Image) */ $items) {
2401
+ $this->assertIsArray($items, 'Google_Image', __METHOD__);
2402
+ $this->items = $items;
2403
+ }
2404
+ public function getItems() {
2405
+ return $this->items;
2406
+ }
2407
+ public function setKind( $kind) {
2408
+ $this->kind = $kind;
2409
+ }
2410
+ public function getKind() {
2411
+ return $this->kind;
2412
+ }
2413
+ public function setNextPageToken( $nextPageToken) {
2414
+ $this->nextPageToken = $nextPageToken;
2415
+ }
2416
+ public function getNextPageToken() {
2417
+ return $this->nextPageToken;
2418
+ }
2419
+ public function setSelfLink( $selfLink) {
2420
+ $this->selfLink = $selfLink;
2421
+ }
2422
+ public function getSelfLink() {
2423
+ return $this->selfLink;
2424
+ }
2425
+ }
2426
+
2427
+ class Google_ImageRawDisk extends Google_Model {
2428
+ public $containerType;
2429
+ public $sha1Checksum;
2430
+ public $source;
2431
+ public function setContainerType( $containerType) {
2432
+ $this->containerType = $containerType;
2433
+ }
2434
+ public function getContainerType() {
2435
+ return $this->containerType;
2436
+ }
2437
+ public function setSha1Checksum( $sha1Checksum) {
2438
+ $this->sha1Checksum = $sha1Checksum;
2439
+ }
2440
+ public function getSha1Checksum() {
2441
+ return $this->sha1Checksum;
2442
+ }
2443
+ public function setSource( $source) {
2444
+ $this->source = $source;
2445
+ }
2446
+ public function getSource() {
2447
+ return $this->source;
2448
+ }
2449
+ }
2450
+
2451
+ class Google_Instance extends Google_Model {
2452
+ public $canIpForward;
2453
+ public $creationTimestamp;
2454
+ public $description;
2455
+ protected $__disksType = 'Google_AttachedDisk';
2456
+ protected $__disksDataType = 'array';
2457
+ public $disks;
2458
+ public $id;
2459
+ public $image;
2460
+ public $kernel;
2461
+ public $kind;
2462
+ public $machineType;
2463
+ protected $__metadataType = 'Google_Metadata';
2464
+ protected $__metadataDataType = '';
2465
+ public $metadata;
2466
+ public $name;
2467
+ protected $__networkInterfacesType = 'Google_NetworkInterface';
2468
+ protected $__networkInterfacesDataType = 'array';
2469
+ public $networkInterfaces;
2470
+ public $selfLink;
2471
+ protected $__serviceAccountsType = 'Google_ServiceAccount';
2472
+ protected $__serviceAccountsDataType = 'array';
2473
+ public $serviceAccounts;
2474
+ public $status;
2475
+ public $statusMessage;
2476
+ protected $__tagsType = 'Google_Tags';
2477
+ protected $__tagsDataType = '';
2478
+ public $tags;
2479
+ public $zone;
2480
+ public function setCanIpForward( $canIpForward) {
2481
+ $this->canIpForward = $canIpForward;
2482
+ }
2483
+ public function getCanIpForward() {
2484
+ return $this->canIpForward;
2485
+ }
2486
+ public function setCreationTimestamp( $creationTimestamp) {
2487
+ $this->creationTimestamp = $creationTimestamp;
2488
+ }
2489
+ public function getCreationTimestamp() {
2490
+ return $this->creationTimestamp;
2491
+ }
2492
+ public function setDescription( $description) {
2493
+ $this->description = $description;
2494
+ }
2495
+ public function getDescription() {
2496
+ return $this->description;
2497
+ }
2498
+ public function setDisks(/* array(Google_AttachedDisk) */ $disks) {
2499
+ $this->assertIsArray($disks, 'Google_AttachedDisk', __METHOD__);
2500
+ $this->disks = $disks;
2501
+ }
2502
+ public function getDisks() {
2503
+ return $this->disks;
2504
+ }
2505
+ public function setId( $id) {
2506
+ $this->id = $id;
2507
+ }
2508
+ public function getId() {
2509
+ return $this->id;
2510
+ }
2511
+ public function setImage( $image) {
2512
+ $this->image = $image;
2513
+ }
2514
+ public function getImage() {
2515
+ return $this->image;
2516
+ }
2517
+ public function setKernel( $kernel) {
2518
+ $this->kernel = $kernel;
2519
+ }
2520
+ public function getKernel() {
2521
+ return $this->kernel;
2522
+ }
2523
+ public function setKind( $kind) {
2524
+ $this->kind = $kind;
2525
+ }
2526
+ public function getKind() {
2527
+ return $this->kind;
2528
+ }
2529
+ public function setMachineType( $machineType) {
2530
+ $this->machineType = $machineType;
2531
+ }
2532
+ public function getMachineType() {
2533
+ return $this->machineType;
2534
+ }
2535
+ public function setMetadata(Google_Metadata $metadata) {
2536
+ $this->metadata = $metadata;
2537
+ }
2538
+ public function getMetadata() {
2539
+ return $this->metadata;
2540
+ }
2541
+ public function setName( $name) {
2542
+ $this->name = $name;
2543
+ }
2544
+ public function getName() {
2545
+ return $this->name;
2546
+ }
2547
+ public function setNetworkInterfaces(/* array(Google_NetworkInterface) */ $networkInterfaces) {
2548
+ $this->assertIsArray($networkInterfaces, 'Google_NetworkInterface', __METHOD__);
2549
+ $this->networkInterfaces = $networkInterfaces;
2550
+ }
2551
+ public function getNetworkInterfaces() {
2552
+ return $this->networkInterfaces;
2553
+ }
2554
+ public function setSelfLink( $selfLink) {
2555
+ $this->selfLink = $selfLink;
2556
+ }
2557
+ public function getSelfLink() {
2558
+ return $this->selfLink;
2559
+ }
2560
+ public function setServiceAccounts(/* array(Google_ServiceAccount) */ $serviceAccounts) {
2561
+ $this->assertIsArray($serviceAccounts, 'Google_ServiceAccount', __METHOD__);
2562
+ $this->serviceAccounts = $serviceAccounts;
2563
+ }
2564
+ public function getServiceAccounts() {
2565
+ return $this->serviceAccounts;
2566
+ }
2567
+ public function setStatus( $status) {
2568
+ $this->status = $status;
2569
+ }
2570
+ public function getStatus() {
2571
+ return $this->status;
2572
+ }
2573
+ public function setStatusMessage( $statusMessage) {
2574
+ $this->statusMessage = $statusMessage;
2575
+ }
2576
+ public function getStatusMessage() {
2577
+ return $this->statusMessage;
2578
+ }
2579
+ public function setTags(Google_Tags $tags) {
2580
+ $this->tags = $tags;
2581
+ }
2582
+ public function getTags() {
2583
+ return $this->tags;
2584
+ }
2585
+ public function setZone( $zone) {
2586
+ $this->zone = $zone;
2587
+ }
2588
+ public function getZone() {
2589
+ return $this->zone;
2590
+ }
2591
+ }
2592
+
2593
+ class Google_InstanceAggregatedList extends Google_Model {
2594
+ public $id;
2595
+ protected $__itemsType = 'Google_InstancesScopedList';
2596
+ protected $__itemsDataType = 'map';
2597
+ public $items;
2598
+ public $kind;
2599
+ public $nextPageToken;
2600
+ public $selfLink;
2601
+ public function setId( $id) {
2602
+ $this->id = $id;
2603
+ }
2604
+ public function getId() {
2605
+ return $this->id;
2606
+ }
2607
+ public function setItems(Google_InstancesScopedList $items) {
2608
+ $this->items = $items;
2609
+ }
2610
+ public function getItems() {
2611
+ return $this->items;
2612
+ }
2613
+ public function setKind( $kind) {
2614
+ $this->kind = $kind;
2615
+ }
2616
+ public function getKind() {
2617
+ return $this->kind;
2618
+ }
2619
+ public function setNextPageToken( $nextPageToken) {
2620
+ $this->nextPageToken = $nextPageToken;
2621
+ }
2622
+ public function getNextPageToken() {
2623
+ return $this->nextPageToken;
2624
+ }
2625
+ public function setSelfLink( $selfLink) {
2626
+ $this->selfLink = $selfLink;
2627
+ }
2628
+ public function getSelfLink() {
2629
+ return $this->selfLink;
2630
+ }
2631
+ }
2632
+
2633
+ class Google_InstanceList extends Google_Model {
2634
+ public $id;
2635
+ protected $__itemsType = 'Google_Instance';
2636
+ protected $__itemsDataType = 'array';
2637
+ public $items;
2638
+ public $kind;
2639
+ public $nextPageToken;
2640
+ public $selfLink;
2641
+ public function setId( $id) {
2642
+ $this->id = $id;
2643
+ }
2644
+ public function getId() {
2645
+ return $this->id;
2646
+ }
2647
+ public function setItems(/* array(Google_Instance) */ $items) {
2648
+ $this->assertIsArray($items, 'Google_Instance', __METHOD__);
2649
+ $this->items = $items;
2650
+ }
2651
+ public function getItems() {
2652
+ return $this->items;
2653
+ }
2654
+ public function setKind( $kind) {
2655
+ $this->kind = $kind;
2656
+ }
2657
+ public function getKind() {
2658
+ return $this->kind;
2659
+ }
2660
+ public function setNextPageToken( $nextPageToken) {
2661
+ $this->nextPageToken = $nextPageToken;
2662
+ }
2663
+ public function getNextPageToken() {
2664
+ return $this->nextPageToken;
2665
+ }
2666
+ public function setSelfLink( $selfLink) {
2667
+ $this->selfLink = $selfLink;
2668
+ }
2669
+ public function getSelfLink() {
2670
+ return $this->selfLink;
2671
+ }
2672
+ }
2673
+
2674
+ class Google_InstancesScopedList extends Google_Model {
2675
+ protected $__instancesType = 'Google_Instance';
2676
+ protected $__instancesDataType = 'array';
2677
+ public $instances;
2678
+ protected $__warningType = 'Google_InstancesScopedListWarning';
2679
+ protected $__warningDataType = '';
2680
+ public $warning;
2681
+ public function setInstances(/* array(Google_Instance) */ $instances) {
2682
+ $this->assertIsArray($instances, 'Google_Instance', __METHOD__);
2683
+ $this->instances = $instances;
2684
+ }
2685
+ public function getInstances() {
2686
+ return $this->instances;
2687
+ }
2688
+ public function setWarning(Google_InstancesScopedListWarning $warning) {
2689
+ $this->warning = $warning;
2690
+ }
2691
+ public function getWarning() {
2692
+ return $this->warning;
2693
+ }
2694
+ }
2695
+
2696
+ class Google_InstancesScopedListWarning extends Google_Model {
2697
+ public $code;
2698
+ protected $__dataType = 'Google_InstancesScopedListWarningData';
2699
+ protected $__dataDataType = 'array';
2700
+ public $data;
2701
+ public $message;
2702
+ public function setCode( $code) {
2703
+ $this->code = $code;
2704
+ }
2705
+ public function getCode() {
2706
+ return $this->code;
2707
+ }
2708
+ public function setData(/* array(Google_InstancesScopedListWarningData) */ $data) {
2709
+ $this->assertIsArray($data, 'Google_InstancesScopedListWarningData', __METHOD__);
2710
+ $this->data = $data;
2711
+ }
2712
+ public function getData() {
2713
+ return $this->data;
2714
+ }
2715
+ public function setMessage( $message) {
2716
+ $this->message = $message;
2717
+ }
2718
+ public function getMessage() {
2719
+ return $this->message;
2720
+ }
2721
+ }
2722
+
2723
+ class Google_InstancesScopedListWarningData extends Google_Model {
2724
+ public $key;
2725
+ public $value;
2726
+ public function setKey( $key) {
2727
+ $this->key = $key;
2728
+ }
2729
+ public function getKey() {
2730
+ return $this->key;
2731
+ }
2732
+ public function setValue( $value) {
2733
+ $this->value = $value;
2734
+ }
2735
+ public function getValue() {
2736
+ return $this->value;
2737
+ }
2738
+ }
2739
+
2740
+ class Google_Kernel extends Google_Model {
2741
+ public $creationTimestamp;
2742
+ protected $__deprecatedType = 'Google_DeprecationStatus';
2743
+ protected $__deprecatedDataType = '';
2744
+ public $deprecated;
2745
+ public $description;
2746
+ public $id;
2747
+ public $kind;
2748
+ public $name;
2749
+ public $selfLink;
2750
+ public function setCreationTimestamp( $creationTimestamp) {
2751
+ $this->creationTimestamp = $creationTimestamp;
2752
+ }
2753
+ public function getCreationTimestamp() {
2754
+ return $this->creationTimestamp;
2755
+ }
2756
+ public function setDeprecated(Google_DeprecationStatus $deprecated) {
2757
+ $this->deprecated = $deprecated;
2758
+ }
2759
+ public function getDeprecated() {
2760
+ return $this->deprecated;
2761
+ }
2762
+ public function setDescription( $description) {
2763
+ $this->description = $description;
2764
+ }
2765
+ public function getDescription() {
2766
+ return $this->description;
2767
+ }
2768
+ public function setId( $id) {
2769
+ $this->id = $id;
2770
+ }
2771
+ public function getId() {
2772
+ return $this->id;
2773
+ }
2774
+ public function setKind( $kind) {
2775
+ $this->kind = $kind;
2776
+ }
2777
+ public function getKind() {
2778
+ return $this->kind;
2779
+ }
2780
+ public function setName( $name) {
2781
+ $this->name = $name;
2782
+ }
2783
+ public function getName() {
2784
+ return $this->name;
2785
+ }
2786
+ public function setSelfLink( $selfLink) {
2787
+ $this->selfLink = $selfLink;
2788
+ }
2789
+ public function getSelfLink() {
2790
+ return $this->selfLink;
2791
+ }
2792
+ }
2793
+
2794
+ class Google_KernelList extends Google_Model {
2795
+ public $id;
2796
+ protected $__itemsType = 'Google_Kernel';
2797
+ protected $__itemsDataType = 'array';
2798
+ public $items;
2799
+ public $kind;
2800
+ public $nextPageToken;
2801
+ public $selfLink;
2802
+ public function setId( $id) {
2803
+ $this->id = $id;
2804
+ }
2805
+ public function getId() {
2806
+ return $this->id;
2807
+ }
2808
+ public function setItems(/* array(Google_Kernel) */ $items) {
2809
+ $this->assertIsArray($items, 'Google_Kernel', __METHOD__);
2810
+ $this->items = $items;
2811
+ }
2812
+ public function getItems() {
2813
+ return $this->items;
2814
+ }
2815
+ public function setKind( $kind) {
2816
+ $this->kind = $kind;
2817
+ }
2818
+ public function getKind() {
2819
+ return $this->kind;
2820
+ }
2821
+ public function setNextPageToken( $nextPageToken) {
2822
+ $this->nextPageToken = $nextPageToken;
2823
+ }
2824
+ public function getNextPageToken() {
2825
+ return $this->nextPageToken;
2826
+ }
2827
+ public function setSelfLink( $selfLink) {
2828
+ $this->selfLink = $selfLink;
2829
+ }
2830
+ public function getSelfLink() {
2831
+ return $this->selfLink;
2832
+ }
2833
+ }
2834
+
2835
+ class Google_MachineType extends Google_Model {
2836
+ public $creationTimestamp;
2837
+ protected $__deprecatedType = 'Google_DeprecationStatus';
2838
+ protected $__deprecatedDataType = '';
2839
+ public $deprecated;
2840
+ public $description;
2841
+ public $guestCpus;
2842
+ public $id;
2843
+ public $imageSpaceGb;
2844
+ public $kind;
2845
+ public $maximumPersistentDisks;
2846
+ public $maximumPersistentDisksSizeGb;
2847
+ public $memoryMb;
2848
+ public $name;
2849
+ protected $__scratchDisksType = 'Google_MachineTypeScratchDisks';
2850
+ protected $__scratchDisksDataType = 'array';
2851
+ public $scratchDisks;
2852
+ public $selfLink;
2853
+ public $zone;
2854
+ public function setCreationTimestamp( $creationTimestamp) {
2855
+ $this->creationTimestamp = $creationTimestamp;
2856
+ }
2857
+ public function getCreationTimestamp() {
2858
+ return $this->creationTimestamp;
2859
+ }
2860
+ public function setDeprecated(Google_DeprecationStatus $deprecated) {
2861
+ $this->deprecated = $deprecated;
2862
+ }
2863
+ public function getDeprecated() {
2864
+ return $this->deprecated;
2865
+ }
2866
+ public function setDescription( $description) {
2867
+ $this->description = $description;
2868
+ }
2869
+ public function getDescription() {
2870
+ return $this->description;
2871
+ }
2872
+ public function setGuestCpus( $guestCpus) {
2873
+ $this->guestCpus = $guestCpus;
2874
+ }
2875
+ public function getGuestCpus() {
2876
+ return $this->guestCpus;
2877
+ }
2878
+ public function setId( $id) {
2879
+ $this->id = $id;
2880
+ }
2881
+ public function getId() {
2882
+ return $this->id;
2883
+ }
2884
+ public function setImageSpaceGb( $imageSpaceGb) {
2885
+ $this->imageSpaceGb = $imageSpaceGb;
2886
+ }
2887
+ public function getImageSpaceGb() {
2888
+ return $this->imageSpaceGb;
2889
+ }
2890
+ public function setKind( $kind) {
2891
+ $this->kind = $kind;
2892
+ }
2893
+ public function getKind() {
2894
+ return $this->kind;
2895
+ }
2896
+ public function setMaximumPersistentDisks( $maximumPersistentDisks) {
2897
+ $this->maximumPersistentDisks = $maximumPersistentDisks;
2898
+ }
2899
+ public function getMaximumPersistentDisks() {
2900
+ return $this->maximumPersistentDisks;
2901
+ }
2902
+ public function setMaximumPersistentDisksSizeGb( $maximumPersistentDisksSizeGb) {
2903
+ $this->maximumPersistentDisksSizeGb = $maximumPersistentDisksSizeGb;
2904
+ }
2905
+ public function getMaximumPersistentDisksSizeGb() {
2906
+ return $this->maximumPersistentDisksSizeGb;
2907
+ }
2908
+ public function setMemoryMb( $memoryMb) {
2909
+ $this->memoryMb = $memoryMb;
2910
+ }
2911
+ public function getMemoryMb() {
2912
+ return $this->memoryMb;
2913
+ }
2914
+ public function setName( $name) {
2915
+ $this->name = $name;
2916
+ }
2917
+ public function getName() {
2918
+ return $this->name;
2919
+ }
2920
+ public function setScratchDisks(/* array(Google_MachineTypeScratchDisks) */ $scratchDisks) {
2921
+ $this->assertIsArray($scratchDisks, 'Google_MachineTypeScratchDisks', __METHOD__);
2922
+ $this->scratchDisks = $scratchDisks;
2923
+ }
2924
+ public function getScratchDisks() {
2925
+ return $this->scratchDisks;
2926
+ }
2927
+ public function setSelfLink( $selfLink) {
2928
+ $this->selfLink = $selfLink;
2929
+ }
2930
+ public function getSelfLink() {
2931
+ return $this->selfLink;
2932
+ }
2933
+ public function setZone( $zone) {
2934
+ $this->zone = $zone;
2935
+ }
2936
+ public function getZone() {
2937
+ return $this->zone;
2938
+ }
2939
+ }
2940
+
2941
+ class Google_MachineTypeAggregatedList extends Google_Model {
2942
+ public $id;
2943
+ protected $__itemsType = 'Google_MachineTypesScopedList';
2944
+ protected $__itemsDataType = 'map';
2945
+ public $items;
2946
+ public $kind;
2947
+ public $nextPageToken;
2948
+ public $selfLink;
2949
+ public function setId( $id) {
2950
+ $this->id = $id;
2951
+ }
2952
+ public function getId() {
2953
+ return $this->id;
2954
+ }
2955
+ public function setItems(Google_MachineTypesScopedList $items) {
2956
+ $this->items = $items;
2957
+ }
2958
+ public function getItems() {
2959
+ return $this->items;
2960
+ }
2961
+ public function setKind( $kind) {
2962
+ $this->kind = $kind;
2963
+ }
2964
+ public function getKind() {
2965
+ return $this->kind;
2966
+ }
2967
+ public function setNextPageToken( $nextPageToken) {
2968
+ $this->nextPageToken = $nextPageToken;
2969
+ }
2970
+ public function getNextPageToken() {
2971
+ return $this->nextPageToken;
2972
+ }
2973
+ public function setSelfLink( $selfLink) {
2974
+ $this->selfLink = $selfLink;
2975
+ }
2976
+ public function getSelfLink() {
2977
+ return $this->selfLink;
2978
+ }
2979
+ }
2980
+
2981
+ class Google_MachineTypeList extends Google_Model {
2982
+ public $id;
2983
+ protected $__itemsType = 'Google_MachineType';
2984
+ protected $__itemsDataType = 'array';
2985
+ public $items;
2986
+ public $kind;
2987
+ public $nextPageToken;
2988
+ public $selfLink;
2989
+ public function setId( $id) {
2990
+ $this->id = $id;
2991
+ }
2992
+ public function getId() {
2993
+ return $this->id;
2994
+ }
2995
+ public function setItems(/* array(Google_MachineType) */ $items) {
2996
+ $this->assertIsArray($items, 'Google_MachineType', __METHOD__);
2997
+ $this->items = $items;
2998
+ }
2999
+ public function getItems() {
3000
+ return $this->items;
3001
+ }
3002
+ public function setKind( $kind) {
3003
+ $this->kind = $kind;
3004
+ }
3005
+ public function getKind() {
3006
+ return $this->kind;
3007
+ }
3008
+ public function setNextPageToken( $nextPageToken) {
3009
+ $this->nextPageToken = $nextPageToken;
3010
+ }
3011
+ public function getNextPageToken() {
3012
+ return $this->nextPageToken;
3013
+ }
3014
+ public function setSelfLink( $selfLink) {
3015
+ $this->selfLink = $selfLink;
3016
+ }
3017
+ public function getSelfLink() {
3018
+ return $this->selfLink;
3019
+ }
3020
+ }
3021
+
3022
+ class Google_MachineTypeScratchDisks extends Google_Model {
3023
+ public $diskGb;
3024
+ public function setDiskGb( $diskGb) {
3025
+ $this->diskGb = $diskGb;
3026
+ }
3027
+ public function getDiskGb() {
3028
+ return $this->diskGb;
3029
+ }
3030
+ }
3031
+
3032
+ class Google_MachineTypesScopedList extends Google_Model {
3033
+ protected $__machineTypesType = 'Google_MachineType';
3034
+ protected $__machineTypesDataType = 'array';
3035
+ public $machineTypes;
3036
+ protected $__warningType = 'Google_MachineTypesScopedListWarning';
3037
+ protected $__warningDataType = '';
3038
+ public $warning;
3039
+ public function setMachineTypes(/* array(Google_MachineType) */ $machineTypes) {
3040
+ $this->assertIsArray($machineTypes, 'Google_MachineType', __METHOD__);
3041
+ $this->machineTypes = $machineTypes;
3042
+ }
3043
+ public function getMachineTypes() {
3044
+ return $this->machineTypes;
3045
+ }
3046
+ public function setWarning(Google_MachineTypesScopedListWarning $warning) {
3047
+ $this->warning = $warning;
3048
+ }
3049
+ public function getWarning() {
3050
+ return $this->warning;
3051
+ }
3052
+ }
3053
+
3054
+ class Google_MachineTypesScopedListWarning extends Google_Model {
3055
+ public $code;
3056
+ protected $__dataType = 'Google_MachineTypesScopedListWarningData';
3057
+ protected $__dataDataType = 'array';
3058
+ public $data;
3059
+ public $message;
3060
+ public function setCode( $code) {
3061
+ $this->code = $code;
3062
+ }
3063
+ public function getCode() {
3064
+ return $this->code;
3065
+ }
3066
+ public function setData(/* array(Google_MachineTypesScopedListWarningData) */ $data) {
3067
+ $this->assertIsArray($data, 'Google_MachineTypesScopedListWarningData', __METHOD__);
3068
+ $this->data = $data;
3069
+ }
3070
+ public function getData() {
3071
+ return $this->data;
3072
+ }
3073
+ public function setMessage( $message) {
3074
+ $this->message = $message;
3075
+ }
3076
+ public function getMessage() {
3077
+ return $this->message;
3078
+ }
3079
+ }
3080
+
3081
+ class Google_MachineTypesScopedListWarningData extends Google_Model {
3082
+ public $key;
3083
+ public $value;
3084
+ public function setKey( $key) {
3085
+ $this->key = $key;
3086
+ }
3087
+ public function getKey() {
3088
+ return $this->key;
3089
+ }
3090
+ public function setValue( $value) {
3091
+ $this->value = $value;
3092
+ }
3093
+ public function getValue() {
3094
+ return $this->value;
3095
+ }
3096
+ }
3097
+
3098
+ class Google_Metadata extends Google_Model {
3099
+ public $fingerprint;
3100
+ protected $__itemsType = 'Google_MetadataItems';
3101
+ protected $__itemsDataType = 'array';
3102
+ public $items;
3103
+ public $kind;
3104
+ public function setFingerprint( $fingerprint) {
3105
+ $this->fingerprint = $fingerprint;
3106
+ }
3107
+ public function getFingerprint() {
3108
+ return $this->fingerprint;
3109
+ }
3110
+ public function setItems(/* array(Google_MetadataItems) */ $items) {
3111
+ $this->assertIsArray($items, 'Google_MetadataItems', __METHOD__);
3112
+ $this->items = $items;
3113
+ }
3114
+ public function getItems() {
3115
+ return $this->items;
3116
+ }
3117
+ public function setKind( $kind) {
3118
+ $this->kind = $kind;
3119
+ }
3120
+ public function getKind() {
3121
+ return $this->kind;
3122
+ }
3123
+ }
3124
+
3125
+ class Google_MetadataItems extends Google_Model {
3126
+ public $key;
3127
+ public $value;
3128
+ public function setKey( $key) {
3129
+ $this->key = $key;
3130
+ }
3131
+ public function getKey() {
3132
+ return $this->key;
3133
+ }
3134
+ public function setValue( $value) {
3135
+ $this->value = $value;
3136
+ }
3137
+ public function getValue() {
3138
+ return $this->value;
3139
+ }
3140
+ }
3141
+
3142
+ class Google_Network extends Google_Model {
3143
+ public $IPv4Range;
3144
+ public $creationTimestamp;
3145
+ public $description;
3146
+ public $gatewayIPv4;
3147
+ public $id;
3148
+ public $kind;
3149
+ public $name;
3150
+ public $selfLink;
3151
+ public function setIPv4Range( $IPv4Range) {
3152
+ $this->IPv4Range = $IPv4Range;
3153
+ }
3154
+ public function getIPv4Range() {
3155
+ return $this->IPv4Range;
3156
+ }
3157
+ public function setCreationTimestamp( $creationTimestamp) {
3158
+ $this->creationTimestamp = $creationTimestamp;
3159
+ }
3160
+ public function getCreationTimestamp() {
3161
+ return $this->creationTimestamp;
3162
+ }
3163
+ public function setDescription( $description) {
3164
+ $this->description = $description;
3165
+ }
3166
+ public function getDescription() {
3167
+ return $this->description;
3168
+ }
3169
+ public function setGatewayIPv4( $gatewayIPv4) {
3170
+ $this->gatewayIPv4 = $gatewayIPv4;
3171
+ }
3172
+ public function getGatewayIPv4() {
3173
+ return $this->gatewayIPv4;
3174
+ }
3175
+ public function setId( $id) {
3176
+ $this->id = $id;
3177
+ }
3178
+ public function getId() {
3179
+ return $this->id;
3180
+ }
3181
+ public function setKind( $kind) {
3182
+ $this->kind = $kind;
3183
+ }
3184
+ public function getKind() {
3185
+ return $this->kind;
3186
+ }
3187
+ public function setName( $name) {
3188
+ $this->name = $name;
3189
+ }
3190
+ public function getName() {
3191
+ return $this->name;
3192
+ }
3193
+ public function setSelfLink( $selfLink) {
3194
+ $this->selfLink = $selfLink;
3195
+ }
3196
+ public function getSelfLink() {
3197
+ return $this->selfLink;
3198
+ }
3199
+ }
3200
+
3201
+ class Google_NetworkInterface extends Google_Model {
3202
+ protected $__accessConfigsType = 'Google_AccessConfig';
3203
+ protected $__accessConfigsDataType = 'array';
3204
+ public $accessConfigs;
3205
+ public $name;
3206
+ public $network;
3207
+ public $networkIP;
3208
+ public function setAccessConfigs(/* array(Google_AccessConfig) */ $accessConfigs) {
3209
+ $this->assertIsArray($accessConfigs, 'Google_AccessConfig', __METHOD__);
3210
+ $this->accessConfigs = $accessConfigs;
3211
+ }
3212
+ public function getAccessConfigs() {
3213
+ return $this->accessConfigs;
3214
+ }
3215
+ public function setName( $name) {
3216
+ $this->name = $name;
3217
+ }
3218
+ public function getName() {
3219
+ return $this->name;
3220
+ }
3221
+ public function setNetwork( $network) {
3222
+ $this->network = $network;
3223
+ }
3224
+ public function getNetwork() {
3225
+ return $this->network;
3226
+ }
3227
+ public function setNetworkIP( $networkIP) {
3228
+ $this->networkIP = $networkIP;
3229
+ }
3230
+ public function getNetworkIP() {
3231
+ return $this->networkIP;
3232
+ }
3233
+ }
3234
+
3235
+ class Google_NetworkList extends Google_Model {
3236
+ public $id;
3237
+ protected $__itemsType = 'Google_Network';
3238
+ protected $__itemsDataType = 'array';
3239
+ public $items;
3240
+ public $kind;
3241
+ public $nextPageToken;
3242
+ public $selfLink;
3243
+ public function setId( $id) {
3244
+ $this->id = $id;
3245
+ }
3246
+ public function getId() {
3247
+ return $this->id;
3248
+ }
3249
+ public function setItems(/* array(Google_Network) */ $items) {
3250
+ $this->assertIsArray($items, 'Google_Network', __METHOD__);
3251
+ $this->items = $items;
3252
+ }
3253
+ public function getItems() {
3254
+ return $this->items;
3255
+ }
3256
+ public function setKind( $kind) {
3257
+ $this->kind = $kind;
3258
+ }
3259
+ public function getKind() {
3260
+ return $this->kind;
3261
+ }
3262
+ public function setNextPageToken( $nextPageToken) {
3263
+ $this->nextPageToken = $nextPageToken;
3264
+ }
3265
+ public function getNextPageToken() {
3266
+ return $this->nextPageToken;
3267
+ }
3268
+ public function setSelfLink( $selfLink) {
3269
+ $this->selfLink = $selfLink;
3270
+ }
3271
+ public function getSelfLink() {
3272
+ return $this->selfLink;
3273
+ }
3274
+ }
3275
+
3276
+ class Google_Operation extends Google_Model {
3277
+ public $clientOperationId;
3278
+ public $creationTimestamp;
3279
+ public $endTime;
3280
+ protected $__errorType = 'Google_OperationError';
3281
+ protected $__errorDataType = '';
3282
+ public $error;
3283
+ public $httpErrorMessage;
3284
+ public $httpErrorStatusCode;
3285
+ public $id;
3286
+ public $insertTime;
3287
+ public $kind;
3288
+ public $name;
3289
+ public $operationType;
3290
+ public $progress;
3291
+ public $region;
3292
+ public $selfLink;
3293
+ public $startTime;
3294
+ public $status;
3295
+ public $statusMessage;
3296
+ public $targetId;
3297
+ public $targetLink;
3298
+ public $user;
3299
+ protected $__warningsType = 'Google_OperationWarnings';
3300
+ protected $__warningsDataType = 'array';
3301
+ public $warnings;
3302
+ public $zone;
3303
+ public function setClientOperationId( $clientOperationId) {
3304
+ $this->clientOperationId = $clientOperationId;
3305
+ }
3306
+ public function getClientOperationId() {
3307
+ return $this->clientOperationId;
3308
+ }
3309
+ public function setCreationTimestamp( $creationTimestamp) {
3310
+ $this->creationTimestamp = $creationTimestamp;
3311
+ }
3312
+ public function getCreationTimestamp() {
3313
+ return $this->creationTimestamp;
3314
+ }
3315
+ public function setEndTime( $endTime) {
3316
+ $this->endTime = $endTime;
3317
+ }
3318
+ public function getEndTime() {
3319
+ return $this->endTime;
3320
+ }
3321
+ public function setError(Google_OperationError $error) {
3322
+ $this->error = $error;
3323
+ }
3324
+ public function getError() {
3325
+ return $this->error;
3326
+ }
3327
+ public function setHttpErrorMessage( $httpErrorMessage) {
3328
+ $this->httpErrorMessage = $httpErrorMessage;
3329
+ }
3330
+ public function getHttpErrorMessage() {
3331
+ return $this->httpErrorMessage;
3332
+ }
3333
+ public function setHttpErrorStatusCode( $httpErrorStatusCode) {
3334
+ $this->httpErrorStatusCode = $httpErrorStatusCode;
3335
+ }
3336
+ public function getHttpErrorStatusCode() {
3337
+ return $this->httpErrorStatusCode;
3338
+ }
3339
+ public function setId( $id) {
3340
+ $this->id = $id;
3341
+ }
3342
+ public function getId() {
3343
+ return $this->id;
3344
+ }
3345
+ public function setInsertTime( $insertTime) {
3346
+ $this->insertTime = $insertTime;
3347
+ }
3348
+ public function getInsertTime() {
3349
+ return $this->insertTime;
3350
+ }
3351
+ public function setKind( $kind) {
3352
+ $this->kind = $kind;
3353
+ }
3354
+ public function getKind() {
3355
+ return $this->kind;
3356
+ }
3357
+ public function setName( $name) {
3358
+ $this->name = $name;
3359
+ }
3360
+ public function getName() {
3361
+ return $this->name;
3362
+ }
3363
+ public function setOperationType( $operationType) {
3364
+ $this->operationType = $operationType;
3365
+ }
3366
+ public function getOperationType() {
3367
+ return $this->operationType;
3368
+ }
3369
+ public function setProgress( $progress) {
3370
+ $this->progress = $progress;
3371
+ }
3372
+ public function getProgress() {
3373
+ return $this->progress;
3374
+ }
3375
+ public function setRegion( $region) {
3376
+ $this->region = $region;
3377
+ }
3378
+ public function getRegion() {
3379
+ return $this->region;
3380
+ }
3381
+ public function setSelfLink( $selfLink) {
3382
+ $this->selfLink = $selfLink;
3383
+ }
3384
+ public function getSelfLink() {
3385
+ return $this->selfLink;
3386
+ }
3387
+ public function setStartTime( $startTime) {
3388
+ $this->startTime = $startTime;
3389
+ }
3390
+ public function getStartTime() {
3391
+ return $this->startTime;
3392
+ }
3393
+ public function setStatus( $status) {
3394
+ $this->status = $status;
3395
+ }
3396
+ public function getStatus() {
3397
+ return $this->status;
3398
+ }
3399
+ public function setStatusMessage( $statusMessage) {
3400
+ $this->statusMessage = $statusMessage;
3401
+ }
3402
+ public function getStatusMessage() {
3403
+ return $this->statusMessage;
3404
+ }
3405
+ public function setTargetId( $targetId) {
3406
+ $this->targetId = $targetId;
3407
+ }
3408
+ public function getTargetId() {
3409
+ return $this->targetId;
3410
+ }
3411
+ public function setTargetLink( $targetLink) {
3412
+ $this->targetLink = $targetLink;
3413
+ }
3414
+ public function getTargetLink() {
3415
+ return $this->targetLink;
3416
+ }
3417
+ public function setUser( $user) {
3418
+ $this->user = $user;
3419
+ }
3420
+ public function getUser() {
3421
+ return $this->user;
3422
+ }
3423
+ public function setWarnings(/* array(Google_OperationWarnings) */ $warnings) {
3424
+ $this->assertIsArray($warnings, 'Google_OperationWarnings', __METHOD__);
3425
+ $this->warnings = $warnings;
3426
+ }
3427
+ public function getWarnings() {
3428
+ return $this->warnings;
3429
+ }
3430
+ public function setZone( $zone) {
3431
+ $this->zone = $zone;
3432
+ }
3433
+ public function getZone() {
3434
+ return $this->zone;
3435
+ }
3436
+ }
3437
+
3438
+ class Google_OperationAggregatedList extends Google_Model {
3439
+ public $id;
3440
+ protected $__itemsType = 'Google_OperationsScopedList';
3441
+ protected $__itemsDataType = 'map';
3442
+ public $items;
3443
+ public $kind;
3444
+ public $nextPageToken;
3445
+ public $selfLink;
3446
+ public function setId( $id) {
3447
+ $this->id = $id;
3448
+ }
3449
+ public function getId() {
3450
+ return $this->id;
3451
+ }
3452
+ public function setItems(Google_OperationsScopedList $items) {
3453
+ $this->items = $items;
3454
+ }
3455
+ public function getItems() {
3456
+ return $this->items;
3457
+ }
3458
+ public function setKind( $kind) {
3459
+ $this->kind = $kind;
3460
+ }
3461
+ public function getKind() {
3462
+ return $this->kind;
3463
+ }
3464
+ public function setNextPageToken( $nextPageToken) {
3465
+ $this->nextPageToken = $nextPageToken;
3466
+ }
3467
+ public function getNextPageToken() {
3468
+ return $this->nextPageToken;
3469
+ }
3470
+ public function setSelfLink( $selfLink) {
3471
+ $this->selfLink = $selfLink;
3472
+ }
3473
+ public function getSelfLink() {
3474
+ return $this->selfLink;
3475
+ }
3476
+ }
3477
+
3478
+ class Google_OperationError extends Google_Model {
3479
+ protected $__errorsType = 'Google_OperationErrorErrors';
3480
+ protected $__errorsDataType = 'array';
3481
+ public $errors;
3482
+ public function setErrors(/* array(Google_OperationErrorErrors) */ $errors) {
3483
+ $this->assertIsArray($errors, 'Google_OperationErrorErrors', __METHOD__);
3484
+ $this->errors = $errors;
3485
+ }
3486
+ public function getErrors() {
3487
+ return $this->errors;
3488
+ }
3489
+ }
3490
+
3491
+ class Google_OperationErrorErrors extends Google_Model {
3492
+ public $code;
3493
+ public $location;
3494
+ public $message;
3495
+ public function setCode( $code) {
3496
+ $this->code = $code;
3497
+ }
3498
+ public function getCode() {
3499
+ return $this->code;
3500
+ }
3501
+ public function setLocation( $location) {
3502
+ $this->location = $location;
3503
+ }
3504
+ public function getLocation() {
3505
+ return $this->location;
3506
+ }
3507
+ public function setMessage( $message) {
3508
+ $this->message = $message;
3509
+ }
3510
+ public function getMessage() {
3511
+ return $this->message;
3512
+ }
3513
+ }
3514
+
3515
+ class Google_OperationList extends Google_Model {
3516
+ public $id;
3517
+ protected $__itemsType = 'Google_Operation';
3518
+ protected $__itemsDataType = 'array';
3519
+ public $items;
3520
+ public $kind;
3521
+ public $nextPageToken;
3522
+ public $selfLink;
3523
+ public function setId( $id) {
3524
+ $this->id = $id;
3525
+ }
3526
+ public function getId() {
3527
+ return $this->id;
3528
+ }
3529
+ public function setItems(/* array(Google_Operation) */ $items) {
3530
+ $this->assertIsArray($items, 'Google_Operation', __METHOD__);
3531
+ $this->items = $items;
3532
+ }
3533
+ public function getItems() {
3534
+ return $this->items;
3535
+ }
3536
+ public function setKind( $kind) {
3537
+ $this->kind = $kind;
3538
+ }
3539
+ public function getKind() {
3540
+ return $this->kind;
3541
+ }
3542
+ public function setNextPageToken( $nextPageToken) {
3543
+ $this->nextPageToken = $nextPageToken;
3544
+ }
3545
+ public function getNextPageToken() {
3546
+ return $this->nextPageToken;
3547
+ }
3548
+ public function setSelfLink( $selfLink) {
3549
+ $this->selfLink = $selfLink;
3550
+ }
3551
+ public function getSelfLink() {
3552
+ return $this->selfLink;
3553
+ }
3554
+ }
3555
+
3556
+ class Google_OperationWarnings extends Google_Model {
3557
+ public $code;
3558
+ protected $__dataType = 'Google_OperationWarningsData';
3559
+ protected $__dataDataType = 'array';
3560
+ public $data;
3561
+ public $message;
3562
+ public function setCode( $code) {
3563
+ $this->code = $code;
3564
+ }
3565
+ public function getCode() {
3566
+ return $this->code;
3567
+ }
3568
+ public function setData(/* array(Google_OperationWarningsData) */ $data) {
3569
+ $this->assertIsArray($data, 'Google_OperationWarningsData', __METHOD__);
3570
+ $this->data = $data;
3571
+ }
3572
+ public function getData() {
3573
+ return $this->data;
3574
+ }
3575
+ public function setMessage( $message) {
3576
+ $this->message = $message;
3577
+ }
3578
+ public function getMessage() {
3579
+ return $this->message;
3580
+ }
3581
+ }
3582
+
3583
+ class Google_OperationWarningsData extends Google_Model {
3584
+ public $key;
3585
+ public $value;
3586
+ public function setKey( $key) {
3587
+ $this->key = $key;
3588
+ }
3589
+ public function getKey() {
3590
+ return $this->key;
3591
+ }
3592
+ public function setValue( $value) {
3593
+ $this->value = $value;
3594
+ }
3595
+ public function getValue() {
3596
+ return $this->value;
3597
+ }
3598
+ }
3599
+
3600
+ class Google_OperationsScopedList extends Google_Model {
3601
+ protected $__operationsType = 'Google_Operation';
3602
+ protected $__operationsDataType = 'array';
3603
+ public $operations;
3604
+ protected $__warningType = 'Google_OperationsScopedListWarning';
3605
+ protected $__warningDataType = '';
3606
+ public $warning;
3607
+ public function setOperations(/* array(Google_Operation) */ $operations) {
3608
+ $this->assertIsArray($operations, 'Google_Operation', __METHOD__);
3609
+ $this->operations = $operations;
3610
+ }
3611
+ public function getOperations() {
3612
+ return $this->operations;
3613
+ }
3614
+ public function setWarning(Google_OperationsScopedListWarning $warning) {
3615
+ $this->warning = $warning;
3616
+ }
3617
+ public function getWarning() {
3618
+ return $this->warning;
3619
+ }
3620
+ }
3621
+
3622
+ class Google_OperationsScopedListWarning extends Google_Model {
3623
+ public $code;
3624
+ protected $__dataType = 'Google_OperationsScopedListWarningData';
3625
+ protected $__dataDataType = 'array';
3626
+ public $data;
3627
+ public $message;
3628
+ public function setCode( $code) {
3629
+ $this->code = $code;
3630
+ }
3631
+ public function getCode() {
3632
+ return $this->code;
3633
+ }
3634
+ public function setData(/* array(Google_OperationsScopedListWarningData) */ $data) {
3635
+ $this->assertIsArray($data, 'Google_OperationsScopedListWarningData', __METHOD__);
3636
+ $this->data = $data;
3637
+ }
3638
+ public function getData() {
3639
+ return $this->data;
3640
+ }
3641
+ public function setMessage( $message) {
3642
+ $this->message = $message;
3643
+ }
3644
+ public function getMessage() {
3645
+ return $this->message;
3646
+ }
3647
+ }
3648
+
3649
+ class Google_OperationsScopedListWarningData extends Google_Model {
3650
+ public $key;
3651
+ public $value;
3652
+ public function setKey( $key) {
3653
+ $this->key = $key;
3654
+ }
3655
+ public function getKey() {
3656
+ return $this->key;
3657
+ }
3658
+ public function setValue( $value) {
3659
+ $this->value = $value;
3660
+ }
3661
+ public function getValue() {
3662
+ return $this->value;
3663
+ }
3664
+ }
3665
+
3666
+ class Google_Project extends Google_Model {
3667
+ protected $__commonInstanceMetadataType = 'Google_Metadata';
3668
+ protected $__commonInstanceMetadataDataType = '';
3669
+ public $commonInstanceMetadata;
3670
+ public $creationTimestamp;
3671
+ public $description;
3672
+ public $id;
3673
+ public $kind;
3674
+ public $name;
3675
+ protected $__quotasType = 'Google_Quota';
3676
+ protected $__quotasDataType = 'array';
3677
+ public $quotas;
3678
+ public $selfLink;
3679
+ public function setCommonInstanceMetadata(Google_Metadata $commonInstanceMetadata) {
3680
+ $this->commonInstanceMetadata = $commonInstanceMetadata;
3681
+ }
3682
+ public function getCommonInstanceMetadata() {
3683
+ return $this->commonInstanceMetadata;
3684
+ }
3685
+ public function setCreationTimestamp( $creationTimestamp) {
3686
+ $this->creationTimestamp = $creationTimestamp;
3687
+ }
3688
+ public function getCreationTimestamp() {
3689
+ return $this->creationTimestamp;
3690
+ }
3691
+ public function setDescription( $description) {
3692
+ $this->description = $description;
3693
+ }
3694
+ public function getDescription() {
3695
+ return $this->description;
3696
+ }
3697
+ public function setId( $id) {
3698
+ $this->id = $id;
3699
+ }
3700
+ public function getId() {
3701
+ return $this->id;
3702
+ }
3703
+ public function setKind( $kind) {
3704
+ $this->kind = $kind;
3705
+ }
3706
+ public function getKind() {
3707
+ return $this->kind;
3708
+ }
3709
+ public function setName( $name) {
3710
+ $this->name = $name;
3711
+ }
3712
+ public function getName() {
3713
+ return $this->name;
3714
+ }
3715
+ public function setQuotas(/* array(Google_Quota) */ $quotas) {
3716
+ $this->assertIsArray($quotas, 'Google_Quota', __METHOD__);
3717
+ $this->quotas = $quotas;
3718
+ }
3719
+ public function getQuotas() {
3720
+ return $this->quotas;
3721
+ }
3722
+ public function setSelfLink( $selfLink) {
3723
+ $this->selfLink = $selfLink;
3724
+ }
3725
+ public function getSelfLink() {
3726
+ return $this->selfLink;
3727
+ }
3728
+ }
3729
+
3730
+ class Google_Quota extends Google_Model {
3731
+ public $limit;
3732
+ public $metric;
3733
+ public $usage;
3734
+ public function setLimit( $limit) {
3735
+ $this->limit = $limit;
3736
+ }
3737
+ public function getLimit() {
3738
+ return $this->limit;
3739
+ }
3740
+ public function setMetric( $metric) {
3741
+ $this->metric = $metric;
3742
+ }
3743
+ public function getMetric() {
3744
+ return $this->metric;
3745
+ }
3746
+ public function setUsage( $usage) {
3747
+ $this->usage = $usage;
3748
+ }
3749
+ public function getUsage() {
3750
+ return $this->usage;
3751
+ }
3752
+ }
3753
+
3754
+ class Google_Region extends Google_Model {
3755
+ public $creationTimestamp;
3756
+ protected $__deprecatedType = 'Google_DeprecationStatus';
3757
+ protected $__deprecatedDataType = '';
3758
+ public $deprecated;
3759
+ public $description;
3760
+ public $id;
3761
+ public $kind;
3762
+ public $name;
3763
+ protected $__quotasType = 'Google_Quota';
3764
+ protected $__quotasDataType = 'array';
3765
+ public $quotas;
3766
+ public $selfLink;
3767
+ public $status;
3768
+ public $zones;
3769
+ public function setCreationTimestamp( $creationTimestamp) {
3770
+ $this->creationTimestamp = $creationTimestamp;
3771
+ }
3772
+ public function getCreationTimestamp() {
3773
+ return $this->creationTimestamp;
3774
+ }
3775
+ public function setDeprecated(Google_DeprecationStatus $deprecated) {
3776
+ $this->deprecated = $deprecated;
3777
+ }
3778
+ public function getDeprecated() {
3779
+ return $this->deprecated;
3780
+ }
3781
+ public function setDescription( $description) {
3782
+ $this->description = $description;
3783
+ }
3784
+ public function getDescription() {
3785
+ return $this->description;
3786
+ }
3787
+ public function setId( $id) {
3788
+ $this->id = $id;
3789
+ }
3790
+ public function getId() {
3791
+ return $this->id;
3792
+ }
3793
+ public function setKind( $kind) {
3794
+ $this->kind = $kind;
3795
+ }
3796
+ public function getKind() {
3797
+ return $this->kind;
3798
+ }
3799
+ public function setName( $name) {
3800
+ $this->name = $name;
3801
+ }
3802
+ public function getName() {
3803
+ return $this->name;
3804
+ }
3805
+ public function setQuotas(/* array(Google_Quota) */ $quotas) {
3806
+ $this->assertIsArray($quotas, 'Google_Quota', __METHOD__);
3807
+ $this->quotas = $quotas;
3808
+ }
3809
+ public function getQuotas() {
3810
+ return $this->quotas;
3811
+ }
3812
+ public function setSelfLink( $selfLink) {
3813
+ $this->selfLink = $selfLink;
3814
+ }
3815
+ public function getSelfLink() {
3816
+ return $this->selfLink;
3817
+ }
3818
+ public function setStatus( $status) {
3819
+ $this->status = $status;
3820
+ }
3821
+ public function getStatus() {
3822
+ return $this->status;
3823
+ }
3824
+ public function setZones(/* array(Google_string) */ $zones) {
3825
+ $this->assertIsArray($zones, 'Google_string', __METHOD__);
3826
+ $this->zones = $zones;
3827
+ }
3828
+ public function getZones() {
3829
+ return $this->zones;
3830
+ }
3831
+ }
3832
+
3833
+ class Google_RegionList extends Google_Model {
3834
+ public $id;
3835
+ protected $__itemsType = 'Google_Region';
3836
+ protected $__itemsDataType = 'array';
3837
+ public $items;
3838
+ public $kind;
3839
+ public $nextPageToken;
3840
+ public $selfLink;
3841
+ public function setId( $id) {
3842
+ $this->id = $id;
3843
+ }
3844
+ public function getId() {
3845
+ return $this->id;
3846
+ }
3847
+ public function setItems(/* array(Google_Region) */ $items) {
3848
+ $this->assertIsArray($items, 'Google_Region', __METHOD__);
3849
+ $this->items = $items;
3850
+ }
3851
+ public function getItems() {
3852
+ return $this->items;
3853
+ }
3854
+ public function setKind( $kind) {
3855
+ $this->kind = $kind;
3856
+ }
3857
+ public function getKind() {
3858
+ return $this->kind;
3859
+ }
3860
+ public function setNextPageToken( $nextPageToken) {
3861
+ $this->nextPageToken = $nextPageToken;
3862
+ }
3863
+ public function getNextPageToken() {
3864
+ return $this->nextPageToken;
3865
+ }
3866
+ public function setSelfLink( $selfLink) {
3867
+ $this->selfLink = $selfLink;
3868
+ }
3869
+ public function getSelfLink() {
3870
+ return $this->selfLink;
3871
+ }
3872
+ }
3873
+
3874
+ class Google_Route extends Google_Model {
3875
+ public $creationTimestamp;
3876
+ public $description;
3877
+ public $destRange;
3878
+ public $id;
3879
+ public $kind;
3880
+ public $name;
3881
+ public $network;
3882
+ public $nextHopGateway;
3883
+ public $nextHopInstance;
3884
+ public $nextHopIp;
3885
+ public $nextHopNetwork;
3886
+ public $priority;
3887
+ public $selfLink;
3888
+ public $tags;
3889
+ protected $__warningsType = 'Google_RouteWarnings';
3890
+ protected $__warningsDataType = 'array';
3891
+ public $warnings;
3892
+ public function setCreationTimestamp( $creationTimestamp) {
3893
+ $this->creationTimestamp = $creationTimestamp;
3894
+ }
3895
+ public function getCreationTimestamp() {
3896
+ return $this->creationTimestamp;
3897
+ }
3898
+ public function setDescription( $description) {
3899
+ $this->description = $description;
3900
+ }
3901
+ public function getDescription() {
3902
+ return $this->description;
3903
+ }
3904
+ public function setDestRange( $destRange) {
3905
+ $this->destRange = $destRange;
3906
+ }
3907
+ public function getDestRange() {
3908
+ return $this->destRange;
3909
+ }
3910
+ public function setId( $id) {
3911
+ $this->id = $id;
3912
+ }
3913
+ public function getId() {
3914
+ return $this->id;
3915
+ }
3916
+ public function setKind( $kind) {
3917
+ $this->kind = $kind;
3918
+ }
3919
+ public function getKind() {
3920
+ return $this->kind;
3921
+ }
3922
+ public function setName( $name) {
3923
+ $this->name = $name;
3924
+ }
3925
+ public function getName() {
3926
+ return $this->name;
3927
+ }
3928
+ public function setNetwork( $network) {
3929
+ $this->network = $network;
3930
+ }
3931
+ public function getNetwork() {
3932
+ return $this->network;
3933
+ }
3934
+ public function setNextHopGateway( $nextHopGateway) {
3935
+ $this->nextHopGateway = $nextHopGateway;
3936
+ }
3937
+ public function getNextHopGateway() {
3938
+ return $this->nextHopGateway;
3939
+ }
3940
+ public function setNextHopInstance( $nextHopInstance) {
3941
+ $this->nextHopInstance = $nextHopInstance;
3942
+ }
3943
+ public function getNextHopInstance() {
3944
+ return $this->nextHopInstance;
3945
+ }
3946
+ public function setNextHopIp( $nextHopIp) {
3947
+ $this->nextHopIp = $nextHopIp;
3948
+ }
3949
+ public function getNextHopIp() {
3950
+ return $this->nextHopIp;
3951
+ }
3952
+ public function setNextHopNetwork( $nextHopNetwork) {
3953
+ $this->nextHopNetwork = $nextHopNetwork;
3954
+ }
3955
+ public function getNextHopNetwork() {
3956
+ return $this->nextHopNetwork;
3957
+ }
3958
+ public function setPriority( $priority) {
3959
+ $this->priority = $priority;
3960
+ }
3961
+ public function getPriority() {
3962
+ return $this->priority;
3963
+ }
3964
+ public function setSelfLink( $selfLink) {
3965
+ $this->selfLink = $selfLink;
3966
+ }
3967
+ public function getSelfLink() {
3968
+ return $this->selfLink;
3969
+ }
3970
+ public function setTags(/* array(Google_string) */ $tags) {
3971
+ $this->assertIsArray($tags, 'Google_string', __METHOD__);
3972
+ $this->tags = $tags;
3973
+ }
3974
+ public function getTags() {
3975
+ return $this->tags;
3976
+ }
3977
+ public function setWarnings(/* array(Google_RouteWarnings) */ $warnings) {
3978
+ $this->assertIsArray($warnings, 'Google_RouteWarnings', __METHOD__);
3979
+ $this->warnings = $warnings;
3980
+ }
3981
+ public function getWarnings() {
3982
+ return $this->warnings;
3983
+ }
3984
+ }
3985
+
3986
+ class Google_RouteList extends Google_Model {
3987
+ public $id;
3988
+ protected $__itemsType = 'Google_Route';
3989
+ protected $__itemsDataType = 'array';
3990
+ public $items;
3991
+ public $kind;
3992
+ public $nextPageToken;
3993
+ public $selfLink;
3994
+ public function setId( $id) {
3995
+ $this->id = $id;
3996
+ }
3997
+ public function getId() {
3998
+ return $this->id;
3999
+ }
4000
+ public function setItems(/* array(Google_Route) */ $items) {
4001
+ $this->assertIsArray($items, 'Google_Route', __METHOD__);
4002
+ $this->items = $items;
4003
+ }
4004
+ public function getItems() {
4005
+ return $this->items;
4006
+ }
4007
+ public function setKind( $kind) {
4008
+ $this->kind = $kind;
4009
+ }
4010
+ public function getKind() {
4011
+ return $this->kind;
4012
+ }
4013
+ public function setNextPageToken( $nextPageToken) {
4014
+ $this->nextPageToken = $nextPageToken;
4015
+ }
4016
+ public function getNextPageToken() {
4017
+ return $this->nextPageToken;
4018
+ }
4019
+ public function setSelfLink( $selfLink) {
4020
+ $this->selfLink = $selfLink;
4021
+ }
4022
+ public function getSelfLink() {
4023
+ return $this->selfLink;
4024
+ }
4025
+ }
4026
+
4027
+ class Google_RouteWarnings extends Google_Model {
4028
+ public $code;
4029
+ protected $__dataType = 'Google_RouteWarningsData';
4030
+ protected $__dataDataType = 'array';
4031
+ public $data;
4032
+ public $message;
4033
+ public function setCode( $code) {
4034
+ $this->code = $code;
4035
+ }
4036
+ public function getCode() {
4037
+ return $this->code;
4038
+ }
4039
+ public function setData(/* array(Google_RouteWarningsData) */ $data) {
4040
+ $this->assertIsArray($data, 'Google_RouteWarningsData', __METHOD__);
4041
+ $this->data = $data;
4042
+ }
4043
+ public function getData() {
4044
+ return $this->data;
4045
+ }
4046
+ public function setMessage( $message) {
4047
+ $this->message = $message;
4048
+ }
4049
+ public function getMessage() {
4050
+ return $this->message;
4051
+ }
4052
+ }
4053
+
4054
+ class Google_RouteWarningsData extends Google_Model {
4055
+ public $key;
4056
+ public $value;
4057
+ public function setKey( $key) {
4058
+ $this->key = $key;
4059
+ }
4060
+ public function getKey() {
4061
+ return $this->key;
4062
+ }
4063
+ public function setValue( $value) {
4064
+ $this->value = $value;
4065
+ }
4066
+ public function getValue() {
4067
+ return $this->value;
4068
+ }
4069
+ }
4070
+
4071
+ class Google_SerialPortOutput extends Google_Model {
4072
+ public $contents;
4073
+ public $kind;
4074
+ public $selfLink;
4075
+ public function setContents( $contents) {
4076
+ $this->contents = $contents;
4077
+ }
4078
+ public function getContents() {
4079
+ return $this->contents;
4080
+ }
4081
+ public function setKind( $kind) {
4082
+ $this->kind = $kind;
4083
+ }
4084
+ public function getKind() {
4085
+ return $this->kind;
4086
+ }
4087
+ public function setSelfLink( $selfLink) {
4088
+ $this->selfLink = $selfLink;
4089
+ }
4090
+ public function getSelfLink() {
4091
+ return $this->selfLink;
4092
+ }
4093
+ }
4094
+
4095
+ class Google_ServiceAccount extends Google_Model {
4096
+ public $email;
4097
+ public $scopes;
4098
+ public function setEmail( $email) {
4099
+ $this->email = $email;
4100
+ }
4101
+ public function getEmail() {
4102
+ return $this->email;
4103
+ }
4104
+ public function setScopes(/* array(Google_string) */ $scopes) {
4105
+ $this->assertIsArray($scopes, 'Google_string', __METHOD__);
4106
+ $this->scopes = $scopes;
4107
+ }
4108
+ public function getScopes() {
4109
+ return $this->scopes;
4110
+ }
4111
+ }
4112
+
4113
+ class Google_Snapshot extends Google_Model {
4114
+ public $creationTimestamp;
4115
+ public $description;
4116
+ public $diskSizeGb;
4117
+ public $id;
4118
+ public $kind;
4119
+ public $name;
4120
+ public $selfLink;
4121
+ public $sourceDisk;
4122
+ public $sourceDiskId;
4123
+ public $status;
4124
+ public function setCreationTimestamp( $creationTimestamp) {
4125
+ $this->creationTimestamp = $creationTimestamp;
4126
+ }
4127
+ public function getCreationTimestamp() {
4128
+ return $this->creationTimestamp;
4129
+ }
4130
+ public function setDescription( $description) {
4131
+ $this->description = $description;
4132
+ }
4133
+ public function getDescription() {
4134
+ return $this->description;
4135
+ }
4136
+ public function setDiskSizeGb( $diskSizeGb) {
4137
+ $this->diskSizeGb = $diskSizeGb;
4138
+ }
4139
+ public function getDiskSizeGb() {
4140
+ return $this->diskSizeGb;
4141
+ }
4142
+ public function setId( $id) {
4143
+ $this->id = $id;
4144
+ }
4145
+ public function getId() {
4146
+ return $this->id;
4147
+ }
4148
+ public function setKind( $kind) {
4149
+ $this->kind = $kind;
4150
+ }
4151
+ public function getKind() {
4152
+ return $this->kind;
4153
+ }
4154
+ public function setName( $name) {
4155
+ $this->name = $name;
4156
+ }
4157
+ public function getName() {
4158
+ return $this->name;
4159
+ }
4160
+ public function setSelfLink( $selfLink) {
4161
+ $this->selfLink = $selfLink;
4162
+ }
4163
+ public function getSelfLink() {
4164
+ return $this->selfLink;
4165
+ }
4166
+ public function setSourceDisk( $sourceDisk) {
4167
+ $this->sourceDisk = $sourceDisk;
4168
+ }
4169
+ public function getSourceDisk() {
4170
+ return $this->sourceDisk;
4171
+ }
4172
+ public function setSourceDiskId( $sourceDiskId) {
4173
+ $this->sourceDiskId = $sourceDiskId;
4174
+ }
4175
+ public function getSourceDiskId() {
4176
+ return $this->sourceDiskId;
4177
+ }
4178
+ public function setStatus( $status) {
4179
+ $this->status = $status;
4180
+ }
4181
+ public function getStatus() {
4182
+ return $this->status;
4183
+ }
4184
+ }
4185
+
4186
+ class Google_SnapshotList extends Google_Model {
4187
+ public $id;
4188
+ protected $__itemsType = 'Google_Snapshot';
4189
+ protected $__itemsDataType = 'array';
4190
+ public $items;
4191
+ public $kind;
4192
+ public $nextPageToken;
4193
+ public $selfLink;
4194
+ public function setId( $id) {
4195
+ $this->id = $id;
4196
+ }
4197
+ public function getId() {
4198
+ return $this->id;
4199
+ }
4200
+ public function setItems(/* array(Google_Snapshot) */ $items) {
4201
+ $this->assertIsArray($items, 'Google_Snapshot', __METHOD__);
4202
+ $this->items = $items;
4203
+ }
4204
+ public function getItems() {
4205
+ return $this->items;
4206
+ }
4207
+ public function setKind( $kind) {
4208
+ $this->kind = $kind;
4209
+ }
4210
+ public function getKind() {
4211
+ return $this->kind;
4212
+ }
4213
+ public function setNextPageToken( $nextPageToken) {
4214
+ $this->nextPageToken = $nextPageToken;
4215
+ }
4216
+ public function getNextPageToken() {
4217
+ return $this->nextPageToken;
4218
+ }
4219
+ public function setSelfLink( $selfLink) {
4220
+ $this->selfLink = $selfLink;
4221
+ }
4222
+ public function getSelfLink() {
4223
+ return $this->selfLink;
4224
+ }
4225
+ }
4226
+
4227
+ class Google_Tags extends Google_Model {
4228
+ public $fingerprint;
4229
+ public $items;
4230
+ public function setFingerprint( $fingerprint) {
4231
+ $this->fingerprint = $fingerprint;
4232
+ }
4233
+ public function getFingerprint() {
4234
+ return $this->fingerprint;
4235
+ }
4236
+ public function setItems(/* array(Google_string) */ $items) {
4237
+ $this->assertIsArray($items, 'Google_string', __METHOD__);
4238
+ $this->items = $items;
4239
+ }
4240
+ public function getItems() {
4241
+ return $this->items;
4242
+ }
4243
+ }
4244
+
4245
+ class Google_Zone extends Google_Model {
4246
+ public $creationTimestamp;
4247
+ protected $__deprecatedType = 'Google_DeprecationStatus';
4248
+ protected $__deprecatedDataType = '';
4249
+ public $deprecated;
4250
+ public $description;
4251
+ public $id;
4252
+ public $kind;
4253
+ protected $__maintenanceWindowsType = 'Google_ZoneMaintenanceWindows';
4254
+ protected $__maintenanceWindowsDataType = 'array';
4255
+ public $maintenanceWindows;
4256
+ public $name;
4257
+ protected $__quotasType = 'Google_Quota';
4258
+ protected $__quotasDataType = 'array';
4259
+ public $quotas;
4260
+ public $region;
4261
+ public $selfLink;
4262
+ public $status;
4263
+ public function setCreationTimestamp( $creationTimestamp) {
4264
+ $this->creationTimestamp = $creationTimestamp;
4265
+ }
4266
+ public function getCreationTimestamp() {
4267
+ return $this->creationTimestamp;
4268
+ }
4269
+ public function setDeprecated(Google_DeprecationStatus $deprecated) {
4270
+ $this->deprecated = $deprecated;
4271
+ }
4272
+ public function getDeprecated() {
4273
+ return $this->deprecated;
4274
+ }
4275
+ public function setDescription( $description) {
4276
+ $this->description = $description;
4277
+ }
4278
+ public function getDescription() {
4279
+ return $this->description;
4280
+ }
4281
+ public function setId( $id) {
4282
+ $this->id = $id;
4283
+ }
4284
+ public function getId() {
4285
+ return $this->id;
4286
+ }
4287
+ public function setKind( $kind) {
4288
+ $this->kind = $kind;
4289
+ }
4290
+ public function getKind() {
4291
+ return $this->kind;
4292
+ }
4293
+ public function setMaintenanceWindows(/* array(Google_ZoneMaintenanceWindows) */ $maintenanceWindows) {
4294
+ $this->assertIsArray($maintenanceWindows, 'Google_ZoneMaintenanceWindows', __METHOD__);
4295
+ $this->maintenanceWindows = $maintenanceWindows;
4296
+ }
4297
+ public function getMaintenanceWindows() {
4298
+ return $this->maintenanceWindows;
4299
+ }
4300
+ public function setName( $name) {
4301
+ $this->name = $name;
4302
+ }
4303
+ public function getName() {
4304
+ return $this->name;
4305
+ }
4306
+ public function setQuotas(/* array(Google_Quota) */ $quotas) {
4307
+ $this->assertIsArray($quotas, 'Google_Quota', __METHOD__);
4308
+ $this->quotas = $quotas;
4309
+ }
4310
+ public function getQuotas() {
4311
+ return $this->quotas;
4312
+ }
4313
+ public function setRegion( $region) {
4314
+ $this->region = $region;
4315
+ }
4316
+ public function getRegion() {
4317
+ return $this->region;
4318
+ }
4319
+ public function setSelfLink( $selfLink) {
4320
+ $this->selfLink = $selfLink;
4321
+ }
4322
+ public function getSelfLink() {
4323
+ return $this->selfLink;
4324
+ }
4325
+ public function setStatus( $status) {
4326
+ $this->status = $status;
4327
+ }
4328
+ public function getStatus() {
4329
+ return $this->status;
4330
+ }
4331
+ }
4332
+
4333
+ class Google_ZoneList extends Google_Model {
4334
+ public $id;
4335
+ protected $__itemsType = 'Google_Zone';
4336
+ protected $__itemsDataType = 'array';
4337
+ public $items;
4338
+ public $kind;
4339
+ public $nextPageToken;
4340
+ public $selfLink;
4341
+ public function setId( $id) {
4342
+ $this->id = $id;
4343
+ }
4344
+ public function getId() {
4345
+ return $this->id;
4346
+ }
4347
+ public function setItems(/* array(Google_Zone) */ $items) {
4348
+ $this->assertIsArray($items, 'Google_Zone', __METHOD__);
4349
+ $this->items = $items;
4350
+ }
4351
+ public function getItems() {
4352
+ return $this->items;
4353
+ }
4354
+ public function setKind( $kind) {
4355
+ $this->kind = $kind;
4356
+ }
4357
+ public function getKind() {
4358
+ return $this->kind;
4359
+ }
4360
+ public function setNextPageToken( $nextPageToken) {
4361
+ $this->nextPageToken = $nextPageToken;
4362
+ }
4363
+ public function getNextPageToken() {
4364
+ return $this->nextPageToken;
4365
+ }
4366
+ public function setSelfLink( $selfLink) {
4367
+ $this->selfLink = $selfLink;
4368
+ }
4369
+ public function getSelfLink() {
4370
+ return $this->selfLink;
4371
+ }
4372
+ }
4373
+
4374
+ class Google_ZoneMaintenanceWindows extends Google_Model {
4375
+ public $beginTime;
4376
+ public $description;
4377
+ public $endTime;
4378
+ public $name;
4379
+ public function setBeginTime( $beginTime) {
4380
+ $this->beginTime = $beginTime;
4381
+ }
4382
+ public function getBeginTime() {
4383
+ return $this->beginTime;
4384
+ }
4385
+ public function setDescription( $description) {
4386
+ $this->description = $description;
4387
+ }
4388
+ public function getDescription() {
4389
+ return $this->description;
4390
+ }
4391
+ public function setEndTime( $endTime) {
4392
+ $this->endTime = $endTime;
4393
+ }
4394
+ public function getEndTime() {
4395
+ return $this->endTime;
4396
+ }
4397
+ public function setName( $name) {
4398
+ $this->name = $name;
4399
+ }
4400
+ public function getName() {
4401
+ return $this->name;
4402
+ }
4403
+ }
googleclient/contrib/Google_CoordinateService.php ADDED
@@ -0,0 +1,842 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /*
3
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
4
+ * use this file except in compliance with the License. You may obtain a copy of
5
+ * the License at
6
+ *
7
+ * http://www.apache.org/licenses/LICENSE-2.0
8
+ *
9
+ * Unless required by applicable law or agreed to in writing, software
10
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
11
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
12
+ * License for the specific language governing permissions and limitations under
13
+ * the License.
14
+ */
15
+
16
+
17
+ /**
18
+ * The "customFieldDef" collection of methods.
19
+ * Typical usage is:
20
+ * <code>
21
+ * $coordinateService = new Google_CoordinateService(...);
22
+ * $customFieldDef = $coordinateService->customFieldDef;
23
+ * </code>
24
+ */
25
+ class Google_CustomFieldDefServiceResource extends Google_ServiceResource {
26
+
27
+ /**
28
+ * Retrieves a list of custom field definitions for a team. (customFieldDef.list)
29
+ *
30
+ * @param string $teamId Team ID
31
+ * @param array $optParams Optional parameters.
32
+ * @return Google_CustomFieldDefListResponse
33
+ */
34
+ public function listCustomFieldDef($teamId, $optParams = array()) {
35
+ $params = array('teamId' => $teamId);
36
+ $params = array_merge($params, $optParams);
37
+ $data = $this->__call('list', array($params));
38
+ if ($this->useObjects()) {
39
+ return new Google_CustomFieldDefListResponse($data);
40
+ } else {
41
+ return $data;
42
+ }
43
+ }
44
+ }
45
+
46
+ /**
47
+ * The "jobs" collection of methods.
48
+ * Typical usage is:
49
+ * <code>
50
+ * $coordinateService = new Google_CoordinateService(...);
51
+ * $jobs = $coordinateService->jobs;
52
+ * </code>
53
+ */
54
+ class Google_JobsServiceResource extends Google_ServiceResource {
55
+
56
+ /**
57
+ * Retrieves a job, including all the changes made to the job. (jobs.get)
58
+ *
59
+ * @param string $teamId Team ID
60
+ * @param string $jobId Job number
61
+ * @param array $optParams Optional parameters.
62
+ * @return Google_Job
63
+ */
64
+ public function get($teamId, $jobId, $optParams = array()) {
65
+ $params = array('teamId' => $teamId, 'jobId' => $jobId);
66
+ $params = array_merge($params, $optParams);
67
+ $data = $this->__call('get', array($params));
68
+ if ($this->useObjects()) {
69
+ return new Google_Job($data);
70
+ } else {
71
+ return $data;
72
+ }
73
+ }
74
+ /**
75
+ * Inserts a new job. Only the state field of the job should be set. (jobs.insert)
76
+ *
77
+ * @param string $teamId Team ID
78
+ * @param string $address Job address as newline (Unix) separated string
79
+ * @param double $lat The latitude coordinate of this job's location.
80
+ * @param double $lng The longitude coordinate of this job's location.
81
+ * @param string $title Job title
82
+ * @param Google_Job $postBody
83
+ * @param array $optParams Optional parameters.
84
+ *
85
+ * @opt_param string assignee Assignee email address, or empty string to unassign.
86
+ * @opt_param string customField Map from custom field id (from /team//custom_fields) to the field value. For example '123=Alice'
87
+ * @opt_param string customerName Customer name
88
+ * @opt_param string customerPhoneNumber Customer phone number
89
+ * @opt_param string note Job note as newline (Unix) separated string
90
+ * @return Google_Job
91
+ */
92
+ public function insert($teamId, $address, $lat, $lng, $title, Google_Job $postBody, $optParams = array()) {
93
+ $params = array('teamId' => $teamId, 'address' => $address, 'lat' => $lat, 'lng' => $lng, 'title' => $title, 'postBody' => $postBody);
94
+ $params = array_merge($params, $optParams);
95
+ $data = $this->__call('insert', array($params));
96
+ if ($this->useObjects()) {
97
+ return new Google_Job($data);
98
+ } else {
99
+ return $data;
100
+ }
101
+ }
102
+ /**
103
+ * Retrieves jobs created or modified since the given timestamp. (jobs.list)
104
+ *
105
+ * @param string $teamId Team ID
106
+ * @param array $optParams Optional parameters.
107
+ *
108
+ * @opt_param string maxResults Maximum number of results to return in one page.
109
+ * @opt_param string minModifiedTimestampMs Minimum time a job was modified in milliseconds since epoch.
110
+ * @opt_param string pageToken Continuation token
111
+ * @return Google_JobListResponse
112
+ */
113
+ public function listJobs($teamId, $optParams = array()) {
114
+ $params = array('teamId' => $teamId);
115
+ $params = array_merge($params, $optParams);
116
+ $data = $this->__call('list', array($params));
117
+ if ($this->useObjects()) {
118
+ return new Google_JobListResponse($data);
119
+ } else {
120
+ return $data;
121
+ }
122
+ }
123
+ /**
124
+ * Updates a job. Fields that are set in the job state will be updated. This method supports patch
125
+ * semantics. (jobs.patch)
126
+ *
127
+ * @param string $teamId Team ID
128
+ * @param string $jobId Job number
129
+ * @param Google_Job $postBody
130
+ * @param array $optParams Optional parameters.
131
+ *
132
+ * @opt_param string address Job address as newline (Unix) separated string
133
+ * @opt_param string assignee Assignee email address, or empty string to unassign.
134
+ * @opt_param string customField Map from custom field id (from /team//custom_fields) to the field value. For example '123=Alice'
135
+ * @opt_param string customerName Customer name
136
+ * @opt_param string customerPhoneNumber Customer phone number
137
+ * @opt_param double lat The latitude coordinate of this job's location.
138
+ * @opt_param double lng The longitude coordinate of this job's location.
139
+ * @opt_param string note Job note as newline (Unix) separated string
140
+ * @opt_param string progress Job progress
141
+ * @opt_param string title Job title
142
+ * @return Google_Job
143
+ */
144
+ public function patch($teamId, $jobId, Google_Job $postBody, $optParams = array()) {
145
+ $params = array('teamId' => $teamId, 'jobId' => $jobId, 'postBody' => $postBody);
146
+ $params = array_merge($params, $optParams);
147
+ $data = $this->__call('patch', array($params));
148
+ if ($this->useObjects()) {
149
+ return new Google_Job($data);
150
+ } else {
151
+ return $data;
152
+ }
153
+ }
154
+ /**
155
+ * Updates a job. Fields that are set in the job state will be updated. (jobs.update)
156
+ *
157
+ * @param string $teamId Team ID
158
+ * @param string $jobId Job number
159
+ * @param Google_Job $postBody
160
+ * @param array $optParams Optional parameters.
161
+ *
162
+ * @opt_param string address Job address as newline (Unix) separated string
163
+ * @opt_param string assignee Assignee email address, or empty string to unassign.
164
+ * @opt_param string customField Map from custom field id (from /team//custom_fields) to the field value. For example '123=Alice'
165
+ * @opt_param string customerName Customer name
166
+ * @opt_param string customerPhoneNumber Customer phone number
167
+ * @opt_param double lat The latitude coordinate of this job's location.
168
+ * @opt_param double lng The longitude coordinate of this job's location.
169
+ * @opt_param string note Job note as newline (Unix) separated string
170
+ * @opt_param string progress Job progress
171
+ * @opt_param string title Job title
172
+ * @return Google_Job
173
+ */
174
+ public function update($teamId, $jobId, Google_Job $postBody, $optParams = array()) {
175
+ $params = array('teamId' => $teamId, 'jobId' => $jobId, 'postBody' => $postBody);
176
+ $params = array_merge($params, $optParams);
177
+ $data = $this->__call('update', array($params));
178
+ if ($this->useObjects()) {
179
+ return new Google_Job($data);
180
+ } else {
181
+ return $data;
182
+ }
183
+ }
184
+ }
185
+
186
+ /**
187
+ * The "location" collection of methods.
188
+ * Typical usage is:
189
+ * <code>
190
+ * $coordinateService = new Google_CoordinateService(...);
191
+ * $location = $coordinateService->location;
192
+ * </code>
193
+ */
194
+ class Google_LocationServiceResource extends Google_ServiceResource {
195
+
196
+ /**
197
+ * Retrieves a list of locations for a worker. (location.list)
198
+ *
199
+ * @param string $teamId Team ID
200
+ * @param string $workerEmail Worker email address.
201
+ * @param string $startTimestampMs Start timestamp in milliseconds since the epoch.
202
+ * @param array $optParams Optional parameters.
203
+ *
204
+ * @opt_param string maxResults Maximum number of results to return in one page.
205
+ * @opt_param string pageToken Continuation token
206
+ * @return Google_LocationListResponse
207
+ */
208
+ public function listLocation($teamId, $workerEmail, $startTimestampMs, $optParams = array()) {
209
+ $params = array('teamId' => $teamId, 'workerEmail' => $workerEmail, 'startTimestampMs' => $startTimestampMs);
210
+ $params = array_merge($params, $optParams);
211
+ $data = $this->__call('list', array($params));
212
+ if ($this->useObjects()) {
213
+ return new Google_LocationListResponse($data);
214
+ } else {
215
+ return $data;
216
+ }
217
+ }
218
+ }
219
+
220
+ /**
221
+ * The "schedule" collection of methods.
222
+ * Typical usage is:
223
+ * <code>
224
+ * $coordinateService = new Google_CoordinateService(...);
225
+ * $schedule = $coordinateService->schedule;
226
+ * </code>
227
+ */
228
+ class Google_ScheduleServiceResource extends Google_ServiceResource {
229
+
230
+ /**
231
+ * Retrieves the schedule for a job. (schedule.get)
232
+ *
233
+ * @param string $teamId Team ID
234
+ * @param string $jobId Job number
235
+ * @param array $optParams Optional parameters.
236
+ * @return Google_Schedule
237
+ */
238
+ public function get($teamId, $jobId, $optParams = array()) {
239
+ $params = array('teamId' => $teamId, 'jobId' => $jobId);
240
+ $params = array_merge($params, $optParams);
241
+ $data = $this->__call('get', array($params));
242
+ if ($this->useObjects()) {
243
+ return new Google_Schedule($data);
244
+ } else {
245
+ return $data;
246
+ }
247
+ }
248
+ /**
249
+ * Replaces the schedule of a job with the provided schedule. This method supports patch semantics.
250
+ * (schedule.patch)
251
+ *
252
+ *