Skip to content

Commit bb11b52

Browse files
committed
Updated Urlshortener.php
This change has been generated by a script that has detected changes in the discovery doc of the API. Check http://developers.google.com/discovery for more info.
1 parent 0995747 commit bb11b52

File tree

1 file changed

+15
-40
lines changed

1 file changed

+15
-40
lines changed

src/Google/Service/Urlshortener.php

Lines changed: 15 additions & 40 deletions
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,7 @@
1919
* Service definition for Urlshortener (v1).
2020
*
2121
* <p>
22-
* Lets you create, inspect, and manage goo.gl short URLs
23-
* </p>
22+
* Lets you create, inspect, and manage goo.gl short URLs</p>
2423
*
2524
* <p>
2625
* For more information about this service, see the API
@@ -32,7 +31,8 @@
3231
class Google_Service_Urlshortener extends Google_Service
3332
{
3433
/** Manage your goo.gl short URLs. */
35-
const URLSHORTENER = "https://www.googleapis.com/auth/urlshortener";
34+
const URLSHORTENER =
35+
"https://www.googleapis.com/auth/urlshortener";
3636

3737
public $url;
3838

@@ -108,12 +108,10 @@ class Google_Service_Urlshortener_Url_Resource extends Google_Service_Resource
108108
/**
109109
* Expands a short URL or gets creation time and analytics. (url.get)
110110
*
111-
* @param string $shortUrl
112-
* The short URL, including the protocol.
111+
* @param string $shortUrl The short URL, including the protocol.
113112
* @param array $optParams Optional parameters.
114113
*
115-
* @opt_param string projection
116-
* Additional information to return.
114+
* @opt_param string projection Additional information to return.
117115
* @return Google_Service_Urlshortener_Url
118116
*/
119117
public function get($shortUrl, $optParams = array())
@@ -122,6 +120,7 @@ public function get($shortUrl, $optParams = array())
122120
$params = array_merge($params, $optParams);
123121
return $this->call('get', array($params), "Google_Service_Urlshortener_Url");
124122
}
123+
125124
/**
126125
* Creates a new short URL. (url.insert)
127126
*
@@ -135,15 +134,15 @@ public function insert(Google_Service_Urlshortener_Url $postBody, $optParams = a
135134
$params = array_merge($params, $optParams);
136135
return $this->call('insert', array($params), "Google_Service_Urlshortener_Url");
137136
}
137+
138138
/**
139139
* Retrieves a list of URLs shortened by a user. (url.listUrl)
140140
*
141141
* @param array $optParams Optional parameters.
142142
*
143-
* @opt_param string start-token
144-
* Token for requesting successive pages of results.
145-
* @opt_param string projection
146-
* Additional information to return.
143+
* @opt_param string start-token Token for requesting successive pages of
144+
* results.
145+
* @opt_param string projection Additional information to return.
147146
* @return Google_Service_Urlshortener_UrlHistory
148147
*/
149148
public function listUrl($optParams = array())
@@ -173,11 +172,11 @@ class Google_Service_Urlshortener_AnalyticsSnapshot extends Google_Collection
173172
protected $referrersDataType = 'array';
174173
public $shortUrlClicks;
175174

175+
176176
public function setBrowsers($browsers)
177177
{
178178
$this->browsers = $browsers;
179179
}
180-
181180
public function getBrowsers()
182181
{
183182
return $this->browsers;
@@ -186,7 +185,6 @@ public function setCountries($countries)
186185
{
187186
$this->countries = $countries;
188187
}
189-
190188
public function getCountries()
191189
{
192190
return $this->countries;
@@ -195,7 +193,6 @@ public function setLongUrlClicks($longUrlClicks)
195193
{
196194
$this->longUrlClicks = $longUrlClicks;
197195
}
198-
199196
public function getLongUrlClicks()
200197
{
201198
return $this->longUrlClicks;
@@ -204,7 +201,6 @@ public function setPlatforms($platforms)
204201
{
205202
$this->platforms = $platforms;
206203
}
207-
208204
public function getPlatforms()
209205
{
210206
return $this->platforms;
@@ -213,7 +209,6 @@ public function setReferrers($referrers)
213209
{
214210
$this->referrers = $referrers;
215211
}
216-
217212
public function getReferrers()
218213
{
219214
return $this->referrers;
@@ -222,12 +217,10 @@ public function setShortUrlClicks($shortUrlClicks)
222217
{
223218
$this->shortUrlClicks = $shortUrlClicks;
224219
}
225-
226220
public function getShortUrlClicks()
227221
{
228222
return $this->shortUrlClicks;
229223
}
230-
231224
}
232225

233226
class Google_Service_Urlshortener_AnalyticsSummary extends Google_Model
@@ -245,11 +238,11 @@ class Google_Service_Urlshortener_AnalyticsSummary extends Google_Model
245238
protected $weekType = 'Google_Service_Urlshortener_AnalyticsSnapshot';
246239
protected $weekDataType = '';
247240

241+
248242
public function setAllTime(Google_Service_Urlshortener_AnalyticsSnapshot $allTime)
249243
{
250244
$this->allTime = $allTime;
251245
}
252-
253246
public function getAllTime()
254247
{
255248
return $this->allTime;
@@ -258,7 +251,6 @@ public function setDay(Google_Service_Urlshortener_AnalyticsSnapshot $day)
258251
{
259252
$this->day = $day;
260253
}
261-
262254
public function getDay()
263255
{
264256
return $this->day;
@@ -267,7 +259,6 @@ public function setMonth(Google_Service_Urlshortener_AnalyticsSnapshot $month)
267259
{
268260
$this->month = $month;
269261
}
270-
271262
public function getMonth()
272263
{
273264
return $this->month;
@@ -276,7 +267,6 @@ public function setTwoHours(Google_Service_Urlshortener_AnalyticsSnapshot $twoHo
276267
{
277268
$this->twoHours = $twoHours;
278269
}
279-
280270
public function getTwoHours()
281271
{
282272
return $this->twoHours;
@@ -285,12 +275,10 @@ public function setWeek(Google_Service_Urlshortener_AnalyticsSnapshot $week)
285275
{
286276
$this->week = $week;
287277
}
288-
289278
public function getWeek()
290279
{
291280
return $this->week;
292281
}
293-
294282
}
295283

296284
class Google_Service_Urlshortener_StringCount extends Google_Model
@@ -300,11 +288,11 @@ class Google_Service_Urlshortener_StringCount extends Google_Model
300288
public $count;
301289
public $id;
302290

291+
303292
public function setCount($count)
304293
{
305294
$this->count = $count;
306295
}
307-
308296
public function getCount()
309297
{
310298
return $this->count;
@@ -313,12 +301,10 @@ public function setId($id)
313301
{
314302
$this->id = $id;
315303
}
316-
317304
public function getId()
318305
{
319306
return $this->id;
320307
}
321-
322308
}
323309

324310
class Google_Service_Urlshortener_Url extends Google_Model
@@ -333,11 +319,11 @@ class Google_Service_Urlshortener_Url extends Google_Model
333319
public $longUrl;
334320
public $status;
335321

322+
336323
public function setAnalytics(Google_Service_Urlshortener_AnalyticsSummary $analytics)
337324
{
338325
$this->analytics = $analytics;
339326
}
340-
341327
public function getAnalytics()
342328
{
343329
return $this->analytics;
@@ -346,7 +332,6 @@ public function setCreated($created)
346332
{
347333
$this->created = $created;
348334
}
349-
350335
public function getCreated()
351336
{
352337
return $this->created;
@@ -355,7 +340,6 @@ public function setId($id)
355340
{
356341
$this->id = $id;
357342
}
358-
359343
public function getId()
360344
{
361345
return $this->id;
@@ -364,7 +348,6 @@ public function setKind($kind)
364348
{
365349
$this->kind = $kind;
366350
}
367-
368351
public function getKind()
369352
{
370353
return $this->kind;
@@ -373,7 +356,6 @@ public function setLongUrl($longUrl)
373356
{
374357
$this->longUrl = $longUrl;
375358
}
376-
377359
public function getLongUrl()
378360
{
379361
return $this->longUrl;
@@ -382,12 +364,10 @@ public function setStatus($status)
382364
{
383365
$this->status = $status;
384366
}
385-
386367
public function getStatus()
387368
{
388369
return $this->status;
389370
}
390-
391371
}
392372

393373
class Google_Service_Urlshortener_UrlHistory extends Google_Collection
@@ -402,11 +382,11 @@ class Google_Service_Urlshortener_UrlHistory extends Google_Collection
402382
public $nextPageToken;
403383
public $totalItems;
404384

385+
405386
public function setItems($items)
406387
{
407388
$this->items = $items;
408389
}
409-
410390
public function getItems()
411391
{
412392
return $this->items;
@@ -415,7 +395,6 @@ public function setItemsPerPage($itemsPerPage)
415395
{
416396
$this->itemsPerPage = $itemsPerPage;
417397
}
418-
419398
public function getItemsPerPage()
420399
{
421400
return $this->itemsPerPage;
@@ -424,7 +403,6 @@ public function setKind($kind)
424403
{
425404
$this->kind = $kind;
426405
}
427-
428406
public function getKind()
429407
{
430408
return $this->kind;
@@ -433,7 +411,6 @@ public function setNextPageToken($nextPageToken)
433411
{
434412
$this->nextPageToken = $nextPageToken;
435413
}
436-
437414
public function getNextPageToken()
438415
{
439416
return $this->nextPageToken;
@@ -442,10 +419,8 @@ public function setTotalItems($totalItems)
442419
{
443420
$this->totalItems = $totalItems;
444421
}
445-
446422
public function getTotalItems()
447423
{
448424
return $this->totalItems;
449425
}
450-
451426
}

0 commit comments

Comments
 (0)