Google Apps Login - Version 2.4.3

Version Description

New hooks for profile photos. Updated Google client library.

Download this release

Release Info

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

Code changes from version 2.3.1 to 2.4.3

core/Google/Auth/AssertionCredentials.php CHANGED
@@ -118,9 +118,14 @@ class GoogleGAL_Auth_AssertionCredentials
118
  {
119
  $header = array('typ' => 'JWT', 'alg' => 'RS256');
120
 
 
 
 
 
 
121
  $segments = array(
122
  GoogleGAL_Utils::urlSafeB64Encode(json_encode($header)),
123
- GoogleGAL_Utils::urlSafeB64Encode(json_encode($payload))
124
  );
125
 
126
  $signingInput = implode('.', $segments);
118
  {
119
  $header = array('typ' => 'JWT', 'alg' => 'RS256');
120
 
121
+ $payload = json_encode($payload);
122
+ // Handle some overzealous escaping in PHP json that seemed to cause some errors
123
+ // with claimsets.
124
+ $payload = str_replace('\/', '/', $payload);
125
+
126
  $segments = array(
127
  GoogleGAL_Utils::urlSafeB64Encode(json_encode($header)),
128
+ GoogleGAL_Utils::urlSafeB64Encode($payload)
129
  );
130
 
131
  $signingInput = implode('.', $segments);
core/Google/Auth/OAuth2.php CHANGED
@@ -370,7 +370,7 @@ class GoogleGAL_Auth_OAuth2 extends GoogleGAL_Auth_Abstract
370
  */
371
  public function isAccessTokenExpired()
372
  {
373
- if (!$this->token) {
374
  return true;
375
  }
376
 
370
  */
371
  public function isAccessTokenExpired()
372
  {
373
+ if (!$this->token || !isset($this->token['created'])) {
374
  return true;
375
  }
376
 
core/Google/CONTRIBUTING.md DELETED
@@ -1,22 +0,0 @@
1
- # How to become a contributor and submit your own code
2
-
3
- ## Contributor License Agreements
4
-
5
- We'd love to accept your code patches! However, before we can take them, we have to jump a couple of legal hurdles.
6
-
7
- Please fill out either the individual or corporate Contributor License Agreement (CLA).
8
-
9
- * If you are an individual writing original source code and you're sure you own the intellectual property, then you'll need to sign an [individual CLA](http://code.google.com/legal/individual-cla-v1.0.html).
10
- * If you work for a company that wants to allow you to contribute your work to this client library, then you'll need to sign a[corporate CLA](http://code.google.com/legal/corporate-cla-v1.0.html).
11
-
12
- Follow either of the two links above to access the appropriate CLA and instructions for how to sign and return it. Once we receive it, we'll add you to the official list of contributors and be able to accept your patches.
13
-
14
- ## Submitting Patches
15
-
16
- 1. Fork the PHP client library on GitHub
17
- 1. Decide which code you want to submit. A submission should be a set of changes that addresses one issue in the issue tracker. Please file one change per issue, and address one issue per change. If you want to make a change that doesn't have a corresponding issue in the issue tracker, please file a new ticket!
18
- 1. Ensure that your code adheres to standard PHP conventions, as used in the rest of the library.
19
- 1. Ensure that there are unit tests for your code.
20
- 1. Sign a Contributor License Agreement (see above).
21
- 1. Submit a pull request with your patch on Github.
22
-
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
core/Google/Cache/File.php CHANGED
@@ -48,7 +48,7 @@ class GoogleGAL_Cache_File extends GoogleGAL_Cache_Abstract
48
 
49
  if ($expiration) {
50
  $mtime = filemtime($storageFile);
51
- if (($now - $mtime) >= $expiration) {
52
  $this->delete($key);
53
  return false;
54
  }
48
 
49
  if ($expiration) {
50
  $mtime = filemtime($storageFile);
51
+ if ((time() - $mtime) >= $expiration) {
52
  $this->delete($key);
53
  return false;
54
  }
core/Google/Client.php CHANGED
@@ -102,10 +102,10 @@ class GoogleGAL_Client
102
  }
103
 
104
  if ($config->getIoClass() == GoogleGAL_Config::USE_AUTO_IO_SELECTION) {
105
- if (function_exists('curl_version')) {
106
- $config->setIoClass("GoogleGAL_Io_Curl");
107
  } else {
108
- $config->setIoClass("GoogleGAL_Io_Stream");
109
  }
110
  }
111
 
@@ -250,7 +250,7 @@ class GoogleGAL_Client
250
  // The response is json encoded, so could be the string null.
251
  // It is arguable whether this check should be here or lower
252
  // in the library.
253
- return (null == $token || 'null' == $token) ? null : $token;
254
  }
255
 
256
  /**
102
  }
103
 
104
  if ($config->getIoClass() == GoogleGAL_Config::USE_AUTO_IO_SELECTION) {
105
+ if (function_exists('curl_version') && function_exists('curl_exec')) {
106
+ $config->setIoClass("GoogleGAL_IO_Curl");
107
  } else {
108
+ $config->setIoClass("GoogleGAL_IO_Stream");
109
  }
110
  }
111
 
250
  // The response is json encoded, so could be the string null.
251
  // It is arguable whether this check should be here or lower
252
  // in the library.
253
+ return (null == $token || 'null' == $token || '[]' == $token) ? null : $token;
254
  }
255
 
256
  /**
core/Google/Collection.php CHANGED
@@ -13,7 +13,7 @@ class GoogleGAL_Collection extends GoogleGAL_Model implements Iterator, Countabl
13
 
14
  public function rewind()
15
  {
16
- if (is_array($this->modelData[$this->collection_key])) {
17
  reset($this->modelData[$this->collection_key]);
18
  }
19
  }
@@ -28,7 +28,7 @@ class GoogleGAL_Collection extends GoogleGAL_Model implements Iterator, Countabl
28
 
29
  public function key()
30
  {
31
- if (is_array($this->modelData[$this->collection_key])) {
32
  return key($this->modelData[$this->collection_key]);
33
  }
34
  }
13
 
14
  public function rewind()
15
  {
16
+ if (isset($this->modelData[$this->collection_key]) && is_array($this->modelData[$this->collection_key])) {
17
  reset($this->modelData[$this->collection_key]);
18
  }
19
  }
28
 
29
  public function key()
30
  {
31
+ if (isset($this->modelData[$this->collection_key]) && is_array($this->modelData[$this->collection_key])) {
32
  return key($this->modelData[$this->collection_key]);
33
  }
34
  }
core/Google/IO/Abstract.php CHANGED
@@ -69,7 +69,12 @@ abstract class GoogleGAL_IO_Abstract
69
  abstract public function getTimeout();
70
 
71
  /**
72
- * Determine whether "Connection Established" quirk is needed
 
 
 
 
 
73
  * @return boolean
74
  */
75
  abstract protected function needsQuirk();
@@ -244,10 +249,15 @@ abstract class GoogleGAL_IO_Abstract
244
  */
245
  public function parseHttpResponse($respData, $headerSize)
246
  {
247
- // only strip this header if the sub-class needs this quirk
248
- if ($this->needsQuirk() && stripos($respData, self::CONNECTION_ESTABLISHED) !== false) {
249
  $respData = str_ireplace(self::CONNECTION_ESTABLISHED, '', $respData);
250
- $headerSize -= strlen(self::CONNECTION_ESTABLISHED);
 
 
 
 
 
 
251
  }
252
 
253
  if ($headerSize) {
69
  abstract public function getTimeout();
70
 
71
  /**
72
+ * Test for the presence of a cURL header processing bug
73
+ *
74
+ * The cURL bug was present in versions prior to 7.30.0 and caused the header
75
+ * length to be miscalculated when a "Connection established" header added by
76
+ * some proxies was present.
77
+ *
78
  * @return boolean
79
  */
80
  abstract protected function needsQuirk();
249
  */
250
  public function parseHttpResponse($respData, $headerSize)
251
  {
252
+ if (stripos($respData, self::CONNECTION_ESTABLISHED) !== false) {
 
253
  $respData = str_ireplace(self::CONNECTION_ESTABLISHED, '', $respData);
254
+
255
+ // Subtract the proxy header size unless the cURL bug prior to 7.30.0
256
+ // is present which prevented the proxy header size from being taken into
257
+ // account.
258
+ if (!$this->needsQuirk()) {
259
+ $headerSize -= strlen(self::CONNECTION_ESTABLISHED);
260
+ }
261
  }
262
 
263
  if ($headerSize) {
core/Google/IO/Curl.php CHANGED
@@ -25,8 +25,8 @@ require_once 'Google/IO/Abstract.php';
25
 
26
  class GoogleGAL_IO_Curl extends GoogleGAL_IO_Abstract
27
  {
28
- // hex for version 7.31.0
29
- const NO_QUIRK_VERSION = 0x071F00;
30
 
31
  private $options = array();
32
  /**
@@ -54,6 +54,8 @@ class GoogleGAL_IO_Curl extends GoogleGAL_IO_Abstract
54
  curl_setopt($curl, CURLOPT_HTTPHEADER, $curlHeaders);
55
  }
56
 
 
 
57
  curl_setopt($curl, CURLOPT_CUSTOMREQUEST, $request->getRequestMethod());
58
  curl_setopt($curl, CURLOPT_USERAGENT, $request->getUserAgent());
59
 
@@ -62,8 +64,6 @@ class GoogleGAL_IO_Curl extends GoogleGAL_IO_Abstract
62
  curl_setopt($curl, CURLOPT_RETURNTRANSFER, true);
63
  curl_setopt($curl, CURLOPT_HEADER, true);
64
 
65
- curl_setopt($curl, CURLOPT_URL, $request->getUrl());
66
-
67
  if ($request->canGzip()) {
68
  curl_setopt($curl, CURLOPT_ENCODING, 'gzip,deflate');
69
  }
@@ -82,9 +82,8 @@ class GoogleGAL_IO_Curl extends GoogleGAL_IO_Abstract
82
  }
83
  $headerSize = curl_getinfo($curl, CURLINFO_HEADER_SIZE);
84
 
85
- $responseBody = substr($response, $headerSize);
86
- $responseHeaderString = substr($response, 0, $headerSize);
87
- $responseHeaders = $this->getHttpResponseHeaders($responseHeaderString);
88
  $responseCode = curl_getinfo($curl, CURLINFO_HTTP_CODE);
89
 
90
  return array($responseBody, $responseHeaders, $responseCode);
@@ -123,7 +122,10 @@ class GoogleGAL_IO_Curl extends GoogleGAL_IO_Abstract
123
  }
124
 
125
  /**
126
- * Determine whether "Connection Established" quirk is needed
 
 
 
127
  * @return boolean
128
  */
129
  protected function needsQuirk()
25
 
26
  class GoogleGAL_IO_Curl extends GoogleGAL_IO_Abstract
27
  {
28
+ // cURL hex representation of version 7.30.0
29
+ const NO_QUIRK_VERSION = 0x071E00;
30
 
31
  private $options = array();
32
  /**
54
  curl_setopt($curl, CURLOPT_HTTPHEADER, $curlHeaders);
55
  }
56
 
57
+ curl_setopt($curl, CURLOPT_URL, $request->getUrl());
58
+
59
  curl_setopt($curl, CURLOPT_CUSTOMREQUEST, $request->getRequestMethod());
60
  curl_setopt($curl, CURLOPT_USERAGENT, $request->getUserAgent());
61
 
64
  curl_setopt($curl, CURLOPT_RETURNTRANSFER, true);
65
  curl_setopt($curl, CURLOPT_HEADER, true);
66
 
 
 
67
  if ($request->canGzip()) {
68
  curl_setopt($curl, CURLOPT_ENCODING, 'gzip,deflate');
69
  }
82
  }
83
  $headerSize = curl_getinfo($curl, CURLINFO_HEADER_SIZE);
84
 
85
+ list($responseHeaders, $responseBody) = $this->parseHttpResponse($response, $headerSize);
86
+
 
87
  $responseCode = curl_getinfo($curl, CURLINFO_HTTP_CODE);
88
 
89
  return array($responseBody, $responseHeaders, $responseCode);
122
  }
123
 
124
  /**
125
+ * Test for the presence of a cURL header processing bug
126
+ *
127
+ * {@inheritDoc}
128
+ *
129
  * @return boolean
130
  */
131
  protected function needsQuirk()
core/Google/IO/Stream.php CHANGED
@@ -157,13 +157,15 @@ class GoogleGAL_IO_Stream extends GoogleGAL_IO_Abstract
157
  }
158
 
159
  /**
160
- * Determine whether "Connection Established" quirk is needed
 
 
 
161
  * @return boolean
162
  */
163
  protected function needsQuirk()
164
  {
165
- // Stream needs the special quirk
166
- return true;
167
  }
168
 
169
  protected function getHttpResponseCode($response_headers)
157
  }
158
 
159
  /**
160
+ * Test for the presence of a cURL header processing bug
161
+ *
162
+ * {@inheritDoc}
163
+ *
164
  * @return boolean
165
  */
166
  protected function needsQuirk()
167
  {
168
+ return false;
 
169
  }
170
 
171
  protected function getHttpResponseCode($response_headers)
core/Google/LICENSE DELETED
@@ -1,203 +0,0 @@
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
-
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
core/Google/Model.php CHANGED
@@ -16,7 +16,7 @@
16
  */
17
 
18
  /**
19
- * This class defines attributes, valid values, and usage which is generated
20
  * from a given json schema.
21
  * http://tools.ietf.org/html/draft-zyp-json-schema-03#section-5
22
  *
@@ -48,6 +48,9 @@ class GoogleGAL_Model implements ArrayAccess
48
  if (isset($this->$keyTypeName) && !isset($this->processed[$key])) {
49
  if (isset($this->modelData[$key])) {
50
  $val = $this->modelData[$key];
 
 
 
51
  } else {
52
  $val = null;
53
  }
16
  */
17
 
18
  /**
19
+ * This class defines attributes, valid values, and usage which is generated
20
  * from a given json schema.
21
  * http://tools.ietf.org/html/draft-zyp-json-schema-03#section-5
22
  *
48
  if (isset($this->$keyTypeName) && !isset($this->processed[$key])) {
49
  if (isset($this->modelData[$key])) {
50
  $val = $this->modelData[$key];
51
+ } else if (isset($this->$keyDataType) &&
52
+ ($this->$keyDataType == 'array' || $this->$keyDataType == 'map')) {
53
+ $val = array();
54
  } else {
55
  $val = null;
56
  }
core/Google/README.md DELETED
@@ -1,59 +0,0 @@
1
- [![Build Status](https://travis-ci.org/google/google-api-php-client.svg)](https://travis-ci.org/google/google-api-php-client)
2
-
3
- # Google APIs Client Library for PHP #
4
-
5
- ## Description ##
6
- The Google API Client Library enables you to work with Google APIs such as Google+, Drive, or YouTube on your server.
7
-
8
- ## Requirements ##
9
- * [PHP 5.2.1 or higher](http://www.php.net/)
10
- * [PHP JSON extension](http://php.net/manual/en/book.json.php)
11
-
12
- ## Developer Documentation ##
13
- http://developers.google.com/api-client-library/php
14
-
15
- ## Basic Example ##
16
- See the examples/ directory for examples of the key client features.
17
- ```PHP
18
- <?php
19
- require_once 'Google/Client.php';
20
- require_once 'Google/Service/Books.php';
21
- $client = new GoogleGAL_Client();
22
- $client->setApplicationName("Client_Library_Examples");
23
- $client->setDeveloperKey("YOUR_APP_KEY");
24
- $service = new GoogleGAL_Service_Books($client);
25
- $optParams = array('filter' => 'free-ebooks');
26
- $results = $service->volumes->listVolumes('Henry David Thoreau', $optParams);
27
-
28
- foreach ($results as $item) {
29
- echo $item['volumeInfo']['title'], "<br /> \n";
30
- }
31
- ```
32
-
33
- ## Frequently Asked Questions ##
34
-
35
- ### What do I do if something isn't working? ###
36
-
37
- For support with the library the best place to ask is via the google-api-php-client tag on StackOverflow: http://stackoverflow.com/questions/tagged/google-api-php-client
38
-
39
- If there is a specific bug with the library, please file a issue in the Github issues tracker, including a (minimal) example of the failing code and any specific errors retrieved. Feature requests can also be filed, as long as they are core library requests, and not-API specific: for those, refer to the documentation for the individual APIs for the best place to file requests. Please try to provide a clear statement of the problem that the feature would address.
40
-
41
- ### How do I contribute? ###
42
-
43
- We accept contributions via Github Pull Requests, but all contributors need to be covered by the standard Google Contributor License Agreement. You can find links, and more instructions, in the documentation: https://developers.google.com/api-client-library/php/contribute
44
-
45
- ### Why do you still support 5.2? ###
46
-
47
- When we started working on the 1.0.0 branch we knew there were several fundamental issues to fix with the 0.6 releases of the library. At that time we looked at the usage of the library, and other related projects, and determined that there was still a large and active base of PHP 5.2 installs. You can see this in statistics such as the PHP versions chart in the WordPress stats: http://wordpress.org/about/stats/. We will keep looking at the types of usage we see, and try to take advantage of newer PHP features where possible.
48
-
49
- ### Why does GoogleGAL_..._Service have weird names? ###
50
-
51
- The _Service classes are generally automatically generated from the API discovery documents: https://developers.google.com/discovery/. Sometimes new features are added to APIs with unusual names, which can cause some unexpected or non-standard style naming in the PHP classes.
52
-
53
- ## Code Quality ##
54
-
55
- Copy the ruleset.xml in style/ into a new directory named GAPI/ in your
56
- /usr/share/php/PHP/CodeSniffer/Standards (or appropriate equivalent directory),
57
- and run code sniffs with:
58
-
59
- phpcs --standard=GAPI src/
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
core/Google/Service/AdExchangeBuyer.php CHANGED
@@ -137,6 +137,16 @@ class GoogleGAL_Service_AdExchangeBuyer extends GoogleGAL_Service
137
  'location' => 'query',
138
  'type' => 'integer',
139
  ),
 
 
 
 
 
 
 
 
 
 
140
  ),
141
  ),
142
  )
@@ -332,6 +342,10 @@ class GoogleGAL_Service_AdExchangeBuyer_Creatives_Resource extends GoogleGAL_Ser
332
  * parameter to the value of "nextPageToken" from the previous response. Optional.
333
  * @opt_param string maxResults
334
  * Maximum number of entries returned on one result page. If not set, the default is 100. Optional.
 
 
 
 
335
  * @return GoogleGAL_Service_AdExchangeBuyer_CreativesList
336
  */
337
  public function listCreatives($optParams = array())
137
  'location' => 'query',
138
  'type' => 'integer',
139
  ),
140
+ 'buyerCreativeId' => array(
141
+ 'location' => 'query',
142
+ 'type' => 'string',
143
+ 'repeated' => true,
144
+ ),
145
+ 'accountId' => array(
146
+ 'location' => 'query',
147
+ 'type' => 'integer',
148
+ 'repeated' => true,
149
+ ),
150
  ),
151
  ),
152
  )
342
  * parameter to the value of "nextPageToken" from the previous response. Optional.
343
  * @opt_param string maxResults
344
  * Maximum number of entries returned on one result page. If not set, the default is 100. Optional.
345
+ * @opt_param string buyerCreativeId
346
+ * When specified, only creatives for the given buyer creative ids are returned.
347
+ * @opt_param int accountId
348
+ * When specified, only creatives for the given account ids are returned.
349
  * @return GoogleGAL_Service_AdExchangeBuyer_CreativesList
350
  */
351
  public function listCreatives($optParams = array())
core/Google/Service/Analytics.php CHANGED
@@ -1388,8 +1388,8 @@ class GoogleGAL_Service_Analytics_DataGa_Resource extends GoogleGAL_Service_Reso
1388
  * MM-DD, or as a relative date (e.g., today, yesterday, or 7daysAgo). The default value is
1389
  * yesterday.
1390
  * @param string $metrics
1391
- * A comma-separated list of Analytics metrics. E.g., 'ga:visits,ga:pageviews'. At least one metric
1392
- * must be specified.
1393
  * @param array $optParams Optional parameters.
1394
  *
1395
  * @opt_param int max-results
@@ -1403,7 +1403,7 @@ class GoogleGAL_Service_Analytics_DataGa_Resource extends GoogleGAL_Service_Reso
1403
  * An index of the first entity to retrieve. Use this parameter as a pagination mechanism along
1404
  * with the max-results parameter.
1405
  * @opt_param string segment
1406
- * An Analytics advanced segment to be applied to data.
1407
  * @opt_param string samplingLevel
1408
  * The desired sampling level.
1409
  * @opt_param string filters
@@ -1488,8 +1488,8 @@ class GoogleGAL_Service_Analytics_DataRealtime_Resource extends GoogleGAL_Servic
1488
  * Unique table ID for retrieving real time data. Table ID is of the form ga:XXXX, where XXXX is
1489
  * the Analytics view (profile) ID.
1490
  * @param string $metrics
1491
- * A comma-separated list of real time metrics. E.g., 'rt:activeVisitors'. At least one metric must
1492
- * be specified.
1493
  * @param array $optParams Optional parameters.
1494
  *
1495
  * @opt_param int max-results
@@ -2289,16 +2289,16 @@ class GoogleGAL_Service_Analytics_ManagementSegments_Resource extends GoogleGAL_
2289
  {
2290
 
2291
  /**
2292
- * Lists advanced segments to which the user has access.
2293
  * (segments.listManagementSegments)
2294
  *
2295
  * @param array $optParams Optional parameters.
2296
  *
2297
  * @opt_param int max-results
2298
- * The maximum number of advanced segments to include in this response.
2299
  * @opt_param int start-index
2300
- * An index of the first advanced segment to retrieve. Use this parameter as a pagination mechanism
2301
- * along with the max-results parameter.
2302
  * @return GoogleGAL_Service_Analytics_Segments
2303
  */
2304
  public function listManagementSegments($optParams = array())
1388
  * MM-DD, or as a relative date (e.g., today, yesterday, or 7daysAgo). The default value is
1389
  * yesterday.
1390
  * @param string $metrics
1391
+ * A comma-separated list of Analytics metrics. E.g., 'ga:sessions,ga:pageviews'. At least one
1392
+ * metric must be specified.
1393
  * @param array $optParams Optional parameters.
1394
  *
1395
  * @opt_param int max-results
1403
  * An index of the first entity to retrieve. Use this parameter as a pagination mechanism along
1404
  * with the max-results parameter.
1405
  * @opt_param string segment
1406
+ * An Analytics segment to be applied to data.
1407
  * @opt_param string samplingLevel
1408
  * The desired sampling level.
1409
  * @opt_param string filters
1488
  * Unique table ID for retrieving real time data. Table ID is of the form ga:XXXX, where XXXX is
1489
  * the Analytics view (profile) ID.
1490
  * @param string $metrics
1491
+ * A comma-separated list of real time metrics. E.g., 'rt:activeUsers'. At least one metric must be
1492
+ * specified.
1493
  * @param array $optParams Optional parameters.
1494
  *
1495
  * @opt_param int max-results
2289
  {
2290
 
2291
  /**
2292
+ * Lists segments to which the user has access.
2293
  * (segments.listManagementSegments)
2294
  *
2295
  * @param array $optParams Optional parameters.
2296
  *
2297
  * @opt_param int max-results
2298
+ * The maximum number of segments to include in this response.
2299
  * @opt_param int start-index
2300
+ * An index of the first segment to retrieve. Use this parameter as a pagination mechanism along
2301
+ * with the max-results parameter.
2302
  * @return GoogleGAL_Service_Analytics_Segments
2303
  */
2304
  public function listManagementSegments($optParams = array())
core/Google/Service/AppState.php CHANGED
@@ -168,7 +168,8 @@ class GoogleGAL_Service_AppState_States_Resource extends GoogleGAL_Service_Resou
168
  return $this->call('delete', array($params));
169
  }
170
  /**
171
- * Retrieves the data corresponding to the passed key. (states.get)
 
172
  *
173
  * @param int $stateKey
174
  * The key for the data to be retrieved.
168
  return $this->call('delete', array($params));
169
  }
170
  /**
171
+ * Retrieves the data corresponding to the passed key. If the key does not exist
172
+ * on the server, an HTTP 404 will be returned. (states.get)
173
  *
174
  * @param int $stateKey
175
  * The key for the data to be retrieved.
core/Google/Service/Bigquery.php CHANGED
@@ -1889,6 +1889,7 @@ class GoogleGAL_Service_Bigquery_JobConfigurationQuery extends GoogleGAL_Model
1889
  protected $defaultDatasetDataType = '';
1890
  protected $destinationTableType = 'GoogleGAL_Service_Bigquery_TableReference';
1891
  protected $destinationTableDataType = '';
 
1892
  public $preserveNulls;
1893
  public $priority;
1894
  public $query;
@@ -1935,6 +1936,16 @@ class GoogleGAL_Service_Bigquery_JobConfigurationQuery extends GoogleGAL_Model
1935
  return $this->destinationTable;
1936
  }
1937
 
 
 
 
 
 
 
 
 
 
 
1938
  public function setPreserveNulls($preserveNulls)
1939
  {
1940
  $this->preserveNulls = $preserveNulls;
1889
  protected $defaultDatasetDataType = '';
1890
  protected $destinationTableType = 'GoogleGAL_Service_Bigquery_TableReference';
1891
  protected $destinationTableDataType = '';
1892
+ public $flattenResults;
1893
  public $preserveNulls;
1894
  public $priority;
1895
  public $query;
1936
  return $this->destinationTable;
1937
  }
1938
 
1939
+ public function setFlattenResults($flattenResults)
1940
+ {
1941
+ $this->flattenResults = $flattenResults;
1942
+ }
1943
+
1944
+ public function getFlattenResults()
1945
+ {
1946
+ return $this->flattenResults;
1947
+ }
1948
+
1949
  public function setPreserveNulls($preserveNulls)
1950
  {
1951
  $this->preserveNulls = $preserveNulls;
core/Google/Service/Books.php CHANGED
@@ -45,6 +45,7 @@ class GoogleGAL_Service_Books extends GoogleGAL_Service
45
  public $mylibrary_bookshelves;
46
  public $mylibrary_bookshelves_volumes;
47
  public $mylibrary_readingpositions;
 
48
  public $volumes;
49
  public $volumes_associated;
50
  public $volumes_mybooks;
@@ -936,6 +937,115 @@ class GoogleGAL_Service_Books extends GoogleGAL_Service
936
  )
937
  )
938
  );
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
939
  $this->volumes = new GoogleGAL_Service_Books_Volumes_Resource(
940
  $this,
941
  $this->serviceName,
@@ -2028,6 +2138,98 @@ class GoogleGAL_Service_Books_MylibraryReadingpositions_Resource extends GoogleG
2028
  }
2029
  }
2030
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
2031
  /**
2032
  * The "volumes" collection of methods.
2033
  * Typical usage is:
@@ -4512,6 +4714,141 @@ class GoogleGAL_Service_Books_Layersummary extends GoogleGAL_Collection
4512
  }
4513
  }
4514
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
4515
  class GoogleGAL_Service_Books_ReadingPosition extends GoogleGAL_Model
4516
  {
4517
  public $epubCfiPosition;
@@ -5758,6 +6095,7 @@ class GoogleGAL_Service_Books_VolumeVolumeInfo extends GoogleGAL_Collection
5758
  public $publishedDate;
5759
  public $publisher;
5760
  public $ratingsCount;
 
5761
  public $subtitle;
5762
  public $title;
5763
 
@@ -5951,6 +6289,16 @@ class GoogleGAL_Service_Books_VolumeVolumeInfo extends GoogleGAL_Collection
5951
  return $this->ratingsCount;
5952
  }
5953
 
 
 
 
 
 
 
 
 
 
 
5954
  public function setSubtitle($subtitle)
5955
  {
5956
  $this->subtitle = $subtitle;
45
  public $mylibrary_bookshelves;
46
  public $mylibrary_bookshelves_volumes;
47
  public $mylibrary_readingpositions;
48
+ public $promooffer;
49
  public $volumes;
50
  public $volumes_associated;
51
  public $volumes_mybooks;
937
  )
938
  )
939
  );
940
+ $this->promooffer = new GoogleGAL_Service_Books_Promooffer_Resource(
941
+ $this,
942
+ $this->serviceName,
943
+ 'promooffer',
944
+ array(
945
+ 'methods' => array(
946
+ 'accept' => array(
947
+ 'path' => 'promooffer/accept',
948
+ 'httpMethod' => 'POST',
949
+ 'parameters' => array(
950
+ 'product' => array(
951
+ 'location' => 'query',
952
+ 'type' => 'string',
953
+ ),
954
+ 'volumeId' => array(
955
+ 'location' => 'query',
956
+ 'type' => 'string',
957
+ ),
958
+ 'offerId' => array(
959
+ 'location' => 'query',
960
+ 'type' => 'string',
961
+ ),
962
+ 'androidId' => array(
963
+ 'location' => 'query',
964
+ 'type' => 'string',
965
+ ),
966
+ 'device' => array(
967
+ 'location' => 'query',
968
+ 'type' => 'string',
969
+ ),
970
+ 'model' => array(
971
+ 'location' => 'query',
972
+ 'type' => 'string',
973
+ ),
974
+ 'serial' => array(
975
+ 'location' => 'query',
976
+ 'type' => 'string',
977
+ ),
978
+ 'manufacturer' => array(
979
+ 'location' => 'query',
980
+ 'type' => 'string',
981
+ ),
982
+ ),
983
+ ),'dismiss' => array(
984
+ 'path' => 'promooffer/dismiss',
985
+ 'httpMethod' => 'POST',
986
+ 'parameters' => array(
987
+ 'product' => array(
988
+ 'location' => 'query',
989
+ 'type' => 'string',
990
+ ),
991
+ 'offerId' => array(
992
+ 'location' => 'query',
993
+ 'type' => 'string',
994
+ ),
995
+ 'androidId' => array(
996
+ 'location' => 'query',
997
+ 'type' => 'string',
998
+ ),
999
+ 'device' => array(
1000
+ 'location' => 'query',
1001
+ 'type' => 'string',
1002
+ ),
1003
+ 'model' => array(
1004
+ 'location' => 'query',
1005
+ 'type' => 'string',
1006
+ ),
1007
+ 'serial' => array(
1008
+ 'location' => 'query',
1009
+ 'type' => 'string',
1010
+ ),
1011
+ 'manufacturer' => array(
1012
+ 'location' => 'query',
1013
+ 'type' => 'string',
1014
+ ),
1015
+ ),
1016
+ ),'get' => array(
1017
+ 'path' => 'promooffer/get',
1018
+ 'httpMethod' => 'GET',
1019
+ 'parameters' => array(
1020
+ 'product' => array(
1021
+ 'location' => 'query',
1022
+ 'type' => 'string',
1023
+ ),
1024
+ 'androidId' => array(
1025
+ 'location' => 'query',
1026
+ 'type' => 'string',
1027
+ ),
1028
+ 'device' => array(
1029
+ 'location' => 'query',
1030
+ 'type' => 'string',
1031
+ ),
1032
+ 'model' => array(
1033
+ 'location' => 'query',
1034
+ 'type' => 'string',
1035
+ ),
1036
+ 'serial' => array(
1037
+ 'location' => 'query',
1038
+ 'type' => 'string',
1039
+ ),
1040
+ 'manufacturer' => array(
1041
+ 'location' => 'query',
1042
+ 'type' => 'string',
1043
+ ),
1044
+ ),
1045
+ ),
1046
+ )
1047
+ )
1048
+ );
1049
  $this->volumes = new GoogleGAL_Service_Books_Volumes_Resource(
1050
  $this,
1051
  $this->serviceName,
2138
  }
2139
  }
2140
 
2141
+ /**
2142
+ * The "promooffer" collection of methods.
2143
+ * Typical usage is:
2144
+ * <code>
2145
+ * $booksService = new GoogleGAL_Service_Books(...);
2146
+ * $promooffer = $booksService->promooffer;
2147
+ * </code>
2148
+ */
2149
+ class GoogleGAL_Service_Books_Promooffer_Resource extends GoogleGAL_Service_Resource
2150
+ {
2151
+
2152
+ /**
2153
+ * (promooffer.accept)
2154
+ *
2155
+ * @param array $optParams Optional parameters.
2156
+ *
2157
+ * @opt_param string product
2158
+ * device product
2159
+ * @opt_param string volumeId
2160
+ * Volume id to exercise the offer
2161
+ * @opt_param string offerId
2162
+ *
2163
+ * @opt_param string androidId
2164
+ * device android_id
2165
+ * @opt_param string device
2166
+ * device device
2167
+ * @opt_param string model
2168
+ * device model
2169
+ * @opt_param string serial
2170
+ * device serial
2171
+ * @opt_param string manufacturer
2172
+ * device manufacturer
2173
+ */
2174
+ public function accept($optParams = array())
2175
+ {
2176
+ $params = array();
2177
+ $params = array_merge($params, $optParams);
2178
+ return $this->call('accept', array($params));
2179
+ }
2180
+ /**
2181
+ * (promooffer.dismiss)
2182
+ *
2183
+ * @param array $optParams Optional parameters.
2184
+ *
2185
+ * @opt_param string product
2186
+ * device product
2187
+ * @opt_param string offerId
2188
+ * Offer to dimiss
2189
+ * @opt_param string androidId
2190
+ * device android_id
2191
+ * @opt_param string device
2192
+ * device device
2193
+ * @opt_param string model
2194
+ * device model
2195
+ * @opt_param string serial
2196
+ * device serial
2197
+ * @opt_param string manufacturer
2198
+ * device manufacturer
2199
+ */
2200
+ public function dismiss($optParams = array())
2201
+ {
2202
+ $params = array();
2203
+ $params = array_merge($params, $optParams);
2204
+ return $this->call('dismiss', array($params));
2205
+ }
2206
+ /**
2207
+ * Returns a list of promo offers available to the user (promooffer.get)
2208
+ *
2209
+ * @param array $optParams Optional parameters.
2210
+ *
2211
+ * @opt_param string product
2212
+ * device product
2213
+ * @opt_param string androidId
2214
+ * device android_id
2215
+ * @opt_param string device
2216
+ * device device
2217
+ * @opt_param string model
2218
+ * device model
2219
+ * @opt_param string serial
2220
+ * device serial
2221
+ * @opt_param string manufacturer
2222
+ * device manufacturer
2223
+ * @return GoogleGAL_Service_Books_Offers
2224
+ */
2225
+ public function get($optParams = array())
2226
+ {
2227
+ $params = array();
2228
+ $params = array_merge($params, $optParams);
2229
+ return $this->call('get', array($params), "GoogleGAL_Service_Books_Offers");
2230
+ }
2231
+ }
2232
+
2233
  /**
2234
  * The "volumes" collection of methods.
2235
  * Typical usage is:
4714
  }
4715
  }
4716
 
4717
+ class GoogleGAL_Service_Books_Offers extends GoogleGAL_Collection
4718
+ {
4719
+ protected $itemsType = 'GoogleGAL_Service_Books_OffersItems';
4720
+ protected $itemsDataType = 'array';
4721
+ public $kind;
4722
+
4723
+ public function setItems($items)
4724
+ {
4725
+ $this->items = $items;
4726
+ }
4727
+
4728
+ public function getItems()
4729
+ {
4730
+ return $this->items;
4731
+ }
4732
+
4733
+ public function setKind($kind)
4734
+ {
4735
+ $this->kind = $kind;
4736
+ }
4737
+
4738
+ public function getKind()
4739
+ {
4740
+ return $this->kind;
4741
+ }
4742
+ }
4743
+
4744
+ class GoogleGAL_Service_Books_OffersItems extends GoogleGAL_Collection
4745
+ {
4746
+ public $artUrl;
4747
+ public $id;
4748
+ protected $itemsType = 'GoogleGAL_Service_Books_OffersItemsItems';
4749
+ protected $itemsDataType = 'array';
4750
+
4751
+ public function setArtUrl($artUrl)
4752
+ {
4753
+ $this->artUrl = $artUrl;
4754
+ }
4755
+
4756
+ public function getArtUrl()
4757
+ {
4758
+ return $this->artUrl;
4759
+ }
4760
+
4761
+ public function setId($id)
4762
+ {
4763
+ $this->id = $id;
4764
+ }
4765
+
4766
+ public function getId()
4767
+ {
4768
+ return $this->id;
4769
+ }
4770
+
4771
+ public function setItems($items)
4772
+ {
4773
+ $this->items = $items;
4774
+ }
4775
+
4776
+ public function getItems()
4777
+ {
4778
+ return $this->items;
4779
+ }
4780
+ }
4781
+
4782
+ class GoogleGAL_Service_Books_OffersItemsItems extends GoogleGAL_Model
4783
+ {
4784
+ public $author;
4785
+ public $canonicalVolumeLink;
4786
+ public $coverUrl;
4787
+ public $description;
4788
+ public $title;
4789
+ public $volumeId;
4790
+
4791
+ public function setAuthor($author)
4792
+ {
4793
+ $this->author = $author;
4794
+ }
4795
+
4796
+ public function getAuthor()
4797
+ {
4798
+ return $this->author;
4799
+ }
4800
+
4801
+ public function setCanonicalVolumeLink($canonicalVolumeLink)
4802
+ {
4803
+ $this->canonicalVolumeLink = $canonicalVolumeLink;
4804
+ }
4805
+
4806
+ public function getCanonicalVolumeLink()
4807
+ {
4808
+ return $this->canonicalVolumeLink;
4809
+ }
4810
+
4811
+ public function setCoverUrl($coverUrl)
4812
+ {
4813
+ $this->coverUrl = $coverUrl;
4814
+ }
4815
+
4816
+ public function getCoverUrl()
4817
+ {
4818
+ return $this->coverUrl;
4819
+ }
4820
+
4821
+ public function setDescription($description)
4822
+ {
4823
+ $this->description = $description;
4824
+ }
4825
+
4826
+ public function getDescription()
4827
+ {
4828
+ return $this->description;
4829
+ }
4830
+
4831
+ public function setTitle($title)
4832
+ {
4833
+ $this->title = $title;
4834
+ }
4835
+
4836
+ public function getTitle()
4837
+ {
4838
+ return $this->title;
4839
+ }
4840
+
4841
+ public function setVolumeId($volumeId)
4842
+ {
4843
+ $this->volumeId = $volumeId;
4844
+ }
4845
+
4846
+ public function getVolumeId()
4847
+ {
4848
+ return $this->volumeId;
4849
+ }
4850
+ }
4851
+
4852
  class GoogleGAL_Service_Books_ReadingPosition extends GoogleGAL_Model
4853
  {
4854
  public $epubCfiPosition;
6095
  public $publishedDate;
6096
  public $publisher;
6097
  public $ratingsCount;
6098
+ public $readingModes;
6099
  public $subtitle;
6100
  public $title;
6101
 
6289
  return $this->ratingsCount;
6290
  }
6291
 
6292
+ public function setReadingModes($readingModes)
6293
+ {
6294
+ $this->readingModes = $readingModes;
6295
+ }
6296
+
6297
+ public function getReadingModes()
6298
+ {
6299
+ return $this->readingModes;
6300
+ }
6301
+
6302
  public function setSubtitle($subtitle)
6303
  {
6304
  $this->subtitle = $subtitle;
core/Google/Service/Calendar.php CHANGED
@@ -113,6 +113,22 @@ class GoogleGAL_Service_Calendar extends GoogleGAL_Service
113
  'type' => 'string',
114
  'required' => true,
115
  ),
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
116
  ),
117
  ),'patch' => array(
118
  'path' => 'calendars/{calendarId}/acl/{ruleId}',
@@ -144,6 +160,32 @@ class GoogleGAL_Service_Calendar extends GoogleGAL_Service
144
  'required' => true,
145
  ),
146
  ),
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
147
  ),
148
  )
149
  )
@@ -187,22 +229,30 @@ class GoogleGAL_Service_Calendar extends GoogleGAL_Service
187
  'path' => 'users/me/calendarList',
188
  'httpMethod' => 'GET',
189
  'parameters' => array(
190
- 'pageToken' => array(
191
  'location' => 'query',
192
  'type' => 'string',
193
  ),
194
- 'showHidden' => array(
195
  'location' => 'query',
196
  'type' => 'boolean',
197
  ),
 
 
 
 
198
  'maxResults' => array(
199
  'location' => 'query',
200
  'type' => 'integer',
201
  ),
202
- 'minAccessRole' => array(
203
  'location' => 'query',
204
  'type' => 'string',
205
  ),
 
 
 
 
206
  ),
207
  ),'patch' => array(
208
  'path' => 'users/me/calendarList/{calendarId}',
@@ -232,6 +282,35 @@ class GoogleGAL_Service_Calendar extends GoogleGAL_Service
232
  'type' => 'boolean',
233
  ),
234
  ),
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
235
  ),
236
  )
237
  )
@@ -476,6 +555,10 @@ class GoogleGAL_Service_Calendar extends GoogleGAL_Service
476
  'location' => 'query',
477
  'type' => 'boolean',
478
  ),
 
 
 
 
479
  'showDeleted' => array(
480
  'location' => 'query',
481
  'type' => 'boolean',
@@ -649,6 +732,10 @@ class GoogleGAL_Service_Calendar extends GoogleGAL_Service
649
  'location' => 'query',
650
  'type' => 'boolean',
651
  ),
 
 
 
 
652
  'showDeleted' => array(
653
  'location' => 'query',
654
  'type' => 'boolean',
@@ -745,7 +832,37 @@ class GoogleGAL_Service_Calendar extends GoogleGAL_Service
745
  ),'list' => array(
746
  'path' => 'users/me/settings',
747
  'httpMethod' => 'GET',
748
- 'parameters' => array(),
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
749
  ),
750
  )
751
  )
@@ -817,6 +934,20 @@ class GoogleGAL_Service_Calendar_Acl_Resource extends GoogleGAL_Service_Resource
817
  * @param string $calendarId
818
  * Calendar identifier.
819
  * @param array $optParams Optional parameters.
 
 
 
 
 
 
 
 
 
 
 
 
 
 
820
  * @return GoogleGAL_Service_Calendar_Acl
821
  */
822
  public function listAcl($calendarId, $optParams = array())
@@ -860,6 +991,35 @@ class GoogleGAL_Service_Calendar_Acl_Resource extends GoogleGAL_Service_Resource
860
  $params = array_merge($params, $optParams);
861
  return $this->call('update', array($params), "GoogleGAL_Service_Calendar_AclRule");
862
  }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
863
  }
864
 
865
  /**
@@ -923,15 +1083,21 @@ class GoogleGAL_Service_Calendar_CalendarList_Resource extends GoogleGAL_Service
923
  *
924
  * @param array $optParams Optional parameters.
925
  *
 
 
 
 
 
 
 
 
 
 
 
926
  * @opt_param string pageToken
927
  * Token specifying which result page to return. Optional.
928
  * @opt_param bool showHidden
929
  * Whether to show hidden entries. Optional. The default is False.
930
- * @opt_param int maxResults
931
- * Maximum number of entries returned on one result page. Optional.
932
- * @opt_param string minAccessRole
933
- * The minimum access role for the user in the returned entires. Optional. The default is no
934
- * restriction.
935
  * @return GoogleGAL_Service_Calendar_CalendarList
936
  */
937
  public function listCalendarList($optParams = array())
@@ -981,6 +1147,35 @@ class GoogleGAL_Service_Calendar_CalendarList_Resource extends GoogleGAL_Service
981
  $params = array_merge($params, $optParams);
982
  return $this->call('update', array($params), "GoogleGAL_Service_Calendar_CalendarListEntry");
983
  }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
984
  }
985
 
986
  /**
@@ -1280,6 +1475,10 @@ class GoogleGAL_Service_Calendar_Events_Resource extends GoogleGAL_Service_Resou
1280
  * order.
1281
  * @opt_param bool showHiddenInvitations
1282
  * Whether to include hidden invitations in the result. Optional. The default is False.
 
 
 
 
1283
  * @opt_param bool showDeleted
1284
  * Whether to include deleted events (with 'status' equals 'cancelled') in the result. Cancelled
1285
  * instances of recurring events (but not the underlying recurring event) will still be included if
@@ -1447,6 +1646,10 @@ class GoogleGAL_Service_Calendar_Events_Resource extends GoogleGAL_Service_Resou
1447
  * order.
1448
  * @opt_param bool showHiddenInvitations
1449
  * Whether to include hidden invitations in the result. Optional. The default is False.
 
 
 
 
1450
  * @opt_param bool showDeleted
1451
  * Whether to include deleted events (with 'status' equals 'cancelled') in the result. Cancelled
1452
  * instances of recurring events (but not the underlying recurring event) will still be included if
@@ -1558,6 +1761,15 @@ class GoogleGAL_Service_Calendar_Settings_Resource extends GoogleGAL_Service_Res
1558
  * Returns all user settings for the authenticated user. (settings.listSettings)
1559
  *
1560
  * @param array $optParams Optional parameters.
 
 
 
 
 
 
 
 
 
1561
  * @return GoogleGAL_Service_Calendar_Settings
1562
  */
1563
  public function listSettings($optParams = array())
@@ -1566,6 +1778,28 @@ class GoogleGAL_Service_Calendar_Settings_Resource extends GoogleGAL_Service_Res
1566
  $params = array_merge($params, $optParams);
1567
  return $this->call('list', array($params), "GoogleGAL_Service_Calendar_Settings");
1568
  }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1569
  }
1570
 
1571
 
@@ -1578,6 +1812,7 @@ class GoogleGAL_Service_Calendar_Acl extends GoogleGAL_Collection
1578
  protected $itemsDataType = 'array';
1579
  public $kind;
1580
  public $nextPageToken;
 
1581
 
1582
  public function setEtag($etag)
1583
  {
@@ -1618,6 +1853,16 @@ class GoogleGAL_Service_Calendar_Acl extends GoogleGAL_Collection
1618
  {
1619
  return $this->nextPageToken;
1620
  }
 
 
 
 
 
 
 
 
 
 
1621
  }
1622
 
1623
  class GoogleGAL_Service_Calendar_AclRule extends GoogleGAL_Model
@@ -1794,6 +2039,7 @@ class GoogleGAL_Service_Calendar_CalendarList extends GoogleGAL_Collection
1794
  protected $itemsDataType = 'array';
1795
  public $kind;
1796
  public $nextPageToken;
 
1797
 
1798
  public function setEtag($etag)
1799
  {
@@ -1834,6 +2080,16 @@ class GoogleGAL_Service_Calendar_CalendarList extends GoogleGAL_Collection
1834
  {
1835
  return $this->nextPageToken;
1836
  }
 
 
 
 
 
 
 
 
 
 
1837
  }
1838
 
1839
  class GoogleGAL_Service_Calendar_CalendarListEntry extends GoogleGAL_Collection
@@ -1843,6 +2099,7 @@ class GoogleGAL_Service_Calendar_CalendarListEntry extends GoogleGAL_Collection
1843
  public $colorId;
1844
  protected $defaultRemindersType = 'GoogleGAL_Service_Calendar_EventReminder';
1845
  protected $defaultRemindersDataType = 'array';
 
1846
  public $description;
1847
  public $etag;
1848
  public $foregroundColor;
@@ -1898,6 +2155,16 @@ class GoogleGAL_Service_Calendar_CalendarListEntry extends GoogleGAL_Collection
1898
  return $this->defaultReminders;
1899
  }
1900
 
 
 
 
 
 
 
 
 
 
 
1901
  public function setDescription($description)
1902
  {
1903
  $this->description = $description;
@@ -3152,6 +3419,7 @@ class GoogleGAL_Service_Calendar_Events extends GoogleGAL_Collection
3152
  protected $itemsDataType = 'array';
3153
  public $kind;
3154
  public $nextPageToken;
 
3155
  public $summary;
3156
  public $timeZone;
3157
  public $updated;
@@ -3226,6 +3494,16 @@ class GoogleGAL_Service_Calendar_Events extends GoogleGAL_Collection
3226
  return $this->nextPageToken;
3227
  }
3228
 
 
 
 
 
 
 
 
 
 
 
3229
  public function setSummary($summary)
3230
  {
3231
  $this->summary = $summary;
@@ -3513,6 +3791,8 @@ class GoogleGAL_Service_Calendar_Settings extends GoogleGAL_Collection
3513
  protected $itemsType = 'GoogleGAL_Service_Calendar_Setting';
3514
  protected $itemsDataType = 'array';
3515
  public $kind;
 
 
3516
 
3517
  public function setEtag($etag)
3518
  {
@@ -3543,6 +3823,26 @@ class GoogleGAL_Service_Calendar_Settings extends GoogleGAL_Collection
3543
  {
3544
  return $this->kind;
3545
  }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
3546
  }
3547
 
3548
  class GoogleGAL_Service_Calendar_TimePeriod extends GoogleGAL_Model
113
  'type' => 'string',
114
  'required' => true,
115
  ),
116
+ 'pageToken' => array(
117
+ 'location' => 'query',
118
+ 'type' => 'string',
119
+ ),
120
+ 'syncToken' => array(
121
+ 'location' => 'query',
122
+ 'type' => 'string',
123
+ ),
124
+ 'maxResults' => array(
125
+ 'location' => 'query',
126
+ 'type' => 'integer',
127
+ ),
128
+ 'showDeleted' => array(
129
+ 'location' => 'query',
130
+ 'type' => 'boolean',
131
+ ),
132
  ),
133
  ),'patch' => array(
134
  'path' => 'calendars/{calendarId}/acl/{ruleId}',
160
  'required' => true,
161
  ),
162
  ),
163
+ ),'watch' => array(
164
+ 'path' => 'calendars/{calendarId}/acl/watch',
165
+ 'httpMethod' => 'POST',
166
+ 'parameters' => array(
167
+ 'calendarId' => array(
168
+ 'location' => 'path',
169
+ 'type' => 'string',
170
+ 'required' => true,
171
+ ),
172
+ 'pageToken' => array(
173
+ 'location' => 'query',
174
+ 'type' => 'string',
175
+ ),
176
+ 'syncToken' => array(
177
+ 'location' => 'query',
178
+ 'type' => 'string',
179
+ ),
180
+ 'maxResults' => array(
181
+ 'location' => 'query',
182
+ 'type' => 'integer',
183
+ ),
184
+ 'showDeleted' => array(
185
+ 'location' => 'query',
186
+ 'type' => 'boolean',
187
+ ),
188
+ ),
189
  ),
190
  )
191
  )
229
  'path' => 'users/me/calendarList',
230
  'httpMethod' => 'GET',
231
  'parameters' => array(
232
+ 'syncToken' => array(
233
  'location' => 'query',
234
  'type' => 'string',
235
  ),
236
+ 'showDeleted' => array(
237
  'location' => 'query',
238
  'type' => 'boolean',
239
  ),
240
+ 'minAccessRole' => array(
241
+ 'location' => 'query',
242
+ 'type' => 'string',
243
+ ),
244
  'maxResults' => array(
245
  'location' => 'query',
246
  'type' => 'integer',
247
  ),
248
+ 'pageToken' => array(
249
  'location' => 'query',
250
  'type' => 'string',
251
  ),
252
+ 'showHidden' => array(
253
+ 'location' => 'query',
254
+ 'type' => 'boolean',
255
+ ),
256
  ),
257
  ),'patch' => array(
258
  'path' => 'users/me/calendarList/{calendarId}',
282
  'type' => 'boolean',
283
  ),
284
  ),
285
+ ),'watch' => array(
286
+ 'path' => 'users/me/calendarList/watch',
287
+ 'httpMethod' => 'POST',
288
+ 'parameters' => array(
289
+ 'syncToken' => array(
290
+ 'location' => 'query',
291
+ 'type' => 'string',
292
+ ),
293
+ 'showDeleted' => array(
294
+ 'location' => 'query',
295
+ 'type' => 'boolean',
296
+ ),
297
+ 'minAccessRole' => array(
298
+ 'location' => 'query',
299
+ 'type' => 'string',
300
+ ),
301
+ 'maxResults' => array(
302
+ 'location' => 'query',
303
+ 'type' => 'integer',
304
+ ),
305
+ 'pageToken' => array(
306
+ 'location' => 'query',
307
+ 'type' => 'string',
308
+ ),
309
+ 'showHidden' => array(
310
+ 'location' => 'query',
311
+ 'type' => 'boolean',
312
+ ),
313
+ ),
314
  ),
315
  )
316
  )
555
  'location' => 'query',
556
  'type' => 'boolean',
557
  ),
558
+ 'syncToken' => array(
559
+ 'location' => 'query',
560
+ 'type' => 'string',
561
+ ),
562
  'showDeleted' => array(
563
  'location' => 'query',
564
  'type' => 'boolean',
732
  'location' => 'query',
733
  'type' => 'boolean',
734
  ),
735
+ 'syncToken' => array(
736
+ 'location' => 'query',
737
+ 'type' => 'string',
738
+ ),
739
  'showDeleted' => array(
740
  'location' => 'query',
741
  'type' => 'boolean',
832
  ),'list' => array(
833
  'path' => 'users/me/settings',
834
  'httpMethod' => 'GET',
835
+ 'parameters' => array(
836
+ 'pageToken' => array(
837
+ 'location' => 'query',
838
+ 'type' => 'string',
839
+ ),
840
+ 'maxResults' => array(
841
+ 'location' => 'query',
842
+ 'type' => 'integer',
843
+ ),
844
+ 'syncToken' => array(
845
+ 'location' => 'query',
846
+ 'type' => 'string',
847
+ ),
848
+ ),
849
+ ),'watch' => array(
850
+ 'path' => 'users/me/settings/watch',
851
+ 'httpMethod' => 'POST',
852
+ 'parameters' => array(
853
+ 'pageToken' => array(
854
+ 'location' => 'query',
855
+ 'type' => 'string',
856
+ ),
857
+ 'maxResults' => array(
858
+ 'location' => 'query',
859
+ 'type' => 'integer',
860
+ ),
861
+ 'syncToken' => array(
862
+ 'location' => 'query',
863
+ 'type' => 'string',
864
+ ),
865
+ ),
866
  ),
867
  )
868
  )
934
  * @param string $calendarId
935
  * Calendar identifier.
936
  * @param array $optParams Optional parameters.
937
+ *
938
+ * @opt_param string pageToken
939
+ * Token specifying which result page to return. Optional.
940
+ * @opt_param string syncToken
941
+ * Token obtained from the 'nextSyncToken' field returned as part of the result of a previous call
942
+ * to this method. It makes the result of this call contain only entries that have changed since
943
+ * the last call, including entries that have been removed in the meantime (they will have the
944
+ * 'role' set to 'none'). Optional. The default is to return to all entries.
945
+ * @opt_param int maxResults
946
+ * Maximum number of entries returned on one result page. Optional.
947
+ * @opt_param bool showDeleted
948
+ * Whether to include deleted acls in the result. Deleted acls are represented by with 'role' equal
949
+ * to 'none'. Deleted acls will always be included if 'syncToken' is provided. Optional. The
950
+ * default is False.
951
  * @return GoogleGAL_Service_Calendar_Acl
952
  */
953
  public function listAcl($calendarId, $optParams = array())
991
  $params = array_merge($params, $optParams);
992
  return $this->call('update', array($params), "GoogleGAL_Service_Calendar_AclRule");
993
  }
994
+ /**
995
+ * Watch for changes to ACL resources. (acl.watch)
996
+ *
997
+ * @param string $calendarId
998
+ * Calendar identifier.
999
+ * @param GoogleGAL_Channel $postBody
1000
+ * @param array $optParams Optional parameters.
1001
+ *
1002
+ * @opt_param string pageToken
1003
+ * Token specifying which result page to return. Optional.
1004
+ * @opt_param string syncToken
1005
+ * Token obtained from the 'nextSyncToken' field returned as part of the result of a previous call
1006
+ * to this method. It makes the result of this call contain only entries that have changed since
1007
+ * the last call, including entries that have been removed in the meantime (they will have the
1008
+ * 'role' set to 'none'). Optional. The default is to return to all entries.
1009
+ * @opt_param int maxResults
1010
+ * Maximum number of entries returned on one result page. Optional.
1011
+ * @opt_param bool showDeleted
1012
+ * Whether to include deleted acls in the result. Deleted acls are represented by with 'role' equal
1013
+ * to 'none'. Deleted acls will always be included if 'syncToken' is provided. Optional. The
1014
+ * default is False.
1015
+ * @return GoogleGAL_Service_Calendar_Channel
1016
+ */
1017
+ public function watch($calendarId, GoogleGAL_Service_Calendar_Channel $postBody, $optParams = array())
1018
+ {
1019
+ $params = array('calendarId' => $calendarId, 'postBody' => $postBody);
1020
+ $params = array_merge($params, $optParams);
1021
+ return $this->call('watch', array($params), "GoogleGAL_Service_Calendar_Channel");
1022
+ }
1023
  }
1024
 
1025
  /**
1083
  *
1084
  * @param array $optParams Optional parameters.
1085
  *
1086
+ * @opt_param string syncToken
1087
+ * Token obtained from the 'nextSyncToken' field returned on the last result page of the previous
1088
+ * method's call. It makes the result of this call contain only entries that have changed since the
1089
+ * last call. Optional. The default is to return all entries.
1090
+ * @opt_param bool showDeleted
1091
+ * Whether to include deleted calendar list entries in the result. Optional. The default is False.
1092
+ * @opt_param string minAccessRole
1093
+ * The minimum access role for the user in the returned entires. Optional. The default is no
1094
+ * restriction.
1095
+ * @opt_param int maxResults
1096
+ * Maximum number of entries returned on one result page. Optional.
1097
  * @opt_param string pageToken
1098
  * Token specifying which result page to return. Optional.
1099
  * @opt_param bool showHidden
1100
  * Whether to show hidden entries. Optional. The default is False.
 
 
 
 
 
1101
  * @return GoogleGAL_Service_Calendar_CalendarList
1102
  */
1103
  public function listCalendarList($optParams = array())
1147
  $params = array_merge($params, $optParams);
1148
  return $this->call('update', array($params), "GoogleGAL_Service_Calendar_CalendarListEntry");
1149
  }
1150
+ /**
1151
+ * Watch for changes to CalendarList resources. (calendarList.watch)
1152
+ *
1153
+ * @param GoogleGAL_Channel $postBody
1154
+ * @param array $optParams Optional parameters.
1155
+ *
1156
+ * @opt_param string syncToken
1157
+ * Token obtained from the 'nextSyncToken' field returned on the last result page of the previous
1158
+ * method's call. It makes the result of this call contain only entries that have changed since the
1159
+ * last call. Optional. The default is to return all entries.
1160
+ * @opt_param bool showDeleted
1161
+ * Whether to include deleted calendar list entries in the result. Optional. The default is False.
1162
+ * @opt_param string minAccessRole
1163
+ * The minimum access role for the user in the returned entires. Optional. The default is no
1164
+ * restriction.
1165
+ * @opt_param int maxResults
1166
+ * Maximum number of entries returned on one result page. Optional.
1167
+ * @opt_param string pageToken
1168
+ * Token specifying which result page to return. Optional.
1169
+ * @opt_param bool showHidden
1170
+ * Whether to show hidden entries. Optional. The default is False.
1171
+ * @return GoogleGAL_Service_Calendar_Channel
1172
+ */
1173
+ public function watch(GoogleGAL_Service_Calendar_Channel $postBody, $optParams = array())
1174
+ {
1175
+ $params = array('postBody' => $postBody);
1176
+ $params = array_merge($params, $optParams);
1177
+ return $this->call('watch', array($params), "GoogleGAL_Service_Calendar_Channel");
1178
+ }
1179
  }
1180
 
1181
  /**
1475
  * order.
1476
  * @opt_param bool showHiddenInvitations
1477
  * Whether to include hidden invitations in the result. Optional. The default is False.
1478
+ * @opt_param string syncToken
1479
+ * Token obtained from the 'nextSyncToken' field returned on the last result page of the previous
1480
+ * method's call. It makes the result of this call contain only entries that have changed since the
1481
+ * last call. Optional. The default is to return all entries.
1482
  * @opt_param bool showDeleted
1483
  * Whether to include deleted events (with 'status' equals 'cancelled') in the result. Cancelled
1484
  * instances of recurring events (but not the underlying recurring event) will still be included if
1646
  * order.
1647
  * @opt_param bool showHiddenInvitations
1648
  * Whether to include hidden invitations in the result. Optional. The default is False.
1649
+ * @opt_param string syncToken
1650
+ * Token obtained from the 'nextSyncToken' field returned on the last result page of the previous
1651
+ * method's call. It makes the result of this call contain only entries that have changed since the
1652
+ * last call. Optional. The default is to return all entries.
1653
  * @opt_param bool showDeleted
1654
  * Whether to include deleted events (with 'status' equals 'cancelled') in the result. Cancelled
1655
  * instances of recurring events (but not the underlying recurring event) will still be included if
1761
  * Returns all user settings for the authenticated user. (settings.listSettings)
1762
  *
1763
  * @param array $optParams Optional parameters.
1764
+ *
1765
+ * @opt_param string pageToken
1766
+ * Token specifying which result page to return. Optional.
1767
+ * @opt_param int maxResults
1768
+ * Maximum number of entries returned on one result page. Optional.
1769
+ * @opt_param string syncToken
1770
+ * Token obtained from the 'nextSyncToken' field returned on the last result page of the previous
1771
+ * method's call. It makes the result of this call contain only entries that have changed since the
1772
+ * last call. Optional. The default is to return all entries.
1773
  * @return GoogleGAL_Service_Calendar_Settings
1774
  */
1775
  public function listSettings($optParams = array())
1778
  $params = array_merge($params, $optParams);
1779
  return $this->call('list', array($params), "GoogleGAL_Service_Calendar_Settings");
1780
  }
1781
+ /**
1782
+ * Watch for changes to Settings resources. (settings.watch)
1783
+ *
1784
+ * @param GoogleGAL_Channel $postBody
1785
+ * @param array $optParams Optional parameters.
1786
+ *
1787
+ * @opt_param string pageToken
1788
+ * Token specifying which result page to return. Optional.
1789
+ * @opt_param int maxResults
1790
+ * Maximum number of entries returned on one result page. Optional.
1791
+ * @opt_param string syncToken
1792
+ * Token obtained from the 'nextSyncToken' field returned on the last result page of the previous
1793
+ * method's call. It makes the result of this call contain only entries that have changed since the
1794
+ * last call. Optional. The default is to return all entries.
1795
+ * @return GoogleGAL_Service_Calendar_Channel
1796
+ */
1797
+ public function watch(GoogleGAL_Service_Calendar_Channel $postBody, $optParams = array())
1798
+ {
1799
+ $params = array('postBody' => $postBody);
1800
+ $params = array_merge($params, $optParams);
1801
+ return $this->call('watch', array($params), "GoogleGAL_Service_Calendar_Channel");
1802
+ }
1803
  }
1804
 
1805
 
1812
  protected $itemsDataType = 'array';
1813
  public $kind;
1814
  public $nextPageToken;
1815
+ public $nextSyncToken;
1816
 
1817
  public function setEtag($etag)
1818
  {
1853
  {
1854
  return $this->nextPageToken;
1855
  }
1856
+
1857
+ public function setNextSyncToken($nextSyncToken)
1858
+ {
1859
+ $this->nextSyncToken = $nextSyncToken;
1860
+ }
1861
+
1862
+ public function getNextSyncToken()
1863
+ {
1864
+ return $this->nextSyncToken;
1865
+ }
1866
  }
1867
 
1868
  class GoogleGAL_Service_Calendar_AclRule extends GoogleGAL_Model
2039
  protected $itemsDataType = 'array';
2040
  public $kind;
2041
  public $nextPageToken;
2042
+ public $nextSyncToken;
2043
 
2044
  public function setEtag($etag)
2045
  {
2080
  {
2081
  return $this->nextPageToken;
2082
  }
2083
+
2084
+ public function setNextSyncToken($nextSyncToken)
2085
+ {
2086
+ $this->nextSyncToken = $nextSyncToken;
2087
+ }
2088
+
2089
+ public function getNextSyncToken()
2090
+ {
2091
+ return $this->nextSyncToken;
2092
+ }
2093
  }
2094
 
2095
  class GoogleGAL_Service_Calendar_CalendarListEntry extends GoogleGAL_Collection
2099
  public $colorId;
2100
  protected $defaultRemindersType = 'GoogleGAL_Service_Calendar_EventReminder';
2101
  protected $defaultRemindersDataType = 'array';
2102
+ public $deleted;
2103
  public $description;
2104
  public $etag;
2105
  public $foregroundColor;
2155
  return $this->defaultReminders;
2156
  }
2157
 
2158
+ public function setDeleted($deleted)
2159
+ {
2160
+ $this->deleted = $deleted;
2161
+ }
2162
+
2163
+ public function getDeleted()
2164
+ {
2165
+ return $this->deleted;
2166
+ }
2167
+
2168
  public function setDescription($description)
2169
  {
2170
  $this->description = $description;
3419
  protected $itemsDataType = 'array';
3420
  public $kind;
3421
  public $nextPageToken;
3422
+ public $nextSyncToken;
3423
  public $summary;
3424
  public $timeZone;
3425
  public $updated;
3494
  return $this->nextPageToken;
3495
  }
3496
 
3497
+ public function setNextSyncToken($nextSyncToken)
3498
+ {
3499
+ $this->nextSyncToken = $nextSyncToken;
3500
+ }
3501
+
3502
+ public function getNextSyncToken()
3503
+ {
3504
+ return $this->nextSyncToken;
3505
+ }
3506
+
3507
  public function setSummary($summary)
3508
  {
3509
  $this->summary = $summary;
3791
  protected $itemsType = 'GoogleGAL_Service_Calendar_Setting';
3792
  protected $itemsDataType = 'array';
3793
  public $kind;
3794
+ public $nextPageToken;
3795
+ public $nextSyncToken;
3796
 
3797
  public function setEtag($etag)
3798
  {
3823
  {
3824
  return $this->kind;
3825
  }
3826
+
3827
+ public function setNextPageToken($nextPageToken)
3828
+ {
3829
+ $this->nextPageToken = $nextPageToken;
3830
+ }
3831
+
3832
+ public function getNextPageToken()
3833
+ {
3834
+ return $this->nextPageToken;
3835
+ }
3836
+
3837
+ public function setNextSyncToken($nextSyncToken)
3838
+ {
3839
+ $this->nextSyncToken = $nextSyncToken;
3840
+ }
3841
+
3842
+ public function getNextSyncToken()
3843
+ {
3844
+ return $this->nextSyncToken;
3845
+ }
3846
  }
3847
 
3848
  class GoogleGAL_Service_Calendar_TimePeriod extends GoogleGAL_Model
core/Google/Service/Compute.php CHANGED
@@ -5981,6 +5981,7 @@ class GoogleGAL_Service_Compute_Image extends GoogleGAL_Model
5981
  protected $deprecatedType = 'GoogleGAL_Service_Compute_DeprecationStatus';
5982
  protected $deprecatedDataType = '';
5983
  public $description;
 
5984
  public $id;
5985
  public $kind;
5986
  public $name;
@@ -6030,6 +6031,16 @@ class GoogleGAL_Service_Compute_Image extends GoogleGAL_Model
6030
  return $this->description;
6031
  }
6032
 
 
 
 
 
 
 
 
 
 
 
6033
  public function setId($id)
6034
  {
6035
  $this->id = $id;
@@ -7863,6 +7874,8 @@ class GoogleGAL_Service_Compute_Project extends GoogleGAL_Collection
7863
  protected $quotasType = 'GoogleGAL_Service_Compute_Quota';
7864
  protected $quotasDataType = 'array';
7865
  public $selfLink;
 
 
7866
 
7867
  public function setCommonInstanceMetadata(GoogleGAL_Service_Compute_Metadata $commonInstanceMetadata)
7868
  {
@@ -7943,6 +7956,16 @@ class GoogleGAL_Service_Compute_Project extends GoogleGAL_Collection
7943
  {
7944
  return $this->selfLink;
7945
  }
 
 
 
 
 
 
 
 
 
 
7946
  }
7947
 
7948
  class GoogleGAL_Service_Compute_Quota extends GoogleGAL_Model
@@ -9532,6 +9555,32 @@ class GoogleGAL_Service_Compute_TargetReference extends GoogleGAL_Model
9532
  }
9533
  }
9534
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
9535
  class GoogleGAL_Service_Compute_Zone extends GoogleGAL_Collection
9536
  {
9537
  public $creationTimestamp;
5981
  protected $deprecatedType = 'GoogleGAL_Service_Compute_DeprecationStatus';
5982
  protected $deprecatedDataType = '';
5983
  public $description;
5984
+ public $diskSizeGb;
5985
  public $id;
5986
  public $kind;
5987
  public $name;
6031
  return $this->description;
6032
  }
6033
 
6034
+ public function setDiskSizeGb($diskSizeGb)
6035
+ {
6036
+ $this->diskSizeGb = $diskSizeGb;
6037
+ }
6038
+
6039
+ public function getDiskSizeGb()
6040
+ {
6041
+ return $this->diskSizeGb;
6042
+ }
6043
+
6044
  public function setId($id)
6045
  {
6046
  $this->id = $id;
7874
  protected $quotasType = 'GoogleGAL_Service_Compute_Quota';
7875
  protected $quotasDataType = 'array';
7876
  public $selfLink;
7877
+ protected $usageExportLocationType = 'GoogleGAL_Service_Compute_UsageExportLocation';
7878
+ protected $usageExportLocationDataType = '';
7879
 
7880
  public function setCommonInstanceMetadata(GoogleGAL_Service_Compute_Metadata $commonInstanceMetadata)
7881
  {
7956
  {
7957
  return $this->selfLink;
7958
  }
7959
+
7960
+ public function setUsageExportLocation(GoogleGAL_Service_Compute_UsageExportLocation $usageExportLocation)
7961
+ {
7962
+ $this->usageExportLocation = $usageExportLocation;
7963
+ }
7964
+
7965
+ public function getUsageExportLocation()
7966
+ {
7967
+ return $this->usageExportLocation;
7968
+ }
7969
  }
7970
 
7971
  class GoogleGAL_Service_Compute_Quota extends GoogleGAL_Model
9555
  }
9556
  }
9557
 
9558
+ class GoogleGAL_Service_Compute_UsageExportLocation extends GoogleGAL_Model
9559
+ {
9560
+ public $bucketName;
9561
+ public $reportNamePrefix;
9562
+
9563
+ public function setBucketName($bucketName)
9564
+ {
9565
+ $this->bucketName = $bucketName;
9566
+ }
9567
+
9568
+ public function getBucketName()
9569
+ {
9570
+ return $this->bucketName;
9571
+ }
9572
+
9573
+ public function setReportNamePrefix($reportNamePrefix)
9574
+ {
9575
+ $this->reportNamePrefix = $reportNamePrefix;
9576
+ }
9577
+
9578
+ public function getReportNamePrefix()
9579
+ {
9580
+ return $this->reportNamePrefix;
9581
+ }
9582
+ }
9583
+
9584
  class GoogleGAL_Service_Compute_Zone extends GoogleGAL_Collection
9585
  {
9586
  public $creationTimestamp;
core/Google/Service/Doubleclicksearch.php CHANGED
@@ -36,6 +36,7 @@ class GoogleGAL_Service_Doubleclicksearch extends GoogleGAL_Service
36
 
37
  public $conversion;
38
  public $reports;
 
39
 
40
 
41
  /**
@@ -211,6 +212,31 @@ class GoogleGAL_Service_Doubleclicksearch extends GoogleGAL_Service
211
  )
212
  )
213
  );
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
214
  }
215
  }
216
 
@@ -401,6 +427,36 @@ class GoogleGAL_Service_Doubleclicksearch_Reports_Resource extends GoogleGAL_Ser
401
  }
402
  }
403
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
404
 
405
 
406
 
@@ -1422,6 +1478,70 @@ class GoogleGAL_Service_Doubleclicksearch_ReportRequestTimeRange extends GoogleG
1422
  }
1423
  }
1424
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1425
  class GoogleGAL_Service_Doubleclicksearch_UpdateAvailabilityRequest extends GoogleGAL_Collection
1426
  {
1427
  protected $availabilitiesType = 'GoogleGAL_Service_Doubleclicksearch_Availability';
36
 
37
  public $conversion;
38
  public $reports;
39
+ public $savedColumns;
40
 
41
 
42
  /**
212
  )
213
  )
214
  );
215
+ $this->savedColumns = new GoogleGAL_Service_Doubleclicksearch_SavedColumns_Resource(
216
+ $this,
217
+ $this->serviceName,
218
+ 'savedColumns',
219
+ array(
220
+ 'methods' => array(
221
+ 'list' => array(
222
+ 'path' => 'agency/{agencyId}/advertiser/{advertiserId}/savedcolumns',
223
+ 'httpMethod' => 'GET',
224
+ 'parameters' => array(
225
+ 'agencyId' => array(
226
+ 'location' => 'path',
227
+ 'type' => 'string',
228
+ 'required' => true,
229
+ ),
230
+ 'advertiserId' => array(
231
+ 'location' => 'path',
232
+ 'type' => 'string',
233
+ 'required' => true,
234
+ ),
235
+ ),
236
+ ),
237
+ )
238
+ )
239
+ );
240
  }
241
  }
242
 
427
  }
428
  }
429
 
430
+ /**
431
+ * The "savedColumns" collection of methods.
432
+ * Typical usage is:
433
+ * <code>
434
+ * $doubleclicksearchService = new GoogleGAL_Service_Doubleclicksearch(...);
435
+ * $savedColumns = $doubleclicksearchService->savedColumns;
436
+ * </code>
437
+ */
438
+ class GoogleGAL_Service_Doubleclicksearch_SavedColumns_Resource extends GoogleGAL_Service_Resource
439
+ {
440
+
441
+ /**
442
+ * Retrieve the list of saved columns for a specified advertiser.
443
+ * (savedColumns.listSavedColumns)
444
+ *
445
+ * @param string $agencyId
446
+ * DS ID of the agency.
447
+ * @param string $advertiserId
448
+ * DS ID of the advertiser.
449
+ * @param array $optParams Optional parameters.
450
+ * @return GoogleGAL_Service_Doubleclicksearch_SavedColumnList
451
+ */
452
+ public function listSavedColumns($agencyId, $advertiserId, $optParams = array())
453
+ {
454
+ $params = array('agencyId' => $agencyId, 'advertiserId' => $advertiserId);
455
+ $params = array_merge($params, $optParams);
456
+ return $this->call('list', array($params), "GoogleGAL_Service_Doubleclicksearch_SavedColumnList");
457
+ }
458
+ }
459
+
460
 
461
 
462
 
1478
  }
1479
  }
1480
 
1481
+ class GoogleGAL_Service_Doubleclicksearch_SavedColumn extends GoogleGAL_Model
1482
+ {
1483
+ public $kind;
1484
+ public $savedColumnName;
1485
+ public $type;
1486
+
1487
+ public function setKind($kind)
1488
+ {
1489
+ $this->kind = $kind;
1490
+ }
1491
+
1492
+ public function getKind()
1493
+ {
1494
+ return $this->kind;
1495
+ }
1496
+
1497
+ public function setSavedColumnName($savedColumnName)
1498
+ {
1499
+ $this->savedColumnName = $savedColumnName;
1500
+ }
1501
+
1502
+ public function getSavedColumnName()
1503
+ {
1504
+ return $this->savedColumnName;
1505
+ }
1506
+
1507
+ public function setType($type)
1508
+ {
1509
+ $this->type = $type;
1510
+ }
1511
+
1512
+ public function getType()
1513
+ {
1514
+ return $this->type;
1515
+ }
1516
+ }
1517
+
1518
+ class GoogleGAL_Service_Doubleclicksearch_SavedColumnList extends GoogleGAL_Collection
1519
+ {
1520
+ protected $itemsType = 'GoogleGAL_Service_Doubleclicksearch_SavedColumn';
1521
+ protected $itemsDataType = 'array';
1522
+ public $kind;
1523
+
1524
+ public function setItems($items)
1525
+ {
1526
+ $this->items = $items;
1527
+ }
1528
+
1529
+ public function getItems()
1530
+ {
1531
+ return $this->items;
1532
+ }
1533
+
1534
+ public function setKind($kind)
1535
+ {
1536
+ $this->kind = $kind;
1537
+ }
1538
+
1539
+ public function getKind()
1540
+ {
1541
+ return $this->kind;
1542
+ }
1543
+ }
1544
+
1545
  class GoogleGAL_Service_Doubleclicksearch_UpdateAvailabilityRequest extends GoogleGAL_Collection
1546
  {
1547
  protected $availabilitiesType = 'GoogleGAL_Service_Doubleclicksearch_Availability';
core/Google/Service/Drive.php CHANGED
@@ -119,7 +119,20 @@ class GoogleGAL_Service_Drive extends GoogleGAL_Service
119
  ),'list' => array(
120
  'path' => 'apps',
121
  'httpMethod' => 'GET',
122
- 'parameters' => array(),
 
 
 
 
 
 
 
 
 
 
 
 
 
123
  ),
124
  )
125
  )
@@ -444,6 +457,10 @@ class GoogleGAL_Service_Drive extends GoogleGAL_Service
444
  'required' => true,
445
  ),
446
  ),
 
 
 
 
447
  ),'get' => array(
448
  'path' => 'files/{fileId}',
449
  'httpMethod' => 'GET',
@@ -529,18 +546,26 @@ class GoogleGAL_Service_Drive extends GoogleGAL_Service
529
  'type' => 'string',
530
  'required' => true,
531
  ),
532
- 'convert' => array(
533
  'location' => 'query',
534
- 'type' => 'boolean',
535
  ),
536
  'updateViewedDate' => array(
537
  'location' => 'query',
538
  'type' => 'boolean',
539
  ),
 
 
 
 
540
  'setModifiedDate' => array(
541
  'location' => 'query',
542
  'type' => 'boolean',
543
  ),
 
 
 
 
544
  'useContentAsIndexableText' => array(
545
  'location' => 'query',
546
  'type' => 'boolean',
@@ -609,18 +634,26 @@ class GoogleGAL_Service_Drive extends GoogleGAL_Service
609
  'type' => 'string',
610
  'required' => true,
611
  ),
612
- 'convert' => array(
613
  'location' => 'query',
614
- 'type' => 'boolean',
615
  ),
616
  'updateViewedDate' => array(
617
  'location' => 'query',
618
  'type' => 'boolean',
619
  ),
 
 
 
 
620
  'setModifiedDate' => array(
621
  'location' => 'query',
622
  'type' => 'boolean',
623
  ),
 
 
 
 
624
  'useContentAsIndexableText' => array(
625
  'location' => 'query',
626
  'type' => 'boolean',
@@ -969,6 +1002,10 @@ class GoogleGAL_Service_Drive extends GoogleGAL_Service
969
  'type' => 'string',
970
  'required' => true,
971
  ),
 
 
 
 
972
  ),
973
  ),'update' => array(
974
  'path' => 'files/{fileId}/realtime',
@@ -1226,9 +1263,9 @@ class GoogleGAL_Service_Drive_About_Resource extends GoogleGAL_Service_Resource
1226
  * @param array $optParams Optional parameters.
1227
  *
1228
  * @opt_param bool includeSubscribed
1229
- * When calculating the number of remaining change IDs, whether to include shared files and public
1230
- * files the user has opened. When set to false, this counts only change IDs for owned files and
1231
- * any shared or public files that the user has explictly added to a folder in Drive.
1232
  * @opt_param string maxChangeIdCount
1233
  * Maximum number of remaining change IDs to count
1234
  * @opt_param string startChangeId
@@ -1272,6 +1309,18 @@ class GoogleGAL_Service_Drive_Apps_Resource extends GoogleGAL_Service_Resource
1272
  * Lists a user's installed apps. (apps.listApps)
1273
  *
1274
  * @param array $optParams Optional parameters.
 
 
 
 
 
 
 
 
 
 
 
 
1275
  * @return GoogleGAL_Service_Drive_AppList
1276
  */
1277
  public function listApps($optParams = array())
@@ -1313,9 +1362,9 @@ class GoogleGAL_Service_Drive_Changes_Resource extends GoogleGAL_Service_Resourc
1313
  * @param array $optParams Optional parameters.
1314
  *
1315
  * @opt_param bool includeSubscribed
1316
- * Whether to include shared files and public files the user has opened. When set to false, the
1317
- * list will include owned files plus any shared or public files the user has explictly added to a
1318
- * folder in Drive.
1319
  * @opt_param string startChangeId
1320
  * Change ID to start listing changes from.
1321
  * @opt_param bool includeDeleted
@@ -1339,9 +1388,9 @@ class GoogleGAL_Service_Drive_Changes_Resource extends GoogleGAL_Service_Resourc
1339
  * @param array $optParams Optional parameters.
1340
  *
1341
  * @opt_param bool includeSubscribed
1342
- * Whether to include shared files and public files the user has opened. When set to false, the
1343
- * list will include owned files plus any shared or public files the user has explictly added to a
1344
- * folder in Drive.
1345
  * @opt_param string startChangeId
1346
  * Change ID to start listing changes from.
1347
  * @opt_param bool includeDeleted
@@ -1644,6 +1693,17 @@ class GoogleGAL_Service_Drive_Files_Resource extends GoogleGAL_Service_Resource
1644
  $params = array_merge($params, $optParams);
1645
  return $this->call('delete', array($params));
1646
  }
 
 
 
 
 
 
 
 
 
 
 
1647
  /**
1648
  * Gets a file's metadata by ID. (files.get)
1649
  *
@@ -1723,12 +1783,16 @@ class GoogleGAL_Service_Drive_Files_Resource extends GoogleGAL_Service_Resource
1723
  * @param GoogleGAL_DriveFile $postBody
1724
  * @param array $optParams Optional parameters.
1725
  *
1726
- * @opt_param bool convert
1727
- * Whether to convert this file to the corresponding Google Docs format.
1728
  * @opt_param bool updateViewedDate
1729
  * Whether to update the view date after successfully updating the file.
 
 
1730
  * @opt_param bool setModifiedDate
1731
  * Whether to set the modified date with the supplied modified date.
 
 
1732
  * @opt_param bool useContentAsIndexableText
1733
  * Whether to use the content as indexable text.
1734
  * @opt_param string ocrLanguage
@@ -1803,12 +1867,16 @@ class GoogleGAL_Service_Drive_Files_Resource extends GoogleGAL_Service_Resource
1803
  * @param GoogleGAL_DriveFile $postBody
1804
  * @param array $optParams Optional parameters.
1805
  *
1806
- * @opt_param bool convert
1807
- * Whether to convert this file to the corresponding Google Docs format.
1808
  * @opt_param bool updateViewedDate
1809
  * Whether to update the view date after successfully updating the file.
 
 
1810
  * @opt_param bool setModifiedDate
1811
  * Whether to set the modified date with the supplied modified date.
 
 
1812
  * @opt_param bool useContentAsIndexableText
1813
  * Whether to use the content as indexable text.
1814
  * @opt_param string ocrLanguage
@@ -2198,6 +2266,11 @@ class GoogleGAL_Service_Drive_Realtime_Resource extends GoogleGAL_Service_Resour
2198
  * @param string $fileId
2199
  * The ID of the file that the Realtime API data model is associated with.
2200
  * @param array $optParams Optional parameters.
 
 
 
 
 
2201
  */
2202
  public function get($fileId, $optParams = array())
2203
  {
@@ -2467,11 +2540,14 @@ class GoogleGAL_Service_Drive_About extends GoogleGAL_Collection
2467
  protected $importFormatsDataType = 'array';
2468
  public $isCurrentAppInstalled;
2469
  public $kind;
 
2470
  public $largestChangeId;
2471
  protected $maxUploadSizesType = 'GoogleGAL_Service_Drive_AboutMaxUploadSizes';
2472
  protected $maxUploadSizesDataType = 'array';
2473
  public $name;
2474
  public $permissionId;
 
 
2475
  public $quotaBytesTotal;
2476
  public $quotaBytesUsed;
2477
  public $quotaBytesUsedAggregate;
@@ -2562,6 +2638,16 @@ class GoogleGAL_Service_Drive_About extends GoogleGAL_Collection
2562
  return $this->kind;
2563
  }
2564
 
 
 
 
 
 
 
 
 
 
 
2565
  public function setLargestChangeId($largestChangeId)
2566
  {
2567
  $this->largestChangeId = $largestChangeId;
@@ -2602,6 +2688,16 @@ class GoogleGAL_Service_Drive_About extends GoogleGAL_Collection
2602
  return $this->permissionId;
2603
  }
2604
 
 
 
 
 
 
 
 
 
 
 
2605
  public function setQuotaBytesTotal($quotaBytesTotal)
2606
  {
2607
  $this->quotaBytesTotal = $quotaBytesTotal;
@@ -2840,11 +2936,38 @@ class GoogleGAL_Service_Drive_AboutMaxUploadSizes extends GoogleGAL_Model
2840
  }
2841
  }
2842
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
2843
  class GoogleGAL_Service_Drive_App extends GoogleGAL_Collection
2844
  {
2845
  public $authorized;
2846
  public $createInFolderTemplate;
2847
  public $createUrl;
 
2848
  protected $iconsType = 'GoogleGAL_Service_Drive_AppIcons';
2849
  protected $iconsDataType = 'array';
2850
  public $id;
@@ -2864,6 +2987,7 @@ class GoogleGAL_Service_Drive_App extends GoogleGAL_Collection
2864
  public $supportsCreate;
2865
  public $supportsImport;
2866
  public $supportsMultiOpen;
 
2867
  public $useByDefault;
2868
 
2869
  public function setAuthorized($authorized)
@@ -2896,6 +3020,16 @@ class GoogleGAL_Service_Drive_App extends GoogleGAL_Collection
2896
  return $this->createUrl;
2897
  }
2898
 
 
 
 
 
 
 
 
 
 
 
2899
  public function setIcons($icons)
2900
  {
2901
  $this->icons = $icons;
@@ -3076,6 +3210,16 @@ class GoogleGAL_Service_Drive_App extends GoogleGAL_Collection
3076
  return $this->supportsMultiOpen;
3077
  }
3078
 
 
 
 
 
 
 
 
 
 
 
3079
  public function setUseByDefault($useByDefault)
3080
  {
3081
  $this->useByDefault = $useByDefault;
@@ -3126,12 +3270,23 @@ class GoogleGAL_Service_Drive_AppIcons extends GoogleGAL_Model
3126
 
3127
  class GoogleGAL_Service_Drive_AppList extends GoogleGAL_Collection
3128
  {
 
3129
  public $etag;
3130
  protected $itemsType = 'GoogleGAL_Service_Drive_App';
3131
  protected $itemsDataType = 'array';
3132
  public $kind;
3133
  public $selfLink;
3134
 
 
 
 
 
 
 
 
 
 
 
3135
  public function setEtag($etag)
3136
  {
3137
  $this->etag = $etag;
@@ -4022,6 +4177,7 @@ class GoogleGAL_Service_Drive_DriveFile extends GoogleGAL_Collection
4022
  protected $lastModifyingUserDataType = '';
4023
  public $lastModifyingUserName;
4024
  public $lastViewedByMeDate;
 
4025
  public $md5Checksum;
4026
  public $mimeType;
4027
  public $modifiedByMeDate;
@@ -4033,18 +4189,23 @@ class GoogleGAL_Service_Drive_DriveFile extends GoogleGAL_Collection
4033
  protected $ownersDataType = 'array';
4034
  protected $parentsType = 'GoogleGAL_Service_Drive_ParentReference';
4035
  protected $parentsDataType = 'array';
 
 
4036
  protected $propertiesType = 'GoogleGAL_Service_Drive_Property';
4037
  protected $propertiesDataType = 'array';
4038
  public $quotaBytesUsed;
4039
  public $selfLink;
4040
  public $shared;
4041
  public $sharedWithMeDate;
 
 
4042
  protected $thumbnailType = 'GoogleGAL_Service_Drive_DriveFileThumbnail';
4043
  protected $thumbnailDataType = '';
4044
  public $thumbnailLink;
4045
  public $title;
4046
  protected $userPermissionType = 'GoogleGAL_Service_Drive_Permission';
4047
  protected $userPermissionDataType = '';
 
4048
  public $webContentLink;
4049
  public $webViewLink;
4050
  public $writersCanShare;
@@ -4289,6 +4450,16 @@ class GoogleGAL_Service_Drive_DriveFile extends GoogleGAL_Collection
4289
  return $this->lastViewedByMeDate;
4290
  }
4291
 
 
 
 
 
 
 
 
 
 
 
4292
  public function setMd5Checksum($md5Checksum)
4293
  {
4294
  $this->md5Checksum = $md5Checksum;
@@ -4379,6 +4550,16 @@ class GoogleGAL_Service_Drive_DriveFile extends GoogleGAL_Collection
4379
  return $this->parents;
4380
  }
4381
 
 
 
 
 
 
 
 
 
 
 
4382
  public function setProperties($properties)
4383
  {
4384
  $this->properties = $properties;
@@ -4429,6 +4610,16 @@ class GoogleGAL_Service_Drive_DriveFile extends GoogleGAL_Collection
4429
  return $this->sharedWithMeDate;
4430
  }
4431
 
 
 
 
 
 
 
 
 
 
 
4432
  public function setThumbnail(GoogleGAL_Service_Drive_DriveFileThumbnail $thumbnail)
4433
  {
4434
  $this->thumbnail = $thumbnail;
@@ -4469,6 +4660,16 @@ class GoogleGAL_Service_Drive_DriveFile extends GoogleGAL_Collection
4469
  return $this->userPermission;
4470
  }
4471
 
 
 
 
 
 
 
 
 
 
 
4472
  public function setWebContentLink($webContentLink)
4473
  {
4474
  $this->webContentLink = $webContentLink;
@@ -5659,6 +5860,7 @@ class GoogleGAL_Service_Drive_RevisionList extends GoogleGAL_Collection
5659
  class GoogleGAL_Service_Drive_User extends GoogleGAL_Model
5660
  {
5661
  public $displayName;
 
5662
  public $isAuthenticatedUser;
5663
  public $kind;
5664
  public $permissionId;
@@ -5675,6 +5877,16 @@ class GoogleGAL_Service_Drive_User extends GoogleGAL_Model
5675
  return $this->displayName;
5676
  }
5677
 
 
 
 
 
 
 
 
 
 
 
5678
  public function setIsAuthenticatedUser($isAuthenticatedUser)
5679
  {
5680
  $this->isAuthenticatedUser = $isAuthenticatedUser;
119
  ),'list' => array(
120
  'path' => 'apps',
121
  'httpMethod' => 'GET',
122
+ 'parameters' => array(
123
+ 'languageCode' => array(
124
+ 'location' => 'query',
125
+ 'type' => 'string',
126
+ ),
127
+ 'appFilterExtensions' => array(
128
+ 'location' => 'query',
129
+ 'type' => 'string',
130
+ ),
131
+ 'appFilterMimeTypes' => array(
132
+ 'location' => 'query',
133
+ 'type' => 'string',
134
+ ),
135
+ ),
136
  ),
137
  )
138
  )
457
  'required' => true,
458
  ),
459
  ),
460
+ ),'emptyTrash' => array(
461
+ 'path' => 'files/trash',
462
+ 'httpMethod' => 'DELETE',
463
+ 'parameters' => array(),
464
  ),'get' => array(
465
  'path' => 'files/{fileId}',
466
  'httpMethod' => 'GET',
546
  'type' => 'string',
547
  'required' => true,
548
  ),
549
+ 'addParents' => array(
550
  'location' => 'query',
551
+ 'type' => 'string',
552
  ),
553
  'updateViewedDate' => array(
554
  'location' => 'query',
555
  'type' => 'boolean',
556
  ),
557
+ 'removeParents' => array(
558
+ 'location' => 'query',
559
+ 'type' => 'string',
560
+ ),
561
  'setModifiedDate' => array(
562
  'location' => 'query',
563
  'type' => 'boolean',
564
  ),
565
+ 'convert' => array(
566
+ 'location' => 'query',
567
+ 'type' => 'boolean',
568
+ ),
569
  'useContentAsIndexableText' => array(
570
  'location' => 'query',
571
  'type' => 'boolean',
634
  'type' => 'string',
635
  'required' => true,
636
  ),
637
+ 'addParents' => array(
638
  'location' => 'query',
639
+ 'type' => 'string',
640
  ),
641
  'updateViewedDate' => array(
642
  'location' => 'query',
643
  'type' => 'boolean',
644
  ),
645
+ 'removeParents' => array(
646
+ 'location' => 'query',
647
+ 'type' => 'string',
648
+ ),
649
  'setModifiedDate' => array(
650
  'location' => 'query',
651
  'type' => 'boolean',
652
  ),
653
+ 'convert' => array(
654
+ 'location' => 'query',
655
+ 'type' => 'boolean',
656
+ ),
657
  'useContentAsIndexableText' => array(
658
  'location' => 'query',
659
  'type' => 'boolean',
1002
  'type' => 'string',
1003
  'required' => true,
1004
  ),
1005
+ 'revision' => array(
1006
+ 'location' => 'query',
1007
+ 'type' => 'integer',
1008
+ ),
1009
  ),
1010
  ),'update' => array(
1011
  'path' => 'files/{fileId}/realtime',
1263
  * @param array $optParams Optional parameters.
1264
  *
1265
  * @opt_param bool includeSubscribed
1266
+ * When calculating the number of remaining change IDs, whether to include public files the user
1267
+ * has opened and shared files. When set to false, this counts only change IDs for owned files and
1268
+ * any shared or public files that the user has explicitly added to a folder they own.
1269
  * @opt_param string maxChangeIdCount
1270
  * Maximum number of remaining change IDs to count
1271
  * @opt_param string startChangeId
1309
  * Lists a user's installed apps. (apps.listApps)
1310
  *
1311
  * @param array $optParams Optional parameters.
1312
+ *
1313
+ * @opt_param string languageCode
1314
+ * A language or locale code, as defined by BCP 47, with some extensions from Unicode's LDML format
1315
+ * (http://www.unicode.org/reports/tr35/).
1316
+ * @opt_param string appFilterExtensions
1317
+ * A comma-separated list of file extensions for open with filtering. All apps within the given app
1318
+ * query scope which can open any of the given file extensions will be included in the response. If
1319
+ * appFilterMimeTypes are provided as well, the result is a union of the two resulting app lists.
1320
+ * @opt_param string appFilterMimeTypes
1321
+ * A comma-separated list of MIME types for open with filtering. All apps within the given app
1322
+ * query scope which can open any of the given MIME types will be included in the response. If
1323
+ * appFilterExtensions are provided as well, the result is a union of the two resulting app lists.
1324
  * @return GoogleGAL_Service_Drive_AppList
1325
  */
1326
  public function listApps($optParams = array())
1362
  * @param array $optParams Optional parameters.
1363
  *
1364
  * @opt_param bool includeSubscribed
1365
+ * Whether to include public files the user has opened and shared files. When set to false, the
1366
+ * list only includes owned files plus any shared or public files the user has explicitly added to
1367
+ * a folder they own.
1368
  * @opt_param string startChangeId
1369
  * Change ID to start listing changes from.
1370
  * @opt_param bool includeDeleted
1388
  * @param array $optParams Optional parameters.
1389
  *
1390
  * @opt_param bool includeSubscribed
1391
+ * Whether to include public files the user has opened and shared files. When set to false, the
1392
+ * list only includes owned files plus any shared or public files the user has explicitly added to
1393
+ * a folder they own.
1394
  * @opt_param string startChangeId
1395
  * Change ID to start listing changes from.
1396
  * @opt_param bool includeDeleted
1693
  $params = array_merge($params, $optParams);
1694
  return $this->call('delete', array($params));
1695
  }
1696
+ /**
1697
+ * Permanently deletes all of the user's trashed files. (files.emptyTrash)
1698
+ *
1699
+ * @param array $optParams Optional parameters.
1700
+ */
1701
+ public function emptyTrash($optParams = array())
1702
+ {
1703
+ $params = array();
1704
+ $params = array_merge($params, $optParams);
1705
+ return $this->call('emptyTrash', array($params));
1706
+ }
1707
  /**
1708
  * Gets a file's metadata by ID. (files.get)
1709
  *
1783
  * @param GoogleGAL_DriveFile $postBody
1784
  * @param array $optParams Optional parameters.
1785
  *
1786
+ * @opt_param string addParents
1787
+ * Comma-separated list of parent IDs to add.
1788
  * @opt_param bool updateViewedDate
1789
  * Whether to update the view date after successfully updating the file.
1790
+ * @opt_param string removeParents
1791
+ * Comma-separated list of parent IDs to remove.
1792
  * @opt_param bool setModifiedDate
1793
  * Whether to set the modified date with the supplied modified date.
1794
+ * @opt_param bool convert
1795
+ * Whether to convert this file to the corresponding Google Docs format.
1796
  * @opt_param bool useContentAsIndexableText
1797
  * Whether to use the content as indexable text.
1798
  * @opt_param string ocrLanguage
1867
  * @param GoogleGAL_DriveFile $postBody
1868
  * @param array $optParams Optional parameters.
1869
  *
1870
+ * @opt_param string addParents
1871
+ * Comma-separated list of parent IDs to add.
1872
  * @opt_param bool updateViewedDate
1873
  * Whether to update the view date after successfully updating the file.
1874
+ * @opt_param string removeParents
1875
+ * Comma-separated list of parent IDs to remove.
1876
  * @opt_param bool setModifiedDate
1877
  * Whether to set the modified date with the supplied modified date.
1878
+ * @opt_param bool convert
1879
+ * Whether to convert this file to the corresponding Google Docs format.
1880
  * @opt_param bool useContentAsIndexableText
1881
  * Whether to use the content as indexable text.
1882
  * @opt_param string ocrLanguage
2266
  * @param string $fileId
2267
  * The ID of the file that the Realtime API data model is associated with.
2268
  * @param array $optParams Optional parameters.
2269
+ *
2270
+ * @opt_param int revision
2271
+ * The revision of the Realtime API data model to export. Revisions start at 1 (the initial empty
2272
+ * data model) and are incremented with each change. If this parameter is excluded, the most recent
2273
+ * data model will be returned.
2274
  */
2275
  public function get($fileId, $optParams = array())
2276
  {
2540
  protected $importFormatsDataType = 'array';
2541
  public $isCurrentAppInstalled;
2542
  public $kind;
2543
+ public $languageCode;
2544
  public $largestChangeId;
2545
  protected $maxUploadSizesType = 'GoogleGAL_Service_Drive_AboutMaxUploadSizes';
2546
  protected $maxUploadSizesDataType = 'array';
2547
  public $name;
2548
  public $permissionId;
2549
+ protected $quotaBytesByServiceType = 'GoogleGAL_Service_Drive_AboutQuotaBytesByService';
2550
+ protected $quotaBytesByServiceDataType = 'array';
2551
  public $quotaBytesTotal;
2552
  public $quotaBytesUsed;
2553
  public $quotaBytesUsedAggregate;
2638
  return $this->kind;
2639
  }
2640
 
2641
+ public function setLanguageCode($languageCode)
2642
+ {
2643
+ $this->languageCode = $languageCode;
2644
+ }
2645
+
2646
+ public function getLanguageCode()
2647
+ {
2648
+ return $this->languageCode;
2649
+ }
2650
+
2651
  public function setLargestChangeId($largestChangeId)
2652
  {
2653
  $this->largestChangeId = $largestChangeId;
2688
  return $this->permissionId;
2689
  }
2690
 
2691
+ public function setQuotaBytesByService($quotaBytesByService)
2692
+ {
2693
+ $this->quotaBytesByService = $quotaBytesByService;
2694
+ }
2695
+
2696
+ public function getQuotaBytesByService()
2697
+ {
2698
+ return $this->quotaBytesByService;
2699
+ }
2700
+
2701
  public function setQuotaBytesTotal($quotaBytesTotal)
2702
  {
2703
  $this->quotaBytesTotal = $quotaBytesTotal;
2936
  }
2937
  }
2938
 
2939
+ class GoogleGAL_Service_Drive_AboutQuotaBytesByService extends GoogleGAL_Model
2940
+ {
2941
+ public $bytesUsed;
2942
+ public $serviceName;
2943
+
2944
+ public function setBytesUsed($bytesUsed)
2945
+ {
2946
+ $this->bytesUsed = $bytesUsed;
2947
+ }
2948
+
2949
+ public function getBytesUsed()
2950
+ {
2951
+ return $this->bytesUsed;
2952
+ }
2953
+
2954
+ public function setServiceName($serviceName)
2955
+ {
2956
+ $this->serviceName = $serviceName;
2957
+ }
2958
+
2959
+ public function getServiceName()
2960
+ {
2961
+ return $this->serviceName;
2962
+ }
2963
+ }
2964
+
2965
  class GoogleGAL_Service_Drive_App extends GoogleGAL_Collection
2966
  {
2967
  public $authorized;
2968
  public $createInFolderTemplate;
2969
  public $createUrl;
2970
+ public $hasDriveWideScope;
2971
  protected $iconsType = 'GoogleGAL_Service_Drive_AppIcons';
2972
  protected $iconsDataType = 'array';
2973
  public $id;
2987
  public $supportsCreate;
2988
  public $supportsImport;
2989
  public $supportsMultiOpen;
2990
+ public $supportsOfflineCreate;
2991
  public $useByDefault;
2992
 
2993
  public function setAuthorized($authorized)
3020
  return $this->createUrl;
3021
  }
3022
 
3023
+ public function setHasDriveWideScope($hasDriveWideScope)
3024
+ {
3025
+ $this->hasDriveWideScope = $hasDriveWideScope;
3026
+ }
3027
+
3028
+ public function getHasDriveWideScope()
3029
+ {
3030
+ return $this->hasDriveWideScope;
3031
+ }
3032
+
3033
  public function setIcons($icons)
3034
  {
3035
  $this->icons = $icons;
3210
  return $this->supportsMultiOpen;
3211
  }
3212
 
3213
+ public function setSupportsOfflineCreate($supportsOfflineCreate)
3214
+ {
3215
+ $this->supportsOfflineCreate = $supportsOfflineCreate;
3216
+ }
3217
+
3218
+ public function getSupportsOfflineCreate()
3219
+ {
3220
+ return $this->supportsOfflineCreate;
3221
+ }
3222
+
3223
  public function setUseByDefault($useByDefault)
3224
  {
3225
  $this->useByDefault = $useByDefault;
3270
 
3271
  class GoogleGAL_Service_Drive_AppList extends GoogleGAL_Collection
3272
  {
3273
+ public $defaultAppIds;
3274
  public $etag;
3275
  protected $itemsType = 'GoogleGAL_Service_Drive_App';
3276
  protected $itemsDataType = 'array';
3277
  public $kind;
3278
  public $selfLink;
3279
 
3280
+ public function setDefaultAppIds($defaultAppIds)
3281
+ {
3282
+ $this->defaultAppIds = $defaultAppIds;
3283
+ }
3284
+
3285
+ public function getDefaultAppIds()
3286
+ {
3287
+ return $this->defaultAppIds;
3288
+ }
3289
+
3290
  public function setEtag($etag)
3291
  {
3292
  $this->etag = $etag;
4177
  protected $lastModifyingUserDataType = '';
4178
  public $lastModifyingUserName;
4179
  public $lastViewedByMeDate;
4180
+ public $markedViewedByMeDate;
4181
  public $md5Checksum;
4182
  public $mimeType;
4183
  public $modifiedByMeDate;
4189
  protected $ownersDataType = 'array';
4190
  protected $parentsType = 'GoogleGAL_Service_Drive_ParentReference';
4191
  protected $parentsDataType = 'array';
4192
+ protected $permissionsType = 'GoogleGAL_Service_Drive_Permission';
4193
+ protected $permissionsDataType = 'array';
4194
  protected $propertiesType = 'GoogleGAL_Service_Drive_Property';
4195
  protected $propertiesDataType = 'array';
4196
  public $quotaBytesUsed;
4197
  public $selfLink;
4198
  public $shared;
4199
  public $sharedWithMeDate;
4200
+ protected $sharingUserType = 'GoogleGAL_Service_Drive_User';
4201
+ protected $sharingUserDataType = '';
4202
  protected $thumbnailType = 'GoogleGAL_Service_Drive_DriveFileThumbnail';
4203
  protected $thumbnailDataType = '';
4204
  public $thumbnailLink;
4205
  public $title;
4206
  protected $userPermissionType = 'GoogleGAL_Service_Drive_Permission';
4207
  protected $userPermissionDataType = '';
4208
+ public $version;
4209
  public $webContentLink;
4210
  public $webViewLink;
4211
  public $writersCanShare;
4450
  return $this->lastViewedByMeDate;
4451
  }
4452
 
4453
+ public function setMarkedViewedByMeDate($markedViewedByMeDate)
4454
+ {
4455
+ $this->markedViewedByMeDate = $markedViewedByMeDate;
4456
+ }
4457
+
4458
+ public function getMarkedViewedByMeDate()
4459
+ {
4460
+ return $this->markedViewedByMeDate;
4461
+ }
4462
+
4463
  public function setMd5Checksum($md5Checksum)
4464
  {
4465
  $this->md5Checksum = $md5Checksum;
4550
  return $this->parents;
4551
  }
4552
 
4553
+ public function setPermissions($permissions)
4554
+ {
4555
+ $this->permissions = $permissions;
4556
+ }
4557
+
4558
+ public function getPermissions()
4559
+ {
4560
+ return $this->permissions;
4561
+ }
4562
+
4563
  public function setProperties($properties)
4564
  {
4565
  $this->properties = $properties;
4610
  return $this->sharedWithMeDate;
4611
  }
4612
 
4613
+ public function setSharingUser(GoogleGAL_Service_Drive_User $sharingUser)
4614
+ {
4615
+ $this->sharingUser = $sharingUser;
4616
+ }
4617
+
4618
+ public function getSharingUser()
4619
+ {
4620
+ return $this->sharingUser;
4621
+ }
4622
+
4623
  public function setThumbnail(GoogleGAL_Service_Drive_DriveFileThumbnail $thumbnail)
4624
  {
4625
  $this->thumbnail = $thumbnail;
4660
  return $this->userPermission;
4661
  }
4662
 
4663
+ public function setVersion($version)
4664
+ {
4665
+ $this->version = $version;
4666
+ }
4667
+
4668
+ public function getVersion()
4669
+ {
4670
+ return $this->version;
4671
+ }
4672
+
4673
  public function setWebContentLink($webContentLink)
4674
  {
4675
  $this->webContentLink = $webContentLink;
5860
  class GoogleGAL_Service_Drive_User extends GoogleGAL_Model
5861
  {
5862
  public $displayName;
5863
+ public $emailAddress;
5864
  public $isAuthenticatedUser;
5865
  public $kind;
5866
  public $permissionId;
5877
  return $this->displayName;
5878
  }
5879
 
5880
+ public function setEmailAddress($emailAddress)
5881
+ {
5882
+ $this->emailAddress = $emailAddress;
5883
+ }
5884
+
5885
+ public function getEmailAddress()
5886
+ {
5887
+ return $this->emailAddress;
5888
+ }
5889
+
5890
  public function setIsAuthenticatedUser($isAuthenticatedUser)
5891
  {
5892
  $this->isAuthenticatedUser = $isAuthenticatedUser;
core/Google/Service/Games.php CHANGED
@@ -269,6 +269,10 @@ class GoogleGAL_Service_Games extends GoogleGAL_Service
269
  'type' => 'string',
270
  'required' => true,
271
  ),
 
 
 
 
272
  ),
273
  ),'list' => array(
274
  'path' => 'players/me/players/{collection}',
@@ -287,6 +291,10 @@ class GoogleGAL_Service_Games extends GoogleGAL_Service
287
  'location' => 'query',
288
  'type' => 'integer',
289
  ),
 
 
 
 
290
  ),
291
  ),
292
  )
@@ -354,6 +362,10 @@ class GoogleGAL_Service_Games extends GoogleGAL_Service
354
  'type' => 'string',
355
  'required' => true,
356
  ),
 
 
 
 
357
  ),
358
  ),'dismiss' => array(
359
  'path' => 'rooms/{roomId}/dismiss',
@@ -388,6 +400,10 @@ class GoogleGAL_Service_Games extends GoogleGAL_Service
388
  'type' => 'string',
389
  'required' => true,
390
  ),
 
 
 
 
391
  ),
392
  ),'leave' => array(
393
  'path' => 'rooms/{roomId}/leave',
@@ -398,6 +414,10 @@ class GoogleGAL_Service_Games extends GoogleGAL_Service
398
  'type' => 'string',
399
  'required' => true,
400
  ),
 
 
 
 
401
  ),
402
  ),'list' => array(
403
  'path' => 'rooms',
@@ -425,6 +445,10 @@ class GoogleGAL_Service_Games extends GoogleGAL_Service
425
  'type' => 'string',
426
  'required' => true,
427
  ),
 
 
 
 
428
  ),
429
  ),
430
  )
@@ -1077,6 +1101,9 @@ class GoogleGAL_Service_Games_Players_Resource extends GoogleGAL_Service_Resourc
1077
  * @param string $playerId
1078
  * A player ID. A value of me may be used in place of the authenticated player's ID.
1079
  * @param array $optParams Optional parameters.
 
 
 
1080
  * @return GoogleGAL_Service_Games_Player
1081
  */
1082
  public function get($playerId, $optParams = array())
@@ -1099,6 +1126,8 @@ class GoogleGAL_Service_Games_Players_Resource extends GoogleGAL_Service_Resourc
1099
  * The maximum number of player resources to return in the response, used for paging. For any
1100
  * response, the actual number of player resources returned may be less than the specified
1101
  * maxResults.
 
 
1102
  * @return GoogleGAL_Service_Games_PlayerListResponse
1103
  */
1104
  public function listPlayers($collection, $optParams = array())
@@ -1216,6 +1245,9 @@ class GoogleGAL_Service_Games_Rooms_Resource extends GoogleGAL_Service_Resource
1216
  * @param string $roomId
1217
  * The ID of the room.
1218
  * @param array $optParams Optional parameters.
 
 
 
1219
  * @return GoogleGAL_Service_Games_Room
1220
  */
1221
  public function decline($roomId, $optParams = array())
@@ -1263,6 +1295,9 @@ class GoogleGAL_Service_Games_Rooms_Resource extends GoogleGAL_Service_Resource
1263
  * The ID of the room.
1264
  * @param GoogleGAL_RoomJoinRequest $postBody
1265
  * @param array $optParams Optional parameters.
 
 
 
1266
  * @return GoogleGAL_Service_Games_Room
1267
  */
1268
  public function join($roomId, GoogleGAL_Service_Games_RoomJoinRequest $postBody, $optParams = array())
@@ -1279,6 +1314,9 @@ class GoogleGAL_Service_Games_Rooms_Resource extends GoogleGAL_Service_Resource
1279
  * The ID of the room.
1280
  * @param GoogleGAL_RoomLeaveRequest $postBody
1281
  * @param array $optParams Optional parameters.
 
 
 
1282
  * @return GoogleGAL_Service_Games_Room
1283
  */
1284
  public function leave($roomId, GoogleGAL_Service_Games_RoomLeaveRequest $postBody, $optParams = array())
@@ -1316,6 +1354,9 @@ class GoogleGAL_Service_Games_Rooms_Resource extends GoogleGAL_Service_Resource
1316
  * The ID of the room.
1317
  * @param GoogleGAL_RoomP2PStatuses $postBody
1318
  * @param array $optParams Optional parameters.
 
 
 
1319
  * @return GoogleGAL_Service_Games_RoomStatus
1320
  */
1321
  public function reportStatus($roomId, GoogleGAL_Service_Games_RoomP2PStatuses $postBody, $optParams = array())
@@ -3239,6 +3280,8 @@ class GoogleGAL_Service_Games_NetworkDiagnostics extends GoogleGAL_Model
3239
  public $androidNetworkType;
3240
  public $iosNetworkType;
3241
  public $kind;
 
 
3242
  public $registrationLatencyMillis;
3243
 
3244
  public function setAndroidNetworkSubtype($androidNetworkSubtype)
@@ -3281,6 +3324,26 @@ class GoogleGAL_Service_Games_NetworkDiagnostics extends GoogleGAL_Model
3281
  return $this->kind;
3282
  }
3283
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
3284
  public function setRegistrationLatencyMillis($registrationLatencyMillis)
3285
  {
3286
  $this->registrationLatencyMillis = $registrationLatencyMillis;
@@ -4658,6 +4721,8 @@ class GoogleGAL_Service_Games_RoomLeaveDiagnostics extends GoogleGAL_Collection
4658
  public $androidNetworkType;
4659
  public $iosNetworkType;
4660
  public $kind;
 
 
4661
  protected $peerSessionType = 'GoogleGAL_Service_Games_PeerSessionDiagnostics';
4662
  protected $peerSessionDataType = 'array';
4663
  public $socketsUsed;
@@ -4702,6 +4767,26 @@ class GoogleGAL_Service_Games_RoomLeaveDiagnostics extends GoogleGAL_Collection
4702
  return $this->kind;
4703
  }
4704
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
4705
  public function setPeerSession($peerSession)
4706
  {
4707
  $this->peerSession = $peerSession;
269
  'type' => 'string',
270
  'required' => true,
271
  ),
272
+ 'language' => array(
273
+ 'location' => 'query',
274
+ 'type' => 'string',
275
+ ),
276
  ),
277
  ),'list' => array(
278
  'path' => 'players/me/players/{collection}',
291
  'location' => 'query',
292
  'type' => 'integer',
293
  ),
294
+ 'language' => array(
295
+ 'location' => 'query',
296
+ 'type' => 'string',
297
+ ),
298
  ),
299
  ),
300
  )
362
  'type' => 'string',
363
  'required' => true,
364
  ),
365
+ 'language' => array(
366
+ 'location' => 'query',
367
+ 'type' => 'string',
368
+ ),
369
  ),
370
  ),'dismiss' => array(
371
  'path' => 'rooms/{roomId}/dismiss',
400
  'type' => 'string',
401
  'required' => true,
402
  ),
403
+ 'language' => array(
404
+ 'location' => 'query',
405
+ 'type' => 'string',
406
+ ),
407
  ),
408
  ),'leave' => array(
409
  'path' => 'rooms/{roomId}/leave',
414
  'type' => 'string',
415
  'required' => true,
416
  ),
417
+ 'language' => array(
418
+ 'location' => 'query',
419
+ 'type' => 'string',
420
+ ),
421
  ),
422
  ),'list' => array(
423
  'path' => 'rooms',
445
  'type' => 'string',
446
  'required' => true,
447
  ),
448
+ 'language' => array(
449
+ 'location' => 'query',
450
+ 'type' => 'string',
451
+ ),
452
  ),
453
  ),
454
  )
1101
  * @param string $playerId
1102
  * A player ID. A value of me may be used in place of the authenticated player's ID.
1103
  * @param array $optParams Optional parameters.
1104
+ *
1105
+ * @opt_param string language
1106
+ * The preferred language to use for strings returned by this method.
1107
  * @return GoogleGAL_Service_Games_Player
1108
  */
1109
  public function get($playerId, $optParams = array())
1126
  * The maximum number of player resources to return in the response, used for paging. For any
1127
  * response, the actual number of player resources returned may be less than the specified
1128
  * maxResults.
1129
+ * @opt_param string language
1130
+ * The preferred language to use for strings returned by this method.
1131
  * @return GoogleGAL_Service_Games_PlayerListResponse
1132
  */
1133
  public function listPlayers($collection, $optParams = array())
1245
  * @param string $roomId
1246
  * The ID of the room.
1247
  * @param array $optParams Optional parameters.
1248
+ *
1249
+ * @opt_param string language
1250
+ * The preferred language to use for strings returned by this method.
1251
  * @return GoogleGAL_Service_Games_Room
1252
  */
1253
  public function decline($roomId, $optParams = array())
1295
  * The ID of the room.
1296
  * @param GoogleGAL_RoomJoinRequest $postBody
1297
  * @param array $optParams Optional parameters.
1298
+ *
1299
+ * @opt_param string language
1300
+ * The preferred language to use for strings returned by this method.
1301
  * @return GoogleGAL_Service_Games_Room
1302
  */
1303
  public function join($roomId, GoogleGAL_Service_Games_RoomJoinRequest $postBody, $optParams = array())
1314
  * The ID of the room.
1315
  * @param GoogleGAL_RoomLeaveRequest $postBody
1316
  * @param array $optParams Optional parameters.
1317
+ *
1318
+ * @opt_param string language
1319
+ * The preferred language to use for strings returned by this method.
1320
  * @return GoogleGAL_Service_Games_Room
1321
  */
1322
  public function leave($roomId, GoogleGAL_Service_Games_RoomLeaveRequest $postBody, $optParams = array())
1354
  * The ID of the room.
1355
  * @param GoogleGAL_RoomP2PStatuses $postBody
1356
  * @param array $optParams Optional parameters.
1357
+ *
1358
+ * @opt_param string language
1359
+ * The preferred language to use for strings returned by this method.
1360
  * @return GoogleGAL_Service_Games_RoomStatus
1361
  */
1362
  public function reportStatus($roomId, GoogleGAL_Service_Games_RoomP2PStatuses $postBody, $optParams = array())
3280
  public $androidNetworkType;
3281
  public $iosNetworkType;
3282
  public $kind;
3283
+ public $networkOperatorCode;
3284
+ public $networkOperatorName;
3285
  public $registrationLatencyMillis;
3286
 
3287
  public function setAndroidNetworkSubtype($androidNetworkSubtype)
3324
  return $this->kind;
3325
  }
3326
 
3327
+ public function setNetworkOperatorCode($networkOperatorCode)
3328
+ {
3329
+ $this->networkOperatorCode = $networkOperatorCode;
3330
+ }
3331
+
3332
+ public function getNetworkOperatorCode()
3333
+ {
3334
+ return $this->networkOperatorCode;
3335
+ }
3336
+
3337
+ public function setNetworkOperatorName($networkOperatorName)
3338
+ {
3339
+ $this->networkOperatorName = $networkOperatorName;
3340
+ }
3341
+
3342
+ public function getNetworkOperatorName()
3343
+ {
3344
+ return $this->networkOperatorName;
3345
+ }
3346
+
3347
  public function setRegistrationLatencyMillis($registrationLatencyMillis)
3348
  {
3349
  $this->registrationLatencyMillis = $registrationLatencyMillis;
4721
  public $androidNetworkType;
4722
  public $iosNetworkType;
4723
  public $kind;
4724
+ public $networkOperatorCode;
4725
+ public $networkOperatorName;
4726
  protected $peerSessionType = 'GoogleGAL_Service_Games_PeerSessionDiagnostics';
4727
  protected $peerSessionDataType = 'array';
4728
  public $socketsUsed;
4767
  return $this->kind;
4768
  }
4769
 
4770
+ public function setNetworkOperatorCode($networkOperatorCode)
4771
+ {
4772
+ $this->networkOperatorCode = $networkOperatorCode;
4773
+ }
4774
+
4775
+ public function getNetworkOperatorCode()
4776
+ {
4777
+ return $this->networkOperatorCode;
4778
+ }
4779
+
4780
+ public function setNetworkOperatorName($networkOperatorName)
4781
+ {
4782
+ $this->networkOperatorName = $networkOperatorName;
4783
+ }
4784
+
4785
+ public function getNetworkOperatorName()
4786
+ {
4787
+ return $this->networkOperatorName;
4788
+ }
4789
+
4790
  public function setPeerSession($peerSession)
4791
  {
4792
  $this->peerSession = $peerSession;
core/Google/Service/Genomics.php ADDED
@@ -0,0 +1,2682 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /*
3
+ * Copyright 2010 Google Inc.
4
+ *
5
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
6
+ * use this file except in compliance with the License. You may obtain a copy of
7
+ * 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, WITHOUT
13
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
14
+ * License for the specific language governing permissions and limitations under
15
+ * the License.
16
+ */
17
+
18
+ /**
19
+ * Service definition for Genomics (v1beta).
20
+ *
21
+ * <p>
22
+ * Provides access to Genomics data.
23
+ * </p>
24
+ *
25
+ * <p>
26
+ * For more information about this service, see the API
27
+ * <a href="https://developers.google.com/genomics/v1beta/reference" target="_blank">Documentation</a>
28
+ * </p>
29
+ *
30
+ * @author Google, Inc.
31
+ */
32
+ class GoogleGAL_Service_Genomics extends GoogleGAL_Service
33
+ {
34
+ /** Manage your data in Google Cloud Storage. */
35
+ const DEVSTORAGE_READ_WRITE = "https://www.googleapis.com/auth/devstorage.read_write";
36
+ /** View and manage Genomics data. */
37
+ const GENOMICS = "https://www.googleapis.com/auth/genomics";
38
+
39
+ public $beacons;
40
+ public $callsets;
41
+ public $datasets;
42
+ public $experimental_jobs;
43
+ public $jobs;
44
+ public $jobs_deprecated;
45
+ public $reads;
46
+ public $readsets;
47
+ public $variants;
48
+
49
+
50
+ /**
51
+ * Constructs the internal representation of the Genomics service.
52
+ *
53
+ * @param GoogleGAL_Client $client
54
+ */
55
+ public function __construct(GoogleGAL_Client $client)
56
+ {
57
+ parent::__construct($client);
58
+ $this->servicePath = 'genomics/v1beta/';
59
+ $this->version = 'v1beta';
60
+ $this->serviceName = 'genomics';
61
+
62
+ $this->beacons = new GoogleGAL_Service_Genomics_Beacons_Resource(
63
+ $this,
64
+ $this->serviceName,
65
+ 'beacons',
66
+ array(
67
+ 'methods' => array(
68
+ 'get' => array(
69
+ 'path' => 'beacons/{datasetId}',
70
+ 'httpMethod' => 'GET',
71
+ 'parameters' => array(
72
+ 'datasetId' => array(
73
+ 'location' => 'path',
74
+ 'type' => 'string',
75
+ 'required' => true,
76
+ ),
77
+ 'allele' => array(
78
+ 'location' => 'query',
79
+ 'type' => 'string',
80
+ ),
81
+ 'contig' => array(
82
+ 'location' => 'query',
83
+ 'type' => 'string',
84
+ ),
85
+ 'position' => array(
86
+ 'location' => 'query',
87
+ 'type' => 'string',
88
+ ),
89
+ ),
90
+ ),
91
+ )
92
+ )
93
+ );
94
+ $this->callsets = new GoogleGAL_Service_Genomics_Callsets_Resource(
95
+ $this,
96
+ $this->serviceName,
97
+ 'callsets',
98
+ array(
99
+ 'methods' => array(
100
+ 'create' => array(
101
+ 'path' => 'callsets',
102
+ 'httpMethod' => 'POST',
103
+ 'parameters' => array(),
104
+ ),'delete' => array(
105
+ 'path' => 'callsets/{callsetId}',
106
+ 'httpMethod' => 'DELETE',
107
+ 'parameters' => array(
108
+ 'callsetId' => array(
109
+ 'location' => 'path',
110
+ 'type' => 'string',
111
+ 'required' => true,
112
+ ),
113
+ ),
114
+ ),'get' => array(
115
+ 'path' => 'callsets/{callsetId}',
116
+ 'httpMethod' => 'GET',
117
+ 'parameters' => array(
118
+ 'callsetId' => array(
119
+ 'location' => 'path',
120
+ 'type' => 'string',
121
+ 'required' => true,
122
+ ),
123
+ ),
124
+ ),'patch' => array(
125
+ 'path' => 'callsets/{callsetId}',
126
+ 'httpMethod' => 'PATCH',
127
+ 'parameters' => array(
128
+ 'callsetId' => array(
129
+ 'location' => 'path',
130
+ 'type' => 'string',
131
+ 'required' => true,
132
+ ),
133
+ ),
134
+ ),'search' => array(
135
+ 'path' => 'callsets/search',
136
+ 'httpMethod' => 'POST',
137
+ 'parameters' => array(),
138
+ ),'update' => array(
139
+ 'path' => 'callsets/{callsetId}',
140
+ 'httpMethod' => 'PUT',
141
+ 'parameters' => array(
142
+ 'callsetId' => array(
143
+ 'location' => 'path',
144
+ 'type' => 'string',
145
+ 'required' => true,
146
+ ),
147
+ ),
148
+ ),
149
+ )
150
+ )
151
+ );
152
+ $this->datasets = new GoogleGAL_Service_Genomics_Datasets_Resource(
153
+ $this,
154
+ $this->serviceName,
155
+ 'datasets',
156
+ array(
157
+ 'methods' => array(
158
+ 'create' => array(
159
+ 'path' => 'datasets',
160
+ 'httpMethod' => 'POST',
161
+ 'parameters' => array(),
162
+ ),'delete' => array(
163
+ 'path' => 'datasets/{datasetId}',
164
+ 'httpMethod' => 'DELETE',
165
+ 'parameters' => array(
166
+ 'datasetId' => array(
167
+ 'location' => 'path',
168
+ 'type' => 'string',
169
+ 'required' => true,
170
+ ),
171
+ ),
172
+ ),'get' => array(
173
+ 'path' => 'datasets/{datasetId}',
174
+ 'httpMethod' => 'GET',
175
+ 'parameters' => array(
176
+ 'datasetId' => array(
177
+ 'location' => 'path',
178
+ 'type' => 'string',
179
+ 'required' => true,
180
+ ),
181
+ ),
182
+ ),'list' => array(
183
+ 'path' => 'datasets',
184
+ 'httpMethod' => 'GET',
185
+ 'parameters' => array(
186
+ 'pageToken' => array(
187
+ 'location' => 'query',
188
+ 'type' => 'string',
189
+ ),
190
+ 'projectId' => array(
191
+ 'location' => 'query',
192
+ 'type' => 'string',
193
+ ),
194
+ ),
195
+ ),'patch' => array(
196
+ 'path' => 'datasets/{datasetId}',
197
+ 'httpMethod' => 'PATCH',
198
+ 'parameters' => array(
199
+ 'datasetId' => array(
200
+ 'location' => 'path',
201
+ 'type' => 'string',
202
+ 'required' => true,
203
+ ),
204
+ ),
205
+ ),'update' => array(
206
+ 'path' => 'datasets/{datasetId}',
207
+ 'httpMethod' => 'PUT',
208
+ 'parameters' => array(
209
+ 'datasetId' => array(
210
+ 'location' => 'path',
211
+ 'type' => 'string',
212
+ 'required' => true,
213
+ ),
214
+ ),
215
+ ),
216
+ )
217
+ )
218
+ );
219
+ $this->experimental_jobs = new GoogleGAL_Service_Genomics_ExperimentalJobs_Resource(
220
+ $this,
221
+ $this->serviceName,
222
+ 'jobs',
223
+ array(
224
+ 'methods' => array(
225
+ 'create' => array(
226
+ 'path' => 'experimental/jobs/create',
227
+ 'httpMethod' => 'POST',
228
+ 'parameters' => array(),
229
+ ),
230
+ )
231
+ )
232
+ );
233
+ $this->jobs = new GoogleGAL_Service_Genomics_Jobs_Resource(
234
+ $this,
235
+ $this->serviceName,
236
+ 'jobs',
237
+ array(
238
+ 'methods' => array(
239
+ 'get' => array(
240
+ 'path' => 'jobs/{jobId}',
241
+ 'httpMethod' => 'GET',
242
+ 'parameters' => array(
243
+ 'jobId' => array(
244
+ 'location' => 'path',
245
+ 'type' => 'string',
246
+ 'required' => true,
247
+ ),
248
+ ),
249
+ ),
250
+ )
251
+ )
252
+ );
253
+ $this->jobs_deprecated = new GoogleGAL_Service_Genomics_JobsDeprecated_Resource(
254
+ $this,
255
+ $this->serviceName,
256
+ 'deprecated',
257
+ array(
258
+ 'methods' => array(
259
+ 'get' => array(
260
+ 'path' => 'jobs/deprecated/{jobId}',
261
+ 'httpMethod' => 'GET',
262
+ 'parameters' => array(
263
+ 'jobId' => array(
264
+ 'location' => 'path',
265
+ 'type' => 'string',
266
+ 'required' => true,
267
+ ),
268
+ ),
269
+ ),
270
+ )
271
+ )
272
+ );
273
+ $this->reads = new GoogleGAL_Service_Genomics_Reads_Resource(
274
+ $this,
275
+ $this->serviceName,
276
+ 'reads',
277
+ array(
278
+ 'methods' => array(
279
+ 'get' => array(
280
+ 'path' => 'reads/{readId}',
281
+ 'httpMethod' => 'GET',
282
+ 'parameters' => array(
283
+ 'readId' => array(
284
+ 'location' => 'path',
285
+ 'type' => 'string',
286
+ 'required' => true,
287
+ ),
288
+ ),
289
+ ),'search' => array(
290
+ 'path' => 'reads/search',
291
+ 'httpMethod' => 'POST',
292
+ 'parameters' => array(),
293
+ ),
294
+ )
295
+ )
296
+ );
297
+ $this->readsets = new GoogleGAL_Service_Genomics_Readsets_Resource(
298
+ $this,
299
+ $this->serviceName,
300
+ 'readsets',
301
+ array(
302
+ 'methods' => array(
303
+ 'create' => array(
304
+ 'path' => 'readsets',
305
+ 'httpMethod' => 'POST',
306
+ 'parameters' => array(),
307
+ ),'delete' => array(
308
+ 'path' => 'readsets/{readsetId}',
309
+ 'httpMethod' => 'DELETE',
310
+ 'parameters' => array(
311
+ 'readsetId' => array(
312
+ 'location' => 'path',
313
+ 'type' => 'string',
314
+ 'required' => true,
315
+ ),
316
+ ),
317
+ ),'export' => array(
318
+ 'path' => 'readsets/export',
319
+ 'httpMethod' => 'POST',
320
+ 'parameters' => array(),
321
+ ),'get' => array(
322
+ 'path' => 'readsets/{readsetId}',
323
+ 'httpMethod' => 'GET',
324
+ 'parameters' => array(
325
+ 'readsetId' => array(
326
+ 'location' => 'path',
327
+ 'type' => 'string',
328
+ 'required' => true,
329
+ ),
330
+ ),
331
+ ),'import' => array(
332
+ 'path' => 'readsets/import',
333
+ 'httpMethod' => 'POST',
334
+ 'parameters' => array(),
335
+ ),'patch' => array(
336
+ 'path' => 'readsets/{readsetId}',
337
+ 'httpMethod' => 'PATCH',
338
+ 'parameters' => array(
339
+ 'readsetId' => array(
340
+ 'location' => 'path',
341
+ 'type' => 'string',
342
+ 'required' => true,
343
+ ),
344
+ ),
345
+ ),'search' => array(
346
+ 'path' => 'readsets/search',
347
+ 'httpMethod' => 'POST',
348
+ 'parameters' => array(),
349
+ ),'update' => array(
350
+ 'path' => 'readsets/{readsetId}',
351
+ 'httpMethod' => 'PUT',
352
+ 'parameters' => array(
353
+ 'readsetId' => array(
354
+ 'location' => 'path',
355
+ 'type' => 'string',
356
+ 'required' => true,
357
+ ),
358
+ ),
359
+ ),
360
+ )
361
+ )
362
+ );
363
+ $this->variants = new GoogleGAL_Service_Genomics_Variants_Resource(
364
+ $this,
365
+ $this->serviceName,
366
+ 'variants',
367
+ array(
368
+ 'methods' => array(
369
+ 'create' => array(
370
+ 'path' => 'variants',
371
+ 'httpMethod' => 'POST',
372
+ 'parameters' => array(),
373
+ ),'delete' => array(
374
+ 'path' => 'variants/{variantId}',
375
+ 'httpMethod' => 'DELETE',
376
+ 'parameters' => array(
377
+ 'variantId' => array(
378
+ 'location' => 'path',
379
+ 'type' => 'string',
380
+ 'required' => true,
381
+ ),
382
+ ),
383
+ ),'export' => array(
384
+ 'path' => 'variants/export',
385
+ 'httpMethod' => 'POST',
386
+ 'parameters' => array(),
387
+ ),'get' => array(
388
+ 'path' => 'variants/{variantId}',
389
+ 'httpMethod' => 'GET',
390
+ 'parameters' => array(
391
+ 'variantId' => array(
392
+ 'location' => 'path',
393
+ 'type' => 'string',
394
+ 'required' => true,
395
+ ),
396
+ ),
397
+ ),'import' => array(
398
+ 'path' => 'variants/import',
399
+ 'httpMethod' => 'POST',
400
+ 'parameters' => array(),
401
+ ),'patch' => array(
402
+ 'path' => 'variants/{variantId}',
403
+ 'httpMethod' => 'PATCH',
404
+ 'parameters' => array(
405
+ 'variantId' => array(
406
+ 'location' => 'path',
407
+ 'type' => 'string',
408
+ 'required' => true,
409
+ ),
410
+ ),
411
+ ),'search' => array(
412
+ 'path' => 'variants/search',
413
+ 'httpMethod' => 'POST',
414
+ 'parameters' => array(),
415
+ ),'update' => array(
416
+ 'path' => 'variants/{variantId}',
417
+ 'httpMethod' => 'PUT',
418
+ 'parameters' => array(
419
+ 'variantId' => array(
420
+ 'location' => 'path',
421
+ 'type' => 'string',
422
+ 'required' => true,
423
+ ),
424
+ ),
425
+ ),
426
+ )
427
+ )
428
+ );
429
+ }
430
+ }
431
+
432
+
433
+ /**
434
+ * The "beacons" collection of methods.
435
+ * Typical usage is:
436
+ * <code>
437
+ * $genomicsService = new GoogleGAL_Service_Genomics(...);
438
+ * $beacons = $genomicsService->beacons;
439
+ * </code>
440
+ */
441
+ class GoogleGAL_Service_Genomics_Beacons_Resource extends GoogleGAL_Service_Resource
442
+ {
443
+
444
+ /**
445
+ * This is an experimental API that provides a Global Alliance for Genomics and
446
+ * Health Beacon. It may change at any time. (beacons.get)
447
+ *
448
+ * @param string $datasetId
449
+ * The ID of the dataset to query over. It must be public. Private datasets will return an
450
+ * unauthorized exception.
451
+ * @param array $optParams Optional parameters.
452
+ *
453
+ * @opt_param string allele
454
+ * Required. The allele to look for ('A', 'C', 'G' or 'T').
455
+ * @opt_param string contig
456
+ * Required. The contig to query over.
457
+ * @opt_param string position
458
+ * Required. The 1-based position to query at.
459
+ * @return GoogleGAL_Service_Genomics_Beacon
460
+ */
461
+ public function get($datasetId, $optParams = array())
462
+ {
463
+ $params = array('datasetId' => $datasetId);
464
+ $params = array_merge($params, $optParams);
465
+ return $this->call('get', array($params), "GoogleGAL_Service_Genomics_Beacon");
466
+ }
467
+ }
468
+
469
+ /**
470
+ * The "callsets" collection of methods.
471
+ * Typical usage is:
472
+ * <code>
473
+ * $genomicsService = new GoogleGAL_Service_Genomics(...);
474
+ * $callsets = $genomicsService->callsets;
475
+ * </code>
476
+ */
477
+ class GoogleGAL_Service_Genomics_Callsets_Resource extends GoogleGAL_Service_Resource
478
+ {
479
+
480
+ /**
481
+ * Creates a new callset. (callsets.create)
482
+ *
483
+ * @param GoogleGAL_Callset $postBody
484
+ * @param array $optParams Optional parameters.
485
+ * @return GoogleGAL_Service_Genomics_Callset
486
+ */
487
+ public function create(GoogleGAL_Service_Genomics_Callset $postBody, $optParams = array())
488
+ {
489
+ $params = array('postBody' => $postBody);
490
+ $params = array_merge($params, $optParams);
491
+ return $this->call('create', array($params), "GoogleGAL_Service_Genomics_Callset");
492
+ }
493
+ /**
494
+ * Deletes a callset. (callsets.delete)
495
+ *
496
+ * @param string $callsetId
497
+ * The ID of the callset to be deleted.
498
+ * @param array $optParams Optional parameters.
499
+ */
500
+ public function delete($callsetId, $optParams = array())
501
+ {
502
+ $params = array('callsetId' => $callsetId);
503
+ $params = array_merge($params, $optParams);
504
+ return $this->call('delete', array($params));
505
+ }
506
+ /**
507
+ * Gets a callset by ID. (callsets.get)
508
+ *
509
+ * @param string $callsetId
510
+ * The ID of the callset.
511
+ * @param array $optParams Optional parameters.
512
+ * @return GoogleGAL_Service_Genomics_Callset
513
+ */
514
+ public function get($callsetId, $optParams = array())
515
+ {
516
+ $params = array('callsetId' => $callsetId);
517
+ $params = array_merge($params, $optParams);
518
+ return $this->call('get', array($params), "GoogleGAL_Service_Genomics_Callset");
519
+ }
520
+ /**
521
+ * Updates a callset. This method supports patch semantics. (callsets.patch)
522
+ *
523
+ * @param string $callsetId
524
+ * The ID of the callset to be updated.
525
+ * @param GoogleGAL_Callset $postBody
526
+ * @param array $optParams Optional parameters.
527
+ * @return GoogleGAL_Service_Genomics_Callset
528
+ */
529
+ public function patch($callsetId, GoogleGAL_Service_Genomics_Callset $postBody, $optParams = array())
530
+ {
531
+ $params = array('callsetId' => $callsetId, 'postBody' => $postBody);
532
+ $params = array_merge($params, $optParams);
533
+ return $this->call('patch', array($params), "GoogleGAL_Service_Genomics_Callset");
534
+ }
535
+ /**
536
+ * Gets a list of callsets matching the criteria. (callsets.search)
537
+ *
538
+ * @param GoogleGAL_SearchCallsetsRequest $postBody
539
+ * @param array $optParams Optional parameters.
540
+ * @return GoogleGAL_Service_Genomics_SearchCallsetsResponse
541
+ */
542
+ public function search(GoogleGAL_Service_Genomics_SearchCallsetsRequest $postBody, $optParams = array())
543
+ {
544
+ $params = array('postBody' => $postBody);
545
+ $params = array_merge($params, $optParams);
546
+ return $this->call('search', array($params), "GoogleGAL_Service_Genomics_SearchCallsetsResponse");
547
+ }
548
+ /**
549
+ * Updates a callset. (callsets.update)
550
+ *
551
+ * @param string $callsetId
552
+ * The ID of the callset to be updated.
553
+ * @param GoogleGAL_Callset $postBody
554
+ * @param array $optParams Optional parameters.
555
+ * @return GoogleGAL_Service_Genomics_Callset
556
+ */
557
+ public function update($callsetId, GoogleGAL_Service_Genomics_Callset $postBody, $optParams = array())
558
+ {
559
+ $params = array('callsetId' => $callsetId, 'postBody' => $postBody);
560
+ $params = array_merge($params, $optParams);
561
+ return $this->call('update', array($params), "GoogleGAL_Service_Genomics_Callset");
562
+ }
563
+ }
564
+
565
+ /**
566
+ * The "datasets" collection of methods.
567
+ * Typical usage is:
568
+ * <code>
569
+ * $genomicsService = new GoogleGAL_Service_Genomics(...);
570
+ * $datasets = $genomicsService->datasets;
571
+ * </code>
572
+ */
573
+ class GoogleGAL_Service_Genomics_Datasets_Resource extends GoogleGAL_Service_Resource
574
+ {
575
+
576
+ /**
577
+ * Creates a new dataset. (datasets.create)
578
+ *
579
+ * @param GoogleGAL_Dataset $postBody
580
+ * @param array $optParams Optional parameters.
581
+ * @return GoogleGAL_Service_Genomics_Dataset
582
+ */
583
+ public function create(GoogleGAL_Service_Genomics_Dataset $postBody, $optParams = array())
584
+ {
585
+ $params = array('postBody' => $postBody);
586
+ $params = array_merge($params, $optParams);
587
+ return $this->call('create', array($params), "GoogleGAL_Service_Genomics_Dataset");
588
+ }
589
+ /**
590
+ * Deletes a dataset. (datasets.delete)
591
+ *
592
+ * @param string $datasetId
593
+ * The ID of the dataset to be deleted.
594
+ * @param array $optParams Optional parameters.
595
+ */
596
+ public function delete($datasetId, $optParams = array())
597
+ {
598
+ $params = array('datasetId' => $datasetId);
599
+ $params = array_merge($params, $optParams);
600
+ return $this->call('delete', array($params));
601
+ }
602
+ /**
603
+ * Gets a dataset by ID. (datasets.get)
604
+ *
605
+ * @param string $datasetId
606
+ * The ID of the dataset.
607
+ * @param array $optParams Optional parameters.
608
+ * @return GoogleGAL_Service_Genomics_Dataset
609
+ */
610
+ public function get($datasetId, $optParams = array())
611
+ {
612
+ $params = array('datasetId' => $datasetId);
613
+ $params = array_merge($params, $optParams);
614
+ return $this->call('get', array($params), "GoogleGAL_Service_Genomics_Dataset");
615
+ }
616
+ /**
617
+ * Lists all datasets. (datasets.listDatasets)
618
+ *
619
+ * @param array $optParams Optional parameters.
620
+ *
621
+ * @opt_param string pageToken
622
+ * The continuation token, which is used to page through large result sets. To get the next page of
623
+ * results, set this parameter to the value of "nextPageToken" from the previous response.
624
+ * @opt_param string projectId
625
+ * Only return datasets which belong to this Google Developers Console project.
626
+ * @return GoogleGAL_Service_Genomics_ListDatasetsResponse
627
+ */
628
+ public function listDatasets($optParams = array())
629
+ {
630
+ $params = array();
631
+ $params = array_merge($params, $optParams);
632
+ return $this->call('list', array($params), "GoogleGAL_Service_Genomics_ListDatasetsResponse");
633
+ }
634
+ /**
635
+ * Updates a dataset. This method supports patch semantics. (datasets.patch)
636
+ *
637
+ * @param string $datasetId
638
+ * The ID of the dataset to be updated.
639
+ * @param GoogleGAL_Dataset $postBody
640
+ * @param array $optParams Optional parameters.
641
+ * @return GoogleGAL_Service_Genomics_Dataset
642
+ */
643
+ public function patch($datasetId, GoogleGAL_Service_Genomics_Dataset $postBody, $optParams = array())
644
+ {
645
+ $params = array('datasetId' => $datasetId, 'postBody' => $postBody);
646
+ $params = array_merge($params, $optParams);
647
+ return $this->call('patch', array($params), "GoogleGAL_Service_Genomics_Dataset");
648
+ }
649
+ /**
650
+ * Updates a dataset. (datasets.update)
651
+ *
652
+ * @param string $datasetId
653
+ * The ID of the dataset to be updated.
654
+ * @param GoogleGAL_Dataset $postBody
655
+ * @param array $optParams Optional parameters.
656
+ * @return GoogleGAL_Service_Genomics_Dataset
657
+ */
658
+ public function update($datasetId, GoogleGAL_Service_Genomics_Dataset $postBody, $optParams = array())
659
+ {
660
+ $params = array('datasetId' => $datasetId, 'postBody' => $postBody);
661
+ $params = array_merge($params, $optParams);
662
+ return $this->call('update', array($params), "GoogleGAL_Service_Genomics_Dataset");
663
+ }
664
+ }
665
+
666
+ /**
667
+ * The "experimental" collection of methods.
668
+ * Typical usage is:
669
+ * <code>
670
+ * $genomicsService = new GoogleGAL_Service_Genomics(...);
671
+ * $experimental = $genomicsService->experimental;
672
+ * </code>
673
+ */
674
+ class GoogleGAL_Service_Genomics_Experimental_Resource extends GoogleGAL_Service_Resource
675
+ {
676
+
677
+ }
678
+
679
+ /**
680
+ * The "jobs" collection of methods.
681
+ * Typical usage is:
682
+ * <code>
683
+ * $genomicsService = new GoogleGAL_Service_Genomics(...);
684
+ * $jobs = $genomicsService->jobs;
685
+ * </code>
686
+ */
687
+ class GoogleGAL_Service_Genomics_ExperimentalJobs_Resource extends GoogleGAL_Service_Resource
688
+ {
689
+
690
+ /**
691
+ * Creates and asynchronously runs an ad-hoc job. NOTE: This is an experimental
692
+ * call and may vanish or change without warning. (jobs.create)
693
+ *
694
+ * @param GoogleGAL_ExperimentalCreateJobRequest $postBody
695
+ * @param array $optParams Optional parameters.
696
+ * @return GoogleGAL_Service_Genomics_ExperimentalCreateJobResponse
697
+ */
698
+ public function create(GoogleGAL_Service_Genomics_ExperimentalCreateJobRequest $postBody, $optParams = array())
699
+ {
700
+ $params = array('postBody' => $postBody);
701
+ $params = array_merge($params, $optParams);
702
+ return $this->call('create', array($params), "GoogleGAL_Service_Genomics_ExperimentalCreateJobResponse");
703
+ }
704
+ }
705
+
706
+ /**
707
+ * The "jobs" collection of methods.
708
+ * Typical usage is:
709
+ * <code>
710
+ * $genomicsService = new GoogleGAL_Service_Genomics(...);
711
+ * $jobs = $genomicsService->jobs;
712
+ * </code>
713
+ */
714
+ class GoogleGAL_Service_Genomics_Jobs_Resource extends GoogleGAL_Service_Resource
715
+ {
716
+
717
+ /**
718
+ * Gets a job by ID. (jobs.get)
719
+ *
720
+ * @param string $jobId
721
+ * The ID of the job.
722
+ * @param array $optParams Optional parameters.
723
+ * @return GoogleGAL_Service_Genomics_Job
724
+ */
725
+ public function get($jobId, $optParams = array())
726
+ {
727
+ $params = array('jobId' => $jobId);
728
+ $params = array_merge($params, $optParams);
729
+ return $this->call('get', array($params), "GoogleGAL_Service_Genomics_Job");
730
+ }
731
+ }
732
+
733
+ /**
734
+ * The "deprecated" collection of methods.
735
+ * Typical usage is:
736
+ * <code>
737
+ * $genomicsService = new GoogleGAL_Service_Genomics(...);
738
+ * $deprecated = $genomicsService->deprecated;
739
+ * </code>
740
+ */
741
+ class GoogleGAL_Service_Genomics_JobsDeprecated_Resource extends GoogleGAL_Service_Resource
742
+ {
743
+
744
+ /**
745
+ * TODO(garrick): Remove in follow-up CL. Gets a job by ID. (deprecated.get)
746
+ *
747
+ * @param string $jobId
748
+ * The ID of the job.
749
+ * @param array $optParams Optional parameters.
750
+ * @return GoogleGAL_Service_Genomics_Job
751
+ */
752
+ public function get($jobId, $optParams = array())
753
+ {
754
+ $params = array('jobId' => $jobId);
755
+ $params = array_merge($params, $optParams);
756
+ return $this->call('get', array($params), "GoogleGAL_Service_Genomics_Job");
757
+ }
758
+ }
759
+
760
+ /**
761
+ * The "reads" collection of methods.
762
+ * Typical usage is:
763
+ * <code>
764
+ * $genomicsService = new GoogleGAL_Service_Genomics(...);
765
+ * $reads = $genomicsService->reads;
766
+ * </code>
767
+ */
768
+ class GoogleGAL_Service_Genomics_Reads_Resource extends GoogleGAL_Service_Resource
769
+ {
770
+
771
+ /**
772
+ * Gets a read by ID. (reads.get)
773
+ *
774
+ * @param string $readId
775
+ * The ID of the read.
776
+ * @param array $optParams Optional parameters.
777
+ * @return GoogleGAL_Service_Genomics_Read
778
+ */
779
+ public function get($readId, $optParams = array())
780
+ {
781
+ $params = array('readId' => $readId);
782
+ $params = array_merge($params, $optParams);
783
+ return $this->call('get', array($params), "GoogleGAL_Service_Genomics_Read");
784
+ }
785
+ /**
786
+ * Gets a list of reads matching the criteria. (reads.search)
787
+ *
788
+ * @param GoogleGAL_SearchReadsRequest $postBody
789
+ * @param array $optParams Optional parameters.
790
+ * @return GoogleGAL_Service_Genomics_SearchReadsResponse
791
+ */
792
+ public function search(GoogleGAL_Service_Genomics_SearchReadsRequest $postBody, $optParams = array())
793
+ {
794
+ $params = array('postBody' => $postBody);
795
+ $params = array_merge($params, $optParams);
796
+ return $this->call('search', array($params), "GoogleGAL_Service_Genomics_SearchReadsResponse");
797
+ }
798
+ }
799
+
800
+ /**
801
+ * The "readsets" collection of methods.
802
+ * Typical usage is:
803
+ * <code>
804
+ * $genomicsService = new GoogleGAL_Service_Genomics(...);
805
+ * $readsets = $genomicsService->readsets;
806
+ * </code>
807
+ */
808
+ class GoogleGAL_Service_Genomics_Readsets_Resource extends GoogleGAL_Service_Resource
809
+ {
810
+
811
+ /**
812
+ * Creates a new readset. (readsets.create)
813
+ *
814
+ * @param GoogleGAL_Readset $postBody
815
+ * @param array $optParams Optional parameters.
816
+ * @return GoogleGAL_Service_Genomics_Readset
817
+ */
818
+ public function create(GoogleGAL_Service_Genomics_Readset $postBody, $optParams = array())
819
+ {
820
+ $params = array('postBody' => $postBody);
821
+ $params = array_merge($params, $optParams);
822
+ return $this->call('create', array($params), "GoogleGAL_Service_Genomics_Readset");
823
+ }
824
+ /**
825
+ * Deletes a readset. (readsets.delete)
826
+ *
827
+ * @param string $readsetId
828
+ * The ID of the readset to be deleted.
829
+ * @param array $optParams Optional parameters.
830
+ */
831
+ public function delete($readsetId, $optParams = array())
832
+ {
833
+ $params = array('readsetId' => $readsetId);
834
+ $params = array_merge($params, $optParams);
835
+ return $this->call('delete', array($params));
836
+ }
837
+ /**
838
+ * Exports readsets to a file. (readsets.export)
839
+ *
840
+ * @param GoogleGAL_ExportReadsetsRequest $postBody
841
+ * @param array $optParams Optional parameters.
842
+ * @return GoogleGAL_Service_Genomics_ExportReadsetsResponse
843
+ */
844
+ public function export(GoogleGAL_Service_Genomics_ExportReadsetsRequest $postBody, $optParams = array())
845
+ {
846
+ $params = array('postBody' => $postBody);
847
+ $params = array_merge($params, $optParams);
848
+ return $this->call('export', array($params), "GoogleGAL_Service_Genomics_ExportReadsetsResponse");
849
+ }
850
+ /**
851
+ * Gets a readset by ID. (readsets.get)
852
+ *
853
+ * @param string $readsetId
854
+ * The ID of the readset.
855
+ * @param array $optParams Optional parameters.
856
+ * @return GoogleGAL_Service_Genomics_Readset
857
+ */
858
+ public function get($readsetId, $optParams = array())
859
+ {
860
+ $params = array('readsetId' => $readsetId);
861
+ $params = array_merge($params, $optParams);
862
+ return $this->call('get', array($params), "GoogleGAL_Service_Genomics_Readset");
863
+ }
864
+ /**
865
+ * Creates readsets by asynchronously importing the provided information.
866
+ * (readsets.import)
867
+ *
868
+ * @param GoogleGAL_ImportReadsetsRequest $postBody
869
+ * @param array $optParams Optional parameters.
870
+ * @return GoogleGAL_Service_Genomics_ImportReadsetsResponse
871
+ */
872
+ public function import(GoogleGAL_Service_Genomics_ImportReadsetsRequest $postBody, $optParams = array())
873
+ {
874
+ $params = array('postBody' => $postBody);
875
+ $params = array_merge($params, $optParams);
876
+ return $this->call('import', array($params), "GoogleGAL_Service_Genomics_ImportReadsetsResponse");
877
+ }
878
+ /**
879
+ * Updates a readset. This method supports patch semantics. (readsets.patch)
880
+ *
881
+ * @param string $readsetId
882
+ * The ID of the readset to be updated.
883
+ * @param GoogleGAL_Readset $postBody
884
+ * @param array $optParams Optional parameters.
885
+ * @return GoogleGAL_Service_Genomics_Readset
886
+ */
887
+ public function patch($readsetId, GoogleGAL_Service_Genomics_Readset $postBody, $optParams = array())
888
+ {
889
+ $params = array('readsetId' => $readsetId, 'postBody' => $postBody);
890
+ $params = array_merge($params, $optParams);
891
+ return $this->call('patch', array($params), "GoogleGAL_Service_Genomics_Readset");
892
+ }
893
+ /**
894
+ * Gets a list of readsets matching the criteria. (readsets.search)
895
+ *
896
+ * @param GoogleGAL_SearchReadsetsRequest $postBody
897
+ * @param array $optParams Optional parameters.
898
+ * @return GoogleGAL_Service_Genomics_SearchReadsetsResponse
899
+ */
900
+ public function search(GoogleGAL_Service_Genomics_SearchReadsetsRequest $postBody, $optParams = array())
901
+ {
902
+ $params = array('postBody' => $postBody);
903
+ $params = array_merge($params, $optParams);
904
+ return $this->call('search', array($params), "GoogleGAL_Service_Genomics_SearchReadsetsResponse");
905
+ }
906
+ /**
907
+ * Updates a readset. (readsets.update)
908
+ *
909
+ * @param string $readsetId
910
+ * The ID of the readset to be updated.
911
+ * @param GoogleGAL_Readset $postBody
912
+ * @param array $optParams Optional parameters.
913
+ * @return GoogleGAL_Service_Genomics_Readset
914
+ */
915
+ public function update($readsetId, GoogleGAL_Service_Genomics_Readset $postBody, $optParams = array())
916
+ {
917
+ $params = array('readsetId' => $readsetId, 'postBody' => $postBody);
918
+ $params = array_merge($params, $optParams);
919
+ return $this->call('update', array($params), "GoogleGAL_Service_Genomics_Readset");
920
+ }
921
+ }
922
+
923
+ /**
924
+ * The "variants" collection of methods.
925
+ * Typical usage is:
926
+ * <code>
927
+ * $genomicsService = new GoogleGAL_Service_Genomics(...);
928
+ * $variants = $genomicsService->variants;
929
+ * </code>
930
+ */
931
+ class GoogleGAL_Service_Genomics_Variants_Resource extends GoogleGAL_Service_Resource
932
+ {
933
+
934
+ /**
935
+ * Creates a new variant. (variants.create)
936
+ *
937
+ * @param GoogleGAL_Variant $postBody
938
+ * @param array $optParams Optional parameters.
939
+ * @return GoogleGAL_Service_Genomics_Variant
940
+ */
941
+ public function create(GoogleGAL_Service_Genomics_Variant $postBody, $optParams = array())
942
+ {
943
+ $params = array('postBody' => $postBody);
944
+ $params = array_merge($params, $optParams);
945
+ return $this->call('create', array($params), "GoogleGAL_Service_Genomics_Variant");
946
+ }
947
+ /**
948
+ * Deletes a variant. (variants.delete)
949
+ *
950
+ * @param string $variantId
951
+ * The ID of the variant to be deleted.
952
+ * @param array $optParams Optional parameters.
953
+ */
954
+ public function delete($variantId, $optParams = array())
955
+ {
956
+ $params = array('variantId' => $variantId);
957
+ $params = array_merge($params, $optParams);
958
+ return $this->call('delete', array($params));
959
+ }
960
+ /**
961
+ * Exports variant data to an external destination. (variants.export)
962
+ *
963
+ * @param GoogleGAL_ExportVariantsRequest $postBody
964
+ * @param array $optParams Optional parameters.
965
+ * @return GoogleGAL_Service_Genomics_ExportVariantsResponse
966
+ */
967
+ public function export(GoogleGAL_Service_Genomics_ExportVariantsRequest $postBody, $optParams = array())
968
+ {
969
+ $params = array('postBody' => $postBody);
970
+ $params = array_merge($params, $optParams);
971
+ return $this->call('export', array($params), "GoogleGAL_Service_Genomics_ExportVariantsResponse");
972
+ }
973
+ /**
974
+ * Gets a variant by ID. (variants.get)
975
+ *
976
+ * @param string $variantId
977
+ * The ID of the variant.
978
+ * @param array $optParams Optional parameters.
979
+ * @return GoogleGAL_Service_Genomics_Variant
980
+ */
981
+ public function get($variantId, $optParams = array())
982
+ {
983
+ $params = array('variantId' => $variantId);
984
+ $params = array_merge($params, $optParams);
985
+ return $this->call('get', array($params), "GoogleGAL_Service_Genomics_Variant");
986
+ }
987
+ /**
988
+ * Creates variant data by asynchronously importing the provided information.
989
+ * (variants.import)
990
+ *
991
+ * @param GoogleGAL_ImportVariantsRequest $postBody
992
+ * @param array $optParams Optional parameters.
993
+ * @return GoogleGAL_Service_Genomics_ImportVariantsResponse
994
+ */
995
+ public function import(GoogleGAL_Service_Genomics_ImportVariantsRequest $postBody, $optParams = array())
996
+ {
997
+ $params = array('postBody' => $postBody);
998
+ $params = array_merge($params, $optParams);
999
+ return $this->call('import', array($params), "GoogleGAL_Service_Genomics_ImportVariantsResponse");
1000
+ }
1001
+ /**
1002
+ * Updates a variant. This method supports patch semantics. (variants.patch)
1003
+ *
1004
+ * @param string $variantId
1005
+ * The ID of the variant to be updated..
1006
+ * @param GoogleGAL_Variant $postBody
1007
+ * @param array $optParams Optional parameters.
1008
+ * @return GoogleGAL_Service_Genomics_Variant
1009
+ */
1010
+ public function patch($variantId, GoogleGAL_Service_Genomics_Variant $postBody, $optParams = array())
1011
+ {
1012
+ $params = array('variantId' => $variantId, 'postBody' => $postBody);
1013
+ $params = array_merge($params, $optParams);
1014
+ return $this->call('patch', array($params), "GoogleGAL_Service_Genomics_Variant");
1015
+ }
1016
+ /**
1017
+ * Gets a list of variants matching the criteria. (variants.search)
1018
+ *
1019
+ * @param GoogleGAL_SearchVariantsRequest $postBody
1020
+ * @param array $optParams Optional parameters.
1021
+ * @return GoogleGAL_Service_Genomics_SearchVariantsResponse
1022
+ */
1023
+ public function search(GoogleGAL_Service_Genomics_SearchVariantsRequest $postBody, $optParams = array())
1024
+ {
1025
+ $params = array('postBody' => $postBody);
1026
+ $params = array_merge($params, $optParams);
1027
+ return $this->call('search', array($params), "GoogleGAL_Service_Genomics_SearchVariantsResponse");
1028
+ }
1029
+ /**
1030
+ * Updates a variant. (variants.update)
1031
+ *
1032
+ * @param string $variantId
1033
+ * The ID of the variant to be updated..
1034
+ * @param GoogleGAL_Variant $postBody
1035
+ * @param array $optParams Optional parameters.
1036
+ * @return GoogleGAL_Service_Genomics_Variant
1037
+ */
1038
+ public function update($variantId, GoogleGAL_Service_Genomics_Variant $postBody, $optParams = array())
1039
+ {
1040
+ $params = array('variantId' => $variantId, 'postBody' => $postBody);
1041
+ $params = array_merge($params, $optParams);
1042
+ return $this->call('update', array($params), "GoogleGAL_Service_Genomics_Variant");
1043
+ }
1044
+ }
1045
+
1046
+
1047
+
1048
+
1049
+ class GoogleGAL_Service_Genomics_Beacon extends GoogleGAL_Model
1050
+ {
1051
+ public $exists;
1052
+
1053
+ public function setExists($exists)
1054
+ {
1055
+ $this->exists = $exists;
1056
+ }
1057
+
1058
+ public function getExists()
1059
+ {
1060
+ return $this->exists;
1061
+ }
1062
+ }
1063
+
1064
+ class GoogleGAL_Service_Genomics_Call extends GoogleGAL_Collection
1065
+ {
1066
+ public $callsetId;
1067
+ public $callsetName;
1068
+ public $genotype;
1069
+ public $genotypeLikelihood;
1070
+ public $info;
1071
+ public $phaseset;
1072
+
1073
+ public function setCallsetId($callsetId)
1074
+ {
1075
+ $this->callsetId = $callsetId;
1076
+ }
1077
+
1078
+ public function getCallsetId()
1079
+ {
1080
+ return $this->callsetId;
1081
+ }
1082
+
1083
+ public function setCallsetName($callsetName)
1084
+ {
1085
+ $this->callsetName = $callsetName;
1086
+ }
1087
+
1088
+ public function getCallsetName()
1089
+ {
1090
+ return $this->callsetName;
1091
+ }
1092
+
1093
+ public function setGenotype($genotype)
1094
+ {
1095
+ $this->genotype = $genotype;
1096
+ }
1097
+
1098
+ public function getGenotype()
1099
+ {
1100
+ return $this->genotype;
1101
+ }
1102
+
1103
+ public function setGenotypeLikelihood($genotypeLikelihood)
1104
+ {
1105
+ $this->genotypeLikelihood = $genotypeLikelihood;
1106
+ }
1107
+
1108
+ public function getGenotypeLikelihood()
1109
+ {
1110
+ return $this->genotypeLikelihood;
1111
+ }
1112
+
1113
+ public function setInfo($info)
1114
+ {
1115
+ $this->info = $info;
1116
+ }
1117
+
1118
+ public function getInfo()
1119
+ {
1120
+ return $this->info;
1121
+ }
1122
+
1123
+ public function setPhaseset($phaseset)
1124
+ {
1125
+ $this->phaseset = $phaseset;
1126
+ }
1127
+
1128
+ public function getPhaseset()
1129
+ {
1130
+ return $this->phaseset;
1131
+ }
1132
+ }
1133
+
1134
+ class GoogleGAL_Service_Genomics_Callset extends GoogleGAL_Model
1135
+ {
1136
+ public $created;
1137
+ public $datasetId;
1138
+ public $id;
1139
+ public $info;
1140
+ public $name;
1141
+
1142
+ public function setCreated($created)
1143
+ {
1144
+ $this->created = $created;
1145
+ }
1146
+
1147
+ public function getCreated()
1148
+ {
1149
+ return $this->created;
1150
+ }
1151
+
1152
+ public function setDatasetId($datasetId)
1153
+ {
1154
+ $this->datasetId = $datasetId;
1155
+ }
1156
+
1157
+ public function getDatasetId()
1158
+ {
1159
+ return $this->datasetId;
1160
+ }
1161
+
1162
+ public function setId($id)
1163
+ {
1164
+ $this->id = $id;
1165
+ }
1166
+
1167
+ public function getId()
1168
+ {
1169
+ return $this->id;
1170
+ }
1171
+
1172
+ public function setInfo($info)
1173
+ {
1174
+ $this->info = $info;
1175
+ }
1176
+
1177
+ public function getInfo()
1178
+ {
1179
+ return $this->info;
1180
+ }
1181
+
1182
+ public function setName($name)
1183
+ {
1184
+ $this->name = $name;
1185
+ }
1186
+
1187
+ public function getName()
1188
+ {
1189
+ return $this->name;
1190
+ }
1191
+ }
1192
+
1193
+ class GoogleGAL_Service_Genomics_Dataset extends GoogleGAL_Model
1194
+ {
1195
+ public $id;
1196
+ public $isPublic;
1197
+ public $projectId;
1198
+
1199
+ public function setId($id)
1200
+ {
1201
+ $this->id = $id;
1202
+ }
1203
+
1204
+ public function getId()
1205
+ {
1206
+ return $this->id;
1207
+ }
1208
+
1209
+ public function setIsPublic($isPublic)
1210
+ {
1211
+ $this->isPublic = $isPublic;
1212
+ }
1213
+
1214
+ public function getIsPublic()
1215
+ {
1216
+ return $this->isPublic;
1217
+ }
1218
+
1219
+ public function setProjectId($projectId)
1220
+ {
1221
+ $this->projectId = $projectId;
1222
+ }
1223
+
1224
+ public function getProjectId()
1225
+ {
1226
+ return $this->projectId;
1227
+ }
1228
+ }
1229
+
1230
+ class GoogleGAL_Service_Genomics_ExperimentalCreateJobRequest extends GoogleGAL_Collection
1231
+ {
1232
+ public $align;
1233
+ public $callVariants;
1234
+ public $gcsOutputPath;
1235
+ public $projectId;
1236
+ public $sourceUris;
1237
+
1238
+ public function setAlign($align)
1239
+ {
1240
+ $this->align = $align;
1241
+ }
1242
+
1243
+ public function getAlign()
1244
+ {
1245
+ return $this->align;
1246
+ }
1247
+
1248
+ public function setCallVariants($callVariants)
1249
+ {
1250
+ $this->callVariants = $callVariants;
1251
+ }
1252
+
1253
+ public function getCallVariants()
1254
+ {
1255
+ return $this->callVariants;
1256
+ }
1257
+
1258
+ public function setGcsOutputPath($gcsOutputPath)
1259
+ {
1260
+ $this->gcsOutputPath = $gcsOutputPath;
1261
+ }
1262
+
1263
+ public function getGcsOutputPath()
1264
+ {
1265
+ return $this->gcsOutputPath;
1266
+ }
1267
+
1268
+ public function setProjectId($projectId)
1269
+ {
1270
+ $this->projectId = $projectId;
1271
+ }
1272
+
1273
+ public function getProjectId()
1274
+ {
1275
+ return $this->projectId;
1276
+ }
1277
+
1278
+ public function setSourceUris($sourceUris)
1279
+ {
1280
+ $this->sourceUris = $sourceUris;
1281
+ }
1282
+
1283
+ public function getSourceUris()
1284
+ {
1285
+ return $this->sourceUris;
1286
+ }
1287
+ }
1288
+
1289
+ class GoogleGAL_Service_Genomics_ExperimentalCreateJobResponse extends GoogleGAL_Model
1290
+ {
1291
+ public $jobId;
1292
+
1293
+ public function setJobId($jobId)
1294
+ {
1295
+ $this->jobId = $jobId;
1296
+ }
1297
+
1298
+ public function getJobId()
1299
+ {
1300
+ return $this->jobId;
1301
+ }
1302
+ }
1303
+
1304
+ class GoogleGAL_Service_Genomics_ExportReadsetsRequest extends GoogleGAL_Collection
1305
+ {
1306
+ public $exportUri;
1307
+ public $projectId;
1308
+ public $readsetIds;
1309
+
1310
+ public function setExportUri($exportUri)
1311
+ {
1312
+ $this->exportUri = $exportUri;
1313
+ }
1314
+
1315
+ public function getExportUri()
1316
+ {
1317
+ return $this->exportUri;
1318
+ }
1319
+
1320
+ public function setProjectId($projectId)
1321
+ {
1322
+ $this->projectId = $projectId;
1323
+ }
1324
+
1325
+ public function getProjectId()
1326
+ {
1327
+ return $this->projectId;
1328
+ }
1329
+
1330
+ public function setReadsetIds($readsetIds)
1331
+ {
1332
+ $this->readsetIds = $readsetIds;
1333
+ }
1334
+
1335
+ public function getReadsetIds()
1336
+ {
1337
+ return $this->readsetIds;
1338
+ }
1339
+ }
1340
+
1341
+ class GoogleGAL_Service_Genomics_ExportReadsetsResponse extends GoogleGAL_Model
1342
+ {
1343
+ public $exportId;
1344
+
1345
+ public function setExportId($exportId)
1346
+ {
1347
+ $this->exportId = $exportId;
1348
+ }
1349
+
1350
+ public function getExportId()
1351
+ {
1352
+ return $this->exportId;
1353
+ }
1354
+ }
1355
+
1356
+ class GoogleGAL_Service_Genomics_ExportVariantsRequest extends GoogleGAL_Collection
1357
+ {
1358
+ public $callsetIds;
1359
+ public $datasetIds;
1360
+ public $exportUri;
1361
+ public $format;
1362
+ public $projectId;
1363
+
1364
+ public function setCallsetIds($callsetIds)
1365
+ {
1366
+ $this->callsetIds = $callsetIds;
1367
+ }
1368
+
1369
+ public function getCallsetIds()
1370
+ {
1371
+ return $this->callsetIds;
1372
+ }
1373
+
1374
+ public function setDatasetIds($datasetIds)
1375
+ {
1376
+ $this->datasetIds = $datasetIds;
1377
+ }
1378
+
1379
+ public function getDatasetIds()
1380
+ {
1381
+ return $this->datasetIds;
1382
+ }
1383
+
1384
+ public function setExportUri($exportUri)
1385
+ {
1386
+ $this->exportUri = $exportUri;
1387
+ }
1388
+
1389
+ public function getExportUri()
1390
+ {
1391
+ return $this->exportUri;
1392
+ }
1393
+
1394
+ public function setFormat($format)
1395
+ {
1396
+ $this->format = $format;
1397
+ }
1398
+
1399
+ public function getFormat()
1400
+ {
1401
+ return $this->format;
1402
+ }
1403
+
1404
+ public function setProjectId($projectId)
1405
+ {
1406
+ $this->projectId = $projectId;
1407
+ }
1408
+
1409
+ public function getProjectId()
1410
+ {
1411
+ return $this->projectId;
1412
+ }
1413
+ }
1414
+
1415
+ class GoogleGAL_Service_Genomics_ExportVariantsResponse extends GoogleGAL_Model
1416
+ {
1417
+ public $jobId;
1418
+
1419
+ public function setJobId($jobId)
1420
+ {
1421
+ $this->jobId = $jobId;
1422
+ }
1423
+
1424
+ public function getJobId()
1425
+ {
1426
+ return $this->jobId;
1427
+ }
1428
+ }
1429
+
1430
+ class GoogleGAL_Service_Genomics_Header extends GoogleGAL_Model
1431
+ {
1432
+ public $sortingOrder;
1433
+ public $version;
1434
+
1435
+ public function setSortingOrder($sortingOrder)
1436
+ {
1437
+ $this->sortingOrder = $sortingOrder;
1438
+ }
1439
+
1440
+ public function getSortingOrder()
1441
+ {
1442
+ return $this->sortingOrder;
1443
+ }
1444
+
1445
+ public function setVersion($version)
1446
+ {
1447
+ $this->version = $version;
1448
+ }
1449
+
1450
+ public function getVersion()
1451
+ {
1452
+ return $this->version;
1453
+ }
1454
+ }
1455
+
1456
+ class GoogleGAL_Service_Genomics_HeaderSection extends GoogleGAL_Collection
1457
+ {
1458
+ public $comments;
1459
+ public $fileUri;
1460
+ protected $headersType = 'GoogleGAL_Service_Genomics_Header';
1461
+ protected $headersDataType = 'array';
1462
+ protected $programsType = 'GoogleGAL_Service_Genomics_Program';
1463
+ protected $programsDataType = 'array';
1464
+ protected $readGroupsType = 'GoogleGAL_Service_Genomics_ReadGroup';
1465
+ protected $readGroupsDataType = 'array';
1466
+ protected $refSequencesType = 'GoogleGAL_Service_Genomics_ReferenceSequence';
1467
+ protected $refSequencesDataType = 'array';
1468
+
1469
+ public function setComments($comments)
1470
+ {
1471
+ $this->comments = $comments;
1472
+ }
1473
+
1474
+ public function getComments()
1475
+ {
1476
+ return $this->comments;
1477
+ }
1478
+
1479
+ public function setFileUri($fileUri)
1480
+ {
1481
+ $this->fileUri = $fileUri;
1482
+ }
1483
+
1484
+ public function getFileUri()
1485
+ {
1486
+ return $this->fileUri;
1487
+ }
1488
+
1489
+ public function setHeaders($headers)
1490
+ {
1491
+ $this->headers = $headers;
1492
+ }
1493
+
1494
+ public function getHeaders()
1495
+ {
1496
+ return $this->headers;
1497
+ }
1498
+
1499
+ public function setPrograms($programs)
1500
+ {
1501
+ $this->programs = $programs;
1502
+ }
1503
+
1504
+ public function getPrograms()
1505
+ {
1506
+ return $this->programs;
1507
+ }
1508
+
1509
+ public function setReadGroups($readGroups)
1510
+ {
1511
+ $this->readGroups = $readGroups;
1512
+ }
1513
+
1514
+ public function getReadGroups()
1515
+ {
1516
+ return $this->readGroups;
1517
+ }
1518
+
1519
+ public function setRefSequences($refSequences)
1520
+ {
1521
+ $this->refSequences = $refSequences;
1522
+ }
1523
+
1524
+ public function getRefSequences()
1525
+ {
1526
+ return $this->refSequences;
1527
+ }
1528
+ }
1529
+
1530
+ class GoogleGAL_Service_Genomics_ImportReadsetsRequest extends GoogleGAL_Collection
1531
+ {
1532
+ public $datasetId;
1533
+ public $sourceUris;
1534
+
1535
+ public function setDatasetId($datasetId)
1536
+ {
1537
+ $this->datasetId = $datasetId;
1538
+ }
1539
+
1540
+ public function getDatasetId()
1541
+ {
1542
+ return $this->datasetId;
1543
+ }
1544
+
1545
+ public function setSourceUris($sourceUris)
1546
+ {
1547
+ $this->sourceUris = $sourceUris;
1548
+ }
1549
+
1550
+ public function getSourceUris()
1551
+ {
1552
+ return $this->sourceUris;
1553
+ }
1554
+ }
1555
+
1556
+ class GoogleGAL_Service_Genomics_ImportReadsetsResponse extends GoogleGAL_Model
1557
+ {
1558
+ public $jobId;
1559
+
1560
+ public function setJobId($jobId)
1561
+ {
1562
+ $this->jobId = $jobId;
1563
+ }
1564
+
1565
+ public function getJobId()
1566
+ {
1567
+ return $this->jobId;
1568
+ }
1569
+ }
1570
+
1571
+ class GoogleGAL_Service_Genomics_ImportVariantsRequest extends GoogleGAL_Collection
1572
+ {
1573
+ public $datasetId;
1574
+ public $sourceUris;
1575
+
1576
+ public function setDatasetId($datasetId)
1577
+ {
1578
+ $this->datasetId = $datasetId;
1579
+ }
1580
+
1581
+ public function getDatasetId()
1582
+ {
1583
+ return $this->datasetId;
1584
+ }
1585
+
1586
+ public function setSourceUris($sourceUris)
1587
+ {
1588
+ $this->sourceUris = $sourceUris;
1589
+ }
1590
+
1591
+ public function getSourceUris()
1592
+ {
1593
+ return $this->sourceUris;
1594
+ }
1595
+ }
1596
+
1597
+ class GoogleGAL_Service_Genomics_ImportVariantsResponse extends GoogleGAL_Model
1598
+ {
1599
+ public $jobId;
1600
+
1601
+ public function setJobId($jobId)
1602
+ {
1603
+ $this->jobId = $jobId;
1604
+ }
1605
+
1606
+ public function getJobId()
1607
+ {
1608
+ return $this->jobId;
1609
+ }
1610
+ }
1611
+
1612
+ class GoogleGAL_Service_Genomics_Job extends GoogleGAL_Collection
1613
+ {
1614
+ public $description;
1615
+ public $errors;
1616
+ public $id;
1617
+ public $importedIds;
1618
+ public $projectId;
1619
+ public $status;
1620
+ public $warnings;
1621
+
1622
+ public function setDescription($description)
1623
+ {
1624
+ $this->description = $description;
1625
+ }
1626
+
1627
+ public function getDescription()
1628
+ {
1629
+ return $this->description;
1630
+ }
1631
+
1632
+ public function setErrors($errors)
1633
+ {
1634
+ $this->errors = $errors;
1635
+ }
1636
+
1637
+ public function getErrors()
1638
+ {
1639
+ return $this->errors;
1640
+ }
1641
+
1642
+ public function setId($id)
1643
+ {
1644
+ $this->id = $id;
1645
+ }
1646
+
1647
+ public function getId()
1648
+ {
1649
+ return $this->id;
1650
+ }
1651
+
1652
+ public function setImportedIds($importedIds)
1653
+ {
1654
+ $this->importedIds = $importedIds;
1655
+ }
1656
+
1657
+ public function getImportedIds()
1658
+ {
1659
+ return $this->importedIds;
1660
+ }
1661
+
1662
+ public function setProjectId($projectId)
1663
+ {
1664
+ $this->projectId = $projectId;
1665
+ }
1666
+
1667
+ public function getProjectId()
1668
+ {
1669
+ return $this->projectId;
1670
+ }
1671
+
1672
+ public function setStatus($status)
1673
+ {
1674
+ $this->status = $status;
1675
+ }
1676
+
1677
+ public function getStatus()
1678
+ {
1679
+ return $this->status;
1680
+ }
1681
+
1682
+ public function setWarnings($warnings)
1683
+ {
1684
+ $this->warnings = $warnings;
1685
+ }
1686
+
1687
+ public function getWarnings()
1688
+ {
1689
+ return $this->warnings;
1690
+ }
1691
+ }
1692
+
1693
+ class GoogleGAL_Service_Genomics_ListDatasetsResponse extends GoogleGAL_Collection
1694
+ {
1695
+ protected $datasetsType = 'GoogleGAL_Service_Genomics_Dataset';
1696
+ protected $datasetsDataType = 'array';
1697
+ public $nextPageToken;
1698
+
1699
+ public function setDatasets($datasets)
1700
+ {
1701
+ $this->datasets = $datasets;
1702
+ }
1703
+
1704
+ public function getDatasets()
1705
+ {
1706
+ return $this->datasets;
1707
+ }
1708
+
1709
+ public function setNextPageToken($nextPageToken)
1710
+ {
1711
+ $this->nextPageToken = $nextPageToken;
1712
+ }
1713
+
1714
+ public function getNextPageToken()
1715
+ {
1716
+ return $this->nextPageToken;
1717
+ }
1718
+ }
1719
+
1720
+ class GoogleGAL_Service_Genomics_Program extends GoogleGAL_Model
1721
+ {
1722
+ public $commandLine;
1723
+ public $id;
1724
+ public $name;
1725
+ public $prevProgramId;
1726
+ public $version;
1727
+
1728
+ public function setCommandLine($commandLine)
1729
+ {
1730
+ $this->commandLine = $commandLine;
1731
+ }
1732
+
1733
+ public function getCommandLine()
1734
+ {
1735
+ return $this->commandLine;
1736
+ }
1737
+
1738
+ public function setId($id)
1739
+ {
1740
+ $this->id = $id;
1741
+ }
1742
+
1743
+ public function getId()
1744
+ {
1745
+ return $this->id;
1746
+ }
1747
+
1748
+ public function setName($name)
1749
+ {
1750
+ $this->name = $name;
1751
+ }
1752
+
1753
+ public function getName()
1754
+ {
1755
+ return $this->name;
1756
+ }
1757
+
1758
+ public function setPrevProgramId($prevProgramId)
1759
+ {
1760
+ $this->prevProgramId = $prevProgramId;
1761
+ }
1762
+
1763
+ public function getPrevProgramId()
1764
+ {
1765
+ return $this->prevProgramId;
1766
+ }
1767
+
1768
+ public function setVersion($version)
1769
+ {
1770
+ $this->version = $version;
1771
+ }
1772
+
1773
+ public function getVersion()
1774
+ {
1775
+ return $this->version;
1776
+ }
1777
+ }
1778
+
1779
+ class GoogleGAL_Service_Genomics_Read extends GoogleGAL_Model
1780
+ {
1781
+ public $alignedBases;
1782
+ public $baseQuality;
1783
+ public $cigar;
1784
+ public $flags;
1785
+ public $id;
1786
+ public $mappingQuality;
1787
+ public $matePosition;
1788
+ public $mateReferenceSequenceName;
1789
+ public $name;
1790
+ public $originalBases;
1791
+ public $position;
1792
+ public $readsetId;
1793
+ public $referenceSequenceName;
1794
+ public $tags;
1795
+ public $templateLength;
1796
+
1797
+ public function setAlignedBases($alignedBases)
1798
+ {
1799
+ $this->alignedBases = $alignedBases;
1800
+ }
1801
+
1802
+ public function getAlignedBases()
1803
+ {
1804
+ return $this->alignedBases;
1805
+ }
1806
+
1807
+ public function setBaseQuality($baseQuality)
1808
+ {
1809
+ $this->baseQuality = $baseQuality;
1810
+ }
1811
+
1812
+ public function getBaseQuality()
1813
+ {
1814
+ return $this->baseQuality;
1815
+ }
1816
+
1817
+ public function setCigar($cigar)
1818
+ {
1819
+ $this->cigar = $cigar;
1820
+ }
1821
+
1822
+ public function getCigar()
1823
+ {
1824
+ return $this->cigar;
1825
+ }
1826
+
1827
+ public function setFlags($flags)
1828
+ {
1829
+ $this->flags = $flags;
1830
+ }
1831
+
1832
+ public function getFlags()
1833
+ {
1834
+ return $this->flags;
1835
+ }
1836
+
1837
+ public function setId($id)
1838
+ {
1839
+ $this->id = $id;
1840
+ }
1841
+
1842
+ public function getId()
1843
+ {
1844
+ return $this->id;
1845
+ }
1846
+
1847
+ public function setMappingQuality($mappingQuality)
1848
+ {
1849
+ $this->mappingQuality = $mappingQuality;
1850
+ }
1851
+
1852
+ public function getMappingQuality()
1853
+ {
1854
+ return $this->mappingQuality;
1855
+ }
1856
+
1857
+ public function setMatePosition($matePosition)
1858
+ {
1859
+ $this->matePosition = $matePosition;
1860
+ }
1861
+
1862
+ public function getMatePosition()
1863
+ {
1864
+ return $this->matePosition;
1865
+ }
1866
+
1867
+ public function setMateReferenceSequenceName($mateReferenceSequenceName)
1868
+ {
1869
+ $this->mateReferenceSequenceName = $mateReferenceSequenceName;
1870
+ }
1871
+
1872
+ public function getMateReferenceSequenceName()
1873
+ {
1874
+ return $this->mateReferenceSequenceName;
1875
+ }
1876
+
1877
+ public function setName($name)
1878
+ {
1879
+ $this->name = $name;
1880
+ }
1881
+
1882
+ public function getName()
1883
+ {
1884
+ return $this->name;
1885
+ }
1886
+
1887
+ public function setOriginalBases($originalBases)
1888
+ {
1889
+ $this->originalBases = $originalBases;
1890
+ }
1891
+
1892
+ public function getOriginalBases()
1893
+ {
1894
+ return $this->originalBases;
1895
+ }
1896
+
1897
+ public function setPosition($position)
1898
+ {
1899
+ $this->position = $position;
1900
+ }
1901
+
1902
+ public function getPosition()
1903
+ {
1904
+ return $this->position;
1905
+ }
1906
+
1907
+ public function setReadsetId($readsetId)
1908
+ {
1909
+ $this->readsetId = $readsetId;
1910
+ }
1911
+
1912
+ public function getReadsetId()
1913
+ {
1914
+ return $this->readsetId;
1915
+ }
1916
+
1917
+ public function setReferenceSequenceName($referenceSequenceName)
1918
+ {
1919
+ $this->referenceSequenceName = $referenceSequenceName;
1920
+ }
1921
+
1922
+ public function getReferenceSequenceName()
1923
+ {
1924
+ return $this->referenceSequenceName;
1925
+ }
1926
+
1927
+ public function setTags($tags)
1928
+ {
1929
+ $this->tags = $tags;
1930
+ }
1931
+
1932
+ public function getTags()
1933
+ {
1934
+ return $this->tags;
1935
+ }
1936
+
1937
+ public function setTemplateLength($templateLength)
1938
+ {
1939
+ $this->templateLength = $templateLength;
1940
+ }
1941
+
1942
+ public function getTemplateLength()
1943
+ {
1944
+ return $this->templateLength;
1945
+ }
1946
+ }
1947
+
1948
+ class GoogleGAL_Service_Genomics_ReadGroup extends GoogleGAL_Model
1949
+ {
1950
+ public $date;
1951
+ public $description;
1952
+ public $flowOrder;
1953
+ public $id;
1954
+ public $keySequence;
1955
+ public $library;
1956
+ public $platformUnit;
1957
+ public $predictedInsertSize;
1958
+ public $processingProgram;
1959
+ public $sample;
1960
+ public $sequencingCenterName;
1961
+ public $sequencingTechnology;
1962
+
1963
+ public function setDate($date)
1964
+ {
1965
+ $this->date = $date;
1966
+ }
1967
+
1968
+ public function getDate()
1969
+ {
1970
+ return $this->date;
1971
+ }
1972
+
1973
+ public function setDescription($description)
1974
+ {
1975
+ $this->description = $description;
1976
+ }
1977
+
1978
+ public function getDescription()
1979
+ {
1980
+ return $this->description;
1981
+ }
1982
+
1983
+ public function setFlowOrder($flowOrder)
1984
+ {
1985
+ $this->flowOrder = $flowOrder;
1986
+ }
1987
+
1988
+ public function getFlowOrder()
1989
+ {
1990
+ return $this->flowOrder;
1991
+ }
1992
+
1993
+ public function setId($id)
1994
+ {
1995
+ $this->id = $id;
1996
+ }
1997
+
1998
+ public function getId()
1999
+ {
2000
+ return $this->id;
2001
+ }
2002
+
2003
+ public function setKeySequence($keySequence)
2004
+ {
2005
+ $this->keySequence = $keySequence;
2006
+ }
2007
+
2008
+ public function getKeySequence()
2009
+ {
2010
+ return $this->keySequence;
2011
+ }
2012
+
2013
+ public function setLibrary($library)
2014
+ {
2015
+ $this->library = $library;
2016
+ }
2017
+
2018
+ public function getLibrary()
2019
+ {
2020
+ return $this->library;
2021
+ }
2022
+
2023
+ public function setPlatformUnit($platformUnit)
2024
+ {
2025
+ $this->platformUnit = $platformUnit;
2026
+ }
2027
+
2028
+ public function getPlatformUnit()
2029
+ {
2030
+ return $this->platformUnit;
2031
+ }
2032
+
2033
+ public function setPredictedInsertSize($predictedInsertSize)
2034
+ {
2035
+ $this->predictedInsertSize = $predictedInsertSize;
2036
+ }
2037
+
2038
+ public function getPredictedInsertSize()
2039
+ {
2040
+ return $this->predictedInsertSize;
2041
+ }
2042
+
2043
+ public function setProcessingProgram($processingProgram)
2044
+ {
2045
+ $this->processingProgram = $processingProgram;
2046
+ }
2047
+
2048
+ public function getProcessingProgram()
2049
+ {
2050
+ return $this->processingProgram;
2051
+ }
2052
+
2053
+ public function setSample($sample)
2054
+ {
2055
+ $this->sample = $sample;
2056
+ }
2057
+
2058
+ public function getSample()
2059
+ {
2060
+ return $this->sample;
2061
+ }
2062
+
2063
+ public function setSequencingCenterName($sequencingCenterName)
2064
+ {
2065
+ $this->sequencingCenterName = $sequencingCenterName;
2066
+ }
2067
+
2068
+ public function getSequencingCenterName()
2069
+ {
2070
+ return $this->sequencingCenterName;
2071
+ }
2072
+
2073
+ public function setSequencingTechnology($sequencingTechnology)
2074
+ {
2075
+ $this->sequencingTechnology = $sequencingTechnology;
2076
+ }
2077
+
2078
+ public function getSequencingTechnology()
2079
+ {
2080
+ return $this->sequencingTechnology;
2081
+ }
2082
+ }
2083
+
2084
+ class GoogleGAL_Service_Genomics_Readset extends GoogleGAL_Collection
2085
+ {
2086
+ public $created;
2087
+ public $datasetId;
2088
+ protected $fileDataType = 'GoogleGAL_Service_Genomics_HeaderSection';
2089
+ protected $fileDataDataType = 'array';
2090
+ public $id;
2091
+ public $name;
2092
+ public $readCount;
2093
+
2094
+ public function setCreated($created)
2095
+ {
2096
+ $this->created = $created;
2097
+ }
2098
+
2099
+ public function getCreated()
2100
+ {
2101
+ return $this->created;
2102
+ }
2103
+
2104
+ public function setDatasetId($datasetId)
2105
+ {
2106
+ $this->datasetId = $datasetId;
2107
+ }
2108
+
2109
+ public function getDatasetId()
2110
+ {
2111
+ return $this->datasetId;
2112
+ }
2113
+
2114
+ public function setFileData($fileData)
2115
+ {
2116
+ $this->fileData = $fileData;
2117
+ }
2118
+
2119
+ public function getFileData()
2120
+ {
2121
+ return $this->fileData;
2122
+ }
2123
+
2124
+ public function setId($id)
2125
+ {
2126
+ $this->id = $id;
2127
+ }
2128
+
2129
+ public function getId()
2130
+ {
2131
+ return $this->id;
2132
+ }
2133
+
2134
+ public function setName($name)
2135
+ {
2136
+ $this->name = $name;
2137
+ }
2138
+
2139
+ public function getName()
2140
+ {
2141
+ return $this->name;
2142
+ }
2143
+
2144
+ public function setReadCount($readCount)
2145
+ {
2146
+ $this->readCount = $readCount;
2147
+ }
2148
+
2149
+ public function getReadCount()
2150
+ {
2151
+ return $this->readCount;
2152
+ }
2153
+ }
2154
+
2155
+ class GoogleGAL_Service_Genomics_ReferenceSequence extends GoogleGAL_Model
2156
+ {
2157
+ public $assemblyId;
2158
+ public $length;
2159
+ public $md5Checksum;
2160
+ public $name;
2161
+ public $species;
2162
+ public $uri;
2163
+
2164
+ public function setAssemblyId($assemblyId)
2165
+ {
2166
+ $this->assemblyId = $assemblyId;
2167
+ }
2168
+
2169
+ public function getAssemblyId()
2170
+ {
2171
+ return $this->assemblyId;
2172
+ }
2173
+
2174
+ public function setLength($length)
2175
+ {
2176
+ $this->length = $length;
2177
+ }
2178
+
2179
+ public function getLength()
2180
+ {
2181
+ return $this->length;
2182
+ }
2183
+
2184
+ public function setMd5Checksum($md5Checksum)
2185
+ {
2186
+ $this->md5Checksum = $md5Checksum;
2187
+ }
2188
+
2189
+ public function getMd5Checksum()
2190
+ {
2191
+ return $this->md5Checksum;
2192
+ }
2193
+
2194
+ public function setName($name)
2195
+ {
2196
+ $this->name = $name;
2197
+ }
2198
+
2199
+ public function getName()
2200
+ {
2201
+ return $this->name;
2202
+ }
2203
+
2204
+ public function setSpecies($species)
2205
+ {
2206
+ $this->species = $species;
2207
+ }
2208
+
2209
+ public function getSpecies()
2210
+ {
2211
+ return $this->species;
2212
+ }
2213
+
2214
+ public function setUri($uri)
2215
+ {
2216
+ $this->uri = $uri;
2217
+ }
2218
+
2219
+ public function getUri()
2220
+ {
2221
+ return $this->uri;
2222
+ }
2223
+ }
2224
+
2225
+ class GoogleGAL_Service_Genomics_SearchCallsetsRequest extends GoogleGAL_Collection
2226
+ {
2227
+ public $datasetIds;
2228
+ public $name;
2229
+ public $pageToken;
2230
+
2231
+ public function setDatasetIds($datasetIds)
2232
+ {
2233
+ $this->datasetIds = $datasetIds;
2234
+ }
2235
+
2236
+ public function getDatasetIds()
2237
+ {
2238
+ return $this->datasetIds;
2239
+ }
2240
+
2241
+ public function setName($name)
2242
+ {
2243
+ $this->name = $name;
2244
+ }
2245
+
2246
+ public function getName()
2247
+ {
2248
+ return $this->name;
2249
+ }
2250
+
2251
+ public function setPageToken($pageToken)
2252
+ {
2253
+ $this->pageToken = $pageToken;
2254
+ }
2255
+
2256
+ public function getPageToken()
2257
+ {
2258
+ return $this->pageToken;
2259
+ }
2260
+ }
2261
+
2262
+ class GoogleGAL_Service_Genomics_SearchCallsetsResponse extends GoogleGAL_Collection
2263
+ {
2264
+ protected $callsetsType = 'GoogleGAL_Service_Genomics_Callset';
2265
+ protected $callsetsDataType = 'array';
2266
+ public $nextPageToken;
2267
+
2268
+ public function setCallsets($callsets)
2269
+ {
2270
+ $this->callsets = $callsets;
2271
+ }
2272
+
2273
+ public function getCallsets()
2274
+ {
2275
+ return $this->callsets;
2276
+ }
2277
+
2278
+ public function setNextPageToken($nextPageToken)
2279
+ {
2280
+ $this->nextPageToken = $nextPageToken;
2281
+ }
2282
+
2283
+ public function getNextPageToken()
2284
+ {
2285
+ return $this->nextPageToken;
2286
+ }
2287
+ }
2288
+
2289
+ class GoogleGAL_Service_Genomics_SearchReadsRequest extends GoogleGAL_Collection
2290
+ {
2291
+ public $pageToken;
2292
+ public $readsetIds;
2293
+ public $sequenceEnd;
2294
+ public $sequenceName;
2295
+ public $sequenceStart;
2296
+
2297
+ public function setPageToken($pageToken)
2298
+ {
2299
+ $this->pageToken = $pageToken;
2300
+ }
2301
+
2302
+ public function getPageToken()
2303
+ {
2304
+ return $this->pageToken;
2305
+ }
2306
+
2307
+ public function setReadsetIds($readsetIds)
2308
+ {
2309
+ $this->readsetIds = $readsetIds;
2310
+ }
2311
+
2312
+ public function getReadsetIds()
2313
+ {
2314
+ return $this->readsetIds;
2315
+ }
2316
+
2317
+ public function setSequenceEnd($sequenceEnd)
2318
+ {
2319
+ $this->sequenceEnd = $sequenceEnd;
2320
+ }
2321
+
2322
+ public function getSequenceEnd()
2323
+ {
2324
+ return $this->sequenceEnd;
2325
+ }
2326
+
2327
+ public function setSequenceName($sequenceName)
2328
+ {
2329
+ $this->sequenceName = $sequenceName;
2330
+ }
2331
+
2332
+ public function getSequenceName()
2333
+ {
2334
+ return $this->sequenceName;
2335
+ }
2336
+
2337
+ public function setSequenceStart($sequenceStart)
2338
+ {
2339
+ $this->sequenceStart = $sequenceStart;
2340
+ }
2341
+
2342
+ public function getSequenceStart()
2343
+ {
2344
+ return $this->sequenceStart;
2345
+ }
2346
+ }
2347
+
2348
+ class GoogleGAL_Service_Genomics_SearchReadsResponse extends GoogleGAL_Collection
2349
+ {
2350
+ public $nextPageToken;
2351
+ protected $readsType = 'GoogleGAL_Service_Genomics_Read';
2352
+ protected $readsDataType = 'array';
2353
+
2354
+ public function setNextPageToken($nextPageToken)
2355
+ {
2356
+ $this->nextPageToken = $nextPageToken;
2357
+ }
2358
+
2359
+ public function getNextPageToken()
2360
+ {
2361
+ return $this->nextPageToken;
2362
+ }
2363
+
2364
+ public function setReads($reads)
2365
+ {
2366
+ $this->reads = $reads;
2367
+ }
2368
+
2369
+ public function getReads()
2370
+ {
2371
+ return $this->reads;
2372
+ }
2373
+ }
2374
+
2375
+ class GoogleGAL_Service_Genomics_SearchReadsetsRequest extends GoogleGAL_Collection
2376
+ {
2377
+ public $datasetIds;
2378
+ public $name;
2379
+ public $pageToken;
2380
+
2381
+ public function setDatasetIds($datasetIds)
2382
+ {
2383
+ $this->datasetIds = $datasetIds;
2384
+ }
2385
+
2386
+ public function getDatasetIds()
2387
+ {
2388
+ return $this->datasetIds;
2389
+ }
2390
+
2391
+ public function setName($name)
2392
+ {
2393
+ $this->name = $name;
2394
+ }
2395
+
2396
+ public function getName()
2397
+ {
2398
+ return $this->name;
2399
+ }
2400
+
2401
+ public function setPageToken($pageToken)
2402
+ {
2403
+ $this->pageToken = $pageToken;
2404
+ }
2405
+
2406
+ public function getPageToken()
2407
+ {
2408
+ return $this->pageToken;
2409
+ }
2410
+ }
2411
+
2412
+ class GoogleGAL_Service_Genomics_SearchReadsetsResponse extends GoogleGAL_Collection
2413
+ {
2414
+ public $nextPageToken;
2415
+ protected $readsetsType = 'GoogleGAL_Service_Genomics_Readset';
2416
+ protected $readsetsDataType = 'array';
2417
+
2418
+ public function setNextPageToken($nextPageToken)
2419
+ {
2420
+ $this->nextPageToken = $nextPageToken;
2421
+ }
2422
+
2423
+ public function getNextPageToken()
2424
+ {
2425
+ return $this->nextPageToken;
2426
+ }
2427
+
2428
+ public function setReadsets($readsets)
2429
+ {
2430
+ $this->readsets = $readsets;
2431
+ }
2432
+
2433
+ public function getReadsets()
2434
+ {
2435
+ return $this->readsets;
2436
+ }
2437
+ }
2438
+
2439
+ class GoogleGAL_Service_Genomics_SearchVariantsRequest extends GoogleGAL_Collection
2440
+ {
2441
+ public $callsetIds;
2442
+ public $callsetNames;
2443
+ public $contig;
2444
+ public $datasetId;
2445
+ public $endPosition;
2446
+ public $maxResults;
2447
+ public $pageToken;
2448
+ public $startPosition;
2449
+ public $variantName;
2450
+
2451
+ public function setCallsetIds($callsetIds)
2452
+ {
2453
+ $this->callsetIds = $callsetIds;
2454
+ }
2455
+
2456
+ public function getCallsetIds()
2457
+ {
2458
+ return $this->callsetIds;
2459
+ }
2460
+
2461
+ public function setCallsetNames($callsetNames)
2462
+ {
2463
+ $this->callsetNames = $callsetNames;
2464
+ }
2465
+
2466
+ public function getCallsetNames()
2467
+ {
2468
+ return $this->callsetNames;
2469
+ }
2470
+
2471
+ public function setContig($contig)
2472
+ {
2473
+ $this->contig = $contig;
2474
+ }
2475
+
2476
+ public function getContig()
2477
+ {
2478
+ return $this->contig;
2479
+ }
2480
+
2481
+ public function setDatasetId($datasetId)
2482
+ {
2483
+ $this->datasetId = $datasetId;
2484
+ }
2485
+
2486
+ public function getDatasetId()
2487
+ {
2488
+ return $this->datasetId;
2489
+ }
2490
+
2491
+ public function setEndPosition($endPosition)
2492
+ {
2493
+ $this->endPosition = $endPosition;
2494
+ }
2495
+
2496
+ public function getEndPosition()
2497
+ {
2498
+ return $this->endPosition;
2499
+ }
2500
+
2501
+ public function setMaxResults($maxResults)
2502
+ {
2503
+ $this->maxResults = $maxResults;
2504
+ }
2505
+
2506
+ public function getMaxResults()
2507
+ {
2508
+ return $this->maxResults;
2509
+ }
2510
+
2511
+ public function setPageToken($pageToken)
2512
+ {
2513
+ $this->pageToken = $pageToken;
2514
+ }
2515
+
2516
+ public function getPageToken()
2517
+ {
2518
+ return $this->pageToken;
2519
+ }
2520
+
2521
+ public function setStartPosition($startPosition)
2522
+ {
2523
+ $this->startPosition = $startPosition;
2524
+ }
2525
+
2526
+ public function getStartPosition()
2527
+ {
2528
+ return $this->startPosition;
2529
+ }
2530
+
2531
+ public function setVariantName($variantName)
2532
+ {
2533
+ $this->variantName = $variantName;
2534
+ }
2535
+
2536
+ public function getVariantName()
2537
+ {
2538
+ return $this->variantName;
2539
+ }
2540
+ }
2541
+
2542
+ class GoogleGAL_Service_Genomics_SearchVariantsResponse extends GoogleGAL_Collection
2543
+ {
2544
+ public $nextPageToken;
2545
+ protected $variantsType = 'GoogleGAL_Service_Genomics_Variant';
2546
+ protected $variantsDataType = 'array';
2547
+
2548
+ public function setNextPageToken($nextPageToken)
2549
+ {
2550
+ $this->nextPageToken = $nextPageToken;
2551
+ }
2552
+
2553
+ public function getNextPageToken()
2554
+ {
2555
+ return $this->nextPageToken;
2556
+ }
2557
+
2558
+ public function setVariants($variants)
2559
+ {
2560
+ $this->variants = $variants;
2561
+ }
2562
+
2563
+ public function getVariants()
2564
+ {
2565
+ return $this->variants;
2566
+ }
2567
+ }
2568
+
2569
+ class GoogleGAL_Service_Genomics_Variant extends GoogleGAL_Collection
2570
+ {
2571
+ public $alternateBases;
2572
+ protected $callsType = 'GoogleGAL_Service_Genomics_Call';
2573
+ protected $callsDataType = 'array';
2574
+ public $contig;
2575
+ public $created;
2576
+ public $datasetId;
2577
+ public $id;
2578
+ public $info;
2579
+ public $names;
2580
+ public $position;
2581
+ public $referenceBases;
2582
+
2583
+ public function setAlternateBases($alternateBases)
2584
+ {
2585
+ $this->alternateBases = $alternateBases;
2586
+ }
2587
+
2588
+ public function getAlternateBases()
2589
+ {
2590
+ return $this->alternateBases;
2591
+ }
2592
+
2593
+ public function setCalls($calls)
2594
+ {
2595
+ $this->calls = $calls;
2596
+ }
2597
+
2598
+ public function getCalls()
2599
+ {
2600
+ return $this->calls;
2601
+ }
2602
+
2603
+ public function setContig($contig)
2604
+ {
2605
+ $this->contig = $contig;
2606
+ }
2607
+
2608
+ public function getContig()
2609
+ {
2610
+ return $this->contig;
2611
+ }
2612
+
2613
+ public function setCreated($created)
2614
+ {
2615
+ $this->created = $created;
2616
+ }
2617
+
2618
+ public function getCreated()
2619
+ {
2620
+ return $this->created;
2621
+ }
2622
+
2623
+ public function setDatasetId($datasetId)
2624
+ {
2625
+ $this->datasetId = $datasetId;
2626
+ }
2627
+
2628
+ public function getDatasetId()
2629
+ {
2630
+ return $this->datasetId;
2631
+ }
2632
+
2633
+ public function setId($id)
2634
+ {
2635
+ $this->id = $id;
2636
+ }
2637
+
2638
+ public function getId()
2639
+ {
2640
+ return $this->id;
2641
+ }
2642
+
2643
+ public function setInfo($info)
2644
+ {
2645
+ $this->info = $info;
2646
+ }
2647
+
2648
+ public function getInfo()
2649
+ {
2650
+ return $this->info;
2651
+ }
2652
+
2653
+ public function setNames($names)
2654
+ {
2655
+ $this->names = $names;
2656
+ }
2657
+
2658
+ public function getNames()
2659
+ {
2660
+ return $this->names;
2661
+ }
2662
+
2663
+ public function setPosition($position)
2664
+ {
2665
+ $this->position = $position;
2666
+ }
2667
+
2668
+ public function getPosition()
2669
+ {
2670
+ return $this->position;
2671
+ }
2672
+
2673
+ public function setReferenceBases($referenceBases)
2674
+ {
2675
+ $this->referenceBases = $referenceBases;
2676
+ }
2677
+
2678
+ public function getReferenceBases()
2679
+ {
2680
+ return $this->referenceBases;
2681
+ }
2682
+ }
core/Google/Service/IdentityToolkit.php CHANGED
@@ -74,6 +74,10 @@ class GoogleGAL_Service_IdentityToolkit extends GoogleGAL_Service
74
  'path' => 'getOobConfirmationCode',
75
  'httpMethod' => 'POST',
76
  'parameters' => array(),
 
 
 
 
77
  ),'resetPassword' => array(
78
  'path' => 'resetPassword',
79
  'httpMethod' => 'POST',
@@ -180,6 +184,18 @@ class GoogleGAL_Service_IdentityToolkit_Relyingparty_Resource extends GoogleGAL_
180
  $params = array_merge($params, $optParams);
181
  return $this->call('getOobConfirmationCode', array($params), "GoogleGAL_Service_IdentityToolkit_GetOobConfirmationCodeResponse");
182
  }
 
 
 
 
 
 
 
 
 
 
 
 
183
  /**
184
  * Set account info for a user. (relyingparty.resetPassword)
185
  *
74
  'path' => 'getOobConfirmationCode',
75
  'httpMethod' => 'POST',
76
  'parameters' => array(),
77
+ ),'getPublicKeys' => array(
78
+ 'path' => 'publicKeys',
79
+ 'httpMethod' => 'GET',
80
+ 'parameters' => array(),
81
  ),'resetPassword' => array(
82
  'path' => 'resetPassword',
83
  'httpMethod' => 'POST',
184
  $params = array_merge($params, $optParams);
185
  return $this->call('getOobConfirmationCode', array($params), "GoogleGAL_Service_IdentityToolkit_GetOobConfirmationCodeResponse");
186
  }
187
+ /**
188
+ * Get token signing public key. (relyingparty.getPublicKeys)
189
+ *
190
+ * @param array $optParams Optional parameters.
191
+ * @return GoogleGAL_Service_IdentityToolkit_IdentitytoolkitRelyingpartyGetPublicKeysResponse
192
+ */
193
+ public function getPublicKeys($optParams = array())
194
+ {
195
+ $params = array();
196
+ $params = array_merge($params, $optParams);
197
+ return $this->call('getPublicKeys', array($params), "GoogleGAL_Service_IdentityToolkit_IdentitytoolkitRelyingpartyGetPublicKeysResponse");
198
+ }
199
  /**
200
  * Set account info for a user. (relyingparty.resetPassword)
201
  *
core/Google/Service/Manager.php ADDED
@@ -0,0 +1,1920 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /*
3
+ * Copyright 2010 Google Inc.
4
+ *
5
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
6
+ * use this file except in compliance with the License. You may obtain a copy of
7
+ * 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, WITHOUT
13
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
14
+ * License for the specific language governing permissions and limitations under
15
+ * the License.
16
+ */
17
+
18
+ /**
19
+ * Service definition for Manager (v1beta2).
20
+ *
21
+ * <p>
22
+ * The Deployment Manager API allows users to declaratively configure and deploy Cloud resources on the Google Cloud Platform.
23
+ * </p>
24
+ *
25
+ * <p>
26
+ * For more information about this service, see the API
27
+ * <a href="http://code.google.com/apis/cloud/manager/v1beta2/using_rest.html" target="_blank">Documentation</a>
28
+ * </p>
29
+ *
30
+ * @author Google, Inc.
31
+ */
32
+ class GoogleGAL_Service_Manager extends GoogleGAL_Service
33
+ {
34
+ /** View and manage your applications deployed on Google App Engine. */
35
+ const APPENGINE_ADMIN = "https://www.googleapis.com/auth/appengine.admin";
36
+ /** View and manage your data across Google Cloud Platform services. */
37
+ const CLOUD_PLATFORM = "https://www.googleapis.com/auth/cloud-platform";
38
+ /** View and manage your Google Compute Engine resources. */
39
+ const COMPUTE = "https://www.googleapis.com/auth/compute";
40
+ /** Manage your data in Google Cloud Storage. */
41
+ const DEVSTORAGE_READ_WRITE = "https://www.googleapis.com/auth/devstorage.read_write";
42
+ /** View and manage your Google Cloud Platform management resources and deployment status information. */
43
+ const NDEV_CLOUDMAN = "https://www.googleapis.com/auth/ndev.cloudman";
44
+ /** View your Google Cloud Platform management resources and deployment status information. */
45
+ const NDEV_CLOUDMAN_READONLY = "https://www.googleapis.com/auth/ndev.cloudman.readonly";
46
+
47
+ public $deployments;
48
+ public $templates;
49
+
50
+
51
+ /**
52
+ * Constructs the internal representation of the Manager service.
53
+ *
54
+ * @param GoogleGAL_Client $client
55
+ */
56
+ public function __construct(GoogleGAL_Client $client)
57
+ {
58
+ parent::__construct($client);
59
+ $this->servicePath = 'manager/v1beta2/projects/';
60
+ $this->version = 'v1beta2';
61
+ $this->serviceName = 'manager';
62
+
63
+ $this->deployments = new GoogleGAL_Service_Manager_Deployments_Resource(
64
+ $this,
65
+ $this->serviceName,
66
+ 'deployments',
67
+ array(
68
+ 'methods' => array(
69
+ 'delete' => array(
70
+ 'path' => '{projectId}/regions/{region}/deployments/{deploymentName}',
71
+ 'httpMethod' => 'DELETE',
72
+ 'parameters' => array(
73
+ 'projectId' => array(
74
+ 'location' => 'path',
75
+ 'type' => 'string',
76
+ 'required' => true,
77
+ ),
78
+ 'region' => array(
79
+ 'location' => 'path',
80
+ 'type' => 'string',
81
+ 'required' => true,
82
+ ),
83
+ 'deploymentName' => array(
84
+ 'location' => 'path',
85
+ 'type' => 'string',
86
+ 'required' => true,
87
+ ),
88
+ ),
89
+ ),'get' => array(
90
+ 'path' => '{projectId}/regions/{region}/deployments/{deploymentName}',
91
+ 'httpMethod' => 'GET',
92
+ 'parameters' => array(
93
+ 'projectId' => array(
94
+ 'location' => 'path',
95
+ 'type' => 'string',
96
+ 'required' => true,
97
+ ),
98
+ 'region' => array(
99
+ 'location' => 'path',
100
+ 'type' => 'string',
101
+ 'required' => true,
102
+ ),
103
+ 'deploymentName' => array(
104
+ 'location' => 'path',
105
+ 'type' => 'string',
106
+ 'required' => true,
107
+ ),
108
+ ),
109
+ ),'insert' => array(
110
+ 'path' => '{projectId}/regions/{region}/deployments',
111
+ 'httpMethod' => 'POST',
112
+ 'parameters' => array(
113
+ 'projectId' => array(
114
+ 'location' => 'path',
115
+ 'type' => 'string',
116
+ 'required' => true,
117
+ ),
118
+ 'region' => array(
119
+ 'location' => 'path',
120
+ 'type' => 'string',
121
+ 'required' => true,
122
+ ),
123
+ ),
124
+ ),'list' => array(
125
+ 'path' => '{projectId}/regions/{region}/deployments',
126
+ 'httpMethod' => 'GET',
127
+ 'parameters' => array(
128
+ 'projectId' => array(
129
+ 'location' => 'path',
130
+ 'type' => 'string',
131
+ 'required' => true,
132
+ ),
133
+ 'region' => array(
134
+ 'location' => 'path',
135
+ 'type' => 'string',
136
+ 'required' => true,
137
+ ),
138
+ 'pageToken' => array(
139
+ 'location' => 'query',
140
+ 'type' => 'string',
141
+ ),
142
+ 'maxResults' => array(
143
+ 'location' => 'query',
144
+ 'type' => 'integer',
145
+ ),
146
+ ),
147
+ ),
148
+ )
149
+ )
150
+ );
151
+ $this->templates = new GoogleGAL_Service_Manager_Templates_Resource(
152
+ $this,
153
+ $this->serviceName,
154
+ 'templates',
155
+ array(
156
+ 'methods' => array(
157
+ 'delete' => array(
158
+ 'path' => '{projectId}/templates/{templateName}',
159
+ 'httpMethod' => 'DELETE',
160
+ 'parameters' => array(
161
+ 'projectId' => array(
162
+ 'location' => 'path',
163
+ 'type' => 'string',
164
+ 'required' => true,
165
+ ),
166
+ 'templateName' => array(
167
+ 'location' => 'path',
168
+ 'type' => 'string',
169
+ 'required' => true,
170
+ ),
171
+ ),
172
+ ),'get' => array(
173
+ 'path' => '{projectId}/templates/{templateName}',
174
+ 'httpMethod' => 'GET',
175
+ 'parameters' => array(
176
+ 'projectId' => array(
177
+ 'location' => 'path',
178
+ 'type' => 'string',
179
+ 'required' => true,
180
+ ),
181
+ 'templateName' => array(
182
+ 'location' => 'path',
183
+ 'type' => 'string',
184
+ 'required' => true,
185
+ ),
186
+ ),
187
+ ),'insert' => array(
188
+ 'path' => '{projectId}/templates',
189
+ 'httpMethod' => 'POST',
190
+ 'parameters' => array(
191
+ 'projectId' => array(
192
+ 'location' => 'path',
193
+ 'type' => 'string',
194
+ 'required' => true,
195
+ ),
196
+ ),
197
+ ),'list' => array(
198
+ 'path' => '{projectId}/templates',
199
+ 'httpMethod' => 'GET',
200
+ 'parameters' => array(
201
+ 'projectId' => array(
202
+ 'location' => 'path',
203
+ 'type' => 'string',
204
+ 'required' => true,
205
+ ),
206
+ 'pageToken' => array(
207
+ 'location' => 'query',
208
+ 'type' => 'string',
209
+ ),
210
+ 'maxResults' => array(
211
+ 'location' => 'query',
212
+ 'type' => 'integer',
213
+ ),
214
+ ),
215
+ ),
216
+ )
217
+ )
218
+ );
219
+ }
220
+ }
221
+
222
+
223
+ /**
224
+ * The "deployments" collection of methods.
225
+ * Typical usage is:
226
+ * <code>
227
+ * $managerService = new GoogleGAL_Service_Manager(...);
228
+ * $deployments = $managerService->deployments;
229
+ * </code>
230
+ */
231
+ class GoogleGAL_Service_Manager_Deployments_Resource extends GoogleGAL_Service_Resource
232
+ {
233
+
234
+ /**
235
+ * (deployments.delete)
236
+ *
237
+ * @param string $projectId
238
+ *
239
+ * @param string $region
240
+ *
241
+ * @param string $deploymentName
242
+ *
243
+ * @param array $optParams Optional parameters.
244
+ */
245
+ public function delete($projectId, $region, $deploymentName, $optParams = array())
246
+ {
247
+ $params = array('projectId' => $projectId, 'region' => $region, 'deploymentName' => $deploymentName);
248
+ $params = array_merge($params, $optParams);
249
+ return $this->call('delete', array($params));
250
+ }
251
+ /**
252
+ * (deployments.get)
253
+ *
254
+ * @param string $projectId
255
+ *
256
+ * @param string $region
257
+ *
258
+ * @param string $deploymentName
259
+ *
260
+ * @param array $optParams Optional parameters.
261
+ * @return GoogleGAL_Service_Manager_Deployment
262
+ */
263
+ public function get($projectId, $region, $deploymentName, $optParams = array())
264
+ {
265
+ $params = array('projectId' => $projectId, 'region' => $region, 'deploymentName' => $deploymentName);
266
+ $params = array_merge($params, $optParams);
267
+ return $this->call('get', array($params), "GoogleGAL_Service_Manager_Deployment");
268
+ }
269
+ /**
270
+ * (deployments.insert)
271
+ *
272
+ * @param string $projectId
273
+ *
274
+ * @param string $region
275
+ *
276
+ * @param GoogleGAL_Deployment $postBody
277
+ * @param array $optParams Optional parameters.
278
+ * @return GoogleGAL_Service_Manager_Deployment
279
+ */
280
+ public function insert($projectId, $region, GoogleGAL_Service_Manager_Deployment $postBody, $optParams = array())
281
+ {
282
+ $params = array('projectId' => $projectId, 'region' => $region, 'postBody' => $postBody);
283
+ $params = array_merge($params, $optParams);
284
+ return $this->call('insert', array($params), "GoogleGAL_Service_Manager_Deployment");
285
+ }
286
+ /**
287
+ * (deployments.listDeployments)
288
+ *
289
+ * @param string $projectId
290
+ *
291
+ * @param string $region
292
+ *
293
+ * @param array $optParams Optional parameters.
294
+ *
295
+ * @opt_param string pageToken
296
+ * Specifies a nextPageToken returned by a previous list request. This token can be used to request
297
+ * the next page of results from a previous list request.
298
+ * @opt_param int maxResults
299
+ * Maximum count of results to be returned. Acceptable values are 0 to 100, inclusive. (Default:
300
+ * 50)
301
+ * @return GoogleGAL_Service_Manager_DeploymentsListResponse
302
+ */
303
+ public function listDeployments($projectId, $region, $optParams = array())
304
+ {
305
+ $params = array('projectId' => $projectId, 'region' => $region);
306
+ $params = array_merge($params, $optParams);
307
+ return $this->call('list', array($params), "GoogleGAL_Service_Manager_DeploymentsListResponse");
308
+ }
309
+ }
310
+
311
+ /**
312
+ * The "templates" collection of methods.
313
+ * Typical usage is:
314
+ * <code>
315
+ * $managerService = new GoogleGAL_Service_Manager(...);
316
+ * $templates = $managerService->templates;
317
+ * </code>
318
+ */
319
+ class GoogleGAL_Service_Manager_Templates_Resource extends GoogleGAL_Service_Resource
320
+ {
321
+
322
+ /**
323
+ * (templates.delete)
324
+ *
325
+ * @param string $projectId
326
+ *
327
+ * @param string $templateName
328
+ *
329
+ * @param array $optParams Optional parameters.
330
+ */
331
+ public function delete($projectId, $templateName, $optParams = array())
332
+ {
333
+ $params = array('projectId' => $projectId, 'templateName' => $templateName);
334
+ $params = array_merge($params, $optParams);
335
+ return $this->call('delete', array($params));
336
+ }
337
+ /**
338
+ * (templates.get)
339
+ *
340
+ * @param string $projectId
341
+ *
342
+ * @param string $templateName
343
+ *
344
+ * @param array $optParams Optional parameters.
345
+ * @return GoogleGAL_Service_Manager_Template
346
+ */
347
+ public function get($projectId, $templateName, $optParams = array())
348
+ {
349
+ $params = array('projectId' => $projectId, 'templateName' => $templateName);
350
+ $params = array_merge($params, $optParams);
351
+ return $this->call('get', array($params), "GoogleGAL_Service_Manager_Template");
352
+ }
353
+ /**
354
+ * (templates.insert)
355
+ *
356
+ * @param string $projectId
357
+ *
358
+ * @param GoogleGAL_Template $postBody
359
+ * @param array $optParams Optional parameters.
360
+ * @return GoogleGAL_Service_Manager_Template
361
+ */
362
+ public function insert($projectId, GoogleGAL_Service_Manager_Template $postBody, $optParams = array())
363
+ {
364
+ $params = array('projectId' => $projectId, 'postBody' => $postBody);
365
+ $params = array_merge($params, $optParams);
366
+ return $this->call('insert', array($params), "GoogleGAL_Service_Manager_Template");
367
+ }
368
+ /**
369
+ * (templates.listTemplates)
370
+ *
371
+ * @param string $projectId
372
+ *
373
+ * @param array $optParams Optional parameters.
374
+ *
375
+ * @opt_param string pageToken
376
+ * Specifies a nextPageToken returned by a previous list request. This token can be used to request
377
+ * the next page of results from a previous list request.
378
+ * @opt_param int maxResults
379
+ * Maximum count of results to be returned. Acceptable values are 0 to 100, inclusive. (Default:
380
+ * 50)
381
+ * @return GoogleGAL_Service_Manager_TemplatesListResponse
382
+ */
383
+ public function listTemplates($projectId, $optParams = array())
384
+ {
385
+ $params = array('projectId' => $projectId);
386
+ $params = array_merge($params, $optParams);
387
+ return $this->call('list', array($params), "GoogleGAL_Service_Manager_TemplatesListResponse");
388
+ }
389
+ }
390
+
391
+
392
+
393
+
394
+ class GoogleGAL_Service_Manager_AccessConfig extends GoogleGAL_Model
395
+ {
396
+ public $name;
397
+ public $natIp;
398
+ public $type;
399
+
400
+ public function setName($name)
401
+ {
402
+ $this->name = $name;
403
+ }
404
+
405
+ public function getName()
406
+ {
407
+ return $this->name;
408
+ }
409
+
410
+ public function setNatIp($natIp)
411
+ {
412
+ $this->natIp = $natIp;
413
+ }
414
+
415
+ public function getNatIp()
416
+ {
417
+ return $this->natIp;
418
+ }
419
+
420
+ public function setType($type)
421
+ {
422
+ $this->type = $type;
423
+ }
424
+
425
+ public function getType()
426
+ {
427
+ return $this->type;
428
+ }
429
+ }
430
+
431
+ class GoogleGAL_Service_Manager_Action extends GoogleGAL_Collection
432
+ {
433
+ public $commands;
434
+ public $timeoutMs;
435
+
436
+ public function setCommands($commands)
437
+ {
438
+ $this->commands = $commands;
439
+ }
440
+
441
+ public function getCommands()
442
+ {
443
+ return $this->commands;
444
+ }
445
+
446
+ public function setTimeoutMs($timeoutMs)
447
+ {
448
+ $this->timeoutMs = $timeoutMs;
449
+ }
450
+
451
+ public function getTimeoutMs()
452
+ {
453
+ return $this->timeoutMs;
454
+ }
455
+ }
456
+
457
+ class GoogleGAL_Service_Manager_AllowedRule extends GoogleGAL_Collection
458
+ {
459
+ public $iPProtocol;
460
+ public $ports;
461
+
462
+ public function setIPProtocol($iPProtocol)
463
+ {
464
+ $this->iPProtocol = $iPProtocol;
465
+ }
466
+
467
+ public function getIPProtocol()
468
+ {
469
+ return $this->iPProtocol;
470
+ }
471
+
472
+ public function setPorts($ports)
473
+ {
474
+ $this->ports = $ports;
475
+ }
476
+
477
+ public function getPorts()
478
+ {
479
+ return $this->ports;
480
+ }
481
+ }
482
+
483
+ class GoogleGAL_Service_Manager_AutoscalingModule extends GoogleGAL_Model
484
+ {
485
+ public $coolDownPeriodSec;
486
+ public $description;
487
+ public $maxNumReplicas;
488
+ public $minNumReplicas;
489
+ public $signalType;
490
+ public $targetModule;
491
+ public $targetUtilization;
492
+
493
+ public function setCoolDownPeriodSec($coolDownPeriodSec)
494
+ {
495
+ $this->coolDownPeriodSec = $coolDownPeriodSec;
496
+ }
497
+
498
+ public function getCoolDownPeriodSec()
499
+ {
500
+ return $this->coolDownPeriodSec;
501
+ }
502
+
503
+ public function setDescription($description)
504
+ {
505
+ $this->description = $description;
506
+ }
507
+
508
+ public function getDescription()
509
+ {
510
+ return $this->description;
511
+ }
512
+
513
+ public function setMaxNumReplicas($maxNumReplicas)
514
+ {
515
+ $this->maxNumReplicas = $maxNumReplicas;
516
+ }
517
+
518
+ public function getMaxNumReplicas()
519
+ {
520
+ return $this->maxNumReplicas;
521
+ }
522
+
523
+ public function setMinNumReplicas($minNumReplicas)
524
+ {
525
+ $this->minNumReplicas = $minNumReplicas;
526
+ }
527
+
528
+ public function getMinNumReplicas()
529
+ {
530
+ return $this->minNumReplicas;
531
+ }
532
+
533
+ public function setSignalType($signalType)
534
+ {
535
+ $this->signalType = $signalType;
536
+ }
537
+
538
+ public function getSignalType()
539
+ {
540
+ return $this->signalType;
541
+ }
542
+
543
+ public function setTargetModule($targetModule)
544
+ {
545
+ $this->targetModule = $targetModule;
546
+ }
547
+
548
+ public function getTargetModule()
549
+ {
550
+ return $this->targetModule;
551
+ }
552
+
553
+ public function setTargetUtilization($targetUtilization)
554
+ {
555
+ $this->targetUtilization = $targetUtilization;
556
+ }
557
+
558
+ public function getTargetUtilization()
559
+ {
560
+ return $this->targetUtilization;
561
+ }
562
+ }
563
+
564
+ class GoogleGAL_Service_Manager_AutoscalingModuleStatus extends GoogleGAL_Model
565
+ {
566
+ public $autoscalingConfigUrl;
567
+
568
+ public function setAutoscalingConfigUrl($autoscalingConfigUrl)
569
+ {
570
+ $this->autoscalingConfigUrl = $autoscalingConfigUrl;
571
+ }
572
+
573
+ public function getAutoscalingConfigUrl()
574
+ {
575
+ return $this->autoscalingConfigUrl;
576
+ }
577
+ }
578
+
579
+ class GoogleGAL_Service_Manager_DeployState extends GoogleGAL_Model
580
+ {
581
+ public $details;
582
+ public $status;
583
+
584
+ public function setDetails($details)
585
+ {
586
+ $this->details = $details;
587
+ }
588
+
589
+ public function getDetails()
590
+ {
591
+ return $this->details;
592
+ }
593
+
594
+ public function setStatus($status)
595
+ {
596
+ $this->status = $status;
597
+ }
598
+
599
+ public function getStatus()
600
+ {
601
+ return $this->status;
602
+ }
603
+ }
604
+
605
+ class GoogleGAL_Service_Manager_Deployment extends GoogleGAL_Collection
606
+ {
607
+ public $creationDate;
608
+ public $description;
609
+ protected $modulesType = 'GoogleGAL_Service_Manager_ModuleStatus';
610
+ protected $modulesDataType = 'map';
611
+ public $name;
612
+ protected $overridesType = 'GoogleGAL_Service_Manager_ParamOverride';
613
+ protected $overridesDataType = 'array';
614
+ protected $stateType = 'GoogleGAL_Service_Manager_DeployState';
615
+ protected $stateDataType = '';
616
+ public $templateName;
617
+
618
+ public function setCreationDate($creationDate)
619
+ {
620
+ $this->creationDate = $creationDate;
621
+ }
622
+
623
+ public function getCreationDate()
624
+ {
625
+ return $this->creationDate;
626
+ }
627
+
628
+ public function setDescription($description)
629
+ {
630
+ $this->description = $description;
631
+ }
632
+
633
+ public function getDescription()
634
+ {
635
+ return $this->description;
636
+ }
637
+
638
+ public function setModules($modules)
639
+ {
640
+ $this->modules = $modules;
641
+ }
642
+
643
+ public function getModules()
644
+ {
645
+ return $this->modules;
646
+ }
647
+
648
+ public function setName($name)
649
+ {
650
+ $this->name = $name;
651
+ }
652
+
653
+ public function getName()
654
+ {
655
+ return $this->name;
656
+ }
657
+
658
+ public function setOverrides($overrides)
659
+ {
660
+ $this->overrides = $overrides;
661
+ }
662
+
663
+ public function getOverrides()
664
+ {
665
+ return $this->overrides;
666
+ }
667
+
668
+ public function setState(GoogleGAL_Service_Manager_DeployState $state)
669
+ {
670
+ $this->state = $state;
671
+ }
672
+
673
+ public function getState()
674
+ {
675
+ return $this->state;
676
+ }
677
+
678
+ public function setTemplateName($templateName)
679
+ {
680
+ $this->templateName = $templateName;
681
+ }
682
+
683
+ public function getTemplateName()
684
+ {
685
+ return $this->templateName;
686
+ }
687
+ }
688
+
689
+ class GoogleGAL_Service_Manager_DeploymentsListResponse extends GoogleGAL_Collection
690
+ {
691
+ public $nextPageToken;
692
+ protected $resourcesType = 'GoogleGAL_Service_Manager_Deployment';
693
+ protected $resourcesDataType = 'array';
694
+
695
+ public function setNextPageToken($nextPageToken)
696
+ {
697
+ $this->nextPageToken = $nextPageToken;
698
+ }
699
+
700
+ public function getNextPageToken()
701
+ {
702
+ return $this->nextPageToken;
703
+ }
704
+
705
+ public function setResources($resources)
706
+ {
707
+ $this->resources = $resources;
708
+ }
709
+
710
+ public function getResources()
711
+ {
712
+ return $this->resources;
713
+ }
714
+ }
715
+
716
+ class GoogleGAL_Service_Manager_DiskAttachment extends GoogleGAL_Model
717
+ {
718
+ public $deviceName;
719
+ public $index;
720
+
721
+ public function setDeviceName($deviceName)
722
+ {
723
+ $this->deviceName = $deviceName;
724
+ }
725
+
726
+ public function getDeviceName()
727
+ {
728
+ return $this->deviceName;
729
+ }
730
+
731
+ public function setIndex($index)
732
+ {
733
+ $this->index = $index;
734
+ }
735
+
736
+ public function getIndex()
737
+ {
738
+ return $this->index;
739
+ }
740
+ }
741
+
742
+ class GoogleGAL_Service_Manager_EnvVariable extends GoogleGAL_Model
743
+ {
744
+ public $hidden;
745
+ public $value;
746
+
747
+ public function setHidden($hidden)
748
+ {
749
+ $this->hidden = $hidden;
750
+ }
751
+
752
+ public function getHidden()
753
+ {
754
+ return $this->hidden;
755
+ }
756
+
757
+ public function setValue($value)
758
+ {
759
+ $this->value = $value;
760
+ }
761
+
762
+ public function getValue()
763
+ {
764
+ return $this->value;
765
+ }
766
+ }
767
+
768
+ class GoogleGAL_Service_Manager_ExistingDisk extends GoogleGAL_Model
769
+ {
770
+ protected $attachmentType = 'GoogleGAL_Service_Manager_DiskAttachment';
771
+ protected $attachmentDataType = '';
772
+ public $source;
773
+
774
+ public function setAttachment(GoogleGAL_Service_Manager_DiskAttachment $attachment)
775
+ {
776
+ $this->attachment = $attachment;
777
+ }
778
+
779
+ public function getAttachment()
780
+ {
781
+ return $this->attachment;
782
+ }
783
+
784
+ public function setSource($source)
785
+ {
786
+ $this->source = $source;
787
+ }
788
+
789
+ public function getSource()
790
+ {
791
+ return $this->source;
792
+ }
793
+ }
794
+
795
+ class GoogleGAL_Service_Manager_FirewallModule extends GoogleGAL_Collection
796
+ {
797
+ protected $allowedType = 'GoogleGAL_Service_Manager_AllowedRule';
798
+ protected $allowedDataType = 'array';
799
+ public $description;
800
+ public $network;
801
+ public $sourceRanges;
802
+ public $sourceTags;
803
+ public $targetTags;
804
+
805
+ public function setAllowed($allowed)
806
+ {
807
+ $this->allowed = $allowed;
808
+ }
809
+
810
+ public function getAllowed()
811
+ {
812
+ return $this->allowed;
813
+ }
814
+
815
+ public function setDescription($description)
816
+ {
817
+ $this->description = $description;
818
+ }
819
+
820
+ public function getDescription()
821
+ {
822
+ return $this->description;
823
+ }
824
+
825
+ public function setNetwork($network)
826
+ {
827
+ $this->network = $network;
828
+ }
829
+
830
+ public function getNetwork()
831
+ {
832
+ return $this->network;
833
+ }
834
+
835
+ public function setSourceRanges($sourceRanges)
836
+ {
837
+ $this->sourceRanges = $sourceRanges;
838
+ }
839
+
840
+ public function getSourceRanges()
841
+ {
842
+ return $this->sourceRanges;
843
+ }
844
+
845
+ public function setSourceTags($sourceTags)
846
+ {
847
+ $this->sourceTags = $sourceTags;
848
+ }
849
+
850
+ public function getSourceTags()
851
+ {
852
+ return $this->sourceTags;
853
+ }
854
+
855
+ public function setTargetTags($targetTags)
856
+ {
857
+ $this->targetTags = $targetTags;
858
+ }
859
+
860
+ public function getTargetTags()
861
+ {
862
+ return $this->targetTags;
863
+ }
864
+ }
865
+
866
+ class GoogleGAL_Service_Manager_FirewallModuleStatus extends GoogleGAL_Model
867
+ {
868
+ public $firewallUrl;
869
+
870
+ public function setFirewallUrl($firewallUrl)
871
+ {
872
+ $this->firewallUrl = $firewallUrl;
873
+ }
874
+
875
+ public function getFirewallUrl()
876
+ {
877
+ return $this->firewallUrl;
878
+ }
879
+ }
880
+
881
+ class GoogleGAL_Service_Manager_HealthCheckModule extends GoogleGAL_Model
882
+ {
883
+ public $checkIntervalSec;
884
+ public $description;
885
+ public $healthyThreshold;
886
+ public $host;
887
+ public $path;
888
+ public $port;
889
+ public $timeoutSec;
890
+ public $unhealthyThreshold;
891
+
892
+ public function setCheckIntervalSec($checkIntervalSec)
893
+ {
894
+ $this->checkIntervalSec = $checkIntervalSec;
895
+ }
896
+
897
+ public function getCheckIntervalSec()
898
+ {
899
+ return $this->checkIntervalSec;
900
+ }
901
+
902
+ public function setDescription($description)
903
+ {
904
+ $this->description = $description;
905
+ }
906
+
907
+ public function getDescription()
908
+ {
909
+ return $this->description;
910
+ }
911
+
912
+ public function setHealthyThreshold($healthyThreshold)
913
+ {
914
+ $this->healthyThreshold = $healthyThreshold;
915
+ }
916
+
917
+ public function getHealthyThreshold()
918
+ {
919
+ return $this->healthyThreshold;
920
+ }
921
+
922
+ public function setHost($host)
923
+ {
924
+ $this->host = $host;
925
+ }
926
+
927
+ public function getHost()
928
+ {
929
+ return $this->host;
930
+ }
931
+
932
+ public function setPath($path)
933
+ {
934
+ $this->path = $path;
935
+ }
936
+
937
+ public function getPath()
938
+ {
939
+ return $this->path;
940
+ }
941
+
942
+ public function setPort($port)
943
+ {
944
+ $this->port = $port;
945
+ }
946
+
947
+ public function getPort()
948
+ {
949
+ return $this->port;
950
+ }
951
+
952
+ public function setTimeoutSec($timeoutSec)
953
+ {
954
+ $this->timeoutSec = $timeoutSec;
955
+ }
956
+
957
+ public function getTimeoutSec()
958
+ {
959
+ return $this->timeoutSec;
960
+ }
961
+
962
+ public function setUnhealthyThreshold($unhealthyThreshold)
963
+ {
964
+ $this->unhealthyThreshold = $unhealthyThreshold;
965
+ }
966
+
967
+ public function getUnhealthyThreshold()
968
+ {
969
+ return $this->unhealthyThreshold;
970
+ }
971
+ }
972
+
973
+ class GoogleGAL_Service_Manager_HealthCheckModuleStatus extends GoogleGAL_Model
974
+ {
975
+ public $healthCheckUrl;
976
+
977
+ public function setHealthCheckUrl($healthCheckUrl)
978
+ {
979
+ $this->healthCheckUrl = $healthCheckUrl;
980
+ }
981
+
982
+ public function getHealthCheckUrl()
983
+ {
984
+ return $this->healthCheckUrl;
985
+ }
986
+ }
987
+
988
+ class GoogleGAL_Service_Manager_LbModule extends GoogleGAL_Collection
989
+ {
990
+ public $description;
991
+ public $healthChecks;
992
+ public $ipAddress;
993
+ public $ipProtocol;
994
+ public $portRange;
995
+ public $targetModules;
996
+
997
+ public function setDescription($description)
998
+ {
999
+ $this->description = $description;
1000
+ }
1001
+
1002
+ public function getDescription()
1003
+ {
1004
+ return $this->description;
1005
+ }
1006
+
1007
+ public function setHealthChecks($healthChecks)
1008
+ {
1009
+ $this->healthChecks = $healthChecks;
1010
+ }
1011
+
1012
+ public function getHealthChecks()
1013
+ {
1014
+ return $this->healthChecks;
1015
+ }
1016
+
1017
+ public function setIpAddress($ipAddress)
1018
+ {
1019
+ $this->ipAddress = $ipAddress;
1020
+ }
1021
+
1022
+ public function getIpAddress()
1023
+ {
1024
+ return $this->ipAddress;
1025
+ }
1026
+
1027
+ public function setIpProtocol($ipProtocol)
1028
+ {
1029
+ $this->ipProtocol = $ipProtocol;
1030
+ }
1031
+
1032
+ public function getIpProtocol()
1033
+ {
1034
+ return $this->ipProtocol;
1035
+ }
1036
+
1037
+ public function setPortRange($portRange)
1038
+ {
1039
+ $this->portRange = $portRange;
1040
+ }
1041
+
1042
+ public function getPortRange()
1043
+ {
1044
+ return $this->portRange;
1045
+ }
1046
+
1047
+ public function setTargetModules($targetModules)
1048
+ {
1049
+ $this->targetModules = $targetModules;
1050
+ }
1051
+
1052
+ public function getTargetModules()
1053
+ {
1054
+ return $this->targetModules;
1055
+ }
1056
+ }
1057
+
1058
+ class GoogleGAL_Service_Manager_LbModuleStatus extends GoogleGAL_Model
1059
+ {
1060
+ public $forwardingRuleUrl;
1061
+ public $targetPoolUrl;
1062
+
1063
+ public function setForwardingRuleUrl($forwardingRuleUrl)
1064
+ {
1065
+ $this->forwardingRuleUrl = $forwardingRuleUrl;
1066
+ }
1067
+
1068
+ public function getForwardingRuleUrl()
1069
+ {
1070
+ return $this->forwardingRuleUrl;
1071
+ }
1072
+
1073
+ public function setTargetPoolUrl($targetPoolUrl)
1074
+ {
1075
+ $this->targetPoolUrl = $targetPoolUrl;
1076
+ }
1077
+
1078
+ public function getTargetPoolUrl()
1079
+ {
1080
+ return $this->targetPoolUrl;
1081
+ }
1082
+ }
1083
+
1084
+ class GoogleGAL_Service_Manager_Metadata extends GoogleGAL_Collection
1085
+ {
1086
+ public $fingerPrint;
1087
+ protected $itemsType = 'GoogleGAL_Service_Manager_MetadataItem';
1088
+ protected $itemsDataType = 'array';
1089
+
1090
+ public function setFingerPrint($fingerPrint)
1091
+ {
1092
+ $this->fingerPrint = $fingerPrint;
1093
+ }
1094
+
1095
+ public function getFingerPrint()
1096
+ {
1097
+ return $this->fingerPrint;
1098
+ }
1099
+
1100
+ public function setItems($items)
1101
+ {
1102
+ $this->items = $items;
1103
+ }
1104
+
1105
+ public function getItems()
1106
+ {
1107
+ return $this->items;
1108
+ }
1109
+ }
1110
+
1111
+ class GoogleGAL_Service_Manager_MetadataItem extends GoogleGAL_Model
1112
+ {
1113
+ public $key;
1114
+ public $value;
1115
+
1116
+ public function setKey($key)
1117
+ {
1118
+ $this->key = $key;
1119
+ }
1120
+
1121
+ public function getKey()
1122
+ {
1123
+ return $this->key;
1124
+ }
1125
+
1126
+ public function setValue($value)
1127
+ {
1128
+ $this->value = $value;
1129
+ }
1130
+
1131
+ public function getValue()
1132
+ {
1133
+ return $this->value;
1134
+ }
1135
+ }
1136
+
1137
+ class GoogleGAL_Service_Manager_Module extends GoogleGAL_Model
1138
+ {
1139
+ protected $autoscalingModuleType = 'GoogleGAL_Service_Manager_AutoscalingModule';
1140
+ protected $autoscalingModuleDataType = '';
1141
+ protected $firewallModuleType = 'GoogleGAL_Service_Manager_FirewallModule';
1142
+ protected $firewallModuleDataType = '';
1143
+ protected $healthCheckModuleType = 'GoogleGAL_Service_Manager_HealthCheckModule';
1144
+ protected $healthCheckModuleDataType = '';
1145
+ protected $lbModuleType = 'GoogleGAL_Service_Manager_LbModule';
1146
+ protected $lbModuleDataType = '';
1147
+ protected $networkModuleType = 'GoogleGAL_Service_Manager_NetworkModule';
1148
+ protected $networkModuleDataType = '';
1149
+ protected $replicaPoolModuleType = 'GoogleGAL_Service_Manager_ReplicaPoolModule';
1150
+ protected $replicaPoolModuleDataType = '';
1151
+ public $type;
1152
+
1153
+ public function setAutoscalingModule(GoogleGAL_Service_Manager_AutoscalingModule $autoscalingModule)
1154
+ {
1155
+ $this->autoscalingModule = $autoscalingModule;
1156
+ }
1157
+
1158
+ public function getAutoscalingModule()
1159
+ {
1160
+ return $this->autoscalingModule;
1161
+ }
1162
+
1163
+ public function setFirewallModule(GoogleGAL_Service_Manager_FirewallModule $firewallModule)
1164
+ {
1165
+ $this->firewallModule = $firewallModule;
1166
+ }
1167
+
1168
+ public function getFirewallModule()
1169
+ {
1170
+ return $this->firewallModule;
1171
+ }
1172
+
1173
+ public function setHealthCheckModule(GoogleGAL_Service_Manager_HealthCheckModule $healthCheckModule)
1174
+ {
1175
+ $this->healthCheckModule = $healthCheckModule;
1176
+ }
1177
+
1178
+ public function getHealthCheckModule()
1179
+ {
1180
+ return $this->healthCheckModule;
1181
+ }
1182
+
1183
+ public function setLbModule(GoogleGAL_Service_Manager_LbModule $lbModule)
1184
+ {
1185
+ $this->lbModule = $lbModule;
1186
+ }
1187
+
1188
+ public function getLbModule()
1189
+ {
1190
+ return $this->lbModule;
1191
+ }
1192
+
1193
+ public function setNetworkModule(GoogleGAL_Service_Manager_NetworkModule $networkModule)
1194
+ {
1195
+ $this->networkModule = $networkModule;
1196
+ }
1197
+
1198
+ public function getNetworkModule()
1199
+ {
1200
+ return $this->networkModule;
1201
+ }
1202
+
1203
+ public function setReplicaPoolModule(GoogleGAL_Service_Manager_ReplicaPoolModule $replicaPoolModule)
1204
+ {
1205
+ $this->replicaPoolModule = $replicaPoolModule;
1206
+ }
1207
+
1208
+ public function getReplicaPoolModule()
1209
+ {
1210
+ return $this->replicaPoolModule;
1211
+ }
1212
+
1213
+ public function setType($type)
1214
+ {
1215
+ $this->type = $type;
1216
+ }
1217
+
1218
+ public function getType()
1219
+ {
1220
+ return $this->type;
1221
+ }
1222
+ }
1223
+
1224
+ class GoogleGAL_Service_Manager_ModuleStatus extends GoogleGAL_Model
1225
+ {
1226
+ protected $autoscalingModuleStatusType = 'GoogleGAL_Service_Manager_AutoscalingModuleStatus';
1227
+ protected $autoscalingModuleStatusDataType = '';
1228
+ protected $firewallModuleStatusType = 'GoogleGAL_Service_Manager_FirewallModuleStatus';
1229
+ protected $firewallModuleStatusDataType = '';
1230
+ protected $healthCheckModuleStatusType = 'GoogleGAL_Service_Manager_HealthCheckModuleStatus';
1231
+ protected $healthCheckModuleStatusDataType = '';
1232
+ protected $lbModuleStatusType = 'GoogleGAL_Service_Manager_LbModuleStatus';
1233
+ protected $lbModuleStatusDataType = '';
1234
+ protected $networkModuleStatusType = 'GoogleGAL_Service_Manager_NetworkModuleStatus';
1235
+ protected $networkModuleStatusDataType = '';
1236
+ protected $replicaPoolModuleStatusType = 'GoogleGAL_Service_Manager_ReplicaPoolModuleStatus';
1237
+ protected $replicaPoolModuleStatusDataType = '';
1238
+ protected $stateType = 'GoogleGAL_Service_Manager_DeployState';
1239
+ protected $stateDataType = '';
1240
+ public $type;
1241
+
1242
+ public function setAutoscalingModuleStatus(GoogleGAL_Service_Manager_AutoscalingModuleStatus $autoscalingModuleStatus)
1243
+ {
1244
+ $this->autoscalingModuleStatus = $autoscalingModuleStatus;
1245
+ }
1246
+
1247
+ public function getAutoscalingModuleStatus()
1248
+ {
1249
+ return $this->autoscalingModuleStatus;
1250
+ }
1251
+
1252
+ public function setFirewallModuleStatus(GoogleGAL_Service_Manager_FirewallModuleStatus $firewallModuleStatus)
1253
+ {
1254
+ $this->firewallModuleStatus = $firewallModuleStatus;
1255
+ }
1256
+
1257
+ public function getFirewallModuleStatus()
1258
+ {
1259
+ return $this->firewallModuleStatus;
1260
+ }
1261
+
1262
+ public function setHealthCheckModuleStatus(GoogleGAL_Service_Manager_HealthCheckModuleStatus $healthCheckModuleStatus)
1263
+ {
1264
+ $this->healthCheckModuleStatus = $healthCheckModuleStatus;
1265
+ }
1266
+
1267
+ public function getHealthCheckModuleStatus()
1268
+ {
1269
+ return $this->healthCheckModuleStatus;
1270
+ }
1271
+
1272
+ public function setLbModuleStatus(GoogleGAL_Service_Manager_LbModuleStatus $lbModuleStatus)
1273
+ {
1274
+ $this->lbModuleStatus = $lbModuleStatus;
1275
+ }
1276
+
1277
+ public function getLbModuleStatus()
1278
+ {
1279
+ return $this->lbModuleStatus;
1280
+ }
1281
+
1282
+ public function setNetworkModuleStatus(GoogleGAL_Service_Manager_NetworkModuleStatus $networkModuleStatus)
1283
+ {
1284
+ $this->networkModuleStatus = $networkModuleStatus;
1285
+ }
1286
+
1287
+ public function getNetworkModuleStatus()
1288
+ {
1289
+ return $this->networkModuleStatus;
1290
+ }
1291
+
1292
+ public function setReplicaPoolModuleStatus(GoogleGAL_Service_Manager_ReplicaPoolModuleStatus $replicaPoolModuleStatus)
1293
+ {
1294
+ $this->replicaPoolModuleStatus = $replicaPoolModuleStatus;
1295
+ }
1296
+
1297
+ public function getReplicaPoolModuleStatus()
1298
+ {
1299
+ return $this->replicaPoolModuleStatus;
1300
+ }
1301
+
1302
+ public function setState(GoogleGAL_Service_Manager_DeployState $state)
1303
+ {
1304
+ $this->state = $state;
1305
+ }
1306
+
1307
+ public function getState()
1308
+ {
1309
+ return $this->state;
1310
+ }
1311
+
1312
+ public function setType($type)
1313
+ {
1314
+ $this->type = $type;
1315
+ }
1316
+
1317
+ public function getType()
1318
+ {
1319
+ return $this->type;
1320
+ }
1321
+ }
1322
+
1323
+ class GoogleGAL_Service_Manager_NetworkInterface extends GoogleGAL_Collection
1324
+ {
1325
+ protected $accessConfigsType = 'GoogleGAL_Service_Manager_AccessConfig';
1326
+ protected $accessConfigsDataType = 'array';
1327
+ public $name;
1328
+ public $network;
1329
+ public $networkIp;
1330
+
1331
+ public function setAccessConfigs($accessConfigs)
1332
+ {
1333
+ $this->accessConfigs = $accessConfigs;
1334
+ }
1335
+
1336
+ public function getAccessConfigs()
1337
+ {
1338
+ return $this->accessConfigs;
1339
+ }
1340
+
1341
+ public function setName($name)
1342
+ {
1343
+ $this->name = $name;
1344
+ }
1345
+
1346
+ public function getName()
1347
+ {
1348
+ return $this->name;
1349
+ }
1350
+
1351
+ public function setNetwork($network)
1352
+ {
1353
+ $this->network = $network;
1354
+ }
1355
+
1356
+ public function getNetwork()
1357
+ {
1358
+ return $this->network;
1359
+ }
1360
+
1361
+ public function setNetworkIp($networkIp)
1362
+ {
1363
+ $this->networkIp = $networkIp;
1364
+ }
1365
+
1366
+ public function getNetworkIp()
1367
+ {
1368
+ return $this->networkIp;
1369
+ }
1370
+ }
1371
+
1372
+ class GoogleGAL_Service_Manager_NetworkModule extends GoogleGAL_Model
1373
+ {
1374
+ public $iPv4Range;
1375
+ public $description;
1376
+ public $gatewayIPv4;
1377
+
1378
+ public function setIPv4Range($iPv4Range)
1379
+ {
1380
+ $this->iPv4Range = $iPv4Range;
1381
+ }
1382
+
1383
+ public function getIPv4Range()
1384
+ {
1385
+ return $this->iPv4Range;
1386
+ }
1387
+
1388
+ public function setDescription($description)
1389
+ {
1390
+ $this->description = $description;
1391
+ }
1392
+
1393
+ public function getDescription()
1394
+ {
1395
+ return $this->description;
1396
+ }
1397
+
1398
+ public function setGatewayIPv4($gatewayIPv4)
1399
+ {
1400
+ $this->gatewayIPv4 = $gatewayIPv4;
1401
+ }
1402
+
1403
+ public function getGatewayIPv4()
1404
+ {
1405
+ return $this->gatewayIPv4;
1406
+ }
1407
+ }
1408
+
1409
+ class GoogleGAL_Service_Manager_NetworkModuleStatus extends GoogleGAL_Model
1410
+ {
1411
+ public $networkUrl;
1412
+
1413
+ public function setNetworkUrl($networkUrl)
1414
+ {
1415
+ $this->networkUrl = $networkUrl;
1416
+ }
1417
+
1418
+ public function getNetworkUrl()
1419
+ {
1420
+ return $this->networkUrl;
1421
+ }
1422
+ }
1423
+
1424
+ class GoogleGAL_Service_Manager_NewDisk extends GoogleGAL_Model
1425
+ {
1426
+ protected $attachmentType = 'GoogleGAL_Service_Manager_DiskAttachment';
1427
+ protected $attachmentDataType = '';
1428
+ public $autoDelete;
1429
+ public $boot;
1430
+ protected $initializeParamsType = 'GoogleGAL_Service_Manager_NewDiskInitializeParams';
1431
+ protected $initializeParamsDataType = '';
1432
+
1433
+ public function setAttachment(GoogleGAL_Service_Manager_DiskAttachment $attachment)
1434
+ {
1435
+ $this->attachment = $attachment;
1436
+ }
1437
+
1438
+ public function getAttachment()
1439
+ {
1440
+ return $this->attachment;
1441
+ }
1442
+
1443
+ public function setAutoDelete($autoDelete)
1444
+ {
1445
+ $this->autoDelete = $autoDelete;
1446
+ }
1447
+
1448
+ public function getAutoDelete()
1449
+ {
1450
+ return $this->autoDelete;
1451
+ }
1452
+
1453
+ public function setBoot($boot)
1454
+ {
1455
+ $this->boot = $boot;
1456
+ }
1457
+
1458
+ public function getBoot()
1459
+ {
1460
+ return $this->boot;
1461
+ }
1462
+
1463
+ public function setInitializeParams(GoogleGAL_Service_Manager_NewDiskInitializeParams $initializeParams)
1464
+ {
1465
+ $this->initializeParams = $initializeParams;
1466
+ }
1467
+
1468
+ public function getInitializeParams()
1469
+ {
1470
+ return $this->initializeParams;
1471
+ }
1472
+ }
1473
+
1474
+ class GoogleGAL_Service_Manager_NewDiskInitializeParams extends GoogleGAL_Model
1475
+ {
1476
+ public $diskSizeGb;
1477
+ public $sourceImage;
1478
+
1479
+ public function setDiskSizeGb($diskSizeGb)
1480
+ {
1481
+ $this->diskSizeGb = $diskSizeGb;
1482
+ }
1483
+
1484
+ public function getDiskSizeGb()
1485
+ {
1486
+ return $this->diskSizeGb;
1487
+ }
1488
+
1489
+ public function setSourceImage($sourceImage)
1490
+ {
1491
+ $this->sourceImage = $sourceImage;
1492
+ }
1493
+
1494
+ public function getSourceImage()
1495
+ {
1496
+ return $this->sourceImage;
1497
+ }
1498
+ }
1499
+
1500
+ class GoogleGAL_Service_Manager_ParamOverride extends GoogleGAL_Model
1501
+ {
1502
+ public $path;
1503
+ public $value;
1504
+
1505
+ public function setPath($path)
1506
+ {
1507
+ $this->path = $path;
1508
+ }
1509
+
1510
+ public function getPath()
1511
+ {
1512
+ return $this->path;
1513
+ }
1514
+
1515
+ public function setValue($value)
1516
+ {
1517
+ $this->value = $value;
1518
+ }
1519
+
1520
+ public function getValue()
1521
+ {
1522
+ return $this->value;
1523
+ }
1524
+ }
1525
+
1526
+ class GoogleGAL_Service_Manager_ReplicaPoolModule extends GoogleGAL_Collection
1527
+ {
1528
+ protected $envVariablesType = 'GoogleGAL_Service_Manager_EnvVariable';
1529
+ protected $envVariablesDataType = 'map';
1530
+ public $healthChecks;
1531
+ public $numReplicas;
1532
+ protected $replicaPoolParamsType = 'GoogleGAL_Service_Manager_ReplicaPoolParams';
1533
+ protected $replicaPoolParamsDataType = '';
1534
+ public $resourceView;
1535
+
1536
+ public function setEnvVariables($envVariables)
1537
+ {
1538
+ $this->envVariables = $envVariables;
1539
+ }
1540
+
1541
+ public function getEnvVariables()
1542
+ {
1543
+ return $this->envVariables;
1544
+ }
1545
+
1546
+ public function setHealthChecks($healthChecks)
1547
+ {
1548
+ $this->healthChecks = $healthChecks;
1549
+ }
1550
+
1551
+ public function getHealthChecks()
1552
+ {
1553
+ return $this->healthChecks;
1554
+ }
1555
+
1556
+ public function setNumReplicas($numReplicas)
1557
+ {
1558
+ $this->numReplicas = $numReplicas;
1559
+ }
1560
+
1561
+ public function getNumReplicas()
1562
+ {
1563
+ return $this->numReplicas;
1564
+ }
1565
+
1566
+ public function setReplicaPoolParams(GoogleGAL_Service_Manager_ReplicaPoolParams $replicaPoolParams)
1567
+ {
1568
+ $this->replicaPoolParams = $replicaPoolParams;
1569
+ }
1570
+
1571
+ public function getReplicaPoolParams()
1572
+ {
1573
+ return $this->replicaPoolParams;
1574
+ }
1575
+
1576
+ public function setResourceView($resourceView)
1577
+ {
1578
+ $this->resourceView = $resourceView;
1579
+ }
1580
+
1581
+ public function getResourceView()
1582
+ {
1583
+ return $this->resourceView;
1584
+ }
1585
+ }
1586
+
1587
+ class GoogleGAL_Service_Manager_ReplicaPoolModuleStatus extends GoogleGAL_Model
1588
+ {
1589
+ public $replicaPoolUrl;
1590
+ public $resourceViewUrl;
1591
+
1592
+ public function setReplicaPoolUrl($replicaPoolUrl)
1593
+ {
1594
+ $this->replicaPoolUrl = $replicaPoolUrl;
1595
+ }
1596
+
1597
+ public function getReplicaPoolUrl()
1598
+ {
1599
+ return $this->replicaPoolUrl;
1600
+ }
1601
+
1602
+ public function setResourceViewUrl($resourceViewUrl)
1603
+ {
1604
+ $this->resourceViewUrl = $resourceViewUrl;
1605
+ }
1606
+
1607
+ public function getResourceViewUrl()
1608
+ {
1609
+ return $this->resourceViewUrl;
1610
+ }
1611
+ }
1612
+
1613
+ class GoogleGAL_Service_Manager_ReplicaPoolParams extends GoogleGAL_Model
1614
+ {
1615
+ protected $v1beta1Type = 'GoogleGAL_Service_Manager_ReplicaPoolParamsV1Beta1';
1616
+ protected $v1beta1DataType = '';
1617
+
1618
+ public function setV1beta1(GoogleGAL_Service_Manager_ReplicaPoolParamsV1Beta1 $v1beta1)
1619
+ {
1620
+ $this->v1beta1 = $v1beta1;
1621
+ }
1622
+
1623
+ public function getV1beta1()
1624
+ {
1625
+ return $this->v1beta1;
1626
+ }
1627
+ }
1628
+
1629
+ class GoogleGAL_Service_Manager_ReplicaPoolParamsV1Beta1 extends GoogleGAL_Collection
1630
+ {
1631
+ public $autoRestart;
1632
+ public $baseInstanceName;
1633
+ public $canIpForward;
1634
+ public $description;
1635
+ protected $disksToAttachType = 'GoogleGAL_Service_Manager_ExistingDisk';
1636
+ protected $disksToAttachDataType = 'array';
1637
+ protected $disksToCreateType = 'GoogleGAL_Service_Manager_NewDisk';
1638
+ protected $disksToCreateDataType = 'array';
1639
+ public $initAction;
1640
+ public $machineType;
1641
+ protected $metadataType = 'GoogleGAL_Service_Manager_Metadata';
1642
+ protected $metadataDataType = '';
1643
+ protected $networkInterfacesType = 'GoogleGAL_Service_Manager_NetworkInterface';
1644
+ protected $networkInterfacesDataType = 'array';
1645
+ public $onHostMaintenance;
1646
+ protected $serviceAccountsType = 'GoogleGAL_Service_Manager_ServiceAccount';
1647
+ protected $serviceAccountsDataType = 'array';
1648
+ protected $tagsType = 'GoogleGAL_Service_Manager_Tag';
1649
+ protected $tagsDataType = '';
1650
+ public $zone;
1651
+
1652
+ public function setAutoRestart($autoRestart)
1653
+ {
1654
+ $this->autoRestart = $autoRestart;
1655
+ }
1656
+
1657
+ public function getAutoRestart()
1658
+ {
1659
+ return $this->autoRestart;
1660
+ }
1661
+
1662
+ public function setBaseInstanceName($baseInstanceName)
1663
+ {
1664
+ $this->baseInstanceName = $baseInstanceName;
1665
+ }
1666
+
1667
+ public function getBaseInstanceName()
1668
+ {
1669
+ return $this->baseInstanceName;
1670
+ }
1671
+
1672
+ public function setCanIpForward($canIpForward)
1673
+ {
1674
+ $this->canIpForward = $canIpForward;
1675
+ }
1676
+
1677
+ public function getCanIpForward()
1678
+ {
1679
+ return $this->canIpForward;
1680
+ }
1681
+
1682
+ public function setDescription($description)
1683
+ {
1684
+ $this->description = $description;
1685
+ }
1686
+
1687
+ public function getDescription()
1688
+ {
1689
+ return $this->description;
1690
+ }
1691
+
1692
+ public function setDisksToAttach($disksToAttach)
1693
+ {
1694
+ $this->disksToAttach = $disksToAttach;
1695
+ }
1696
+
1697
+ public function getDisksToAttach()
1698
+ {
1699
+ return $this->disksToAttach;
1700
+ }
1701
+
1702
+ public function setDisksToCreate($disksToCreate)
1703
+ {
1704
+ $this->disksToCreate = $disksToCreate;
1705
+ }
1706
+
1707
+ public function getDisksToCreate()
1708
+ {
1709
+ return $this->disksToCreate;
1710
+ }
1711
+
1712
+ public function setInitAction($initAction)
1713
+ {
1714
+ $this->initAction = $initAction;
1715
+ }
1716
+
1717
+ public function getInitAction()
1718
+ {
1719
+ return $this->initAction;
1720
+ }
1721
+
1722
+ public function setMachineType($machineType)
1723
+ {
1724
+ $this->machineType = $machineType;
1725
+ }
1726
+
1727
+ public function getMachineType()
1728
+ {
1729
+ return $this->machineType;
1730
+ }
1731
+
1732
+ public function setMetadata(GoogleGAL_Service_Manager_Metadata $metadata)
1733
+ {
1734
+ $this->metadata = $metadata;
1735
+ }
1736
+
1737
+ public function getMetadata()
1738
+ {
1739
+ return $this->metadata;
1740
+ }
1741
+
1742
+ public function setNetworkInterfaces($networkInterfaces)
1743
+ {
1744
+ $this->networkInterfaces = $networkInterfaces;
1745
+ }
1746
+
1747
+ public function getNetworkInterfaces()
1748
+ {
1749
+ return $this->networkInterfaces;
1750
+ }
1751
+
1752
+ public function setOnHostMaintenance($onHostMaintenance)
1753
+ {
1754
+ $this->onHostMaintenance = $onHostMaintenance;
1755
+ }
1756
+
1757
+ public function getOnHostMaintenance()
1758
+ {
1759
+ return $this->onHostMaintenance;
1760
+ }
1761
+
1762
+ public function setServiceAccounts($serviceAccounts)
1763
+ {
1764
+ $this->serviceAccounts = $serviceAccounts;
1765
+ }
1766
+
1767
+ public function getServiceAccounts()
1768
+ {
1769
+ return $this->serviceAccounts;
1770
+ }
1771
+
1772
+ public function setTags(GoogleGAL_Service_Manager_Tag $tags)
1773
+ {
1774
+ $this->tags = $tags;
1775
+ }
1776
+
1777
+ public function getTags()
1778
+ {
1779
+ return $this->tags;
1780
+ }
1781
+
1782
+ public function setZone($zone)
1783
+ {
1784
+ $this->zone = $zone;
1785
+ }
1786
+
1787
+ public function getZone()
1788
+ {
1789
+ return $this->zone;
1790
+ }
1791
+ }
1792
+
1793
+ class GoogleGAL_Service_Manager_ServiceAccount extends GoogleGAL_Collection
1794
+ {
1795
+ public $email;
1796
+ public $scopes;
1797
+
1798
+ public function setEmail($email)
1799
+ {
1800
+ $this->email = $email;
1801
+ }
1802
+
1803
+ public function getEmail()
1804
+ {
1805
+ return $this->email;
1806
+ }
1807
+
1808
+ public function setScopes($scopes)
1809
+ {
1810
+ $this->scopes = $scopes;
1811
+ }
1812
+
1813
+ public function getScopes()
1814
+ {
1815
+ return $this->scopes;
1816
+ }
1817
+ }
1818
+
1819
+ class GoogleGAL_Service_Manager_Tag extends GoogleGAL_Collection
1820
+ {
1821
+ public $fingerPrint;
1822
+ public $items;
1823
+
1824
+ public function setFingerPrint($fingerPrint)
1825
+ {
1826
+ $this->fingerPrint = $fingerPrint;
1827
+ }
1828
+
1829
+ public function getFingerPrint()
1830
+ {
1831
+ return $this->fingerPrint;
1832
+ }
1833
+
1834
+ public function setItems($items)
1835
+ {
1836
+ $this->items = $items;
1837
+ }
1838
+
1839
+ public function getItems()
1840
+ {
1841
+ return $this->items;
1842
+ }
1843
+ }
1844
+
1845
+ class GoogleGAL_Service_Manager_Template extends GoogleGAL_Model
1846
+ {
1847
+ protected $actionsType = 'GoogleGAL_Service_Manager_Action';
1848
+ protected $actionsDataType = 'map';
1849
+ public $description;
1850
+ protected $modulesType = 'GoogleGAL_Service_Manager_Module';
1851
+ protected $modulesDataType = 'map';
1852
+ public $name;
1853
+
1854
+ public function setActions($actions)
1855
+ {
1856
+ $this->actions = $actions;
1857
+ }
1858
+
1859
+ public function getActions()
1860
+ {
1861
+ return $this->actions;
1862
+ }
1863
+
1864
+ public function setDescription($description)
1865
+ {
1866
+ $this->description = $description;
1867
+ }
1868
+
1869
+ public function getDescription()
1870
+ {
1871
+ return $this->description;
1872
+ }
1873
+
1874
+ public function setModules($modules)
1875
+ {
1876
+ $this->modules = $modules;
1877
+ }
1878
+
1879
+ public function getModules()
1880
+ {
1881
+ return $this->modules;
1882
+ }
1883
+
1884
+ public function setName($name)
1885
+ {
1886
+ $this->name = $name;
1887
+ }
1888
+
1889
+ public function getName()
1890
+ {
1891
+ return $this->name;
1892
+ }
1893
+ }
1894
+
1895
+ class GoogleGAL_Service_Manager_TemplatesListResponse extends GoogleGAL_Collection
1896
+ {
1897
+ public $nextPageToken;
1898
+ protected $resourcesType = 'GoogleGAL_Service_Manager_Template';
1899
+ protected $resourcesDataType = 'array';
1900
+
1901
+ public function setNextPageToken($nextPageToken)
1902
+ {
1903
+ $this->nextPageToken = $nextPageToken;
1904
+ }
1905
+
1906
+ public function getNextPageToken()
1907
+ {
1908
+ return $this->nextPageToken;
1909
+ }
1910
+
1911
+ public function setResources($resources)
1912
+ {
1913
+ $this->resources = $resources;
1914
+ }
1915
+
1916
+ public function getResources()
1917
+ {
1918
+ return $this->resources;
1919
+ }
1920
+ }
core/Google/Service/MapsEngine.php CHANGED
@@ -287,7 +287,11 @@ class GoogleGAL_Service_MapsEngine extends GoogleGAL_Service
287
  'maps',
288
  array(
289
  'methods' => array(
290
- 'get' => array(
 
 
 
 
291
  'path' => 'maps/{id}',
292
  'httpMethod' => 'GET',
293
  'parameters' => array(
@@ -342,6 +346,16 @@ class GoogleGAL_Service_MapsEngine extends GoogleGAL_Service
342
  'type' => 'string',
343
  ),
344
  ),
 
 
 
 
 
 
 
 
 
 
345
  ),
346
  )
347
  )
@@ -421,6 +435,16 @@ class GoogleGAL_Service_MapsEngine extends GoogleGAL_Service
421
  'type' => 'string',
422
  ),
423
  ),
 
 
 
 
 
 
 
 
 
 
424
  ),
425
  )
426
  )
@@ -459,7 +483,27 @@ class GoogleGAL_Service_MapsEngine extends GoogleGAL_Service
459
  'rasters',
460
  array(
461
  'methods' => array(
462
- 'list' => array(
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
463
  'path' => 'rasterCollections/{id}/rasters',
464
  'httpMethod' => 'GET',
465
  'parameters' => array(
@@ -838,13 +882,13 @@ class GoogleGAL_Service_MapsEngine_Assets_Resource extends GoogleGAL_Service_Res
838
  * @param string $id
839
  * The ID of the asset.
840
  * @param array $optParams Optional parameters.
841
- * @return GoogleGAL_Service_MapsEngine_MapsengineResource
842
  */
843
  public function get($id, $optParams = array())
844
  {
845
  $params = array('id' => $id);
846
  $params = array_merge($params, $optParams);
847
- return $this->call('get', array($params), "GoogleGAL_Service_MapsEngine_MapsengineResource");
848
  }
849
  /**
850
  * Return all assets readable by the current user. (assets.listAssets)
@@ -881,13 +925,13 @@ class GoogleGAL_Service_MapsEngine_Assets_Resource extends GoogleGAL_Service_Res
881
  * been created at or before this time.
882
  * @opt_param string type
883
  * An asset type restriction. If set, only resources of this type will be returned.
884
- * @return GoogleGAL_Service_MapsEngine_ResourcesListResponse
885
  */
886
  public function listAssets($optParams = array())
887
  {
888
  $params = array();
889
  $params = array_merge($params, $optParams);
890
- return $this->call('list', array($params), "GoogleGAL_Service_MapsEngine_ResourcesListResponse");
891
  }
892
  }
893
 
@@ -1085,6 +1129,19 @@ class GoogleGAL_Service_MapsEngine_LayersParents_Resource extends GoogleGAL_Serv
1085
  class GoogleGAL_Service_MapsEngine_Maps_Resource extends GoogleGAL_Service_Resource
1086
  {
1087
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1088
  /**
1089
  * Return metadata for a particular map. (maps.get)
1090
  *
@@ -1143,6 +1200,20 @@ class GoogleGAL_Service_MapsEngine_Maps_Resource extends GoogleGAL_Service_Resou
1143
  $params = array_merge($params, $optParams);
1144
  return $this->call('list', array($params), "GoogleGAL_Service_MapsEngine_MapsListResponse");
1145
  }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1146
  }
1147
 
1148
  /**
@@ -1250,6 +1321,20 @@ class GoogleGAL_Service_MapsEngine_RasterCollections_Resource extends GoogleGAL_
1250
  $params = array_merge($params, $optParams);
1251
  return $this->call('list', array($params), "GoogleGAL_Service_MapsEngine_RastercollectionsListResponse");
1252
  }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1253
  }
1254
 
1255
  /**
@@ -1297,6 +1382,43 @@ class GoogleGAL_Service_MapsEngine_RasterCollectionsParents_Resource extends Goo
1297
  class GoogleGAL_Service_MapsEngine_RasterCollectionsRasters_Resource extends GoogleGAL_Service_Resource
1298
  {
1299
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1300
  /**
1301
  * Return all rasters within a raster collection.
1302
  * (rasters.listRasterCollectionsRasters)
@@ -1785,6 +1907,147 @@ class GoogleGAL_Service_MapsEngine_AcquisitionTime extends GoogleGAL_Model
1785
  }
1786
  }
1787
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1788
  class GoogleGAL_Service_MapsEngine_Border extends GoogleGAL_Model
1789
  {
1790
  public $color;
@@ -2830,6 +3093,7 @@ class GoogleGAL_Service_MapsEngine_Map extends GoogleGAL_Collection
2830
  public $creationTime;
2831
  public $defaultViewport;
2832
  public $description;
 
2833
  public $id;
2834
  public $lastModifiedTime;
2835
  public $name;
@@ -2887,6 +3151,16 @@ class GoogleGAL_Service_MapsEngine_Map extends GoogleGAL_Collection
2887
  return $this->description;
2888
  }
2889
 
 
 
 
 
 
 
 
 
 
 
2890
  public function setId($id)
2891
  {
2892
  $this->id = $id;
@@ -3023,7 +3297,7 @@ class GoogleGAL_Service_MapsEngine_MapItem extends GoogleGAL_Model
3023
  }
3024
  }
3025
 
3026
- class GoogleGAL_Service_MapsEngine_MapKmlLink extends GoogleGAL_Model
3027
  {
3028
  public $defaultViewport;
3029
  public $kmlUrl;
@@ -3194,120 +3468,6 @@ class GoogleGAL_Service_MapsEngine_MapsengineFile extends GoogleGAL_Model
3194
  }
3195
  }
3196
 
3197
- class GoogleGAL_Service_MapsEngine_MapsengineResource extends GoogleGAL_Collection
3198
- {
3199
- public $bbox;
3200
- public $creationTime;
3201
- public $description;
3202
- public $id;
3203
- public $lastModifiedTime;
3204
- public $name;
3205
- public $projectId;
3206
- public $resource;
3207
- public $tags;
3208
- public $type;
3209
-
3210
- public function setBbox($bbox)
3211
- {
3212
- $this->bbox = $bbox;
3213
- }
3214
-
3215
- public function getBbox()
3216
- {
3217
- return $this->bbox;
3218
- }
3219
-
3220
- public function setCreationTime($creationTime)
3221
- {
3222
- $this->creationTime = $creationTime;
3223
- }
3224
-
3225
- public function getCreationTime()
3226
- {
3227
- return $this->creationTime;
3228
- }
3229
-
3230
- public function setDescription($description)
3231
- {
3232
- $this->description = $description;
3233
- }
3234
-
3235
- public function getDescription()
3236
- {
3237
- return $this->description;
3238
- }
3239
-
3240
- public function setId($id)
3241
- {
3242
- $this->id = $id;
3243
- }
3244
-
3245
- public function getId()
3246
- {
3247
- return $this->id;
3248
- }
3249
-
3250
- public function setLastModifiedTime($lastModifiedTime)
3251
- {
3252
- $this->lastModifiedTime = $lastModifiedTime;
3253
- }
3254
-
3255
- public function getLastModifiedTime()
3256
- {
3257
- return $this->lastModifiedTime;
3258
- }
3259
-
3260
- public function setName($name)
3261
- {
3262
- $this->name = $name;
3263
- }
3264
-
3265
- public function getName()
3266
- {
3267
- return $this->name;
3268
- }
3269
-
3270
- public function setProjectId($projectId)
3271
- {
3272
- $this->projectId = $projectId;
3273
- }
3274
-
3275
- public function getProjectId()
3276
- {
3277
- return $this->projectId;
3278
- }
3279
-
3280
- public function setResource($resource)
3281
- {
3282
- $this->resource = $resource;
3283
- }
3284
-
3285
- public function getResource()
3286
- {
3287
- return $this->resource;
3288
- }
3289
-
3290
- public function setTags($tags)
3291
- {
3292
- $this->tags = $tags;
3293
- }
3294
-
3295
- public function getTags()
3296
- {
3297
- return $this->tags;
3298
- }
3299
-
3300
- public function setType($type)
3301
- {
3302
- $this->type = $type;
3303
- }
3304
-
3305
- public function getType()
3306
- {
3307
- return $this->type;
3308
- }
3309
- }
3310
-
3311
  class GoogleGAL_Service_MapsEngine_Parent extends GoogleGAL_Model
3312
  {
3313
  public $id;
@@ -3572,6 +3732,7 @@ class GoogleGAL_Service_MapsEngine_RasterCollection extends GoogleGAL_Collection
3572
  public $lastModifiedTime;
3573
  public $mosaic;
3574
  public $name;
 
3575
  public $projectId;
3576
  public $rasterType;
3577
  public $tags;
@@ -3666,6 +3827,16 @@ class GoogleGAL_Service_MapsEngine_RasterCollection extends GoogleGAL_Collection
3666
  return $this->name;
3667
  }
3668
 
 
 
 
 
 
 
 
 
 
 
3669
  public function setProjectId($projectId)
3670
  {
3671
  $this->projectId = $projectId;
@@ -3697,6 +3868,46 @@ class GoogleGAL_Service_MapsEngine_RasterCollection extends GoogleGAL_Collection
3697
  }
3698
  }
3699
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
3700
  class GoogleGAL_Service_MapsEngine_RastercollectionsListResponse extends GoogleGAL_Collection
3701
  {
3702
  public $nextPageToken;
@@ -3751,36 +3962,9 @@ class GoogleGAL_Service_MapsEngine_RastersListResponse extends GoogleGAL_Collect
3751
  }
3752
  }
3753
 
3754
- class GoogleGAL_Service_MapsEngine_ResourcesListResponse extends GoogleGAL_Collection
3755
- {
3756
- protected $assetsType = 'GoogleGAL_Service_MapsEngine_MapsengineResource';
3757
- protected $assetsDataType = 'array';
3758
- public $nextPageToken;
3759
-
3760
- public function setAssets($assets)
3761
- {
3762
- $this->assets = $assets;
3763
- }
3764
-
3765
- public function getAssets()
3766
- {
3767
- return $this->assets;
3768
- }
3769
-
3770
- public function setNextPageToken($nextPageToken)
3771
- {
3772
- $this->nextPageToken = $nextPageToken;
3773
- }
3774
-
3775
- public function getNextPageToken()
3776
- {
3777
- return $this->nextPageToken;
3778
- }
3779
- }
3780
-
3781
  class GoogleGAL_Service_MapsEngine_Schema extends GoogleGAL_Collection
3782
  {
3783
- protected $columnsType = 'GoogleGAL_Service_MapsEngine_SchemaColumns';
3784
  protected $columnsDataType = 'array';
3785
  public $primaryGeometry;
3786
  public $primaryKey;
@@ -3816,32 +4000,6 @@ class GoogleGAL_Service_MapsEngine_Schema extends GoogleGAL_Collection
3816
  }
3817
  }
3818
 
3819
- class GoogleGAL_Service_MapsEngine_SchemaColumns extends GoogleGAL_Model
3820
- {
3821
- public $name;
3822
- public $type;
3823
-
3824
- public function setName($name)
3825
- {
3826
- $this->name = $name;
3827
- }
3828
-
3829
- public function getName()
3830
- {
3831
- return $this->name;
3832
- }
3833
-
3834
- public function setType($type)
3835
- {
3836
- $this->type = $type;
3837
- }
3838
-
3839
- public function getType()
3840
- {
3841
- return $this->type;
3842
- }
3843
- }
3844
-
3845
  class GoogleGAL_Service_MapsEngine_Table extends GoogleGAL_Collection
3846
  {
3847
  public $bbox;
@@ -4002,6 +4160,32 @@ class GoogleGAL_Service_MapsEngine_Table extends GoogleGAL_Collection
4002
  }
4003
  }
4004
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
4005
  class GoogleGAL_Service_MapsEngine_TablesListResponse extends GoogleGAL_Collection
4006
  {
4007
  public $nextPageToken;
287
  'maps',
288
  array(
289
  'methods' => array(
290
+ 'create' => array(
291
+ 'path' => 'maps',
292
+ 'httpMethod' => 'POST',
293
+ 'parameters' => array(),
294
+ ),'get' => array(
295
  'path' => 'maps/{id}',
296
  'httpMethod' => 'GET',
297
  'parameters' => array(
346
  'type' => 'string',
347
  ),
348
  ),
349
+ ),'publish' => array(
350
+ 'path' => 'maps/{id}/publish',
351
+ 'httpMethod' => 'POST',
352
+ 'parameters' => array(
353
+ 'id' => array(
354
+ 'location' => 'path',
355
+ 'type' => 'string',
356
+ 'required' => true,
357
+ ),
358
+ ),
359
  ),
360
  )
361
  )
435
  'type' => 'string',
436
  ),
437
  ),
438
+ ),'process' => array(
439
+ 'path' => 'rasterCollections/{id}/process',
440
+ 'httpMethod' => 'POST',
441
+ 'parameters' => array(
442
+ 'id' => array(
443
+ 'location' => 'path',
444
+ 'type' => 'string',
445
+ 'required' => true,
446
+ ),
447
+ ),
448
  ),
449
  )
450
  )
483
  'rasters',
484
  array(
485
  'methods' => array(
486
+ 'batchDelete' => array(
487
+ 'path' => 'rasterCollections/{id}/rasters/batchDelete',
488
+ 'httpMethod' => 'POST',
489
+ 'parameters' => array(
490
+ 'id' => array(
491
+ 'location' => 'path',
492
+ 'type' => 'string',
493
+ 'required' => true,
494
+ ),
495
+ ),
496
+ ),'batchInsert' => array(
497
+ 'path' => 'rasterCollections/{id}/rasters/batchInsert',
498
+ 'httpMethod' => 'POST',
499
+ 'parameters' => array(
500
+ 'id' => array(
501
+ 'location' => 'path',
502
+ 'type' => 'string',
503
+ 'required' => true,
504
+ ),
505
+ ),
506
+ ),'list' => array(
507
  'path' => 'rasterCollections/{id}/rasters',
508
  'httpMethod' => 'GET',
509
  'parameters' => array(
882
  * @param string $id
883
  * The ID of the asset.
884
  * @param array $optParams Optional parameters.
885
+ * @return GoogleGAL_Service_MapsEngine_Asset
886
  */
887
  public function get($id, $optParams = array())
888
  {
889
  $params = array('id' => $id);
890
  $params = array_merge($params, $optParams);
891
+ return $this->call('get', array($params), "GoogleGAL_Service_MapsEngine_Asset");
892
  }
893
  /**
894
  * Return all assets readable by the current user. (assets.listAssets)
925
  * been created at or before this time.
926
  * @opt_param string type
927
  * An asset type restriction. If set, only resources of this type will be returned.
928
+ * @return GoogleGAL_Service_MapsEngine_AssetsListResponse
929
  */
930
  public function listAssets($optParams = array())
931
  {
932
  $params = array();
933
  $params = array_merge($params, $optParams);
934
+ return $this->call('list', array($params), "GoogleGAL_Service_MapsEngine_AssetsListResponse");
935
  }
936
  }
937
 
1129
  class GoogleGAL_Service_MapsEngine_Maps_Resource extends GoogleGAL_Service_Resource
1130
  {
1131
 
1132
+ /**
1133
+ * Create a map asset. (maps.create)
1134
+ *
1135
+ * @param GoogleGAL_Map $postBody
1136
+ * @param array $optParams Optional parameters.
1137
+ * @return GoogleGAL_Service_MapsEngine_Map
1138
+ */
1139
+ public function create(GoogleGAL_Service_MapsEngine_Map $postBody, $optParams = array())
1140
+ {
1141
+ $params = array('postBody' => $postBody);
1142
+ $params = array_merge($params, $optParams);
1143
+ return $this->call('create', array($params), "GoogleGAL_Service_MapsEngine_Map");
1144
+ }
1145
  /**
1146
  * Return metadata for a particular map. (maps.get)
1147
  *
1200
  $params = array_merge($params, $optParams);
1201
  return $this->call('list', array($params), "GoogleGAL_Service_MapsEngine_MapsListResponse");
1202
  }
1203
+ /**
1204
+ * Publish a map asset. (maps.publish)
1205
+ *
1206
+ * @param string $id
1207
+ * The ID of the map.
1208
+ * @param array $optParams Optional parameters.
1209
+ * @return GoogleGAL_Service_MapsEngine_PublishResponse
1210
+ */
1211
+ public function publish($id, $optParams = array())
1212
+ {
1213
+ $params = array('id' => $id);
1214
+ $params = array_merge($params, $optParams);
1215
+ return $this->call('publish', array($params), "GoogleGAL_Service_MapsEngine_PublishResponse");
1216
+ }
1217
  }
1218
 
1219
  /**
1321
  $params = array_merge($params, $optParams);
1322
  return $this->call('list', array($params), "GoogleGAL_Service_MapsEngine_RastercollectionsListResponse");
1323
  }
1324
+ /**
1325
+ * Process a raster collection asset. (rasterCollections.process)
1326
+ *
1327
+ * @param string $id
1328
+ * The ID of the raster collection.
1329
+ * @param array $optParams Optional parameters.
1330
+ * @return GoogleGAL_Service_MapsEngine_ProcessResponse
1331
+ */
1332
+ public function process($id, $optParams = array())
1333
+ {
1334
+ $params = array('id' => $id);
1335
+ $params = array_merge($params, $optParams);
1336
+ return $this->call('process', array($params), "GoogleGAL_Service_MapsEngine_ProcessResponse");
1337
+ }
1338
  }
1339
 
1340
  /**
1382
  class GoogleGAL_Service_MapsEngine_RasterCollectionsRasters_Resource extends GoogleGAL_Service_Resource
1383
  {
1384
 
1385
+ /**
1386
+ * Remove rasters from an existing raster collection.
1387
+ *
1388
+ * Up to 50 rasters can be included in a single batchDelete request. Each
1389
+ * batchDelete request is atomic. (rasters.batchDelete)
1390
+ *
1391
+ * @param string $id
1392
+ * The ID of the raster collection to which these rasters belong.
1393
+ * @param GoogleGAL_RasterCollectionsRasterBatchDeleteRequest $postBody
1394
+ * @param array $optParams Optional parameters.
1395
+ * @return GoogleGAL_Service_MapsEngine_RasterCollectionsRastersBatchDeleteResponse
1396
+ */
1397
+ public function batchDelete($id, GoogleGAL_Service_MapsEngine_RasterCollectionsRasterBatchDeleteRequest $postBody, $optParams = array())
1398
+ {
1399
+ $params = array('id' => $id, 'postBody' => $postBody);
1400
+ $params = array_merge($params, $optParams);
1401
+ return $this->call('batchDelete', array($params), "GoogleGAL_Service_MapsEngine_RasterCollectionsRastersBatchDeleteResponse");
1402
+ }
1403
+ /**
1404
+ * Add rasters to an existing raster collection. Rasters must be successfully
1405
+ * processed in order to be added to a raster collection.
1406
+ *
1407
+ * Up to 50 rasters can be included in a single batchInsert request. Each
1408
+ * batchInsert request is atomic. (rasters.batchInsert)
1409
+ *
1410
+ * @param string $id
1411
+ * The ID of the raster collection to which these rasters belong.
1412
+ * @param GoogleGAL_RasterCollectionsRastersBatchInsertRequest $postBody
1413
+ * @param array $optParams Optional parameters.
1414
+ * @return GoogleGAL_Service_MapsEngine_RasterCollectionsRastersBatchInsertResponse
1415
+ */
1416
+ public function batchInsert($id, GoogleGAL_Service_MapsEngine_RasterCollectionsRastersBatchInsertRequest $postBody, $optParams = array())
1417
+ {
1418
+ $params = array('id' => $id, 'postBody' => $postBody);
1419
+ $params = array_merge($params, $optParams);
1420
+ return $this->call('batchInsert', array($params), "GoogleGAL_Service_MapsEngine_RasterCollectionsRastersBatchInsertResponse");
1421
+ }
1422
  /**
1423
  * Return all rasters within a raster collection.
1424
  * (rasters.listRasterCollectionsRasters)
1907
  }
1908
  }
1909
 
1910
+ class GoogleGAL_Service_MapsEngine_Asset extends GoogleGAL_Collection
1911
+ {
1912
+ public $bbox;
1913
+ public $creationTime;
1914
+ public $description;
1915
+ public $id;
1916
+ public $lastModifiedTime;
1917
+ public $name;
1918
+ public $projectId;
1919
+ public $resource;
1920
+ public $tags;
1921
+ public $type;
1922
+
1923
+ public function setBbox($bbox)
1924
+ {
1925
+ $this->bbox = $bbox;
1926
+ }
1927
+
1928
+ public function getBbox()
1929
+ {
1930
+ return $this->bbox;
1931
+ }
1932
+
1933
+ public function setCreationTime($creationTime)
1934
+ {
1935
+ $this->creationTime = $creationTime;
1936
+ }
1937
+
1938
+ public function getCreationTime()
1939
+ {
1940
+ return $this->creationTime;
1941
+ }
1942
+
1943
+ public function setDescription($description)
1944
+ {
1945
+ $this->description = $description;
1946
+ }
1947
+
1948
+ public function getDescription()
1949
+ {
1950
+ return $this->description;
1951
+ }
1952
+
1953
+ public function setId($id)
1954
+ {
1955
+ $this->id = $id;
1956
+ }
1957
+
1958
+ public function getId()
1959
+ {
1960
+ return $this->id;
1961
+ }
1962
+
1963
+ public function setLastModifiedTime($lastModifiedTime)
1964
+ {
1965
+ $this->lastModifiedTime = $lastModifiedTime;
1966
+ }
1967
+
1968
+ public function getLastModifiedTime()
1969
+ {
1970
+ return $this->lastModifiedTime;
1971
+ }
1972
+
1973
+ public function setName($name)
1974
+ {
1975
+ $this->name = $name;
1976
+ }
1977
+
1978
+ public function getName()
1979
+ {
1980
+ return $this->name;
1981
+ }
1982
+
1983
+ public function setProjectId($projectId)
1984
+ {
1985
+ $this->projectId = $projectId;
1986
+ }
1987
+
1988
+ public function getProjectId()
1989
+ {
1990
+ return $this->projectId;
1991
+ }
1992
+
1993
+ public function setResource($resource)
1994
+ {
1995
+ $this->resource = $resource;
1996
+ }
1997
+
1998
+ public function getResource()
1999
+ {
2000
+ return $this->resource;
2001
+ }
2002
+
2003
+ public function setTags($tags)
2004
+ {
2005
+ $this->tags = $tags;
2006
+ }
2007
+
2008
+ public function getTags()
2009
+ {
2010
+ return $this->tags;
2011
+ }
2012
+
2013
+ public function setType($type)
2014
+ {
2015
+ $this->type = $type;
2016
+ }
2017
+
2018
+ public function getType()
2019
+ {
2020
+ return $this->type;
2021
+ }
2022
+ }
2023
+
2024
+ class GoogleGAL_Service_MapsEngine_AssetsListResponse extends GoogleGAL_Collection
2025
+ {
2026
+ protected $assetsType = 'GoogleGAL_Service_MapsEngine_Asset';
2027
+ protected $assetsDataType = 'array';
2028
+ public $nextPageToken;
2029
+
2030
+ public function setAssets($assets)
2031
+ {
2032
+ $this->assets = $assets;
2033
+ }
2034
+
2035
+ public function getAssets()
2036
+ {
2037
+ return $this->assets;
2038
+ }
2039
+
2040
+ public function setNextPageToken($nextPageToken)
2041
+ {
2042
+ $this->nextPageToken = $nextPageToken;
2043
+ }
2044
+
2045
+ public function getNextPageToken()
2046
+ {
2047
+ return $this->nextPageToken;
2048
+ }
2049
+ }
2050
+
2051
  class GoogleGAL_Service_MapsEngine_Border extends GoogleGAL_Model
2052
  {
2053
  public $color;
3093
  public $creationTime;
3094
  public $defaultViewport;
3095
  public $description;
3096
+ public $draftAccessList;
3097
  public $id;
3098
  public $lastModifiedTime;
3099
  public $name;
3151
  return $this->description;
3152
  }
3153
 
3154
+ public function setDraftAccessList($draftAccessList)
3155
+ {
3156
+ $this->draftAccessList = $draftAccessList;
3157
+ }
3158
+
3159
+ public function getDraftAccessList()
3160
+ {
3161
+ return $this->draftAccessList;
3162
+ }
3163
+
3164
  public function setId($id)
3165
  {
3166
  $this->id = $id;
3297
  }
3298
  }
3299
 
3300
+ class GoogleGAL_Service_MapsEngine_MapKmlLink extends GoogleGAL_Collection
3301
  {
3302
  public $defaultViewport;
3303
  public $kmlUrl;
3468
  }
3469
  }
3470
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
3471
  class GoogleGAL_Service_MapsEngine_Parent extends GoogleGAL_Model
3472
  {
3473
  public $id;
3732
  public $lastModifiedTime;
3733
  public $mosaic;
3734
  public $name;
3735
+ public $processingStatus;
3736
  public $projectId;
3737
  public $rasterType;
3738
  public $tags;
3827
  return $this->name;
3828
  }
3829
 
3830
+ public function setProcessingStatus($processingStatus)
3831
+ {
3832
+ $this->processingStatus = $processingStatus;
3833
+ }
3834
+
3835
+ public function getProcessingStatus()
3836
+ {
3837
+ return $this->processingStatus;
3838
+ }
3839
+
3840
  public function setProjectId($projectId)
3841
  {
3842
  $this->projectId = $projectId;
3868
  }
3869
  }
3870
 
3871
+ class GoogleGAL_Service_MapsEngine_RasterCollectionsRasterBatchDeleteRequest extends GoogleGAL_Collection
3872
+ {
3873
+ public $ids;
3874
+
3875
+ public function setIds($ids)
3876
+ {
3877
+ $this->ids = $ids;
3878
+ }
3879
+
3880
+ public function getIds()
3881
+ {
3882
+ return $this->ids;
3883
+ }
3884
+ }
3885
+
3886
+ class GoogleGAL_Service_MapsEngine_RasterCollectionsRastersBatchDeleteResponse extends GoogleGAL_Model
3887
+ {
3888
+
3889
+ }
3890
+
3891
+ class GoogleGAL_Service_MapsEngine_RasterCollectionsRastersBatchInsertRequest extends GoogleGAL_Collection
3892
+ {
3893
+ public $ids;
3894
+
3895
+ public function setIds($ids)
3896
+ {
3897
+ $this->ids = $ids;
3898
+ }
3899
+
3900
+ public function getIds()
3901
+ {
3902
+ return $this->ids;
3903
+ }
3904
+ }
3905
+
3906
+ class GoogleGAL_Service_MapsEngine_RasterCollectionsRastersBatchInsertResponse extends GoogleGAL_Model
3907
+ {
3908
+
3909
+ }
3910
+
3911
  class GoogleGAL_Service_MapsEngine_RastercollectionsListResponse extends GoogleGAL_Collection
3912
  {
3913
  public $nextPageToken;
3962
  }
3963
  }
3964
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
3965
  class GoogleGAL_Service_MapsEngine_Schema extends GoogleGAL_Collection
3966
  {
3967
+ protected $columnsType = 'GoogleGAL_Service_MapsEngine_TableColumn';
3968
  protected $columnsDataType = 'array';
3969
  public $primaryGeometry;
3970
  public $primaryKey;
4000
  }
4001
  }
4002
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
4003
  class GoogleGAL_Service_MapsEngine_Table extends GoogleGAL_Collection
4004
  {
4005
  public $bbox;
4160
  }
4161
  }
4162
 
4163
+ class GoogleGAL_Service_MapsEngine_TableColumn extends GoogleGAL_Model
4164
+ {
4165
+ public $name;
4166
+ public $type;
4167
+
4168
+ public function setName($name)
4169
+ {
4170
+ $this->name = $name;
4171
+ }
4172
+
4173
+ public function getName()
4174
+ {
4175
+ return $this->name;
4176
+ }
4177
+
4178
+ public function setType($type)
4179
+ {
4180
+ $this->type = $type;
4181
+ }
4182
+
4183
+ public function getType()
4184
+ {
4185
+ return $this->type;
4186
+ }
4187
+ }
4188
+
4189
  class GoogleGAL_Service_MapsEngine_TablesListResponse extends GoogleGAL_Collection
4190
  {
4191
  public $nextPageToken;
core/Google/Service/Mirror.php CHANGED
@@ -36,8 +36,10 @@ class GoogleGAL_Service_Mirror extends GoogleGAL_Service
36
  /** View and manage your Glass timeline. */
37
  const GLASS_TIMELINE = "https://www.googleapis.com/auth/glass.timeline";
38
 
 
39
  public $contacts;
40
  public $locations;
 
41
  public $subscriptions;
42
  public $timeline;
43
  public $timeline_attachments;
@@ -55,6 +57,36 @@ class GoogleGAL_Service_Mirror extends GoogleGAL_Service
55
  $this->version = 'v1';
56
  $this->serviceName = 'mirror';
57
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
58
  $this->contacts = new GoogleGAL_Service_Mirror_Contacts_Resource(
59
  $this,
60
  $this->serviceName,
@@ -137,6 +169,26 @@ class GoogleGAL_Service_Mirror extends GoogleGAL_Service
137
  )
138
  )
139
  );
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
140
  $this->subscriptions = new GoogleGAL_Service_Mirror_Subscriptions_Resource(
141
  $this,
142
  $this->serviceName,
@@ -326,6 +378,38 @@ class GoogleGAL_Service_Mirror extends GoogleGAL_Service
326
  }
327
 
328
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
329
  /**
330
  * The "contacts" collection of methods.
331
  * Typical usage is:
@@ -462,6 +546,33 @@ class GoogleGAL_Service_Mirror_Locations_Resource extends GoogleGAL_Service_Reso
462
  }
463
  }
464
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
465
  /**
466
  * The "subscriptions" collection of methods.
467
  * Typical usage is:
@@ -718,6 +829,56 @@ class GoogleGAL_Service_Mirror_TimelineAttachments_Resource extends GoogleGAL_Se
718
 
719
 
720
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
721
  class GoogleGAL_Service_Mirror_Attachment extends GoogleGAL_Model
722
  {
723
  public $contentType;
@@ -793,6 +954,32 @@ class GoogleGAL_Service_Mirror_AttachmentsListResponse extends GoogleGAL_Collect
793
  }
794
  }
795
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
796
  class GoogleGAL_Service_Mirror_Command extends GoogleGAL_Model
797
  {
798
  public $type;
@@ -1285,6 +1472,43 @@ class GoogleGAL_Service_Mirror_NotificationConfig extends GoogleGAL_Model
1285
  }
1286
  }
1287
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1288
  class GoogleGAL_Service_Mirror_Subscription extends GoogleGAL_Collection
1289
  {
1290
  public $callbackUrl;
@@ -1775,3 +1999,29 @@ class GoogleGAL_Service_Mirror_UserAction extends GoogleGAL_Model
1775
  return $this->type;
1776
  }
1777
  }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
36
  /** View and manage your Glass timeline. */
37
  const GLASS_TIMELINE = "https://www.googleapis.com/auth/glass.timeline";
38
 
39
+ public $accounts;
40
  public $contacts;
41
  public $locations;
42
+ public $settings;
43
  public $subscriptions;
44
  public $timeline;
45
  public $timeline_attachments;
57
  $this->version = 'v1';
58
  $this->serviceName = 'mirror';
59
 
60
+ $this->accounts = new GoogleGAL_Service_Mirror_Accounts_Resource(
61
+ $this,
62
+ $this->serviceName,
63
+ 'accounts',
64
+ array(
65
+ 'methods' => array(
66
+ 'insert' => array(
67
+ 'path' => 'accounts/{userToken}/{accountType}/{accountName}',
68
+ 'httpMethod' => 'POST',
69
+ 'parameters' => array(
70
+ 'userToken' => array(
71
+ 'location' => 'path',
72
+ 'type' => 'string',
73
+ 'required' => true,
74
+ ),
75
+ 'accountType' => array(
76
+ 'location' => 'path',
77
+ 'type' => 'string',
78
+ 'required' => true,
79
+ ),
80
+ 'accountName' => array(
81
+ 'location' => 'path',
82
+ 'type' => 'string',
83
+ 'required' => true,
84
+ ),
85
+ ),
86
+ ),
87
+ )
88
+ )
89
+ );
90
  $this->contacts = new GoogleGAL_Service_Mirror_Contacts_Resource(
91
  $this,
92
  $this->serviceName,
169
  )
170
  )
171
  );
172
+ $this->settings = new GoogleGAL_Service_Mirror_Settings_Resource(
173
+ $this,
174
+ $this->serviceName,
175
+ 'settings',
176
+ array(
177
+ 'methods' => array(
178
+ 'get' => array(
179
+ 'path' => 'settings/{id}',
180
+ 'httpMethod' => 'GET',
181
+ 'parameters' => array(
182
+ 'id' => array(
183
+ 'location' => 'path',
184
+ 'type' => 'string',
185
+ 'required' => true,
186
+ ),
187
+ ),
188
+ ),
189
+ )
190
+ )
191
+ );
192
  $this->subscriptions = new GoogleGAL_Service_Mirror_Subscriptions_Resource(
193
  $this,
194
  $this->serviceName,
378
  }
379
 
380
 
381
+ /**
382
+ * The "accounts" collection of methods.
383
+ * Typical usage is:
384
+ * <code>
385
+ * $mirrorService = new GoogleGAL_Service_Mirror(...);
386
+ * $accounts = $mirrorService->accounts;
387
+ * </code>
388
+ */
389
+ class GoogleGAL_Service_Mirror_Accounts_Resource extends GoogleGAL_Service_Resource
390
+ {
391
+
392
+ /**
393
+ * Inserts a new account for a user (accounts.insert)
394
+ *
395
+ * @param string $userToken
396
+ * The ID for the user.
397
+ * @param string $accountType
398
+ * Account type to be passed to Android Account Manager.
399
+ * @param string $accountName
400
+ * The name of the account to be passed to the Android Account Manager.
401
+ * @param GoogleGAL_Account $postBody
402
+ * @param array $optParams Optional parameters.
403
+ * @return GoogleGAL_Service_Mirror_Account
404
+ */
405
+ public function insert($userToken, $accountType, $accountName, GoogleGAL_Service_Mirror_Account $postBody, $optParams = array())
406
+ {
407
+ $params = array('userToken' => $userToken, 'accountType' => $accountType, 'accountName' => $accountName, 'postBody' => $postBody);
408
+ $params = array_merge($params, $optParams);
409
+ return $this->call('insert', array($params), "GoogleGAL_Service_Mirror_Account");
410
+ }
411
+ }
412
+
413
  /**
414
  * The "contacts" collection of methods.
415
  * Typical usage is:
546
  }
547
  }
548
 
549
+ /**
550
+ * The "settings" collection of methods.
551
+ * Typical usage is:
552
+ * <code>
553
+ * $mirrorService = new GoogleGAL_Service_Mirror(...);
554
+ * $settings = $mirrorService->settings;
555
+ * </code>
556
+ */
557
+ class GoogleGAL_Service_Mirror_Settings_Resource extends GoogleGAL_Service_Resource
558
+ {
559
+
560
+ /**
561
+ * Gets a single setting by ID. (settings.get)
562
+ *
563
+ * @param string $id
564
+ * The ID of the setting.
565
+ * @param array $optParams Optional parameters.
566
+ * @return GoogleGAL_Service_Mirror_Setting
567
+ */
568
+ public function get($id, $optParams = array())
569
+ {
570
+ $params = array('id' => $id);
571
+ $params = array_merge($params, $optParams);
572
+ return $this->call('get', array($params), "GoogleGAL_Service_Mirror_Setting");
573
+ }
574
+ }
575
+
576
  /**
577
  * The "subscriptions" collection of methods.
578
  * Typical usage is:
829
 
830
 
831
 
832
+ class GoogleGAL_Service_Mirror_Account extends GoogleGAL_Collection
833
+ {
834
+ protected $authTokensType = 'GoogleGAL_Service_Mirror_AuthToken';
835
+ protected $authTokensDataType = 'array';
836
+ public $features;
837
+ public $password;
838
+ protected $userDataType = 'GoogleGAL_Service_Mirror_UserData';
839
+ protected $userDataDataType = 'array';
840
+
841
+ public function setAuthTokens($authTokens)
842
+ {
843
+ $this->authTokens = $authTokens;
844
+ }
845
+
846
+ public function getAuthTokens()
847
+ {
848
+ return $this->authTokens;
849
+ }
850
+
851
+ public function setFeatures($features)
852
+ {
853
+ $this->features = $features;
854
+ }
855
+
856
+ public function getFeatures()
857
+ {
858
+ return $this->features;
859
+ }
860
+
861
+ public function setPassword($password)
862
+ {
863
+ $this->password = $password;
864
+ }
865
+
866
+ public function getPassword()
867
+ {
868
+ return $this->password;
869
+ }
870
+
871
+ public function setUserData($userData)
872
+ {
873
+ $this->userData = $userData;
874
+ }
875
+
876
+ public function getUserData()
877
+ {
878
+ return $this->userData;
879
+ }
880
+ }
881
+
882
  class GoogleGAL_Service_Mirror_Attachment extends GoogleGAL_Model
883
  {
884
  public $contentType;
954
  }
955
  }
956
 
957
+ class GoogleGAL_Service_Mirror_AuthToken extends GoogleGAL_Model
958
+ {
959
+ public $authToken;
960
+ public $type;
961
+
962
+ public function setAuthToken($authToken)
963
+ {
964
+ $this->authToken = $authToken;
965
+ }
966
+
967
+ public function getAuthToken()
968
+ {
969
+ return $this->authToken;
970
+ }
971
+
972
+ public function setType($type)
973
+ {
974
+ $this->type = $type;
975
+ }
976
+
977
+ public function getType()
978
+ {
979
+ return $this->type;
980
+ }
981
+ }
982
+
983
  class GoogleGAL_Service_Mirror_Command extends GoogleGAL_Model
984
  {
985
  public $type;
1472
  }
1473
  }
1474
 
1475
+ class GoogleGAL_Service_Mirror_Setting extends GoogleGAL_Model
1476
+ {
1477
+ public $id;
1478
+ public $kind;
1479
+ public $value;
1480
+
1481
+ public function setId($id)
1482
+ {
1483
+ $this->id = $id;
1484
+ }
1485
+
1486
+ public function getId()
1487
+ {
1488
+ return $this->id;
1489
+ }
1490
+
1491
+ public function setKind($kind)
1492
+ {
1493
+ $this->kind = $kind;
1494
+ }
1495
+
1496
+ public function getKind()
1497
+ {
1498
+ return $this->kind;
1499
+ }
1500
+
1501
+ public function setValue($value)
1502
+ {
1503
+ $this->value = $value;
1504
+ }
1505
+
1506
+ public function getValue()
1507
+ {
1508
+ return $this->value;
1509
+ }
1510
+ }
1511
+
1512
  class GoogleGAL_Service_Mirror_Subscription extends GoogleGAL_Collection
1513
  {
1514
  public $callbackUrl;
1999
  return $this->type;
2000
  }
2001
  }
2002
+
2003
+ class GoogleGAL_Service_Mirror_UserData extends GoogleGAL_Model
2004
+ {
2005
+ public $key;
2006
+ public $value;
2007
+
2008
+ public function setKey($key)
2009
+ {
2010
+ $this->key = $key;
2011
+ }
2012
+
2013
+ public function getKey()
2014
+ {
2015
+ return $this->key;
2016
+ }
2017
+
2018
+ public function setValue($value)
2019
+ {
2020
+ $this->value = $value;
2021
+ }
2022
+
2023
+ public function getValue()
2024
+ {
2025
+ return $this->value;
2026
+ }
2027
+ }
core/Google/Service/Replicapool.php ADDED
@@ -0,0 +1,1589 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /*
3
+ * Copyright 2010 Google Inc.
4
+ *
5
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
6
+ * use this file except in compliance with the License. You may obtain a copy of
7
+ * 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, WITHOUT
13
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
14
+ * License for the specific language governing permissions and limitations under
15
+ * the License.
16
+ */
17
+
18
+ /**
19
+ * Service definition for Replicapool (v1beta1).
20
+ *
21
+ * <p>
22
+ * The Replica Pool API allows users to declaratively provision and manage groups of Google Compute Engine instances based on a common template.
23
+ * </p>
24
+ *
25
+ * <p>
26
+ * For more information about this service, see the API
27
+ * <a href="https://developers.google.com/compute/docs/replica-pool/" target="_blank">Documentation</a>
28
+ * </p>
29
+ *
30
+ * @author Google, Inc.
31
+ */
32
+ class GoogleGAL_Service_Replicapool extends GoogleGAL_Service
33
+ {
34
+ /** View and manage your data across Google Cloud Platform services. */
35
+ const CLOUD_PLATFORM = "https://www.googleapis.com/auth/cloud-platform";
36
+ /** View and manage your Google Cloud Platform management resources and deployment status information. */
37
+ const NDEV_CLOUDMAN = "https://www.googleapis.com/auth/ndev.cloudman";
38
+ /** View your Google Cloud Platform management resources and deployment status information. */
39
+ const NDEV_CLOUDMAN_READONLY = "https://www.googleapis.com/auth/ndev.cloudman.readonly";
40
+ /** View and manage replica pools. */
41
+ const REPLICAPOOL = "https://www.googleapis.com/auth/replicapool";
42
+ /** View replica pools. */
43
+ const REPLICAPOOL_READONLY = "https://www.googleapis.com/auth/replicapool.readonly";
44
+
45
+ public $pools;
46
+ public $replicas;
47
+
48
+
49
+ /**
50
+ * Constructs the internal representation of the Replicapool service.
51
+ *
52
+ * @param GoogleGAL_Client $client
53
+ */
54
+ public function __construct(GoogleGAL_Client $client)
55
+ {
56
+ parent::__construct($client);
57
+ $this->servicePath = 'replicapool/v1beta1/projects/';
58
+ $this->version = 'v1beta1';
59
+ $this->serviceName = 'replicapool';
60
+
61
+ $this->pools = new GoogleGAL_Service_Replicapool_Pools_Resource(
62
+ $this,
63
+ $this->serviceName,
64
+ 'pools',
65
+ array(
66
+ 'methods' => array(
67
+ 'delete' => array(
68
+ 'path' => '{projectName}/zones/{zone}/pools/{poolName}',
69
+ 'httpMethod' => 'POST',
70
+ 'parameters' => array(
71
+ 'projectName' => array(
72
+ 'location' => 'path',
73
+ 'type' => 'string',
74
+ 'required' => true,
75
+ ),
76
+ 'zone' => array(
77
+ 'location' => 'path',
78
+ 'type' => 'string',
79
+ 'required' => true,
80
+ ),
81
+ 'poolName' => array(
82
+ 'location' => 'path',
83
+ 'type' => 'string',
84
+ 'required' => true,
85
+ ),
86
+ ),
87
+ ),'get' => array(
88
+ 'path' => '{projectName}/zones/{zone}/pools/{poolName}',
89
+ 'httpMethod' => 'GET',
90
+ 'parameters' => array(
91
+ 'projectName' => array(
92
+ 'location' => 'path',
93
+ 'type' => 'string',
94
+ 'required' => true,
95
+ ),
96
+ 'zone' => array(
97
+ 'location' => 'path',
98
+ 'type' => 'string',
99
+ 'required' => true,
100
+ ),
101
+ 'poolName' => array(
102
+ 'location' => 'path',
103
+ 'type' => 'string',
104
+ 'required' => true,
105
+ ),
106
+ ),
107
+ ),'insert' => array(
108
+ 'path' => '{projectName}/zones/{zone}/pools',
109
+ 'httpMethod' => 'POST',
110
+ 'parameters' => array(
111
+ 'projectName' => array(
112
+ 'location' => 'path',
113
+ 'type' => 'string',
114
+ 'required' => true,
115
+ ),
116
+ 'zone' => array(
117
+ 'location' => 'path',
118
+ 'type' => 'string',
119
+ 'required' => true,
120
+ ),
121
+ ),
122
+ ),'list' => array(
123
+ 'path' => '{projectName}/zones/{zone}/pools',
124
+ 'httpMethod' => 'GET',
125
+ 'parameters' => array(
126
+ 'projectName' => array(
127
+ 'location' => 'path',
128
+ 'type' => 'string',
129
+ 'required' => true,
130
+ ),
131
+ 'zone' => array(
132
+ 'location' => 'path',
133
+ 'type' => 'string',
134
+ 'required' => true,
135
+ ),
136
+ 'pageToken' => array(
137
+ 'location' => 'query',
138
+ 'type' => 'string',
139
+ ),
140
+ 'maxResults' => array(
141
+ 'location' => 'query',
142
+ 'type' => 'integer',
143
+ ),
144
+ ),
145
+ ),'resize' => array(
146
+ 'path' => '{projectName}/zones/{zone}/pools/{poolName}/resize',
147
+ 'httpMethod' => 'POST',
148
+ 'parameters' => array(
149
+ 'projectName' => array(
150
+ 'location' => 'path',
151
+ 'type' => 'string',
152
+ 'required' => true,
153
+ ),
154
+ 'zone' => array(
155
+ 'location' => 'path',
156
+ 'type' => 'string',
157
+ 'required' => true,
158
+ ),
159
+ 'poolName' => array(
160
+ 'location' => 'path',
161
+ 'type' => 'string',
162
+ 'required' => true,
163
+ ),
164
+ 'numReplicas' => array(
165
+ 'location' => 'query',
166
+ 'type' => 'integer',
167
+ ),
168
+ ),
169
+ ),'updatetemplate' => array(
170
+ 'path' => '{projectName}/zones/{zone}/pools/{poolName}/updateTemplate',
171
+ 'httpMethod' => 'POST',
172
+ 'parameters' => array(
173
+ 'projectName' => array(
174
+ 'location' => 'path',
175
+ 'type' => 'string',
176
+ 'required' => true,
177
+ ),
178
+ 'zone' => array(
179
+ 'location' => 'path',
180
+ 'type' => 'string',
181
+ 'required' => true,
182
+ ),
183
+ 'poolName' => array(
184
+ 'location' => 'path',
185
+ 'type' => 'string',
186
+ 'required' => true,
187
+ ),
188
+ ),
189
+ ),
190
+ )
191
+ )
192
+ );
193
+ $this->replicas = new GoogleGAL_Service_Replicapool_Replicas_Resource(
194
+ $this,
195
+ $this->serviceName,
196
+ 'replicas',
197
+ array(
198
+ 'methods' => array(
199
+ 'delete' => array(
200
+ 'path' => '{projectName}/zones/{zone}/pools/{poolName}/replicas/{replicaName}',
201
+ 'httpMethod' => 'POST',
202
+ 'parameters' => array(
203
+ 'projectName' => array(
204
+ 'location' => 'path',
205
+ 'type' => 'string',
206
+ 'required' => true,
207
+ ),
208
+ 'zone' => array(
209
+ 'location' => 'path',
210
+ 'type' => 'string',
211
+ 'required' => true,
212
+ ),
213
+ 'poolName' => array(
214
+ 'location' => 'path',
215
+ 'type' => 'string',
216
+ 'required' => true,
217
+ ),
218
+ 'replicaName' => array(
219
+ 'location' => 'path',
220
+ 'type' => 'string',
221
+ 'required' => true,
222
+ ),
223
+ ),
224
+ ),'get' => array(
225
+ 'path' => '{projectName}/zones/{zone}/pools/{poolName}/replicas/{replicaName}',
226
+ 'httpMethod' => 'GET',
227
+ 'parameters' => array(
228
+ 'projectName' => array(
229
+ 'location' => 'path',
230
+ 'type' => 'string',
231
+ 'required' => true,
232
+ ),
233
+ 'zone' => array(
234
+ 'location' => 'path',
235
+ 'type' => 'string',
236
+ 'required' => true,
237
+ ),
238
+ 'poolName' => array(
239
+ 'location' => 'path',
240
+ 'type' => 'string',
241
+ 'required' => true,
242
+ ),
243
+ 'replicaName' => array(
244
+ 'location' => 'path',
245
+ 'type' => 'string',
246
+ 'required' => true,
247
+ ),
248
+ ),
249
+ ),'list' => array(
250
+ 'path' => '{projectName}/zones/{zone}/pools/{poolName}/replicas',
251
+ 'httpMethod' => 'GET',
252
+ 'parameters' => array(
253
+ 'projectName' => array(
254
+ 'location' => 'path',
255
+ 'type' => 'string',
256
+ 'required' => true,
257
+ ),
258
+ 'zone' => array(
259
+ 'location' => 'path',
260
+ 'type' => 'string',
261
+ 'required' => true,
262
+ ),
263
+ 'poolName' => array(
264
+ 'location' => 'path',
265
+ 'type' => 'string',
266
+ 'required' => true,
267
+ ),
268
+ 'pageToken' => array(
269
+ 'location' => 'query',
270
+ 'type' => 'string',
271
+ ),
272
+ 'maxResults' => array(
273
+ 'location' => 'query',
274
+ 'type' => 'integer',
275
+ ),
276
+ ),
277
+ ),'restart' => array(
278
+ 'path' => '{projectName}/zones/{zone}/pools/{poolName}/replicas/{replicaName}/restart',
279
+ 'httpMethod' => 'POST',
280
+ 'parameters' => array(
281
+ 'projectName' => array(
282
+ 'location' => 'path',
283
+ 'type' => 'string',
284
+ 'required' => true,
285
+ ),
286
+ 'zone' => array(
287
+ 'location' => 'path',
288
+ 'type' => 'string',
289
+ 'required' => true,
290
+ ),
291
+ 'poolName' => array(
292
+ 'location' => 'path',
293
+ 'type' => 'string',
294
+ 'required' => true,
295
+ ),
296
+ 'replicaName' => array(
297
+ 'location' => 'path',
298
+ 'type' => 'string',
299
+ 'required' => true,
300
+ ),
301
+ ),
302
+ ),
303
+ )
304
+ )
305
+ );
306
+ }
307
+ }
308
+
309
+
310
+ /**
311
+ * The "pools" collection of methods.
312
+ * Typical usage is:
313
+ * <code>
314
+ * $replicapoolService = new GoogleGAL_Service_Replicapool(...);
315
+ * $pools = $replicapoolService->pools;
316
+ * </code>
317
+ */
318
+ class GoogleGAL_Service_Replicapool_Pools_Resource extends GoogleGAL_Service_Resource
319
+ {
320
+
321
+ /**
322
+ * Deletes a replica pool. (pools.delete)
323
+ *
324
+ * @param string $projectName
325
+ * The project ID for this replica pool.
326
+ * @param string $zone
327
+ * The zone for this replica pool.
328
+ * @param string $poolName
329
+ * The name of the replica pool to delete.
330
+ * @param GoogleGAL_PoolsDeleteRequest $postBody
331
+ * @param array $optParams Optional parameters.
332
+ */
333
+ public function delete($projectName, $zone, $poolName, GoogleGAL_Service_Replicapool_PoolsDeleteRequest $postBody, $optParams = array())
334
+ {
335
+ $params = array('projectName' => $projectName, 'zone' => $zone, 'poolName' => $poolName, 'postBody' => $postBody);
336
+ $params = array_merge($params, $optParams);
337
+ return $this->call('delete', array($params));
338
+ }
339
+ /**
340
+ * Gets information about a single replica pool. (pools.get)
341
+ *
342
+ * @param string $projectName
343
+ * The project ID for this replica pool.
344
+ * @param string $zone
345
+ * The zone for this replica pool.
346
+ * @param string $poolName
347
+ * The name of the replica pool for which you want to get more information.
348
+ * @param array $optParams Optional parameters.
349
+ * @return GoogleGAL_Service_Replicapool_Pool
350
+ */
351
+ public function get($projectName, $zone, $poolName, $optParams = array())
352
+ {
353
+ $params = array('projectName' => $projectName, 'zone' => $zone, 'poolName' => $poolName);
354
+ $params = array_merge($params, $optParams);
355
+ return $this->call('get', array($params), "GoogleGAL_Service_Replicapool_Pool");
356
+ }
357
+ /**
358
+ * Inserts a new replica pool. (pools.insert)
359
+ *
360
+ * @param string $projectName
361
+ * The project ID for this replica pool.
362
+ * @param string $zone
363
+ * The zone for this replica pool.
364
+ * @param GoogleGAL_Pool $postBody
365
+ * @param array $optParams Optional parameters.
366
+ * @return GoogleGAL_Service_Replicapool_Pool
367
+ */
368
+ public function insert($projectName, $zone, GoogleGAL_Service_Replicapool_Pool $postBody, $optParams = array())
369
+ {
370
+ $params = array('projectName' => $projectName, 'zone' => $zone, 'postBody' => $postBody);
371
+ $params = array_merge($params, $optParams);
372
+ return $this->call('insert', array($params), "GoogleGAL_Service_Replicapool_Pool");
373
+ }
374
+ /**
375
+ * List all replica pools. (pools.listPools)
376
+ *
377
+ * @param string $projectName
378
+ * The project ID for this replica pool.
379
+ * @param string $zone
380
+ * The zone for this replica pool.
381
+ * @param array $optParams Optional parameters.
382
+ *
383
+ * @opt_param string pageToken
384
+ * Specifies a nextPageToken returned by a previous list request. This token can be used to request
385
+ * the next page of results from a previous list request.
386
+ * @opt_param int maxResults
387
+ * Maximum count of results to be returned. Acceptable values are 0 to 100, inclusive. (Default:
388
+ * 50)
389
+ * @return GoogleGAL_Service_Replicapool_PoolsListResponse
390
+ */
391
+ public function listPools($projectName, $zone, $optParams = array())
392
+ {
393
+ $params = array('projectName' => $projectName, 'zone' => $zone);
394
+ $params = array_merge($params, $optParams);
395
+ return $this->call('list', array($params), "GoogleGAL_Service_Replicapool_PoolsListResponse");
396
+ }
397
+ /**
398
+ * Resize a pool. (pools.resize)
399
+ *
400
+ * @param string $projectName
401
+ * The project ID for this replica pool.
402
+ * @param string $zone
403
+ * The zone for this replica pool.
404
+ * @param string $poolName
405
+ * The name of the replica pool to resize.
406
+ * @param array $optParams Optional parameters.
407
+ *
408
+ * @opt_param int numReplicas
409
+ * The desired number of replicas to resize to. If this number is larger than the existing number
410
+ * of replicas, new replicas will be added. If the number is smaller, then existing replicas will
411
+ * be deleted.
412
+ This is an asynchronous operation, and multiple overlapping resize requests can be
413
+ * made. Replica Pools will use the information from the last resize request.
414
+ * @return GoogleGAL_Service_Replicapool_Pool
415
+ */
416
+ public function resize($projectName, $zone, $poolName, $optParams = array())
417
+ {
418
+ $params = array('projectName' => $projectName, 'zone' => $zone, 'poolName' => $poolName);
419
+ $params = array_merge($params, $optParams);
420
+ return $this->call('resize', array($params), "GoogleGAL_Service_Replicapool_Pool");
421
+ }
422
+ /**
423
+ * Update the template used by the pool. (pools.updatetemplate)
424
+ *
425
+ * @param string $projectName
426
+ * The project ID for this replica pool.
427
+ * @param string $zone
428
+ * The zone for this replica pool.
429
+ * @param string $poolName
430
+ * The name of the replica pool to update.
431
+ * @param GoogleGAL_Template $postBody
432
+ * @param array $optParams Optional parameters.
433
+ */
434
+ public function updatetemplate($projectName, $zone, $poolName, GoogleGAL_Service_Replicapool_Template $postBody, $optParams = array())
435
+ {
436
+ $params = array('projectName' => $projectName, 'zone' => $zone, 'poolName' => $poolName, 'postBody' => $postBody);
437
+ $params = array_merge($params, $optParams);
438
+ return $this->call('updatetemplate', array($params));
439
+ }
440
+ }
441
+
442
+ /**
443
+ * The "replicas" collection of methods.
444
+ * Typical usage is:
445
+ * <code>
446
+ * $replicapoolService = new GoogleGAL_Service_Replicapool(...);
447
+ * $replicas = $replicapoolService->replicas;
448
+ * </code>
449
+ */
450
+ class GoogleGAL_Service_Replicapool_Replicas_Resource extends GoogleGAL_Service_Resource
451
+ {
452
+
453
+ /**
454
+ * Deletes a replica from the pool. (replicas.delete)
455
+ *
456
+ * @param string $projectName
457
+ * The project ID for this request.
458
+ * @param string $zone
459
+ * The zone where the replica lives.
460
+ * @param string $poolName
461
+ * The replica pool name for this request.
462
+ * @param string $replicaName
463
+ * The name of the replica to delete.
464
+ * @param GoogleGAL_ReplicasDeleteRequest $postBody
465
+ * @param array $optParams Optional parameters.
466
+ * @return GoogleGAL_Service_Replicapool_Replica
467
+ */
468
+ public function delete($projectName, $zone, $poolName, $replicaName, GoogleGAL_Service_Replicapool_ReplicasDeleteRequest $postBody, $optParams = array())
469
+ {
470
+ $params = array('projectName' => $projectName, 'zone' => $zone, 'poolName' => $poolName, 'replicaName' => $replicaName, 'postBody' => $postBody);
471
+ $params = array_merge($params, $optParams);
472
+ return $this->call('delete', array($params), "GoogleGAL_Service_Replicapool_Replica");
473
+ }
474
+ /**
475
+ * Gets information about a specific replica. (replicas.get)
476
+ *
477
+ * @param string $projectName
478
+ * The name of project ID for this request.
479
+ * @param string $zone
480
+ * The zone where the replica lives.
481
+ * @param string $poolName
482
+ * The replica pool name for this request.
483
+ * @param string $replicaName
484
+ * The name of the replica for which you want to get more information.
485
+ * @param array $optParams Optional parameters.
486
+ * @return GoogleGAL_Service_Replicapool_Replica
487
+ */
488
+ public function get($projectName, $zone, $poolName, $replicaName, $optParams = array())
489
+ {
490
+ $params = array('projectName' => $projectName, 'zone' => $zone, 'poolName' => $poolName, 'replicaName' => $replicaName);
491
+ $params = array_merge($params, $optParams);
492
+ return $this->call('get', array($params), "GoogleGAL_Service_Replicapool_Replica");
493
+ }
494
+ /**
495
+ * Lists all replicas in a pool. (replicas.listReplicas)
496
+ *
497
+ * @param string $projectName
498
+ * The name of project ID for this request.
499
+ * @param string $zone
500
+ * The zone where the replica lives.
501
+ * @param string $poolName
502
+ * The replica pool name for this request.
503
+ * @param array $optParams Optional parameters.
504
+ *
505
+ * @opt_param string pageToken
506
+ * Specifies a nextPageToken returned by a previous list request. This token can be used to request
507
+ * the next page of results from a previous list request.
508
+ * @opt_param int maxResults
509
+ * Maximum count of results to be returned. Acceptable values are 0 to 100, inclusive. (Default:
510
+ * 50)
511
+ * @return GoogleGAL_Service_Replicapool_ReplicasListResponse
512
+ */
513
+ public function listReplicas($projectName, $zone, $poolName, $optParams = array())
514
+ {
515
+ $params = array('projectName' => $projectName, 'zone' => $zone, 'poolName' => $poolName);
516
+ $params = array_merge($params, $optParams);
517
+ return $this->call('list', array($params), "GoogleGAL_Service_Replicapool_ReplicasListResponse");
518
+ }
519
+ /**
520
+ * Restarts a replica in a pool. (replicas.restart)
521
+ *
522
+ * @param string $projectName
523
+ * The name of project ID for this request.
524
+ * @param string $zone
525
+ * The zone where the replica lives.
526
+ * @param string $poolName
527
+ * The replica pool name for this request.
528
+ * @param string $replicaName
529
+ * The name of the replica to restart in the pool.
530
+ * @param array $optParams Optional parameters.
531
+ */
532
+ public function restart($projectName, $zone, $poolName, $replicaName, $optParams = array())
533
+ {
534
+ $params = array('projectName' => $projectName, 'zone' => $zone, 'poolName' => $poolName, 'replicaName' => $replicaName);
535
+ $params = array_merge($params, $optParams);
536
+ return $this->call('restart', array($params));
537
+ }
538
+ }
539
+
540
+
541
+
542
+
543
+ class GoogleGAL_Service_Replicapool_AccessConfig extends GoogleGAL_Model
544
+ {
545
+ public $name;
546
+ public $natIp;
547
+ public $type;
548
+
549
+ public function setName($name)
550
+ {
551
+ $this->name = $name;
552
+ }
553
+
554
+ public function getName()
555
+ {
556
+ return $this->name;
557
+ }
558
+
559
+ public function setNatIp($natIp)
560
+ {
561
+ $this->natIp = $natIp;
562
+ }
563
+
564
+ public function getNatIp()
565
+ {
566
+ return $this->natIp;
567
+ }
568
+
569
+ public function setType($type)
570
+ {
571
+ $this->type = $type;
572
+ }
573
+
574
+ public function getType()
575
+ {
576
+ return $this->type;
577
+ }
578
+ }
579
+
580
+ class GoogleGAL_Service_Replicapool_Action extends GoogleGAL_Collection
581
+ {
582
+ public $commands;
583
+ protected $envVariablesType = 'GoogleGAL_Service_Replicapool_EnvVariable';
584
+ protected $envVariablesDataType = 'array';
585
+ public $timeoutMilliSeconds;
586
+
587
+ public function setCommands($commands)
588
+ {
589
+ $this->commands = $commands;
590
+ }
591
+
592
+ public function getCommands()
593
+ {
594
+ return $this->commands;
595
+ }
596
+
597
+ public function setEnvVariables($envVariables)
598
+ {
599
+ $this->envVariables = $envVariables;
600
+ }
601
+
602
+ public function getEnvVariables()
603
+ {
604
+ return $this->envVariables;
605
+ }
606
+
607
+ public function setTimeoutMilliSeconds($timeoutMilliSeconds)
608
+ {
609
+ $this->timeoutMilliSeconds = $timeoutMilliSeconds;
610
+ }
611
+
612
+ public function getTimeoutMilliSeconds()
613
+ {
614
+ return $this->timeoutMilliSeconds;
615
+ }
616
+ }
617
+
618
+ class GoogleGAL_Service_Replicapool_DiskAttachment extends GoogleGAL_Model
619
+ {
620
+ public $deviceName;
621
+ public $index;
622
+
623
+ public function setDeviceName($deviceName)
624
+ {
625
+ $this->deviceName = $deviceName;
626
+ }
627
+
628
+ public function getDeviceName()
629
+ {
630
+ return $this->deviceName;
631
+ }
632
+
633
+ public function setIndex($index)
634
+ {
635
+ $this->index = $index;
636
+ }
637
+
638
+ public function getIndex()
639
+ {
640
+ return $this->index;
641
+ }
642
+ }
643
+
644
+ class GoogleGAL_Service_Replicapool_EnvVariable extends GoogleGAL_Model
645
+ {
646
+ public $hidden;
647
+ public $name;
648
+ public $value;
649
+
650
+ public function setHidden($hidden)
651
+ {
652
+ $this->hidden = $hidden;
653
+ }
654
+
655
+ public function getHidden()
656
+ {
657
+ return $this->hidden;
658
+ }
659
+
660
+ public function setName($name)
661
+ {
662
+ $this->name = $name;
663
+ }
664
+
665
+ public function getName()
666
+ {
667
+ return $this->name;
668
+ }
669
+
670
+ public function setValue($value)
671
+ {
672
+ $this->value = $value;
673
+ }
674
+
675
+ public function getValue()
676
+ {
677
+ return $this->value;
678
+ }
679
+ }
680
+
681
+ class GoogleGAL_Service_Replicapool_ExistingDisk extends GoogleGAL_Model
682
+ {
683
+ protected $attachmentType = 'GoogleGAL_Service_Replicapool_DiskAttachment';
684
+ protected $attachmentDataType = '';
685
+ public $source;
686
+
687
+ public function setAttachment(GoogleGAL_Service_Replicapool_DiskAttachment $attachment)
688
+ {
689
+ $this->attachment = $attachment;
690
+ }
691
+
692
+ public function getAttachment()
693
+ {
694
+ return $this->attachment;
695
+ }
696
+
697
+ public function setSource($source)
698
+ {
699
+ $this->source = $source;
700
+ }
701
+
702
+ public function getSource()
703
+ {
704
+ return $this->source;
705
+ }
706
+ }
707
+
708
+ class GoogleGAL_Service_Replicapool_HealthCheck extends GoogleGAL_Model
709
+ {
710
+ public $checkIntervalSec;
711
+ public $description;
712
+ public $healthyThreshold;
713
+ public $host;
714
+ public $name;
715
+ public $path;
716
+ public $port;
717
+ public $timeoutSec;
718
+ public $unhealthyThreshold;
719
+
720
+ public function setCheckIntervalSec($checkIntervalSec)
721
+ {
722
+ $this->checkIntervalSec = $checkIntervalSec;
723
+ }
724
+
725
+ public function getCheckIntervalSec()
726
+ {
727
+ return $this->checkIntervalSec;
728
+ }
729
+
730
+ public function setDescription($description)
731
+ {
732
+ $this->description = $description;
733
+ }
734
+
735
+ public function getDescription()
736
+ {
737
+ return $this->description;
738
+ }
739
+
740
+ public function setHealthyThreshold($healthyThreshold)
741
+ {
742
+ $this->healthyThreshold = $healthyThreshold;
743
+ }
744
+
745
+ public function getHealthyThreshold()
746
+ {
747
+ return $this->healthyThreshold;
748
+ }
749
+
750
+ public function setHost($host)
751
+ {
752
+ $this->host = $host;
753
+ }
754
+
755
+ public function getHost()
756
+ {
757
+ return $this->host;
758
+ }
759
+
760
+ public function setName($name)
761
+ {
762
+ $this->name = $name;
763
+ }
764
+
765
+ public function getName()
766
+ {
767
+ return $this->name;
768
+ }
769
+
770
+ public function setPath($path)
771
+ {
772
+ $this->path = $path;
773
+ }
774
+
775
+ public function getPath()
776
+ {
777
+ return $this->path;
778
+ }
779
+
780
+ public function setPort($port)
781
+ {
782
+ $this->port = $port;
783
+ }
784
+
785
+ public function getPort()
786
+ {
787
+ return $this->port;
788
+ }
789
+
790
+ public function setTimeoutSec($timeoutSec)
791
+ {
792
+ $this->timeoutSec = $timeoutSec;
793
+ }
794
+
795
+ public function getTimeoutSec()
796
+ {
797
+ return $this->timeoutSec;
798
+ }
799
+
800
+ public function setUnhealthyThreshold($unhealthyThreshold)
801
+ {
802
+ $this->unhealthyThreshold = $unhealthyThreshold;
803
+ }
804
+
805
+ public function getUnhealthyThreshold()
806
+ {
807
+ return $this->unhealthyThreshold;
808
+ }
809
+ }
810
+
811
+ class GoogleGAL_Service_Replicapool_Label extends GoogleGAL_Model
812
+ {
813
+ public $key;
814
+ public $value;
815
+
816
+ public function setKey($key)
817
+ {
818
+ $this->key = $key;
819
+ }
820
+
821
+ public function getKey()
822
+ {
823
+ return $this->key;
824
+ }
825
+
826
+ public function setValue($value)
827
+ {
828
+ $this->value = $value;
829
+ }
830
+
831
+ public function getValue()
832
+ {
833
+ return $this->value;
834
+ }
835
+ }
836
+
837
+ class GoogleGAL_Service_Replicapool_Metadata extends GoogleGAL_Collection
838
+ {
839
+ public $fingerPrint;
840
+ protected $itemsType = 'GoogleGAL_Service_Replicapool_MetadataItem';
841
+ protected $itemsDataType = 'array';
842
+
843
+ public function setFingerPrint($fingerPrint)
844
+ {
845
+ $this->fingerPrint = $fingerPrint;
846
+ }
847
+
848
+ public function getFingerPrint()
849
+ {
850
+ return $this->fingerPrint;
851
+ }
852
+
853
+ public function setItems($items)
854
+ {
855
+ $this->items = $items;
856
+ }
857
+
858
+ public function getItems()
859
+ {
860
+ return $this->items;
861
+ }
862
+ }
863
+
864
+ class GoogleGAL_Service_Replicapool_MetadataItem extends GoogleGAL_Model
865
+ {
866
+ public $key;
867
+ public $value;
868
+
869
+ public function setKey($key)
870
+ {
871
+ $this->key = $key;
872
+ }
873
+
874
+ public function getKey()
875
+ {
876
+ return $this->key;
877
+ }
878
+
879
+ public function setValue($value)
880
+ {
881
+ $this->value = $value;
882
+ }
883
+
884
+ public function getValue()
885
+ {
886
+ return $this->value;
887
+ }
888
+ }
889
+
890
+ class GoogleGAL_Service_Replicapool_NetworkInterface extends GoogleGAL_Collection
891
+ {
892
+ protected $accessConfigsType = 'GoogleGAL_Service_Replicapool_AccessConfig';
893
+ protected $accessConfigsDataType = 'array';
894
+ public $network;
895
+ public $networkIp;
896
+
897
+ public function setAccessConfigs($accessConfigs)
898
+ {
899
+ $this->accessConfigs = $accessConfigs;
900
+ }
901
+
902
+ public function getAccessConfigs()
903
+ {
904
+ return $this->accessConfigs;
905
+ }
906
+
907
+ public function setNetwork($network)
908
+ {
909
+ $this->network = $network;
910
+ }
911
+
912
+ public function getNetwork()
913
+ {
914
+ return $this->network;
915
+ }
916
+
917
+ public function setNetworkIp($networkIp)
918
+ {
919
+ $this->networkIp = $networkIp;
920
+ }
921
+
922
+ public function getNetworkIp()
923
+ {
924
+ return $this->networkIp;
925
+ }
926
+ }
927
+
928
+ class GoogleGAL_Service_Replicapool_NewDisk extends GoogleGAL_Model
929
+ {
930
+ protected $attachmentType = 'GoogleGAL_Service_Replicapool_DiskAttachment';
931
+ protected $attachmentDataType = '';
932
+ public $autoDelete;
933
+ public $boot;
934
+ protected $initializeParamsType = 'GoogleGAL_Service_Replicapool_NewDiskInitializeParams';
935
+ protected $initializeParamsDataType = '';
936
+
937
+ public function setAttachment(GoogleGAL_Service_Replicapool_DiskAttachment $attachment)
938
+ {
939
+ $this->attachment = $attachment;
940
+ }
941
+
942
+ public function getAttachment()
943
+ {
944
+ return $this->attachment;
945
+ }
946
+
947
+ public function setAutoDelete($autoDelete)
948
+ {
949
+ $this->autoDelete = $autoDelete;
950
+ }
951
+
952
+ public function getAutoDelete()
953
+ {
954
+ return $this->autoDelete;
955
+ }
956
+
957
+ public function setBoot($boot)
958
+ {
959
+ $this->boot = $boot;
960
+ }
961
+
962
+ public function getBoot()
963
+ {
964
+ return $this->boot;
965
+ }
966
+
967
+ public function setInitializeParams(GoogleGAL_Service_Replicapool_NewDiskInitializeParams $initializeParams)
968
+ {
969
+ $this->initializeParams = $initializeParams;
970
+ }
971
+
972
+ public function getInitializeParams()
973
+ {
974
+ return $this->initializeParams;
975
+ }
976
+ }
977
+
978
+ class GoogleGAL_Service_Replicapool_NewDiskInitializeParams extends GoogleGAL_Model
979
+ {
980
+ public $diskSizeGb;
981
+ public $sourceImage;
982
+
983
+ public function setDiskSizeGb($diskSizeGb)
984
+ {
985
+ $this->diskSizeGb = $diskSizeGb;
986
+ }
987
+
988
+ public function getDiskSizeGb()
989
+ {
990
+ return $this->diskSizeGb;
991
+ }
992
+
993
+ public function setSourceImage($sourceImage)
994
+ {
995
+ $this->sourceImage = $sourceImage;
996
+ }
997
+
998
+ public function getSourceImage()
999
+ {
1000
+ return $this->sourceImage;
1001
+ }
1002
+ }
1003
+
1004
+ class GoogleGAL_Service_Replicapool_Pool extends GoogleGAL_Collection
1005
+ {
1006
+ public $autoRestart;
1007
+ public $baseInstanceName;
1008
+ public $currentNumReplicas;
1009
+ public $description;
1010
+ protected $healthChecksType = 'GoogleGAL_Service_Replicapool_HealthCheck';
1011
+ protected $healthChecksDataType = 'array';
1012
+ public $initialNumReplicas;
1013
+ protected $labelsType = 'GoogleGAL_Service_Replicapool_Label';
1014
+ protected $labelsDataType = 'array';
1015
+ public $name;
1016
+ public $numReplicas;
1017
+ public $resourceViews;
1018
+ public $selfLink;
1019
+ public $targetPool;
1020
+ public $targetPools;
1021
+ protected $templateType = 'GoogleGAL_Service_Replicapool_Template';
1022
+ protected $templateDataType = '';
1023
+ public $type;
1024
+
1025
+ public function setAutoRestart($autoRestart)
1026
+ {
1027
+ $this->autoRestart = $autoRestart;
1028
+ }
1029
+
1030
+ public function getAutoRestart()
1031
+ {
1032
+ return $this->autoRestart;
1033
+ }
1034
+
1035
+ public function setBaseInstanceName($baseInstanceName)
1036
+ {
1037
+ $this->baseInstanceName = $baseInstanceName;
1038
+ }
1039
+
1040
+ public function getBaseInstanceName()
1041
+ {
1042
+ return $this->baseInstanceName;
1043
+ }
1044
+
1045
+ public function setCurrentNumReplicas($currentNumReplicas)
1046
+ {
1047
+ $this->currentNumReplicas = $currentNumReplicas;
1048
+ }
1049
+
1050
+ public function getCurrentNumReplicas()
1051
+ {
1052
+ return $this->currentNumReplicas;
1053
+ }
1054
+
1055
+ public function setDescription($description)
1056
+ {
1057
+ $this->description = $description;
1058
+ }
1059
+
1060
+ public function getDescription()
1061
+ {
1062
+ return $this->description;
1063
+ }
1064
+
1065
+ public function setHealthChecks($healthChecks)
1066
+ {
1067
+ $this->healthChecks = $healthChecks;
1068
+ }
1069
+
1070
+ public function getHealthChecks()
1071
+ {
1072
+ return $this->healthChecks;
1073
+ }
1074
+
1075
+ public function setInitialNumReplicas($initialNumReplicas)
1076
+ {
1077
+ $this->initialNumReplicas = $initialNumReplicas;
1078
+ }
1079
+
1080
+ public function getInitialNumReplicas()
1081
+ {
1082
+ return $this->initialNumReplicas;
1083
+ }
1084
+
1085
+ public function setLabels($labels)
1086
+ {
1087
+ $this->labels = $labels;
1088
+ }
1089
+
1090
+ public function getLabels()
1091
+ {
1092
+ return $this->labels;
1093
+ }
1094
+
1095
+ public function setName($name)
1096
+ {
1097
+ $this->name = $name;
1098
+ }
1099
+
1100
+ public function getName()
1101
+ {
1102
+ return $this->name;
1103
+ }
1104
+
1105
+ public function setNumReplicas($numReplicas)
1106
+ {
1107
+ $this->numReplicas = $numReplicas;
1108
+ }
1109
+
1110
+ public function getNumReplicas()
1111
+ {
1112
+ return $this->numReplicas;
1113
+ }
1114
+
1115
+ public function setResourceViews($resourceViews)
1116
+ {
1117
+ $this->resourceViews = $resourceViews;
1118
+ }
1119
+
1120
+ public function getResourceViews()
1121
+ {
1122
+ return $this->resourceViews;
1123
+ }
1124
+
1125
+ public function setSelfLink($selfLink)
1126
+ {
1127
+ $this->selfLink = $selfLink;
1128
+ }
1129
+
1130
+ public function getSelfLink()
1131
+ {
1132
+ return $this->selfLink;
1133
+ }
1134
+
1135
+ public function setTargetPool($targetPool)
1136
+ {
1137
+ $this->targetPool = $targetPool;
1138
+ }
1139
+
1140
+ public function getTargetPool()
1141
+ {
1142
+ return $this->targetPool;
1143
+ }
1144
+
1145
+ public function setTargetPools($targetPools)
1146
+ {
1147
+ $this->targetPools = $targetPools;
1148
+ }
1149
+
1150
+ public function getTargetPools()
1151
+ {
1152
+ return $this->targetPools;
1153
+ }
1154
+
1155
+ public function setTemplate(GoogleGAL_Service_Replicapool_Template $template)
1156
+ {
1157
+ $this->template = $template;
1158
+ }
1159
+
1160
+ public function getTemplate()
1161
+ {
1162
+ return $this->template;
1163
+ }
1164
+
1165
+ public function setType($type)
1166
+ {
1167
+ $this->type = $type;
1168
+ }
1169
+
1170
+ public function getType()
1171
+ {
1172
+ return $this->type;
1173
+ }
1174
+ }
1175
+
1176
+ class GoogleGAL_Service_Replicapool_PoolsDeleteRequest extends GoogleGAL_Collection
1177
+ {
1178
+ public $abandonInstances;
1179
+
1180
+ public function setAbandonInstances($abandonInstances)
1181
+ {
1182
+ $this->abandonInstances = $abandonInstances;
1183
+ }
1184
+
1185
+ public function getAbandonInstances()
1186
+ {
1187
+ return $this->abandonInstances;
1188
+ }
1189
+ }
1190
+
1191
+ class GoogleGAL_Service_Replicapool_PoolsListResponse extends GoogleGAL_Collection
1192
+ {
1193
+ public $nextPageToken;
1194
+ protected $resourcesType = 'GoogleGAL_Service_Replicapool_Pool';
1195
+ protected $resourcesDataType = 'array';
1196
+
1197
+ public function setNextPageToken($nextPageToken)
1198
+ {
1199
+ $this->nextPageToken = $nextPageToken;
1200
+ }
1201
+
1202
+ public function getNextPageToken()
1203
+ {
1204
+ return $this->nextPageToken;
1205
+ }
1206
+
1207
+ public function setResources($resources)
1208
+ {
1209
+ $this->resources = $resources;
1210
+ }
1211
+
1212
+ public function getResources()
1213
+ {
1214
+ return $this->resources;
1215
+ }
1216
+ }
1217
+
1218
+ class GoogleGAL_Service_Replicapool_Replica extends GoogleGAL_Model
1219
+ {
1220
+ public $name;
1221
+ public $selfLink;
1222
+ protected $statusType = 'GoogleGAL_Service_Replicapool_ReplicaStatus';
1223
+ protected $statusDataType = '';
1224
+
1225
+ public function setName($name)
1226
+ {
1227
+ $this->name = $name;
1228
+ }
1229
+
1230
+ public function getName()
1231
+ {
1232
+ return $this->name;
1233
+ }
1234
+
1235
+ public function setSelfLink($selfLink)
1236
+ {
1237
+ $this->selfLink = $selfLink;
1238
+ }
1239
+
1240
+ public function getSelfLink()
1241
+ {
1242
+ return $this->selfLink;
1243
+ }
1244
+
1245
+ public function setStatus(GoogleGAL_Service_Replicapool_ReplicaStatus $status)
1246
+ {
1247
+ $this->status = $status;
1248
+ }
1249
+
1250
+ public function getStatus()
1251
+ {
1252
+ return $this->status;
1253
+ }
1254
+ }
1255
+
1256
+ class GoogleGAL_Service_Replicapool_ReplicaStatus extends GoogleGAL_Model
1257
+ {
1258
+ public $details;
1259
+ public $state;
1260
+ public $templateVersion;
1261
+ public $vmLink;
1262
+ public $vmStartTime;
1263
+
1264
+ public function setDetails($details)
1265
+ {
1266
+ $this->details = $details;
1267
+ }
1268
+
1269
+ public function getDetails()
1270
+ {
1271
+ return $this->details;
1272
+ }
1273
+
1274
+ public function setState($state)
1275
+ {
1276
+ $this->state = $state;
1277
+ }
1278
+
1279
+ public function getState()
1280
+ {
1281
+ return $this->state;
1282
+ }
1283
+
1284
+ public function setTemplateVersion($templateVersion)
1285
+ {
1286
+ $this->templateVersion = $templateVersion;
1287
+ }
1288
+
1289
+ public function getTemplateVersion()
1290
+ {
1291
+ return $this->templateVersion;
1292
+ }
1293
+
1294
+ public function setVmLink($vmLink)
1295
+ {
1296
+ $this->vmLink = $vmLink;
1297
+ }
1298
+
1299
+ public function getVmLink()
1300
+ {
1301
+ return $this->vmLink;
1302
+ }
1303
+
1304
+ public function setVmStartTime($vmStartTime)
1305
+ {
1306
+ $this->vmStartTime = $vmStartTime;
1307
+ }
1308
+
1309
+ public function getVmStartTime()
1310
+ {
1311
+ return $this->vmStartTime;
1312
+ }
1313
+ }
1314
+
1315
+ class GoogleGAL_Service_Replicapool_ReplicasDeleteRequest extends GoogleGAL_Model
1316
+ {
1317
+ public $abandonInstance;
1318
+
1319
+ public function setAbandonInstance($abandonInstance)
1320
+ {
1321
+ $this->abandonInstance = $abandonInstance;
1322
+ }
1323
+
1324
+ public function getAbandonInstance()
1325
+ {
1326
+ return $this->abandonInstance;
1327
+ }
1328
+ }
1329
+
1330
+ class GoogleGAL_Service_Replicapool_ReplicasListResponse extends GoogleGAL_Collection
1331
+ {
1332
+ public $nextPageToken;
1333
+ protected $resourcesType = 'GoogleGAL_Service_Replicapool_Replica';
1334
+ protected $resourcesDataType = 'array';
1335
+
1336
+ public function setNextPageToken($nextPageToken)
1337
+ {
1338
+ $this->nextPageToken = $nextPageToken;
1339
+ }
1340
+
1341
+ public function getNextPageToken()
1342
+ {
1343
+ return $this->nextPageToken;
1344
+ }
1345
+
1346
+ public function setResources($resources)
1347
+ {
1348
+ $this->resources = $resources;
1349
+ }
1350
+
1351
+ public function getResources()
1352
+ {
1353
+ return $this->resources;
1354
+ }
1355
+ }
1356
+
1357
+ class GoogleGAL_Service_Replicapool_ServiceAccount extends GoogleGAL_Collection
1358
+ {
1359
+ public $email;
1360
+ public $scopes;
1361
+
1362
+ public function setEmail($email)
1363
+ {
1364
+ $this->email = $email;
1365
+ }
1366
+
1367
+ public function getEmail()
1368
+ {
1369
+ return $this->email;
1370
+ }
1371
+
1372
+ public function setScopes($scopes)
1373
+ {
1374
+ $this->scopes = $scopes;
1375
+ }
1376
+
1377
+ public function getScopes()
1378
+ {
1379
+ return $this->scopes;
1380
+ }
1381
+ }
1382
+
1383
+ class GoogleGAL_Service_Replicapool_Tag extends GoogleGAL_Collection
1384
+ {
1385
+ public $fingerPrint;
1386
+ public $items;
1387
+
1388
+ public function setFingerPrint($fingerPrint)
1389
+ {
1390
+ $this->fingerPrint = $fingerPrint;
1391
+ }
1392
+
1393
+ public function getFingerPrint()
1394
+ {
1395
+ return $this->fingerPrint;
1396
+ }
1397
+
1398
+ public function setItems($items)
1399
+ {
1400
+ $this->items = $items;
1401
+ }
1402
+
1403
+ public function getItems()
1404
+ {
1405
+ return $this->items;
1406
+ }
1407
+ }
1408
+
1409
+ class GoogleGAL_Service_Replicapool_Template extends GoogleGAL_Collection
1410
+ {
1411
+ protected $actionType = 'GoogleGAL_Service_Replicapool_Action';
1412
+ protected $actionDataType = '';
1413
+ protected $healthChecksType = 'GoogleGAL_Service_Replicapool_HealthCheck';
1414
+ protected $healthChecksDataType = 'array';
1415
+ public $version;
1416
+ protected $vmParamsType = 'GoogleGAL_Service_Replicapool_VmParams';
1417
+ protected $vmParamsDataType = '';
1418
+
1419
+ public function setAction(GoogleGAL_Service_Replicapool_Action $action)
1420
+ {
1421
+ $this->action = $action;
1422
+ }
1423
+
1424
+ public function getAction()
1425
+ {
1426
+ return $this->action;
1427
+ }
1428
+
1429
+ public function setHealthChecks($healthChecks)
1430
+ {
1431
+ $this->healthChecks = $healthChecks;
1432
+ }
1433
+
1434
+ public function getHealthChecks()
1435
+ {
1436
+ return $this->healthChecks;
1437
+ }
1438
+
1439
+ public function setVersion($version)
1440
+ {
1441
+ $this->version = $version;
1442
+ }
1443
+
1444
+ public function getVersion()
1445
+ {
1446
+ return $this->version;
1447
+ }
1448
+
1449
+ public function setVmParams(GoogleGAL_Service_Replicapool_VmParams $vmParams)
1450
+ {
1451
+ $this->vmParams = $vmParams;
1452
+ }
1453
+
1454
+ public function getVmParams()
1455
+ {
1456
+ return $this->vmParams;
1457
+ }
1458
+ }
1459
+
1460
+ class GoogleGAL_Service_Replicapool_VmParams extends GoogleGAL_Collection
1461
+ {
1462
+ public $baseInstanceName;
1463
+ public $canIpForward;
1464
+ public $description;
1465
+ protected $disksToAttachType = 'GoogleGAL_Service_Replicapool_ExistingDisk';
1466
+ protected $disksToAttachDataType = 'array';
1467
+ protected $disksToCreateType = 'GoogleGAL_Service_Replicapool_NewDisk';
1468
+ protected $disksToCreateDataType = 'array';
1469
+ public $machineType;
1470
+ protected $metadataType = 'GoogleGAL_Service_Replicapool_Metadata';
1471
+ protected $metadataDataType = '';
1472
+ protected $networkInterfacesType = 'GoogleGAL_Service_Replicapool_NetworkInterface';
1473
+ protected $networkInterfacesDataType = 'array';
1474
+ public $onHostMaintenance;
1475
+ protected $serviceAccountsType = 'GoogleGAL_Service_Replicapool_ServiceAccount';
1476
+ protected $serviceAccountsDataType = 'array';
1477
+ protected $tagsType = 'GoogleGAL_Service_Replicapool_Tag';
1478
+ protected $tagsDataType = '';
1479
+
1480
+ public function setBaseInstanceName($baseInstanceName)
1481
+ {
1482
+ $this->baseInstanceName = $baseInstanceName;
1483
+ }
1484
+
1485
+ public function getBaseInstanceName()
1486
+ {
1487
+ return $this->baseInstanceName;
1488
+ }
1489
+
1490
+ public function setCanIpForward($canIpForward)
1491
+ {
1492
+ $this->canIpForward = $canIpForward;
1493
+ }
1494
+
1495
+ public function getCanIpForward()
1496
+ {
1497
+ return $this->canIpForward;
1498
+ }
1499
+
1500
+ public function setDescription($description)
1501
+ {
1502
+ $this->description = $description;
1503
+ }
1504
+
1505
+ public function getDescription()
1506
+ {
1507
+ return $this->description;
1508
+ }
1509
+
1510
+ public function setDisksToAttach($disksToAttach)
1511
+ {
1512
+ $this->disksToAttach = $disksToAttach;
1513
+ }
1514
+
1515
+ public function getDisksToAttach()
1516
+ {
1517
+ return $this->disksToAttach;
1518
+ }
1519
+
1520
+ public function setDisksToCreate($disksToCreate)
1521
+ {
1522
+ $this->disksToCreate = $disksToCreate;
1523
+ }
1524
+
1525
+ public function getDisksToCreate()
1526
+ {
1527
+ return $this->disksToCreate;
1528
+ }
1529
+
1530
+ public function setMachineType($machineType)
1531
+ {
1532
+ $this->machineType = $machineType;
1533
+ }
1534
+
1535
+ public function getMachineType()
1536
+ {
1537
+ return $this->machineType;
1538
+ }
1539
+
1540
+ public function setMetadata(GoogleGAL_Service_Replicapool_Metadata $metadata)
1541
+ {
1542
+ $this->metadata = $metadata;
1543
+ }
1544
+
1545
+ public function getMetadata()
1546
+ {
1547
+ return $this->metadata;
1548
+ }
1549
+
1550
+ public function setNetworkInterfaces($networkInterfaces)
1551
+ {
1552
+ $this->networkInterfaces = $networkInterfaces;
1553
+ }
1554
+
1555
+ public function getNetworkInterfaces()
1556
+ {
1557
+ return $this->networkInterfaces;
1558
+ }
1559
+
1560
+ public function setOnHostMaintenance($onHostMaintenance)
1561
+ {
1562
+ $this->onHostMaintenance = $onHostMaintenance;
1563
+ }
1564
+
1565
+ public function getOnHostMaintenance()
1566
+ {
1567
+ return $this->onHostMaintenance;
1568
+ }
1569
+
1570
+ public function setServiceAccounts($serviceAccounts)
1571
+ {
1572
+ $this->serviceAccounts = $serviceAccounts;
1573
+ }
1574
+
1575
+ public function getServiceAccounts()
1576
+ {
1577
+ return $this->serviceAccounts;
1578
+ }
1579
+
1580
+ public function setTags(GoogleGAL_Service_Replicapool_Tag $tags)
1581
+ {
1582
+ $this->tags = $tags;
1583
+ }
1584
+
1585
+ public function getTags()
1586
+ {
1587
+ return $this->tags;
1588
+ }
1589
+ }
core/Google/Service/Resourceviews.php ADDED
@@ -0,0 +1,1000 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /*
3
+ * Copyright 2010 Google Inc.
4
+ *
5
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
6
+ * use this file except in compliance with the License. You may obtain a copy of
7
+ * 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, WITHOUT
13
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
14
+ * License for the specific language governing permissions and limitations under
15
+ * the License.
16
+ */
17
+
18
+ /**
19
+ * Service definition for Resourceviews (v1beta1).
20
+ *
21
+ * <p>
22
+ * The Google Resource Views API provides views of VMs.
23
+ * </p>
24
+ *
25
+ * <p>
26
+ * For more information about this service, see the API
27
+ * <a href="http://code.google.com/apis/cloud/resourceviews/v1/using_rest.html" target="_blank">Documentation</a>
28
+ * </p>
29
+ *
30
+ * @author Google, Inc.
31
+ */
32
+ class GoogleGAL_Service_Resourceviews extends GoogleGAL_Service
33
+ {
34
+ /** View and manage your data across Google Cloud Platform services. */
35
+ const CLOUD_PLATFORM = "https://www.googleapis.com/auth/cloud-platform";
36
+ /** View and manage your Google Cloud Platform management resources and deployment status information. */
37
+ const NDEV_CLOUDMAN = "https://www.googleapis.com/auth/ndev.cloudman";
38
+ /** View your Google Cloud Platform management resources and deployment status information. */
39
+ const NDEV_CLOUDMAN_READONLY = "https://www.googleapis.com/auth/ndev.cloudman.readonly";
40
+
41
+ public $regionViews;
42
+ public $zoneViews;
43
+
44
+
45
+ /**
46
+ * Constructs the internal representation of the Resourceviews service.
47
+ *
48
+ * @param GoogleGAL_Client $client
49
+ */
50
+ public function __construct(GoogleGAL_Client $client)
51
+ {
52
+ parent::__construct($client);
53
+ $this->servicePath = 'resourceviews/v1beta1/projects/';
54
+ $this->version = 'v1beta1';
55
+ $this->serviceName = 'resourceviews';
56
+
57
+ $this->regionViews = new GoogleGAL_Service_Resourceviews_RegionViews_Resource(
58
+ $this,
59
+ $this->serviceName,
60
+ 'regionViews',
61
+ array(
62
+ 'methods' => array(
63
+ 'addresources' => array(
64
+ 'path' => '{projectName}/regions/{region}/resourceViews/{resourceViewName}/addResources',
65
+ 'httpMethod' => 'POST',
66
+ 'parameters' => array(
67
+ 'projectName' => array(
68
+ 'location' => 'path',
69
+ 'type' => 'string',
70
+ 'required' => true,
71
+ ),
72
+ 'region' => array(
73
+ 'location' => 'path',
74
+ 'type' => 'string',
75
+ 'required' => true,
76
+ ),
77
+ 'resourceViewName' => array(
78
+ 'location' => 'path',
79
+ 'type' => 'string',
80
+ 'required' => true,
81
+ ),
82
+ ),
83
+ ),'delete' => array(
84
+ 'path' => '{projectName}/regions/{region}/resourceViews/{resourceViewName}',
85
+ 'httpMethod' => 'DELETE',
86
+ 'parameters' => array(
87
+ 'projectName' => array(
88
+ 'location' => 'path',
89
+ 'type' => 'string',
90
+ 'required' => true,
91
+ ),
92
+ 'region' => array(
93
+ 'location' => 'path',
94
+ 'type' => 'string',
95
+ 'required' => true,
96
+ ),
97
+ 'resourceViewName' => array(
98
+ 'location' => 'path',
99
+ 'type' => 'string',
100
+ 'required' => true,
101
+ ),
102
+ ),
103
+ ),'get' => array(
104
+ 'path' => '{projectName}/regions/{region}/resourceViews/{resourceViewName}',
105
+ 'httpMethod' => 'GET',
106
+ 'parameters' => array(
107
+ 'projectName' => array(
108
+ 'location' => 'path',
109
+ 'type' => 'string',
110
+ 'required' => true,
111
+ ),
112
+ 'region' => array(
113
+ 'location' => 'path',
114
+ 'type' => 'string',
115
+ 'required' => true,
116
+ ),
117
+ 'resourceViewName' => array(
118
+ 'location' => 'path',
119
+ 'type' => 'string',
120
+ 'required' => true,
121
+ ),
122
+ ),
123
+ ),'insert' => array(
124
+ 'path' => '{projectName}/regions/{region}/resourceViews',
125
+ 'httpMethod' => 'POST',
126
+ 'parameters' => array(
127
+ 'projectName' => array(
128
+ 'location' => 'path',
129
+ 'type' => 'string',
130
+ 'required' => true,
131
+ ),
132
+ 'region' => array(
133
+ 'location' => 'path',
134
+ 'type' => 'string',
135
+ 'required' => true,
136
+ ),
137
+ ),
138
+ ),'list' => array(
139
+ 'path' => '{projectName}/regions/{region}/resourceViews',
140
+ 'httpMethod' => 'GET',
141
+ 'parameters' => array(
142
+ 'projectName' => array(
143
+ 'location' => 'path',
144
+ 'type' => 'string',
145
+ 'required' => true,
146
+ ),
147
+ 'region' => array(
148
+ 'location' => 'path',
149
+ 'type' => 'string',
150
+ 'required' => true,
151
+ ),
152
+ 'pageToken' => array(
153
+ 'location' => 'query',
154
+ 'type' => 'string',
155
+ ),
156
+ 'maxResults' => array(
157
+ 'location' => 'query',
158
+ 'type' => 'integer',
159
+ ),
160
+ ),
161
+ ),'listresources' => array(
162
+ 'path' => '{projectName}/regions/{region}/resourceViews/{resourceViewName}/resources',
163
+ 'httpMethod' => 'POST',
164
+ 'parameters' => array(
165
+ 'projectName' => array(
166
+ 'location' => 'path',
167
+ 'type' => 'string',
168
+ 'required' => true,
169
+ ),
170
+ 'region' => array(
171
+ 'location' => 'path',
172
+ 'type' => 'string',
173
+ 'required' => true,
174
+ ),
175
+ 'resourceViewName' => array(
176
+ 'location' => 'path',
177
+ 'type' => 'string',
178
+ 'required' => true,
179
+ ),
180
+ 'pageToken' => array(
181
+ 'location' => 'query',
182
+ 'type' => 'string',
183
+ ),
184
+ 'maxResults' => array(
185
+ 'location' => 'query',
186
+ 'type' => 'integer',
187
+ ),
188
+ ),
189
+ ),'removeresources' => array(
190
+ 'path' => '{projectName}/regions/{region}/resourceViews/{resourceViewName}/removeResources',
191
+ 'httpMethod' => 'POST',
192
+ 'parameters' => array(
193
+ 'projectName' => array(
194
+ 'location' => 'path',
195
+ 'type' => 'string',
196
+ 'required' => true,
197
+ ),
198
+ 'region' => array(
199
+ 'location' => 'path',
200
+ 'type' => 'string',
201
+ 'required' => true,
202
+ ),
203
+ 'resourceViewName' => array(
204
+ 'location' => 'path',
205
+ 'type' => 'string',
206
+ 'required' => true,
207
+ ),
208
+ ),
209
+ ),
210
+ )
211
+ )
212
+ );
213
+ $this->zoneViews = new GoogleGAL_Service_Resourceviews_ZoneViews_Resource(
214
+ $this,
215
+ $this->serviceName,
216
+ 'zoneViews',
217
+ array(
218
+ 'methods' => array(
219
+ 'addresources' => array(
220
+ 'path' => '{projectName}/zones/{zone}/resourceViews/{resourceViewName}/addResources',
221
+ 'httpMethod' => 'POST',
222
+ 'parameters' => array(
223
+ 'projectName' => array(
224
+ 'location' => 'path',
225
+ 'type' => 'string',
226
+ 'required' => true,
227
+ ),
228
+ 'zone' => array(
229
+ 'location' => 'path',
230
+ 'type' => 'string',
231
+ 'required' => true,
232
+ ),
233
+ 'resourceViewName' => array(
234
+ 'location' => 'path',
235
+ 'type' => 'string',
236
+ 'required' => true,
237
+ ),
238
+ ),
239
+ ),'delete' => array(
240
+ 'path' => '{projectName}/zones/{zone}/resourceViews/{resourceViewName}',
241
+ 'httpMethod' => 'DELETE',
242
+ 'parameters' => array(
243
+ 'projectName' => array(
244
+ 'location' => 'path',
245
+ 'type' => 'string',
246
+ 'required' => true,
247
+ ),
248
+ 'zone' => array(
249
+ 'location' => 'path',
250
+ 'type' => 'string',
251
+ 'required' => true,
252
+ ),
253
+ 'resourceViewName' => array(
254
+ 'location' => 'path',
255
+ 'type' => 'string',
256
+ 'required' => true,
257
+ ),
258
+ ),
259
+ ),'get' => array(
260
+ 'path' => '{projectName}/zones/{zone}/resourceViews/{resourceViewName}',
261
+ 'httpMethod' => 'GET',
262
+ 'parameters' => array(
263
+ 'projectName' => array(
264
+ 'location' => 'path',
265
+ 'type' => 'string',
266
+ 'required' => true,
267
+ ),
268
+ 'zone' => array(
269
+ 'location' => 'path',
270
+ 'type' => 'string',
271
+ 'required' => true,
272
+ ),
273
+ 'resourceViewName' => array(
274
+ 'location' => 'path',
275
+ 'type' => 'string',
276
+ 'required' => true,
277
+ ),
278
+ ),
279
+ ),'insert' => array(
280
+ 'path' => '{projectName}/zones/{zone}/resourceViews',
281
+ 'httpMethod' => 'POST',
282
+ 'parameters' => array(
283
+ 'projectName' => array(
284
+ 'location' => 'path',
285
+ 'type' => 'string',
286
+ 'required' => true,
287
+ ),
288
+ 'zone' => array(
289
+ 'location' => 'path',
290
+ 'type' => 'string',
291
+ 'required' => true,
292
+ ),
293
+ ),
294
+ ),'list' => array(
295
+ 'path' => '{projectName}/zones/{zone}/resourceViews',
296
+ 'httpMethod' => 'GET',
297
+ 'parameters' => array(
298
+ 'projectName' => array(
299
+ 'location' => 'path',
300
+ 'type' => 'string',
301
+ 'required' => true,
302
+ ),
303
+ 'zone' => array(
304
+ 'location' => 'path',
305
+ 'type' => 'string',
306
+ 'required' => true,
307
+ ),
308
+ 'pageToken' => array(
309
+ 'location' => 'query',
310
+ 'type' => 'string',
311
+ ),
312
+ 'maxResults' => array(
313
+ 'location' => 'query',
314
+ 'type' => 'integer',
315
+ ),
316
+ ),
317
+ ),'listresources' => array(
318
+ 'path' => '{projectName}/zones/{zone}/resourceViews/{resourceViewName}/resources',
319
+ 'httpMethod' => 'POST',
320
+ 'parameters' => array(
321
+ 'projectName' => array(
322
+ 'location' => 'path',
323
+ 'type' => 'string',
324
+ 'required' => true,
325
+ ),
326
+ 'zone' => array(
327
+ 'location' => 'path',
328
+ 'type' => 'string',
329
+ 'required' => true,
330
+ ),
331
+ 'resourceViewName' => array(
332
+ 'location' => 'path',
333
+ 'type' => 'string',
334
+ 'required' => true,
335
+ ),
336
+ 'pageToken' => array(
337
+ 'location' => 'query',
338
+ 'type' => 'string',
339
+ ),
340
+ 'maxResults' => array(
341
+ 'location' => 'query',
342
+ 'type' => 'integer',
343
+ ),
344
+ ),
345
+ ),'removeresources' => array(
346
+ 'path' => '{projectName}/zones/{zone}/resourceViews/{resourceViewName}/removeResources',
347
+ 'httpMethod' => 'POST',
348
+ 'parameters' => array(
349
+ 'projectName' => array(
350
+ 'location' => 'path',
351
+ 'type' => 'string',
352
+ 'required' => true,
353
+ ),
354
+ 'zone' => array(
355
+ 'location' => 'path',
356
+ 'type' => 'string',
357
+ 'required' => true,
358
+ ),
359
+ 'resourceViewName' => array(
360
+ 'location' => 'path',
361
+ 'type' => 'string',
362
+ 'required' => true,
363
+ ),
364
+ ),
365
+ ),
366
+ )
367
+ )
368
+ );
369
+ }
370
+ }
371
+
372
+
373
+ /**
374
+ * The "regionViews" collection of methods.
375
+ * Typical usage is:
376
+ * <code>
377
+ * $resourceviewsService = new GoogleGAL_Service_Resourceviews(...);
378
+ * $regionViews = $resourceviewsService->regionViews;
379
+ * </code>
380
+ */
381
+ class GoogleGAL_Service_Resourceviews_RegionViews_Resource extends GoogleGAL_Service_Resource
382
+ {
383
+
384
+ /**
385
+ * Add resources to the view. (regionViews.addresources)
386
+ *
387
+ * @param string $projectName
388
+ * The project name of the resource view.
389
+ * @param string $region
390
+ * The region name of the resource view.
391
+ * @param string $resourceViewName
392
+ * The name of the resource view.
393
+ * @param GoogleGAL_RegionViewsAddResourcesRequest $postBody
394
+ * @param array $optParams Optional parameters.
395
+ */
396
+ public function addresources($projectName, $region, $resourceViewName, GoogleGAL_Service_Resourceviews_RegionViewsAddResourcesRequest $postBody, $optParams = array())
397
+ {
398
+ $params = array('projectName' => $projectName, 'region' => $region, 'resourceViewName' => $resourceViewName, 'postBody' => $postBody);
399
+ $params = array_merge($params, $optParams);
400
+ return $this->call('addresources', array($params));
401
+ }
402
+ /**
403
+ * Delete a resource view. (regionViews.delete)
404
+ *
405
+ * @param string $projectName
406
+ * The project name of the resource view.
407
+ * @param string $region
408
+ * The region name of the resource view.
409
+ * @param string $resourceViewName
410
+ * The name of the resource view.
411
+ * @param array $optParams Optional parameters.
412
+ */
413
+ public function delete($projectName, $region, $resourceViewName, $optParams = array())
414
+ {
415
+ $params = array('projectName' => $projectName, 'region' => $region, 'resourceViewName' => $resourceViewName);
416
+ $params = array_merge($params, $optParams);
417
+ return $this->call('delete', array($params));
418
+ }
419
+ /**
420
+ * Get the information of a resource view. (regionViews.get)
421
+ *
422
+ * @param string $projectName
423
+ * The project name of the resource view.
424
+ * @param string $region
425
+ * The region name of the resource view.
426
+ * @param string $resourceViewName
427
+ * The name of the resource view.
428
+ * @param array $optParams Optional parameters.
429
+ * @return GoogleGAL_Service_Resourceviews_ResourceView
430
+ */
431
+ public function get($projectName, $region, $resourceViewName, $optParams = array())
432
+ {
433
+ $params = array('projectName' => $projectName, 'region' => $region, 'resourceViewName' => $resourceViewName);
434
+ $params = array_merge($params, $optParams);
435
+ return $this->call('get', array($params), "GoogleGAL_Service_Resourceviews_ResourceView");
436
+ }
437
+ /**
438
+ * Create a resource view. (regionViews.insert)
439
+ *
440
+ * @param string $projectName
441
+ * The project name of the resource view.
442
+ * @param string $region
443
+ * The region name of the resource view.
444
+ * @param GoogleGAL_ResourceView $postBody
445
+ * @param array $optParams Optional parameters.
446
+ * @return GoogleGAL_Service_Resourceviews_RegionViewsInsertResponse
447
+ */
448
+ public function insert($projectName, $region, GoogleGAL_Service_Resourceviews_ResourceView $postBody, $optParams = array())
449
+ {
450
+ $params = array('projectName' => $projectName, 'region' => $region, 'postBody' => $postBody);
451
+ $params = array_merge($params, $optParams);
452
+ return $this->call('insert', array($params), "GoogleGAL_Service_Resourceviews_RegionViewsInsertResponse");
453
+ }
454
+ /**
455
+ * List resource views. (regionViews.listRegionViews)
456
+ *
457
+ * @param string $projectName
458
+ * The project name of the resource view.
459
+ * @param string $region
460
+ * The region name of the resource view.
461
+ * @param array $optParams Optional parameters.
462
+ *
463
+ * @opt_param string pageToken
464
+ * Specifies a nextPageToken returned by a previous list request. This token can be used to request
465
+ * the next page of results from a previous list request.
466
+ * @opt_param int maxResults
467
+ * Maximum count of results to be returned. Acceptable values are 0 to 500, inclusive. (Default:
468
+ * 50)
469
+ * @return GoogleGAL_Service_Resourceviews_RegionViewsListResponse
470
+ */
471
+ public function listRegionViews($projectName, $region, $optParams = array())
472
+ {
473
+ $params = array('projectName' => $projectName, 'region' => $region);
474
+ $params = array_merge($params, $optParams);
475
+ return $this->call('list', array($params), "GoogleGAL_Service_Resourceviews_RegionViewsListResponse");
476
+ }
477
+ /**
478
+ * List the resources in the view. (regionViews.listresources)
479
+ *
480
+ * @param string $projectName
481
+ * The project name of the resource view.
482
+ * @param string $region
483
+ * The region name of the resource view.
484
+ * @param string $resourceViewName
485
+ * The name of the resource view.
486
+ * @param array $optParams Optional parameters.
487
+ *
488
+ * @opt_param string pageToken
489
+ * Specifies a nextPageToken returned by a previous list request. This token can be used to request
490
+ * the next page of results from a previous list request.
491
+ * @opt_param int maxResults
492
+ * Maximum count of results to be returned. Acceptable values are 0 to 500, inclusive. (Default:
493
+ * 50)
494
+ * @return GoogleGAL_Service_Resourceviews_RegionViewsListResourcesResponse
495
+ */
496
+ public function listresources($projectName, $region, $resourceViewName, $optParams = array())
497
+ {
498
+ $params = array('projectName' => $projectName, 'region' => $region, 'resourceViewName' => $resourceViewName);
499
+ $params = array_merge($params, $optParams);
500
+ return $this->call('listresources', array($params), "GoogleGAL_Service_Resourceviews_RegionViewsListResourcesResponse");
501
+ }
502
+ /**
503
+ * Remove resources from the view. (regionViews.removeresources)
504
+ *
505
+ * @param string $projectName
506
+ * The project name of the resource view.
507
+ * @param string $region
508
+ * The region name of the resource view.
509
+ * @param string $resourceViewName
510
+ * The name of the resource view.
511
+ * @param GoogleGAL_RegionViewsRemoveResourcesRequest $postBody
512
+ * @param array $optParams Optional parameters.
513
+ */
514
+ public function removeresources($projectName, $region, $resourceViewName, GoogleGAL_Service_Resourceviews_RegionViewsRemoveResourcesRequest $postBody, $optParams = array())
515
+ {
516
+ $params = array('projectName' => $projectName, 'region' => $region, 'resourceViewName' => $resourceViewName, 'postBody' => $postBody);
517
+ $params = array_merge($params, $optParams);
518
+ return $this->call('removeresources', array($params));
519
+ }
520
+ }
521
+
522
+ /**
523
+ * The "zoneViews" collection of methods.
524
+ * Typical usage is:
525
+ * <code>
526
+ * $resourceviewsService = new GoogleGAL_Service_Resourceviews(...);
527
+ * $zoneViews = $resourceviewsService->zoneViews;
528
+ * </code>
529
+ */
530
+ class GoogleGAL_Service_Resourceviews_ZoneViews_Resource extends GoogleGAL_Service_Resource
531
+ {
532
+
533
+ /**
534
+ * Add resources to the view. (zoneViews.addresources)
535
+ *
536
+ * @param string $projectName
537
+ * The project name of the resource view.
538
+ * @param string $zone
539
+ * The zone name of the resource view.
540
+ * @param string $resourceViewName
541
+ * The name of the resource view.
542
+ * @param GoogleGAL_ZoneViewsAddResourcesRequest $postBody
543
+ * @param array $optParams Optional parameters.
544
+ */
545
+ public function addresources($projectName, $zone, $resourceViewName, GoogleGAL_Service_Resourceviews_ZoneViewsAddResourcesRequest $postBody, $optParams = array())
546
+ {
547
+ $params = array('projectName' => $projectName, 'zone' => $zone, 'resourceViewName' => $resourceViewName, 'postBody' => $postBody);
548
+ $params = array_merge($params, $optParams);
549
+ return $this->call('addresources', array($params));
550
+ }
551
+ /**
552
+ * Delete a resource view. (zoneViews.delete)
553
+ *
554
+ * @param string $projectName
555
+ * The project name of the resource view.
556
+ * @param string $zone
557
+ * The zone name of the resource view.
558
+ * @param string $resourceViewName
559
+ * The name of the resource view.
560
+ * @param array $optParams Optional parameters.
561
+ */
562
+ public function delete($projectName, $zone, $resourceViewName, $optParams = array())
563
+ {
564
+ $params = array('projectName' => $projectName, 'zone' => $zone, 'resourceViewName' => $resourceViewName);
565
+ $params = array_merge($params, $optParams);
566
+ return $this->call('delete', array($params));
567
+ }
568
+ /**
569
+ * Get the information of a zonal resource view. (zoneViews.get)
570
+ *
571
+ * @param string $projectName
572
+ * The project name of the resource view.
573
+ * @param string $zone
574
+ * The zone name of the resource view.
575
+ * @param string $resourceViewName
576
+ * The name of the resource view.
577
+ * @param array $optParams Optional parameters.
578
+ * @return GoogleGAL_Service_Resourceviews_ResourceView
579
+ */
580
+ public function get($projectName, $zone, $resourceViewName, $optParams = array())
581
+ {
582
+ $params = array('projectName' => $projectName, 'zone' => $zone, 'resourceViewName' => $resourceViewName);
583
+ $params = array_merge($params, $optParams);
584
+ return $this->call('get', array($params), "GoogleGAL_Service_Resourceviews_ResourceView");
585
+ }
586
+ /**
587
+ * Create a resource view. (zoneViews.insert)
588
+ *
589
+ * @param string $projectName
590
+ * The project name of the resource view.
591
+ * @param string $zone
592
+ * The zone name of the resource view.
593
+ * @param GoogleGAL_ResourceView $postBody
594
+ * @param array $optParams Optional parameters.
595
+ * @return GoogleGAL_Service_Resourceviews_ZoneViewsInsertResponse
596
+ */
597
+ public function insert($projectName, $zone, GoogleGAL_Service_Resourceviews_ResourceView $postBody, $optParams = array())
598
+ {
599
+ $params = array('projectName' => $projectName, 'zone' => $zone, 'postBody' => $postBody);
600
+ $params = array_merge($params, $optParams);
601
+ return $this->call('insert', array($params), "GoogleGAL_Service_Resourceviews_ZoneViewsInsertResponse");
602
+ }
603
+ /**
604
+ * List resource views. (zoneViews.listZoneViews)
605
+ *
606
+ * @param string $projectName
607
+ * The project name of the resource view.
608
+ * @param string $zone
609
+ * The zone name of the resource view.
610
+ * @param array $optParams Optional parameters.
611
+ *
612
+ * @opt_param string pageToken
613
+ * Specifies a nextPageToken returned by a previous list request. This token can be used to request
614
+ * the next page of results from a previous list request.
615
+ * @opt_param int maxResults
616
+ * Maximum count of results to be returned. Acceptable values are 0 to 500, inclusive. (Default:
617
+ * 50)
618
+ * @return GoogleGAL_Service_Resourceviews_ZoneViewsListResponse
619
+ */
620
+ public function listZoneViews($projectName, $zone, $optParams = array())
621
+ {
622
+ $params = array('projectName' => $projectName, 'zone' => $zone);
623
+ $params = array_merge($params, $optParams);
624
+ return $this->call('list', array($params), "GoogleGAL_Service_Resourceviews_ZoneViewsListResponse");
625
+ }
626
+ /**
627
+ * List the resources of the resource view. (zoneViews.listresources)
628
+ *
629
+ * @param string $projectName
630
+ * The project name of the resource view.
631
+ * @param string $zone
632
+ * The zone name of the resource view.
633
+ * @param string $resourceViewName
634
+ * The name of the resource view.
635
+ * @param array $optParams Optional parameters.
636
+ *
637
+ * @opt_param string pageToken
638
+ * Specifies a nextPageToken returned by a previous list request. This token can be used to request
639
+ * the next page of results from a previous list request.
640
+ * @opt_param int maxResults
641
+ * Maximum count of results to be returned. Acceptable values are 0 to 500, inclusive. (Default:
642
+ * 50)
643
+ * @return GoogleGAL_Service_Resourceviews_ZoneViewsListResourcesResponse
644
+ */
645
+ public function listresources($projectName, $zone, $resourceViewName, $optParams = array())
646
+ {
647
+ $params = array('projectName' => $projectName, 'zone' => $zone, 'resourceViewName' => $resourceViewName);
648
+ $params = array_merge($params, $optParams);
649
+ return $this->call('listresources', array($params), "GoogleGAL_Service_Resourceviews_ZoneViewsListResourcesResponse");
650
+ }
651
+ /**
652
+ * Remove resources from the view. (zoneViews.removeresources)
653
+ *
654
+ * @param string $projectName
655
+ * The project name of the resource view.
656
+ * @param string $zone
657
+ * The zone name of the resource view.
658
+ * @param string $resourceViewName
659
+ * The name of the resource view.
660
+ * @param GoogleGAL_ZoneViewsRemoveResourcesRequest $postBody
661
+ * @param array $optParams Optional parameters.
662
+ */
663
+ public function removeresources($projectName, $zone, $resourceViewName, GoogleGAL_Service_Resourceviews_ZoneViewsRemoveResourcesRequest $postBody, $optParams = array())
664
+ {
665
+ $params = array('projectName' => $projectName, 'zone' => $zone, 'resourceViewName' => $resourceViewName, 'postBody' => $postBody);
666
+ $params = array_merge($params, $optParams);
667
+ return $this->call('removeresources', array($params));
668
+ }
669
+ }
670
+
671
+
672
+
673
+
674
+ class GoogleGAL_Service_Resourceviews_Label extends GoogleGAL_Model
675
+ {
676
+ public $key;
677
+ public $value;
678
+
679
+ public function setKey($key)
680
+ {
681
+ $this->key = $key;
682
+ }
683
+
684
+ public function getKey()
685
+ {
686
+ return $this->key;
687
+ }
688
+
689
+ public function setValue($value)
690
+ {
691
+ $this->value = $value;
692
+ }
693
+
694
+ public function getValue()
695
+ {
696
+ return $this->value;
697
+ }
698
+ }
699
+
700
+ class GoogleGAL_Service_Resourceviews_RegionViewsAddResourcesRequest extends GoogleGAL_Collection
701
+ {
702
+ public $resources;
703
+
704
+ public function setResources($resources)
705
+ {
706
+ $this->resources = $resources;
707
+ }
708
+
709
+ public function getResources()
710
+ {
711
+ return $this->resources;
712
+ }
713
+ }
714
+
715
+ class GoogleGAL_Service_Resourceviews_RegionViewsInsertResponse extends GoogleGAL_Model
716
+ {
717
+ protected $resourceType = 'GoogleGAL_Service_Resourceviews_ResourceView';
718
+ protected $resourceDataType = '';
719
+
720
+ public function setResource(GoogleGAL_Service_Resourceviews_ResourceView $resource)
721
+ {
722
+ $this->resource = $resource;
723
+ }
724
+
725
+ public function getResource()
726
+ {
727
+ return $this->resource;
728
+ }
729
+ }
730
+
731
+ class GoogleGAL_Service_Resourceviews_RegionViewsListResourcesResponse extends GoogleGAL_Collection
732
+ {
733
+ public $members;
734
+ public $nextPageToken;
735
+
736
+ public function setMembers($members)
737
+ {
738
+ $this->members = $members;
739
+ }
740
+
741
+ public function getMembers()
742
+ {
743
+ return $this->members;
744
+ }
745
+
746
+ public function setNextPageToken($nextPageToken)
747
+ {
748
+ $this->nextPageToken = $nextPageToken;
749
+ }
750
+
751
+ public function getNextPageToken()
752
+ {
753
+ return $this->nextPageToken;
754
+ }
755
+ }
756
+
757
+ class GoogleGAL_Service_Resourceviews_RegionViewsListResponse extends GoogleGAL_Collection
758
+ {
759
+ public $nextPageToken;
760
+ protected $resourceViewsType = 'GoogleGAL_Service_Resourceviews_ResourceView';
761
+ protected $resourceViewsDataType = 'array';
762
+
763
+ public function setNextPageToken($nextPageToken)
764
+ {
765
+ $this->nextPageToken = $nextPageToken;
766
+ }
767
+
768
+ public function getNextPageToken()
769
+ {
770
+ return $this->nextPageToken;
771
+ }
772
+
773
+ public function setResourceViews($resourceViews)
774
+ {
775
+ $this->resourceViews = $resourceViews;
776
+ }
777
+
778
+ public function getResourceViews()
779
+ {
780
+ return $this->resourceViews;
781
+ }
782
+ }
783
+
784
+ class GoogleGAL_Service_Resourceviews_RegionViewsRemoveResourcesRequest extends GoogleGAL_Collection
785
+ {
786
+ public $resources;
787
+
788
+ public function setResources($resources)
789
+ {
790
+ $this->resources = $resources;
791
+ }
792
+
793
+ public function getResources()
794
+ {
795
+ return $this->resources;
796
+ }
797
+ }
798
+
799
+ class GoogleGAL_Service_Resourceviews_ResourceView extends GoogleGAL_Collection
800
+ {
801
+ public $creationTime;
802
+ public $description;
803
+ public $id;
804
+ protected $labelsType = 'GoogleGAL_Service_Resourceviews_Label';
805
+ protected $labelsDataType = 'array';
806
+ public $lastModified;
807
+ public $members;
808
+ public $name;
809
+ public $numMembers;
810
+ public $selfLink;
811
+
812
+ public function setCreationTime($creationTime)
813
+ {
814
+ $this->creationTime = $creationTime;
815
+ }
816
+
817
+ public function getCreationTime()
818
+ {
819
+ return $this->creationTime;
820
+ }
821
+
822
+ public function setDescription($description)
823
+ {
824
+ $this->description = $description;
825
+ }
826
+
827
+ public function getDescription()
828
+ {
829
+ return $this->description;
830
+ }
831
+
832
+ public function setId($id)
833
+ {
834
+ $this->id = $id;
835
+ }
836
+
837
+ public function getId()
838
+ {
839
+ return $this->id;
840
+ }
841
+
842
+ public function setLabels($labels)
843
+ {
844
+ $this->labels = $labels;
845
+ }
846
+
847
+ public function getLabels()
848
+ {
849
+ return $this->labels;
850
+ }
851
+
852
+ public function setLastModified($lastModified)
853
+ {
854
+ $this->lastModified = $lastModified;
855
+ }
856
+
857
+ public function getLastModified()
858
+ {
859
+ return $this->lastModified;
860
+ }
861
+
862
+ public function setMembers($members)
863
+ {
864
+ $this->members = $members;
865
+ }
866
+
867
+ public function getMembers()
868
+ {
869
+ return $this->members;
870
+ }
871
+
872
+ public function setName($name)
873
+ {
874
+ $this->name = $name;
875
+ }
876
+
877
+ public function getName()
878
+ {
879
+ return $this->name;
880
+ }
881
+
882
+ public function setNumMembers($numMembers)
883
+ {
884
+ $this->numMembers = $numMembers;
885
+ }
886
+
887
+ public function getNumMembers()
888
+ {
889
+ return $this->numMembers;
890
+ }
891
+
892
+ public function setSelfLink($selfLink)
893
+ {
894
+ $this->selfLink = $selfLink;
895
+ }
896
+
897
+ public function getSelfLink()
898
+ {
899
+ return $this->selfLink;
900
+ }
901
+ }
902
+
903
+ class GoogleGAL_Service_Resourceviews_ZoneViewsAddResourcesRequest extends GoogleGAL_Collection
904
+ {
905
+ public $resources;
906
+
907
+ public function setResources($resources)
908
+ {
909
+ $this->resources = $resources;
910
+ }
911
+
912
+ public function getResources()
913
+ {
914
+ return $this->resources;
915
+ }
916
+ }
917
+
918
+ class GoogleGAL_Service_Resourceviews_ZoneViewsInsertResponse extends GoogleGAL_Model
919
+ {
920
+ protected $resourceType = 'GoogleGAL_Service_Resourceviews_ResourceView';
921
+ protected $resourceDataType = '';
922
+
923
+ public function setResource(GoogleGAL_Service_Resourceviews_ResourceView $resource)
924
+ {
925
+ $this->resource = $resource;
926
+ }
927
+
928
+ public function getResource()
929
+ {
930
+ return $this->resource;
931
+ }
932
+ }
933
+
934
+ class GoogleGAL_Service_Resourceviews_ZoneViewsListResourcesResponse extends GoogleGAL_Collection
935
+ {
936
+ public $members;
937
+ public $nextPageToken;
938
+
939
+ public function setMembers($members)
940
+ {
941
+ $this->members = $members;
942
+ }
943
+
944
+ public function getMembers()
945
+ {
946
+ return $this->members;
947
+ }
948
+
949
+ public function setNextPageToken($nextPageToken)
950
+ {
951
+ $this->nextPageToken = $nextPageToken;
952
+ }
953
+
954
+ public function getNextPageToken()
955
+ {
956
+ return $this->nextPageToken;
957
+ }
958
+ }
959
+
960
+ class GoogleGAL_Service_Resourceviews_ZoneViewsListResponse extends GoogleGAL_Collection
961
+ {
962
+ public $nextPageToken;
963
+ protected $resourceViewsType = 'GoogleGAL_Service_Resourceviews_ResourceView';
964
+ protected $resourceViewsDataType = 'array';
965
+
966
+ public function setNextPageToken($nextPageToken)
967
+ {
968
+ $this->nextPageToken = $nextPageToken;
969
+ }
970
+
971
+ public function getNextPageToken()
972
+ {
973
+ return $this->nextPageToken;
974
+ }
975
+
976
+ public function setResourceViews($resourceViews)
977
+ {
978
+ $this->resourceViews = $resourceViews;
979
+ }
980
+
981
+ public function getResourceViews()
982
+ {
983
+ return $this->resourceViews;
984
+ }
985
+ }
986
+
987
+ class GoogleGAL_Service_Resourceviews_ZoneViewsRemoveResourcesRequest extends GoogleGAL_Collection
988
+ {
989
+ public $resources;
990
+
991
+ public function setResources($resources)
992
+ {
993
+ $this->resources = $resources;
994
+ }
995
+
996
+ public function getResources()
997
+ {
998
+ return $this->resources;
999
+ }
1000
+ }
core/Google/Service/SQLAdmin.php CHANGED
@@ -37,6 +37,7 @@ class GoogleGAL_Service_SQLAdmin extends GoogleGAL_Service
37
  const SQLSERVICE_ADMIN = "https://www.googleapis.com/auth/sqlservice.admin";
38
 
39
  public $backupRuns;
 
40
  public $instances;
41
  public $operations;
42
  public $sslCerts;
@@ -51,7 +52,7 @@ class GoogleGAL_Service_SQLAdmin extends GoogleGAL_Service
51
  public function __construct(GoogleGAL_Client $client)
52
  {
53
  parent::__construct($client);
54
- $this->servicePath = 'sql/v1beta3/projects/';
55
  $this->version = 'v1beta3';
56
  $this->serviceName = 'sqladmin';
57
 
@@ -62,7 +63,7 @@ class GoogleGAL_Service_SQLAdmin extends GoogleGAL_Service
62
  array(
63
  'methods' => array(
64
  'get' => array(
65
- 'path' => '{project}/instances/{instance}/backupRuns/{backupConfiguration}',
66
  'httpMethod' => 'GET',
67
  'parameters' => array(
68
  'project' => array(
@@ -87,7 +88,7 @@ class GoogleGAL_Service_SQLAdmin extends GoogleGAL_Service
87
  ),
88
  ),
89
  ),'list' => array(
90
- 'path' => '{project}/instances/{instance}/backupRuns',
91
  'httpMethod' => 'GET',
92
  'parameters' => array(
93
  'project' => array(
@@ -118,14 +119,38 @@ class GoogleGAL_Service_SQLAdmin extends GoogleGAL_Service
118
  )
119
  )
120
  );
 
 
 
 
 
 
 
 
 
 
 
 
 
 
121
  $this->instances = new GoogleGAL_Service_SQLAdmin_Instances_Resource(
122
  $this,
123
  $this->serviceName,
124
  'instances',
125
  array(
126
  'methods' => array(
127
- 'delete' => array(
128
- 'path' => '{project}/instances/{instance}',
 
 
 
 
 
 
 
 
 
 
129
  'httpMethod' => 'DELETE',
130
  'parameters' => array(
131
  'project' => array(
@@ -140,7 +165,7 @@ class GoogleGAL_Service_SQLAdmin extends GoogleGAL_Service
140
  ),
141
  ),
142
  ),'export' => array(
143
- 'path' => '{project}/instances/{instance}/export',
144
  'httpMethod' => 'POST',
145
  'parameters' => array(
146
  'project' => array(
@@ -155,7 +180,7 @@ class GoogleGAL_Service_SQLAdmin extends GoogleGAL_Service
155
  ),
156
  ),
157
  ),'get' => array(
158
- 'path' => '{project}/instances/{instance}',
159
  'httpMethod' => 'GET',
160
  'parameters' => array(
161
  'project' => array(
@@ -170,7 +195,7 @@ class GoogleGAL_Service_SQLAdmin extends GoogleGAL_Service
170
  ),
171
  ),
172
  ),'import' => array(
173
- 'path' => '{project}/instances/{instance}/import',
174
  'httpMethod' => 'POST',
175
  'parameters' => array(
176
  'project' => array(
@@ -185,7 +210,7 @@ class GoogleGAL_Service_SQLAdmin extends GoogleGAL_Service
185
  ),
186
  ),
187
  ),'insert' => array(
188
- 'path' => '{project}/instances',
189
  'httpMethod' => 'POST',
190
  'parameters' => array(
191
  'project' => array(
@@ -195,7 +220,7 @@ class GoogleGAL_Service_SQLAdmin extends GoogleGAL_Service
195
  ),
196
  ),
197
  ),'list' => array(
198
- 'path' => '{project}/instances',
199
  'httpMethod' => 'GET',
200
  'parameters' => array(
201
  'project' => array(
@@ -213,7 +238,7 @@ class GoogleGAL_Service_SQLAdmin extends GoogleGAL_Service
213
  ),
214
  ),
215
  ),'patch' => array(
216
- 'path' => '{project}/instances/{instance}',
217
  'httpMethod' => 'PATCH',
218
  'parameters' => array(
219
  'project' => array(
@@ -228,7 +253,7 @@ class GoogleGAL_Service_SQLAdmin extends GoogleGAL_Service
228
  ),
229
  ),
230
  ),'resetSslConfig' => array(
231
- 'path' => '{project}/instances/{instance}/resetSslConfig',
232
  'httpMethod' => 'POST',
233
  'parameters' => array(
234
  'project' => array(
@@ -243,7 +268,7 @@ class GoogleGAL_Service_SQLAdmin extends GoogleGAL_Service
243
  ),
244
  ),
245
  ),'restart' => array(
246
- 'path' => '{project}/instances/{instance}/restart',
247
  'httpMethod' => 'POST',
248
  'parameters' => array(
249
  'project' => array(
@@ -258,7 +283,7 @@ class GoogleGAL_Service_SQLAdmin extends GoogleGAL_Service
258
  ),
259
  ),
260
  ),'restoreBackup' => array(
261
- 'path' => '{project}/instances/{instance}/restoreBackup',
262
  'httpMethod' => 'POST',
263
  'parameters' => array(
264
  'project' => array(
@@ -283,7 +308,7 @@ class GoogleGAL_Service_SQLAdmin extends GoogleGAL_Service
283
  ),
284
  ),
285
  ),'setRootPassword' => array(
286
- 'path' => '{project}/instances/{instance}/setRootPassword',
287
  'httpMethod' => 'POST',
288
  'parameters' => array(
289
  'project' => array(
@@ -298,7 +323,7 @@ class GoogleGAL_Service_SQLAdmin extends GoogleGAL_Service
298
  ),
299
  ),
300
  ),'update' => array(
301
- 'path' => '{project}/instances/{instance}',
302
  'httpMethod' => 'PUT',
303
  'parameters' => array(
304
  'project' => array(
@@ -323,7 +348,7 @@ class GoogleGAL_Service_SQLAdmin extends GoogleGAL_Service
323
  array(
324
  'methods' => array(
325
  'get' => array(
326
- 'path' => '{project}/instances/{instance}/operations/{operation}',
327
  'httpMethod' => 'GET',
328
  'parameters' => array(
329
  'project' => array(
@@ -343,7 +368,7 @@ class GoogleGAL_Service_SQLAdmin extends GoogleGAL_Service
343
  ),
344
  ),
345
  ),'list' => array(
346
- 'path' => '{project}/instances/{instance}/operations',
347
  'httpMethod' => 'GET',
348
  'parameters' => array(
349
  'project' => array(
@@ -376,7 +401,7 @@ class GoogleGAL_Service_SQLAdmin extends GoogleGAL_Service
376
  array(
377
  'methods' => array(
378
  'delete' => array(
379
- 'path' => '{project}/instances/{instance}/sslCerts/{sha1Fingerprint}',
380
  'httpMethod' => 'DELETE',
381
  'parameters' => array(
382
  'project' => array(
@@ -396,7 +421,7 @@ class GoogleGAL_Service_SQLAdmin extends GoogleGAL_Service
396
  ),
397
  ),
398
  ),'get' => array(
399
- 'path' => '{project}/instances/{instance}/sslCerts/{sha1Fingerprint}',
400
  'httpMethod' => 'GET',
401
  'parameters' => array(
402
  'project' => array(
@@ -416,7 +441,7 @@ class GoogleGAL_Service_SQLAdmin extends GoogleGAL_Service
416
  ),
417
  ),
418
  ),'insert' => array(
419
- 'path' => '{project}/instances/{instance}/sslCerts',
420
  'httpMethod' => 'POST',
421
  'parameters' => array(
422
  'project' => array(
@@ -431,7 +456,7 @@ class GoogleGAL_Service_SQLAdmin extends GoogleGAL_Service
431
  ),
432
  ),
433
  ),'list' => array(
434
- 'path' => '{project}/instances/{instance}/sslCerts',
435
  'httpMethod' => 'GET',
436
  'parameters' => array(
437
  'project' => array(
@@ -456,7 +481,7 @@ class GoogleGAL_Service_SQLAdmin extends GoogleGAL_Service
456
  array(
457
  'methods' => array(
458
  'list' => array(
459
- 'path' => '{project}/tiers',
460
  'httpMethod' => 'GET',
461
  'parameters' => array(
462
  'project' => array(
@@ -534,6 +559,32 @@ class GoogleGAL_Service_SQLAdmin_BackupRuns_Resource extends GoogleGAL_Service_R
534
  }
535
  }
536
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
537
  /**
538
  * The "instances" collection of methods.
539
  * Typical usage is:
@@ -545,6 +596,22 @@ class GoogleGAL_Service_SQLAdmin_BackupRuns_Resource extends GoogleGAL_Service_R
545
  class GoogleGAL_Service_SQLAdmin_Instances_Resource extends GoogleGAL_Service_Resource
546
  {
547
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
548
  /**
549
  * Deletes a Cloud SQL instance. (instances.delete)
550
  *
@@ -1138,6 +1205,118 @@ class GoogleGAL_Service_SQLAdmin_BackupRunsListResponse extends GoogleGAL_Collec
1138
  }
1139
  }
1140
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1141
  class GoogleGAL_Service_SQLAdmin_DatabaseInstance extends GoogleGAL_Collection
1142
  {
1143
  public $currentDiskSize;
@@ -1325,6 +1504,114 @@ class GoogleGAL_Service_SQLAdmin_ExportContext extends GoogleGAL_Collection
1325
  }
1326
  }
1327
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1328
  class GoogleGAL_Service_SQLAdmin_ImportContext extends GoogleGAL_Collection
1329
  {
1330
  public $database;
@@ -1517,6 +1804,48 @@ class GoogleGAL_Service_SQLAdmin_InstanceSetRootPasswordRequest extends GoogleGA
1517
  }
1518
  }
1519
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1520
  class GoogleGAL_Service_SQLAdmin_InstancesDeleteResponse extends GoogleGAL_Model
1521
  {
1522
  public $kind;
@@ -2017,6 +2346,8 @@ class GoogleGAL_Service_SQLAdmin_Settings extends GoogleGAL_Collection
2017
  public $authorizedGaeApplications;
2018
  protected $backupConfigurationType = 'GoogleGAL_Service_SQLAdmin_BackupConfiguration';
2019
  protected $backupConfigurationDataType = 'array';
 
 
2020
  protected $ipConfigurationType = 'GoogleGAL_Service_SQLAdmin_IpConfiguration';
2021
  protected $ipConfigurationDataType = '';
2022
  public $kind;
@@ -2057,6 +2388,16 @@ class GoogleGAL_Service_SQLAdmin_Settings extends GoogleGAL_Collection
2057
  return $this->backupConfiguration;
2058
  }
2059
 
 
 
 
 
 
 
 
 
 
 
2060
  public function setIpConfiguration(GoogleGAL_Service_SQLAdmin_IpConfiguration $ipConfiguration)
2061
  {
2062
  $this->ipConfiguration = $ipConfiguration;
37
  const SQLSERVICE_ADMIN = "https://www.googleapis.com/auth/sqlservice.admin";
38
 
39
  public $backupRuns;
40
+ public $flags;
41
  public $instances;
42
  public $operations;
43
  public $sslCerts;
52
  public function __construct(GoogleGAL_Client $client)
53
  {
54
  parent::__construct($client);
55
+ $this->servicePath = 'sql/v1beta3/';
56
  $this->version = 'v1beta3';
57
  $this->serviceName = 'sqladmin';
58
 
63
  array(
64
  'methods' => array(
65
  'get' => array(
66
+ 'path' => 'projects/{project}/instances/{instance}/backupRuns/{backupConfiguration}',
67
  'httpMethod' => 'GET',
68
  'parameters' => array(
69
  'project' => array(
88
  ),
89
  ),
90
  ),'list' => array(
91
+ 'path' => 'projects/{project}/instances/{instance}/backupRuns',
92
  'httpMethod' => 'GET',
93
  'parameters' => array(
94
  'project' => array(
119
  )
120
  )
121
  );
122
+ $this->flags = new GoogleGAL_Service_SQLAdmin_Flags_Resource(
123
+ $this,
124
+ $this->serviceName,
125
+ 'flags',
126
+ array(
127
+ 'methods' => array(
128
+ 'list' => array(
129
+ 'path' => 'flags',
130
+ 'httpMethod' => 'GET',
131
+ 'parameters' => array(),
132
+ ),
133
+ )
134
+ )
135
+ );
136
  $this->instances = new GoogleGAL_Service_SQLAdmin_Instances_Resource(
137
  $this,
138
  $this->serviceName,
139
  'instances',
140
  array(
141
  'methods' => array(
142
+ 'clone' => array(
143
+ 'path' => 'projects/{project}/instances/clone',
144
+ 'httpMethod' => 'POST',
145
+ 'parameters' => array(
146
+ 'project' => array(
147
+ 'location' => 'path',
148
+ 'type' => 'string',
149
+ 'required' => true,
150
+ ),
151
+ ),
152
+ ),'delete' => array(
153
+ 'path' => 'projects/{project}/instances/{instance}',
154
  'httpMethod' => 'DELETE',
155
  'parameters' => array(
156
  'project' => array(
165
  ),
166
  ),
167
  ),'export' => array(
168
+ 'path' => 'projects/{project}/instances/{instance}/export',
169
  'httpMethod' => 'POST',
170
  'parameters' => array(
171
  'project' => array(
180
  ),
181
  ),
182
  ),'get' => array(
183
+ 'path' => 'projects/{project}/instances/{instance}',
184
  'httpMethod' => 'GET',
185
  'parameters' => array(
186
  'project' => array(
195
  ),
196
  ),
197
  ),'import' => array(
198
+ 'path' => 'projects/{project}/instances/{instance}/import',
199
  'httpMethod' => 'POST',
200
  'parameters' => array(
201
  'project' => array(
210
  ),
211
  ),
212
  ),'insert' => array(
213
+ 'path' => 'projects/{project}/instances',
214
  'httpMethod' => 'POST',
215
  'parameters' => array(
216
  'project' => array(
220
  ),
221
  ),
222
  ),'list' => array(
223
+ 'path' => 'projects/{project}/instances',
224
  'httpMethod' => 'GET',
225
  'parameters' => array(
226
  'project' => array(
238
  ),
239
  ),
240
  ),'patch' => array(
241
+ 'path' => 'projects/{project}/instances/{instance}',
242
  'httpMethod' => 'PATCH',
243
  'parameters' => array(
244
  'project' => array(
253
  ),
254
  ),
255
  ),'resetSslConfig' => array(
256
+ 'path' => 'projects/{project}/instances/{instance}/resetSslConfig',
257
  'httpMethod' => 'POST',
258
  'parameters' => array(
259
  'project' => array(
268
  ),
269
  ),
270
  ),'restart' => array(
271
+ 'path' => 'projects/{project}/instances/{instance}/restart',
272
  'httpMethod' => 'POST',
273
  'parameters' => array(
274
  'project' => array(
283
  ),
284
  ),
285
  ),'restoreBackup' => array(
286
+ 'path' => 'projects/{project}/instances/{instance}/restoreBackup',
287
  'httpMethod' => 'POST',
288
  'parameters' => array(
289
  'project' => array(
308
  ),
309
  ),
310
  ),'setRootPassword' => array(
311
+ 'path' => 'projects/{project}/instances/{instance}/setRootPassword',
312
  'httpMethod' => 'POST',
313
  'parameters' => array(
314
  'project' => array(
323
  ),
324
  ),
325
  ),'update' => array(
326
+ 'path' => 'projects/{project}/instances/{instance}',
327
  'httpMethod' => 'PUT',
328
  'parameters' => array(
329
  'project' => array(
348
  array(
349
  'methods' => array(
350
  'get' => array(
351
+ 'path' => 'projects/{project}/instances/{instance}/operations/{operation}',
352
  'httpMethod' => 'GET',
353
  'parameters' => array(
354
  'project' => array(
368
  ),
369
  ),
370
  ),'list' => array(
371
+ 'path' => 'projects/{project}/instances/{instance}/operations',
372
  'httpMethod' => 'GET',
373
  'parameters' => array(
374
  'project' => array(
401
  array(
402
  'methods' => array(
403
  'delete' => array(
404
+ 'path' => 'projects/{project}/instances/{instance}/sslCerts/{sha1Fingerprint}',
405
  'httpMethod' => 'DELETE',
406
  'parameters' => array(
407
  'project' => array(
421
  ),
422
  ),
423
  ),'get' => array(
424
+ 'path' => 'projects/{project}/instances/{instance}/sslCerts/{sha1Fingerprint}',
425
  'httpMethod' => 'GET',
426
  'parameters' => array(
427
  'project' => array(
441
  ),
442
  ),
443
  ),'insert' => array(
444
+ 'path' => 'projects/{project}/instances/{instance}/sslCerts',
445
  'httpMethod' => 'POST',
446
  'parameters' => array(
447
  'project' => array(
456
  ),
457
  ),
458
  ),'list' => array(
459
+ 'path' => 'projects/{project}/instances/{instance}/sslCerts',
460
  'httpMethod' => 'GET',
461
  'parameters' => array(
462
  'project' => array(
481
  array(
482
  'methods' => array(
483
  'list' => array(
484
+ 'path' => 'projects/{project}/tiers',
485
  'httpMethod' => 'GET',
486
  'parameters' => array(
487
  'project' => array(
559
  }
560
  }
561
 
562
+ /**
563
+ * The "flags" collection of methods.
564
+ * Typical usage is:
565
+ * <code>
566
+ * $sqladminService = new GoogleGAL_Service_SQLAdmin(...);
567
+ * $flags = $sqladminService->flags;
568
+ * </code>
569
+ */
570
+ class GoogleGAL_Service_SQLAdmin_Flags_Resource extends GoogleGAL_Service_Resource
571
+ {
572
+
573
+ /**
574
+ * List all available database flags for Google Cloud SQL instances.
575
+ * (flags.listFlags)
576
+ *
577
+ * @param array $optParams Optional parameters.
578
+ * @return GoogleGAL_Service_SQLAdmin_FlagsListResponse
579
+ */
580
+ public function listFlags($optParams = array())
581
+ {
582
+ $params = array();
583
+ $params = array_merge($params, $optParams);
584
+ return $this->call('list', array($params), "GoogleGAL_Service_SQLAdmin_FlagsListResponse");
585
+ }
586
+ }
587
+
588
  /**
589
  * The "instances" collection of methods.
590
  * Typical usage is:
596
  class GoogleGAL_Service_SQLAdmin_Instances_Resource extends GoogleGAL_Service_Resource
597
  {
598
 
599
+ /**
600
+ * Creates a Cloud SQL instance as a clone of the source instance.
601
+ * (instances.cloneInstances)
602
+ *
603
+ * @param string $project
604
+ * Project ID of the source as well as the clone Cloud SQL instance.
605
+ * @param GoogleGAL_InstancesCloneRequest $postBody
606
+ * @param array $optParams Optional parameters.
607
+ * @return GoogleGAL_Service_SQLAdmin_InstancesCloneResponse
608
+ */
609
+ public function cloneInstances($project, GoogleGAL_Service_SQLAdmin_InstancesCloneRequest $postBody, $optParams = array())
610
+ {
611
+ $params = array('project' => $project, 'postBody' => $postBody);
612
+ $params = array_merge($params, $optParams);
613
+ return $this->call('clone', array($params), "GoogleGAL_Service_SQLAdmin_InstancesCloneResponse");
614
+ }
615
  /**
616
  * Deletes a Cloud SQL instance. (instances.delete)
617
  *
1205
  }
1206
  }
1207
 
1208
+ class GoogleGAL_Service_SQLAdmin_BinLogCoordinates extends GoogleGAL_Model
1209
+ {
1210
+ public $binLogFileName;
1211
+ public $binLogPosition;
1212
+ public $kind;
1213
+
1214
+ public function setBinLogFileName($binLogFileName)
1215
+ {
1216
+ $this->binLogFileName = $binLogFileName;
1217
+ }
1218
+
1219
+ public function getBinLogFileName()
1220
+ {
1221
+ return $this->binLogFileName;
1222
+ }
1223
+
1224
+ public function setBinLogPosition($binLogPosition)
1225
+ {
1226
+ $this->binLogPosition = $binLogPosition;
1227
+ }
1228
+
1229
+ public function getBinLogPosition()
1230
+ {
1231
+ return $this->binLogPosition;
1232
+ }
1233
+
1234
+ public function setKind($kind)
1235
+ {
1236
+ $this->kind = $kind;
1237
+ }
1238
+
1239
+ public function getKind()
1240
+ {
1241
+ return $this->kind;
1242
+ }
1243
+ }
1244
+
1245
+ class GoogleGAL_Service_SQLAdmin_CloneContext extends GoogleGAL_Model
1246
+ {
1247
+ protected $binLogCoordinatesType = 'GoogleGAL_Service_SQLAdmin_BinLogCoordinates';
1248
+ protected $binLogCoordinatesDataType = '';
1249
+ public $destinationInstanceName;
1250
+ public $kind;
1251
+ public $sourceInstanceName;
1252
+
1253
+ public function setBinLogCoordinates(GoogleGAL_Service_SQLAdmin_BinLogCoordinates $binLogCoordinates)
1254
+ {
1255
+ $this->binLogCoordinates = $binLogCoordinates;
1256
+ }
1257
+
1258
+ public function getBinLogCoordinates()
1259
+ {
1260
+ return $this->binLogCoordinates;
1261
+ }
1262
+
1263
+ public function setDestinationInstanceName($destinationInstanceName)
1264
+ {
1265
+ $this->destinationInstanceName = $destinationInstanceName;
1266
+ }
1267
+
1268
+ public function getDestinationInstanceName()
1269
+ {
1270
+ return $this->destinationInstanceName;
1271
+ }
1272
+
1273
+ public function setKind($kind)
1274
+ {
1275
+ $this->kind = $kind;
1276
+ }
1277
+
1278
+ public function getKind()
1279
+ {
1280
+ return $this->kind;
1281
+ }
1282
+
1283
+ public function setSourceInstanceName($sourceInstanceName)
1284
+ {
1285
+ $this->sourceInstanceName = $sourceInstanceName;
1286
+ }
1287
+
1288
+ public function getSourceInstanceName()
1289
+ {
1290
+ return $this->sourceInstanceName;
1291
+ }
1292
+ }
1293
+
1294
+ class GoogleGAL_Service_SQLAdmin_DatabaseFlags extends GoogleGAL_Model
1295
+ {
1296
+ public $name;
1297
+ public $value;
1298
+
1299
+ public function setName($name)
1300
+ {
1301
+ $this->name = $name;
1302
+ }
1303
+
1304
+ public function getName()
1305
+ {
1306
+ return $this->name;
1307
+ }
1308
+
1309
+ public function setValue($value)
1310
+ {
1311
+ $this->value = $value;
1312
+ }
1313
+
1314
+ public function getValue()
1315
+ {
1316
+ return $this->value;
1317
+ }
1318
+ }
1319
+
1320
  class GoogleGAL_Service_SQLAdmin_DatabaseInstance extends GoogleGAL_Collection
1321
  {
1322
  public $currentDiskSize;
1504
  }
1505
  }
1506
 
1507
+ class GoogleGAL_Service_SQLAdmin_Flag extends GoogleGAL_Collection
1508
+ {
1509
+ public $allowedStringValues;
1510
+ public $appliesTo;
1511
+ public $kind;
1512
+ public $maxValue;
1513
+ public $minValue;
1514
+ public $name;
1515
+ public $type;
1516
+
1517
+ public function setAllowedStringValues($allowedStringValues)
1518
+ {
1519
+ $this->allowedStringValues = $allowedStringValues;
1520
+ }
1521
+
1522
+ public function getAllowedStringValues()
1523
+ {
1524
+ return $this->allowedStringValues;
1525
+ }
1526
+
1527
+ public function setAppliesTo($appliesTo)
1528
+ {
1529
+ $this->appliesTo = $appliesTo;
1530
+ }
1531
+
1532
+ public function getAppliesTo()
1533
+ {
1534
+ return $this->appliesTo;
1535
+ }
1536
+
1537
+ public function setKind($kind)
1538
+ {
1539
+ $this->kind = $kind;
1540
+ }
1541
+
1542
+ public function getKind()
1543
+ {
1544
+ return $this->kind;
1545
+ }
1546
+
1547
+ public function setMaxValue($maxValue)
1548
+ {
1549
+ $this->maxValue = $maxValue;
1550
+ }
1551
+
1552
+ public function getMaxValue()
1553
+ {
1554
+ return $this->maxValue;
1555
+ }
1556
+
1557
+ public function setMinValue($minValue)
1558
+ {
1559
+ $this->minValue = $minValue;
1560
+ }
1561
+
1562
+ public function getMinValue()
1563
+ {
1564
+ return $this->minValue;
1565
+ }
1566
+
1567
+ public function setName($name)
1568
+ {
1569
+ $this->name = $name;
1570
+ }
1571
+
1572
+ public function getName()
1573
+ {
1574
+ return $this->name;
1575
+ }
1576
+
1577
+ public function setType($type)
1578
+ {
1579
+ $this->type = $type;
1580
+ }
1581
+
1582
+ public function getType()
1583
+ {
1584
+ return $this->type;
1585
+ }
1586
+ }
1587
+
1588
+ class GoogleGAL_Service_SQLAdmin_FlagsListResponse extends GoogleGAL_Collection
1589
+ {
1590
+ protected $itemsType = 'GoogleGAL_Service_SQLAdmin_Flag';
1591
+ protected $itemsDataType = 'array';
1592
+ public $kind;
1593
+
1594
+ public function setItems($items)
1595
+ {
1596
+ $this->items = $items;
1597
+ }
1598
+
1599
+ public function getItems()
1600
+ {
1601
+ return $this->items;
1602
+ }
1603
+
1604
+ public function setKind($kind)
1605
+ {
1606
+ $this->kind = $kind;
1607
+ }
1608
+
1609
+ public function getKind()
1610
+ {
1611
+ return $this->kind;
1612
+ }
1613
+ }
1614
+
1615
  class GoogleGAL_Service_SQLAdmin_ImportContext extends GoogleGAL_Collection
1616
  {
1617
  public $database;
1804
  }
1805
  }
1806
 
1807
+ class GoogleGAL_Service_SQLAdmin_InstancesCloneRequest extends GoogleGAL_Model
1808
+ {
1809
+ protected $cloneContextType = 'GoogleGAL_Service_SQLAdmin_CloneContext';
1810
+ protected $cloneContextDataType = '';
1811
+
1812
+ public function setCloneContext(GoogleGAL_Service_SQLAdmin_CloneContext $cloneContext)
1813
+ {
1814
+ $this->cloneContext = $cloneContext;
1815
+ }
1816
+
1817
+ public function getCloneContext()
1818
+ {
1819
+ return $this->cloneContext;
1820
+ }
1821
+ }
1822
+
1823
+ class GoogleGAL_Service_SQLAdmin_InstancesCloneResponse extends GoogleGAL_Model
1824
+ {
1825
+ public $kind;
1826
+ public $operation;
1827
+
1828
+ public function setKind($kind)
1829
+ {
1830
+ $this->kind = $kind;
1831
+ }
1832
+
1833
+ public function getKind()
1834
+ {
1835
+ return $this->kind;
1836
+ }
1837
+
1838
+ public function setOperation($operation)
1839
+ {
1840
+ $this->operation = $operation;
1841
+ }
1842
+
1843
+ public function getOperation()
1844
+ {
1845
+ return $this->operation;
1846
+ }
1847
+ }
1848
+
1849
  class GoogleGAL_Service_SQLAdmin_InstancesDeleteResponse extends GoogleGAL_Model
1850
  {
1851
  public $kind;
2346
  public $authorizedGaeApplications;
2347
  protected $backupConfigurationType = 'GoogleGAL_Service_SQLAdmin_BackupConfiguration';
2348
  protected $backupConfigurationDataType = 'array';
2349
+ protected $databaseFlagsType = 'GoogleGAL_Service_SQLAdmin_DatabaseFlags';
2350
+ protected $databaseFlagsDataType = 'array';
2351
  protected $ipConfigurationType = 'GoogleGAL_Service_SQLAdmin_IpConfiguration';
2352
  protected $ipConfigurationDataType = '';
2353
  public $kind;
2388
  return $this->backupConfiguration;
2389
  }
2390
 
2391
+ public function setDatabaseFlags($databaseFlags)
2392
+ {
2393
+ $this->databaseFlags = $databaseFlags;
2394
+ }
2395
+
2396
+ public function getDatabaseFlags()
2397
+ {
2398
+ return $this->databaseFlags;
2399
+ }
2400
+
2401
  public function setIpConfiguration(GoogleGAL_Service_SQLAdmin_IpConfiguration $ipConfiguration)
2402
  {
2403
  $this->ipConfiguration = $ipConfiguration;
core/Google/Service/Storage.php CHANGED
@@ -16,7 +16,7 @@
16
  */
17
 
18
  /**
19
- * Service definition for Storage (v1beta2).
20
  *
21
  * <p>
22
  * Lets you store and retrieve potentially-large, immutable data objects.
@@ -54,8 +54,8 @@ class GoogleGAL_Service_Storage extends GoogleGAL_Service
54
  public function __construct(GoogleGAL_Client $client)
55
  {
56
  parent::__construct($client);
57
- $this->servicePath = 'storage/v1beta2/';
58
- $this->version = 'v1beta2';
59
  $this->serviceName = 'storage';
60
 
61
  $this->bucketAccessControls = new GoogleGAL_Service_Storage_BucketAccessControls_Resource(
@@ -203,6 +203,10 @@ class GoogleGAL_Service_Storage extends GoogleGAL_Service
203
  'type' => 'string',
204
  'required' => true,
205
  ),
 
 
 
 
206
  'projection' => array(
207
  'location' => 'query',
208
  'type' => 'string',
@@ -243,6 +247,10 @@ class GoogleGAL_Service_Storage extends GoogleGAL_Service
243
  'location' => 'query',
244
  'type' => 'string',
245
  ),
 
 
 
 
246
  'ifMetagenerationNotMatch' => array(
247
  'location' => 'query',
248
  'type' => 'string',
@@ -265,6 +273,10 @@ class GoogleGAL_Service_Storage extends GoogleGAL_Service
265
  'location' => 'query',
266
  'type' => 'string',
267
  ),
 
 
 
 
268
  'ifMetagenerationNotMatch' => array(
269
  'location' => 'query',
270
  'type' => 'string',
@@ -554,11 +566,15 @@ class GoogleGAL_Service_Storage extends GoogleGAL_Service
554
  'type' => 'string',
555
  'required' => true,
556
  ),
 
 
 
 
557
  'ifMetagenerationMatch' => array(
558
  'location' => 'query',
559
  'type' => 'string',
560
  ),
561
- 'ifGenerationMatch' => array(
562
  'location' => 'query',
563
  'type' => 'string',
564
  ),
@@ -591,10 +607,6 @@ class GoogleGAL_Service_Storage extends GoogleGAL_Service
591
  'location' => 'query',
592
  'type' => 'string',
593
  ),
594
- 'ifGenerationMatch' => array(
595
- 'location' => 'query',
596
- 'type' => 'string',
597
- ),
598
  'ifGenerationNotMatch' => array(
599
  'location' => 'query',
600
  'type' => 'string',
@@ -603,7 +615,7 @@ class GoogleGAL_Service_Storage extends GoogleGAL_Service
603
  'location' => 'query',
604
  'type' => 'string',
605
  ),
606
- 'ifMetagenerationNotMatch' => array(
607
  'location' => 'query',
608
  'type' => 'string',
609
  ),
@@ -611,6 +623,10 @@ class GoogleGAL_Service_Storage extends GoogleGAL_Service
611
  'location' => 'query',
612
  'type' => 'string',
613
  ),
 
 
 
 
614
  'ifSourceGenerationMatch' => array(
615
  'location' => 'query',
616
  'type' => 'string',
@@ -619,7 +635,11 @@ class GoogleGAL_Service_Storage extends GoogleGAL_Service
619
  'location' => 'query',
620
  'type' => 'string',
621
  ),
622
- 'ifMetagenerationMatch' => array(
 
 
 
 
623
  'location' => 'query',
624
  'type' => 'string',
625
  ),
@@ -711,6 +731,10 @@ class GoogleGAL_Service_Storage extends GoogleGAL_Service
711
  'type' => 'string',
712
  'required' => true,
713
  ),
 
 
 
 
714
  'projection' => array(
715
  'location' => 'query',
716
  'type' => 'string',
@@ -723,6 +747,10 @@ class GoogleGAL_Service_Storage extends GoogleGAL_Service
723
  'location' => 'query',
724
  'type' => 'string',
725
  ),
 
 
 
 
726
  'ifGenerationMatch' => array(
727
  'location' => 'query',
728
  'type' => 'string',
@@ -784,6 +812,10 @@ class GoogleGAL_Service_Storage extends GoogleGAL_Service
784
  'type' => 'string',
785
  'required' => true,
786
  ),
 
 
 
 
787
  'ifGenerationNotMatch' => array(
788
  'location' => 'query',
789
  'type' => 'string',
@@ -823,6 +855,10 @@ class GoogleGAL_Service_Storage extends GoogleGAL_Service
823
  'type' => 'string',
824
  'required' => true,
825
  ),
 
 
 
 
826
  'ifGenerationNotMatch' => array(
827
  'location' => 'query',
828
  'type' => 'string',
@@ -1025,11 +1061,9 @@ class GoogleGAL_Service_Storage_Buckets_Resource extends GoogleGAL_Service_Resou
1025
  * @param array $optParams Optional parameters.
1026
  *
1027
  * @opt_param string ifMetagenerationMatch
1028
- * Makes the return of the bucket metadata conditional on whether the bucket's current
1029
- * metageneration matches the given value.
1030
  * @opt_param string ifMetagenerationNotMatch
1031
- * Makes the return of the bucket metadata conditional on whether the bucket's current
1032
- * metageneration does not match the given value.
1033
  */
1034
  public function delete($bucket, $optParams = array())
1035
  {
@@ -1068,6 +1102,8 @@ class GoogleGAL_Service_Storage_Buckets_Resource extends GoogleGAL_Service_Resou
1068
  * @param GoogleGAL_Bucket $postBody
1069
  * @param array $optParams Optional parameters.
1070
  *
 
 
1071
  * @opt_param string projection
1072
  * Set of properties to return. Defaults to noAcl, unless the bucket resource specifies acl or
1073
  * defaultObjectAcl properties, when it defaults to full.
@@ -1111,6 +1147,8 @@ class GoogleGAL_Service_Storage_Buckets_Resource extends GoogleGAL_Service_Resou
1111
  * @opt_param string ifMetagenerationMatch
1112
  * Makes the return of the bucket metadata conditional on whether the bucket's current
1113
  * metageneration matches the given value.
 
 
1114
  * @opt_param string ifMetagenerationNotMatch
1115
  * Makes the return of the bucket metadata conditional on whether the bucket's current
1116
  * metageneration does not match the given value.
@@ -1135,6 +1173,8 @@ class GoogleGAL_Service_Storage_Buckets_Resource extends GoogleGAL_Service_Resou
1135
  * @opt_param string ifMetagenerationMatch
1136
  * Makes the return of the bucket metadata conditional on whether the bucket's current
1137
  * metageneration matches the given value.
 
 
1138
  * @opt_param string ifMetagenerationNotMatch
1139
  * Makes the return of the bucket metadata conditional on whether the bucket's current
1140
  * metageneration does not match the given value.
@@ -1246,11 +1286,11 @@ class GoogleGAL_Service_Storage_DefaultObjectAccessControls_Resource extends Goo
1246
  * @param array $optParams Optional parameters.
1247
  *
1248
  * @opt_param string ifMetagenerationMatch
1249
- * Makes the operation conditional on whether the destination object's current metageneration
1250
- * matches the given value.
1251
  * @opt_param string ifMetagenerationNotMatch
1252
- * Makes the operation conditional on whether the destination object's current metageneration does
1253
- * not match the given value.
1254
  * @return GoogleGAL_Service_Storage_ObjectAccessControls
1255
  */
1256
  public function listDefaultObjectAccessControls($bucket, $optParams = array())
@@ -1473,12 +1513,14 @@ class GoogleGAL_Service_Storage_Objects_Resource extends GoogleGAL_Service_Resou
1473
  * @param GoogleGAL_ComposeRequest $postBody
1474
  * @param array $optParams Optional parameters.
1475
  *
1476
- * @opt_param string ifMetagenerationMatch
1477
- * Makes the operation conditional on whether the object's current metageneration matches the given
1478
- * value.
1479
  * @opt_param string ifGenerationMatch
1480
  * Makes the operation conditional on whether the object's current generation matches the given
1481
  * value.
 
 
 
 
 
1482
  * @return GoogleGAL_Service_Storage_StorageObject
1483
  */
1484
  public function compose($destinationBucket, $destinationObject, GoogleGAL_Service_Storage_ComposeRequest $postBody, $optParams = array())
@@ -1488,8 +1530,8 @@ class GoogleGAL_Service_Storage_Objects_Resource extends GoogleGAL_Service_Resou
1488
  return $this->call('compose', array($params), "GoogleGAL_Service_Storage_StorageObject");
1489
  }
1490
  /**
1491
- * Copies an object to a destination in the same location. Optionally overrides
1492
- * metadata. (objects.copy)
1493
  *
1494
  * @param string $sourceBucket
1495
  * Name of the bucket in which to find the source object.
@@ -1507,30 +1549,32 @@ class GoogleGAL_Service_Storage_Objects_Resource extends GoogleGAL_Service_Resou
1507
  * @opt_param string ifSourceGenerationNotMatch
1508
  * Makes the operation conditional on whether the source object's generation does not match the
1509
  * given value.
1510
- * @opt_param string ifGenerationMatch
1511
- * Makes the operation conditional on whether the destination object's current generation matches
1512
- * the given value.
1513
  * @opt_param string ifGenerationNotMatch
1514
  * Makes the operation conditional on whether the destination object's current generation does not
1515
  * match the given value.
1516
  * @opt_param string ifSourceMetagenerationNotMatch
1517
  * Makes the operation conditional on whether the source object's current metageneration does not
1518
  * match the given value.
1519
- * @opt_param string ifMetagenerationNotMatch
1520
- * Makes the operation conditional on whether the destination object's current metageneration does
1521
- * not match the given value.
1522
  * @opt_param string sourceGeneration
1523
  * If present, selects a specific revision of the source object (as opposed to the latest version,
1524
  * the default).
 
 
1525
  * @opt_param string ifSourceGenerationMatch
1526
  * Makes the operation conditional on whether the source object's generation matches the given
1527
  * value.
1528
  * @opt_param string ifSourceMetagenerationMatch
1529
  * Makes the operation conditional on whether the source object's current metageneration matches
1530
  * the given value.
1531
- * @opt_param string ifMetagenerationMatch
1532
- * Makes the operation conditional on whether the destination object's current metageneration
1533
- * matches the given value.
 
 
 
1534
  * @opt_param string projection
1535
  * Set of properties to return. Defaults to noAcl, unless the object resource specifies the acl
1536
  * property, when it defaults to full.
@@ -1543,9 +1587,9 @@ class GoogleGAL_Service_Storage_Objects_Resource extends GoogleGAL_Service_Resou
1543
  return $this->call('copy', array($params), "GoogleGAL_Service_Storage_StorageObject");
1544
  }
1545
  /**
1546
- * Deletes data blobs and associated metadata. Deletions are permanent if
1547
- * versioning is not enabled for the bucket, or if the generation parameter is
1548
- * used. (objects.delete)
1549
  *
1550
  * @param string $bucket
1551
  * Name of the bucket in which the object resides.
@@ -1576,7 +1620,7 @@ class GoogleGAL_Service_Storage_Objects_Resource extends GoogleGAL_Service_Resou
1576
  return $this->call('delete', array($params));
1577
  }
1578
  /**
1579
- * Retrieves objects or their associated metadata. (objects.get)
1580
  *
1581
  * @param string $bucket
1582
  * Name of the bucket in which the object resides.
@@ -1609,7 +1653,7 @@ class GoogleGAL_Service_Storage_Objects_Resource extends GoogleGAL_Service_Resou
1609
  return $this->call('get', array($params), "GoogleGAL_Service_Storage_StorageObject");
1610
  }
1611
  /**
1612
- * Stores new data blobs and associated metadata. (objects.insert)
1613
  *
1614
  * @param string $bucket
1615
  * Name of the bucket in which to store the new object. Overrides the provided object metadata's
@@ -1617,6 +1661,8 @@ class GoogleGAL_Service_Storage_Objects_Resource extends GoogleGAL_Service_Resou
1617
  * @param GoogleGAL_StorageObject $postBody
1618
  * @param array $optParams Optional parameters.
1619
  *
 
 
1620
  * @opt_param string projection
1621
  * Set of properties to return. Defaults to noAcl, unless the object resource specifies the acl
1622
  * property, when it defaults to full.
@@ -1626,6 +1672,11 @@ class GoogleGAL_Service_Storage_Objects_Resource extends GoogleGAL_Service_Resou
1626
  * @opt_param string ifMetagenerationMatch
1627
  * Makes the operation conditional on whether the object's current metageneration matches the given
1628
  * value.
 
 
 
 
 
1629
  * @opt_param string ifGenerationMatch
1630
  * Makes the operation conditional on whether the object's current generation matches the given
1631
  * value.
@@ -1675,8 +1726,8 @@ class GoogleGAL_Service_Storage_Objects_Resource extends GoogleGAL_Service_Resou
1675
  return $this->call('list', array($params), "GoogleGAL_Service_Storage_Objects");
1676
  }
1677
  /**
1678
- * Updates a data blob's associated metadata. This method supports patch
1679
- * semantics. (objects.patch)
1680
  *
1681
  * @param string $bucket
1682
  * Name of the bucket in which the object resides.
@@ -1685,6 +1736,8 @@ class GoogleGAL_Service_Storage_Objects_Resource extends GoogleGAL_Service_Resou
1685
  * @param GoogleGAL_StorageObject $postBody
1686
  * @param array $optParams Optional parameters.
1687
  *
 
 
1688
  * @opt_param string ifGenerationNotMatch
1689
  * Makes the operation conditional on whether the object's current generation does not match the
1690
  * given value.
@@ -1711,7 +1764,7 @@ class GoogleGAL_Service_Storage_Objects_Resource extends GoogleGAL_Service_Resou
1711
  return $this->call('patch', array($params), "GoogleGAL_Service_Storage_StorageObject");
1712
  }
1713
  /**
1714
- * Updates a data blob's associated metadata. (objects.update)
1715
  *
1716
  * @param string $bucket
1717
  * Name of the bucket in which the object resides.
@@ -1720,6 +1773,8 @@ class GoogleGAL_Service_Storage_Objects_Resource extends GoogleGAL_Service_Resou
1720
  * @param GoogleGAL_StorageObject $postBody
1721
  * @param array $optParams Optional parameters.
1722
  *
 
 
1723
  * @opt_param string ifGenerationNotMatch
1724
  * Makes the operation conditional on whether the object's current generation does not match the
1725
  * given value.
@@ -1802,6 +1857,7 @@ class GoogleGAL_Service_Storage_Bucket extends GoogleGAL_Collection
1802
  public $name;
1803
  protected $ownerType = 'GoogleGAL_Service_Storage_BucketOwner';
1804
  protected $ownerDataType = '';
 
1805
  public $selfLink;
1806
  public $storageClass;
1807
  public $timeCreated;
@@ -1930,6 +1986,16 @@ class GoogleGAL_Service_Storage_Bucket extends GoogleGAL_Collection
1930
  return $this->owner;
1931
  }
1932
 
 
 
 
 
 
 
 
 
 
 
1933
  public function setSelfLink($selfLink)
1934
  {
1935
  $this->selfLink = $selfLink;
@@ -1991,6 +2057,8 @@ class GoogleGAL_Service_Storage_BucketAccessControl extends GoogleGAL_Model
1991
  public $etag;
1992
  public $id;
1993
  public $kind;
 
 
1994
  public $role;
1995
  public $selfLink;
1996
 
@@ -2074,6 +2142,16 @@ class GoogleGAL_Service_Storage_BucketAccessControl extends GoogleGAL_Model
2074
  return $this->kind;
2075
  }
2076
 
 
 
 
 
 
 
 
 
 
 
2077
  public function setRole($role)
2078
  {
2079
  $this->role = $role;
@@ -2095,6 +2173,32 @@ class GoogleGAL_Service_Storage_BucketAccessControl extends GoogleGAL_Model
2095
  }
2096
  }
2097
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
2098
  class GoogleGAL_Service_Storage_BucketAccessControls extends GoogleGAL_Collection
2099
  {
2100
  protected $itemsType = 'GoogleGAL_Service_Storage_BucketAccessControl';
@@ -2626,6 +2730,8 @@ class GoogleGAL_Service_Storage_ObjectAccessControl extends GoogleGAL_Model
2626
  public $id;
2627
  public $kind;
2628
  public $object;
 
 
2629
  public $role;
2630
  public $selfLink;
2631
 
@@ -2729,6 +2835,16 @@ class GoogleGAL_Service_Storage_ObjectAccessControl extends GoogleGAL_Model
2729
  return $this->object;
2730
  }
2731
 
 
 
 
 
 
 
 
 
 
 
2732
  public function setRole($role)
2733
  {
2734
  $this->role = $role;
@@ -2750,6 +2866,32 @@ class GoogleGAL_Service_Storage_ObjectAccessControl extends GoogleGAL_Model
2750
  }
2751
  }
2752
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
2753
  class GoogleGAL_Service_Storage_ObjectAccessControls extends GoogleGAL_Collection
2754
  {
2755
  public $items;
16
  */
17
 
18
  /**
19
+ * Service definition for Storage (v1).
20
  *
21
  * <p>
22
  * Lets you store and retrieve potentially-large, immutable data objects.
54
  public function __construct(GoogleGAL_Client $client)
55
  {
56
  parent::__construct($client);
57
+ $this->servicePath = 'storage/v1/';
58
+ $this->version = 'v1';
59
  $this->serviceName = 'storage';
60
 
61
  $this->bucketAccessControls = new GoogleGAL_Service_Storage_BucketAccessControls_Resource(
203
  'type' => 'string',
204
  'required' => true,
205
  ),
206
+ 'predefinedAcl' => array(
207
+ 'location' => 'query',
208
+ 'type' => 'string',
209
+ ),
210
  'projection' => array(
211
  'location' => 'query',
212
  'type' => 'string',
247
  'location' => 'query',
248
  'type' => 'string',
249
  ),
250
+ 'predefinedAcl' => array(
251
+ 'location' => 'query',
252
+ 'type' => 'string',
253
+ ),
254
  'ifMetagenerationNotMatch' => array(
255
  'location' => 'query',
256
  'type' => 'string',
273
  'location' => 'query',
274
  'type' => 'string',
275
  ),
276
+ 'predefinedAcl' => array(
277
+ 'location' => 'query',
278
+ 'type' => 'string',
279
+ ),
280
  'ifMetagenerationNotMatch' => array(
281
  'location' => 'query',
282
  'type' => 'string',
566
  'type' => 'string',
567
  'required' => true,
568
  ),
569
+ 'ifGenerationMatch' => array(
570
+ 'location' => 'query',
571
+ 'type' => 'string',
572
+ ),
573
  'ifMetagenerationMatch' => array(
574
  'location' => 'query',
575
  'type' => 'string',
576
  ),
577
+ 'destinationPredefinedAcl' => array(
578
  'location' => 'query',
579
  'type' => 'string',
580
  ),
607
  'location' => 'query',
608
  'type' => 'string',
609
  ),
 
 
 
 
610
  'ifGenerationNotMatch' => array(
611
  'location' => 'query',
612
  'type' => 'string',
615
  'location' => 'query',
616
  'type' => 'string',
617
  ),
618
+ 'ifMetagenerationMatch' => array(
619
  'location' => 'query',
620
  'type' => 'string',
621
  ),
623
  'location' => 'query',
624
  'type' => 'string',
625
  ),
626
+ 'destinationPredefinedAcl' => array(
627
+ 'location' => 'query',
628
+ 'type' => 'string',
629
+ ),
630
  'ifSourceGenerationMatch' => array(
631
  'location' => 'query',
632
  'type' => 'string',
635
  'location' => 'query',
636
  'type' => 'string',
637
  ),
638
+ 'ifGenerationMatch' => array(
639
+ 'location' => 'query',
640
+ 'type' => 'string',
641
+ ),
642
+ 'ifMetagenerationNotMatch' => array(
643
  'location' => 'query',
644
  'type' => 'string',
645
  ),
731
  'type' => 'string',
732
  'required' => true,
733
  ),
734
+ 'predefinedAcl' => array(
735
+ 'location' => 'query',
736
+ 'type' => 'string',
737
+ ),
738
  'projection' => array(
739
  'location' => 'query',
740
  'type' => 'string',
747
  'location' => 'query',
748
  'type' => 'string',
749
  ),
750
+ 'contentEncoding' => array(
751
+ 'location' => 'query',
752
+ 'type' => 'string',
753
+ ),
754
  'ifGenerationMatch' => array(
755
  'location' => 'query',
756
  'type' => 'string',
812
  'type' => 'string',
813
  'required' => true,
814
  ),
815
+ 'predefinedAcl' => array(
816
+ 'location' => 'query',
817
+ 'type' => 'string',
818
+ ),
819
  'ifGenerationNotMatch' => array(
820
  'location' => 'query',
821
  'type' => 'string',
855
  'type' => 'string',
856
  'required' => true,
857
  ),
858
+ 'predefinedAcl' => array(
859
+ 'location' => 'query',
860
+ 'type' => 'string',
861
+ ),
862
  'ifGenerationNotMatch' => array(
863
  'location' => 'query',
864
  'type' => 'string',
1061
  * @param array $optParams Optional parameters.
1062
  *
1063
  * @opt_param string ifMetagenerationMatch
1064
+ * If set, only deletes the bucket if its metageneration matches this value.
 
1065
  * @opt_param string ifMetagenerationNotMatch
1066
+ * If set, only deletes the bucket if its metageneration does not match this value.
 
1067
  */
1068
  public function delete($bucket, $optParams = array())
1069
  {
1102
  * @param GoogleGAL_Bucket $postBody
1103
  * @param array $optParams Optional parameters.
1104
  *
1105
+ * @opt_param string predefinedAcl
1106
+ * Apply a predefined set of access controls to this bucket.
1107
  * @opt_param string projection
1108
  * Set of properties to return. Defaults to noAcl, unless the bucket resource specifies acl or
1109
  * defaultObjectAcl properties, when it defaults to full.
1147
  * @opt_param string ifMetagenerationMatch
1148
  * Makes the return of the bucket metadata conditional on whether the bucket's current
1149
  * metageneration matches the given value.
1150
+ * @opt_param string predefinedAcl
1151
+ * Apply a predefined set of access controls to this bucket.
1152
  * @opt_param string ifMetagenerationNotMatch
1153
  * Makes the return of the bucket metadata conditional on whether the bucket's current
1154
  * metageneration does not match the given value.
1173
  * @opt_param string ifMetagenerationMatch
1174
  * Makes the return of the bucket metadata conditional on whether the bucket's current
1175
  * metageneration matches the given value.
1176
+ * @opt_param string predefinedAcl
1177
+ * Apply a predefined set of access controls to this bucket.
1178
  * @opt_param string ifMetagenerationNotMatch
1179
  * Makes the return of the bucket metadata conditional on whether the bucket's current
1180
  * metageneration does not match the given value.
1286
  * @param array $optParams Optional parameters.
1287
  *
1288
  * @opt_param string ifMetagenerationMatch
1289
+ * If present, only return default ACL listing if the bucket's current metageneration matches this
1290
+ * value.
1291
  * @opt_param string ifMetagenerationNotMatch
1292
+ * If present, only return default ACL listing if the bucket's current metageneration does not
1293
+ * match the given value.
1294
  * @return GoogleGAL_Service_Storage_ObjectAccessControls
1295
  */
1296
  public function listDefaultObjectAccessControls($bucket, $optParams = array())
1513
  * @param GoogleGAL_ComposeRequest $postBody
1514
  * @param array $optParams Optional parameters.
1515
  *
 
 
 
1516
  * @opt_param string ifGenerationMatch
1517
  * Makes the operation conditional on whether the object's current generation matches the given
1518
  * value.
1519
+ * @opt_param string ifMetagenerationMatch
1520
+ * Makes the operation conditional on whether the object's current metageneration matches the given
1521
+ * value.
1522
+ * @opt_param string destinationPredefinedAcl
1523
+ * Apply a predefined set of access controls to the destination object.
1524
  * @return GoogleGAL_Service_Storage_StorageObject
1525
  */
1526
  public function compose($destinationBucket, $destinationObject, GoogleGAL_Service_Storage_ComposeRequest $postBody, $optParams = array())
1530
  return $this->call('compose', array($params), "GoogleGAL_Service_Storage_StorageObject");
1531
  }
1532
  /**
1533
+ * Copies an object to a specified location. Optionally overrides metadata.
1534
+ * (objects.copy)
1535
  *
1536
  * @param string $sourceBucket
1537
  * Name of the bucket in which to find the source object.
1549
  * @opt_param string ifSourceGenerationNotMatch
1550
  * Makes the operation conditional on whether the source object's generation does not match the
1551
  * given value.
 
 
 
1552
  * @opt_param string ifGenerationNotMatch
1553
  * Makes the operation conditional on whether the destination object's current generation does not
1554
  * match the given value.
1555
  * @opt_param string ifSourceMetagenerationNotMatch
1556
  * Makes the operation conditional on whether the source object's current metageneration does not
1557
  * match the given value.
1558
+ * @opt_param string ifMetagenerationMatch
1559
+ * Makes the operation conditional on whether the destination object's current metageneration
1560
+ * matches the given value.
1561
  * @opt_param string sourceGeneration
1562
  * If present, selects a specific revision of the source object (as opposed to the latest version,
1563
  * the default).
1564
+ * @opt_param string destinationPredefinedAcl
1565
+ * Apply a predefined set of access controls to the destination object.
1566
  * @opt_param string ifSourceGenerationMatch
1567
  * Makes the operation conditional on whether the source object's generation matches the given
1568
  * value.
1569
  * @opt_param string ifSourceMetagenerationMatch
1570
  * Makes the operation conditional on whether the source object's current metageneration matches
1571
  * the given value.
1572
+ * @opt_param string ifGenerationMatch
1573
+ * Makes the operation conditional on whether the destination object's current generation matches
1574
+ * the given value.
1575
+ * @opt_param string ifMetagenerationNotMatch
1576
+ * Makes the operation conditional on whether the destination object's current metageneration does
1577
+ * not match the given value.
1578
  * @opt_param string projection
1579
  * Set of properties to return. Defaults to noAcl, unless the object resource specifies the acl
1580
  * property, when it defaults to full.
1587
  return $this->call('copy', array($params), "GoogleGAL_Service_Storage_StorageObject");
1588
  }
1589
  /**
1590
+ * Deletes an object and its metadata. Deletions are permanent if versioning is
1591
+ * not enabled for the bucket, or if the generation parameter is used.
1592
+ * (objects.delete)
1593
  *
1594
  * @param string $bucket
1595
  * Name of the bucket in which the object resides.
1620
  return $this->call('delete', array($params));
1621
  }
1622
  /**
1623
+ * Retrieves objects or their metadata. (objects.get)
1624
  *
1625
  * @param string $bucket
1626
  * Name of the bucket in which the object resides.
1653
  return $this->call('get', array($params), "GoogleGAL_Service_Storage_StorageObject");
1654
  }
1655
  /**
1656
+ * Stores a new object and metadata. (objects.insert)
1657
  *
1658
  * @param string $bucket
1659
  * Name of the bucket in which to store the new object. Overrides the provided object metadata's
1661
  * @param GoogleGAL_StorageObject $postBody
1662
  * @param array $optParams Optional parameters.
1663
  *
1664
+ * @opt_param string predefinedAcl
1665
+ * Apply a predefined set of access controls to this object.
1666
  * @opt_param string projection
1667
  * Set of properties to return. Defaults to noAcl, unless the object resource specifies the acl
1668
  * property, when it defaults to full.
1672
  * @opt_param string ifMetagenerationMatch
1673
  * Makes the operation conditional on whether the object's current metageneration matches the given
1674
  * value.
1675
+ * @opt_param string contentEncoding
1676
+ * If set, sets the contentEncoding property of the final object to this value. Setting this
1677
+ * parameter is equivalent to setting the contentEncoding metadata property. This can be useful
1678
+ * when uploading an object with uploadType=media to indicate the encoding of the content being
1679
+ * uploaded.
1680
  * @opt_param string ifGenerationMatch
1681
  * Makes the operation conditional on whether the object's current generation matches the given
1682
  * value.
1726
  return $this->call('list', array($params), "GoogleGAL_Service_Storage_Objects");
1727
  }
1728
  /**
1729
+ * Updates an object's metadata. This method supports patch semantics.
1730
+ * (objects.patch)
1731
  *
1732
  * @param string $bucket
1733
  * Name of the bucket in which the object resides.
1736
  * @param GoogleGAL_StorageObject $postBody
1737
  * @param array $optParams Optional parameters.
1738
  *
1739
+ * @opt_param string predefinedAcl
1740
+ * Apply a predefined set of access controls to this object.
1741
  * @opt_param string ifGenerationNotMatch
1742
  * Makes the operation conditional on whether the object's current generation does not match the
1743
  * given value.
1764
  return $this->call('patch', array($params), "GoogleGAL_Service_Storage_StorageObject");
1765
  }
1766
  /**
1767
+ * Updates an object's metadata. (objects.update)
1768
  *
1769
  * @param string $bucket
1770
  * Name of the bucket in which the object resides.
1773
  * @param GoogleGAL_StorageObject $postBody
1774
  * @param array $optParams Optional parameters.
1775
  *
1776
+ * @opt_param string predefinedAcl
1777
+ * Apply a predefined set of access controls to this object.
1778
  * @opt_param string ifGenerationNotMatch
1779
  * Makes the operation conditional on whether the object's current generation does not match the
1780
  * given value.
1857
  public $name;
1858
  protected $ownerType = 'GoogleGAL_Service_Storage_BucketOwner';
1859
  protected $ownerDataType = '';
1860
+ public $projectNumber;
1861
  public $selfLink;
1862
  public $storageClass;
1863
  public $timeCreated;
1986
  return $this->owner;
1987
  }
1988
 
1989
+ public function setProjectNumber($projectNumber)
1990
+ {
1991
+ $this->projectNumber = $projectNumber;
1992
+ }
1993
+
1994
+ public function getProjectNumber()
1995
+ {
1996
+ return $this->projectNumber;
1997
+ }
1998
+
1999
  public function setSelfLink($selfLink)
2000
  {
2001
  $this->selfLink = $selfLink;
2057
  public $etag;
2058
  public $id;
2059
  public $kind;
2060
+ protected $projectTeamType = 'GoogleGAL_Service_Storage_BucketAccessControlProjectTeam';
2061
+ protected $projectTeamDataType = '';
2062
  public $role;
2063
  public $selfLink;
2064
 
2142
  return $this->kind;
2143
  }
2144
 
2145
+ public function setProjectTeam(GoogleGAL_Service_Storage_BucketAccessControlProjectTeam $projectTeam)
2146
+ {
2147
+ $this->projectTeam = $projectTeam;
2148
+ }
2149
+
2150
+ public function getProjectTeam()
2151
+ {
2152
+ return $this->projectTeam;
2153
+ }
2154
+
2155
  public function setRole($role)
2156
  {
2157
  $this->role = $role;
2173
  }
2174
  }
2175
 
2176
+ class GoogleGAL_Service_Storage_BucketAccessControlProjectTeam extends GoogleGAL_Model
2177
+ {
2178
+ public $projectNumber;
2179
+ public $team;
2180
+
2181
+ public function setProjectNumber($projectNumber)
2182
+ {
2183
+ $this->projectNumber = $projectNumber;
2184
+ }
2185
+
2186
+ public function getProjectNumber()
2187
+ {
2188
+ return $this->projectNumber;
2189
+ }
2190
+
2191
+ public function setTeam($team)
2192
+ {
2193
+ $this->team = $team;
2194
+ }
2195
+
2196
+ public function getTeam()
2197
+ {
2198
+ return $this->team;
2199
+ }
2200
+ }
2201
+
2202
  class GoogleGAL_Service_Storage_BucketAccessControls extends GoogleGAL_Collection
2203
  {
2204
  protected $itemsType = 'GoogleGAL_Service_Storage_BucketAccessControl';
2730
  public $id;
2731
  public $kind;
2732
  public $object;
2733
+ protected $projectTeamType = 'GoogleGAL_Service_Storage_ObjectAccessControlProjectTeam';
2734
+ protected $projectTeamDataType = '';
2735
  public $role;
2736
  public $selfLink;
2737
 
2835
  return $this->object;
2836
  }
2837
 
2838
+ public function setProjectTeam(GoogleGAL_Service_Storage_ObjectAccessControlProjectTeam $projectTeam)
2839
+ {
2840
+ $this->projectTeam = $projectTeam;
2841
+ }
2842
+
2843
+ public function getProjectTeam()
2844
+ {
2845
+ return $this->projectTeam;
2846
+ }
2847
+
2848
  public function setRole($role)
2849
  {
2850
  $this->role = $role;
2866
  }
2867
  }
2868
 
2869
+ class GoogleGAL_Service_Storage_ObjectAccessControlProjectTeam extends GoogleGAL_Model
2870
+ {
2871
+ public $projectNumber;
2872
+ public $team;
2873
+
2874
+ public function setProjectNumber($projectNumber)
2875
+ {
2876
+ $this->projectNumber = $projectNumber;
2877
+ }
2878
+
2879
+ public function getProjectNumber()
2880
+ {
2881
+ return $this->projectNumber;
2882
+ }
2883
+
2884
+ public function setTeam($team)
2885
+ {
2886
+ $this->team = $team;
2887
+ }
2888
+
2889
+ public function getTeam()
2890
+ {
2891
+ return $this->team;
2892
+ }
2893
+ }
2894
+
2895
  class GoogleGAL_Service_Storage_ObjectAccessControls extends GoogleGAL_Collection
2896
  {
2897
  public $items;
core/Google/Service/YouTube.php CHANGED
@@ -183,6 +183,10 @@ class GoogleGAL_Service_YouTube extends GoogleGAL_Service
183
  'location' => 'query',
184
  'type' => 'string',
185
  ),
 
 
 
 
186
  ),
187
  ),'list' => array(
188
  'path' => 'channelSections',
@@ -1477,6 +1481,16 @@ class GoogleGAL_Service_YouTube_ChannelSections_Resource extends GoogleGAL_Servi
1477
  * different YouTube channels. It allows content owners to authenticate once and perform actions on
1478
  * behalf of the channel specified in the parameter value, without having to provide authentication
1479
  * credentials for each separate channel.
 
 
 
 
 
 
 
 
 
 
1480
  * @return GoogleGAL_Service_YouTube_ChannelSection
1481
  */
1482
  public function insert($part, GoogleGAL_Service_YouTube_ChannelSection $postBody, $optParams = array())
@@ -2561,12 +2575,12 @@ class GoogleGAL_Service_YouTube_Playlists_Resource extends GoogleGAL_Service_Res
2561
  * @param string $part
2562
  * The part parameter specifies a comma-separated list of one or more playlist resource properties
2563
  * that the API response will include. The part names that you can include in the parameter value
2564
- * are id, snippet, and status.
2565
- If the parameter identifies a property that contains child
2566
- * properties, the child properties will be included in the response. For example, in a playlist
2567
- * resource, the snippet property contains properties like author, title, description, tags, and
2568
- * timeCreated. As such, if you set part=snippet, the API response will contain all of those
2569
- * properties.
2570
  * @param array $optParams Optional parameters.
2571
  *
2572
  * @opt_param string onBehalfOfContentOwner
183
  'location' => 'query',
184
  'type' => 'string',
185
  ),
186
+ 'onBehalfOfContentOwner' => array(
187
+ 'location' => 'query',
188
+ 'type' => 'string',
189
+ ),
190
  ),
191
  ),'list' => array(
192
  'path' => 'channelSections',
1481
  * different YouTube channels. It allows content owners to authenticate once and perform actions on
1482
  * behalf of the channel specified in the parameter value, without having to provide authentication
1483
  * credentials for each separate channel.
1484
+ * @opt_param string onBehalfOfContentOwner
1485
+ * Note: This parameter is intended exclusively for YouTube content partners.
1486
+ The
1487
+ * onBehalfOfContentOwner parameter indicates that the request's authorization credentials identify
1488
+ * a YouTube CMS user who is acting on behalf of the content owner specified in the parameter
1489
+ * value. This parameter is intended for YouTube content partners that own and manage many
1490
+ * different YouTube channels. It allows content owners to authenticate once and get access to all
1491
+ * their video and channel data, without having to provide authentication credentials for each
1492
+ * individual channel. The CMS account that the user authenticates with must be linked to the
1493
+ * specified YouTube content owner.
1494
  * @return GoogleGAL_Service_YouTube_ChannelSection
1495
  */
1496
  public function insert($part, GoogleGAL_Service_YouTube_ChannelSection $postBody, $optParams = array())
2575
  * @param string $part
2576
  * The part parameter specifies a comma-separated list of one or more playlist resource properties
2577
  * that the API response will include. The part names that you can include in the parameter value
2578
+ * are id, snippet, status, and contentDetails.
2579
+ If the parameter identifies a property that
2580
+ * contains child properties, the child properties will be included in the response. For example,
2581
+ * in a playlist resource, the snippet property contains properties like author, title,
2582
+ * description, tags, and timeCreated. As such, if you set part=snippet, the API response will
2583
+ * contain all of those properties.
2584
  * @param array $optParams Optional parameters.
2585
  *
2586
  * @opt_param string onBehalfOfContentOwner
core/Google/Signer/P12.php CHANGED
@@ -82,7 +82,8 @@ class GoogleGAL_Signer_P12 extends GoogleGAL_Signer_Abstract
82
  "PHP 5.3.0 or higher is required to use service accounts."
83
  );
84
  }
85
- if (!openssl_sign($data, $signature, $this->privateKey, "sha256")) {
 
86
  throw new GoogleGAL_Auth_Exception("Unable to sign data");
87
  }
88
  return $signature;
82
  "PHP 5.3.0 or higher is required to use service accounts."
83
  );
84
  }
85
+ $hash = defined("OPENSSL_ALGO_SHA256") ? OPENSSL_ALGO_SHA256 : "sha256";
86
+ if (!openssl_sign($data, $signature, $this->privateKey, $hash)) {
87
  throw new GoogleGAL_Auth_Exception("Unable to sign data");
88
  }
89
  return $signature;
core/Google/Verifier/Pem.php CHANGED
@@ -64,7 +64,8 @@ class GoogleGAL_Verifier_Pem extends GoogleGAL_Verifier_Abstract
64
  */
65
  public function verify($data, $signature)
66
  {
67
- $status = openssl_verify($data, $signature, $this->publicKey, "sha256");
 
68
  if ($status === -1) {
69
  throw new GoogleGAL_Auth_Exception('Signature verification error: ' . openssl_error_string());
70
  }
64
  */
65
  public function verify($data, $signature)
66
  {
67
+ $hash = defined("OPENSSL_ALGO_SHA256") ? OPENSSL_ALGO_SHA256 : "sha256";
68
+ $status = openssl_verify($data, $signature, $this->publicKey, $hash);
69
  if ($status === -1) {
70
  throw new GoogleGAL_Auth_Exception('Signature verification error: ' . openssl_error_string());
71
  }
core/core_google_apps_login.php CHANGED
@@ -38,6 +38,7 @@ class core_google_apps_login {
38
 
39
  set_include_path(get_include_path() . PATH_SEPARATOR . plugin_dir_path(__FILE__));
40
 
 
41
  // Using modified Google Client to avoid name clashes - rename process:
42
  // find . -type f -exec sed -i '' -e 's/Google_/GoogleGAL_/g' {} +
43
 
@@ -46,7 +47,7 @@ class core_google_apps_login {
46
  }
47
 
48
  $client = new GoogleGAL_Client();
49
- $client->setApplicationName("Wordpress Blog");
50
 
51
  $client->setClientId($options['ga_clientid']);
52
  $client->setClientSecret($options['ga_clientsecret']);
@@ -236,9 +237,6 @@ class core_google_apps_login {
236
  }
237
 
238
  $options = $this->get_option_galogin();
239
- $clients = $this->createGoogleClient($options, true);
240
- $client = $clients[0];
241
- $oauthservice = $clients[1];
242
 
243
  if (isset($_GET['code'])) {
244
  if (!isset($_REQUEST['state'])) {
@@ -260,6 +258,10 @@ class core_google_apps_login {
260
  }
261
 
262
  try {
 
 
 
 
263
  $client->authenticate($_GET['code']);
264
 
265
  /* userinfo example:
@@ -301,6 +303,9 @@ class core_google_apps_login {
301
 
302
  // Set redirect for wp-login to receive via our own login_redirect callback
303
  $this->setFinalRedirect($retredirectto);
 
 
 
304
  }
305
  }
306
  }
@@ -433,6 +438,26 @@ class core_google_apps_login {
433
  else {
434
  $this->set_other_admin_notices();
435
  }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
436
  }
437
 
438
  // Has content in Basic
38
 
39
  set_include_path(get_include_path() . PATH_SEPARATOR . plugin_dir_path(__FILE__));
40
 
41
+ // Google PHP Client obtained from https://github.com/google/google-api-php-client
42
  // Using modified Google Client to avoid name clashes - rename process:
43
  // find . -type f -exec sed -i '' -e 's/Google_/GoogleGAL_/g' {} +
44
 
47
  }
48
 
49
  $client = new GoogleGAL_Client();
50
+ $client->setApplicationName("Wordpress Site");
51
 
52
  $client->setClientId($options['ga_clientid']);
53
  $client->setClientSecret($options['ga_clientsecret']);
237
  }
238
 
239
  $options = $this->get_option_galogin();
 
 
 
240
 
241
  if (isset($_GET['code'])) {
242
  if (!isset($_REQUEST['state'])) {
258
  }
259
 
260
  try {
261
+ $clients = $this->createGoogleClient($options, true);
262
+ $client = $clients[0];
263
+ $oauthservice = $clients[1];
264
+
265
  $client->authenticate($_GET['code']);
266
 
267
  /* userinfo example:
303
 
304
  // Set redirect for wp-login to receive via our own login_redirect callback
305
  $this->setFinalRedirect($retredirectto);
306
+
307
+ // Call hook in case another plugin wants to use the user's data
308
+ do_action('gal_user_loggedin', $user, $userinfo, $userdidnotexist, $client, $oauthservice);
309
  }
310
  }
311
  }
438
  else {
439
  $this->set_other_admin_notices();
440
  }
441
+
442
+ add_action('show_user_profile', Array($this, 'ga_personal_options'));
443
+ }
444
+
445
+ public function ga_personal_options($wp_user) {
446
+ if (is_object($wp_user)) {
447
+ // Display avatar in profile
448
+ $purchase_url = 'http://wp-glogin.com/avatars/?utm_source=Profile%20Page&utm_medium=freemium&utm_campaign=Avatars';
449
+ $source_text = 'Install <a href="'.$purchase_url.'">Google Profile Avatars</a> to use your Google account\'s profile photo here automatically.';
450
+ ?>
451
+ <table class="form-table">
452
+ <tbody><tr>
453
+ <th>Profile Photo</label></th>
454
+ <td><?php echo get_avatar($wp_user->ID, '48'); ?></td>
455
+ <td><?php echo apply_filters('gal_avatar_source_desc', $source_text, $wp_user); ?></td>
456
+ </tr>
457
+ </tbody>
458
+ </table>
459
+ <?php
460
+ }
461
  }
462
 
463
  // Has content in Basic
css/gal-admin.css CHANGED
@@ -93,7 +93,8 @@ a#gal-personalinstrlink {
93
  }
94
 
95
  div#logs-section table tr td {
96
- padding-right: 10px;
 
97
  }
98
 
99
  div#logs-section table tr.gal_log_level6 {
93
  }
94
 
95
  div#logs-section table tr td {
96
+ padding-right: 15px;
97
+ min-width: 150px;
98
  }
99
 
100
  div#logs-section table tr.gal_log_level6 {
google_apps_login.php CHANGED
@@ -4,7 +4,7 @@
4
  * Plugin Name: Google Apps Login
5
  * Plugin URI: http://wp-glogin.com/
6
  * Description: Simple secure login for Wordpress through users' Google Apps accounts (uses secure OAuth2, and MFA if enabled)
7
- * Version: 2.3.1
8
  * Author: Dan Lester
9
  * Author URI: http://wp-glogin.com/
10
  * License: GPL3
@@ -17,7 +17,7 @@ require_once( plugin_dir_path(__FILE__).'/core/core_google_apps_login.php' );
17
 
18
  class basic_google_apps_login extends core_google_apps_login {
19
 
20
- protected $PLUGIN_VERSION = '2.3.1';
21
 
22
  // Singleton
23
  private static $instance = null;
@@ -53,25 +53,41 @@ class basic_google_apps_login extends core_google_apps_login {
53
  protected function ga_options_do_sidebar() {
54
  $drivelink = "http://wp-glogin.com/drive/?utm_source=Admin%20Sidebar&utm_medium=freemium&utm_campaign=Drive";
55
  $upgradelink = "http://wp-glogin.com/google-apps-login-premium/?utm_source=Admin%20Sidebar&utm_medium=freemium&utm_campaign=Freemium";
56
- ?>
57
- <div id="gal-tableright" class="gal-tablecell">
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
58
 
59
- <div>
60
- <a href="<?php echo $upgradelink; ?>" target="_blank">
61
- <img src="<?php echo $this->my_plugin_url(); ?>img/basic_loginupgrade.png" />
62
- </a>
63
- <span>Buy our <a href="<?php echo $upgradelink; ?>" target="_blank">premium Login plugin</a> to revolutionize user management</span>
64
- </div>
65
-
66
- <div>
67
- <a href="<?php echo $drivelink; ?>" target="_blank">
68
- <img src="<?php echo $this->my_plugin_url(); ?>img/basic_driveplugin.png" />
69
- </a>
70
- <span>Try our <a href="<?php echo $drivelink; ?>" target="_blank">Google Drive Embedder</a> plugin</span>
71
- </div>
72
-
73
- </div>
74
- <?php
 
75
  }
76
 
77
  protected function ga_domainsection_text() {
@@ -131,7 +147,7 @@ class basic_google_apps_login extends core_google_apps_login {
131
  echo '<div class="updated"><p>';
132
  echo sprintf( __('Completely forget about WordPress user management - upgrade to <a href="%s">Google Apps Login premium</a> to automatically sync users from your Google Apps domain', 'google-apps-login'),
133
  $purchase_url );
134
- echo ' &nbsp; <a href="'.$purchase_url.'" class="button-secondary">' . __( 'Purchase', 'google-apps-login' ) . '</a>';
135
  echo '&nbsp;<a href="' . esc_url( $nothanks_url ) . '" class="button-secondary">' . __( 'No Thanks', 'google-apps-login' ) . '</a>';
136
  echo '</p></div>';
137
  }
4
  * Plugin Name: Google Apps Login
5
  * Plugin URI: http://wp-glogin.com/
6
  * Description: Simple secure login for Wordpress through users' Google Apps accounts (uses secure OAuth2, and MFA if enabled)
7
+ * Version: 2.4.3
8
  * Author: Dan Lester
9
  * Author URI: http://wp-glogin.com/
10
  * License: GPL3
17
 
18
  class basic_google_apps_login extends core_google_apps_login {
19
 
20
+ protected $PLUGIN_VERSION = '2.4.3';
21
 
22
  // Singleton
23
  private static $instance = null;
53
  protected function ga_options_do_sidebar() {
54
  $drivelink = "http://wp-glogin.com/drive/?utm_source=Admin%20Sidebar&utm_medium=freemium&utm_campaign=Drive";
55
  $upgradelink = "http://wp-glogin.com/google-apps-login-premium/?utm_source=Admin%20Sidebar&utm_medium=freemium&utm_campaign=Freemium";
56
+ $avatarslink = "http://wp-glogin.com/avatars/?utm_source=Admin%20Sidebar&utm_medium=freemium&utm_campaign=Avatars";
57
+
58
+ $adverts = Array();
59
+
60
+ $adverts[] = '<div>'
61
+ .'<a href="'.$upgradelink.'" target="_blank">'
62
+ .'<img src="'.$this->my_plugin_url().'img/basic_loginupgrade.png" />'
63
+ .'</a>'
64
+ .'<span>Buy our <a href="'.$upgradelink.'" target="_blank">premium Login plugin</a> to revolutionize user management</span>'
65
+ .'</div>';
66
+
67
+ $adverts[] = '<div>'
68
+ .'<a href="'.$drivelink.'" target="_blank">'
69
+ .'<img src="'.$this->my_plugin_url().'img/basic_driveplugin.png" />'
70
+ .'</a>'
71
+ .'<span>Try our <a href="'.$drivelink.'" target="_blank">Google Drive Embedder</a> plugin</span>'
72
+ .'</div>';
73
 
74
+ $adverts[] = '<div>'
75
+ .'<a href="'.$avatarslink.'" target="_blank">'
76
+ .'<img src="'.$this->my_plugin_url().'img/basic_avatars.png" />'
77
+ .'</a>'
78
+ .'<span>Bring your site to life with <a href="'.$avatarslink.'" target="_blank">Google Profile Avatars</a></span>'
79
+ .'</div>';
80
+
81
+ $startnum = (int)date('j');
82
+
83
+ echo '<div id="gal-tableright" class="gal-tablecell">';
84
+
85
+ for ($i=0 ; $i<3 ; $i++) {
86
+ echo $adverts[($startnum+$i) % 3];
87
+ }
88
+
89
+ echo '</div>';
90
+
91
  }
92
 
93
  protected function ga_domainsection_text() {
147
  echo '<div class="updated"><p>';
148
  echo sprintf( __('Completely forget about WordPress user management - upgrade to <a href="%s">Google Apps Login premium</a> to automatically sync users from your Google Apps domain', 'google-apps-login'),
149
  $purchase_url );
150
+ echo ' &nbsp; <a href="'.$purchase_url.'" class="button-secondary">' . __( 'Find out more', 'google-apps-login' ) . '</a>';
151
  echo '&nbsp;<a href="' . esc_url( $nothanks_url ) . '" class="button-secondary">' . __( 'No Thanks', 'google-apps-login' ) . '</a>';
152
  echo '</p></div>';
153
  }
img/basic_avatars.png ADDED
Binary file
readme.txt CHANGED
@@ -3,7 +3,7 @@ Contributors: danlester
3
  Tags: login, google, authentication, oauth2, oauth, admin, google apps, sso, single-sign-on, auth, intranet
4
  Requires at least: 3.3
5
  Tested up to: 3.9
6
- Stable tag: 2.3.1
7
  License: GPLv3
8
  License URI: http://www.gnu.org/licenses/gpl-3.0.html
9
 
@@ -210,6 +210,10 @@ please [click here](http://wp-glogin.com/installing-google-apps-login/basic-setu
210
 
211
  == Changelog ==
212
 
 
 
 
 
213
  = 2.3.1 =
214
 
215
  Fixed conflicts with some other plugins such as Google Analyticator which use similar Google client libraries.
3
  Tags: login, google, authentication, oauth2, oauth, admin, google apps, sso, single-sign-on, auth, intranet
4
  Requires at least: 3.3
5
  Tested up to: 3.9
6
+ Stable tag: 2.4.3
7
  License: GPLv3
8
  License URI: http://www.gnu.org/licenses/gpl-3.0.html
9
 
210
 
211
  == Changelog ==
212
 
213
+ = 2.4.3 =
214
+
215
+ New hooks for profile photos. Updated Google client library.
216
+
217
  = 2.3.1 =
218
 
219
  Fixed conflicts with some other plugins such as Google Analyticator which use similar Google client libraries.