Google_Service_Compute_Resource_RegionInstanceGroupManagers
extends Google_Service_Resource
in package
The "regionInstanceGroupManagers" collection of methods.
Typical usage is:
$computeService = new Google_Service_Compute(...);
$regionInstanceGroupManagers = $computeService->regionInstanceGroupManagers;
Table of Contents
- $client : Google_Client
- $methods : array<string|int, mixed>
- $resourceName : string
- $rootUrl : string
- $serviceName : string
- $servicePath : string
- $stackParameters : mixed
- __construct() : mixed
- abandonInstances() : Google_Service_Compute_Operation
- Flags the specified instances to be immediately removed from the managed instance group. Abandoning an instance does not delete the instance, but it does remove the instance from any target pools that are applied by the managed instance group. This method reduces the targetSize of the managed instance group by the number of instances that you abandon. This operation is marked as DONE when the action is scheduled even if the instances have not yet been removed from the group. You must separately verify the status of the abandoning action with the listmanagedinstances method.
- applyUpdatesToInstances() : Google_Service_Compute_Operation
- Apply updates to selected instances the managed instance group.
- call() : Google_Http_Request|expectedClass
- TODO: This function needs simplifying.
- createInstances() : Google_Service_Compute_Operation
- Creates instances with per-instance configs in this regional managed instance group. Instances are created using the current instance template. The create instances operation is marked DONE if the createInstances request is successful. The underlying actions take additional time. You must separately verify the status of the creating or actions with the listmanagedinstances method. (regionInstanceGroupManagers.createInstances)
- createRequestUri() : string
- Parse/expand request parameters and create a fully qualified request uri.
- delete() : Google_Service_Compute_Operation
- Deletes the specified managed instance group and all of the instances in that group. (regionInstanceGroupManagers.delete)
- deleteInstances() : Google_Service_Compute_Operation
- Flags the specified instances in the managed instance group to be immediately deleted. The instances are also removed from any target pools of which they were a member. This method reduces the targetSize of the managed instance group by the number of instances that you delete. The deleteInstances operation is marked DONE if the deleteInstances request is successful. The underlying actions take additional time. You must separately verify the status of the deleting action with the listmanagedinstances method.
- deletePerInstanceConfigs() : Google_Service_Compute_Operation
- Deletes selected per-instance configs for the managed instance group.
- get() : Google_Service_Compute_InstanceGroupManager
- Returns all of the details about the specified managed instance group.
- insert() : Google_Service_Compute_Operation
- Creates a managed instance group using the information that you specify in the request. After the group is created, instances in the group are created using the specified instance template. This operation is marked as DONE when the group is created even if the instances in the group have not yet been created. You must separately verify the status of the individual instances with the listmanagedinstances method.
- listErrors() : Google_Service_Compute_RegionInstanceGroupManagersListErrorsResponse
- Lists all errors thrown by actions on instances for a given regional managed instance group. The filter and orderBy query parameters are not supported.
- listManagedInstances() : Google_Service_Compute_RegionInstanceGroupManagersListInstancesResponse
- Lists the instances in the managed instance group and instances that are scheduled to be created. The list includes any current actions that the group has scheduled for its instances. The orderBy query parameter is not supported. (regionInstanceGroupManagers.listManagedInstances)
- listPerInstanceConfigs() : Google_Service_Compute_RegionInstanceGroupManagersListInstanceConfigsResp
- Lists all of the per-instance configs defined for the managed instance group.
- listRegionInstanceGroupManagers() : Google_Service_Compute_RegionInstanceGroupManagerList
- Retrieves the list of managed instance groups that are contained within the specified region.
- patch() : Google_Service_Compute_Operation
- Updates a managed instance group using the information that you specify in the request. This operation is marked as DONE when the group is patched even if the instances in the group are still in the process of being patched. You must separately verify the status of the individual instances with the listmanagedinstances method. This method supports PATCH semantics and uses the JSON merge patch format and processing rules.
- patchPerInstanceConfigs() : Google_Service_Compute_Operation
- Insert or patch (for the ones that already exist) per-instance configs for the managed instance group. perInstanceConfig.instance serves as a key used to distinguish whether to perform insert or patch.
- recreateInstances() : Google_Service_Compute_Operation
- Flags the specified instances in the managed instance group to be immediately recreated. The instances are deleted and recreated using the current instance template for the managed instance group. This operation is marked as DONE when the flag is set even if the instances have not yet been recreated. You must separately verify the status of the recreating action with the listmanagedinstances method.
- resize() : Google_Service_Compute_Operation
- Changes the intended size of the managed instance group. If you increase the size, the group creates new instances using the current instance template. If you decrease the size, the group deletes one or more instances.
- setInstanceTemplate() : Google_Service_Compute_Operation
- Sets the instance template to use when creating new instances or recreating instances in this group. Existing instances are not affected.
- setTargetPools() : Google_Service_Compute_Operation
- Modifies the target pools to which all new instances in this group are assigned. Existing instances in the group are not affected.
- updatePerInstanceConfigs() : Google_Service_Compute_Operation
- Insert or update (for the ones that already exist) per-instance configs for the managed instance group. perInstanceConfig.instance serves as a key used to distinguish whether to perform insert or patch.
- convertToArrayAndStripNulls() : mixed
Properties
$client
private
Google_Client
$client
$methods
private
array<string|int, mixed>
$methods
$resourceName
private
string
$resourceName
$rootUrl
private
string
$rootUrl
$serviceName
private
string
$serviceName
$servicePath
private
string
$servicePath
$stackParameters
private
mixed
$stackParameters
= array('alt' => array('type' => 'string', 'location' => 'query'), 'fields' => array('type' => 'string', 'location' => 'query'), 'trace' => array('type' => 'string', 'location' => 'query'), 'userIp' => array('type' => 'string', 'location' => 'query'), 'quotaUser' => array('type' => 'string', 'location' => 'query'), 'data' => array('type' => 'string', 'location' => 'body'), 'mimeType' => array('type' => 'string', 'location' => 'header'), 'uploadType' => array('type' => 'string', 'location' => 'query'), 'mediaUpload' => array('type' => 'complex', 'location' => 'query'), 'prettyPrint' => array('type' => 'string', 'location' => 'query'))
Methods
__construct()
public
__construct(mixed $service, mixed $serviceName, mixed $resourceName, mixed $resource) : mixed
Parameters
- $service : mixed
- $serviceName : mixed
- $resourceName : mixed
- $resource : mixed
Return values
mixed —abandonInstances()
Flags the specified instances to be immediately removed from the managed instance group. Abandoning an instance does not delete the instance, but it does remove the instance from any target pools that are applied by the managed instance group. This method reduces the targetSize of the managed instance group by the number of instances that you abandon. This operation is marked as DONE when the action is scheduled even if the instances have not yet been removed from the group. You must separately verify the status of the abandoning action with the listmanagedinstances method.
public
abandonInstances(string $project, string $region, string $instanceGroupManager, Google_Service_Compute_RegionInstanceGroupManagersAbandonInstancesRequest $postBody[, array<string|int, mixed> $optParams = array() ]) : Google_Service_Compute_Operation
If the group is part of a backend service that has enabled connection draining, it can take up to 60 seconds after the connection draining duration has elapsed before the VM instance is removed or deleted.
You can specify a maximum of 1000 instances with this method per request. (regionInstanceGroupManagers.abandonInstances)
Parameters
- $project : string
-
Project ID for this request.
- $region : string
-
Name of the region scoping this request.
- $instanceGroupManager : string
-
Name of the managed instance group.
- $postBody : Google_Service_Compute_RegionInstanceGroupManagersAbandonInstancesRequest
- $optParams : array<string|int, mixed> = array()
-
Optional parameters.
Tags
Return values
Google_Service_Compute_Operation —applyUpdatesToInstances()
Apply updates to selected instances the managed instance group.
public
applyUpdatesToInstances(string $project, string $region, string $instanceGroupManager, Google_Service_Compute_RegionInstanceGroupManagersApplyUpdatesRequest $postBody[, array<string|int, mixed> $optParams = array() ]) : Google_Service_Compute_Operation
(regionInstanceGroupManagers.applyUpdatesToInstances)
Parameters
- $project : string
-
Project ID for this request.
- $region : string
-
Name of the region scoping this request, should conform to RFC1035.
- $instanceGroupManager : string
-
The name of the managed instance group, should conform to RFC1035.
- $postBody : Google_Service_Compute_RegionInstanceGroupManagersApplyUpdatesRequest
- $optParams : array<string|int, mixed> = array()
-
Optional parameters.
Return values
Google_Service_Compute_Operation —call()
TODO: This function needs simplifying.
public
call( $name, $arguments[, $expectedClass = null ]) : Google_Http_Request|expectedClass
Parameters
Tags
Return values
Google_Http_Request|expectedClass —createInstances()
Creates instances with per-instance configs in this regional managed instance group. Instances are created using the current instance template. The create instances operation is marked DONE if the createInstances request is successful. The underlying actions take additional time. You must separately verify the status of the creating or actions with the listmanagedinstances method. (regionInstanceGroupManagers.createInstances)
public
createInstances(string $project, string $region, string $instanceGroupManager, Google_Service_Compute_RegionInstanceGroupManagersCreateInstancesRequest $postBody[, array<string|int, mixed> $optParams = array() ]) : Google_Service_Compute_Operation
Parameters
- $project : string
-
Project ID for this request.
- $region : string
-
The name of the region where the managed instance group is located. It should conform to RFC1035.
- $instanceGroupManager : string
-
The name of the managed instance group. It should conform to RFC1035.
- $postBody : Google_Service_Compute_RegionInstanceGroupManagersCreateInstancesRequest
- $optParams : array<string|int, mixed> = array()
-
Optional parameters.
Tags
Return values
Google_Service_Compute_Operation —createRequestUri()
Parse/expand request parameters and create a fully qualified request uri.
public
createRequestUri(string $restPath, array<string|int, mixed> $params) : string
Parameters
- $restPath : string
- $params : array<string|int, mixed>
Tags
Return values
string —$requestUrl
delete()
Deletes the specified managed instance group and all of the instances in that group. (regionInstanceGroupManagers.delete)
public
delete(string $project, string $region, string $instanceGroupManager[, array<string|int, mixed> $optParams = array() ]) : Google_Service_Compute_Operation
Parameters
- $project : string
-
Project ID for this request.
- $region : string
-
Name of the region scoping this request.
- $instanceGroupManager : string
-
Name of the managed instance group to delete.
- $optParams : array<string|int, mixed> = array()
-
Optional parameters.
Tags
Return values
Google_Service_Compute_Operation —deleteInstances()
Flags the specified instances in the managed instance group to be immediately deleted. The instances are also removed from any target pools of which they were a member. This method reduces the targetSize of the managed instance group by the number of instances that you delete. The deleteInstances operation is marked DONE if the deleteInstances request is successful. The underlying actions take additional time. You must separately verify the status of the deleting action with the listmanagedinstances method.
public
deleteInstances(string $project, string $region, string $instanceGroupManager, Google_Service_Compute_RegionInstanceGroupManagersDeleteInstancesRequest $postBody[, array<string|int, mixed> $optParams = array() ]) : Google_Service_Compute_Operation
If the group is part of a backend service that has enabled connection draining, it can take up to 60 seconds after the connection draining duration has elapsed before the VM instance is removed or deleted.
You can specify a maximum of 1000 instances with this method per request. (regionInstanceGroupManagers.deleteInstances)
Parameters
- $project : string
-
Project ID for this request.
- $region : string
-
Name of the region scoping this request.
- $instanceGroupManager : string
-
Name of the managed instance group.
- $postBody : Google_Service_Compute_RegionInstanceGroupManagersDeleteInstancesRequest
- $optParams : array<string|int, mixed> = array()
-
Optional parameters.
Tags
Return values
Google_Service_Compute_Operation —deletePerInstanceConfigs()
Deletes selected per-instance configs for the managed instance group.
public
deletePerInstanceConfigs(string $project, string $region, string $instanceGroupManager, Google_Service_Compute_RegionInstanceGroupManagerDeleteInstanceConfigReq $postBody[, array<string|int, mixed> $optParams = array() ]) : Google_Service_Compute_Operation
(regionInstanceGroupManagers.deletePerInstanceConfigs)
Parameters
- $project : string
-
Project ID for this request.
- $region : string
-
Name of the region scoping this request, should conform to RFC1035.
- $instanceGroupManager : string
-
The name of the managed instance group. It should conform to RFC1035.
- $postBody : Google_Service_Compute_RegionInstanceGroupManagerDeleteInstanceConfigReq
- $optParams : array<string|int, mixed> = array()
-
Optional parameters.
Return values
Google_Service_Compute_Operation —get()
Returns all of the details about the specified managed instance group.
public
get(string $project, string $region, string $instanceGroupManager[, array<string|int, mixed> $optParams = array() ]) : Google_Service_Compute_InstanceGroupManager
(regionInstanceGroupManagers.get)
Parameters
- $project : string
-
Project ID for this request.
- $region : string
-
Name of the region scoping this request.
- $instanceGroupManager : string
-
Name of the managed instance group to return.
- $optParams : array<string|int, mixed> = array()
-
Optional parameters.
Return values
Google_Service_Compute_InstanceGroupManager —insert()
Creates a managed instance group using the information that you specify in the request. After the group is created, instances in the group are created using the specified instance template. This operation is marked as DONE when the group is created even if the instances in the group have not yet been created. You must separately verify the status of the individual instances with the listmanagedinstances method.
public
insert(string $project, string $region, Google_Service_Compute_InstanceGroupManager $postBody[, array<string|int, mixed> $optParams = array() ]) : Google_Service_Compute_Operation
A regional managed instance group can contain up to 2000 instances. (regionInstanceGroupManagers.insert)
Parameters
- $project : string
-
Project ID for this request.
- $region : string
-
Name of the region scoping this request.
- $postBody : Google_Service_Compute_InstanceGroupManager
- $optParams : array<string|int, mixed> = array()
-
Optional parameters.
Tags
Return values
Google_Service_Compute_Operation —listErrors()
Lists all errors thrown by actions on instances for a given regional managed instance group. The filter and orderBy query parameters are not supported.
public
listErrors(string $project, string $region, string $instanceGroupManager[, array<string|int, mixed> $optParams = array() ]) : Google_Service_Compute_RegionInstanceGroupManagersListErrorsResponse
(regionInstanceGroupManagers.listErrors)
Parameters
- $project : string
-
Project ID for this request.
- $region : string
-
Name of the region scoping this request. This should conform to RFC1035.
- $instanceGroupManager : string
-
The name of the managed instance group. It must be a string that meets the requirements in RFC1035, or an unsigned long integer: must match regexp pattern: (?:a-z?)|[1-9][0-9]{0,19}.
- $optParams : array<string|int, mixed> = array()
-
Optional parameters.
Tags
Return values
Google_Service_Compute_RegionInstanceGroupManagersListErrorsResponse —listManagedInstances()
Lists the instances in the managed instance group and instances that are scheduled to be created. The list includes any current actions that the group has scheduled for its instances. The orderBy query parameter is not supported. (regionInstanceGroupManagers.listManagedInstances)
public
listManagedInstances(string $project, string $region, string $instanceGroupManager[, array<string|int, mixed> $optParams = array() ]) : Google_Service_Compute_RegionInstanceGroupManagersListInstancesResponse
Parameters
- $project : string
-
Project ID for this request.
- $region : string
-
Name of the region scoping this request.
- $instanceGroupManager : string
-
The name of the managed instance group.
- $optParams : array<string|int, mixed> = array()
-
Optional parameters.
Tags
Return values
Google_Service_Compute_RegionInstanceGroupManagersListInstancesResponse —listPerInstanceConfigs()
Lists all of the per-instance configs defined for the managed instance group.
public
listPerInstanceConfigs(string $project, string $region, string $instanceGroupManager[, array<string|int, mixed> $optParams = array() ]) : Google_Service_Compute_RegionInstanceGroupManagersListInstanceConfigsResp
The orderBy query parameter is not supported. (regionInstanceGroupManagers.listPerInstanceConfigs)
Parameters
- $project : string
-
Project ID for this request.
- $region : string
-
Name of the region scoping this request, should conform to RFC1035.
- $instanceGroupManager : string
-
The name of the managed instance group. It should conform to RFC1035.
- $optParams : array<string|int, mixed> = array()
-
Optional parameters.
Tags
Return values
Google_Service_Compute_RegionInstanceGroupManagersListInstanceConfigsResp —listRegionInstanceGroupManagers()
Retrieves the list of managed instance groups that are contained within the specified region.
public
listRegionInstanceGroupManagers(string $project, string $region[, array<string|int, mixed> $optParams = array() ]) : Google_Service_Compute_RegionInstanceGroupManagerList
(regionInstanceGroupManagers.listRegionInstanceGroupManagers)
Parameters
- $project : string
-
Project ID for this request.
- $region : string
-
Name of the region scoping this request.
- $optParams : array<string|int, mixed> = array()
-
Optional parameters.
Tags
Return values
Google_Service_Compute_RegionInstanceGroupManagerList —patch()
Updates a managed instance group using the information that you specify in the request. This operation is marked as DONE when the group is patched even if the instances in the group are still in the process of being patched. You must separately verify the status of the individual instances with the listmanagedinstances method. This method supports PATCH semantics and uses the JSON merge patch format and processing rules.
public
patch(string $project, string $region, string $instanceGroupManager, Google_Service_Compute_InstanceGroupManager $postBody[, array<string|int, mixed> $optParams = array() ]) : Google_Service_Compute_Operation
(regionInstanceGroupManagers.patch)
Parameters
- $project : string
-
Project ID for this request.
- $region : string
-
Name of the region scoping this request.
- $instanceGroupManager : string
-
The name of the instance group manager.
- $postBody : Google_Service_Compute_InstanceGroupManager
- $optParams : array<string|int, mixed> = array()
-
Optional parameters.
Tags
Return values
Google_Service_Compute_Operation —patchPerInstanceConfigs()
Insert or patch (for the ones that already exist) per-instance configs for the managed instance group. perInstanceConfig.instance serves as a key used to distinguish whether to perform insert or patch.
public
patchPerInstanceConfigs(string $project, string $region, string $instanceGroupManager, Google_Service_Compute_RegionInstanceGroupManagerPatchInstanceConfigReq $postBody[, array<string|int, mixed> $optParams = array() ]) : Google_Service_Compute_Operation
(regionInstanceGroupManagers.patchPerInstanceConfigs)
Parameters
- $project : string
-
Project ID for this request.
- $region : string
-
Name of the region scoping this request, should conform to RFC1035.
- $instanceGroupManager : string
-
The name of the managed instance group. It should conform to RFC1035.
- $postBody : Google_Service_Compute_RegionInstanceGroupManagerPatchInstanceConfigReq
- $optParams : array<string|int, mixed> = array()
-
Optional parameters.
Tags
Return values
Google_Service_Compute_Operation —recreateInstances()
Flags the specified instances in the managed instance group to be immediately recreated. The instances are deleted and recreated using the current instance template for the managed instance group. This operation is marked as DONE when the flag is set even if the instances have not yet been recreated. You must separately verify the status of the recreating action with the listmanagedinstances method.
public
recreateInstances(string $project, string $region, string $instanceGroupManager, Google_Service_Compute_RegionInstanceGroupManagersRecreateRequest $postBody[, array<string|int, mixed> $optParams = array() ]) : Google_Service_Compute_Operation
If the group is part of a backend service that has enabled connection draining, it can take up to 60 seconds after the connection draining duration has elapsed before the VM instance is removed or deleted.
You can specify a maximum of 1000 instances with this method per request. (regionInstanceGroupManagers.recreateInstances)
Parameters
- $project : string
-
Project ID for this request.
- $region : string
-
Name of the region scoping this request.
- $instanceGroupManager : string
-
Name of the managed instance group.
- $postBody : Google_Service_Compute_RegionInstanceGroupManagersRecreateRequest
- $optParams : array<string|int, mixed> = array()
-
Optional parameters.
Tags
Return values
Google_Service_Compute_Operation —resize()
Changes the intended size of the managed instance group. If you increase the size, the group creates new instances using the current instance template. If you decrease the size, the group deletes one or more instances.
public
resize(string $project, string $region, string $instanceGroupManager, int $size[, array<string|int, mixed> $optParams = array() ]) : Google_Service_Compute_Operation
The resize operation is marked DONE if the resize request is successful. The underlying actions take additional time. You must separately verify the status of the creating or deleting actions with the listmanagedinstances method.
If the group is part of a backend service that has enabled connection draining, it can take up to 60 seconds after the connection draining duration has elapsed before the VM instance is removed or deleted. (regionInstanceGroupManagers.resize)
Parameters
- $project : string
-
Project ID for this request.
- $region : string
-
Name of the region scoping this request.
- $instanceGroupManager : string
-
Name of the managed instance group.
- $size : int
-
Number of instances that should exist in this instance group manager.
- $optParams : array<string|int, mixed> = array()
-
Optional parameters.
Tags
Return values
Google_Service_Compute_Operation —setInstanceTemplate()
Sets the instance template to use when creating new instances or recreating instances in this group. Existing instances are not affected.
public
setInstanceTemplate(string $project, string $region, string $instanceGroupManager, Google_Service_Compute_RegionInstanceGroupManagersSetTemplateRequest $postBody[, array<string|int, mixed> $optParams = array() ]) : Google_Service_Compute_Operation
(regionInstanceGroupManagers.setInstanceTemplate)
Parameters
- $project : string
-
Project ID for this request.
- $region : string
-
Name of the region scoping this request.
- $instanceGroupManager : string
-
The name of the managed instance group.
- $postBody : Google_Service_Compute_RegionInstanceGroupManagersSetTemplateRequest
- $optParams : array<string|int, mixed> = array()
-
Optional parameters.
Tags
Return values
Google_Service_Compute_Operation —setTargetPools()
Modifies the target pools to which all new instances in this group are assigned. Existing instances in the group are not affected.
public
setTargetPools(string $project, string $region, string $instanceGroupManager, Google_Service_Compute_RegionInstanceGroupManagersSetTargetPoolsRequest $postBody[, array<string|int, mixed> $optParams = array() ]) : Google_Service_Compute_Operation
(regionInstanceGroupManagers.setTargetPools)
Parameters
- $project : string
-
Project ID for this request.
- $region : string
-
Name of the region scoping this request.
- $instanceGroupManager : string
-
Name of the managed instance group.
- $postBody : Google_Service_Compute_RegionInstanceGroupManagersSetTargetPoolsRequest
- $optParams : array<string|int, mixed> = array()
-
Optional parameters.
Tags
Return values
Google_Service_Compute_Operation —updatePerInstanceConfigs()
Insert or update (for the ones that already exist) per-instance configs for the managed instance group. perInstanceConfig.instance serves as a key used to distinguish whether to perform insert or patch.
public
updatePerInstanceConfigs(string $project, string $region, string $instanceGroupManager, Google_Service_Compute_RegionInstanceGroupManagerUpdateInstanceConfigReq $postBody[, array<string|int, mixed> $optParams = array() ]) : Google_Service_Compute_Operation
(regionInstanceGroupManagers.updatePerInstanceConfigs)
Parameters
- $project : string
-
Project ID for this request.
- $region : string
-
Name of the region scoping this request, should conform to RFC1035.
- $instanceGroupManager : string
-
The name of the managed instance group. It should conform to RFC1035.
- $postBody : Google_Service_Compute_RegionInstanceGroupManagerUpdateInstanceConfigReq
- $optParams : array<string|int, mixed> = array()
-
Optional parameters.
Tags
Return values
Google_Service_Compute_Operation —convertToArrayAndStripNulls()
protected
convertToArrayAndStripNulls(mixed $o) : mixed
Parameters
- $o : mixed