@@ -326,7 +326,7 @@ discard block |
||
326 | 326 | * |
327 | 327 | * @param string $project The project under which the queue lies |
328 | 328 | * @param string $taskqueue The taskqueue to insert the task into |
329 | - * @param Google_Task $postBody |
|
329 | + * @param Google_Service_Taskqueue_Task $postBody |
|
330 | 330 | * @param array $optParams Optional parameters. |
331 | 331 | * @return Google_Service_Taskqueue_Task |
332 | 332 | */ |
@@ -384,7 +384,7 @@ discard block |
||
384 | 384 | * @param string $taskqueue |
385 | 385 | * @param string $task |
386 | 386 | * @param int $newLeaseSeconds The new lease in seconds. |
387 | - * @param Google_Task $postBody |
|
387 | + * @param Google_Service_Taskqueue_Task $postBody |
|
388 | 388 | * @param array $optParams Optional parameters. |
389 | 389 | * @return Google_Service_Taskqueue_Task |
390 | 390 | */ |
@@ -402,7 +402,7 @@ discard block |
||
402 | 402 | * @param string $taskqueue |
403 | 403 | * @param string $task |
404 | 404 | * @param int $newLeaseSeconds The new lease in seconds. |
405 | - * @param Google_Task $postBody |
|
405 | + * @param Google_Service_Taskqueue_Task $postBody |
|
406 | 406 | * @param array $optParams Optional parameters. |
407 | 407 | * @return Google_Service_Taskqueue_Task |
408 | 408 | */ |
@@ -32,10 +32,10 @@ discard block |
||
32 | 32 | { |
33 | 33 | /** Manage your Tasks and Taskqueues. */ |
34 | 34 | const TASKQUEUE = |
35 | - "https://www.googleapis.com/auth/taskqueue"; |
|
35 | + "https://www.googleapis.com/auth/taskqueue"; |
|
36 | 36 | /** Consume Tasks from your Taskqueues. */ |
37 | 37 | const TASKQUEUE_CONSUMER = |
38 | - "https://www.googleapis.com/auth/taskqueue.consumer"; |
|
38 | + "https://www.googleapis.com/auth/taskqueue.consumer"; |
|
39 | 39 | |
40 | 40 | public $taskqueues; |
41 | 41 | public $tasks; |
@@ -48,204 +48,204 @@ discard block |
||
48 | 48 | */ |
49 | 49 | public function __construct(Google_Client $client) |
50 | 50 | { |
51 | - parent::__construct($client); |
|
52 | - $this->rootUrl = 'https://www.googleapis.com/'; |
|
53 | - $this->servicePath = 'taskqueue/v1beta2/projects/'; |
|
54 | - $this->version = 'v1beta2'; |
|
55 | - $this->serviceName = 'taskqueue'; |
|
56 | - |
|
57 | - $this->taskqueues = new Google_Service_Taskqueue_Taskqueues_Resource( |
|
58 | - $this, |
|
59 | - $this->serviceName, |
|
60 | - 'taskqueues', |
|
61 | - array( |
|
62 | - 'methods' => array( |
|
63 | - 'get' => array( |
|
64 | - 'path' => '{project}/taskqueues/{taskqueue}', |
|
65 | - 'httpMethod' => 'GET', |
|
66 | - 'parameters' => array( |
|
67 | - 'project' => array( |
|
68 | - 'location' => 'path', |
|
69 | - 'type' => 'string', |
|
70 | - 'required' => true, |
|
71 | - ), |
|
72 | - 'taskqueue' => array( |
|
73 | - 'location' => 'path', |
|
74 | - 'type' => 'string', |
|
75 | - 'required' => true, |
|
76 | - ), |
|
77 | - 'getStats' => array( |
|
78 | - 'location' => 'query', |
|
79 | - 'type' => 'boolean', |
|
80 | - ), |
|
81 | - ), |
|
82 | - ), |
|
83 | - ) |
|
84 | - ) |
|
85 | - ); |
|
86 | - $this->tasks = new Google_Service_Taskqueue_Tasks_Resource( |
|
87 | - $this, |
|
88 | - $this->serviceName, |
|
89 | - 'tasks', |
|
90 | - array( |
|
91 | - 'methods' => array( |
|
92 | - 'delete' => array( |
|
93 | - 'path' => '{project}/taskqueues/{taskqueue}/tasks/{task}', |
|
94 | - 'httpMethod' => 'DELETE', |
|
95 | - 'parameters' => array( |
|
96 | - 'project' => array( |
|
97 | - 'location' => 'path', |
|
98 | - 'type' => 'string', |
|
99 | - 'required' => true, |
|
100 | - ), |
|
101 | - 'taskqueue' => array( |
|
102 | - 'location' => 'path', |
|
103 | - 'type' => 'string', |
|
104 | - 'required' => true, |
|
105 | - ), |
|
106 | - 'task' => array( |
|
107 | - 'location' => 'path', |
|
108 | - 'type' => 'string', |
|
109 | - 'required' => true, |
|
110 | - ), |
|
111 | - ), |
|
112 | - ),'get' => array( |
|
113 | - 'path' => '{project}/taskqueues/{taskqueue}/tasks/{task}', |
|
114 | - 'httpMethod' => 'GET', |
|
115 | - 'parameters' => array( |
|
116 | - 'project' => array( |
|
117 | - 'location' => 'path', |
|
118 | - 'type' => 'string', |
|
119 | - 'required' => true, |
|
120 | - ), |
|
121 | - 'taskqueue' => array( |
|
122 | - 'location' => 'path', |
|
123 | - 'type' => 'string', |
|
124 | - 'required' => true, |
|
125 | - ), |
|
126 | - 'task' => array( |
|
127 | - 'location' => 'path', |
|
128 | - 'type' => 'string', |
|
129 | - 'required' => true, |
|
130 | - ), |
|
131 | - ), |
|
132 | - ),'insert' => array( |
|
133 | - 'path' => '{project}/taskqueues/{taskqueue}/tasks', |
|
134 | - 'httpMethod' => 'POST', |
|
135 | - 'parameters' => array( |
|
136 | - 'project' => array( |
|
137 | - 'location' => 'path', |
|
138 | - 'type' => 'string', |
|
139 | - 'required' => true, |
|
140 | - ), |
|
141 | - 'taskqueue' => array( |
|
142 | - 'location' => 'path', |
|
143 | - 'type' => 'string', |
|
144 | - 'required' => true, |
|
145 | - ), |
|
146 | - ), |
|
147 | - ),'lease' => array( |
|
148 | - 'path' => '{project}/taskqueues/{taskqueue}/tasks/lease', |
|
149 | - 'httpMethod' => 'POST', |
|
150 | - 'parameters' => array( |
|
151 | - 'project' => array( |
|
152 | - 'location' => 'path', |
|
153 | - 'type' => 'string', |
|
154 | - 'required' => true, |
|
155 | - ), |
|
156 | - 'taskqueue' => array( |
|
157 | - 'location' => 'path', |
|
158 | - 'type' => 'string', |
|
159 | - 'required' => true, |
|
160 | - ), |
|
161 | - 'numTasks' => array( |
|
162 | - 'location' => 'query', |
|
163 | - 'type' => 'integer', |
|
164 | - 'required' => true, |
|
165 | - ), |
|
166 | - 'leaseSecs' => array( |
|
167 | - 'location' => 'query', |
|
168 | - 'type' => 'integer', |
|
169 | - 'required' => true, |
|
170 | - ), |
|
171 | - 'groupByTag' => array( |
|
172 | - 'location' => 'query', |
|
173 | - 'type' => 'boolean', |
|
174 | - ), |
|
175 | - 'tag' => array( |
|
176 | - 'location' => 'query', |
|
177 | - 'type' => 'string', |
|
178 | - ), |
|
179 | - ), |
|
180 | - ),'list' => array( |
|
181 | - 'path' => '{project}/taskqueues/{taskqueue}/tasks', |
|
182 | - 'httpMethod' => 'GET', |
|
183 | - 'parameters' => array( |
|
184 | - 'project' => array( |
|
185 | - 'location' => 'path', |
|
186 | - 'type' => 'string', |
|
187 | - 'required' => true, |
|
188 | - ), |
|
189 | - 'taskqueue' => array( |
|
190 | - 'location' => 'path', |
|
191 | - 'type' => 'string', |
|
192 | - 'required' => true, |
|
193 | - ), |
|
194 | - ), |
|
195 | - ),'patch' => array( |
|
196 | - 'path' => '{project}/taskqueues/{taskqueue}/tasks/{task}', |
|
197 | - 'httpMethod' => 'PATCH', |
|
198 | - 'parameters' => array( |
|
199 | - 'project' => array( |
|
200 | - 'location' => 'path', |
|
201 | - 'type' => 'string', |
|
202 | - 'required' => true, |
|
203 | - ), |
|
204 | - 'taskqueue' => array( |
|
205 | - 'location' => 'path', |
|
206 | - 'type' => 'string', |
|
207 | - 'required' => true, |
|
208 | - ), |
|
209 | - 'task' => array( |
|
210 | - 'location' => 'path', |
|
211 | - 'type' => 'string', |
|
212 | - 'required' => true, |
|
213 | - ), |
|
214 | - 'newLeaseSeconds' => array( |
|
215 | - 'location' => 'query', |
|
216 | - 'type' => 'integer', |
|
217 | - 'required' => true, |
|
218 | - ), |
|
219 | - ), |
|
220 | - ),'update' => array( |
|
221 | - 'path' => '{project}/taskqueues/{taskqueue}/tasks/{task}', |
|
222 | - 'httpMethod' => 'POST', |
|
223 | - 'parameters' => array( |
|
224 | - 'project' => array( |
|
225 | - 'location' => 'path', |
|
226 | - 'type' => 'string', |
|
227 | - 'required' => true, |
|
228 | - ), |
|
229 | - 'taskqueue' => array( |
|
230 | - 'location' => 'path', |
|
231 | - 'type' => 'string', |
|
232 | - 'required' => true, |
|
233 | - ), |
|
234 | - 'task' => array( |
|
235 | - 'location' => 'path', |
|
236 | - 'type' => 'string', |
|
237 | - 'required' => true, |
|
238 | - ), |
|
239 | - 'newLeaseSeconds' => array( |
|
240 | - 'location' => 'query', |
|
241 | - 'type' => 'integer', |
|
242 | - 'required' => true, |
|
243 | - ), |
|
244 | - ), |
|
245 | - ), |
|
246 | - ) |
|
247 | - ) |
|
248 | - ); |
|
51 | + parent::__construct($client); |
|
52 | + $this->rootUrl = 'https://www.googleapis.com/'; |
|
53 | + $this->servicePath = 'taskqueue/v1beta2/projects/'; |
|
54 | + $this->version = 'v1beta2'; |
|
55 | + $this->serviceName = 'taskqueue'; |
|
56 | + |
|
57 | + $this->taskqueues = new Google_Service_Taskqueue_Taskqueues_Resource( |
|
58 | + $this, |
|
59 | + $this->serviceName, |
|
60 | + 'taskqueues', |
|
61 | + array( |
|
62 | + 'methods' => array( |
|
63 | + 'get' => array( |
|
64 | + 'path' => '{project}/taskqueues/{taskqueue}', |
|
65 | + 'httpMethod' => 'GET', |
|
66 | + 'parameters' => array( |
|
67 | + 'project' => array( |
|
68 | + 'location' => 'path', |
|
69 | + 'type' => 'string', |
|
70 | + 'required' => true, |
|
71 | + ), |
|
72 | + 'taskqueue' => array( |
|
73 | + 'location' => 'path', |
|
74 | + 'type' => 'string', |
|
75 | + 'required' => true, |
|
76 | + ), |
|
77 | + 'getStats' => array( |
|
78 | + 'location' => 'query', |
|
79 | + 'type' => 'boolean', |
|
80 | + ), |
|
81 | + ), |
|
82 | + ), |
|
83 | + ) |
|
84 | + ) |
|
85 | + ); |
|
86 | + $this->tasks = new Google_Service_Taskqueue_Tasks_Resource( |
|
87 | + $this, |
|
88 | + $this->serviceName, |
|
89 | + 'tasks', |
|
90 | + array( |
|
91 | + 'methods' => array( |
|
92 | + 'delete' => array( |
|
93 | + 'path' => '{project}/taskqueues/{taskqueue}/tasks/{task}', |
|
94 | + 'httpMethod' => 'DELETE', |
|
95 | + 'parameters' => array( |
|
96 | + 'project' => array( |
|
97 | + 'location' => 'path', |
|
98 | + 'type' => 'string', |
|
99 | + 'required' => true, |
|
100 | + ), |
|
101 | + 'taskqueue' => array( |
|
102 | + 'location' => 'path', |
|
103 | + 'type' => 'string', |
|
104 | + 'required' => true, |
|
105 | + ), |
|
106 | + 'task' => array( |
|
107 | + 'location' => 'path', |
|
108 | + 'type' => 'string', |
|
109 | + 'required' => true, |
|
110 | + ), |
|
111 | + ), |
|
112 | + ),'get' => array( |
|
113 | + 'path' => '{project}/taskqueues/{taskqueue}/tasks/{task}', |
|
114 | + 'httpMethod' => 'GET', |
|
115 | + 'parameters' => array( |
|
116 | + 'project' => array( |
|
117 | + 'location' => 'path', |
|
118 | + 'type' => 'string', |
|
119 | + 'required' => true, |
|
120 | + ), |
|
121 | + 'taskqueue' => array( |
|
122 | + 'location' => 'path', |
|
123 | + 'type' => 'string', |
|
124 | + 'required' => true, |
|
125 | + ), |
|
126 | + 'task' => array( |
|
127 | + 'location' => 'path', |
|
128 | + 'type' => 'string', |
|
129 | + 'required' => true, |
|
130 | + ), |
|
131 | + ), |
|
132 | + ),'insert' => array( |
|
133 | + 'path' => '{project}/taskqueues/{taskqueue}/tasks', |
|
134 | + 'httpMethod' => 'POST', |
|
135 | + 'parameters' => array( |
|
136 | + 'project' => array( |
|
137 | + 'location' => 'path', |
|
138 | + 'type' => 'string', |
|
139 | + 'required' => true, |
|
140 | + ), |
|
141 | + 'taskqueue' => array( |
|
142 | + 'location' => 'path', |
|
143 | + 'type' => 'string', |
|
144 | + 'required' => true, |
|
145 | + ), |
|
146 | + ), |
|
147 | + ),'lease' => array( |
|
148 | + 'path' => '{project}/taskqueues/{taskqueue}/tasks/lease', |
|
149 | + 'httpMethod' => 'POST', |
|
150 | + 'parameters' => array( |
|
151 | + 'project' => array( |
|
152 | + 'location' => 'path', |
|
153 | + 'type' => 'string', |
|
154 | + 'required' => true, |
|
155 | + ), |
|
156 | + 'taskqueue' => array( |
|
157 | + 'location' => 'path', |
|
158 | + 'type' => 'string', |
|
159 | + 'required' => true, |
|
160 | + ), |
|
161 | + 'numTasks' => array( |
|
162 | + 'location' => 'query', |
|
163 | + 'type' => 'integer', |
|
164 | + 'required' => true, |
|
165 | + ), |
|
166 | + 'leaseSecs' => array( |
|
167 | + 'location' => 'query', |
|
168 | + 'type' => 'integer', |
|
169 | + 'required' => true, |
|
170 | + ), |
|
171 | + 'groupByTag' => array( |
|
172 | + 'location' => 'query', |
|
173 | + 'type' => 'boolean', |
|
174 | + ), |
|
175 | + 'tag' => array( |
|
176 | + 'location' => 'query', |
|
177 | + 'type' => 'string', |
|
178 | + ), |
|
179 | + ), |
|
180 | + ),'list' => array( |
|
181 | + 'path' => '{project}/taskqueues/{taskqueue}/tasks', |
|
182 | + 'httpMethod' => 'GET', |
|
183 | + 'parameters' => array( |
|
184 | + 'project' => array( |
|
185 | + 'location' => 'path', |
|
186 | + 'type' => 'string', |
|
187 | + 'required' => true, |
|
188 | + ), |
|
189 | + 'taskqueue' => array( |
|
190 | + 'location' => 'path', |
|
191 | + 'type' => 'string', |
|
192 | + 'required' => true, |
|
193 | + ), |
|
194 | + ), |
|
195 | + ),'patch' => array( |
|
196 | + 'path' => '{project}/taskqueues/{taskqueue}/tasks/{task}', |
|
197 | + 'httpMethod' => 'PATCH', |
|
198 | + 'parameters' => array( |
|
199 | + 'project' => array( |
|
200 | + 'location' => 'path', |
|
201 | + 'type' => 'string', |
|
202 | + 'required' => true, |
|
203 | + ), |
|
204 | + 'taskqueue' => array( |
|
205 | + 'location' => 'path', |
|
206 | + 'type' => 'string', |
|
207 | + 'required' => true, |
|
208 | + ), |
|
209 | + 'task' => array( |
|
210 | + 'location' => 'path', |
|
211 | + 'type' => 'string', |
|
212 | + 'required' => true, |
|
213 | + ), |
|
214 | + 'newLeaseSeconds' => array( |
|
215 | + 'location' => 'query', |
|
216 | + 'type' => 'integer', |
|
217 | + 'required' => true, |
|
218 | + ), |
|
219 | + ), |
|
220 | + ),'update' => array( |
|
221 | + 'path' => '{project}/taskqueues/{taskqueue}/tasks/{task}', |
|
222 | + 'httpMethod' => 'POST', |
|
223 | + 'parameters' => array( |
|
224 | + 'project' => array( |
|
225 | + 'location' => 'path', |
|
226 | + 'type' => 'string', |
|
227 | + 'required' => true, |
|
228 | + ), |
|
229 | + 'taskqueue' => array( |
|
230 | + 'location' => 'path', |
|
231 | + 'type' => 'string', |
|
232 | + 'required' => true, |
|
233 | + ), |
|
234 | + 'task' => array( |
|
235 | + 'location' => 'path', |
|
236 | + 'type' => 'string', |
|
237 | + 'required' => true, |
|
238 | + ), |
|
239 | + 'newLeaseSeconds' => array( |
|
240 | + 'location' => 'query', |
|
241 | + 'type' => 'integer', |
|
242 | + 'required' => true, |
|
243 | + ), |
|
244 | + ), |
|
245 | + ), |
|
246 | + ) |
|
247 | + ) |
|
248 | + ); |
|
249 | 249 | } |
250 | 250 | } |
251 | 251 | |
@@ -273,9 +273,9 @@ discard block |
||
273 | 273 | */ |
274 | 274 | public function get($project, $taskqueue, $optParams = array()) |
275 | 275 | { |
276 | - $params = array('project' => $project, 'taskqueue' => $taskqueue); |
|
277 | - $params = array_merge($params, $optParams); |
|
278 | - return $this->call('get', array($params), "Google_Service_Taskqueue_TaskQueue"); |
|
276 | + $params = array('project' => $project, 'taskqueue' => $taskqueue); |
|
277 | + $params = array_merge($params, $optParams); |
|
278 | + return $this->call('get', array($params), "Google_Service_Taskqueue_TaskQueue"); |
|
279 | 279 | } |
280 | 280 | } |
281 | 281 | |
@@ -300,9 +300,9 @@ discard block |
||
300 | 300 | */ |
301 | 301 | public function delete($project, $taskqueue, $task, $optParams = array()) |
302 | 302 | { |
303 | - $params = array('project' => $project, 'taskqueue' => $taskqueue, 'task' => $task); |
|
304 | - $params = array_merge($params, $optParams); |
|
305 | - return $this->call('delete', array($params)); |
|
303 | + $params = array('project' => $project, 'taskqueue' => $taskqueue, 'task' => $task); |
|
304 | + $params = array_merge($params, $optParams); |
|
305 | + return $this->call('delete', array($params)); |
|
306 | 306 | } |
307 | 307 | |
308 | 308 | /** |
@@ -316,9 +316,9 @@ discard block |
||
316 | 316 | */ |
317 | 317 | public function get($project, $taskqueue, $task, $optParams = array()) |
318 | 318 | { |
319 | - $params = array('project' => $project, 'taskqueue' => $taskqueue, 'task' => $task); |
|
320 | - $params = array_merge($params, $optParams); |
|
321 | - return $this->call('get', array($params), "Google_Service_Taskqueue_Task"); |
|
319 | + $params = array('project' => $project, 'taskqueue' => $taskqueue, 'task' => $task); |
|
320 | + $params = array_merge($params, $optParams); |
|
321 | + return $this->call('get', array($params), "Google_Service_Taskqueue_Task"); |
|
322 | 322 | } |
323 | 323 | |
324 | 324 | /** |
@@ -332,9 +332,9 @@ discard block |
||
332 | 332 | */ |
333 | 333 | public function insert($project, $taskqueue, Google_Service_Taskqueue_Task $postBody, $optParams = array()) |
334 | 334 | { |
335 | - $params = array('project' => $project, 'taskqueue' => $taskqueue, 'postBody' => $postBody); |
|
336 | - $params = array_merge($params, $optParams); |
|
337 | - return $this->call('insert', array($params), "Google_Service_Taskqueue_Task"); |
|
335 | + $params = array('project' => $project, 'taskqueue' => $taskqueue, 'postBody' => $postBody); |
|
336 | + $params = array_merge($params, $optParams); |
|
337 | + return $this->call('insert', array($params), "Google_Service_Taskqueue_Task"); |
|
338 | 338 | } |
339 | 339 | |
340 | 340 | /** |
@@ -356,9 +356,9 @@ discard block |
||
356 | 356 | */ |
357 | 357 | public function lease($project, $taskqueue, $numTasks, $leaseSecs, $optParams = array()) |
358 | 358 | { |
359 | - $params = array('project' => $project, 'taskqueue' => $taskqueue, 'numTasks' => $numTasks, 'leaseSecs' => $leaseSecs); |
|
360 | - $params = array_merge($params, $optParams); |
|
361 | - return $this->call('lease', array($params), "Google_Service_Taskqueue_Tasks"); |
|
359 | + $params = array('project' => $project, 'taskqueue' => $taskqueue, 'numTasks' => $numTasks, 'leaseSecs' => $leaseSecs); |
|
360 | + $params = array_merge($params, $optParams); |
|
361 | + return $this->call('lease', array($params), "Google_Service_Taskqueue_Tasks"); |
|
362 | 362 | } |
363 | 363 | |
364 | 364 | /** |
@@ -371,9 +371,9 @@ discard block |
||
371 | 371 | */ |
372 | 372 | public function listTasks($project, $taskqueue, $optParams = array()) |
373 | 373 | { |
374 | - $params = array('project' => $project, 'taskqueue' => $taskqueue); |
|
375 | - $params = array_merge($params, $optParams); |
|
376 | - return $this->call('list', array($params), "Google_Service_Taskqueue_Tasks2"); |
|
374 | + $params = array('project' => $project, 'taskqueue' => $taskqueue); |
|
375 | + $params = array_merge($params, $optParams); |
|
376 | + return $this->call('list', array($params), "Google_Service_Taskqueue_Tasks2"); |
|
377 | 377 | } |
378 | 378 | |
379 | 379 | /** |
@@ -390,9 +390,9 @@ discard block |
||
390 | 390 | */ |
391 | 391 | public function patch($project, $taskqueue, $task, $newLeaseSeconds, Google_Service_Taskqueue_Task $postBody, $optParams = array()) |
392 | 392 | { |
393 | - $params = array('project' => $project, 'taskqueue' => $taskqueue, 'task' => $task, 'newLeaseSeconds' => $newLeaseSeconds, 'postBody' => $postBody); |
|
394 | - $params = array_merge($params, $optParams); |
|
395 | - return $this->call('patch', array($params), "Google_Service_Taskqueue_Task"); |
|
393 | + $params = array('project' => $project, 'taskqueue' => $taskqueue, 'task' => $task, 'newLeaseSeconds' => $newLeaseSeconds, 'postBody' => $postBody); |
|
394 | + $params = array_merge($params, $optParams); |
|
395 | + return $this->call('patch', array($params), "Google_Service_Taskqueue_Task"); |
|
396 | 396 | } |
397 | 397 | |
398 | 398 | /** |
@@ -408,9 +408,9 @@ discard block |
||
408 | 408 | */ |
409 | 409 | public function update($project, $taskqueue, $task, $newLeaseSeconds, Google_Service_Taskqueue_Task $postBody, $optParams = array()) |
410 | 410 | { |
411 | - $params = array('project' => $project, 'taskqueue' => $taskqueue, 'task' => $task, 'newLeaseSeconds' => $newLeaseSeconds, 'postBody' => $postBody); |
|
412 | - $params = array_merge($params, $optParams); |
|
413 | - return $this->call('update', array($params), "Google_Service_Taskqueue_Task"); |
|
411 | + $params = array('project' => $project, 'taskqueue' => $taskqueue, 'task' => $task, 'newLeaseSeconds' => $newLeaseSeconds, 'postBody' => $postBody); |
|
412 | + $params = array_merge($params, $optParams); |
|
413 | + return $this->call('update', array($params), "Google_Service_Taskqueue_Task"); |
|
414 | 414 | } |
415 | 415 | } |
416 | 416 | |
@@ -420,7 +420,7 @@ discard block |
||
420 | 420 | class Google_Service_Taskqueue_Task extends Google_Model |
421 | 421 | { |
422 | 422 | protected $internal_gapi_mappings = array( |
423 | - "retryCount" => "retry_count", |
|
423 | + "retryCount" => "retry_count", |
|
424 | 424 | ); |
425 | 425 | public $enqueueTimestamp; |
426 | 426 | public $id; |
@@ -434,67 +434,67 @@ discard block |
||
434 | 434 | |
435 | 435 | public function setEnqueueTimestamp($enqueueTimestamp) |
436 | 436 | { |
437 | - $this->enqueueTimestamp = $enqueueTimestamp; |
|
437 | + $this->enqueueTimestamp = $enqueueTimestamp; |
|
438 | 438 | } |
439 | 439 | public function getEnqueueTimestamp() |
440 | 440 | { |
441 | - return $this->enqueueTimestamp; |
|
441 | + return $this->enqueueTimestamp; |
|
442 | 442 | } |
443 | 443 | public function setId($id) |
444 | 444 | { |
445 | - $this->id = $id; |
|
445 | + $this->id = $id; |
|
446 | 446 | } |
447 | 447 | public function getId() |
448 | 448 | { |
449 | - return $this->id; |
|
449 | + return $this->id; |
|
450 | 450 | } |
451 | 451 | public function setKind($kind) |
452 | 452 | { |
453 | - $this->kind = $kind; |
|
453 | + $this->kind = $kind; |
|
454 | 454 | } |
455 | 455 | public function getKind() |
456 | 456 | { |
457 | - return $this->kind; |
|
457 | + return $this->kind; |
|
458 | 458 | } |
459 | 459 | public function setLeaseTimestamp($leaseTimestamp) |
460 | 460 | { |
461 | - $this->leaseTimestamp = $leaseTimestamp; |
|
461 | + $this->leaseTimestamp = $leaseTimestamp; |
|
462 | 462 | } |
463 | 463 | public function getLeaseTimestamp() |
464 | 464 | { |
465 | - return $this->leaseTimestamp; |
|
465 | + return $this->leaseTimestamp; |
|
466 | 466 | } |
467 | 467 | public function setPayloadBase64($payloadBase64) |
468 | 468 | { |
469 | - $this->payloadBase64 = $payloadBase64; |
|
469 | + $this->payloadBase64 = $payloadBase64; |
|
470 | 470 | } |
471 | 471 | public function getPayloadBase64() |
472 | 472 | { |
473 | - return $this->payloadBase64; |
|
473 | + return $this->payloadBase64; |
|
474 | 474 | } |
475 | 475 | public function setQueueName($queueName) |
476 | 476 | { |
477 | - $this->queueName = $queueName; |
|
477 | + $this->queueName = $queueName; |
|
478 | 478 | } |
479 | 479 | public function getQueueName() |
480 | 480 | { |
481 | - return $this->queueName; |
|
481 | + return $this->queueName; |
|
482 | 482 | } |
483 | 483 | public function setRetryCount($retryCount) |
484 | 484 | { |
485 | - $this->retryCount = $retryCount; |
|
485 | + $this->retryCount = $retryCount; |
|
486 | 486 | } |
487 | 487 | public function getRetryCount() |
488 | 488 | { |
489 | - return $this->retryCount; |
|
489 | + return $this->retryCount; |
|
490 | 490 | } |
491 | 491 | public function setTag($tag) |
492 | 492 | { |
493 | - $this->tag = $tag; |
|
493 | + $this->tag = $tag; |
|
494 | 494 | } |
495 | 495 | public function getTag() |
496 | 496 | { |
497 | - return $this->tag; |
|
497 | + return $this->tag; |
|
498 | 498 | } |
499 | 499 | } |
500 | 500 | |
@@ -513,43 +513,43 @@ discard block |
||
513 | 513 | |
514 | 514 | public function setAcl(Google_Service_Taskqueue_TaskQueueAcl $acl) |
515 | 515 | { |
516 | - $this->acl = $acl; |
|
516 | + $this->acl = $acl; |
|
517 | 517 | } |
518 | 518 | public function getAcl() |
519 | 519 | { |
520 | - return $this->acl; |
|
520 | + return $this->acl; |
|
521 | 521 | } |
522 | 522 | public function setId($id) |
523 | 523 | { |
524 | - $this->id = $id; |
|
524 | + $this->id = $id; |
|
525 | 525 | } |
526 | 526 | public function getId() |
527 | 527 | { |
528 | - return $this->id; |
|
528 | + return $this->id; |
|
529 | 529 | } |
530 | 530 | public function setKind($kind) |
531 | 531 | { |
532 | - $this->kind = $kind; |
|
532 | + $this->kind = $kind; |
|
533 | 533 | } |
534 | 534 | public function getKind() |
535 | 535 | { |
536 | - return $this->kind; |
|
536 | + return $this->kind; |
|
537 | 537 | } |
538 | 538 | public function setMaxLeases($maxLeases) |
539 | 539 | { |
540 | - $this->maxLeases = $maxLeases; |
|
540 | + $this->maxLeases = $maxLeases; |
|
541 | 541 | } |
542 | 542 | public function getMaxLeases() |
543 | 543 | { |
544 | - return $this->maxLeases; |
|
544 | + return $this->maxLeases; |
|
545 | 545 | } |
546 | 546 | public function setStats(Google_Service_Taskqueue_TaskQueueStats $stats) |
547 | 547 | { |
548 | - $this->stats = $stats; |
|
548 | + $this->stats = $stats; |
|
549 | 549 | } |
550 | 550 | public function getStats() |
551 | 551 | { |
552 | - return $this->stats; |
|
552 | + return $this->stats; |
|
553 | 553 | } |
554 | 554 | } |
555 | 555 | |
@@ -565,27 +565,27 @@ discard block |
||
565 | 565 | |
566 | 566 | public function setAdminEmails($adminEmails) |
567 | 567 | { |
568 | - $this->adminEmails = $adminEmails; |
|
568 | + $this->adminEmails = $adminEmails; |
|
569 | 569 | } |
570 | 570 | public function getAdminEmails() |
571 | 571 | { |
572 | - return $this->adminEmails; |
|
572 | + return $this->adminEmails; |
|
573 | 573 | } |
574 | 574 | public function setConsumerEmails($consumerEmails) |
575 | 575 | { |
576 | - $this->consumerEmails = $consumerEmails; |
|
576 | + $this->consumerEmails = $consumerEmails; |
|
577 | 577 | } |
578 | 578 | public function getConsumerEmails() |
579 | 579 | { |
580 | - return $this->consumerEmails; |
|
580 | + return $this->consumerEmails; |
|
581 | 581 | } |
582 | 582 | public function setProducerEmails($producerEmails) |
583 | 583 | { |
584 | - $this->producerEmails = $producerEmails; |
|
584 | + $this->producerEmails = $producerEmails; |
|
585 | 585 | } |
586 | 586 | public function getProducerEmails() |
587 | 587 | { |
588 | - return $this->producerEmails; |
|
588 | + return $this->producerEmails; |
|
589 | 589 | } |
590 | 590 | } |
591 | 591 | |
@@ -601,35 +601,35 @@ discard block |
||
601 | 601 | |
602 | 602 | public function setLeasedLastHour($leasedLastHour) |
603 | 603 | { |
604 | - $this->leasedLastHour = $leasedLastHour; |
|
604 | + $this->leasedLastHour = $leasedLastHour; |
|
605 | 605 | } |
606 | 606 | public function getLeasedLastHour() |
607 | 607 | { |
608 | - return $this->leasedLastHour; |
|
608 | + return $this->leasedLastHour; |
|
609 | 609 | } |
610 | 610 | public function setLeasedLastMinute($leasedLastMinute) |
611 | 611 | { |
612 | - $this->leasedLastMinute = $leasedLastMinute; |
|
612 | + $this->leasedLastMinute = $leasedLastMinute; |
|
613 | 613 | } |
614 | 614 | public function getLeasedLastMinute() |
615 | 615 | { |
616 | - return $this->leasedLastMinute; |
|
616 | + return $this->leasedLastMinute; |
|
617 | 617 | } |
618 | 618 | public function setOldestTask($oldestTask) |
619 | 619 | { |
620 | - $this->oldestTask = $oldestTask; |
|
620 | + $this->oldestTask = $oldestTask; |
|
621 | 621 | } |
622 | 622 | public function getOldestTask() |
623 | 623 | { |
624 | - return $this->oldestTask; |
|
624 | + return $this->oldestTask; |
|
625 | 625 | } |
626 | 626 | public function setTotalTasks($totalTasks) |
627 | 627 | { |
628 | - $this->totalTasks = $totalTasks; |
|
628 | + $this->totalTasks = $totalTasks; |
|
629 | 629 | } |
630 | 630 | public function getTotalTasks() |
631 | 631 | { |
632 | - return $this->totalTasks; |
|
632 | + return $this->totalTasks; |
|
633 | 633 | } |
634 | 634 | } |
635 | 635 | |
@@ -645,19 +645,19 @@ discard block |
||
645 | 645 | |
646 | 646 | public function setItems($items) |
647 | 647 | { |
648 | - $this->items = $items; |
|
648 | + $this->items = $items; |
|
649 | 649 | } |
650 | 650 | public function getItems() |
651 | 651 | { |
652 | - return $this->items; |
|
652 | + return $this->items; |
|
653 | 653 | } |
654 | 654 | public function setKind($kind) |
655 | 655 | { |
656 | - $this->kind = $kind; |
|
656 | + $this->kind = $kind; |
|
657 | 657 | } |
658 | 658 | public function getKind() |
659 | 659 | { |
660 | - return $this->kind; |
|
660 | + return $this->kind; |
|
661 | 661 | } |
662 | 662 | } |
663 | 663 | |
@@ -673,18 +673,18 @@ discard block |
||
673 | 673 | |
674 | 674 | public function setItems($items) |
675 | 675 | { |
676 | - $this->items = $items; |
|
676 | + $this->items = $items; |
|
677 | 677 | } |
678 | 678 | public function getItems() |
679 | 679 | { |
680 | - return $this->items; |
|
680 | + return $this->items; |
|
681 | 681 | } |
682 | 682 | public function setKind($kind) |
683 | 683 | { |
684 | - $this->kind = $kind; |
|
684 | + $this->kind = $kind; |
|
685 | 685 | } |
686 | 686 | public function getKind() |
687 | 687 | { |
688 | - return $this->kind; |
|
688 | + return $this->kind; |
|
689 | 689 | } |
690 | 690 | } |
@@ -109,7 +109,7 @@ discard block |
||
109 | 109 | 'required' => true, |
110 | 110 | ), |
111 | 111 | ), |
112 | - ),'get' => array( |
|
112 | + ), 'get' => array( |
|
113 | 113 | 'path' => '{project}/taskqueues/{taskqueue}/tasks/{task}', |
114 | 114 | 'httpMethod' => 'GET', |
115 | 115 | 'parameters' => array( |
@@ -129,7 +129,7 @@ discard block |
||
129 | 129 | 'required' => true, |
130 | 130 | ), |
131 | 131 | ), |
132 | - ),'insert' => array( |
|
132 | + ), 'insert' => array( |
|
133 | 133 | 'path' => '{project}/taskqueues/{taskqueue}/tasks', |
134 | 134 | 'httpMethod' => 'POST', |
135 | 135 | 'parameters' => array( |
@@ -144,7 +144,7 @@ discard block |
||
144 | 144 | 'required' => true, |
145 | 145 | ), |
146 | 146 | ), |
147 | - ),'lease' => array( |
|
147 | + ), 'lease' => array( |
|
148 | 148 | 'path' => '{project}/taskqueues/{taskqueue}/tasks/lease', |
149 | 149 | 'httpMethod' => 'POST', |
150 | 150 | 'parameters' => array( |
@@ -177,7 +177,7 @@ discard block |
||
177 | 177 | 'type' => 'string', |
178 | 178 | ), |
179 | 179 | ), |
180 | - ),'list' => array( |
|
180 | + ), 'list' => array( |
|
181 | 181 | 'path' => '{project}/taskqueues/{taskqueue}/tasks', |
182 | 182 | 'httpMethod' => 'GET', |
183 | 183 | 'parameters' => array( |
@@ -192,7 +192,7 @@ discard block |
||
192 | 192 | 'required' => true, |
193 | 193 | ), |
194 | 194 | ), |
195 | - ),'patch' => array( |
|
195 | + ), 'patch' => array( |
|
196 | 196 | 'path' => '{project}/taskqueues/{taskqueue}/tasks/{task}', |
197 | 197 | 'httpMethod' => 'PATCH', |
198 | 198 | 'parameters' => array( |
@@ -217,7 +217,7 @@ discard block |
||
217 | 217 | 'required' => true, |
218 | 218 | ), |
219 | 219 | ), |
220 | - ),'update' => array( |
|
220 | + ), 'update' => array( |
|
221 | 221 | 'path' => '{project}/taskqueues/{taskqueue}/tasks/{task}', |
222 | 222 | 'httpMethod' => 'POST', |
223 | 223 | 'parameters' => array( |
@@ -338,7 +338,7 @@ discard block |
||
338 | 338 | * Creates a new task list and adds it to the authenticated user's task lists. |
339 | 339 | * (tasklists.insert) |
340 | 340 | * |
341 | - * @param Google_TaskList $postBody |
|
341 | + * @param Google_Service_Tasks_TaskList $postBody |
|
342 | 342 | * @param array $optParams Optional parameters. |
343 | 343 | * @return Google_Service_Tasks_TaskList |
344 | 344 | */ |
@@ -372,7 +372,7 @@ discard block |
||
372 | 372 | * patch semantics. (tasklists.patch) |
373 | 373 | * |
374 | 374 | * @param string $tasklist Task list identifier. |
375 | - * @param Google_TaskList $postBody |
|
375 | + * @param Google_Service_Tasks_TaskList $postBody |
|
376 | 376 | * @param array $optParams Optional parameters. |
377 | 377 | * @return Google_Service_Tasks_TaskList |
378 | 378 | */ |
@@ -387,7 +387,7 @@ discard block |
||
387 | 387 | * Updates the authenticated user's specified task list. (tasklists.update) |
388 | 388 | * |
389 | 389 | * @param string $tasklist Task list identifier. |
390 | - * @param Google_TaskList $postBody |
|
390 | + * @param Google_Service_Tasks_TaskList $postBody |
|
391 | 391 | * @param array $optParams Optional parameters. |
392 | 392 | * @return Google_Service_Tasks_TaskList |
393 | 393 | */ |
@@ -458,7 +458,7 @@ discard block |
||
458 | 458 | * Creates a new task on the specified task list. (tasks.insert) |
459 | 459 | * |
460 | 460 | * @param string $tasklist Task list identifier. |
461 | - * @param Google_Task $postBody |
|
461 | + * @param Google_Service_Tasks_Task $postBody |
|
462 | 462 | * @param array $optParams Optional parameters. |
463 | 463 | * |
464 | 464 | * @opt_param string parent Parent task identifier. If the task is created at |
@@ -542,7 +542,7 @@ discard block |
||
542 | 542 | * |
543 | 543 | * @param string $tasklist Task list identifier. |
544 | 544 | * @param string $task Task identifier. |
545 | - * @param Google_Task $postBody |
|
545 | + * @param Google_Service_Tasks_Task $postBody |
|
546 | 546 | * @param array $optParams Optional parameters. |
547 | 547 | * @return Google_Service_Tasks_Task |
548 | 548 | */ |
@@ -558,7 +558,7 @@ discard block |
||
558 | 558 | * |
559 | 559 | * @param string $tasklist Task list identifier. |
560 | 560 | * @param string $task Task identifier. |
561 | - * @param Google_Task $postBody |
|
561 | + * @param Google_Service_Tasks_Task $postBody |
|
562 | 562 | * @param array $optParams Optional parameters. |
563 | 563 | * @return Google_Service_Tasks_Task |
564 | 564 | */ |
@@ -32,10 +32,10 @@ discard block |
||
32 | 32 | { |
33 | 33 | /** Manage your tasks. */ |
34 | 34 | const TASKS = |
35 | - "https://www.googleapis.com/auth/tasks"; |
|
35 | + "https://www.googleapis.com/auth/tasks"; |
|
36 | 36 | /** View your tasks. */ |
37 | 37 | const TASKS_READONLY = |
38 | - "https://www.googleapis.com/auth/tasks.readonly"; |
|
38 | + "https://www.googleapis.com/auth/tasks.readonly"; |
|
39 | 39 | |
40 | 40 | public $tasklists; |
41 | 41 | public $tasks; |
@@ -48,250 +48,250 @@ discard block |
||
48 | 48 | */ |
49 | 49 | public function __construct(Google_Client $client) |
50 | 50 | { |
51 | - parent::__construct($client); |
|
52 | - $this->rootUrl = 'https://www.googleapis.com/'; |
|
53 | - $this->servicePath = 'tasks/v1/'; |
|
54 | - $this->version = 'v1'; |
|
55 | - $this->serviceName = 'tasks'; |
|
56 | - |
|
57 | - $this->tasklists = new Google_Service_Tasks_Tasklists_Resource( |
|
58 | - $this, |
|
59 | - $this->serviceName, |
|
60 | - 'tasklists', |
|
61 | - array( |
|
62 | - 'methods' => array( |
|
63 | - 'delete' => array( |
|
64 | - 'path' => 'users/@me/lists/{tasklist}', |
|
65 | - 'httpMethod' => 'DELETE', |
|
66 | - 'parameters' => array( |
|
67 | - 'tasklist' => array( |
|
68 | - 'location' => 'path', |
|
69 | - 'type' => 'string', |
|
70 | - 'required' => true, |
|
71 | - ), |
|
72 | - ), |
|
73 | - ),'get' => array( |
|
74 | - 'path' => 'users/@me/lists/{tasklist}', |
|
75 | - 'httpMethod' => 'GET', |
|
76 | - 'parameters' => array( |
|
77 | - 'tasklist' => array( |
|
78 | - 'location' => 'path', |
|
79 | - 'type' => 'string', |
|
80 | - 'required' => true, |
|
81 | - ), |
|
82 | - ), |
|
83 | - ),'insert' => array( |
|
84 | - 'path' => 'users/@me/lists', |
|
85 | - 'httpMethod' => 'POST', |
|
86 | - 'parameters' => array(), |
|
87 | - ),'list' => array( |
|
88 | - 'path' => 'users/@me/lists', |
|
89 | - 'httpMethod' => 'GET', |
|
90 | - 'parameters' => array( |
|
91 | - 'pageToken' => array( |
|
92 | - 'location' => 'query', |
|
93 | - 'type' => 'string', |
|
94 | - ), |
|
95 | - 'maxResults' => array( |
|
96 | - 'location' => 'query', |
|
97 | - 'type' => 'string', |
|
98 | - ), |
|
99 | - ), |
|
100 | - ),'patch' => array( |
|
101 | - 'path' => 'users/@me/lists/{tasklist}', |
|
102 | - 'httpMethod' => 'PATCH', |
|
103 | - 'parameters' => array( |
|
104 | - 'tasklist' => array( |
|
105 | - 'location' => 'path', |
|
106 | - 'type' => 'string', |
|
107 | - 'required' => true, |
|
108 | - ), |
|
109 | - ), |
|
110 | - ),'update' => array( |
|
111 | - 'path' => 'users/@me/lists/{tasklist}', |
|
112 | - 'httpMethod' => 'PUT', |
|
113 | - 'parameters' => array( |
|
114 | - 'tasklist' => array( |
|
115 | - 'location' => 'path', |
|
116 | - 'type' => 'string', |
|
117 | - 'required' => true, |
|
118 | - ), |
|
119 | - ), |
|
120 | - ), |
|
121 | - ) |
|
122 | - ) |
|
123 | - ); |
|
124 | - $this->tasks = new Google_Service_Tasks_Tasks_Resource( |
|
125 | - $this, |
|
126 | - $this->serviceName, |
|
127 | - 'tasks', |
|
128 | - array( |
|
129 | - 'methods' => array( |
|
130 | - 'clear' => array( |
|
131 | - 'path' => 'lists/{tasklist}/clear', |
|
132 | - 'httpMethod' => 'POST', |
|
133 | - 'parameters' => array( |
|
134 | - 'tasklist' => array( |
|
135 | - 'location' => 'path', |
|
136 | - 'type' => 'string', |
|
137 | - 'required' => true, |
|
138 | - ), |
|
139 | - ), |
|
140 | - ),'delete' => array( |
|
141 | - 'path' => 'lists/{tasklist}/tasks/{task}', |
|
142 | - 'httpMethod' => 'DELETE', |
|
143 | - 'parameters' => array( |
|
144 | - 'tasklist' => array( |
|
145 | - 'location' => 'path', |
|
146 | - 'type' => 'string', |
|
147 | - 'required' => true, |
|
148 | - ), |
|
149 | - 'task' => array( |
|
150 | - 'location' => 'path', |
|
151 | - 'type' => 'string', |
|
152 | - 'required' => true, |
|
153 | - ), |
|
154 | - ), |
|
155 | - ),'get' => array( |
|
156 | - 'path' => 'lists/{tasklist}/tasks/{task}', |
|
157 | - 'httpMethod' => 'GET', |
|
158 | - 'parameters' => array( |
|
159 | - 'tasklist' => array( |
|
160 | - 'location' => 'path', |
|
161 | - 'type' => 'string', |
|
162 | - 'required' => true, |
|
163 | - ), |
|
164 | - 'task' => array( |
|
165 | - 'location' => 'path', |
|
166 | - 'type' => 'string', |
|
167 | - 'required' => true, |
|
168 | - ), |
|
169 | - ), |
|
170 | - ),'insert' => array( |
|
171 | - 'path' => 'lists/{tasklist}/tasks', |
|
172 | - 'httpMethod' => 'POST', |
|
173 | - 'parameters' => array( |
|
174 | - 'tasklist' => array( |
|
175 | - 'location' => 'path', |
|
176 | - 'type' => 'string', |
|
177 | - 'required' => true, |
|
178 | - ), |
|
179 | - 'parent' => array( |
|
180 | - 'location' => 'query', |
|
181 | - 'type' => 'string', |
|
182 | - ), |
|
183 | - 'previous' => array( |
|
184 | - 'location' => 'query', |
|
185 | - 'type' => 'string', |
|
186 | - ), |
|
187 | - ), |
|
188 | - ),'list' => array( |
|
189 | - 'path' => 'lists/{tasklist}/tasks', |
|
190 | - 'httpMethod' => 'GET', |
|
191 | - 'parameters' => array( |
|
192 | - 'tasklist' => array( |
|
193 | - 'location' => 'path', |
|
194 | - 'type' => 'string', |
|
195 | - 'required' => true, |
|
196 | - ), |
|
197 | - 'dueMax' => array( |
|
198 | - 'location' => 'query', |
|
199 | - 'type' => 'string', |
|
200 | - ), |
|
201 | - 'showDeleted' => array( |
|
202 | - 'location' => 'query', |
|
203 | - 'type' => 'boolean', |
|
204 | - ), |
|
205 | - 'updatedMin' => array( |
|
206 | - 'location' => 'query', |
|
207 | - 'type' => 'string', |
|
208 | - ), |
|
209 | - 'completedMin' => array( |
|
210 | - 'location' => 'query', |
|
211 | - 'type' => 'string', |
|
212 | - ), |
|
213 | - 'maxResults' => array( |
|
214 | - 'location' => 'query', |
|
215 | - 'type' => 'string', |
|
216 | - ), |
|
217 | - 'showCompleted' => array( |
|
218 | - 'location' => 'query', |
|
219 | - 'type' => 'boolean', |
|
220 | - ), |
|
221 | - 'pageToken' => array( |
|
222 | - 'location' => 'query', |
|
223 | - 'type' => 'string', |
|
224 | - ), |
|
225 | - 'completedMax' => array( |
|
226 | - 'location' => 'query', |
|
227 | - 'type' => 'string', |
|
228 | - ), |
|
229 | - 'showHidden' => array( |
|
230 | - 'location' => 'query', |
|
231 | - 'type' => 'boolean', |
|
232 | - ), |
|
233 | - 'dueMin' => array( |
|
234 | - 'location' => 'query', |
|
235 | - 'type' => 'string', |
|
236 | - ), |
|
237 | - ), |
|
238 | - ),'move' => array( |
|
239 | - 'path' => 'lists/{tasklist}/tasks/{task}/move', |
|
240 | - 'httpMethod' => 'POST', |
|
241 | - 'parameters' => array( |
|
242 | - 'tasklist' => array( |
|
243 | - 'location' => 'path', |
|
244 | - 'type' => 'string', |
|
245 | - 'required' => true, |
|
246 | - ), |
|
247 | - 'task' => array( |
|
248 | - 'location' => 'path', |
|
249 | - 'type' => 'string', |
|
250 | - 'required' => true, |
|
251 | - ), |
|
252 | - 'parent' => array( |
|
253 | - 'location' => 'query', |
|
254 | - 'type' => 'string', |
|
255 | - ), |
|
256 | - 'previous' => array( |
|
257 | - 'location' => 'query', |
|
258 | - 'type' => 'string', |
|
259 | - ), |
|
260 | - ), |
|
261 | - ),'patch' => array( |
|
262 | - 'path' => 'lists/{tasklist}/tasks/{task}', |
|
263 | - 'httpMethod' => 'PATCH', |
|
264 | - 'parameters' => array( |
|
265 | - 'tasklist' => array( |
|
266 | - 'location' => 'path', |
|
267 | - 'type' => 'string', |
|
268 | - 'required' => true, |
|
269 | - ), |
|
270 | - 'task' => array( |
|
271 | - 'location' => 'path', |
|
272 | - 'type' => 'string', |
|
273 | - 'required' => true, |
|
274 | - ), |
|
275 | - ), |
|
276 | - ),'update' => array( |
|
277 | - 'path' => 'lists/{tasklist}/tasks/{task}', |
|
278 | - 'httpMethod' => 'PUT', |
|
279 | - 'parameters' => array( |
|
280 | - 'tasklist' => array( |
|
281 | - 'location' => 'path', |
|
282 | - 'type' => 'string', |
|
283 | - 'required' => true, |
|
284 | - ), |
|
285 | - 'task' => array( |
|
286 | - 'location' => 'path', |
|
287 | - 'type' => 'string', |
|
288 | - 'required' => true, |
|
289 | - ), |
|
290 | - ), |
|
291 | - ), |
|
292 | - ) |
|
293 | - ) |
|
294 | - ); |
|
51 | + parent::__construct($client); |
|
52 | + $this->rootUrl = 'https://www.googleapis.com/'; |
|
53 | + $this->servicePath = 'tasks/v1/'; |
|
54 | + $this->version = 'v1'; |
|
55 | + $this->serviceName = 'tasks'; |
|
56 | + |
|
57 | + $this->tasklists = new Google_Service_Tasks_Tasklists_Resource( |
|
58 | + $this, |
|
59 | + $this->serviceName, |
|
60 | + 'tasklists', |
|
61 | + array( |
|
62 | + 'methods' => array( |
|
63 | + 'delete' => array( |
|
64 | + 'path' => 'users/@me/lists/{tasklist}', |
|
65 | + 'httpMethod' => 'DELETE', |
|
66 | + 'parameters' => array( |
|
67 | + 'tasklist' => array( |
|
68 | + 'location' => 'path', |
|
69 | + 'type' => 'string', |
|
70 | + 'required' => true, |
|
71 | + ), |
|
72 | + ), |
|
73 | + ),'get' => array( |
|
74 | + 'path' => 'users/@me/lists/{tasklist}', |
|
75 | + 'httpMethod' => 'GET', |
|
76 | + 'parameters' => array( |
|
77 | + 'tasklist' => array( |
|
78 | + 'location' => 'path', |
|
79 | + 'type' => 'string', |
|
80 | + 'required' => true, |
|
81 | + ), |
|
82 | + ), |
|
83 | + ),'insert' => array( |
|
84 | + 'path' => 'users/@me/lists', |
|
85 | + 'httpMethod' => 'POST', |
|
86 | + 'parameters' => array(), |
|
87 | + ),'list' => array( |
|
88 | + 'path' => 'users/@me/lists', |
|
89 | + 'httpMethod' => 'GET', |
|
90 | + 'parameters' => array( |
|
91 | + 'pageToken' => array( |
|
92 | + 'location' => 'query', |
|
93 | + 'type' => 'string', |
|
94 | + ), |
|
95 | + 'maxResults' => array( |
|
96 | + 'location' => 'query', |
|
97 | + 'type' => 'string', |
|
98 | + ), |
|
99 | + ), |
|
100 | + ),'patch' => array( |
|
101 | + 'path' => 'users/@me/lists/{tasklist}', |
|
102 | + 'httpMethod' => 'PATCH', |
|
103 | + 'parameters' => array( |
|
104 | + 'tasklist' => array( |
|
105 | + 'location' => 'path', |
|
106 | + 'type' => 'string', |
|
107 | + 'required' => true, |
|
108 | + ), |
|
109 | + ), |
|
110 | + ),'update' => array( |
|
111 | + 'path' => 'users/@me/lists/{tasklist}', |
|
112 | + 'httpMethod' => 'PUT', |
|
113 | + 'parameters' => array( |
|
114 | + 'tasklist' => array( |
|
115 | + 'location' => 'path', |
|
116 | + 'type' => 'string', |
|
117 | + 'required' => true, |
|
118 | + ), |
|
119 | + ), |
|
120 | + ), |
|
121 | + ) |
|
122 | + ) |
|
123 | + ); |
|
124 | + $this->tasks = new Google_Service_Tasks_Tasks_Resource( |
|
125 | + $this, |
|
126 | + $this->serviceName, |
|
127 | + 'tasks', |
|
128 | + array( |
|
129 | + 'methods' => array( |
|
130 | + 'clear' => array( |
|
131 | + 'path' => 'lists/{tasklist}/clear', |
|
132 | + 'httpMethod' => 'POST', |
|
133 | + 'parameters' => array( |
|
134 | + 'tasklist' => array( |
|
135 | + 'location' => 'path', |
|
136 | + 'type' => 'string', |
|
137 | + 'required' => true, |
|
138 | + ), |
|
139 | + ), |
|
140 | + ),'delete' => array( |
|
141 | + 'path' => 'lists/{tasklist}/tasks/{task}', |
|
142 | + 'httpMethod' => 'DELETE', |
|
143 | + 'parameters' => array( |
|
144 | + 'tasklist' => array( |
|
145 | + 'location' => 'path', |
|
146 | + 'type' => 'string', |
|
147 | + 'required' => true, |
|
148 | + ), |
|
149 | + 'task' => array( |
|
150 | + 'location' => 'path', |
|
151 | + 'type' => 'string', |
|
152 | + 'required' => true, |
|
153 | + ), |
|
154 | + ), |
|
155 | + ),'get' => array( |
|
156 | + 'path' => 'lists/{tasklist}/tasks/{task}', |
|
157 | + 'httpMethod' => 'GET', |
|
158 | + 'parameters' => array( |
|
159 | + 'tasklist' => array( |
|
160 | + 'location' => 'path', |
|
161 | + 'type' => 'string', |
|
162 | + 'required' => true, |
|
163 | + ), |
|
164 | + 'task' => array( |
|
165 | + 'location' => 'path', |
|
166 | + 'type' => 'string', |
|
167 | + 'required' => true, |
|
168 | + ), |
|
169 | + ), |
|
170 | + ),'insert' => array( |
|
171 | + 'path' => 'lists/{tasklist}/tasks', |
|
172 | + 'httpMethod' => 'POST', |
|
173 | + 'parameters' => array( |
|
174 | + 'tasklist' => array( |
|
175 | + 'location' => 'path', |
|
176 | + 'type' => 'string', |
|
177 | + 'required' => true, |
|
178 | + ), |
|
179 | + 'parent' => array( |
|
180 | + 'location' => 'query', |
|
181 | + 'type' => 'string', |
|
182 | + ), |
|
183 | + 'previous' => array( |
|
184 | + 'location' => 'query', |
|
185 | + 'type' => 'string', |
|
186 | + ), |
|
187 | + ), |
|
188 | + ),'list' => array( |
|
189 | + 'path' => 'lists/{tasklist}/tasks', |
|
190 | + 'httpMethod' => 'GET', |
|
191 | + 'parameters' => array( |
|
192 | + 'tasklist' => array( |
|
193 | + 'location' => 'path', |
|
194 | + 'type' => 'string', |
|
195 | + 'required' => true, |
|
196 | + ), |
|
197 | + 'dueMax' => array( |
|
198 | + 'location' => 'query', |
|
199 | + 'type' => 'string', |
|
200 | + ), |
|
201 | + 'showDeleted' => array( |
|
202 | + 'location' => 'query', |
|
203 | + 'type' => 'boolean', |
|
204 | + ), |
|
205 | + 'updatedMin' => array( |
|
206 | + 'location' => 'query', |
|
207 | + 'type' => 'string', |
|
208 | + ), |
|
209 | + 'completedMin' => array( |
|
210 | + 'location' => 'query', |
|
211 | + 'type' => 'string', |
|
212 | + ), |
|
213 | + 'maxResults' => array( |
|
214 | + 'location' => 'query', |
|
215 | + 'type' => 'string', |
|
216 | + ), |
|
217 | + 'showCompleted' => array( |
|
218 | + 'location' => 'query', |
|
219 | + 'type' => 'boolean', |
|
220 | + ), |
|
221 | + 'pageToken' => array( |
|
222 | + 'location' => 'query', |
|
223 | + 'type' => 'string', |
|
224 | + ), |
|
225 | + 'completedMax' => array( |
|
226 | + 'location' => 'query', |
|
227 | + 'type' => 'string', |
|
228 | + ), |
|
229 | + 'showHidden' => array( |
|
230 | + 'location' => 'query', |
|
231 | + 'type' => 'boolean', |
|
232 | + ), |
|
233 | + 'dueMin' => array( |
|
234 | + 'location' => 'query', |
|
235 | + 'type' => 'string', |
|
236 | + ), |
|
237 | + ), |
|
238 | + ),'move' => array( |
|
239 | + 'path' => 'lists/{tasklist}/tasks/{task}/move', |
|
240 | + 'httpMethod' => 'POST', |
|
241 | + 'parameters' => array( |
|
242 | + 'tasklist' => array( |
|
243 | + 'location' => 'path', |
|
244 | + 'type' => 'string', |
|
245 | + 'required' => true, |
|
246 | + ), |
|
247 | + 'task' => array( |
|
248 | + 'location' => 'path', |
|
249 | + 'type' => 'string', |
|
250 | + 'required' => true, |
|
251 | + ), |
|
252 | + 'parent' => array( |
|
253 | + 'location' => 'query', |
|
254 | + 'type' => 'string', |
|
255 | + ), |
|
256 | + 'previous' => array( |
|
257 | + 'location' => 'query', |
|
258 | + 'type' => 'string', |
|
259 | + ), |
|
260 | + ), |
|
261 | + ),'patch' => array( |
|
262 | + 'path' => 'lists/{tasklist}/tasks/{task}', |
|
263 | + 'httpMethod' => 'PATCH', |
|
264 | + 'parameters' => array( |
|
265 | + 'tasklist' => array( |
|
266 | + 'location' => 'path', |
|
267 | + 'type' => 'string', |
|
268 | + 'required' => true, |
|
269 | + ), |
|
270 | + 'task' => array( |
|
271 | + 'location' => 'path', |
|
272 | + 'type' => 'string', |
|
273 | + 'required' => true, |
|
274 | + ), |
|
275 | + ), |
|
276 | + ),'update' => array( |
|
277 | + 'path' => 'lists/{tasklist}/tasks/{task}', |
|
278 | + 'httpMethod' => 'PUT', |
|
279 | + 'parameters' => array( |
|
280 | + 'tasklist' => array( |
|
281 | + 'location' => 'path', |
|
282 | + 'type' => 'string', |
|
283 | + 'required' => true, |
|
284 | + ), |
|
285 | + 'task' => array( |
|
286 | + 'location' => 'path', |
|
287 | + 'type' => 'string', |
|
288 | + 'required' => true, |
|
289 | + ), |
|
290 | + ), |
|
291 | + ), |
|
292 | + ) |
|
293 | + ) |
|
294 | + ); |
|
295 | 295 | } |
296 | 296 | } |
297 | 297 | |
@@ -315,9 +315,9 @@ discard block |
||
315 | 315 | */ |
316 | 316 | public function delete($tasklist, $optParams = array()) |
317 | 317 | { |
318 | - $params = array('tasklist' => $tasklist); |
|
319 | - $params = array_merge($params, $optParams); |
|
320 | - return $this->call('delete', array($params)); |
|
318 | + $params = array('tasklist' => $tasklist); |
|
319 | + $params = array_merge($params, $optParams); |
|
320 | + return $this->call('delete', array($params)); |
|
321 | 321 | } |
322 | 322 | |
323 | 323 | /** |
@@ -329,9 +329,9 @@ discard block |
||
329 | 329 | */ |
330 | 330 | public function get($tasklist, $optParams = array()) |
331 | 331 | { |
332 | - $params = array('tasklist' => $tasklist); |
|
333 | - $params = array_merge($params, $optParams); |
|
334 | - return $this->call('get', array($params), "Google_Service_Tasks_TaskList"); |
|
332 | + $params = array('tasklist' => $tasklist); |
|
333 | + $params = array_merge($params, $optParams); |
|
334 | + return $this->call('get', array($params), "Google_Service_Tasks_TaskList"); |
|
335 | 335 | } |
336 | 336 | |
337 | 337 | /** |
@@ -344,9 +344,9 @@ discard block |
||
344 | 344 | */ |
345 | 345 | public function insert(Google_Service_Tasks_TaskList $postBody, $optParams = array()) |
346 | 346 | { |
347 | - $params = array('postBody' => $postBody); |
|
348 | - $params = array_merge($params, $optParams); |
|
349 | - return $this->call('insert', array($params), "Google_Service_Tasks_TaskList"); |
|
347 | + $params = array('postBody' => $postBody); |
|
348 | + $params = array_merge($params, $optParams); |
|
349 | + return $this->call('insert', array($params), "Google_Service_Tasks_TaskList"); |
|
350 | 350 | } |
351 | 351 | |
352 | 352 | /** |
@@ -362,9 +362,9 @@ discard block |
||
362 | 362 | */ |
363 | 363 | public function listTasklists($optParams = array()) |
364 | 364 | { |
365 | - $params = array(); |
|
366 | - $params = array_merge($params, $optParams); |
|
367 | - return $this->call('list', array($params), "Google_Service_Tasks_TaskLists"); |
|
365 | + $params = array(); |
|
366 | + $params = array_merge($params, $optParams); |
|
367 | + return $this->call('list', array($params), "Google_Service_Tasks_TaskLists"); |
|
368 | 368 | } |
369 | 369 | |
370 | 370 | /** |
@@ -378,9 +378,9 @@ discard block |
||
378 | 378 | */ |
379 | 379 | public function patch($tasklist, Google_Service_Tasks_TaskList $postBody, $optParams = array()) |
380 | 380 | { |
381 | - $params = array('tasklist' => $tasklist, 'postBody' => $postBody); |
|
382 | - $params = array_merge($params, $optParams); |
|
383 | - return $this->call('patch', array($params), "Google_Service_Tasks_TaskList"); |
|
381 | + $params = array('tasklist' => $tasklist, 'postBody' => $postBody); |
|
382 | + $params = array_merge($params, $optParams); |
|
383 | + return $this->call('patch', array($params), "Google_Service_Tasks_TaskList"); |
|
384 | 384 | } |
385 | 385 | |
386 | 386 | /** |
@@ -393,9 +393,9 @@ discard block |
||
393 | 393 | */ |
394 | 394 | public function update($tasklist, Google_Service_Tasks_TaskList $postBody, $optParams = array()) |
395 | 395 | { |
396 | - $params = array('tasklist' => $tasklist, 'postBody' => $postBody); |
|
397 | - $params = array_merge($params, $optParams); |
|
398 | - return $this->call('update', array($params), "Google_Service_Tasks_TaskList"); |
|
396 | + $params = array('tasklist' => $tasklist, 'postBody' => $postBody); |
|
397 | + $params = array_merge($params, $optParams); |
|
398 | + return $this->call('update', array($params), "Google_Service_Tasks_TaskList"); |
|
399 | 399 | } |
400 | 400 | } |
401 | 401 | |
@@ -420,9 +420,9 @@ discard block |
||
420 | 420 | */ |
421 | 421 | public function clear($tasklist, $optParams = array()) |
422 | 422 | { |
423 | - $params = array('tasklist' => $tasklist); |
|
424 | - $params = array_merge($params, $optParams); |
|
425 | - return $this->call('clear', array($params)); |
|
423 | + $params = array('tasklist' => $tasklist); |
|
424 | + $params = array_merge($params, $optParams); |
|
425 | + return $this->call('clear', array($params)); |
|
426 | 426 | } |
427 | 427 | |
428 | 428 | /** |
@@ -434,9 +434,9 @@ discard block |
||
434 | 434 | */ |
435 | 435 | public function delete($tasklist, $task, $optParams = array()) |
436 | 436 | { |
437 | - $params = array('tasklist' => $tasklist, 'task' => $task); |
|
438 | - $params = array_merge($params, $optParams); |
|
439 | - return $this->call('delete', array($params)); |
|
437 | + $params = array('tasklist' => $tasklist, 'task' => $task); |
|
438 | + $params = array_merge($params, $optParams); |
|
439 | + return $this->call('delete', array($params)); |
|
440 | 440 | } |
441 | 441 | |
442 | 442 | /** |
@@ -449,9 +449,9 @@ discard block |
||
449 | 449 | */ |
450 | 450 | public function get($tasklist, $task, $optParams = array()) |
451 | 451 | { |
452 | - $params = array('tasklist' => $tasklist, 'task' => $task); |
|
453 | - $params = array_merge($params, $optParams); |
|
454 | - return $this->call('get', array($params), "Google_Service_Tasks_Task"); |
|
452 | + $params = array('tasklist' => $tasklist, 'task' => $task); |
|
453 | + $params = array_merge($params, $optParams); |
|
454 | + return $this->call('get', array($params), "Google_Service_Tasks_Task"); |
|
455 | 455 | } |
456 | 456 | |
457 | 457 | /** |
@@ -470,9 +470,9 @@ discard block |
||
470 | 470 | */ |
471 | 471 | public function insert($tasklist, Google_Service_Tasks_Task $postBody, $optParams = array()) |
472 | 472 | { |
473 | - $params = array('tasklist' => $tasklist, 'postBody' => $postBody); |
|
474 | - $params = array_merge($params, $optParams); |
|
475 | - return $this->call('insert', array($params), "Google_Service_Tasks_Task"); |
|
473 | + $params = array('tasklist' => $tasklist, 'postBody' => $postBody); |
|
474 | + $params = array_merge($params, $optParams); |
|
475 | + return $this->call('insert', array($params), "Google_Service_Tasks_Task"); |
|
476 | 476 | } |
477 | 477 | |
478 | 478 | /** |
@@ -508,9 +508,9 @@ discard block |
||
508 | 508 | */ |
509 | 509 | public function listTasks($tasklist, $optParams = array()) |
510 | 510 | { |
511 | - $params = array('tasklist' => $tasklist); |
|
512 | - $params = array_merge($params, $optParams); |
|
513 | - return $this->call('list', array($params), "Google_Service_Tasks_Tasks"); |
|
511 | + $params = array('tasklist' => $tasklist); |
|
512 | + $params = array_merge($params, $optParams); |
|
513 | + return $this->call('list', array($params), "Google_Service_Tasks_Tasks"); |
|
514 | 514 | } |
515 | 515 | |
516 | 516 | /** |
@@ -531,9 +531,9 @@ discard block |
||
531 | 531 | */ |
532 | 532 | public function move($tasklist, $task, $optParams = array()) |
533 | 533 | { |
534 | - $params = array('tasklist' => $tasklist, 'task' => $task); |
|
535 | - $params = array_merge($params, $optParams); |
|
536 | - return $this->call('move', array($params), "Google_Service_Tasks_Task"); |
|
534 | + $params = array('tasklist' => $tasklist, 'task' => $task); |
|
535 | + $params = array_merge($params, $optParams); |
|
536 | + return $this->call('move', array($params), "Google_Service_Tasks_Task"); |
|
537 | 537 | } |
538 | 538 | |
539 | 539 | /** |
@@ -548,9 +548,9 @@ discard block |
||
548 | 548 | */ |
549 | 549 | public function patch($tasklist, $task, Google_Service_Tasks_Task $postBody, $optParams = array()) |
550 | 550 | { |
551 | - $params = array('tasklist' => $tasklist, 'task' => $task, 'postBody' => $postBody); |
|
552 | - $params = array_merge($params, $optParams); |
|
553 | - return $this->call('patch', array($params), "Google_Service_Tasks_Task"); |
|
551 | + $params = array('tasklist' => $tasklist, 'task' => $task, 'postBody' => $postBody); |
|
552 | + $params = array_merge($params, $optParams); |
|
553 | + return $this->call('patch', array($params), "Google_Service_Tasks_Task"); |
|
554 | 554 | } |
555 | 555 | |
556 | 556 | /** |
@@ -564,9 +564,9 @@ discard block |
||
564 | 564 | */ |
565 | 565 | public function update($tasklist, $task, Google_Service_Tasks_Task $postBody, $optParams = array()) |
566 | 566 | { |
567 | - $params = array('tasklist' => $tasklist, 'task' => $task, 'postBody' => $postBody); |
|
568 | - $params = array_merge($params, $optParams); |
|
569 | - return $this->call('update', array($params), "Google_Service_Tasks_Task"); |
|
567 | + $params = array('tasklist' => $tasklist, 'task' => $task, 'postBody' => $postBody); |
|
568 | + $params = array_merge($params, $optParams); |
|
569 | + return $this->call('update', array($params), "Google_Service_Tasks_Task"); |
|
570 | 570 | } |
571 | 571 | } |
572 | 572 | |
@@ -598,123 +598,123 @@ discard block |
||
598 | 598 | |
599 | 599 | public function setCompleted($completed) |
600 | 600 | { |
601 | - $this->completed = $completed; |
|
601 | + $this->completed = $completed; |
|
602 | 602 | } |
603 | 603 | public function getCompleted() |
604 | 604 | { |
605 | - return $this->completed; |
|
605 | + return $this->completed; |
|
606 | 606 | } |
607 | 607 | public function setDeleted($deleted) |
608 | 608 | { |
609 | - $this->deleted = $deleted; |
|
609 | + $this->deleted = $deleted; |
|
610 | 610 | } |
611 | 611 | public function getDeleted() |
612 | 612 | { |
613 | - return $this->deleted; |
|
613 | + return $this->deleted; |
|
614 | 614 | } |
615 | 615 | public function setDue($due) |
616 | 616 | { |
617 | - $this->due = $due; |
|
617 | + $this->due = $due; |
|
618 | 618 | } |
619 | 619 | public function getDue() |
620 | 620 | { |
621 | - return $this->due; |
|
621 | + return $this->due; |
|
622 | 622 | } |
623 | 623 | public function setEtag($etag) |
624 | 624 | { |
625 | - $this->etag = $etag; |
|
625 | + $this->etag = $etag; |
|
626 | 626 | } |
627 | 627 | public function getEtag() |
628 | 628 | { |
629 | - return $this->etag; |
|
629 | + return $this->etag; |
|
630 | 630 | } |
631 | 631 | public function setHidden($hidden) |
632 | 632 | { |
633 | - $this->hidden = $hidden; |
|
633 | + $this->hidden = $hidden; |
|
634 | 634 | } |
635 | 635 | public function getHidden() |
636 | 636 | { |
637 | - return $this->hidden; |
|
637 | + return $this->hidden; |
|
638 | 638 | } |
639 | 639 | public function setId($id) |
640 | 640 | { |
641 | - $this->id = $id; |
|
641 | + $this->id = $id; |
|
642 | 642 | } |
643 | 643 | public function getId() |
644 | 644 | { |
645 | - return $this->id; |
|
645 | + return $this->id; |
|
646 | 646 | } |
647 | 647 | public function setKind($kind) |
648 | 648 | { |
649 | - $this->kind = $kind; |
|
649 | + $this->kind = $kind; |
|
650 | 650 | } |
651 | 651 | public function getKind() |
652 | 652 | { |
653 | - return $this->kind; |
|
653 | + return $this->kind; |
|
654 | 654 | } |
655 | 655 | public function setLinks($links) |
656 | 656 | { |
657 | - $this->links = $links; |
|
657 | + $this->links = $links; |
|
658 | 658 | } |
659 | 659 | public function getLinks() |
660 | 660 | { |
661 | - return $this->links; |
|
661 | + return $this->links; |
|
662 | 662 | } |
663 | 663 | public function setNotes($notes) |
664 | 664 | { |
665 | - $this->notes = $notes; |
|
665 | + $this->notes = $notes; |
|
666 | 666 | } |
667 | 667 | public function getNotes() |
668 | 668 | { |
669 | - return $this->notes; |
|
669 | + return $this->notes; |
|
670 | 670 | } |
671 | 671 | public function setParent($parent) |
672 | 672 | { |
673 | - $this->parent = $parent; |
|
673 | + $this->parent = $parent; |
|
674 | 674 | } |
675 | 675 | public function getParent() |
676 | 676 | { |
677 | - return $this->parent; |
|
677 | + return $this->parent; |
|
678 | 678 | } |
679 | 679 | public function setPosition($position) |
680 | 680 | { |
681 | - $this->position = $position; |
|
681 | + $this->position = $position; |
|
682 | 682 | } |
683 | 683 | public function getPosition() |
684 | 684 | { |
685 | - return $this->position; |
|
685 | + return $this->position; |
|
686 | 686 | } |
687 | 687 | public function setSelfLink($selfLink) |
688 | 688 | { |
689 | - $this->selfLink = $selfLink; |
|
689 | + $this->selfLink = $selfLink; |
|
690 | 690 | } |
691 | 691 | public function getSelfLink() |
692 | 692 | { |
693 | - return $this->selfLink; |
|
693 | + return $this->selfLink; |
|
694 | 694 | } |
695 | 695 | public function setStatus($status) |
696 | 696 | { |
697 | - $this->status = $status; |
|
697 | + $this->status = $status; |
|
698 | 698 | } |
699 | 699 | public function getStatus() |
700 | 700 | { |
701 | - return $this->status; |
|
701 | + return $this->status; |
|
702 | 702 | } |
703 | 703 | public function setTitle($title) |
704 | 704 | { |
705 | - $this->title = $title; |
|
705 | + $this->title = $title; |
|
706 | 706 | } |
707 | 707 | public function getTitle() |
708 | 708 | { |
709 | - return $this->title; |
|
709 | + return $this->title; |
|
710 | 710 | } |
711 | 711 | public function setUpdated($updated) |
712 | 712 | { |
713 | - $this->updated = $updated; |
|
713 | + $this->updated = $updated; |
|
714 | 714 | } |
715 | 715 | public function getUpdated() |
716 | 716 | { |
717 | - return $this->updated; |
|
717 | + return $this->updated; |
|
718 | 718 | } |
719 | 719 | } |
720 | 720 | |
@@ -729,27 +729,27 @@ discard block |
||
729 | 729 | |
730 | 730 | public function setDescription($description) |
731 | 731 | { |
732 | - $this->description = $description; |
|
732 | + $this->description = $description; |
|
733 | 733 | } |
734 | 734 | public function getDescription() |
735 | 735 | { |
736 | - return $this->description; |
|
736 | + return $this->description; |
|
737 | 737 | } |
738 | 738 | public function setLink($link) |
739 | 739 | { |
740 | - $this->link = $link; |
|
740 | + $this->link = $link; |
|
741 | 741 | } |
742 | 742 | public function getLink() |
743 | 743 | { |
744 | - return $this->link; |
|
744 | + return $this->link; |
|
745 | 745 | } |
746 | 746 | public function setType($type) |
747 | 747 | { |
748 | - $this->type = $type; |
|
748 | + $this->type = $type; |
|
749 | 749 | } |
750 | 750 | public function getType() |
751 | 751 | { |
752 | - return $this->type; |
|
752 | + return $this->type; |
|
753 | 753 | } |
754 | 754 | } |
755 | 755 | |
@@ -767,51 +767,51 @@ discard block |
||
767 | 767 | |
768 | 768 | public function setEtag($etag) |
769 | 769 | { |
770 | - $this->etag = $etag; |
|
770 | + $this->etag = $etag; |
|
771 | 771 | } |
772 | 772 | public function getEtag() |
773 | 773 | { |
774 | - return $this->etag; |
|
774 | + return $this->etag; |
|
775 | 775 | } |
776 | 776 | public function setId($id) |
777 | 777 | { |
778 | - $this->id = $id; |
|
778 | + $this->id = $id; |
|
779 | 779 | } |
780 | 780 | public function getId() |
781 | 781 | { |
782 | - return $this->id; |
|
782 | + return $this->id; |
|
783 | 783 | } |
784 | 784 | public function setKind($kind) |
785 | 785 | { |
786 | - $this->kind = $kind; |
|
786 | + $this->kind = $kind; |
|
787 | 787 | } |
788 | 788 | public function getKind() |
789 | 789 | { |
790 | - return $this->kind; |
|
790 | + return $this->kind; |
|
791 | 791 | } |
792 | 792 | public function setSelfLink($selfLink) |
793 | 793 | { |
794 | - $this->selfLink = $selfLink; |
|
794 | + $this->selfLink = $selfLink; |
|
795 | 795 | } |
796 | 796 | public function getSelfLink() |
797 | 797 | { |
798 | - return $this->selfLink; |
|
798 | + return $this->selfLink; |
|
799 | 799 | } |
800 | 800 | public function setTitle($title) |
801 | 801 | { |
802 | - $this->title = $title; |
|
802 | + $this->title = $title; |
|
803 | 803 | } |
804 | 804 | public function getTitle() |
805 | 805 | { |
806 | - return $this->title; |
|
806 | + return $this->title; |
|
807 | 807 | } |
808 | 808 | public function setUpdated($updated) |
809 | 809 | { |
810 | - $this->updated = $updated; |
|
810 | + $this->updated = $updated; |
|
811 | 811 | } |
812 | 812 | public function getUpdated() |
813 | 813 | { |
814 | - return $this->updated; |
|
814 | + return $this->updated; |
|
815 | 815 | } |
816 | 816 | } |
817 | 817 | |
@@ -829,35 +829,35 @@ discard block |
||
829 | 829 | |
830 | 830 | public function setEtag($etag) |
831 | 831 | { |
832 | - $this->etag = $etag; |
|
832 | + $this->etag = $etag; |
|
833 | 833 | } |
834 | 834 | public function getEtag() |
835 | 835 | { |
836 | - return $this->etag; |
|
836 | + return $this->etag; |
|
837 | 837 | } |
838 | 838 | public function setItems($items) |
839 | 839 | { |
840 | - $this->items = $items; |
|
840 | + $this->items = $items; |
|
841 | 841 | } |
842 | 842 | public function getItems() |
843 | 843 | { |
844 | - return $this->items; |
|
844 | + return $this->items; |
|
845 | 845 | } |
846 | 846 | public function setKind($kind) |
847 | 847 | { |
848 | - $this->kind = $kind; |
|
848 | + $this->kind = $kind; |
|
849 | 849 | } |
850 | 850 | public function getKind() |
851 | 851 | { |
852 | - return $this->kind; |
|
852 | + return $this->kind; |
|
853 | 853 | } |
854 | 854 | public function setNextPageToken($nextPageToken) |
855 | 855 | { |
856 | - $this->nextPageToken = $nextPageToken; |
|
856 | + $this->nextPageToken = $nextPageToken; |
|
857 | 857 | } |
858 | 858 | public function getNextPageToken() |
859 | 859 | { |
860 | - return $this->nextPageToken; |
|
860 | + return $this->nextPageToken; |
|
861 | 861 | } |
862 | 862 | } |
863 | 863 | |
@@ -875,34 +875,34 @@ discard block |
||
875 | 875 | |
876 | 876 | public function setEtag($etag) |
877 | 877 | { |
878 | - $this->etag = $etag; |
|
878 | + $this->etag = $etag; |
|
879 | 879 | } |
880 | 880 | public function getEtag() |
881 | 881 | { |
882 | - return $this->etag; |
|
882 | + return $this->etag; |
|
883 | 883 | } |
884 | 884 | public function setItems($items) |
885 | 885 | { |
886 | - $this->items = $items; |
|
886 | + $this->items = $items; |
|
887 | 887 | } |
888 | 888 | public function getItems() |
889 | 889 | { |
890 | - return $this->items; |
|
890 | + return $this->items; |
|
891 | 891 | } |
892 | 892 | public function setKind($kind) |
893 | 893 | { |
894 | - $this->kind = $kind; |
|
894 | + $this->kind = $kind; |
|
895 | 895 | } |
896 | 896 | public function getKind() |
897 | 897 | { |
898 | - return $this->kind; |
|
898 | + return $this->kind; |
|
899 | 899 | } |
900 | 900 | public function setNextPageToken($nextPageToken) |
901 | 901 | { |
902 | - $this->nextPageToken = $nextPageToken; |
|
902 | + $this->nextPageToken = $nextPageToken; |
|
903 | 903 | } |
904 | 904 | public function getNextPageToken() |
905 | 905 | { |
906 | - return $this->nextPageToken; |
|
906 | + return $this->nextPageToken; |
|
907 | 907 | } |
908 | 908 | } |
@@ -70,7 +70,7 @@ discard block |
||
70 | 70 | 'required' => true, |
71 | 71 | ), |
72 | 72 | ), |
73 | - ),'get' => array( |
|
73 | + ), 'get' => array( |
|
74 | 74 | 'path' => 'users/@me/lists/{tasklist}', |
75 | 75 | 'httpMethod' => 'GET', |
76 | 76 | 'parameters' => array( |
@@ -80,11 +80,11 @@ discard block |
||
80 | 80 | 'required' => true, |
81 | 81 | ), |
82 | 82 | ), |
83 | - ),'insert' => array( |
|
83 | + ), 'insert' => array( |
|
84 | 84 | 'path' => 'users/@me/lists', |
85 | 85 | 'httpMethod' => 'POST', |
86 | 86 | 'parameters' => array(), |
87 | - ),'list' => array( |
|
87 | + ), 'list' => array( |
|
88 | 88 | 'path' => 'users/@me/lists', |
89 | 89 | 'httpMethod' => 'GET', |
90 | 90 | 'parameters' => array( |
@@ -97,7 +97,7 @@ discard block |
||
97 | 97 | 'type' => 'string', |
98 | 98 | ), |
99 | 99 | ), |
100 | - ),'patch' => array( |
|
100 | + ), 'patch' => array( |
|
101 | 101 | 'path' => 'users/@me/lists/{tasklist}', |
102 | 102 | 'httpMethod' => 'PATCH', |
103 | 103 | 'parameters' => array( |
@@ -107,7 +107,7 @@ discard block |
||
107 | 107 | 'required' => true, |
108 | 108 | ), |
109 | 109 | ), |
110 | - ),'update' => array( |
|
110 | + ), 'update' => array( |
|
111 | 111 | 'path' => 'users/@me/lists/{tasklist}', |
112 | 112 | 'httpMethod' => 'PUT', |
113 | 113 | 'parameters' => array( |
@@ -137,7 +137,7 @@ discard block |
||
137 | 137 | 'required' => true, |
138 | 138 | ), |
139 | 139 | ), |
140 | - ),'delete' => array( |
|
140 | + ), 'delete' => array( |
|
141 | 141 | 'path' => 'lists/{tasklist}/tasks/{task}', |
142 | 142 | 'httpMethod' => 'DELETE', |
143 | 143 | 'parameters' => array( |
@@ -152,7 +152,7 @@ discard block |
||
152 | 152 | 'required' => true, |
153 | 153 | ), |
154 | 154 | ), |
155 | - ),'get' => array( |
|
155 | + ), 'get' => array( |
|
156 | 156 | 'path' => 'lists/{tasklist}/tasks/{task}', |
157 | 157 | 'httpMethod' => 'GET', |
158 | 158 | 'parameters' => array( |
@@ -167,7 +167,7 @@ discard block |
||
167 | 167 | 'required' => true, |
168 | 168 | ), |
169 | 169 | ), |
170 | - ),'insert' => array( |
|
170 | + ), 'insert' => array( |
|
171 | 171 | 'path' => 'lists/{tasklist}/tasks', |
172 | 172 | 'httpMethod' => 'POST', |
173 | 173 | 'parameters' => array( |
@@ -185,7 +185,7 @@ discard block |
||
185 | 185 | 'type' => 'string', |
186 | 186 | ), |
187 | 187 | ), |
188 | - ),'list' => array( |
|
188 | + ), 'list' => array( |
|
189 | 189 | 'path' => 'lists/{tasklist}/tasks', |
190 | 190 | 'httpMethod' => 'GET', |
191 | 191 | 'parameters' => array( |
@@ -235,7 +235,7 @@ discard block |
||
235 | 235 | 'type' => 'string', |
236 | 236 | ), |
237 | 237 | ), |
238 | - ),'move' => array( |
|
238 | + ), 'move' => array( |
|
239 | 239 | 'path' => 'lists/{tasklist}/tasks/{task}/move', |
240 | 240 | 'httpMethod' => 'POST', |
241 | 241 | 'parameters' => array( |
@@ -258,7 +258,7 @@ discard block |
||
258 | 258 | 'type' => 'string', |
259 | 259 | ), |
260 | 260 | ), |
261 | - ),'patch' => array( |
|
261 | + ), 'patch' => array( |
|
262 | 262 | 'path' => 'lists/{tasklist}/tasks/{task}', |
263 | 263 | 'httpMethod' => 'PATCH', |
264 | 264 | 'parameters' => array( |
@@ -273,7 +273,7 @@ discard block |
||
273 | 273 | 'required' => true, |
274 | 274 | ), |
275 | 275 | ), |
276 | - ),'update' => array( |
|
276 | + ), 'update' => array( |
|
277 | 277 | 'path' => 'lists/{tasklist}/tasks/{task}', |
278 | 278 | 'httpMethod' => 'PUT', |
279 | 279 | 'parameters' => array( |
@@ -125,7 +125,7 @@ |
||
125 | 125 | /** |
126 | 126 | * Creates a new short URL. (url.insert) |
127 | 127 | * |
128 | - * @param Google_Url $postBody |
|
128 | + * @param Google_Service_Urlshortener_Url $postBody |
|
129 | 129 | * @param array $optParams Optional parameters. |
130 | 130 | * @return Google_Service_Urlshortener_Url |
131 | 131 | */ |
@@ -32,7 +32,7 @@ discard block |
||
32 | 32 | { |
33 | 33 | /** Manage your goo.gl short URLs. */ |
34 | 34 | const URLSHORTENER = |
35 | - "https://www.googleapis.com/auth/urlshortener"; |
|
35 | + "https://www.googleapis.com/auth/urlshortener"; |
|
36 | 36 | |
37 | 37 | public $url; |
38 | 38 | |
@@ -44,53 +44,53 @@ discard block |
||
44 | 44 | */ |
45 | 45 | public function __construct(Google_Client $client) |
46 | 46 | { |
47 | - parent::__construct($client); |
|
48 | - $this->rootUrl = 'https://www.googleapis.com/'; |
|
49 | - $this->servicePath = 'urlshortener/v1/'; |
|
50 | - $this->version = 'v1'; |
|
51 | - $this->serviceName = 'urlshortener'; |
|
47 | + parent::__construct($client); |
|
48 | + $this->rootUrl = 'https://www.googleapis.com/'; |
|
49 | + $this->servicePath = 'urlshortener/v1/'; |
|
50 | + $this->version = 'v1'; |
|
51 | + $this->serviceName = 'urlshortener'; |
|
52 | 52 | |
53 | - $this->url = new Google_Service_Urlshortener_Url_Resource( |
|
54 | - $this, |
|
55 | - $this->serviceName, |
|
56 | - 'url', |
|
57 | - array( |
|
58 | - 'methods' => array( |
|
59 | - 'get' => array( |
|
60 | - 'path' => 'url', |
|
61 | - 'httpMethod' => 'GET', |
|
62 | - 'parameters' => array( |
|
63 | - 'shortUrl' => array( |
|
64 | - 'location' => 'query', |
|
65 | - 'type' => 'string', |
|
66 | - 'required' => true, |
|
67 | - ), |
|
68 | - 'projection' => array( |
|
69 | - 'location' => 'query', |
|
70 | - 'type' => 'string', |
|
71 | - ), |
|
72 | - ), |
|
73 | - ),'insert' => array( |
|
74 | - 'path' => 'url', |
|
75 | - 'httpMethod' => 'POST', |
|
76 | - 'parameters' => array(), |
|
77 | - ),'list' => array( |
|
78 | - 'path' => 'url/history', |
|
79 | - 'httpMethod' => 'GET', |
|
80 | - 'parameters' => array( |
|
81 | - 'start-token' => array( |
|
82 | - 'location' => 'query', |
|
83 | - 'type' => 'string', |
|
84 | - ), |
|
85 | - 'projection' => array( |
|
86 | - 'location' => 'query', |
|
87 | - 'type' => 'string', |
|
88 | - ), |
|
89 | - ), |
|
90 | - ), |
|
91 | - ) |
|
92 | - ) |
|
93 | - ); |
|
53 | + $this->url = new Google_Service_Urlshortener_Url_Resource( |
|
54 | + $this, |
|
55 | + $this->serviceName, |
|
56 | + 'url', |
|
57 | + array( |
|
58 | + 'methods' => array( |
|
59 | + 'get' => array( |
|
60 | + 'path' => 'url', |
|
61 | + 'httpMethod' => 'GET', |
|
62 | + 'parameters' => array( |
|
63 | + 'shortUrl' => array( |
|
64 | + 'location' => 'query', |
|
65 | + 'type' => 'string', |
|
66 | + 'required' => true, |
|
67 | + ), |
|
68 | + 'projection' => array( |
|
69 | + 'location' => 'query', |
|
70 | + 'type' => 'string', |
|
71 | + ), |
|
72 | + ), |
|
73 | + ),'insert' => array( |
|
74 | + 'path' => 'url', |
|
75 | + 'httpMethod' => 'POST', |
|
76 | + 'parameters' => array(), |
|
77 | + ),'list' => array( |
|
78 | + 'path' => 'url/history', |
|
79 | + 'httpMethod' => 'GET', |
|
80 | + 'parameters' => array( |
|
81 | + 'start-token' => array( |
|
82 | + 'location' => 'query', |
|
83 | + 'type' => 'string', |
|
84 | + ), |
|
85 | + 'projection' => array( |
|
86 | + 'location' => 'query', |
|
87 | + 'type' => 'string', |
|
88 | + ), |
|
89 | + ), |
|
90 | + ), |
|
91 | + ) |
|
92 | + ) |
|
93 | + ); |
|
94 | 94 | } |
95 | 95 | } |
96 | 96 | |
@@ -117,9 +117,9 @@ discard block |
||
117 | 117 | */ |
118 | 118 | public function get($shortUrl, $optParams = array()) |
119 | 119 | { |
120 | - $params = array('shortUrl' => $shortUrl); |
|
121 | - $params = array_merge($params, $optParams); |
|
122 | - return $this->call('get', array($params), "Google_Service_Urlshortener_Url"); |
|
120 | + $params = array('shortUrl' => $shortUrl); |
|
121 | + $params = array_merge($params, $optParams); |
|
122 | + return $this->call('get', array($params), "Google_Service_Urlshortener_Url"); |
|
123 | 123 | } |
124 | 124 | |
125 | 125 | /** |
@@ -131,9 +131,9 @@ discard block |
||
131 | 131 | */ |
132 | 132 | public function insert(Google_Service_Urlshortener_Url $postBody, $optParams = array()) |
133 | 133 | { |
134 | - $params = array('postBody' => $postBody); |
|
135 | - $params = array_merge($params, $optParams); |
|
136 | - return $this->call('insert', array($params), "Google_Service_Urlshortener_Url"); |
|
134 | + $params = array('postBody' => $postBody); |
|
135 | + $params = array_merge($params, $optParams); |
|
136 | + return $this->call('insert', array($params), "Google_Service_Urlshortener_Url"); |
|
137 | 137 | } |
138 | 138 | |
139 | 139 | /** |
@@ -148,9 +148,9 @@ discard block |
||
148 | 148 | */ |
149 | 149 | public function listUrl($optParams = array()) |
150 | 150 | { |
151 | - $params = array(); |
|
152 | - $params = array_merge($params, $optParams); |
|
153 | - return $this->call('list', array($params), "Google_Service_Urlshortener_UrlHistory"); |
|
151 | + $params = array(); |
|
152 | + $params = array_merge($params, $optParams); |
|
153 | + return $this->call('list', array($params), "Google_Service_Urlshortener_UrlHistory"); |
|
154 | 154 | } |
155 | 155 | } |
156 | 156 | |
@@ -176,51 +176,51 @@ discard block |
||
176 | 176 | |
177 | 177 | public function setBrowsers($browsers) |
178 | 178 | { |
179 | - $this->browsers = $browsers; |
|
179 | + $this->browsers = $browsers; |
|
180 | 180 | } |
181 | 181 | public function getBrowsers() |
182 | 182 | { |
183 | - return $this->browsers; |
|
183 | + return $this->browsers; |
|
184 | 184 | } |
185 | 185 | public function setCountries($countries) |
186 | 186 | { |
187 | - $this->countries = $countries; |
|
187 | + $this->countries = $countries; |
|
188 | 188 | } |
189 | 189 | public function getCountries() |
190 | 190 | { |
191 | - return $this->countries; |
|
191 | + return $this->countries; |
|
192 | 192 | } |
193 | 193 | public function setLongUrlClicks($longUrlClicks) |
194 | 194 | { |
195 | - $this->longUrlClicks = $longUrlClicks; |
|
195 | + $this->longUrlClicks = $longUrlClicks; |
|
196 | 196 | } |
197 | 197 | public function getLongUrlClicks() |
198 | 198 | { |
199 | - return $this->longUrlClicks; |
|
199 | + return $this->longUrlClicks; |
|
200 | 200 | } |
201 | 201 | public function setPlatforms($platforms) |
202 | 202 | { |
203 | - $this->platforms = $platforms; |
|
203 | + $this->platforms = $platforms; |
|
204 | 204 | } |
205 | 205 | public function getPlatforms() |
206 | 206 | { |
207 | - return $this->platforms; |
|
207 | + return $this->platforms; |
|
208 | 208 | } |
209 | 209 | public function setReferrers($referrers) |
210 | 210 | { |
211 | - $this->referrers = $referrers; |
|
211 | + $this->referrers = $referrers; |
|
212 | 212 | } |
213 | 213 | public function getReferrers() |
214 | 214 | { |
215 | - return $this->referrers; |
|
215 | + return $this->referrers; |
|
216 | 216 | } |
217 | 217 | public function setShortUrlClicks($shortUrlClicks) |
218 | 218 | { |
219 | - $this->shortUrlClicks = $shortUrlClicks; |
|
219 | + $this->shortUrlClicks = $shortUrlClicks; |
|
220 | 220 | } |
221 | 221 | public function getShortUrlClicks() |
222 | 222 | { |
223 | - return $this->shortUrlClicks; |
|
223 | + return $this->shortUrlClicks; |
|
224 | 224 | } |
225 | 225 | } |
226 | 226 | |
@@ -242,43 +242,43 @@ discard block |
||
242 | 242 | |
243 | 243 | public function setAllTime(Google_Service_Urlshortener_AnalyticsSnapshot $allTime) |
244 | 244 | { |
245 | - $this->allTime = $allTime; |
|
245 | + $this->allTime = $allTime; |
|
246 | 246 | } |
247 | 247 | public function getAllTime() |
248 | 248 | { |
249 | - return $this->allTime; |
|
249 | + return $this->allTime; |
|
250 | 250 | } |
251 | 251 | public function setDay(Google_Service_Urlshortener_AnalyticsSnapshot $day) |
252 | 252 | { |
253 | - $this->day = $day; |
|
253 | + $this->day = $day; |
|
254 | 254 | } |
255 | 255 | public function getDay() |
256 | 256 | { |
257 | - return $this->day; |
|
257 | + return $this->day; |
|
258 | 258 | } |
259 | 259 | public function setMonth(Google_Service_Urlshortener_AnalyticsSnapshot $month) |
260 | 260 | { |
261 | - $this->month = $month; |
|
261 | + $this->month = $month; |
|
262 | 262 | } |
263 | 263 | public function getMonth() |
264 | 264 | { |
265 | - return $this->month; |
|
265 | + return $this->month; |
|
266 | 266 | } |
267 | 267 | public function setTwoHours(Google_Service_Urlshortener_AnalyticsSnapshot $twoHours) |
268 | 268 | { |
269 | - $this->twoHours = $twoHours; |
|
269 | + $this->twoHours = $twoHours; |
|
270 | 270 | } |
271 | 271 | public function getTwoHours() |
272 | 272 | { |
273 | - return $this->twoHours; |
|
273 | + return $this->twoHours; |
|
274 | 274 | } |
275 | 275 | public function setWeek(Google_Service_Urlshortener_AnalyticsSnapshot $week) |
276 | 276 | { |
277 | - $this->week = $week; |
|
277 | + $this->week = $week; |
|
278 | 278 | } |
279 | 279 | public function getWeek() |
280 | 280 | { |
281 | - return $this->week; |
|
281 | + return $this->week; |
|
282 | 282 | } |
283 | 283 | } |
284 | 284 | |
@@ -292,19 +292,19 @@ discard block |
||
292 | 292 | |
293 | 293 | public function setCount($count) |
294 | 294 | { |
295 | - $this->count = $count; |
|
295 | + $this->count = $count; |
|
296 | 296 | } |
297 | 297 | public function getCount() |
298 | 298 | { |
299 | - return $this->count; |
|
299 | + return $this->count; |
|
300 | 300 | } |
301 | 301 | public function setId($id) |
302 | 302 | { |
303 | - $this->id = $id; |
|
303 | + $this->id = $id; |
|
304 | 304 | } |
305 | 305 | public function getId() |
306 | 306 | { |
307 | - return $this->id; |
|
307 | + return $this->id; |
|
308 | 308 | } |
309 | 309 | } |
310 | 310 | |
@@ -323,51 +323,51 @@ discard block |
||
323 | 323 | |
324 | 324 | public function setAnalytics(Google_Service_Urlshortener_AnalyticsSummary $analytics) |
325 | 325 | { |
326 | - $this->analytics = $analytics; |
|
326 | + $this->analytics = $analytics; |
|
327 | 327 | } |
328 | 328 | public function getAnalytics() |
329 | 329 | { |
330 | - return $this->analytics; |
|
330 | + return $this->analytics; |
|
331 | 331 | } |
332 | 332 | public function setCreated($created) |
333 | 333 | { |
334 | - $this->created = $created; |
|
334 | + $this->created = $created; |
|
335 | 335 | } |
336 | 336 | public function getCreated() |
337 | 337 | { |
338 | - return $this->created; |
|
338 | + return $this->created; |
|
339 | 339 | } |
340 | 340 | public function setId($id) |
341 | 341 | { |
342 | - $this->id = $id; |
|
342 | + $this->id = $id; |
|
343 | 343 | } |
344 | 344 | public function getId() |
345 | 345 | { |
346 | - return $this->id; |
|
346 | + return $this->id; |
|
347 | 347 | } |
348 | 348 | public function setKind($kind) |
349 | 349 | { |
350 | - $this->kind = $kind; |
|
350 | + $this->kind = $kind; |
|
351 | 351 | } |
352 | 352 | public function getKind() |
353 | 353 | { |
354 | - return $this->kind; |
|
354 | + return $this->kind; |
|
355 | 355 | } |
356 | 356 | public function setLongUrl($longUrl) |
357 | 357 | { |
358 | - $this->longUrl = $longUrl; |
|
358 | + $this->longUrl = $longUrl; |
|
359 | 359 | } |
360 | 360 | public function getLongUrl() |
361 | 361 | { |
362 | - return $this->longUrl; |
|
362 | + return $this->longUrl; |
|
363 | 363 | } |
364 | 364 | public function setStatus($status) |
365 | 365 | { |
366 | - $this->status = $status; |
|
366 | + $this->status = $status; |
|
367 | 367 | } |
368 | 368 | public function getStatus() |
369 | 369 | { |
370 | - return $this->status; |
|
370 | + return $this->status; |
|
371 | 371 | } |
372 | 372 | } |
373 | 373 | |
@@ -386,42 +386,42 @@ discard block |
||
386 | 386 | |
387 | 387 | public function setItems($items) |
388 | 388 | { |
389 | - $this->items = $items; |
|
389 | + $this->items = $items; |
|
390 | 390 | } |
391 | 391 | public function getItems() |
392 | 392 | { |
393 | - return $this->items; |
|
393 | + return $this->items; |
|
394 | 394 | } |
395 | 395 | public function setItemsPerPage($itemsPerPage) |
396 | 396 | { |
397 | - $this->itemsPerPage = $itemsPerPage; |
|
397 | + $this->itemsPerPage = $itemsPerPage; |
|
398 | 398 | } |
399 | 399 | public function getItemsPerPage() |
400 | 400 | { |
401 | - return $this->itemsPerPage; |
|
401 | + return $this->itemsPerPage; |
|
402 | 402 | } |
403 | 403 | public function setKind($kind) |
404 | 404 | { |
405 | - $this->kind = $kind; |
|
405 | + $this->kind = $kind; |
|
406 | 406 | } |
407 | 407 | public function getKind() |
408 | 408 | { |
409 | - return $this->kind; |
|
409 | + return $this->kind; |
|
410 | 410 | } |
411 | 411 | public function setNextPageToken($nextPageToken) |
412 | 412 | { |
413 | - $this->nextPageToken = $nextPageToken; |
|
413 | + $this->nextPageToken = $nextPageToken; |
|
414 | 414 | } |
415 | 415 | public function getNextPageToken() |
416 | 416 | { |
417 | - return $this->nextPageToken; |
|
417 | + return $this->nextPageToken; |
|
418 | 418 | } |
419 | 419 | public function setTotalItems($totalItems) |
420 | 420 | { |
421 | - $this->totalItems = $totalItems; |
|
421 | + $this->totalItems = $totalItems; |
|
422 | 422 | } |
423 | 423 | public function getTotalItems() |
424 | 424 | { |
425 | - return $this->totalItems; |
|
425 | + return $this->totalItems; |
|
426 | 426 | } |
427 | 427 | } |
@@ -70,11 +70,11 @@ |
||
70 | 70 | 'type' => 'string', |
71 | 71 | ), |
72 | 72 | ), |
73 | - ),'insert' => array( |
|
73 | + ), 'insert' => array( |
|
74 | 74 | 'path' => 'url', |
75 | 75 | 'httpMethod' => 'POST', |
76 | 76 | 'parameters' => array(), |
77 | - ),'list' => array( |
|
77 | + ), 'list' => array( |
|
78 | 78 | 'path' => 'url/history', |
79 | 79 | 'httpMethod' => 'GET', |
80 | 80 | 'parameters' => array( |
@@ -331,7 +331,7 @@ |
||
331 | 331 | * |
332 | 332 | * @param string $siteUrl The site's URL, including protocol. For example: |
333 | 333 | * http://www.example.com/ |
334 | - * @param Google_SearchAnalyticsQueryRequest $postBody |
|
334 | + * @param Google_Service_Webmasters_SearchAnalyticsQueryRequest $postBody |
|
335 | 335 | * @param array $optParams Optional parameters. |
336 | 336 | * @return Google_Service_Webmasters_SearchAnalyticsQueryResponse |
337 | 337 | */ |
@@ -32,10 +32,10 @@ discard block |
||
32 | 32 | { |
33 | 33 | /** View and modify Webmaster Tools data for your verified sites. */ |
34 | 34 | const WEBMASTERS = |
35 | - "https://www.googleapis.com/auth/webmasters"; |
|
35 | + "https://www.googleapis.com/auth/webmasters"; |
|
36 | 36 | /** View Webmaster Tools data for your verified sites. */ |
37 | 37 | const WEBMASTERS_READONLY = |
38 | - "https://www.googleapis.com/auth/webmasters.readonly"; |
|
38 | + "https://www.googleapis.com/auth/webmasters.readonly"; |
|
39 | 39 | |
40 | 40 | public $searchanalytics; |
41 | 41 | public $sitemaps; |
@@ -51,257 +51,257 @@ discard block |
||
51 | 51 | */ |
52 | 52 | public function __construct(Google_Client $client) |
53 | 53 | { |
54 | - parent::__construct($client); |
|
55 | - $this->rootUrl = 'https://www.googleapis.com/'; |
|
56 | - $this->servicePath = 'webmasters/v3/'; |
|
57 | - $this->version = 'v3'; |
|
58 | - $this->serviceName = 'webmasters'; |
|
59 | - |
|
60 | - $this->searchanalytics = new Google_Service_Webmasters_Searchanalytics_Resource( |
|
61 | - $this, |
|
62 | - $this->serviceName, |
|
63 | - 'searchanalytics', |
|
64 | - array( |
|
65 | - 'methods' => array( |
|
66 | - 'query' => array( |
|
67 | - 'path' => 'sites/{siteUrl}/searchAnalytics/query', |
|
68 | - 'httpMethod' => 'POST', |
|
69 | - 'parameters' => array( |
|
70 | - 'siteUrl' => array( |
|
71 | - 'location' => 'path', |
|
72 | - 'type' => 'string', |
|
73 | - 'required' => true, |
|
74 | - ), |
|
75 | - ), |
|
76 | - ), |
|
77 | - ) |
|
78 | - ) |
|
79 | - ); |
|
80 | - $this->sitemaps = new Google_Service_Webmasters_Sitemaps_Resource( |
|
81 | - $this, |
|
82 | - $this->serviceName, |
|
83 | - 'sitemaps', |
|
84 | - array( |
|
85 | - 'methods' => array( |
|
86 | - 'delete' => array( |
|
87 | - 'path' => 'sites/{siteUrl}/sitemaps/{feedpath}', |
|
88 | - 'httpMethod' => 'DELETE', |
|
89 | - 'parameters' => array( |
|
90 | - 'siteUrl' => array( |
|
91 | - 'location' => 'path', |
|
92 | - 'type' => 'string', |
|
93 | - 'required' => true, |
|
94 | - ), |
|
95 | - 'feedpath' => array( |
|
96 | - 'location' => 'path', |
|
97 | - 'type' => 'string', |
|
98 | - 'required' => true, |
|
99 | - ), |
|
100 | - ), |
|
101 | - ),'get' => array( |
|
102 | - 'path' => 'sites/{siteUrl}/sitemaps/{feedpath}', |
|
103 | - 'httpMethod' => 'GET', |
|
104 | - 'parameters' => array( |
|
105 | - 'siteUrl' => array( |
|
106 | - 'location' => 'path', |
|
107 | - 'type' => 'string', |
|
108 | - 'required' => true, |
|
109 | - ), |
|
110 | - 'feedpath' => array( |
|
111 | - 'location' => 'path', |
|
112 | - 'type' => 'string', |
|
113 | - 'required' => true, |
|
114 | - ), |
|
115 | - ), |
|
116 | - ),'list' => array( |
|
117 | - 'path' => 'sites/{siteUrl}/sitemaps', |
|
118 | - 'httpMethod' => 'GET', |
|
119 | - 'parameters' => array( |
|
120 | - 'siteUrl' => array( |
|
121 | - 'location' => 'path', |
|
122 | - 'type' => 'string', |
|
123 | - 'required' => true, |
|
124 | - ), |
|
125 | - 'sitemapIndex' => array( |
|
126 | - 'location' => 'query', |
|
127 | - 'type' => 'string', |
|
128 | - ), |
|
129 | - ), |
|
130 | - ),'submit' => array( |
|
131 | - 'path' => 'sites/{siteUrl}/sitemaps/{feedpath}', |
|
132 | - 'httpMethod' => 'PUT', |
|
133 | - 'parameters' => array( |
|
134 | - 'siteUrl' => array( |
|
135 | - 'location' => 'path', |
|
136 | - 'type' => 'string', |
|
137 | - 'required' => true, |
|
138 | - ), |
|
139 | - 'feedpath' => array( |
|
140 | - 'location' => 'path', |
|
141 | - 'type' => 'string', |
|
142 | - 'required' => true, |
|
143 | - ), |
|
144 | - ), |
|
145 | - ), |
|
146 | - ) |
|
147 | - ) |
|
148 | - ); |
|
149 | - $this->sites = new Google_Service_Webmasters_Sites_Resource( |
|
150 | - $this, |
|
151 | - $this->serviceName, |
|
152 | - 'sites', |
|
153 | - array( |
|
154 | - 'methods' => array( |
|
155 | - 'add' => array( |
|
156 | - 'path' => 'sites/{siteUrl}', |
|
157 | - 'httpMethod' => 'PUT', |
|
158 | - 'parameters' => array( |
|
159 | - 'siteUrl' => array( |
|
160 | - 'location' => 'path', |
|
161 | - 'type' => 'string', |
|
162 | - 'required' => true, |
|
163 | - ), |
|
164 | - ), |
|
165 | - ),'delete' => array( |
|
166 | - 'path' => 'sites/{siteUrl}', |
|
167 | - 'httpMethod' => 'DELETE', |
|
168 | - 'parameters' => array( |
|
169 | - 'siteUrl' => array( |
|
170 | - 'location' => 'path', |
|
171 | - 'type' => 'string', |
|
172 | - 'required' => true, |
|
173 | - ), |
|
174 | - ), |
|
175 | - ),'get' => array( |
|
176 | - 'path' => 'sites/{siteUrl}', |
|
177 | - 'httpMethod' => 'GET', |
|
178 | - 'parameters' => array( |
|
179 | - 'siteUrl' => array( |
|
180 | - 'location' => 'path', |
|
181 | - 'type' => 'string', |
|
182 | - 'required' => true, |
|
183 | - ), |
|
184 | - ), |
|
185 | - ),'list' => array( |
|
186 | - 'path' => 'sites', |
|
187 | - 'httpMethod' => 'GET', |
|
188 | - 'parameters' => array(), |
|
189 | - ), |
|
190 | - ) |
|
191 | - ) |
|
192 | - ); |
|
193 | - $this->urlcrawlerrorscounts = new Google_Service_Webmasters_Urlcrawlerrorscounts_Resource( |
|
194 | - $this, |
|
195 | - $this->serviceName, |
|
196 | - 'urlcrawlerrorscounts', |
|
197 | - array( |
|
198 | - 'methods' => array( |
|
199 | - 'query' => array( |
|
200 | - 'path' => 'sites/{siteUrl}/urlCrawlErrorsCounts/query', |
|
201 | - 'httpMethod' => 'GET', |
|
202 | - 'parameters' => array( |
|
203 | - 'siteUrl' => array( |
|
204 | - 'location' => 'path', |
|
205 | - 'type' => 'string', |
|
206 | - 'required' => true, |
|
207 | - ), |
|
208 | - 'category' => array( |
|
209 | - 'location' => 'query', |
|
210 | - 'type' => 'string', |
|
211 | - ), |
|
212 | - 'platform' => array( |
|
213 | - 'location' => 'query', |
|
214 | - 'type' => 'string', |
|
215 | - ), |
|
216 | - 'latestCountsOnly' => array( |
|
217 | - 'location' => 'query', |
|
218 | - 'type' => 'boolean', |
|
219 | - ), |
|
220 | - ), |
|
221 | - ), |
|
222 | - ) |
|
223 | - ) |
|
224 | - ); |
|
225 | - $this->urlcrawlerrorssamples = new Google_Service_Webmasters_Urlcrawlerrorssamples_Resource( |
|
226 | - $this, |
|
227 | - $this->serviceName, |
|
228 | - 'urlcrawlerrorssamples', |
|
229 | - array( |
|
230 | - 'methods' => array( |
|
231 | - 'get' => array( |
|
232 | - 'path' => 'sites/{siteUrl}/urlCrawlErrorsSamples/{url}', |
|
233 | - 'httpMethod' => 'GET', |
|
234 | - 'parameters' => array( |
|
235 | - 'siteUrl' => array( |
|
236 | - 'location' => 'path', |
|
237 | - 'type' => 'string', |
|
238 | - 'required' => true, |
|
239 | - ), |
|
240 | - 'url' => array( |
|
241 | - 'location' => 'path', |
|
242 | - 'type' => 'string', |
|
243 | - 'required' => true, |
|
244 | - ), |
|
245 | - 'category' => array( |
|
246 | - 'location' => 'query', |
|
247 | - 'type' => 'string', |
|
248 | - 'required' => true, |
|
249 | - ), |
|
250 | - 'platform' => array( |
|
251 | - 'location' => 'query', |
|
252 | - 'type' => 'string', |
|
253 | - 'required' => true, |
|
254 | - ), |
|
255 | - ), |
|
256 | - ),'list' => array( |
|
257 | - 'path' => 'sites/{siteUrl}/urlCrawlErrorsSamples', |
|
258 | - 'httpMethod' => 'GET', |
|
259 | - 'parameters' => array( |
|
260 | - 'siteUrl' => array( |
|
261 | - 'location' => 'path', |
|
262 | - 'type' => 'string', |
|
263 | - 'required' => true, |
|
264 | - ), |
|
265 | - 'category' => array( |
|
266 | - 'location' => 'query', |
|
267 | - 'type' => 'string', |
|
268 | - 'required' => true, |
|
269 | - ), |
|
270 | - 'platform' => array( |
|
271 | - 'location' => 'query', |
|
272 | - 'type' => 'string', |
|
273 | - 'required' => true, |
|
274 | - ), |
|
275 | - ), |
|
276 | - ),'markAsFixed' => array( |
|
277 | - 'path' => 'sites/{siteUrl}/urlCrawlErrorsSamples/{url}', |
|
278 | - 'httpMethod' => 'DELETE', |
|
279 | - 'parameters' => array( |
|
280 | - 'siteUrl' => array( |
|
281 | - 'location' => 'path', |
|
282 | - 'type' => 'string', |
|
283 | - 'required' => true, |
|
284 | - ), |
|
285 | - 'url' => array( |
|
286 | - 'location' => 'path', |
|
287 | - 'type' => 'string', |
|
288 | - 'required' => true, |
|
289 | - ), |
|
290 | - 'category' => array( |
|
291 | - 'location' => 'query', |
|
292 | - 'type' => 'string', |
|
293 | - 'required' => true, |
|
294 | - ), |
|
295 | - 'platform' => array( |
|
296 | - 'location' => 'query', |
|
297 | - 'type' => 'string', |
|
298 | - 'required' => true, |
|
299 | - ), |
|
300 | - ), |
|
301 | - ), |
|
302 | - ) |
|
303 | - ) |
|
304 | - ); |
|
54 | + parent::__construct($client); |
|
55 | + $this->rootUrl = 'https://www.googleapis.com/'; |
|
56 | + $this->servicePath = 'webmasters/v3/'; |
|
57 | + $this->version = 'v3'; |
|
58 | + $this->serviceName = 'webmasters'; |
|
59 | + |
|
60 | + $this->searchanalytics = new Google_Service_Webmasters_Searchanalytics_Resource( |
|
61 | + $this, |
|
62 | + $this->serviceName, |
|
63 | + 'searchanalytics', |
|
64 | + array( |
|
65 | + 'methods' => array( |
|
66 | + 'query' => array( |
|
67 | + 'path' => 'sites/{siteUrl}/searchAnalytics/query', |
|
68 | + 'httpMethod' => 'POST', |
|
69 | + 'parameters' => array( |
|
70 | + 'siteUrl' => array( |
|
71 | + 'location' => 'path', |
|
72 | + 'type' => 'string', |
|
73 | + 'required' => true, |
|
74 | + ), |
|
75 | + ), |
|
76 | + ), |
|
77 | + ) |
|
78 | + ) |
|
79 | + ); |
|
80 | + $this->sitemaps = new Google_Service_Webmasters_Sitemaps_Resource( |
|
81 | + $this, |
|
82 | + $this->serviceName, |
|
83 | + 'sitemaps', |
|
84 | + array( |
|
85 | + 'methods' => array( |
|
86 | + 'delete' => array( |
|
87 | + 'path' => 'sites/{siteUrl}/sitemaps/{feedpath}', |
|
88 | + 'httpMethod' => 'DELETE', |
|
89 | + 'parameters' => array( |
|
90 | + 'siteUrl' => array( |
|
91 | + 'location' => 'path', |
|
92 | + 'type' => 'string', |
|
93 | + 'required' => true, |
|
94 | + ), |
|
95 | + 'feedpath' => array( |
|
96 | + 'location' => 'path', |
|
97 | + 'type' => 'string', |
|
98 | + 'required' => true, |
|
99 | + ), |
|
100 | + ), |
|
101 | + ),'get' => array( |
|
102 | + 'path' => 'sites/{siteUrl}/sitemaps/{feedpath}', |
|
103 | + 'httpMethod' => 'GET', |
|
104 | + 'parameters' => array( |
|
105 | + 'siteUrl' => array( |
|
106 | + 'location' => 'path', |
|
107 | + 'type' => 'string', |
|
108 | + 'required' => true, |
|
109 | + ), |
|
110 | + 'feedpath' => array( |
|
111 | + 'location' => 'path', |
|
112 | + 'type' => 'string', |
|
113 | + 'required' => true, |
|
114 | + ), |
|
115 | + ), |
|
116 | + ),'list' => array( |
|
117 | + 'path' => 'sites/{siteUrl}/sitemaps', |
|
118 | + 'httpMethod' => 'GET', |
|
119 | + 'parameters' => array( |
|
120 | + 'siteUrl' => array( |
|
121 | + 'location' => 'path', |
|
122 | + 'type' => 'string', |
|
123 | + 'required' => true, |
|
124 | + ), |
|
125 | + 'sitemapIndex' => array( |
|
126 | + 'location' => 'query', |
|
127 | + 'type' => 'string', |
|
128 | + ), |
|
129 | + ), |
|
130 | + ),'submit' => array( |
|
131 | + 'path' => 'sites/{siteUrl}/sitemaps/{feedpath}', |
|
132 | + 'httpMethod' => 'PUT', |
|
133 | + 'parameters' => array( |
|
134 | + 'siteUrl' => array( |
|
135 | + 'location' => 'path', |
|
136 | + 'type' => 'string', |
|
137 | + 'required' => true, |
|
138 | + ), |
|
139 | + 'feedpath' => array( |
|
140 | + 'location' => 'path', |
|
141 | + 'type' => 'string', |
|
142 | + 'required' => true, |
|
143 | + ), |
|
144 | + ), |
|
145 | + ), |
|
146 | + ) |
|
147 | + ) |
|
148 | + ); |
|
149 | + $this->sites = new Google_Service_Webmasters_Sites_Resource( |
|
150 | + $this, |
|
151 | + $this->serviceName, |
|
152 | + 'sites', |
|
153 | + array( |
|
154 | + 'methods' => array( |
|
155 | + 'add' => array( |
|
156 | + 'path' => 'sites/{siteUrl}', |
|
157 | + 'httpMethod' => 'PUT', |
|
158 | + 'parameters' => array( |
|
159 | + 'siteUrl' => array( |
|
160 | + 'location' => 'path', |
|
161 | + 'type' => 'string', |
|
162 | + 'required' => true, |
|
163 | + ), |
|
164 | + ), |
|
165 | + ),'delete' => array( |
|
166 | + 'path' => 'sites/{siteUrl}', |
|
167 | + 'httpMethod' => 'DELETE', |
|
168 | + 'parameters' => array( |
|
169 | + 'siteUrl' => array( |
|
170 | + 'location' => 'path', |
|
171 | + 'type' => 'string', |
|
172 | + 'required' => true, |
|
173 | + ), |
|
174 | + ), |
|
175 | + ),'get' => array( |
|
176 | + 'path' => 'sites/{siteUrl}', |
|
177 | + 'httpMethod' => 'GET', |
|
178 | + 'parameters' => array( |
|
179 | + 'siteUrl' => array( |
|
180 | + 'location' => 'path', |
|
181 | + 'type' => 'string', |
|
182 | + 'required' => true, |
|
183 | + ), |
|
184 | + ), |
|
185 | + ),'list' => array( |
|
186 | + 'path' => 'sites', |
|
187 | + 'httpMethod' => 'GET', |
|
188 | + 'parameters' => array(), |
|
189 | + ), |
|
190 | + ) |
|
191 | + ) |
|
192 | + ); |
|
193 | + $this->urlcrawlerrorscounts = new Google_Service_Webmasters_Urlcrawlerrorscounts_Resource( |
|
194 | + $this, |
|
195 | + $this->serviceName, |
|
196 | + 'urlcrawlerrorscounts', |
|
197 | + array( |
|
198 | + 'methods' => array( |
|
199 | + 'query' => array( |
|
200 | + 'path' => 'sites/{siteUrl}/urlCrawlErrorsCounts/query', |
|
201 | + 'httpMethod' => 'GET', |
|
202 | + 'parameters' => array( |
|
203 | + 'siteUrl' => array( |
|
204 | + 'location' => 'path', |
|
205 | + 'type' => 'string', |
|
206 | + 'required' => true, |
|
207 | + ), |
|
208 | + 'category' => array( |
|
209 | + 'location' => 'query', |
|
210 | + 'type' => 'string', |
|
211 | + ), |
|
212 | + 'platform' => array( |
|
213 | + 'location' => 'query', |
|
214 | + 'type' => 'string', |
|
215 | + ), |
|
216 | + 'latestCountsOnly' => array( |
|
217 | + 'location' => 'query', |
|
218 | + 'type' => 'boolean', |
|
219 | + ), |
|
220 | + ), |
|
221 | + ), |
|
222 | + ) |
|
223 | + ) |
|
224 | + ); |
|
225 | + $this->urlcrawlerrorssamples = new Google_Service_Webmasters_Urlcrawlerrorssamples_Resource( |
|
226 | + $this, |
|
227 | + $this->serviceName, |
|
228 | + 'urlcrawlerrorssamples', |
|
229 | + array( |
|
230 | + 'methods' => array( |
|
231 | + 'get' => array( |
|
232 | + 'path' => 'sites/{siteUrl}/urlCrawlErrorsSamples/{url}', |
|
233 | + 'httpMethod' => 'GET', |
|
234 | + 'parameters' => array( |
|
235 | + 'siteUrl' => array( |
|
236 | + 'location' => 'path', |
|
237 | + 'type' => 'string', |
|
238 | + 'required' => true, |
|
239 | + ), |
|
240 | + 'url' => array( |
|
241 | + 'location' => 'path', |
|
242 | + 'type' => 'string', |
|
243 | + 'required' => true, |
|
244 | + ), |
|
245 | + 'category' => array( |
|
246 | + 'location' => 'query', |
|
247 | + 'type' => 'string', |
|
248 | + 'required' => true, |
|
249 | + ), |
|
250 | + 'platform' => array( |
|
251 | + 'location' => 'query', |
|
252 | + 'type' => 'string', |
|
253 | + 'required' => true, |
|
254 | + ), |
|
255 | + ), |
|
256 | + ),'list' => array( |
|
257 | + 'path' => 'sites/{siteUrl}/urlCrawlErrorsSamples', |
|
258 | + 'httpMethod' => 'GET', |
|
259 | + 'parameters' => array( |
|
260 | + 'siteUrl' => array( |
|
261 | + 'location' => 'path', |
|
262 | + 'type' => 'string', |
|
263 | + 'required' => true, |
|
264 | + ), |
|
265 | + 'category' => array( |
|
266 | + 'location' => 'query', |
|
267 | + 'type' => 'string', |
|
268 | + 'required' => true, |
|
269 | + ), |
|
270 | + 'platform' => array( |
|
271 | + 'location' => 'query', |
|
272 | + 'type' => 'string', |
|
273 | + 'required' => true, |
|
274 | + ), |
|
275 | + ), |
|
276 | + ),'markAsFixed' => array( |
|
277 | + 'path' => 'sites/{siteUrl}/urlCrawlErrorsSamples/{url}', |
|
278 | + 'httpMethod' => 'DELETE', |
|
279 | + 'parameters' => array( |
|
280 | + 'siteUrl' => array( |
|
281 | + 'location' => 'path', |
|
282 | + 'type' => 'string', |
|
283 | + 'required' => true, |
|
284 | + ), |
|
285 | + 'url' => array( |
|
286 | + 'location' => 'path', |
|
287 | + 'type' => 'string', |
|
288 | + 'required' => true, |
|
289 | + ), |
|
290 | + 'category' => array( |
|
291 | + 'location' => 'query', |
|
292 | + 'type' => 'string', |
|
293 | + 'required' => true, |
|
294 | + ), |
|
295 | + 'platform' => array( |
|
296 | + 'location' => 'query', |
|
297 | + 'type' => 'string', |
|
298 | + 'required' => true, |
|
299 | + ), |
|
300 | + ), |
|
301 | + ), |
|
302 | + ) |
|
303 | + ) |
|
304 | + ); |
|
305 | 305 | } |
306 | 306 | } |
307 | 307 | |
@@ -337,9 +337,9 @@ discard block |
||
337 | 337 | */ |
338 | 338 | public function query($siteUrl, Google_Service_Webmasters_SearchAnalyticsQueryRequest $postBody, $optParams = array()) |
339 | 339 | { |
340 | - $params = array('siteUrl' => $siteUrl, 'postBody' => $postBody); |
|
341 | - $params = array_merge($params, $optParams); |
|
342 | - return $this->call('query', array($params), "Google_Service_Webmasters_SearchAnalyticsQueryResponse"); |
|
340 | + $params = array('siteUrl' => $siteUrl, 'postBody' => $postBody); |
|
341 | + $params = array_merge($params, $optParams); |
|
342 | + return $this->call('query', array($params), "Google_Service_Webmasters_SearchAnalyticsQueryResponse"); |
|
343 | 343 | } |
344 | 344 | } |
345 | 345 | |
@@ -365,9 +365,9 @@ discard block |
||
365 | 365 | */ |
366 | 366 | public function delete($siteUrl, $feedpath, $optParams = array()) |
367 | 367 | { |
368 | - $params = array('siteUrl' => $siteUrl, 'feedpath' => $feedpath); |
|
369 | - $params = array_merge($params, $optParams); |
|
370 | - return $this->call('delete', array($params)); |
|
368 | + $params = array('siteUrl' => $siteUrl, 'feedpath' => $feedpath); |
|
369 | + $params = array_merge($params, $optParams); |
|
370 | + return $this->call('delete', array($params)); |
|
371 | 371 | } |
372 | 372 | |
373 | 373 | /** |
@@ -382,9 +382,9 @@ discard block |
||
382 | 382 | */ |
383 | 383 | public function get($siteUrl, $feedpath, $optParams = array()) |
384 | 384 | { |
385 | - $params = array('siteUrl' => $siteUrl, 'feedpath' => $feedpath); |
|
386 | - $params = array_merge($params, $optParams); |
|
387 | - return $this->call('get', array($params), "Google_Service_Webmasters_WmxSitemap"); |
|
385 | + $params = array('siteUrl' => $siteUrl, 'feedpath' => $feedpath); |
|
386 | + $params = array_merge($params, $optParams); |
|
387 | + return $this->call('get', array($params), "Google_Service_Webmasters_WmxSitemap"); |
|
388 | 388 | } |
389 | 389 | |
390 | 390 | /** |
@@ -402,9 +402,9 @@ discard block |
||
402 | 402 | */ |
403 | 403 | public function listSitemaps($siteUrl, $optParams = array()) |
404 | 404 | { |
405 | - $params = array('siteUrl' => $siteUrl); |
|
406 | - $params = array_merge($params, $optParams); |
|
407 | - return $this->call('list', array($params), "Google_Service_Webmasters_SitemapsListResponse"); |
|
405 | + $params = array('siteUrl' => $siteUrl); |
|
406 | + $params = array_merge($params, $optParams); |
|
407 | + return $this->call('list', array($params), "Google_Service_Webmasters_SitemapsListResponse"); |
|
408 | 408 | } |
409 | 409 | |
410 | 410 | /** |
@@ -418,9 +418,9 @@ discard block |
||
418 | 418 | */ |
419 | 419 | public function submit($siteUrl, $feedpath, $optParams = array()) |
420 | 420 | { |
421 | - $params = array('siteUrl' => $siteUrl, 'feedpath' => $feedpath); |
|
422 | - $params = array_merge($params, $optParams); |
|
423 | - return $this->call('submit', array($params)); |
|
421 | + $params = array('siteUrl' => $siteUrl, 'feedpath' => $feedpath); |
|
422 | + $params = array_merge($params, $optParams); |
|
423 | + return $this->call('submit', array($params)); |
|
424 | 424 | } |
425 | 425 | } |
426 | 426 | |
@@ -443,9 +443,9 @@ discard block |
||
443 | 443 | */ |
444 | 444 | public function add($siteUrl, $optParams = array()) |
445 | 445 | { |
446 | - $params = array('siteUrl' => $siteUrl); |
|
447 | - $params = array_merge($params, $optParams); |
|
448 | - return $this->call('add', array($params)); |
|
446 | + $params = array('siteUrl' => $siteUrl); |
|
447 | + $params = array_merge($params, $optParams); |
|
448 | + return $this->call('add', array($params)); |
|
449 | 449 | } |
450 | 450 | |
451 | 451 | /** |
@@ -458,9 +458,9 @@ discard block |
||
458 | 458 | */ |
459 | 459 | public function delete($siteUrl, $optParams = array()) |
460 | 460 | { |
461 | - $params = array('siteUrl' => $siteUrl); |
|
462 | - $params = array_merge($params, $optParams); |
|
463 | - return $this->call('delete', array($params)); |
|
461 | + $params = array('siteUrl' => $siteUrl); |
|
462 | + $params = array_merge($params, $optParams); |
|
463 | + return $this->call('delete', array($params)); |
|
464 | 464 | } |
465 | 465 | |
466 | 466 | /** |
@@ -473,9 +473,9 @@ discard block |
||
473 | 473 | */ |
474 | 474 | public function get($siteUrl, $optParams = array()) |
475 | 475 | { |
476 | - $params = array('siteUrl' => $siteUrl); |
|
477 | - $params = array_merge($params, $optParams); |
|
478 | - return $this->call('get', array($params), "Google_Service_Webmasters_WmxSite"); |
|
476 | + $params = array('siteUrl' => $siteUrl); |
|
477 | + $params = array_merge($params, $optParams); |
|
478 | + return $this->call('get', array($params), "Google_Service_Webmasters_WmxSite"); |
|
479 | 479 | } |
480 | 480 | |
481 | 481 | /** |
@@ -486,9 +486,9 @@ discard block |
||
486 | 486 | */ |
487 | 487 | public function listSites($optParams = array()) |
488 | 488 | { |
489 | - $params = array(); |
|
490 | - $params = array_merge($params, $optParams); |
|
491 | - return $this->call('list', array($params), "Google_Service_Webmasters_SitesListResponse"); |
|
489 | + $params = array(); |
|
490 | + $params = array_merge($params, $optParams); |
|
491 | + return $this->call('list', array($params), "Google_Service_Webmasters_SitesListResponse"); |
|
492 | 492 | } |
493 | 493 | } |
494 | 494 | |
@@ -522,9 +522,9 @@ discard block |
||
522 | 522 | */ |
523 | 523 | public function query($siteUrl, $optParams = array()) |
524 | 524 | { |
525 | - $params = array('siteUrl' => $siteUrl); |
|
526 | - $params = array_merge($params, $optParams); |
|
527 | - return $this->call('query', array($params), "Google_Service_Webmasters_UrlCrawlErrorsCountsQueryResponse"); |
|
525 | + $params = array('siteUrl' => $siteUrl); |
|
526 | + $params = array_merge($params, $optParams); |
|
527 | + return $this->call('query', array($params), "Google_Service_Webmasters_UrlCrawlErrorsCountsQueryResponse"); |
|
528 | 528 | } |
529 | 529 | } |
530 | 530 | |
@@ -558,9 +558,9 @@ discard block |
||
558 | 558 | */ |
559 | 559 | public function get($siteUrl, $url, $category, $platform, $optParams = array()) |
560 | 560 | { |
561 | - $params = array('siteUrl' => $siteUrl, 'url' => $url, 'category' => $category, 'platform' => $platform); |
|
562 | - $params = array_merge($params, $optParams); |
|
563 | - return $this->call('get', array($params), "Google_Service_Webmasters_UrlCrawlErrorsSample"); |
|
561 | + $params = array('siteUrl' => $siteUrl, 'url' => $url, 'category' => $category, 'platform' => $platform); |
|
562 | + $params = array_merge($params, $optParams); |
|
563 | + return $this->call('get', array($params), "Google_Service_Webmasters_UrlCrawlErrorsSample"); |
|
564 | 564 | } |
565 | 565 | |
566 | 566 | /** |
@@ -578,9 +578,9 @@ discard block |
||
578 | 578 | */ |
579 | 579 | public function listUrlcrawlerrorssamples($siteUrl, $category, $platform, $optParams = array()) |
580 | 580 | { |
581 | - $params = array('siteUrl' => $siteUrl, 'category' => $category, 'platform' => $platform); |
|
582 | - $params = array_merge($params, $optParams); |
|
583 | - return $this->call('list', array($params), "Google_Service_Webmasters_UrlCrawlErrorsSamplesListResponse"); |
|
581 | + $params = array('siteUrl' => $siteUrl, 'category' => $category, 'platform' => $platform); |
|
582 | + $params = array_merge($params, $optParams); |
|
583 | + return $this->call('list', array($params), "Google_Service_Webmasters_UrlCrawlErrorsSamplesListResponse"); |
|
584 | 584 | } |
585 | 585 | |
586 | 586 | /** |
@@ -601,9 +601,9 @@ discard block |
||
601 | 601 | */ |
602 | 602 | public function markAsFixed($siteUrl, $url, $category, $platform, $optParams = array()) |
603 | 603 | { |
604 | - $params = array('siteUrl' => $siteUrl, 'url' => $url, 'category' => $category, 'platform' => $platform); |
|
605 | - $params = array_merge($params, $optParams); |
|
606 | - return $this->call('markAsFixed', array($params)); |
|
604 | + $params = array('siteUrl' => $siteUrl, 'url' => $url, 'category' => $category, 'platform' => $platform); |
|
605 | + $params = array_merge($params, $optParams); |
|
606 | + return $this->call('markAsFixed', array($params)); |
|
607 | 607 | } |
608 | 608 | } |
609 | 609 | |
@@ -624,43 +624,43 @@ discard block |
||
624 | 624 | |
625 | 625 | public function setClicks($clicks) |
626 | 626 | { |
627 | - $this->clicks = $clicks; |
|
627 | + $this->clicks = $clicks; |
|
628 | 628 | } |
629 | 629 | public function getClicks() |
630 | 630 | { |
631 | - return $this->clicks; |
|
631 | + return $this->clicks; |
|
632 | 632 | } |
633 | 633 | public function setCtr($ctr) |
634 | 634 | { |
635 | - $this->ctr = $ctr; |
|
635 | + $this->ctr = $ctr; |
|
636 | 636 | } |
637 | 637 | public function getCtr() |
638 | 638 | { |
639 | - return $this->ctr; |
|
639 | + return $this->ctr; |
|
640 | 640 | } |
641 | 641 | public function setImpressions($impressions) |
642 | 642 | { |
643 | - $this->impressions = $impressions; |
|
643 | + $this->impressions = $impressions; |
|
644 | 644 | } |
645 | 645 | public function getImpressions() |
646 | 646 | { |
647 | - return $this->impressions; |
|
647 | + return $this->impressions; |
|
648 | 648 | } |
649 | 649 | public function setKeys($keys) |
650 | 650 | { |
651 | - $this->keys = $keys; |
|
651 | + $this->keys = $keys; |
|
652 | 652 | } |
653 | 653 | public function getKeys() |
654 | 654 | { |
655 | - return $this->keys; |
|
655 | + return $this->keys; |
|
656 | 656 | } |
657 | 657 | public function setPosition($position) |
658 | 658 | { |
659 | - $this->position = $position; |
|
659 | + $this->position = $position; |
|
660 | 660 | } |
661 | 661 | public function getPosition() |
662 | 662 | { |
663 | - return $this->position; |
|
663 | + return $this->position; |
|
664 | 664 | } |
665 | 665 | } |
666 | 666 | |
@@ -675,27 +675,27 @@ discard block |
||
675 | 675 | |
676 | 676 | public function setDimension($dimension) |
677 | 677 | { |
678 | - $this->dimension = $dimension; |
|
678 | + $this->dimension = $dimension; |
|
679 | 679 | } |
680 | 680 | public function getDimension() |
681 | 681 | { |
682 | - return $this->dimension; |
|
682 | + return $this->dimension; |
|
683 | 683 | } |
684 | 684 | public function setExpression($expression) |
685 | 685 | { |
686 | - $this->expression = $expression; |
|
686 | + $this->expression = $expression; |
|
687 | 687 | } |
688 | 688 | public function getExpression() |
689 | 689 | { |
690 | - return $this->expression; |
|
690 | + return $this->expression; |
|
691 | 691 | } |
692 | 692 | public function setOperator($operator) |
693 | 693 | { |
694 | - $this->operator = $operator; |
|
694 | + $this->operator = $operator; |
|
695 | 695 | } |
696 | 696 | public function getOperator() |
697 | 697 | { |
698 | - return $this->operator; |
|
698 | + return $this->operator; |
|
699 | 699 | } |
700 | 700 | } |
701 | 701 | |
@@ -711,19 +711,19 @@ discard block |
||
711 | 711 | |
712 | 712 | public function setFilters($filters) |
713 | 713 | { |
714 | - $this->filters = $filters; |
|
714 | + $this->filters = $filters; |
|
715 | 715 | } |
716 | 716 | public function getFilters() |
717 | 717 | { |
718 | - return $this->filters; |
|
718 | + return $this->filters; |
|
719 | 719 | } |
720 | 720 | public function setGroupType($groupType) |
721 | 721 | { |
722 | - $this->groupType = $groupType; |
|
722 | + $this->groupType = $groupType; |
|
723 | 723 | } |
724 | 724 | public function getGroupType() |
725 | 725 | { |
726 | - return $this->groupType; |
|
726 | + return $this->groupType; |
|
727 | 727 | } |
728 | 728 | } |
729 | 729 | |
@@ -744,59 +744,59 @@ discard block |
||
744 | 744 | |
745 | 745 | public function setAggregationType($aggregationType) |
746 | 746 | { |
747 | - $this->aggregationType = $aggregationType; |
|
747 | + $this->aggregationType = $aggregationType; |
|
748 | 748 | } |
749 | 749 | public function getAggregationType() |
750 | 750 | { |
751 | - return $this->aggregationType; |
|
751 | + return $this->aggregationType; |
|
752 | 752 | } |
753 | 753 | public function setDimensionFilterGroups($dimensionFilterGroups) |
754 | 754 | { |
755 | - $this->dimensionFilterGroups = $dimensionFilterGroups; |
|
755 | + $this->dimensionFilterGroups = $dimensionFilterGroups; |
|
756 | 756 | } |
757 | 757 | public function getDimensionFilterGroups() |
758 | 758 | { |
759 | - return $this->dimensionFilterGroups; |
|
759 | + return $this->dimensionFilterGroups; |
|
760 | 760 | } |
761 | 761 | public function setDimensions($dimensions) |
762 | 762 | { |
763 | - $this->dimensions = $dimensions; |
|
763 | + $this->dimensions = $dimensions; |
|
764 | 764 | } |
765 | 765 | public function getDimensions() |
766 | 766 | { |
767 | - return $this->dimensions; |
|
767 | + return $this->dimensions; |
|
768 | 768 | } |
769 | 769 | public function setEndDate($endDate) |
770 | 770 | { |
771 | - $this->endDate = $endDate; |
|
771 | + $this->endDate = $endDate; |
|
772 | 772 | } |
773 | 773 | public function getEndDate() |
774 | 774 | { |
775 | - return $this->endDate; |
|
775 | + return $this->endDate; |
|
776 | 776 | } |
777 | 777 | public function setRowLimit($rowLimit) |
778 | 778 | { |
779 | - $this->rowLimit = $rowLimit; |
|
779 | + $this->rowLimit = $rowLimit; |
|
780 | 780 | } |
781 | 781 | public function getRowLimit() |
782 | 782 | { |
783 | - return $this->rowLimit; |
|
783 | + return $this->rowLimit; |
|
784 | 784 | } |
785 | 785 | public function setSearchType($searchType) |
786 | 786 | { |
787 | - $this->searchType = $searchType; |
|
787 | + $this->searchType = $searchType; |
|
788 | 788 | } |
789 | 789 | public function getSearchType() |
790 | 790 | { |
791 | - return $this->searchType; |
|
791 | + return $this->searchType; |
|
792 | 792 | } |
793 | 793 | public function setStartDate($startDate) |
794 | 794 | { |
795 | - $this->startDate = $startDate; |
|
795 | + $this->startDate = $startDate; |
|
796 | 796 | } |
797 | 797 | public function getStartDate() |
798 | 798 | { |
799 | - return $this->startDate; |
|
799 | + return $this->startDate; |
|
800 | 800 | } |
801 | 801 | } |
802 | 802 | |
@@ -812,19 +812,19 @@ discard block |
||
812 | 812 | |
813 | 813 | public function setResponseAggregationType($responseAggregationType) |
814 | 814 | { |
815 | - $this->responseAggregationType = $responseAggregationType; |
|
815 | + $this->responseAggregationType = $responseAggregationType; |
|
816 | 816 | } |
817 | 817 | public function getResponseAggregationType() |
818 | 818 | { |
819 | - return $this->responseAggregationType; |
|
819 | + return $this->responseAggregationType; |
|
820 | 820 | } |
821 | 821 | public function setRows($rows) |
822 | 822 | { |
823 | - $this->rows = $rows; |
|
823 | + $this->rows = $rows; |
|
824 | 824 | } |
825 | 825 | public function getRows() |
826 | 826 | { |
827 | - return $this->rows; |
|
827 | + return $this->rows; |
|
828 | 828 | } |
829 | 829 | } |
830 | 830 | |
@@ -839,11 +839,11 @@ discard block |
||
839 | 839 | |
840 | 840 | public function setSitemap($sitemap) |
841 | 841 | { |
842 | - $this->sitemap = $sitemap; |
|
842 | + $this->sitemap = $sitemap; |
|
843 | 843 | } |
844 | 844 | public function getSitemap() |
845 | 845 | { |
846 | - return $this->sitemap; |
|
846 | + return $this->sitemap; |
|
847 | 847 | } |
848 | 848 | } |
849 | 849 | |
@@ -858,11 +858,11 @@ discard block |
||
858 | 858 | |
859 | 859 | public function setSiteEntry($siteEntry) |
860 | 860 | { |
861 | - $this->siteEntry = $siteEntry; |
|
861 | + $this->siteEntry = $siteEntry; |
|
862 | 862 | } |
863 | 863 | public function getSiteEntry() |
864 | 864 | { |
865 | - return $this->siteEntry; |
|
865 | + return $this->siteEntry; |
|
866 | 866 | } |
867 | 867 | } |
868 | 868 | |
@@ -876,19 +876,19 @@ discard block |
||
876 | 876 | |
877 | 877 | public function setCount($count) |
878 | 878 | { |
879 | - $this->count = $count; |
|
879 | + $this->count = $count; |
|
880 | 880 | } |
881 | 881 | public function getCount() |
882 | 882 | { |
883 | - return $this->count; |
|
883 | + return $this->count; |
|
884 | 884 | } |
885 | 885 | public function setTimestamp($timestamp) |
886 | 886 | { |
887 | - $this->timestamp = $timestamp; |
|
887 | + $this->timestamp = $timestamp; |
|
888 | 888 | } |
889 | 889 | public function getTimestamp() |
890 | 890 | { |
891 | - return $this->timestamp; |
|
891 | + return $this->timestamp; |
|
892 | 892 | } |
893 | 893 | } |
894 | 894 | |
@@ -905,27 +905,27 @@ discard block |
||
905 | 905 | |
906 | 906 | public function setCategory($category) |
907 | 907 | { |
908 | - $this->category = $category; |
|
908 | + $this->category = $category; |
|
909 | 909 | } |
910 | 910 | public function getCategory() |
911 | 911 | { |
912 | - return $this->category; |
|
912 | + return $this->category; |
|
913 | 913 | } |
914 | 914 | public function setEntries($entries) |
915 | 915 | { |
916 | - $this->entries = $entries; |
|
916 | + $this->entries = $entries; |
|
917 | 917 | } |
918 | 918 | public function getEntries() |
919 | 919 | { |
920 | - return $this->entries; |
|
920 | + return $this->entries; |
|
921 | 921 | } |
922 | 922 | public function setPlatform($platform) |
923 | 923 | { |
924 | - $this->platform = $platform; |
|
924 | + $this->platform = $platform; |
|
925 | 925 | } |
926 | 926 | public function getPlatform() |
927 | 927 | { |
928 | - return $this->platform; |
|
928 | + return $this->platform; |
|
929 | 929 | } |
930 | 930 | } |
931 | 931 | |
@@ -940,19 +940,19 @@ discard block |
||
940 | 940 | |
941 | 941 | public function setCountPerTypes($countPerTypes) |
942 | 942 | { |
943 | - $this->countPerTypes = $countPerTypes; |
|
943 | + $this->countPerTypes = $countPerTypes; |
|
944 | 944 | } |
945 | 945 | public function getCountPerTypes() |
946 | 946 | { |
947 | - return $this->countPerTypes; |
|
947 | + return $this->countPerTypes; |
|
948 | 948 | } |
949 | 949 | } |
950 | 950 | |
951 | 951 | class Google_Service_Webmasters_UrlCrawlErrorsSample extends Google_Model |
952 | 952 | { |
953 | 953 | protected $internal_gapi_mappings = array( |
954 | - "firstDetected" => "first_detected", |
|
955 | - "lastCrawled" => "last_crawled", |
|
954 | + "firstDetected" => "first_detected", |
|
955 | + "lastCrawled" => "last_crawled", |
|
956 | 956 | ); |
957 | 957 | public $firstDetected; |
958 | 958 | public $lastCrawled; |
@@ -964,43 +964,43 @@ discard block |
||
964 | 964 | |
965 | 965 | public function setFirstDetected($firstDetected) |
966 | 966 | { |
967 | - $this->firstDetected = $firstDetected; |
|
967 | + $this->firstDetected = $firstDetected; |
|
968 | 968 | } |
969 | 969 | public function getFirstDetected() |
970 | 970 | { |
971 | - return $this->firstDetected; |
|
971 | + return $this->firstDetected; |
|
972 | 972 | } |
973 | 973 | public function setLastCrawled($lastCrawled) |
974 | 974 | { |
975 | - $this->lastCrawled = $lastCrawled; |
|
975 | + $this->lastCrawled = $lastCrawled; |
|
976 | 976 | } |
977 | 977 | public function getLastCrawled() |
978 | 978 | { |
979 | - return $this->lastCrawled; |
|
979 | + return $this->lastCrawled; |
|
980 | 980 | } |
981 | 981 | public function setPageUrl($pageUrl) |
982 | 982 | { |
983 | - $this->pageUrl = $pageUrl; |
|
983 | + $this->pageUrl = $pageUrl; |
|
984 | 984 | } |
985 | 985 | public function getPageUrl() |
986 | 986 | { |
987 | - return $this->pageUrl; |
|
987 | + return $this->pageUrl; |
|
988 | 988 | } |
989 | 989 | public function setResponseCode($responseCode) |
990 | 990 | { |
991 | - $this->responseCode = $responseCode; |
|
991 | + $this->responseCode = $responseCode; |
|
992 | 992 | } |
993 | 993 | public function getResponseCode() |
994 | 994 | { |
995 | - return $this->responseCode; |
|
995 | + return $this->responseCode; |
|
996 | 996 | } |
997 | 997 | public function setUrlDetails(Google_Service_Webmasters_UrlSampleDetails $urlDetails) |
998 | 998 | { |
999 | - $this->urlDetails = $urlDetails; |
|
999 | + $this->urlDetails = $urlDetails; |
|
1000 | 1000 | } |
1001 | 1001 | public function getUrlDetails() |
1002 | 1002 | { |
1003 | - return $this->urlDetails; |
|
1003 | + return $this->urlDetails; |
|
1004 | 1004 | } |
1005 | 1005 | } |
1006 | 1006 | |
@@ -1015,11 +1015,11 @@ discard block |
||
1015 | 1015 | |
1016 | 1016 | public function setUrlCrawlErrorSample($urlCrawlErrorSample) |
1017 | 1017 | { |
1018 | - $this->urlCrawlErrorSample = $urlCrawlErrorSample; |
|
1018 | + $this->urlCrawlErrorSample = $urlCrawlErrorSample; |
|
1019 | 1019 | } |
1020 | 1020 | public function getUrlCrawlErrorSample() |
1021 | 1021 | { |
1022 | - return $this->urlCrawlErrorSample; |
|
1022 | + return $this->urlCrawlErrorSample; |
|
1023 | 1023 | } |
1024 | 1024 | } |
1025 | 1025 | |
@@ -1034,19 +1034,19 @@ discard block |
||
1034 | 1034 | |
1035 | 1035 | public function setContainingSitemaps($containingSitemaps) |
1036 | 1036 | { |
1037 | - $this->containingSitemaps = $containingSitemaps; |
|
1037 | + $this->containingSitemaps = $containingSitemaps; |
|
1038 | 1038 | } |
1039 | 1039 | public function getContainingSitemaps() |
1040 | 1040 | { |
1041 | - return $this->containingSitemaps; |
|
1041 | + return $this->containingSitemaps; |
|
1042 | 1042 | } |
1043 | 1043 | public function setLinkedFromUrls($linkedFromUrls) |
1044 | 1044 | { |
1045 | - $this->linkedFromUrls = $linkedFromUrls; |
|
1045 | + $this->linkedFromUrls = $linkedFromUrls; |
|
1046 | 1046 | } |
1047 | 1047 | public function getLinkedFromUrls() |
1048 | 1048 | { |
1049 | - return $this->linkedFromUrls; |
|
1049 | + return $this->linkedFromUrls; |
|
1050 | 1050 | } |
1051 | 1051 | } |
1052 | 1052 | |
@@ -1060,19 +1060,19 @@ discard block |
||
1060 | 1060 | |
1061 | 1061 | public function setPermissionLevel($permissionLevel) |
1062 | 1062 | { |
1063 | - $this->permissionLevel = $permissionLevel; |
|
1063 | + $this->permissionLevel = $permissionLevel; |
|
1064 | 1064 | } |
1065 | 1065 | public function getPermissionLevel() |
1066 | 1066 | { |
1067 | - return $this->permissionLevel; |
|
1067 | + return $this->permissionLevel; |
|
1068 | 1068 | } |
1069 | 1069 | public function setSiteUrl($siteUrl) |
1070 | 1070 | { |
1071 | - $this->siteUrl = $siteUrl; |
|
1071 | + $this->siteUrl = $siteUrl; |
|
1072 | 1072 | } |
1073 | 1073 | public function getSiteUrl() |
1074 | 1074 | { |
1075 | - return $this->siteUrl; |
|
1075 | + return $this->siteUrl; |
|
1076 | 1076 | } |
1077 | 1077 | } |
1078 | 1078 | |
@@ -1095,75 +1095,75 @@ discard block |
||
1095 | 1095 | |
1096 | 1096 | public function setContents($contents) |
1097 | 1097 | { |
1098 | - $this->contents = $contents; |
|
1098 | + $this->contents = $contents; |
|
1099 | 1099 | } |
1100 | 1100 | public function getContents() |
1101 | 1101 | { |
1102 | - return $this->contents; |
|
1102 | + return $this->contents; |
|
1103 | 1103 | } |
1104 | 1104 | public function setErrors($errors) |
1105 | 1105 | { |
1106 | - $this->errors = $errors; |
|
1106 | + $this->errors = $errors; |
|
1107 | 1107 | } |
1108 | 1108 | public function getErrors() |
1109 | 1109 | { |
1110 | - return $this->errors; |
|
1110 | + return $this->errors; |
|
1111 | 1111 | } |
1112 | 1112 | public function setIsPending($isPending) |
1113 | 1113 | { |
1114 | - $this->isPending = $isPending; |
|
1114 | + $this->isPending = $isPending; |
|
1115 | 1115 | } |
1116 | 1116 | public function getIsPending() |
1117 | 1117 | { |
1118 | - return $this->isPending; |
|
1118 | + return $this->isPending; |
|
1119 | 1119 | } |
1120 | 1120 | public function setIsSitemapsIndex($isSitemapsIndex) |
1121 | 1121 | { |
1122 | - $this->isSitemapsIndex = $isSitemapsIndex; |
|
1122 | + $this->isSitemapsIndex = $isSitemapsIndex; |
|
1123 | 1123 | } |
1124 | 1124 | public function getIsSitemapsIndex() |
1125 | 1125 | { |
1126 | - return $this->isSitemapsIndex; |
|
1126 | + return $this->isSitemapsIndex; |
|
1127 | 1127 | } |
1128 | 1128 | public function setLastDownloaded($lastDownloaded) |
1129 | 1129 | { |
1130 | - $this->lastDownloaded = $lastDownloaded; |
|
1130 | + $this->lastDownloaded = $lastDownloaded; |
|
1131 | 1131 | } |
1132 | 1132 | public function getLastDownloaded() |
1133 | 1133 | { |
1134 | - return $this->lastDownloaded; |
|
1134 | + return $this->lastDownloaded; |
|
1135 | 1135 | } |
1136 | 1136 | public function setLastSubmitted($lastSubmitted) |
1137 | 1137 | { |
1138 | - $this->lastSubmitted = $lastSubmitted; |
|
1138 | + $this->lastSubmitted = $lastSubmitted; |
|
1139 | 1139 | } |
1140 | 1140 | public function getLastSubmitted() |
1141 | 1141 | { |
1142 | - return $this->lastSubmitted; |
|
1142 | + return $this->lastSubmitted; |
|
1143 | 1143 | } |
1144 | 1144 | public function setPath($path) |
1145 | 1145 | { |
1146 | - $this->path = $path; |
|
1146 | + $this->path = $path; |
|
1147 | 1147 | } |
1148 | 1148 | public function getPath() |
1149 | 1149 | { |
1150 | - return $this->path; |
|
1150 | + return $this->path; |
|
1151 | 1151 | } |
1152 | 1152 | public function setType($type) |
1153 | 1153 | { |
1154 | - $this->type = $type; |
|
1154 | + $this->type = $type; |
|
1155 | 1155 | } |
1156 | 1156 | public function getType() |
1157 | 1157 | { |
1158 | - return $this->type; |
|
1158 | + return $this->type; |
|
1159 | 1159 | } |
1160 | 1160 | public function setWarnings($warnings) |
1161 | 1161 | { |
1162 | - $this->warnings = $warnings; |
|
1162 | + $this->warnings = $warnings; |
|
1163 | 1163 | } |
1164 | 1164 | public function getWarnings() |
1165 | 1165 | { |
1166 | - return $this->warnings; |
|
1166 | + return $this->warnings; |
|
1167 | 1167 | } |
1168 | 1168 | } |
1169 | 1169 | |
@@ -1178,26 +1178,26 @@ discard block |
||
1178 | 1178 | |
1179 | 1179 | public function setIndexed($indexed) |
1180 | 1180 | { |
1181 | - $this->indexed = $indexed; |
|
1181 | + $this->indexed = $indexed; |
|
1182 | 1182 | } |
1183 | 1183 | public function getIndexed() |
1184 | 1184 | { |
1185 | - return $this->indexed; |
|
1185 | + return $this->indexed; |
|
1186 | 1186 | } |
1187 | 1187 | public function setSubmitted($submitted) |
1188 | 1188 | { |
1189 | - $this->submitted = $submitted; |
|
1189 | + $this->submitted = $submitted; |
|
1190 | 1190 | } |
1191 | 1191 | public function getSubmitted() |
1192 | 1192 | { |
1193 | - return $this->submitted; |
|
1193 | + return $this->submitted; |
|
1194 | 1194 | } |
1195 | 1195 | public function setType($type) |
1196 | 1196 | { |
1197 | - $this->type = $type; |
|
1197 | + $this->type = $type; |
|
1198 | 1198 | } |
1199 | 1199 | public function getType() |
1200 | 1200 | { |
1201 | - return $this->type; |
|
1201 | + return $this->type; |
|
1202 | 1202 | } |
1203 | 1203 | } |
@@ -98,7 +98,7 @@ discard block |
||
98 | 98 | 'required' => true, |
99 | 99 | ), |
100 | 100 | ), |
101 | - ),'get' => array( |
|
101 | + ), 'get' => array( |
|
102 | 102 | 'path' => 'sites/{siteUrl}/sitemaps/{feedpath}', |
103 | 103 | 'httpMethod' => 'GET', |
104 | 104 | 'parameters' => array( |
@@ -113,7 +113,7 @@ discard block |
||
113 | 113 | 'required' => true, |
114 | 114 | ), |
115 | 115 | ), |
116 | - ),'list' => array( |
|
116 | + ), 'list' => array( |
|
117 | 117 | 'path' => 'sites/{siteUrl}/sitemaps', |
118 | 118 | 'httpMethod' => 'GET', |
119 | 119 | 'parameters' => array( |
@@ -127,7 +127,7 @@ discard block |
||
127 | 127 | 'type' => 'string', |
128 | 128 | ), |
129 | 129 | ), |
130 | - ),'submit' => array( |
|
130 | + ), 'submit' => array( |
|
131 | 131 | 'path' => 'sites/{siteUrl}/sitemaps/{feedpath}', |
132 | 132 | 'httpMethod' => 'PUT', |
133 | 133 | 'parameters' => array( |
@@ -162,7 +162,7 @@ discard block |
||
162 | 162 | 'required' => true, |
163 | 163 | ), |
164 | 164 | ), |
165 | - ),'delete' => array( |
|
165 | + ), 'delete' => array( |
|
166 | 166 | 'path' => 'sites/{siteUrl}', |
167 | 167 | 'httpMethod' => 'DELETE', |
168 | 168 | 'parameters' => array( |
@@ -172,7 +172,7 @@ discard block |
||
172 | 172 | 'required' => true, |
173 | 173 | ), |
174 | 174 | ), |
175 | - ),'get' => array( |
|
175 | + ), 'get' => array( |
|
176 | 176 | 'path' => 'sites/{siteUrl}', |
177 | 177 | 'httpMethod' => 'GET', |
178 | 178 | 'parameters' => array( |
@@ -182,7 +182,7 @@ discard block |
||
182 | 182 | 'required' => true, |
183 | 183 | ), |
184 | 184 | ), |
185 | - ),'list' => array( |
|
185 | + ), 'list' => array( |
|
186 | 186 | 'path' => 'sites', |
187 | 187 | 'httpMethod' => 'GET', |
188 | 188 | 'parameters' => array(), |
@@ -253,7 +253,7 @@ discard block |
||
253 | 253 | 'required' => true, |
254 | 254 | ), |
255 | 255 | ), |
256 | - ),'list' => array( |
|
256 | + ), 'list' => array( |
|
257 | 257 | 'path' => 'sites/{siteUrl}/urlCrawlErrorsSamples', |
258 | 258 | 'httpMethod' => 'GET', |
259 | 259 | 'parameters' => array( |
@@ -273,7 +273,7 @@ discard block |
||
273 | 273 | 'required' => true, |
274 | 274 | ), |
275 | 275 | ), |
276 | - ),'markAsFixed' => array( |
|
276 | + ), 'markAsFixed' => array( |
|
277 | 277 | 'path' => 'sites/{siteUrl}/urlCrawlErrorsSamples/{url}', |
278 | 278 | 'httpMethod' => 'DELETE', |
279 | 279 | 'parameters' => array( |
@@ -23,4 +23,4 @@ |
||
23 | 23 | $error = "google-api-php-client's autoloader was moved to src/Google/autoload.php in 1.1.3. This "; |
24 | 24 | $error .= "redirect will be removed in 1.2. Please adjust your code to use the new location."; |
25 | 25 | trigger_error($error, E_USER_DEPRECATED); |
26 | -require_once dirname(__FILE__) . '/src/Google/autoload.php'; |
|
26 | +require_once dirname(__FILE__).'/src/Google/autoload.php'; |
@@ -27,7 +27,7 @@ discard block |
||
27 | 27 | |
28 | 28 | public function __construct(Google_Client $client) |
29 | 29 | { |
30 | - $this->client = $client; |
|
30 | + $this->client = $client; |
|
31 | 31 | } |
32 | 32 | |
33 | 33 | /** |
@@ -36,7 +36,7 @@ discard block |
||
36 | 36 | */ |
37 | 37 | public function getClient() |
38 | 38 | { |
39 | - return $this->client; |
|
39 | + return $this->client; |
|
40 | 40 | } |
41 | 41 | |
42 | 42 | /** |
@@ -46,11 +46,11 @@ discard block |
||
46 | 46 | */ |
47 | 47 | public function createBatch() |
48 | 48 | { |
49 | - return new Google_Http_Batch( |
|
50 | - $this->client, |
|
51 | - false, |
|
52 | - $this->rootUrl, |
|
53 | - $this->batchPath |
|
54 | - ); |
|
49 | + return new Google_Http_Batch( |
|
50 | + $this->client, |
|
51 | + false, |
|
52 | + $this->rootUrl, |
|
53 | + $this->batchPath |
|
54 | + ); |
|
55 | 55 | } |
56 | 56 | } |
@@ -23,23 +23,23 @@ discard block |
||
23 | 23 | { |
24 | 24 | public static function urlSafeB64Encode($data) |
25 | 25 | { |
26 | - $b64 = base64_encode($data); |
|
27 | - $b64 = str_replace( |
|
28 | - array('+', '/', '\r', '\n', '='), |
|
29 | - array('-', '_'), |
|
30 | - $b64 |
|
31 | - ); |
|
32 | - return $b64; |
|
26 | + $b64 = base64_encode($data); |
|
27 | + $b64 = str_replace( |
|
28 | + array('+', '/', '\r', '\n', '='), |
|
29 | + array('-', '_'), |
|
30 | + $b64 |
|
31 | + ); |
|
32 | + return $b64; |
|
33 | 33 | } |
34 | 34 | |
35 | 35 | public static function urlSafeB64Decode($b64) |
36 | 36 | { |
37 | - $b64 = str_replace( |
|
38 | - array('-', '_'), |
|
39 | - array('+', '/'), |
|
40 | - $b64 |
|
41 | - ); |
|
42 | - return base64_decode($b64); |
|
37 | + $b64 = str_replace( |
|
38 | + array('-', '_'), |
|
39 | + array('+', '/'), |
|
40 | + $b64 |
|
41 | + ); |
|
42 | + return base64_decode($b64); |
|
43 | 43 | } |
44 | 44 | |
45 | 45 | /** |
@@ -59,45 +59,45 @@ discard block |
||
59 | 59 | */ |
60 | 60 | public static function getStrLen($str) |
61 | 61 | { |
62 | - $strlenVar = strlen($str); |
|
63 | - $d = $ret = 0; |
|
64 | - for ($count = 0; $count < $strlenVar; ++ $count) { |
|
65 | - $ordinalValue = ord($str{$ret}); |
|
66 | - switch (true) { |
|
67 | - case (($ordinalValue >= 0x20) && ($ordinalValue <= 0x7F)): |
|
68 | - // characters U-00000000 - U-0000007F (same as ASCII) |
|
69 | - $ret ++; |
|
70 | - break; |
|
71 | - case (($ordinalValue & 0xE0) == 0xC0): |
|
72 | - // characters U-00000080 - U-000007FF, mask 110XXXXX |
|
73 | - // see http://www.cl.cam.ac.uk/~mgk25/unicode.html#utf-8 |
|
74 | - $ret += 2; |
|
75 | - break; |
|
76 | - case (($ordinalValue & 0xF0) == 0xE0): |
|
77 | - // characters U-00000800 - U-0000FFFF, mask 1110XXXX |
|
78 | - // see http://www.cl.cam.ac.uk/~mgk25/unicode.html#utf-8 |
|
79 | - $ret += 3; |
|
80 | - break; |
|
81 | - case (($ordinalValue & 0xF8) == 0xF0): |
|
82 | - // characters U-00010000 - U-001FFFFF, mask 11110XXX |
|
83 | - // see http://www.cl.cam.ac.uk/~mgk25/unicode.html#utf-8 |
|
84 | - $ret += 4; |
|
85 | - break; |
|
86 | - case (($ordinalValue & 0xFC) == 0xF8): |
|
87 | - // characters U-00200000 - U-03FFFFFF, mask 111110XX |
|
88 | - // see http://www.cl.cam.ac.uk/~mgk25/unicode.html#utf-8 |
|
89 | - $ret += 5; |
|
90 | - break; |
|
91 | - case (($ordinalValue & 0xFE) == 0xFC): |
|
92 | - // characters U-04000000 - U-7FFFFFFF, mask 1111110X |
|
93 | - // see http://www.cl.cam.ac.uk/~mgk25/unicode.html#utf-8 |
|
94 | - $ret += 6; |
|
95 | - break; |
|
96 | - default: |
|
97 | - $ret ++; |
|
98 | - } |
|
99 | - } |
|
100 | - return $ret; |
|
62 | + $strlenVar = strlen($str); |
|
63 | + $d = $ret = 0; |
|
64 | + for ($count = 0; $count < $strlenVar; ++ $count) { |
|
65 | + $ordinalValue = ord($str{$ret}); |
|
66 | + switch (true) { |
|
67 | + case (($ordinalValue >= 0x20) && ($ordinalValue <= 0x7F)): |
|
68 | + // characters U-00000000 - U-0000007F (same as ASCII) |
|
69 | + $ret ++; |
|
70 | + break; |
|
71 | + case (($ordinalValue & 0xE0) == 0xC0): |
|
72 | + // characters U-00000080 - U-000007FF, mask 110XXXXX |
|
73 | + // see http://www.cl.cam.ac.uk/~mgk25/unicode.html#utf-8 |
|
74 | + $ret += 2; |
|
75 | + break; |
|
76 | + case (($ordinalValue & 0xF0) == 0xE0): |
|
77 | + // characters U-00000800 - U-0000FFFF, mask 1110XXXX |
|
78 | + // see http://www.cl.cam.ac.uk/~mgk25/unicode.html#utf-8 |
|
79 | + $ret += 3; |
|
80 | + break; |
|
81 | + case (($ordinalValue & 0xF8) == 0xF0): |
|
82 | + // characters U-00010000 - U-001FFFFF, mask 11110XXX |
|
83 | + // see http://www.cl.cam.ac.uk/~mgk25/unicode.html#utf-8 |
|
84 | + $ret += 4; |
|
85 | + break; |
|
86 | + case (($ordinalValue & 0xFC) == 0xF8): |
|
87 | + // characters U-00200000 - U-03FFFFFF, mask 111110XX |
|
88 | + // see http://www.cl.cam.ac.uk/~mgk25/unicode.html#utf-8 |
|
89 | + $ret += 5; |
|
90 | + break; |
|
91 | + case (($ordinalValue & 0xFE) == 0xFC): |
|
92 | + // characters U-04000000 - U-7FFFFFFF, mask 1111110X |
|
93 | + // see http://www.cl.cam.ac.uk/~mgk25/unicode.html#utf-8 |
|
94 | + $ret += 6; |
|
95 | + break; |
|
96 | + default: |
|
97 | + $ret ++; |
|
98 | + } |
|
99 | + } |
|
100 | + return $ret; |
|
101 | 101 | } |
102 | 102 | |
103 | 103 | /** |
@@ -107,15 +107,15 @@ discard block |
||
107 | 107 | */ |
108 | 108 | public static function normalize($arr) |
109 | 109 | { |
110 | - if (!is_array($arr)) { |
|
111 | - return array(); |
|
112 | - } |
|
110 | + if (!is_array($arr)) { |
|
111 | + return array(); |
|
112 | + } |
|
113 | 113 | |
114 | - $normalized = array(); |
|
115 | - foreach ($arr as $key => $val) { |
|
116 | - $normalized[strtolower($key)] = $val; |
|
117 | - } |
|
118 | - return $normalized; |
|
114 | + $normalized = array(); |
|
115 | + foreach ($arr as $key => $val) { |
|
116 | + $normalized[strtolower($key)] = $val; |
|
117 | + } |
|
118 | + return $normalized; |
|
119 | 119 | } |
120 | 120 | |
121 | 121 | /** |
@@ -125,9 +125,9 @@ discard block |
||
125 | 125 | */ |
126 | 126 | public static function camelCase($value) |
127 | 127 | { |
128 | - $value = ucwords(str_replace(array('-', '_'), ' ', $value)); |
|
129 | - $value = str_replace(' ', '', $value); |
|
130 | - $value[0] = strtolower($value[0]); |
|
131 | - return $value; |
|
128 | + $value = ucwords(str_replace(array('-', '_'), ' ', $value)); |
|
129 | + $value = str_replace(' ', '', $value); |
|
130 | + $value[0] = strtolower($value[0]); |
|
131 | + return $value; |
|
132 | 132 | } |
133 | 133 | } |
@@ -66,7 +66,7 @@ discard block |
||
66 | 66 | switch (true) { |
67 | 67 | case (($ordinalValue >= 0x20) && ($ordinalValue <= 0x7F)): |
68 | 68 | // characters U-00000000 - U-0000007F (same as ASCII) |
69 | - $ret ++; |
|
69 | + $ret++; |
|
70 | 70 | break; |
71 | 71 | case (($ordinalValue & 0xE0) == 0xC0): |
72 | 72 | // characters U-00000080 - U-000007FF, mask 110XXXXX |
@@ -94,7 +94,7 @@ discard block |
||
94 | 94 | $ret += 6; |
95 | 95 | break; |
96 | 96 | default: |
97 | - $ret ++; |
|
97 | + $ret++; |
|
98 | 98 | } |
99 | 99 | } |
100 | 100 | return $ret; |
@@ -15,87 +15,87 @@ |
||
15 | 15 | |
16 | 16 | public function rewind() |
17 | 17 | { |
18 | - if (isset($this->modelData[$this->collection_key]) |
|
19 | - && is_array($this->modelData[$this->collection_key])) { |
|
20 | - reset($this->modelData[$this->collection_key]); |
|
21 | - } |
|
18 | + if (isset($this->modelData[$this->collection_key]) |
|
19 | + && is_array($this->modelData[$this->collection_key])) { |
|
20 | + reset($this->modelData[$this->collection_key]); |
|
21 | + } |
|
22 | 22 | } |
23 | 23 | |
24 | 24 | public function current() |
25 | 25 | { |
26 | - $this->coerceType($this->key()); |
|
27 | - if (is_array($this->modelData[$this->collection_key])) { |
|
28 | - return current($this->modelData[$this->collection_key]); |
|
29 | - } |
|
26 | + $this->coerceType($this->key()); |
|
27 | + if (is_array($this->modelData[$this->collection_key])) { |
|
28 | + return current($this->modelData[$this->collection_key]); |
|
29 | + } |
|
30 | 30 | } |
31 | 31 | |
32 | 32 | public function key() |
33 | 33 | { |
34 | - if (isset($this->modelData[$this->collection_key]) |
|
35 | - && is_array($this->modelData[$this->collection_key])) { |
|
36 | - return key($this->modelData[$this->collection_key]); |
|
37 | - } |
|
34 | + if (isset($this->modelData[$this->collection_key]) |
|
35 | + && is_array($this->modelData[$this->collection_key])) { |
|
36 | + return key($this->modelData[$this->collection_key]); |
|
37 | + } |
|
38 | 38 | } |
39 | 39 | |
40 | 40 | public function next() |
41 | 41 | { |
42 | - return next($this->modelData[$this->collection_key]); |
|
42 | + return next($this->modelData[$this->collection_key]); |
|
43 | 43 | } |
44 | 44 | |
45 | 45 | public function valid() |
46 | 46 | { |
47 | - $key = $this->key(); |
|
48 | - return $key !== null && $key !== false; |
|
47 | + $key = $this->key(); |
|
48 | + return $key !== null && $key !== false; |
|
49 | 49 | } |
50 | 50 | |
51 | 51 | public function count() |
52 | 52 | { |
53 | - if (!isset($this->modelData[$this->collection_key])) { |
|
54 | - return 0; |
|
55 | - } |
|
56 | - return count($this->modelData[$this->collection_key]); |
|
53 | + if (!isset($this->modelData[$this->collection_key])) { |
|
54 | + return 0; |
|
55 | + } |
|
56 | + return count($this->modelData[$this->collection_key]); |
|
57 | 57 | } |
58 | 58 | |
59 | 59 | public function offsetExists($offset) |
60 | 60 | { |
61 | - if (!is_numeric($offset)) { |
|
62 | - return parent::offsetExists($offset); |
|
63 | - } |
|
64 | - return isset($this->modelData[$this->collection_key][$offset]); |
|
61 | + if (!is_numeric($offset)) { |
|
62 | + return parent::offsetExists($offset); |
|
63 | + } |
|
64 | + return isset($this->modelData[$this->collection_key][$offset]); |
|
65 | 65 | } |
66 | 66 | |
67 | 67 | public function offsetGet($offset) |
68 | 68 | { |
69 | - if (!is_numeric($offset)) { |
|
70 | - return parent::offsetGet($offset); |
|
71 | - } |
|
72 | - $this->coerceType($offset); |
|
73 | - return $this->modelData[$this->collection_key][$offset]; |
|
69 | + if (!is_numeric($offset)) { |
|
70 | + return parent::offsetGet($offset); |
|
71 | + } |
|
72 | + $this->coerceType($offset); |
|
73 | + return $this->modelData[$this->collection_key][$offset]; |
|
74 | 74 | } |
75 | 75 | |
76 | 76 | public function offsetSet($offset, $value) |
77 | 77 | { |
78 | - if (!is_numeric($offset)) { |
|
79 | - return parent::offsetSet($offset, $value); |
|
80 | - } |
|
81 | - $this->modelData[$this->collection_key][$offset] = $value; |
|
78 | + if (!is_numeric($offset)) { |
|
79 | + return parent::offsetSet($offset, $value); |
|
80 | + } |
|
81 | + $this->modelData[$this->collection_key][$offset] = $value; |
|
82 | 82 | } |
83 | 83 | |
84 | 84 | public function offsetUnset($offset) |
85 | 85 | { |
86 | - if (!is_numeric($offset)) { |
|
87 | - return parent::offsetUnset($offset); |
|
88 | - } |
|
89 | - unset($this->modelData[$this->collection_key][$offset]); |
|
86 | + if (!is_numeric($offset)) { |
|
87 | + return parent::offsetUnset($offset); |
|
88 | + } |
|
89 | + unset($this->modelData[$this->collection_key][$offset]); |
|
90 | 90 | } |
91 | 91 | |
92 | 92 | private function coerceType($offset) |
93 | 93 | { |
94 | - $typeKey = $this->keyType($this->collection_key); |
|
95 | - if (isset($this->$typeKey) && !is_object($this->modelData[$this->collection_key][$offset])) { |
|
96 | - $type = $this->$typeKey; |
|
97 | - $this->modelData[$this->collection_key][$offset] = |
|
98 | - new $type($this->modelData[$this->collection_key][$offset]); |
|
99 | - } |
|
94 | + $typeKey = $this->keyType($this->collection_key); |
|
95 | + if (isset($this->$typeKey) && !is_object($this->modelData[$this->collection_key][$offset])) { |
|
96 | + $type = $this->$typeKey; |
|
97 | + $this->modelData[$this->collection_key][$offset] = |
|
98 | + new $type($this->modelData[$this->collection_key][$offset]); |
|
99 | + } |
|
100 | 100 | } |
101 | 101 | } |
@@ -1,7 +1,7 @@ |
||
1 | 1 | <?php |
2 | 2 | |
3 | 3 | if (!class_exists('Google_Client')) { |
4 | - require_once dirname(__FILE__) . '/autoload.php'; |
|
4 | + require_once dirname(__FILE__).'/autoload.php'; |
|
5 | 5 | } |
6 | 6 | |
7 | 7 | /** |
@@ -38,20 +38,20 @@ discard block |
||
38 | 38 | */ |
39 | 39 | public function __construct($pem) |
40 | 40 | { |
41 | - if (!function_exists('openssl_x509_read')) { |
|
42 | - throw new Google_Exception('Google API PHP client needs the openssl PHP extension'); |
|
43 | - } |
|
44 | - $this->publicKey = openssl_x509_read($pem); |
|
45 | - if (!$this->publicKey) { |
|
46 | - throw new Google_Auth_Exception("Unable to parse PEM: $pem"); |
|
47 | - } |
|
41 | + if (!function_exists('openssl_x509_read')) { |
|
42 | + throw new Google_Exception('Google API PHP client needs the openssl PHP extension'); |
|
43 | + } |
|
44 | + $this->publicKey = openssl_x509_read($pem); |
|
45 | + if (!$this->publicKey) { |
|
46 | + throw new Google_Auth_Exception("Unable to parse PEM: $pem"); |
|
47 | + } |
|
48 | 48 | } |
49 | 49 | |
50 | 50 | public function __destruct() |
51 | 51 | { |
52 | - if ($this->publicKey) { |
|
53 | - openssl_x509_free($this->publicKey); |
|
54 | - } |
|
52 | + if ($this->publicKey) { |
|
53 | + openssl_x509_free($this->publicKey); |
|
54 | + } |
|
55 | 55 | } |
56 | 56 | |
57 | 57 | /** |
@@ -65,11 +65,11 @@ discard block |
||
65 | 65 | */ |
66 | 66 | public function verify($data, $signature) |
67 | 67 | { |
68 | - $hash = defined("OPENSSL_ALGO_SHA256") ? OPENSSL_ALGO_SHA256 : "sha256"; |
|
69 | - $status = openssl_verify($data, $signature, $this->publicKey, $hash); |
|
70 | - if ($status === -1) { |
|
71 | - throw new Google_Auth_Exception('Signature verification error: ' . openssl_error_string()); |
|
72 | - } |
|
73 | - return $status === 1; |
|
68 | + $hash = defined("OPENSSL_ALGO_SHA256") ? OPENSSL_ALGO_SHA256 : "sha256"; |
|
69 | + $status = openssl_verify($data, $signature, $this->publicKey, $hash); |
|
70 | + if ($status === -1) { |
|
71 | + throw new Google_Auth_Exception('Signature verification error: ' . openssl_error_string()); |
|
72 | + } |
|
73 | + return $status === 1; |
|
74 | 74 | } |
75 | 75 | } |
@@ -16,7 +16,7 @@ discard block |
||
16 | 16 | */ |
17 | 17 | |
18 | 18 | if (!class_exists('Google_Client')) { |
19 | - require_once dirname(__FILE__) . '/../autoload.php'; |
|
19 | + require_once dirname(__FILE__).'/../autoload.php'; |
|
20 | 20 | } |
21 | 21 | |
22 | 22 | /** |
@@ -68,7 +68,7 @@ discard block |
||
68 | 68 | $hash = defined("OPENSSL_ALGO_SHA256") ? OPENSSL_ALGO_SHA256 : "sha256"; |
69 | 69 | $status = openssl_verify($data, $signature, $this->publicKey, $hash); |
70 | 70 | if ($status === -1) { |
71 | - throw new Google_Auth_Exception('Signature verification error: ' . openssl_error_string()); |
|
71 | + throw new Google_Auth_Exception('Signature verification error: '.openssl_error_string()); |
|
72 | 72 | } |
73 | 73 | return $status === 1; |
74 | 74 | } |