Code Duplication    Length = 89-141 lines in 10 locations

geodirectory-admin/google-api-php-client/src/Google/Service/Calendar.php 1 location

@@ 1228-1317 (lines=90) @@
1225
 *   $calendars = $calendarService->calendars;
1226
 *  </code>
1227
 */
1228
class Google_Service_Calendar_Calendars_Resource extends Google_Service_Resource
1229
{
1230
1231
  /**
1232
   * Clears a primary calendar. This operation deletes all events associated with
1233
   * the primary calendar of an account. (calendars.clear)
1234
   *
1235
   * @param string $calendarId Calendar identifier.
1236
   * @param array $optParams Optional parameters.
1237
   */
1238
  public function clear($calendarId, $optParams = array())
1239
  {
1240
    $params = array('calendarId' => $calendarId);
1241
    $params = array_merge($params, $optParams);
1242
    return $this->call('clear', array($params));
1243
  }
1244
1245
  /**
1246
   * Deletes a secondary calendar. Use calendars.clear for clearing all events on
1247
   * primary calendars. (calendars.delete)
1248
   *
1249
   * @param string $calendarId Calendar identifier.
1250
   * @param array $optParams Optional parameters.
1251
   */
1252
  public function delete($calendarId, $optParams = array())
1253
  {
1254
    $params = array('calendarId' => $calendarId);
1255
    $params = array_merge($params, $optParams);
1256
    return $this->call('delete', array($params));
1257
  }
1258
1259
  /**
1260
   * Returns metadata for a calendar. (calendars.get)
1261
   *
1262
   * @param string $calendarId Calendar identifier.
1263
   * @param array $optParams Optional parameters.
1264
   * @return Google_Service_Calendar_Calendar
1265
   */
1266
  public function get($calendarId, $optParams = array())
1267
  {
1268
    $params = array('calendarId' => $calendarId);
1269
    $params = array_merge($params, $optParams);
1270
    return $this->call('get', array($params), "Google_Service_Calendar_Calendar");
1271
  }
1272
1273
  /**
1274
   * Creates a secondary calendar. (calendars.insert)
1275
   *
1276
   * @param Google_Calendar $postBody
1277
   * @param array $optParams Optional parameters.
1278
   * @return Google_Service_Calendar_Calendar
1279
   */
1280
  public function insert(Google_Service_Calendar_Calendar $postBody, $optParams = array())
1281
  {
1282
    $params = array('postBody' => $postBody);
1283
    $params = array_merge($params, $optParams);
1284
    return $this->call('insert', array($params), "Google_Service_Calendar_Calendar");
1285
  }
1286
1287
  /**
1288
   * Updates metadata for a calendar. This method supports patch semantics.
1289
   * (calendars.patch)
1290
   *
1291
   * @param string $calendarId Calendar identifier.
1292
   * @param Google_Calendar $postBody
1293
   * @param array $optParams Optional parameters.
1294
   * @return Google_Service_Calendar_Calendar
1295
   */
1296
  public function patch($calendarId, Google_Service_Calendar_Calendar $postBody, $optParams = array())
1297
  {
1298
    $params = array('calendarId' => $calendarId, 'postBody' => $postBody);
1299
    $params = array_merge($params, $optParams);
1300
    return $this->call('patch', array($params), "Google_Service_Calendar_Calendar");
1301
  }
1302
1303
  /**
1304
   * Updates metadata for a calendar. (calendars.update)
1305
   *
1306
   * @param string $calendarId Calendar identifier.
1307
   * @param Google_Calendar $postBody
1308
   * @param array $optParams Optional parameters.
1309
   * @return Google_Service_Calendar_Calendar
1310
   */
1311
  public function update($calendarId, Google_Service_Calendar_Calendar $postBody, $optParams = array())
1312
  {
1313
    $params = array('calendarId' => $calendarId, 'postBody' => $postBody);
1314
    $params = array_merge($params, $optParams);
1315
    return $this->call('update', array($params), "Google_Service_Calendar_Calendar");
1316
  }
1317
}
1318
1319
/**
1320
 * The "channels" collection of methods.

geodirectory-admin/google-api-php-client/src/Google/Service/Classroom.php 1 location

@@ 442-580 (lines=139) @@
439
 *   $courses = $classroomService->courses;
440
 *  </code>
441
 */
442
class Google_Service_Classroom_Courses_Resource extends Google_Service_Resource
443
{
444
445
  /**
446
   * Creates a course. The user specified as the primary teacher in
447
   * `primary_teacher_id` is the owner of the created course and added as a
448
   * teacher. This method returns the following error codes: * `PERMISSION_DENIED`
449
   * if the requesting user is not permitted to create courses. * `NOT_FOUND` if
450
   * the primary teacher is not a valid user. * `ALREADY_EXISTS` if an alias was
451
   * specified and already exists. (courses.create)
452
   *
453
   * @param Google_Course $postBody
454
   * @param array $optParams Optional parameters.
455
   * @return Google_Service_Classroom_Course
456
   */
457
  public function create(Google_Service_Classroom_Course $postBody, $optParams = array())
458
  {
459
    $params = array('postBody' => $postBody);
460
    $params = array_merge($params, $optParams);
461
    return $this->call('create', array($params), "Google_Service_Classroom_Course");
462
  }
463
464
  /**
465
   * Deletes a course. This method returns the following error codes: *
466
   * `PERMISSION_DENIED` if the requesting user is not permitted to delete the
467
   * requested course. * `NOT_FOUND` if no course exists with the requested ID.
468
   * (courses.delete)
469
   *
470
   * @param string $id Identifier of the course to delete. This may either be the
471
   * Classroom-assigned identifier or an [alias][google.classroom.v1.CourseAlias].
472
   * @param array $optParams Optional parameters.
473
   * @return Google_Service_Classroom_Empty
474
   */
475
  public function delete($id, $optParams = array())
476
  {
477
    $params = array('id' => $id);
478
    $params = array_merge($params, $optParams);
479
    return $this->call('delete', array($params), "Google_Service_Classroom_Empty");
480
  }
481
482
  /**
483
   * Returns a course. This method returns the following error codes: *
484
   * `PERMISSION_DENIED` if the requesting user is not permitted to access the
485
   * requested course. * `NOT_FOUND` if no course exists with the requested ID.
486
   * (courses.get)
487
   *
488
   * @param string $id Identifier of the course to return. This may either be the
489
   * Classroom-assigned identifier or an [alias][google.classroom.v1.CourseAlias].
490
   * @param array $optParams Optional parameters.
491
   * @return Google_Service_Classroom_Course
492
   */
493
  public function get($id, $optParams = array())
494
  {
495
    $params = array('id' => $id);
496
    $params = array_merge($params, $optParams);
497
    return $this->call('get', array($params), "Google_Service_Classroom_Course");
498
  }
499
500
  /**
501
   * Returns a list of courses that the requesting user is permitted to view,
502
   * restricted to those that match the request. This method returns the following
503
   * error codes: * `INVALID_ARGUMENT` if the query argument is malformed. *
504
   * `NOT_FOUND` if any users specified in the query arguments do not exist.
505
   * (courses.listCourses)
506
   *
507
   * @param array $optParams Optional parameters.
508
   *
509
   * @opt_param string teacherId Restricts returned courses to those having a
510
   * teacher with the specified identifier, or an alias that identifies a teacher.
511
   * The following aliases are supported: * the e-mail address of the user * the
512
   * string literal `"me"`, indicating that the requesting user
513
   * @opt_param string pageToken
514
   * [nextPageToken][google.classroom.v1.ListCoursesResponse.next_page_token]
515
   * value returned from a previous
516
   * [list][google.classroom.v1.Courses.ListCourses] call, indicating that the
517
   * subsequent page of results should be returned. The
518
   * [list][google.classroom.v1.Courses.ListCourses] request must be identical to
519
   * the one which resulted in this token.
520
   * @opt_param string studentId Restricts returned courses to those having a
521
   * student with the specified identifier, or an alias that identifies a student.
522
   * The following aliases are supported: * the e-mail address of the user * the
523
   * string literal `"me"`, indicating that the requesting user
524
   * @opt_param int pageSize Maximum number of items to return. Zero or
525
   * unspecified indicates that the server may assign a maximum. The server may
526
   * return fewer than the specified number of results.
527
   * @return Google_Service_Classroom_ListCoursesResponse
528
   */
529
  public function listCourses($optParams = array())
530
  {
531
    $params = array();
532
    $params = array_merge($params, $optParams);
533
    return $this->call('list', array($params), "Google_Service_Classroom_ListCoursesResponse");
534
  }
535
536
  /**
537
   * Updates one or more fields a course. This method returns the following error
538
   * codes: * `PERMISSION_DENIED` if the requesting user is not permitted to
539
   * modify the requested course. * `NOT_FOUND` if no course exists with the
540
   * requested ID. * `INVALID_ARGUMENT` if invalid fields are specified in the
541
   * update mask or if no update mask is supplied. (courses.patch)
542
   *
543
   * @param string $id Identifier of the course to update. This may either be the
544
   * Classroom-assigned identifier or an [alias][google.classroom.v1.CourseAlias].
545
   * @param Google_Course $postBody
546
   * @param array $optParams Optional parameters.
547
   *
548
   * @opt_param string updateMask Mask which identifies which fields on the course
549
   * to update. This field is required to do an update. The update will fail if
550
   * invalid fields are specified. Valid fields are listed below: * `name` *
551
   * `section` * `descriptionHeading` * `description` * `room` * `courseState`
552
   * When set in a query parameter, this should be specified as `updateMask=,,...`
553
   * @return Google_Service_Classroom_Course
554
   */
555
  public function patch($id, Google_Service_Classroom_Course $postBody, $optParams = array())
556
  {
557
    $params = array('id' => $id, 'postBody' => $postBody);
558
    $params = array_merge($params, $optParams);
559
    return $this->call('patch', array($params), "Google_Service_Classroom_Course");
560
  }
561
562
  /**
563
   * Updates a course. This method returns the following error codes: *
564
   * `PERMISSION_DENIED` if the requesting user is not permitted to modify the
565
   * requested course. * `NOT_FOUND` if no course exists with the requested ID.
566
   * (courses.update)
567
   *
568
   * @param string $id Identifier of the course to update. This may either be the
569
   * Classroom-assigned identifier or an [alias][google.classroom.v1.CourseAlias].
570
   * @param Google_Course $postBody
571
   * @param array $optParams Optional parameters.
572
   * @return Google_Service_Classroom_Course
573
   */
574
  public function update($id, Google_Service_Classroom_Course $postBody, $optParams = array())
575
  {
576
    $params = array('id' => $id, 'postBody' => $postBody);
577
    $params = array_merge($params, $optParams);
578
    return $this->call('update', array($params), "Google_Service_Classroom_Course");
579
  }
580
}
581
582
/**
583
 * The "aliases" collection of methods.

geodirectory-admin/google-api-php-client/src/Google/Service/Directory.php 1 location

@@ 1475-1575 (lines=101) @@
1472
 *   $groups = $adminService->groups;
1473
 *  </code>
1474
 */
1475
class Google_Service_Directory_Groups_Resource extends Google_Service_Resource
1476
{
1477
1478
  /**
1479
   * Delete Group (groups.delete)
1480
   *
1481
   * @param string $groupKey Email or immutable Id of the group
1482
   * @param array $optParams Optional parameters.
1483
   */
1484
  public function delete($groupKey, $optParams = array())
1485
  {
1486
    $params = array('groupKey' => $groupKey);
1487
    $params = array_merge($params, $optParams);
1488
    return $this->call('delete', array($params));
1489
  }
1490
1491
  /**
1492
   * Retrieve Group (groups.get)
1493
   *
1494
   * @param string $groupKey Email or immutable Id of the group
1495
   * @param array $optParams Optional parameters.
1496
   * @return Google_Service_Directory_Group
1497
   */
1498
  public function get($groupKey, $optParams = array())
1499
  {
1500
    $params = array('groupKey' => $groupKey);
1501
    $params = array_merge($params, $optParams);
1502
    return $this->call('get', array($params), "Google_Service_Directory_Group");
1503
  }
1504
1505
  /**
1506
   * Create Group (groups.insert)
1507
   *
1508
   * @param Google_Group $postBody
1509
   * @param array $optParams Optional parameters.
1510
   * @return Google_Service_Directory_Group
1511
   */
1512
  public function insert(Google_Service_Directory_Group $postBody, $optParams = array())
1513
  {
1514
    $params = array('postBody' => $postBody);
1515
    $params = array_merge($params, $optParams);
1516
    return $this->call('insert', array($params), "Google_Service_Directory_Group");
1517
  }
1518
1519
  /**
1520
   * Retrieve all groups in a domain (paginated) (groups.listGroups)
1521
   *
1522
   * @param array $optParams Optional parameters.
1523
   *
1524
   * @opt_param string customer Immutable id of the Google Apps account. In case
1525
   * of multi-domain, to fetch all groups for a customer, fill this field instead
1526
   * of domain.
1527
   * @opt_param string pageToken Token to specify next page in the list
1528
   * @opt_param string domain Name of the domain. Fill this field to get groups
1529
   * from only this domain. To return all groups in a multi-domain fill customer
1530
   * field instead.
1531
   * @opt_param int maxResults Maximum number of results to return. Default is 200
1532
   * @opt_param string userKey Email or immutable Id of the user if only those
1533
   * groups are to be listed, the given user is a member of. If Id, it should
1534
   * match with id of user object
1535
   * @return Google_Service_Directory_Groups
1536
   */
1537
  public function listGroups($optParams = array())
1538
  {
1539
    $params = array();
1540
    $params = array_merge($params, $optParams);
1541
    return $this->call('list', array($params), "Google_Service_Directory_Groups");
1542
  }
1543
1544
  /**
1545
   * Update Group. This method supports patch semantics. (groups.patch)
1546
   *
1547
   * @param string $groupKey Email or immutable Id of the group. If Id, it should
1548
   * match with id of group object
1549
   * @param Google_Group $postBody
1550
   * @param array $optParams Optional parameters.
1551
   * @return Google_Service_Directory_Group
1552
   */
1553
  public function patch($groupKey, Google_Service_Directory_Group $postBody, $optParams = array())
1554
  {
1555
    $params = array('groupKey' => $groupKey, 'postBody' => $postBody);
1556
    $params = array_merge($params, $optParams);
1557
    return $this->call('patch', array($params), "Google_Service_Directory_Group");
1558
  }
1559
1560
  /**
1561
   * Update Group (groups.update)
1562
   *
1563
   * @param string $groupKey Email or immutable Id of the group. If Id, it should
1564
   * match with id of group object
1565
   * @param Google_Group $postBody
1566
   * @param array $optParams Optional parameters.
1567
   * @return Google_Service_Directory_Group
1568
   */
1569
  public function update($groupKey, Google_Service_Directory_Group $postBody, $optParams = array())
1570
  {
1571
    $params = array('groupKey' => $groupKey, 'postBody' => $postBody);
1572
    $params = array_merge($params, $optParams);
1573
    return $this->call('update', array($params), "Google_Service_Directory_Group");
1574
  }
1575
}
1576
1577
/**
1578
 * The "aliases" collection of methods.

geodirectory-admin/google-api-php-client/src/Google/Service/GamesConfiguration.php 2 locations

@@ 248-349 (lines=102) @@
245
 *   $achievementConfigurations = $gamesConfigurationService->achievementConfigurations;
246
 *  </code>
247
 */
248
class Google_Service_GamesConfiguration_AchievementConfigurations_Resource extends Google_Service_Resource
249
{
250
251
  /**
252
   * Delete the achievement configuration with the given ID.
253
   * (achievementConfigurations.delete)
254
   *
255
   * @param string $achievementId The ID of the achievement used by this method.
256
   * @param array $optParams Optional parameters.
257
   */
258
  public function delete($achievementId, $optParams = array())
259
  {
260
    $params = array('achievementId' => $achievementId);
261
    $params = array_merge($params, $optParams);
262
    return $this->call('delete', array($params));
263
  }
264
265
  /**
266
   * Retrieves the metadata of the achievement configuration with the given ID.
267
   * (achievementConfigurations.get)
268
   *
269
   * @param string $achievementId The ID of the achievement used by this method.
270
   * @param array $optParams Optional parameters.
271
   * @return Google_Service_GamesConfiguration_AchievementConfiguration
272
   */
273
  public function get($achievementId, $optParams = array())
274
  {
275
    $params = array('achievementId' => $achievementId);
276
    $params = array_merge($params, $optParams);
277
    return $this->call('get', array($params), "Google_Service_GamesConfiguration_AchievementConfiguration");
278
  }
279
280
  /**
281
   * Insert a new achievement configuration in this application.
282
   * (achievementConfigurations.insert)
283
   *
284
   * @param string $applicationId The application ID from the Google Play
285
   * developer console.
286
   * @param Google_AchievementConfiguration $postBody
287
   * @param array $optParams Optional parameters.
288
   * @return Google_Service_GamesConfiguration_AchievementConfiguration
289
   */
290
  public function insert($applicationId, Google_Service_GamesConfiguration_AchievementConfiguration $postBody, $optParams = array())
291
  {
292
    $params = array('applicationId' => $applicationId, 'postBody' => $postBody);
293
    $params = array_merge($params, $optParams);
294
    return $this->call('insert', array($params), "Google_Service_GamesConfiguration_AchievementConfiguration");
295
  }
296
297
  /**
298
   * Returns a list of the achievement configurations in this application.
299
   * (achievementConfigurations.listAchievementConfigurations)
300
   *
301
   * @param string $applicationId The application ID from the Google Play
302
   * developer console.
303
   * @param array $optParams Optional parameters.
304
   *
305
   * @opt_param string pageToken The token returned by the previous request.
306
   * @opt_param int maxResults The maximum number of resource configurations to
307
   * return in the response, used for paging. For any response, the actual number
308
   * of resources returned may be less than the specified maxResults.
309
   * @return Google_Service_GamesConfiguration_AchievementConfigurationListResponse
310
   */
311
  public function listAchievementConfigurations($applicationId, $optParams = array())
312
  {
313
    $params = array('applicationId' => $applicationId);
314
    $params = array_merge($params, $optParams);
315
    return $this->call('list', array($params), "Google_Service_GamesConfiguration_AchievementConfigurationListResponse");
316
  }
317
318
  /**
319
   * Update the metadata of the achievement configuration with the given ID. This
320
   * method supports patch semantics. (achievementConfigurations.patch)
321
   *
322
   * @param string $achievementId The ID of the achievement used by this method.
323
   * @param Google_AchievementConfiguration $postBody
324
   * @param array $optParams Optional parameters.
325
   * @return Google_Service_GamesConfiguration_AchievementConfiguration
326
   */
327
  public function patch($achievementId, Google_Service_GamesConfiguration_AchievementConfiguration $postBody, $optParams = array())
328
  {
329
    $params = array('achievementId' => $achievementId, 'postBody' => $postBody);
330
    $params = array_merge($params, $optParams);
331
    return $this->call('patch', array($params), "Google_Service_GamesConfiguration_AchievementConfiguration");
332
  }
333
334
  /**
335
   * Update the metadata of the achievement configuration with the given ID.
336
   * (achievementConfigurations.update)
337
   *
338
   * @param string $achievementId The ID of the achievement used by this method.
339
   * @param Google_AchievementConfiguration $postBody
340
   * @param array $optParams Optional parameters.
341
   * @return Google_Service_GamesConfiguration_AchievementConfiguration
342
   */
343
  public function update($achievementId, Google_Service_GamesConfiguration_AchievementConfiguration $postBody, $optParams = array())
344
  {
345
    $params = array('achievementId' => $achievementId, 'postBody' => $postBody);
346
    $params = array_merge($params, $optParams);
347
    return $this->call('update', array($params), "Google_Service_GamesConfiguration_AchievementConfiguration");
348
  }
349
}
350
351
/**
352
 * The "imageConfigurations" collection of methods.
@@ 387-488 (lines=102) @@
384
 *   $leaderboardConfigurations = $gamesConfigurationService->leaderboardConfigurations;
385
 *  </code>
386
 */
387
class Google_Service_GamesConfiguration_LeaderboardConfigurations_Resource extends Google_Service_Resource
388
{
389
390
  /**
391
   * Delete the leaderboard configuration with the given ID.
392
   * (leaderboardConfigurations.delete)
393
   *
394
   * @param string $leaderboardId The ID of the leaderboard.
395
   * @param array $optParams Optional parameters.
396
   */
397
  public function delete($leaderboardId, $optParams = array())
398
  {
399
    $params = array('leaderboardId' => $leaderboardId);
400
    $params = array_merge($params, $optParams);
401
    return $this->call('delete', array($params));
402
  }
403
404
  /**
405
   * Retrieves the metadata of the leaderboard configuration with the given ID.
406
   * (leaderboardConfigurations.get)
407
   *
408
   * @param string $leaderboardId The ID of the leaderboard.
409
   * @param array $optParams Optional parameters.
410
   * @return Google_Service_GamesConfiguration_LeaderboardConfiguration
411
   */
412
  public function get($leaderboardId, $optParams = array())
413
  {
414
    $params = array('leaderboardId' => $leaderboardId);
415
    $params = array_merge($params, $optParams);
416
    return $this->call('get', array($params), "Google_Service_GamesConfiguration_LeaderboardConfiguration");
417
  }
418
419
  /**
420
   * Insert a new leaderboard configuration in this application.
421
   * (leaderboardConfigurations.insert)
422
   *
423
   * @param string $applicationId The application ID from the Google Play
424
   * developer console.
425
   * @param Google_LeaderboardConfiguration $postBody
426
   * @param array $optParams Optional parameters.
427
   * @return Google_Service_GamesConfiguration_LeaderboardConfiguration
428
   */
429
  public function insert($applicationId, Google_Service_GamesConfiguration_LeaderboardConfiguration $postBody, $optParams = array())
430
  {
431
    $params = array('applicationId' => $applicationId, 'postBody' => $postBody);
432
    $params = array_merge($params, $optParams);
433
    return $this->call('insert', array($params), "Google_Service_GamesConfiguration_LeaderboardConfiguration");
434
  }
435
436
  /**
437
   * Returns a list of the leaderboard configurations in this application.
438
   * (leaderboardConfigurations.listLeaderboardConfigurations)
439
   *
440
   * @param string $applicationId The application ID from the Google Play
441
   * developer console.
442
   * @param array $optParams Optional parameters.
443
   *
444
   * @opt_param string pageToken The token returned by the previous request.
445
   * @opt_param int maxResults The maximum number of resource configurations to
446
   * return in the response, used for paging. For any response, the actual number
447
   * of resources returned may be less than the specified maxResults.
448
   * @return Google_Service_GamesConfiguration_LeaderboardConfigurationListResponse
449
   */
450
  public function listLeaderboardConfigurations($applicationId, $optParams = array())
451
  {
452
    $params = array('applicationId' => $applicationId);
453
    $params = array_merge($params, $optParams);
454
    return $this->call('list', array($params), "Google_Service_GamesConfiguration_LeaderboardConfigurationListResponse");
455
  }
456
457
  /**
458
   * Update the metadata of the leaderboard configuration with the given ID. This
459
   * method supports patch semantics. (leaderboardConfigurations.patch)
460
   *
461
   * @param string $leaderboardId The ID of the leaderboard.
462
   * @param Google_LeaderboardConfiguration $postBody
463
   * @param array $optParams Optional parameters.
464
   * @return Google_Service_GamesConfiguration_LeaderboardConfiguration
465
   */
466
  public function patch($leaderboardId, Google_Service_GamesConfiguration_LeaderboardConfiguration $postBody, $optParams = array())
467
  {
468
    $params = array('leaderboardId' => $leaderboardId, 'postBody' => $postBody);
469
    $params = array_merge($params, $optParams);
470
    return $this->call('patch', array($params), "Google_Service_GamesConfiguration_LeaderboardConfiguration");
471
  }
472
473
  /**
474
   * Update the metadata of the leaderboard configuration with the given ID.
475
   * (leaderboardConfigurations.update)
476
   *
477
   * @param string $leaderboardId The ID of the leaderboard.
478
   * @param Google_LeaderboardConfiguration $postBody
479
   * @param array $optParams Optional parameters.
480
   * @return Google_Service_GamesConfiguration_LeaderboardConfiguration
481
   */
482
  public function update($leaderboardId, Google_Service_GamesConfiguration_LeaderboardConfiguration $postBody, $optParams = array())
483
  {
484
    $params = array('leaderboardId' => $leaderboardId, 'postBody' => $postBody);
485
    $params = array_merge($params, $optParams);
486
    return $this->call('update', array($params), "Google_Service_GamesConfiguration_LeaderboardConfiguration");
487
  }
488
}
489
490
491

geodirectory-admin/google-api-php-client/src/Google/Service/Mirror.php 2 locations

@@ 422-510 (lines=89) @@
419
 *   $contacts = $mirrorService->contacts;
420
 *  </code>
421
 */
422
class Google_Service_Mirror_Contacts_Resource extends Google_Service_Resource
423
{
424
425
  /**
426
   * Deletes a contact. (contacts.delete)
427
   *
428
   * @param string $id The ID of the contact.
429
   * @param array $optParams Optional parameters.
430
   */
431
  public function delete($id, $optParams = array())
432
  {
433
    $params = array('id' => $id);
434
    $params = array_merge($params, $optParams);
435
    return $this->call('delete', array($params));
436
  }
437
438
  /**
439
   * Gets a single contact by ID. (contacts.get)
440
   *
441
   * @param string $id The ID of the contact.
442
   * @param array $optParams Optional parameters.
443
   * @return Google_Service_Mirror_Contact
444
   */
445
  public function get($id, $optParams = array())
446
  {
447
    $params = array('id' => $id);
448
    $params = array_merge($params, $optParams);
449
    return $this->call('get', array($params), "Google_Service_Mirror_Contact");
450
  }
451
452
  /**
453
   * Inserts a new contact. (contacts.insert)
454
   *
455
   * @param Google_Contact $postBody
456
   * @param array $optParams Optional parameters.
457
   * @return Google_Service_Mirror_Contact
458
   */
459
  public function insert(Google_Service_Mirror_Contact $postBody, $optParams = array())
460
  {
461
    $params = array('postBody' => $postBody);
462
    $params = array_merge($params, $optParams);
463
    return $this->call('insert', array($params), "Google_Service_Mirror_Contact");
464
  }
465
466
  /**
467
   * Retrieves a list of contacts for the authenticated user.
468
   * (contacts.listContacts)
469
   *
470
   * @param array $optParams Optional parameters.
471
   * @return Google_Service_Mirror_ContactsListResponse
472
   */
473
  public function listContacts($optParams = array())
474
  {
475
    $params = array();
476
    $params = array_merge($params, $optParams);
477
    return $this->call('list', array($params), "Google_Service_Mirror_ContactsListResponse");
478
  }
479
480
  /**
481
   * Updates a contact in place. This method supports patch semantics.
482
   * (contacts.patch)
483
   *
484
   * @param string $id The ID of the contact.
485
   * @param Google_Contact $postBody
486
   * @param array $optParams Optional parameters.
487
   * @return Google_Service_Mirror_Contact
488
   */
489
  public function patch($id, Google_Service_Mirror_Contact $postBody, $optParams = array())
490
  {
491
    $params = array('id' => $id, 'postBody' => $postBody);
492
    $params = array_merge($params, $optParams);
493
    return $this->call('patch', array($params), "Google_Service_Mirror_Contact");
494
  }
495
496
  /**
497
   * Updates a contact in place. (contacts.update)
498
   *
499
   * @param string $id The ID of the contact.
500
   * @param Google_Contact $postBody
501
   * @param array $optParams Optional parameters.
502
   * @return Google_Service_Mirror_Contact
503
   */
504
  public function update($id, Google_Service_Mirror_Contact $postBody, $optParams = array())
505
  {
506
    $params = array('id' => $id, 'postBody' => $postBody);
507
    $params = array_merge($params, $optParams);
508
    return $this->call('update', array($params), "Google_Service_Mirror_Contact");
509
  }
510
}
511
512
/**
513
 * The "locations" collection of methods.
@@ 658-759 (lines=102) @@
655
 *   $timeline = $mirrorService->timeline;
656
 *  </code>
657
 */
658
class Google_Service_Mirror_Timeline_Resource extends Google_Service_Resource
659
{
660
661
  /**
662
   * Deletes a timeline item. (timeline.delete)
663
   *
664
   * @param string $id The ID of the timeline item.
665
   * @param array $optParams Optional parameters.
666
   */
667
  public function delete($id, $optParams = array())
668
  {
669
    $params = array('id' => $id);
670
    $params = array_merge($params, $optParams);
671
    return $this->call('delete', array($params));
672
  }
673
674
  /**
675
   * Gets a single timeline item by ID. (timeline.get)
676
   *
677
   * @param string $id The ID of the timeline item.
678
   * @param array $optParams Optional parameters.
679
   * @return Google_Service_Mirror_TimelineItem
680
   */
681
  public function get($id, $optParams = array())
682
  {
683
    $params = array('id' => $id);
684
    $params = array_merge($params, $optParams);
685
    return $this->call('get', array($params), "Google_Service_Mirror_TimelineItem");
686
  }
687
688
  /**
689
   * Inserts a new item into the timeline. (timeline.insert)
690
   *
691
   * @param Google_TimelineItem $postBody
692
   * @param array $optParams Optional parameters.
693
   * @return Google_Service_Mirror_TimelineItem
694
   */
695
  public function insert(Google_Service_Mirror_TimelineItem $postBody, $optParams = array())
696
  {
697
    $params = array('postBody' => $postBody);
698
    $params = array_merge($params, $optParams);
699
    return $this->call('insert', array($params), "Google_Service_Mirror_TimelineItem");
700
  }
701
702
  /**
703
   * Retrieves a list of timeline items for the authenticated user.
704
   * (timeline.listTimeline)
705
   *
706
   * @param array $optParams Optional parameters.
707
   *
708
   * @opt_param string orderBy Controls the order in which timeline items are
709
   * returned.
710
   * @opt_param bool includeDeleted If true, tombstone records for deleted items
711
   * will be returned.
712
   * @opt_param string maxResults The maximum number of items to include in the
713
   * response, used for paging.
714
   * @opt_param string pageToken Token for the page of results to return.
715
   * @opt_param string sourceItemId If provided, only items with the given
716
   * sourceItemId will be returned.
717
   * @opt_param bool pinnedOnly If true, only pinned items will be returned.
718
   * @opt_param string bundleId If provided, only items with the given bundleId
719
   * will be returned.
720
   * @return Google_Service_Mirror_TimelineListResponse
721
   */
722
  public function listTimeline($optParams = array())
723
  {
724
    $params = array();
725
    $params = array_merge($params, $optParams);
726
    return $this->call('list', array($params), "Google_Service_Mirror_TimelineListResponse");
727
  }
728
729
  /**
730
   * Updates a timeline item in place. This method supports patch semantics.
731
   * (timeline.patch)
732
   *
733
   * @param string $id The ID of the timeline item.
734
   * @param Google_TimelineItem $postBody
735
   * @param array $optParams Optional parameters.
736
   * @return Google_Service_Mirror_TimelineItem
737
   */
738
  public function patch($id, Google_Service_Mirror_TimelineItem $postBody, $optParams = array())
739
  {
740
    $params = array('id' => $id, 'postBody' => $postBody);
741
    $params = array_merge($params, $optParams);
742
    return $this->call('patch', array($params), "Google_Service_Mirror_TimelineItem");
743
  }
744
745
  /**
746
   * Updates a timeline item in place. (timeline.update)
747
   *
748
   * @param string $id The ID of the timeline item.
749
   * @param Google_TimelineItem $postBody
750
   * @param array $optParams Optional parameters.
751
   * @return Google_Service_Mirror_TimelineItem
752
   */
753
  public function update($id, Google_Service_Mirror_TimelineItem $postBody, $optParams = array())
754
  {
755
    $params = array('id' => $id, 'postBody' => $postBody);
756
    $params = array_merge($params, $optParams);
757
    return $this->call('update', array($params), "Google_Service_Mirror_TimelineItem");
758
  }
759
}
760
761
/**
762
 * The "attachments" collection of methods.

geodirectory-admin/google-api-php-client/src/Google/Service/Storage.php 1 location

@@ 1151-1291 (lines=141) @@
1148
 *   $buckets = $storageService->buckets;
1149
 *  </code>
1150
 */
1151
class Google_Service_Storage_Buckets_Resource extends Google_Service_Resource
1152
{
1153
1154
  /**
1155
   * Permanently deletes an empty bucket. (buckets.delete)
1156
   *
1157
   * @param string $bucket Name of a bucket.
1158
   * @param array $optParams Optional parameters.
1159
   *
1160
   * @opt_param string ifMetagenerationMatch If set, only deletes the bucket if
1161
   * its metageneration matches this value.
1162
   * @opt_param string ifMetagenerationNotMatch If set, only deletes the bucket if
1163
   * its metageneration does not match this value.
1164
   */
1165
  public function delete($bucket, $optParams = array())
1166
  {
1167
    $params = array('bucket' => $bucket);
1168
    $params = array_merge($params, $optParams);
1169
    return $this->call('delete', array($params));
1170
  }
1171
1172
  /**
1173
   * Returns metadata for the specified bucket. (buckets.get)
1174
   *
1175
   * @param string $bucket Name of a bucket.
1176
   * @param array $optParams Optional parameters.
1177
   *
1178
   * @opt_param string ifMetagenerationMatch Makes the return of the bucket
1179
   * metadata conditional on whether the bucket's current metageneration matches
1180
   * the given value.
1181
   * @opt_param string ifMetagenerationNotMatch Makes the return of the bucket
1182
   * metadata conditional on whether the bucket's current metageneration does not
1183
   * match the given value.
1184
   * @opt_param string projection Set of properties to return. Defaults to noAcl.
1185
   * @return Google_Service_Storage_Bucket
1186
   */
1187
  public function get($bucket, $optParams = array())
1188
  {
1189
    $params = array('bucket' => $bucket);
1190
    $params = array_merge($params, $optParams);
1191
    return $this->call('get', array($params), "Google_Service_Storage_Bucket");
1192
  }
1193
1194
  /**
1195
   * Creates a new bucket. (buckets.insert)
1196
   *
1197
   * @param string $project A valid API project identifier.
1198
   * @param Google_Bucket $postBody
1199
   * @param array $optParams Optional parameters.
1200
   *
1201
   * @opt_param string predefinedAcl Apply a predefined set of access controls to
1202
   * this bucket.
1203
   * @opt_param string projection Set of properties to return. Defaults to noAcl,
1204
   * unless the bucket resource specifies acl or defaultObjectAcl properties, when
1205
   * it defaults to full.
1206
   * @opt_param string predefinedDefaultObjectAcl Apply a predefined set of
1207
   * default object access controls to this bucket.
1208
   * @return Google_Service_Storage_Bucket
1209
   */
1210
  public function insert($project, Google_Service_Storage_Bucket $postBody, $optParams = array())
1211
  {
1212
    $params = array('project' => $project, 'postBody' => $postBody);
1213
    $params = array_merge($params, $optParams);
1214
    return $this->call('insert', array($params), "Google_Service_Storage_Bucket");
1215
  }
1216
1217
  /**
1218
   * Retrieves a list of buckets for a given project. (buckets.listBuckets)
1219
   *
1220
   * @param string $project A valid API project identifier.
1221
   * @param array $optParams Optional parameters.
1222
   *
1223
   * @opt_param string pageToken A previously-returned page token representing
1224
   * part of the larger set of results to view.
1225
   * @opt_param string prefix Filter results to buckets whose names begin with
1226
   * this prefix.
1227
   * @opt_param string projection Set of properties to return. Defaults to noAcl.
1228
   * @opt_param string maxResults Maximum number of buckets to return.
1229
   * @return Google_Service_Storage_Buckets
1230
   */
1231
  public function listBuckets($project, $optParams = array())
1232
  {
1233
    $params = array('project' => $project);
1234
    $params = array_merge($params, $optParams);
1235
    return $this->call('list', array($params), "Google_Service_Storage_Buckets");
1236
  }
1237
1238
  /**
1239
   * Updates a bucket. This method supports patch semantics. (buckets.patch)
1240
   *
1241
   * @param string $bucket Name of a bucket.
1242
   * @param Google_Bucket $postBody
1243
   * @param array $optParams Optional parameters.
1244
   *
1245
   * @opt_param string projection Set of properties to return. Defaults to full.
1246
   * @opt_param string ifMetagenerationMatch Makes the return of the bucket
1247
   * metadata conditional on whether the bucket's current metageneration matches
1248
   * the given value.
1249
   * @opt_param string predefinedDefaultObjectAcl Apply a predefined set of
1250
   * default object access controls to this bucket.
1251
   * @opt_param string predefinedAcl Apply a predefined set of access controls to
1252
   * this bucket.
1253
   * @opt_param string ifMetagenerationNotMatch Makes the return of the bucket
1254
   * metadata conditional on whether the bucket's current metageneration does not
1255
   * match the given value.
1256
   * @return Google_Service_Storage_Bucket
1257
   */
1258
  public function patch($bucket, Google_Service_Storage_Bucket $postBody, $optParams = array())
1259
  {
1260
    $params = array('bucket' => $bucket, 'postBody' => $postBody);
1261
    $params = array_merge($params, $optParams);
1262
    return $this->call('patch', array($params), "Google_Service_Storage_Bucket");
1263
  }
1264
1265
  /**
1266
   * Updates a bucket. (buckets.update)
1267
   *
1268
   * @param string $bucket Name of a bucket.
1269
   * @param Google_Bucket $postBody
1270
   * @param array $optParams Optional parameters.
1271
   *
1272
   * @opt_param string projection Set of properties to return. Defaults to full.
1273
   * @opt_param string ifMetagenerationMatch Makes the return of the bucket
1274
   * metadata conditional on whether the bucket's current metageneration matches
1275
   * the given value.
1276
   * @opt_param string predefinedDefaultObjectAcl Apply a predefined set of
1277
   * default object access controls to this bucket.
1278
   * @opt_param string predefinedAcl Apply a predefined set of access controls to
1279
   * this bucket.
1280
   * @opt_param string ifMetagenerationNotMatch Makes the return of the bucket
1281
   * metadata conditional on whether the bucket's current metageneration does not
1282
   * match the given value.
1283
   * @return Google_Service_Storage_Bucket
1284
   */
1285
  public function update($bucket, Google_Service_Storage_Bucket $postBody, $optParams = array())
1286
  {
1287
    $params = array('bucket' => $bucket, 'postBody' => $postBody);
1288
    $params = array_merge($params, $optParams);
1289
    return $this->call('update', array($params), "Google_Service_Storage_Bucket");
1290
  }
1291
}
1292
1293
/**
1294
 * The "channels" collection of methods.

geodirectory-admin/google-api-php-client/src/Google/Service/Tasks.php 1 location

@@ 307-400 (lines=94) @@
304
 *   $tasklists = $tasksService->tasklists;
305
 *  </code>
306
 */
307
class Google_Service_Tasks_Tasklists_Resource extends Google_Service_Resource
308
{
309
310
  /**
311
   * Deletes the authenticated user's specified task list. (tasklists.delete)
312
   *
313
   * @param string $tasklist Task list identifier.
314
   * @param array $optParams Optional parameters.
315
   */
316
  public function delete($tasklist, $optParams = array())
317
  {
318
    $params = array('tasklist' => $tasklist);
319
    $params = array_merge($params, $optParams);
320
    return $this->call('delete', array($params));
321
  }
322
323
  /**
324
   * Returns the authenticated user's specified task list. (tasklists.get)
325
   *
326
   * @param string $tasklist Task list identifier.
327
   * @param array $optParams Optional parameters.
328
   * @return Google_Service_Tasks_TaskList
329
   */
330
  public function get($tasklist, $optParams = array())
331
  {
332
    $params = array('tasklist' => $tasklist);
333
    $params = array_merge($params, $optParams);
334
    return $this->call('get', array($params), "Google_Service_Tasks_TaskList");
335
  }
336
337
  /**
338
   * Creates a new task list and adds it to the authenticated user's task lists.
339
   * (tasklists.insert)
340
   *
341
   * @param Google_TaskList $postBody
342
   * @param array $optParams Optional parameters.
343
   * @return Google_Service_Tasks_TaskList
344
   */
345
  public function insert(Google_Service_Tasks_TaskList $postBody, $optParams = array())
346
  {
347
    $params = array('postBody' => $postBody);
348
    $params = array_merge($params, $optParams);
349
    return $this->call('insert', array($params), "Google_Service_Tasks_TaskList");
350
  }
351
352
  /**
353
   * Returns all the authenticated user's task lists. (tasklists.listTasklists)
354
   *
355
   * @param array $optParams Optional parameters.
356
   *
357
   * @opt_param string pageToken Token specifying the result page to return.
358
   * Optional.
359
   * @opt_param string maxResults Maximum number of task lists returned on one
360
   * page. Optional. The default is 100.
361
   * @return Google_Service_Tasks_TaskLists
362
   */
363
  public function listTasklists($optParams = array())
364
  {
365
    $params = array();
366
    $params = array_merge($params, $optParams);
367
    return $this->call('list', array($params), "Google_Service_Tasks_TaskLists");
368
  }
369
370
  /**
371
   * Updates the authenticated user's specified task list. This method supports
372
   * patch semantics. (tasklists.patch)
373
   *
374
   * @param string $tasklist Task list identifier.
375
   * @param Google_TaskList $postBody
376
   * @param array $optParams Optional parameters.
377
   * @return Google_Service_Tasks_TaskList
378
   */
379
  public function patch($tasklist, Google_Service_Tasks_TaskList $postBody, $optParams = array())
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");
384
  }
385
386
  /**
387
   * Updates the authenticated user's specified task list. (tasklists.update)
388
   *
389
   * @param string $tasklist Task list identifier.
390
   * @param Google_TaskList $postBody
391
   * @param array $optParams Optional parameters.
392
   * @return Google_Service_Tasks_TaskList
393
   */
394
  public function update($tasklist, Google_Service_Tasks_TaskList $postBody, $optParams = array())
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");
399
  }
400
}
401
402
/**
403
 * The "tasks" collection of methods.

geodirectory-admin/google-api-php-client/src/Google/Service/YouTube.php 1 location

@@ 2471-2602 (lines=132) @@
2468
 *   $comments = $youtubeService->comments;
2469
 *  </code>
2470
 */
2471
class Google_Service_YouTube_Comments_Resource extends Google_Service_Resource
2472
{
2473
2474
  /**
2475
   * Deletes a comment. (comments.delete)
2476
   *
2477
   * @param string $id The id parameter specifies the comment ID for the resource
2478
   * that is being deleted.
2479
   * @param array $optParams Optional parameters.
2480
   */
2481
  public function delete($id, $optParams = array())
2482
  {
2483
    $params = array('id' => $id);
2484
    $params = array_merge($params, $optParams);
2485
    return $this->call('delete', array($params));
2486
  }
2487
2488
  /**
2489
   * Creates a reply to an existing comment. Note: To create a top-level comment,
2490
   * use the commentThreads.insert method. (comments.insert)
2491
   *
2492
   * @param string $part The part parameter identifies the properties that the API
2493
   * response will include. Set the parameter value to snippet. The snippet part
2494
   * has a quota cost of 2 units.
2495
   * @param Google_Comment $postBody
2496
   * @param array $optParams Optional parameters.
2497
   * @return Google_Service_YouTube_Comment
2498
   */
2499
  public function insert($part, Google_Service_YouTube_Comment $postBody, $optParams = array())
2500
  {
2501
    $params = array('part' => $part, 'postBody' => $postBody);
2502
    $params = array_merge($params, $optParams);
2503
    return $this->call('insert', array($params), "Google_Service_YouTube_Comment");
2504
  }
2505
2506
  /**
2507
   * Returns a list of comments that match the API request parameters.
2508
   * (comments.listComments)
2509
   *
2510
   * @param string $part The part parameter specifies a comma-separated list of
2511
   * one or more comment resource properties that the API response will include.
2512
   * @param array $optParams Optional parameters.
2513
   *
2514
   * @opt_param string maxResults The maxResults parameter specifies the maximum
2515
   * number of items that should be returned in the result set.
2516
   *
2517
   * Note: This parameter is not supported for use in conjunction with the id
2518
   * parameter.
2519
   * @opt_param string pageToken The pageToken parameter identifies a specific
2520
   * page in the result set that should be returned. In an API response, the
2521
   * nextPageToken property identifies the next page of the result that can be
2522
   * retrieved.
2523
   *
2524
   * Note: This parameter is not supported for use in conjunction with the id
2525
   * parameter.
2526
   * @opt_param string parentId The parentId parameter specifies the ID of the
2527
   * comment for which replies should be retrieved.
2528
   *
2529
   * Note: YouTube currently supports replies only for top-level comments.
2530
   * However, replies to replies may be supported in the future.
2531
   * @opt_param string textFormat This parameter indicates whether the API should
2532
   * return comments formatted as HTML or as plain text.
2533
   * @opt_param string id The id parameter specifies a comma-separated list of
2534
   * comment IDs for the resources that are being retrieved. In a comment
2535
   * resource, the id property specifies the comment's ID.
2536
   * @return Google_Service_YouTube_CommentListResponse
2537
   */
2538
  public function listComments($part, $optParams = array())
2539
  {
2540
    $params = array('part' => $part);
2541
    $params = array_merge($params, $optParams);
2542
    return $this->call('list', array($params), "Google_Service_YouTube_CommentListResponse");
2543
  }
2544
2545
  /**
2546
   * Expresses the caller's opinion that one or more comments should be flagged as
2547
   * spam. (comments.markAsSpam)
2548
   *
2549
   * @param string $id The id parameter specifies a comma-separated list of IDs of
2550
   * comments that the caller believes should be classified as spam.
2551
   * @param array $optParams Optional parameters.
2552
   */
2553
  public function markAsSpam($id, $optParams = array())
2554
  {
2555
    $params = array('id' => $id);
2556
    $params = array_merge($params, $optParams);
2557
    return $this->call('markAsSpam', array($params));
2558
  }
2559
2560
  /**
2561
   * Sets the moderation status of one or more comments. The API request must be
2562
   * authorized by the owner of the channel or video associated with the comments.
2563
   * (comments.setModerationStatus)
2564
   *
2565
   * @param string $id The id parameter specifies a comma-separated list of IDs
2566
   * that identify the comments for which you are updating the moderation status.
2567
   * @param string $moderationStatus Identifies the new moderation status of the
2568
   * specified comments.
2569
   * @param array $optParams Optional parameters.
2570
   *
2571
   * @opt_param bool banAuthor The banAuthor parameter lets you indicate that you
2572
   * want to automatically reject any additional comments written by the comment's
2573
   * author. Set the parameter value to true to ban the author.
2574
   *
2575
   * Note: This parameter is only valid if the moderationStatus parameter is also
2576
   * set to rejected.
2577
   */
2578
  public function setModerationStatus($id, $moderationStatus, $optParams = array())
2579
  {
2580
    $params = array('id' => $id, 'moderationStatus' => $moderationStatus);
2581
    $params = array_merge($params, $optParams);
2582
    return $this->call('setModerationStatus', array($params));
2583
  }
2584
2585
  /**
2586
   * Modifies a comment. (comments.update)
2587
   *
2588
   * @param string $part The part parameter identifies the properties that the API
2589
   * response will include. You must at least include the snippet part in the
2590
   * parameter value since that part contains all of the properties that the API
2591
   * request can update.
2592
   * @param Google_Comment $postBody
2593
   * @param array $optParams Optional parameters.
2594
   * @return Google_Service_YouTube_Comment
2595
   */
2596
  public function update($part, Google_Service_YouTube_Comment $postBody, $optParams = array())
2597
  {
2598
    $params = array('part' => $part, 'postBody' => $postBody);
2599
    $params = array_merge($params, $optParams);
2600
    return $this->call('update', array($params), "Google_Service_YouTube_Comment");
2601
  }
2602
}
2603
2604
/**
2605
 * The "guideCategories" collection of methods.