Skip to content

Commit a1e3424

Browse files
committed
Updated GamesManagement.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 0ee25fe commit a1e3424

File tree

1 file changed

+68
-2
lines changed

1 file changed

+68
-2
lines changed

src/Google/Service/GamesManagement.php

Lines changed: 68 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -78,6 +78,10 @@ public function __construct(Google_Client $client)
7878
'path' => 'achievements/reset',
7979
'httpMethod' => 'POST',
8080
'parameters' => array(),
81+
),'resetAllForAllPlayers' => array(
82+
'path' => 'achievements/resetAllForAllPlayers',
83+
'httpMethod' => 'POST',
84+
'parameters' => array(),
8185
),'resetForAllPlayers' => array(
8286
'path' => 'achievements/{achievementId}/resetForAllPlayers',
8387
'httpMethod' => 'POST',
@@ -88,6 +92,10 @@ public function __construct(Google_Client $client)
8892
'required' => true,
8993
),
9094
),
95+
),'resetMultipleForAllPlayers' => array(
96+
'path' => 'achievements/resetMultipleForAllPlayers',
97+
'httpMethod' => 'POST',
98+
'parameters' => array(),
9199
),
92100
)
93101
)
@@ -318,8 +326,22 @@ public function resetAll($optParams = array())
318326
return $this->call('resetAll', array($params), "Google_Service_GamesManagement_AchievementResetAllResponse");
319327
}
320328
/**
321-
* Resets the achievement with the given ID for the all players. This method is
322-
* only available to user accounts for your developer console. Only draft
329+
* Resets all draft achievements for all players. This method is only available
330+
* to user accounts for your developer console.
331+
* (achievements.resetAllForAllPlayers)
332+
*
333+
* @param array $optParams Optional parameters.
334+
* @return Google_Service_GamesManagement_AchievementResetAllResponse
335+
*/
336+
public function resetAllForAllPlayers($optParams = array())
337+
{
338+
$params = array();
339+
$params = array_merge($params, $optParams);
340+
return $this->call('resetAllForAllPlayers', array($params), "Google_Service_GamesManagement_AchievementResetAllResponse");
341+
}
342+
/**
343+
* Resets the achievement with the given ID for all players. This method is only
344+
* available to user accounts for your developer console. Only draft
323345
* achievements can be reset. (achievements.resetForAllPlayers)
324346
*
325347
* @param string $achievementId
@@ -332,6 +354,20 @@ public function resetForAllPlayers($achievementId, $optParams = array())
332354
$params = array_merge($params, $optParams);
333355
return $this->call('resetForAllPlayers', array($params));
334356
}
357+
/**
358+
* Resets the achievement with the given IDs for all players. This method is
359+
* only available to user accounts for your developer console. Only draft
360+
* achievements may be reset. (achievements.resetMultipleForAllPlayers)
361+
*
362+
* @param Google_AchievementResetMultipleForAllRequest $postBody
363+
* @param array $optParams Optional parameters.
364+
*/
365+
public function resetMultipleForAllPlayers(Google_Service_GamesManagement_AchievementResetMultipleForAllRequest $postBody, $optParams = array())
366+
{
367+
$params = array('postBody' => $postBody);
368+
$params = array_merge($params, $optParams);
369+
return $this->call('resetMultipleForAllPlayers', array($params));
370+
}
335371
}
336372

337373
/**
@@ -632,6 +668,36 @@ public function getResults()
632668
}
633669
}
634670

671+
class Google_Service_GamesManagement_AchievementResetMultipleForAllRequest extends Google_Collection
672+
{
673+
protected $collection_key = 'achievement_ids';
674+
protected $internal_gapi_mappings = array(
675+
"achievementIds" => "achievement_ids",
676+
);
677+
public $achievementIds;
678+
public $kind;
679+
680+
public function setAchievementIds($achievementIds)
681+
{
682+
$this->achievementIds = $achievementIds;
683+
}
684+
685+
public function getAchievementIds()
686+
{
687+
return $this->achievementIds;
688+
}
689+
690+
public function setKind($kind)
691+
{
692+
$this->kind = $kind;
693+
}
694+
695+
public function getKind()
696+
{
697+
return $this->kind;
698+
}
699+
}
700+
635701
class Google_Service_GamesManagement_AchievementResetResponse extends Google_Model
636702
{
637703
protected $internal_gapi_mappings = array(

0 commit comments

Comments
 (0)