Moodle PHP Documentation 4.4
Moodle 4.4.1 (Build: 20240610) (db07c09afc5)
|
The "instanceGroupManagers" collection of methods. More...
Public Member Functions | |
abandonInstances ($project, $zone, $instanceGroupManager, Google_Service_Replicapool_InstanceGroupManagersAbandonInstancesRequest $postBody, $optParams=array()) | |
Removes the specified instances from the managed instance group, and from any target pools of which they were members, without deleting the instances. | |
call ($name, $arguments, $expected_class=null) | |
TODO: This function needs simplifying. | |
delete ($project, $zone, $instanceGroupManager, $optParams=array()) | |
Deletes the instance group manager and all instances contained within. | |
deleteInstances ($project, $zone, $instanceGroupManager, Google_Service_Replicapool_InstanceGroupManagersDeleteInstancesRequest $postBody, $optParams=array()) | |
Deletes the specified instances. | |
get ($project, $zone, $instanceGroupManager, $optParams=array()) | |
Returns the specified Instance Group Manager resource. | |
insert ($project, $zone, $size, Google_Service_Replicapool_InstanceGroupManager $postBody, $optParams=array()) | |
Creates an instance group manager, as well as the instance group and the specified number of instances. | |
listInstanceGroupManagers ($project, $zone, $optParams=array()) | |
Retrieves the list of Instance Group Manager resources contained within the specified zone. | |
recreateInstances ($project, $zone, $instanceGroupManager, Google_Service_Replicapool_InstanceGroupManagersRecreateInstancesRequest $postBody, $optParams=array()) | |
Recreates the specified instances. | |
resize ($project, $zone, $instanceGroupManager, $size, $optParams=array()) | |
Resizes the managed instance group up or down. | |
setInstanceTemplate ($project, $zone, $instanceGroupManager, Google_Service_Replicapool_InstanceGroupManagersSetInstanceTemplateRequest $postBody, $optParams=array()) | |
Sets the instance template to use when creating new instances in this group. | |
setTargetPools ($project, $zone, $instanceGroupManager, Google_Service_Replicapool_InstanceGroupManagersSetTargetPoolsRequest $postBody, $optParams=array()) | |
Modifies the target pools to which all new instances in this group are assigned. | |
Protected Member Functions | |
convertToArrayAndStripNulls ($o) | |
The "instanceGroupManagers" collection of methods.
Typical usage is: $replicapoolService = new Google_Service_Replicapool(...); $instanceGroupManagers = $replicapoolService->instanceGroupManagers;
Google_Service_Replicapool_InstanceGroupManagers_Resource::abandonInstances | ( | $project, | |
$zone, | |||
$instanceGroupManager, | |||
Google_Service_Replicapool_InstanceGroupManagersAbandonInstancesRequest | $postBody, | ||
$optParams = array() ) |
Removes the specified instances from the managed instance group, and from any target pools of which they were members, without deleting the instances.
(instanceGroupManagers.abandonInstances)
string | $project | The Google Developers Console project name. |
string | $zone | The name of the zone in which the instance group manager resides. |
string | $instanceGroupManager | The name of the instance group manager. |
Google_InstanceGroupManagersAbandonInstancesRequest | $postBody | |
array | $optParams | Optional parameters. |
Google_Service_Replicapool_Operation |
|
inherited |
TODO: This function needs simplifying.
$name | |
$arguments | |
$expected_class | - optional, the expected class name |
Google_Http_Request|expected_class |
Google_Exception |
Google_Service_Replicapool_InstanceGroupManagers_Resource::delete | ( | $project, | |
$zone, | |||
$instanceGroupManager, | |||
$optParams = array() ) |
Deletes the instance group manager and all instances contained within.
If you'd like to delete the manager without deleting the instances, you must first abandon the instances to remove them from the group. (instanceGroupManagers.delete)
string | $project | The Google Developers Console project name. |
string | $zone | The name of the zone in which the instance group manager resides. |
string | $instanceGroupManager | Name of the Instance Group Manager resource to delete. |
array | $optParams | Optional parameters. |
Google_Service_Replicapool_Operation |
Google_Service_Replicapool_InstanceGroupManagers_Resource::deleteInstances | ( | $project, | |
$zone, | |||
$instanceGroupManager, | |||
Google_Service_Replicapool_InstanceGroupManagersDeleteInstancesRequest | $postBody, | ||
$optParams = array() ) |
Deletes the specified instances.
The instances are deleted, then removed from the instance group and any target pools of which they were a member. The targetSize of the instance group manager is reduced by the number of instances deleted. (instanceGroupManagers.deleteInstances)
string | $project | The Google Developers Console project name. |
string | $zone | The name of the zone in which the instance group manager resides. |
string | $instanceGroupManager | The name of the instance group manager. |
Google_InstanceGroupManagersDeleteInstancesRequest | $postBody | |
array | $optParams | Optional parameters. |
Google_Service_Replicapool_Operation |
Google_Service_Replicapool_InstanceGroupManagers_Resource::get | ( | $project, | |
$zone, | |||
$instanceGroupManager, | |||
$optParams = array() ) |
Returns the specified Instance Group Manager resource.
(instanceGroupManagers.get)
string | $project | The Google Developers Console project name. |
string | $zone | The name of the zone in which the instance group manager resides. |
string | $instanceGroupManager | Name of the instance resource to return. |
array | $optParams | Optional parameters. |
Google_Service_Replicapool_InstanceGroupManager |
Google_Service_Replicapool_InstanceGroupManagers_Resource::insert | ( | $project, | |
$zone, | |||
$size, | |||
Google_Service_Replicapool_InstanceGroupManager | $postBody, | ||
$optParams = array() ) |
Creates an instance group manager, as well as the instance group and the specified number of instances.
(instanceGroupManagers.insert)
string | $project | The Google Developers Console project name. |
string | $zone | The name of the zone in which the instance group manager resides. |
int | $size | Number of instances that should exist. |
Google_InstanceGroupManager | $postBody | |
array | $optParams | Optional parameters. |
Google_Service_Replicapool_Operation |
Google_Service_Replicapool_InstanceGroupManagers_Resource::listInstanceGroupManagers | ( | $project, | |
$zone, | |||
$optParams = array() ) |
Retrieves the list of Instance Group Manager resources contained within the specified zone.
(instanceGroupManagers.listInstanceGroupManagers)
string | $project | The Google Developers Console project name. |
string | $zone | The name of the zone in which the instance group manager resides. |
array | $optParams | Optional parameters. |
@opt_param string filter Optional. Filter expression for filtering listed resources. @opt_param string pageToken Optional. Tag returned by a previous list request truncated by maxResults. Used to continue a previous list request. @opt_param string maxResults Optional. Maximum count of results to be returned. Maximum value is 500 and default value is 500.
Google_Service_Replicapool_InstanceGroupManagerList |
Google_Service_Replicapool_InstanceGroupManagers_Resource::recreateInstances | ( | $project, | |
$zone, | |||
$instanceGroupManager, | |||
Google_Service_Replicapool_InstanceGroupManagersRecreateInstancesRequest | $postBody, | ||
$optParams = array() ) |
Recreates the specified instances.
The instances are deleted, then recreated using the instance group manager's current instance template. (instanceGroupManagers.recreateInstances)
string | $project | The Google Developers Console project name. |
string | $zone | The name of the zone in which the instance group manager resides. |
string | $instanceGroupManager | The name of the instance group manager. |
Google_InstanceGroupManagersRecreateInstancesRequest | $postBody | |
array | $optParams | Optional parameters. |
Google_Service_Replicapool_Operation |
Google_Service_Replicapool_InstanceGroupManagers_Resource::resize | ( | $project, | |
$zone, | |||
$instanceGroupManager, | |||
$size, | |||
$optParams = array() ) |
Resizes the managed instance group up or down.
If resized up, new instances are created using the current instance template. If resized down, instances are removed in the order outlined in Resizing a managed instance group. (instanceGroupManagers.resize)
string | $project | The Google Developers Console project name. |
string | $zone | The name of the zone in which the instance group manager resides. |
string | $instanceGroupManager | The name of the instance group manager. |
int | $size | Number of instances that should exist in this Instance Group Manager. |
array | $optParams | Optional parameters. |
Google_Service_Replicapool_Operation |
Google_Service_Replicapool_InstanceGroupManagers_Resource::setInstanceTemplate | ( | $project, | |
$zone, | |||
$instanceGroupManager, | |||
Google_Service_Replicapool_InstanceGroupManagersSetInstanceTemplateRequest | $postBody, | ||
$optParams = array() ) |
Sets the instance template to use when creating new instances in this group.
Existing instances are not affected. (instanceGroupManagers.setInstanceTemplate)
string | $project | The Google Developers Console project name. |
string | $zone | The name of the zone in which the instance group manager resides. |
string | $instanceGroupManager | The name of the instance group manager. |
Google_InstanceGroupManagersSetInstanceTemplateRequest | $postBody | |
array | $optParams | Optional parameters. |
Google_Service_Replicapool_Operation |
Google_Service_Replicapool_InstanceGroupManagers_Resource::setTargetPools | ( | $project, | |
$zone, | |||
$instanceGroupManager, | |||
Google_Service_Replicapool_InstanceGroupManagersSetTargetPoolsRequest | $postBody, | ||
$optParams = array() ) |
Modifies the target pools to which all new instances in this group are assigned.
Existing instances in the group are not affected. (instanceGroupManagers.setTargetPools)
string | $project | The Google Developers Console project name. |
string | $zone | The name of the zone in which the instance group manager resides. |
string | $instanceGroupManager | The name of the instance group manager. |
Google_InstanceGroupManagersSetTargetPoolsRequest | $postBody | |
array | $optParams | Optional parameters. |
Google_Service_Replicapool_Operation |