Skip to content

Commit 57efa27

Browse files
committed
Updated Replicapoolupdater.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 bc0b051 commit 57efa27

File tree

1 file changed

+51
-53
lines changed

1 file changed

+51
-53
lines changed

src/Google/Service/Replicapoolupdater.php

Lines changed: 51 additions & 53 deletions
Original file line numberDiff line numberDiff line change
@@ -218,6 +218,31 @@ public function __construct(Google_Client $client)
218218
'required' => true,
219219
),
220220
),
221+
),'resume' => array(
222+
'path' => '{project}/zones/{zone}/instanceGroupManagers/{instanceGroupManager}/updates/{update}/resume',
223+
'httpMethod' => 'POST',
224+
'parameters' => array(
225+
'project' => array(
226+
'location' => 'path',
227+
'type' => 'string',
228+
'required' => true,
229+
),
230+
'zone' => array(
231+
'location' => 'path',
232+
'type' => 'string',
233+
'required' => true,
234+
),
235+
'instanceGroupManager' => array(
236+
'location' => 'path',
237+
'type' => 'string',
238+
'required' => true,
239+
),
240+
'update' => array(
241+
'location' => 'path',
242+
'type' => 'string',
243+
'required' => true,
244+
),
245+
),
221246
),'rollback' => array(
222247
'path' => '{project}/zones/{zone}/instanceGroupManagers/{instanceGroupManager}/updates/{update}/rollback',
223248
'httpMethod' => 'POST',
@@ -295,7 +320,7 @@ class Google_Service_Replicapoolupdater_Updates_Resource extends Google_Service_
295320
* @param string $zone The name of the zone in which the update's target
296321
* resides.
297322
* @param string $instanceGroupManager The name of the instance group manager.
298-
* @param string $update Unique (in the context of a group) handle of an update.
323+
* @param string $update The id of the update.
299324
* @param array $optParams Optional parameters.
300325
*/
301326
public function cancel($project, $zone, $instanceGroupManager, $update, $optParams = array())
@@ -313,7 +338,7 @@ public function cancel($project, $zone, $instanceGroupManager, $update, $optPara
313338
* @param string $zone The name of the zone in which the update's target
314339
* resides.
315340
* @param string $instanceGroupManager The name of the instance group manager.
316-
* @param string $update Unique (in the context of a group) handle of an update.
341+
* @param string $update The id of the update.
317342
* @param array $optParams Optional parameters.
318343
* @return Google_Service_Replicapoolupdater_Update
319344
*/
@@ -376,7 +401,7 @@ public function listUpdates($project, $zone, $instanceGroupManager, $optParams =
376401
* @param string $zone The name of the zone in which the update's target
377402
* resides.
378403
* @param string $instanceGroupManager The name of the instance group manager.
379-
* @param string $update Unique (in the context of a group) handle of an update.
404+
* @param string $update The id of the update.
380405
* @param array $optParams Optional parameters.
381406
*
382407
* @opt_param int maxResults Maximum count of results to be returned. Acceptable
@@ -402,7 +427,7 @@ public function listInstanceUpdates($project, $zone, $instanceGroupManager, $upd
402427
* @param string $zone The name of the zone in which the update's target
403428
* resides.
404429
* @param string $instanceGroupManager The name of the instance group manager.
405-
* @param string $update Unique (in the context of a group) handle of an update.
430+
* @param string $update The id of the update.
406431
* @param array $optParams Optional parameters.
407432
*/
408433
public function pause($project, $zone, $instanceGroupManager, $update, $optParams = array())
@@ -412,6 +437,24 @@ public function pause($project, $zone, $instanceGroupManager, $update, $optParam
412437
return $this->call('pause', array($params));
413438
}
414439

440+
/**
441+
* Called on the particular Update endpoint. Resumes the update in state PAUSED.
442+
* No-op if invoked in state ROLLING_FORWARD or ROLLING_BACK. (updates.resume)
443+
*
444+
* @param string $project The Google Developers Console project name.
445+
* @param string $zone The name of the zone in which the update's target
446+
* resides.
447+
* @param string $instanceGroupManager The name of the instance group manager.
448+
* @param string $update The id of the update.
449+
* @param array $optParams Optional parameters.
450+
*/
451+
public function resume($project, $zone, $instanceGroupManager, $update, $optParams = array())
452+
{
453+
$params = array('project' => $project, 'zone' => $zone, 'instanceGroupManager' => $instanceGroupManager, 'update' => $update);
454+
$params = array_merge($params, $optParams);
455+
return $this->call('resume', array($params));
456+
}
457+
415458
/**
416459
* Called on the particular Update endpoint. Rolls back the update in state
417460
* ROLLING_FORWARD or PAUSED. No-op if invoked in state ROLLED_BACK or
@@ -421,7 +464,7 @@ public function pause($project, $zone, $instanceGroupManager, $update, $optParam
421464
* @param string $zone The name of the zone in which the update's target
422465
* resides.
423466
* @param string $instanceGroupManager The name of the instance group manager.
424-
* @param string $update Unique (in the context of a group) handle of an update.
467+
* @param string $update The id of the update.
425468
* @param array $optParams Optional parameters.
426469
*/
427470
public function rollback($project, $zone, $instanceGroupManager, $update, $optParams = array())
@@ -433,14 +476,14 @@ public function rollback($project, $zone, $instanceGroupManager, $update, $optPa
433476

434477
/**
435478
* Called on the particular Update endpoint. Rolls forward the update in state
436-
* ROLLING_BACK or PAUSED. No-op if invoked in state ROLLED_OUT or
437-
* ROLLING_FORWARD. (updates.rollforward)
479+
* PAUSED before ordering it to roll back. No-op if invoked in state ROLLED_OUT
480+
* or ROLLING_FORWARD. (updates.rollforward)
438481
*
439482
* @param string $project The Google Developers Console project name.
440483
* @param string $zone The name of the zone in which the update's target
441484
* resides.
442485
* @param string $instanceGroupManager The name of the instance group manager.
443-
* @param string $update Unique (in the context of a group) handle of an update.
486+
* @param string $update The id of the update.
444487
* @param array $optParams Optional parameters.
445488
*/
446489
public function rollforward($project, $zone, $instanceGroupManager, $update, $optParams = array())
@@ -476,7 +519,6 @@ class Google_Service_Replicapoolupdater_InstanceUpdate extends Google_Model
476519
protected $internal_gapi_mappings = array(
477520
);
478521
public $instance;
479-
public $state;
480522
public $status;
481523

482524

@@ -488,14 +530,6 @@ public function getInstance()
488530
{
489531
return $this->instance;
490532
}
491-
public function setState($state)
492-
{
493-
$this->state = $state;
494-
}
495-
public function getState()
496-
{
497-
return $this->state;
498-
}
499533
public function setStatus($status)
500534
{
501535
$this->status = $status;
@@ -557,8 +591,6 @@ class Google_Service_Replicapoolupdater_Update extends Google_Model
557591
protected $internal_gapi_mappings = array(
558592
);
559593
public $creationTimestamp;
560-
public $details;
561-
public $handle;
562594
public $id;
563595
public $instanceGroupManager;
564596
public $instanceTemplate;
@@ -567,10 +599,8 @@ class Google_Service_Replicapoolupdater_Update extends Google_Model
567599
protected $policyDataType = '';
568600
public $progress;
569601
public $selfLink;
570-
public $state;
571602
public $status;
572603
public $statusMessage;
573-
public $targetState;
574604
public $user;
575605

576606

@@ -582,22 +612,6 @@ public function getCreationTimestamp()
582612
{
583613
return $this->creationTimestamp;
584614
}
585-
public function setDetails($details)
586-
{
587-
$this->details = $details;
588-
}
589-
public function getDetails()
590-
{
591-
return $this->details;
592-
}
593-
public function setHandle($handle)
594-
{
595-
$this->handle = $handle;
596-
}
597-
public function getHandle()
598-
{
599-
return $this->handle;
600-
}
601615
public function setId($id)
602616
{
603617
$this->id = $id;
@@ -654,14 +668,6 @@ public function getSelfLink()
654668
{
655669
return $this->selfLink;
656670
}
657-
public function setState($state)
658-
{
659-
$this->state = $state;
660-
}
661-
public function getState()
662-
{
663-
return $this->state;
664-
}
665671
public function setStatus($status)
666672
{
667673
$this->status = $status;
@@ -678,14 +684,6 @@ public function getStatusMessage()
678684
{
679685
return $this->statusMessage;
680686
}
681-
public function setTargetState($targetState)
682-
{
683-
$this->targetState = $targetState;
684-
}
685-
public function getTargetState()
686-
{
687-
return $this->targetState;
688-
}
689687
public function setUser($user)
690688
{
691689
$this->user = $user;

0 commit comments

Comments
 (0)