Skip to content

Commit 8a9bd13

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 c0afacd commit 8a9bd13

File tree

1 file changed

+109
-17
lines changed

1 file changed

+109
-17
lines changed

src/Google/Service/Replicapoolupdater.php

Lines changed: 109 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -160,6 +160,39 @@ public function __construct(Google_Client $client)
160160
'type' => 'integer',
161161
),
162162
),
163+
),'listInstanceUpdates' => array(
164+
'path' => '{project}/zones/{zone}/instanceGroupManagers/{instanceGroupManager}/updates/{update}/instanceUpdates',
165+
'httpMethod' => 'GET',
166+
'parameters' => array(
167+
'project' => array(
168+
'location' => 'path',
169+
'type' => 'string',
170+
'required' => true,
171+
),
172+
'zone' => array(
173+
'location' => 'path',
174+
'type' => 'string',
175+
'required' => true,
176+
),
177+
'instanceGroupManager' => array(
178+
'location' => 'path',
179+
'type' => 'string',
180+
'required' => true,
181+
),
182+
'update' => array(
183+
'location' => 'path',
184+
'type' => 'string',
185+
'required' => true,
186+
),
187+
'maxResults' => array(
188+
'location' => 'query',
189+
'type' => 'integer',
190+
),
191+
'pageToken' => array(
192+
'location' => 'query',
193+
'type' => 'string',
194+
),
195+
),
163196
),'pause' => array(
164197
'path' => '{project}/zones/{zone}/instanceGroupManagers/{instanceGroupManager}/updates/{update}/pause',
165198
'httpMethod' => 'POST',
@@ -335,6 +368,30 @@ public function listUpdates($project, $zone, $instanceGroupManager, $optParams =
335368
return $this->call('list', array($params), "Google_Service_Replicapoolupdater_UpdateList");
336369
}
337370

371+
/**
372+
* Lists instance updates for a given update. (updates.listInstanceUpdates)
373+
*
374+
* @param string $project Project ID for this request.
375+
* @param string $zone Zone for the instance group manager.
376+
* @param string $instanceGroupManager Name of the instance group manager for
377+
* this request.
378+
* @param string $update Unique (in the context of a group) handle of an update.
379+
* @param array $optParams Optional parameters.
380+
*
381+
* @opt_param int maxResults Maximum count of results to be returned. Acceptable
382+
* values are 1 to 100, inclusive. (Default: 50)
383+
* @opt_param string pageToken Set this to the nextPageToken value returned by a
384+
* previous list request to obtain the next page of results from the previous
385+
* list request.
386+
* @return Google_Service_Replicapoolupdater_InstanceUpdateList
387+
*/
388+
public function listInstanceUpdates($project, $zone, $instanceGroupManager, $update, $optParams = array())
389+
{
390+
$params = array('project' => $project, 'zone' => $zone, 'instanceGroupManager' => $instanceGroupManager, 'update' => $update);
391+
$params = array_merge($params, $optParams);
392+
return $this->call('listInstanceUpdates', array($params), "Google_Service_Replicapoolupdater_InstanceUpdateList");
393+
}
394+
338395
/**
339396
* Called on the particular Update endpoint. Pauses the update in state
340397
* ROLLING_FORWARD or ROLLING_BACK. No-op if invoked in state PAUSED.
@@ -417,17 +474,17 @@ class Google_Service_Replicapoolupdater_InstanceUpdate extends Google_Model
417474
{
418475
protected $internal_gapi_mappings = array(
419476
);
420-
public $instanceName;
477+
public $instance;
421478
public $state;
422479

423480

424-
public function setInstanceName($instanceName)
481+
public function setInstance($instance)
425482
{
426-
$this->instanceName = $instanceName;
483+
$this->instance = $instance;
427484
}
428-
public function getInstanceName()
485+
public function getInstance()
429486
{
430-
return $this->instanceName;
487+
return $this->instance;
431488
}
432489
public function setState($state)
433490
{
@@ -439,20 +496,47 @@ public function getState()
439496
}
440497
}
441498

442-
class Google_Service_Replicapoolupdater_Update extends Google_Collection
499+
class Google_Service_Replicapoolupdater_InstanceUpdateList extends Google_Collection
500+
{
501+
protected $collection_key = 'items';
502+
protected $internal_gapi_mappings = array(
503+
);
504+
protected $itemsType = 'Google_Service_Replicapoolupdater_InstanceUpdate';
505+
protected $itemsDataType = 'array';
506+
public $nextPageToken;
507+
508+
509+
public function setItems($items)
510+
{
511+
$this->items = $items;
512+
}
513+
public function getItems()
514+
{
515+
return $this->items;
516+
}
517+
public function setNextPageToken($nextPageToken)
518+
{
519+
$this->nextPageToken = $nextPageToken;
520+
}
521+
public function getNextPageToken()
522+
{
523+
return $this->nextPageToken;
524+
}
525+
}
526+
527+
class Google_Service_Replicapoolupdater_Update extends Google_Model
443528
{
444-
protected $collection_key = 'instanceUpdates';
445529
protected $internal_gapi_mappings = array(
446530
);
447531
public $creationTimestamp;
448532
public $details;
449533
public $handle;
534+
public $instanceGroupManager;
450535
public $instanceTemplate;
451-
protected $instanceUpdatesType = 'Google_Service_Replicapoolupdater_InstanceUpdate';
452-
protected $instanceUpdatesDataType = 'array';
453536
public $kind;
454537
protected $policyType = 'Google_Service_Replicapoolupdater_UpdatePolicy';
455538
protected $policyDataType = '';
539+
public $progress;
456540
public $selfLink;
457541
public $state;
458542
public $targetState;
@@ -483,21 +567,21 @@ public function getHandle()
483567
{
484568
return $this->handle;
485569
}
486-
public function setInstanceTemplate($instanceTemplate)
570+
public function setInstanceGroupManager($instanceGroupManager)
487571
{
488-
$this->instanceTemplate = $instanceTemplate;
572+
$this->instanceGroupManager = $instanceGroupManager;
489573
}
490-
public function getInstanceTemplate()
574+
public function getInstanceGroupManager()
491575
{
492-
return $this->instanceTemplate;
576+
return $this->instanceGroupManager;
493577
}
494-
public function setInstanceUpdates($instanceUpdates)
578+
public function setInstanceTemplate($instanceTemplate)
495579
{
496-
$this->instanceUpdates = $instanceUpdates;
580+
$this->instanceTemplate = $instanceTemplate;
497581
}
498-
public function getInstanceUpdates()
582+
public function getInstanceTemplate()
499583
{
500-
return $this->instanceUpdates;
584+
return $this->instanceTemplate;
501585
}
502586
public function setKind($kind)
503587
{
@@ -515,6 +599,14 @@ public function getPolicy()
515599
{
516600
return $this->policy;
517601
}
602+
public function setProgress($progress)
603+
{
604+
$this->progress = $progress;
605+
}
606+
public function getProgress()
607+
{
608+
return $this->progress;
609+
}
518610
public function setSelfLink($selfLink)
519611
{
520612
$this->selfLink = $selfLink;

0 commit comments

Comments
 (0)