1<html><body>
2<style>
3
4body, h1, h2, h3, div, span, p, pre, a {
5  margin: 0;
6  padding: 0;
7  border: 0;
8  font-weight: inherit;
9  font-style: inherit;
10  font-size: 100%;
11  font-family: inherit;
12  vertical-align: baseline;
13}
14
15body {
16  font-size: 13px;
17  padding: 1em;
18}
19
20h1 {
21  font-size: 26px;
22  margin-bottom: 1em;
23}
24
25h2 {
26  font-size: 24px;
27  margin-bottom: 1em;
28}
29
30h3 {
31  font-size: 20px;
32  margin-bottom: 1em;
33  margin-top: 1em;
34}
35
36pre, code {
37  line-height: 1.5;
38  font-family: Monaco, 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', 'Lucida Console', monospace;
39}
40
41pre {
42  margin-top: 0.5em;
43}
44
45h1, h2, h3, p {
46  font-family: Arial, sans serif;
47}
48
49h1, h2, h3 {
50  border-bottom: solid #CCC 1px;
51}
52
53.toc_element {
54  margin-top: 0.5em;
55}
56
57.firstline {
58  margin-left: 2 em;
59}
60
61.method  {
62  margin-top: 1em;
63  border: solid 1px #CCC;
64  padding: 1em;
65  background: #EEE;
66}
67
68.details {
69  font-weight: bold;
70  font-size: 14px;
71}
72
73</style>
74
75<h1><a href="replicapool_v1beta1.html">Replica Pool API</a> . <a href="replicapool_v1beta1.pools.html">pools</a></h1>
76<h2>Instance Methods</h2>
77<p class="toc_element">
78  <code><a href="#delete">delete(projectName, zone, poolName, body)</a></code></p>
79<p class="firstline">Deletes a replica pool.</p>
80<p class="toc_element">
81  <code><a href="#get">get(projectName, zone, poolName)</a></code></p>
82<p class="firstline">Gets information about a single replica pool.</p>
83<p class="toc_element">
84  <code><a href="#insert">insert(projectName, zone, body)</a></code></p>
85<p class="firstline">Inserts a new replica pool.</p>
86<p class="toc_element">
87  <code><a href="#list">list(projectName, zone, pageToken=None, maxResults=None)</a></code></p>
88<p class="firstline">List all replica pools.</p>
89<p class="toc_element">
90  <code><a href="#list_next">list_next(previous_request, previous_response)</a></code></p>
91<p class="firstline">Retrieves the next page of results.</p>
92<p class="toc_element">
93  <code><a href="#resize">resize(projectName, zone, poolName, numReplicas=None)</a></code></p>
94<p class="firstline">Resize a pool. This is an asynchronous operation, and multiple overlapping resize requests can be made. Replica Pools will use the information from the last resize request.</p>
95<p class="toc_element">
96  <code><a href="#updatetemplate">updatetemplate(projectName, zone, poolName, body)</a></code></p>
97<p class="firstline">Update the template used by the pool.</p>
98<h3>Method Details</h3>
99<div class="method">
100    <code class="details" id="delete">delete(projectName, zone, poolName, body)</code>
101  <pre>Deletes a replica pool.
102
103Args:
104  projectName: string, The project ID for this replica pool. (required)
105  zone: string, The zone for this replica pool. (required)
106  poolName: string, The name of the replica pool for this request. (required)
107  body: object, The request body. (required)
108    The object takes the form of:
109
110{
111    "abandonInstances": [ # If there are instances you would like to keep, you can specify them here. These instances won't be deleted, but the associated replica objects will be removed.
112      "A String",
113    ],
114  }
115
116</pre>
117</div>
118
119<div class="method">
120    <code class="details" id="get">get(projectName, zone, poolName)</code>
121  <pre>Gets information about a single replica pool.
122
123Args:
124  projectName: string, The project ID for this replica pool. (required)
125  zone: string, The zone for this replica pool. (required)
126  poolName: string, The name of the replica pool for this request. (required)
127
128Returns:
129  An object of the form:
130
131    {
132      "autoRestart": True or False, # Whether replicas in this pool should be restarted if they experience a failure. The default value is true.
133      "resourceViews": [ # The list of resource views that should be updated with all the replicas that are managed by this pool.
134        "A String",
135      ],
136      "description": "A String", # An optional description of the replica pool.
137      "labels": [ # A list of labels to attach to this replica pool and all created virtual machines in this replica pool.
138        { # A label to apply to this replica pool.
139          "value": "A String", # The value of this label.
140          "key": "A String", # The key for this label.
141        },
142      ],
143      "targetPool": "A String", # Deprecated, please use target_pools instead.
144      "baseInstanceName": "A String", # The base instance name to use for the replicas in this pool. This must match the regex [a-z]([-a-z0-9]*[a-z0-9])?. If specified, the instances in this replica pool will be named in the format <base-instance-name>-<ID>. The <ID> postfix will be a four character alphanumeric identifier generated by the service.
145          #
146          # If this is not specified by the user, a random base instance name is generated by the service.
147      "numReplicas": 42, # Deprecated! Use initial_num_replicas instead.
148      "template": { # The template used for creating replicas in the pool. # The template to use when creating replicas in this pool. This template is used during initial instance creation of the pool, when growing the pool in size, or when a replica restarts.
149        "action": { # An action that gets executed during initialization of the replicas. # An action to run during initialization of your replicas. An action is run as shell commands which are executed one after the other in the same bash shell, so any state established by one command is inherited by later commands.
150          "timeoutMilliSeconds": 42, # If an action's commands on a particular replica do not finish in the specified timeoutMilliSeconds, the replica is considered to be in a FAILING state. No efforts are made to stop any processes that were spawned or created as the result of running the action's commands. The default is the max allowed value, 1 hour (i.e. 3600000 milliseconds).
151          "commands": [ # A list of commands to run, one per line. If any command fails, the whole action is considered a failure and no further actions are run. This also marks the virtual machine or replica as a failure.
152            "A String",
153          ],
154          "envVariables": [ # A list of environment variables to use for the commands in this action.
155            { # An environment variable to set for an action.
156              "hidden": True or False, # Deprecated, do not use.
157              "name": "A String", # The name of the environment variable.
158              "value": "A String", # The value of the variable.
159            },
160          ],
161        },
162        "healthChecks": [ # A list of HTTP Health Checks to configure for this replica pool and all virtual machines in this replica pool.
163          {
164            "description": "A String", # The description for this health check.
165            "timeoutSec": 42, # How long (in seconds) to wait before a timeout failure for this healthcheck. The default value is 5 seconds.
166            "checkIntervalSec": 42, # How often (in seconds) to make HTTP requests for this healthcheck. The default value is 5 seconds.
167            "unhealthyThreshold": 42, # The number of consecutive health check requests that need to fail in order to consider the replica unhealthy. The default value is 2.
168            "healthyThreshold": 42, # The number of consecutive health check requests that need to succeed before the replica is considered healthy again. The default value is 2.
169            "host": "A String", # The value of the host header in the HTTP health check request. If left empty (default value), the localhost IP 127.0.0.1 will be used.
170            "path": "A String", # The localhost request path to send this health check, in the format /path/to/use. For example, /healthcheck.
171            "port": 42, # The TCP port for the health check requests.
172            "name": "A String", # The name of this health check.
173          },
174        ],
175        "version": "A String", # A free-form string describing the version of this template. You can provide any versioning string you would like. For example, version1 or template-v1.
176        "vmParams": { # Parameters for creating a Compute Engine Instance resource. Most fields are identical to the corresponding Compute Engine resource. # The virtual machine parameters to use for creating replicas. You can define settings such as the machine type and the image of replicas in this pool. This is required if replica type is SMART_VM.
177          "disksToCreate": [ # A list of Disk resources to create and attach to each Replica in the Pool. Currently, you can only define one disk and it must be a root persistent disk. Note that Replica Pool will create a root persistent disk for each replica.
178            { # A Persistent Disk resource that will be created and attached to each Replica in the Pool. Each Replica will have a unique persistent disk that is created and attached to that Replica in READ_WRITE mode.
179              "initializeParams": { # Initialization parameters for creating a new disk. # Create the new disk using these parameters. The name of the disk will be <instance_name>-<four_random_charactersgt;.
180                "diskSizeGb": "A String", # The size of the created disk in gigabytes.
181                "sourceImage": "A String", # The name or fully-qualified URL of a source image to use to create this disk. If you provide a name of the source image, Replica Pool will look for an image with that name in your project. If you are specifying an image provided by Compute Engine, you will need to provide the full URL with the correct project, such as:
182                    # http://www.googleapis.com/compute/v1/projects/debian-cloud/ global/images/debian-wheezy-7-vYYYYMMDD
183                "diskType": "A String", # Name of the disk type resource describing which disk type to use to create the disk. For example 'pd-ssd' or 'pd-standard'. Default is 'pd-standard'
184              },
185              "boot": True or False, # If true, indicates that this is the root persistent disk.
186              "attachment": { # Specifies how to attach a disk to a Replica. # How the disk will be attached to the Replica.
187                "deviceName": "A String", # The device name of this disk.
188                "index": 42, # A zero-based index to assign to this disk, where 0 is reserved for the boot disk. If not specified, this is assigned by the server.
189              },
190              "autoDelete": True or False, # If true, then this disk will be deleted when the instance is deleted. The default value is true.
191            },
192          ],
193          "canIpForward": True or False, # Enables IP Forwarding, which allows this instance to receive packets destined for a different IP address, and send packets with a different source IP. See IP Forwarding for more information.
194          "description": "A String", # An optional textual description of the instance.
195          "tags": { # A Compute Engine Instance tag, identical to the tags on the corresponding Compute Engine Instance resource. # A list of tags to apply to the Google Compute Engine instance to identify resources.
196            "items": [ # Items contained in this tag.
197              "A String",
198            ],
199            "fingerPrint": "A String", # The fingerprint of the tag. Required for updating the list of tags.
200          },
201          "onHostMaintenance": "A String",
202          "disksToAttach": [ # A list of existing Persistent Disk resources to attach to each replica in the pool. Each disk will be attached in read-only mode to every replica.
203            { # A pre-existing persistent disk that will be attached to every Replica in the Pool in READ_ONLY mode.
204              "source": "A String", # The name of the Persistent Disk resource. The Persistent Disk resource must be in the same zone as the Pool.
205              "attachment": { # Specifies how to attach a disk to a Replica. # How the disk will be attached to the Replica.
206                "deviceName": "A String", # The device name of this disk.
207                "index": 42, # A zero-based index to assign to this disk, where 0 is reserved for the boot disk. If not specified, this is assigned by the server.
208              },
209            },
210          ],
211          "machineType": "A String", # The machine type for this instance. The resource name (e.g. n1-standard-1).
212          "baseInstanceName": "A String", # Deprecated. Please use baseInstanceName instead.
213          "serviceAccounts": [ # A list of Service Accounts to enable for this instance.
214            { # A Compute Engine service account, identical to the Compute Engine resource.
215              "scopes": [ # The list of OAuth2 scopes to obtain for the service account, for example: https://www.googleapis.com/auth/devstorage.full_control
216                "A String",
217              ],
218              "email": "A String", # The service account email address, for example: 123845678986@project.gserviceaccount.com
219            },
220          ],
221          "networkInterfaces": [ # A list of network interfaces for the instance. Currently only one interface is supported by Google Compute Engine, ONE_TO_ONE_NAT.
222            { # A Compute Engine NetworkInterface resource. Identical to the NetworkInterface on the corresponding Compute Engine resource.
223              "accessConfigs": [ # An array of configurations for this interface. This specifies how this interface is configured to interact with other network services.
224                { # A Compute Engine network accessConfig. Identical to the accessConfig on corresponding Compute Engine resource.
225                  "type": "A String", # Type of this access configuration file. Currently only ONE_TO_ONE_NAT is supported.
226                  "name": "A String", # Name of this access configuration.
227                  "natIp": "A String", # An external IP address associated with this instance.
228                },
229              ],
230              "networkIp": "A String", # An optional IPV4 internal network address to assign to the instance for this network interface.
231              "network": "A String", # Name the Network resource to which this interface applies.
232            },
233          ],
234          "metadata": { # A Compute Engine metadata entry. Identical to the metadata on the corresponding Compute Engine resource. # The metadata key/value pairs assigned to this instance.
235            "items": [ # A list of metadata items.
236              { # A Compute Engine metadata item, defined as a key:value pair. Identical to the metadata on the corresponding Compute Engine resource.
237                "value": "A String", # A metadata value.
238                "key": "A String", # A metadata key.
239              },
240            ],
241            "fingerPrint": "A String", # The fingerprint of the metadata. Required for updating the metadata entries for this instance.
242          },
243        },
244      },
245      "healthChecks": [ # Deprecated. Please use template[].healthChecks instead.
246        {
247          "description": "A String", # The description for this health check.
248          "timeoutSec": 42, # How long (in seconds) to wait before a timeout failure for this healthcheck. The default value is 5 seconds.
249          "checkIntervalSec": 42, # How often (in seconds) to make HTTP requests for this healthcheck. The default value is 5 seconds.
250          "unhealthyThreshold": 42, # The number of consecutive health check requests that need to fail in order to consider the replica unhealthy. The default value is 2.
251          "healthyThreshold": 42, # The number of consecutive health check requests that need to succeed before the replica is considered healthy again. The default value is 2.
252          "host": "A String", # The value of the host header in the HTTP health check request. If left empty (default value), the localhost IP 127.0.0.1 will be used.
253          "path": "A String", # The localhost request path to send this health check, in the format /path/to/use. For example, /healthcheck.
254          "port": 42, # The TCP port for the health check requests.
255          "name": "A String", # The name of this health check.
256        },
257      ],
258      "currentNumReplicas": 42, # [Output Only] The current number of replicas in the pool.
259      "initialNumReplicas": 42, # The initial number of replicas this pool should have. You must provide a value greater than or equal to 0.
260      "type": "A String", # Deprecated! Do not set.
261      "targetPools": [ # A list of target pools to update with the replicas that are managed by this pool. If specified, the replicas in this replica pool will be added to the specified target pools for load balancing purposes. The replica pool must live in the same region as the specified target pools. These values must be the target pool resource names, and not fully qualified URLs.
262        "A String",
263      ],
264      "selfLink": "A String", # [Output Only] A self-link to the replica pool.
265      "name": "A String", # The name of the replica pool. Must follow the regex [a-z]([-a-z0-9]*[a-z0-9])? and be 1-28 characters long.
266    }</pre>
267</div>
268
269<div class="method">
270    <code class="details" id="insert">insert(projectName, zone, body)</code>
271  <pre>Inserts a new replica pool.
272
273Args:
274  projectName: string, The project ID for this replica pool. (required)
275  zone: string, The zone for this replica pool. (required)
276  body: object, The request body. (required)
277    The object takes the form of:
278
279{
280    "autoRestart": True or False, # Whether replicas in this pool should be restarted if they experience a failure. The default value is true.
281    "resourceViews": [ # The list of resource views that should be updated with all the replicas that are managed by this pool.
282      "A String",
283    ],
284    "description": "A String", # An optional description of the replica pool.
285    "labels": [ # A list of labels to attach to this replica pool and all created virtual machines in this replica pool.
286      { # A label to apply to this replica pool.
287        "value": "A String", # The value of this label.
288        "key": "A String", # The key for this label.
289      },
290    ],
291    "targetPool": "A String", # Deprecated, please use target_pools instead.
292    "baseInstanceName": "A String", # The base instance name to use for the replicas in this pool. This must match the regex [a-z]([-a-z0-9]*[a-z0-9])?. If specified, the instances in this replica pool will be named in the format <base-instance-name>-<ID>. The <ID> postfix will be a four character alphanumeric identifier generated by the service.
293        #
294        # If this is not specified by the user, a random base instance name is generated by the service.
295    "numReplicas": 42, # Deprecated! Use initial_num_replicas instead.
296    "template": { # The template used for creating replicas in the pool. # The template to use when creating replicas in this pool. This template is used during initial instance creation of the pool, when growing the pool in size, or when a replica restarts.
297      "action": { # An action that gets executed during initialization of the replicas. # An action to run during initialization of your replicas. An action is run as shell commands which are executed one after the other in the same bash shell, so any state established by one command is inherited by later commands.
298        "timeoutMilliSeconds": 42, # If an action's commands on a particular replica do not finish in the specified timeoutMilliSeconds, the replica is considered to be in a FAILING state. No efforts are made to stop any processes that were spawned or created as the result of running the action's commands. The default is the max allowed value, 1 hour (i.e. 3600000 milliseconds).
299        "commands": [ # A list of commands to run, one per line. If any command fails, the whole action is considered a failure and no further actions are run. This also marks the virtual machine or replica as a failure.
300          "A String",
301        ],
302        "envVariables": [ # A list of environment variables to use for the commands in this action.
303          { # An environment variable to set for an action.
304            "hidden": True or False, # Deprecated, do not use.
305            "name": "A String", # The name of the environment variable.
306            "value": "A String", # The value of the variable.
307          },
308        ],
309      },
310      "healthChecks": [ # A list of HTTP Health Checks to configure for this replica pool and all virtual machines in this replica pool.
311        {
312          "description": "A String", # The description for this health check.
313          "timeoutSec": 42, # How long (in seconds) to wait before a timeout failure for this healthcheck. The default value is 5 seconds.
314          "checkIntervalSec": 42, # How often (in seconds) to make HTTP requests for this healthcheck. The default value is 5 seconds.
315          "unhealthyThreshold": 42, # The number of consecutive health check requests that need to fail in order to consider the replica unhealthy. The default value is 2.
316          "healthyThreshold": 42, # The number of consecutive health check requests that need to succeed before the replica is considered healthy again. The default value is 2.
317          "host": "A String", # The value of the host header in the HTTP health check request. If left empty (default value), the localhost IP 127.0.0.1 will be used.
318          "path": "A String", # The localhost request path to send this health check, in the format /path/to/use. For example, /healthcheck.
319          "port": 42, # The TCP port for the health check requests.
320          "name": "A String", # The name of this health check.
321        },
322      ],
323      "version": "A String", # A free-form string describing the version of this template. You can provide any versioning string you would like. For example, version1 or template-v1.
324      "vmParams": { # Parameters for creating a Compute Engine Instance resource. Most fields are identical to the corresponding Compute Engine resource. # The virtual machine parameters to use for creating replicas. You can define settings such as the machine type and the image of replicas in this pool. This is required if replica type is SMART_VM.
325        "disksToCreate": [ # A list of Disk resources to create and attach to each Replica in the Pool. Currently, you can only define one disk and it must be a root persistent disk. Note that Replica Pool will create a root persistent disk for each replica.
326          { # A Persistent Disk resource that will be created and attached to each Replica in the Pool. Each Replica will have a unique persistent disk that is created and attached to that Replica in READ_WRITE mode.
327            "initializeParams": { # Initialization parameters for creating a new disk. # Create the new disk using these parameters. The name of the disk will be <instance_name>-<four_random_charactersgt;.
328              "diskSizeGb": "A String", # The size of the created disk in gigabytes.
329              "sourceImage": "A String", # The name or fully-qualified URL of a source image to use to create this disk. If you provide a name of the source image, Replica Pool will look for an image with that name in your project. If you are specifying an image provided by Compute Engine, you will need to provide the full URL with the correct project, such as:
330                  # http://www.googleapis.com/compute/v1/projects/debian-cloud/ global/images/debian-wheezy-7-vYYYYMMDD
331              "diskType": "A String", # Name of the disk type resource describing which disk type to use to create the disk. For example 'pd-ssd' or 'pd-standard'. Default is 'pd-standard'
332            },
333            "boot": True or False, # If true, indicates that this is the root persistent disk.
334            "attachment": { # Specifies how to attach a disk to a Replica. # How the disk will be attached to the Replica.
335              "deviceName": "A String", # The device name of this disk.
336              "index": 42, # A zero-based index to assign to this disk, where 0 is reserved for the boot disk. If not specified, this is assigned by the server.
337            },
338            "autoDelete": True or False, # If true, then this disk will be deleted when the instance is deleted. The default value is true.
339          },
340        ],
341        "canIpForward": True or False, # Enables IP Forwarding, which allows this instance to receive packets destined for a different IP address, and send packets with a different source IP. See IP Forwarding for more information.
342        "description": "A String", # An optional textual description of the instance.
343        "tags": { # A Compute Engine Instance tag, identical to the tags on the corresponding Compute Engine Instance resource. # A list of tags to apply to the Google Compute Engine instance to identify resources.
344          "items": [ # Items contained in this tag.
345            "A String",
346          ],
347          "fingerPrint": "A String", # The fingerprint of the tag. Required for updating the list of tags.
348        },
349        "onHostMaintenance": "A String",
350        "disksToAttach": [ # A list of existing Persistent Disk resources to attach to each replica in the pool. Each disk will be attached in read-only mode to every replica.
351          { # A pre-existing persistent disk that will be attached to every Replica in the Pool in READ_ONLY mode.
352            "source": "A String", # The name of the Persistent Disk resource. The Persistent Disk resource must be in the same zone as the Pool.
353            "attachment": { # Specifies how to attach a disk to a Replica. # How the disk will be attached to the Replica.
354              "deviceName": "A String", # The device name of this disk.
355              "index": 42, # A zero-based index to assign to this disk, where 0 is reserved for the boot disk. If not specified, this is assigned by the server.
356            },
357          },
358        ],
359        "machineType": "A String", # The machine type for this instance. The resource name (e.g. n1-standard-1).
360        "baseInstanceName": "A String", # Deprecated. Please use baseInstanceName instead.
361        "serviceAccounts": [ # A list of Service Accounts to enable for this instance.
362          { # A Compute Engine service account, identical to the Compute Engine resource.
363            "scopes": [ # The list of OAuth2 scopes to obtain for the service account, for example: https://www.googleapis.com/auth/devstorage.full_control
364              "A String",
365            ],
366            "email": "A String", # The service account email address, for example: 123845678986@project.gserviceaccount.com
367          },
368        ],
369        "networkInterfaces": [ # A list of network interfaces for the instance. Currently only one interface is supported by Google Compute Engine, ONE_TO_ONE_NAT.
370          { # A Compute Engine NetworkInterface resource. Identical to the NetworkInterface on the corresponding Compute Engine resource.
371            "accessConfigs": [ # An array of configurations for this interface. This specifies how this interface is configured to interact with other network services.
372              { # A Compute Engine network accessConfig. Identical to the accessConfig on corresponding Compute Engine resource.
373                "type": "A String", # Type of this access configuration file. Currently only ONE_TO_ONE_NAT is supported.
374                "name": "A String", # Name of this access configuration.
375                "natIp": "A String", # An external IP address associated with this instance.
376              },
377            ],
378            "networkIp": "A String", # An optional IPV4 internal network address to assign to the instance for this network interface.
379            "network": "A String", # Name the Network resource to which this interface applies.
380          },
381        ],
382        "metadata": { # A Compute Engine metadata entry. Identical to the metadata on the corresponding Compute Engine resource. # The metadata key/value pairs assigned to this instance.
383          "items": [ # A list of metadata items.
384            { # A Compute Engine metadata item, defined as a key:value pair. Identical to the metadata on the corresponding Compute Engine resource.
385              "value": "A String", # A metadata value.
386              "key": "A String", # A metadata key.
387            },
388          ],
389          "fingerPrint": "A String", # The fingerprint of the metadata. Required for updating the metadata entries for this instance.
390        },
391      },
392    },
393    "healthChecks": [ # Deprecated. Please use template[].healthChecks instead.
394      {
395        "description": "A String", # The description for this health check.
396        "timeoutSec": 42, # How long (in seconds) to wait before a timeout failure for this healthcheck. The default value is 5 seconds.
397        "checkIntervalSec": 42, # How often (in seconds) to make HTTP requests for this healthcheck. The default value is 5 seconds.
398        "unhealthyThreshold": 42, # The number of consecutive health check requests that need to fail in order to consider the replica unhealthy. The default value is 2.
399        "healthyThreshold": 42, # The number of consecutive health check requests that need to succeed before the replica is considered healthy again. The default value is 2.
400        "host": "A String", # The value of the host header in the HTTP health check request. If left empty (default value), the localhost IP 127.0.0.1 will be used.
401        "path": "A String", # The localhost request path to send this health check, in the format /path/to/use. For example, /healthcheck.
402        "port": 42, # The TCP port for the health check requests.
403        "name": "A String", # The name of this health check.
404      },
405    ],
406    "currentNumReplicas": 42, # [Output Only] The current number of replicas in the pool.
407    "initialNumReplicas": 42, # The initial number of replicas this pool should have. You must provide a value greater than or equal to 0.
408    "type": "A String", # Deprecated! Do not set.
409    "targetPools": [ # A list of target pools to update with the replicas that are managed by this pool. If specified, the replicas in this replica pool will be added to the specified target pools for load balancing purposes. The replica pool must live in the same region as the specified target pools. These values must be the target pool resource names, and not fully qualified URLs.
410      "A String",
411    ],
412    "selfLink": "A String", # [Output Only] A self-link to the replica pool.
413    "name": "A String", # The name of the replica pool. Must follow the regex [a-z]([-a-z0-9]*[a-z0-9])? and be 1-28 characters long.
414  }
415
416
417Returns:
418  An object of the form:
419
420    {
421      "autoRestart": True or False, # Whether replicas in this pool should be restarted if they experience a failure. The default value is true.
422      "resourceViews": [ # The list of resource views that should be updated with all the replicas that are managed by this pool.
423        "A String",
424      ],
425      "description": "A String", # An optional description of the replica pool.
426      "labels": [ # A list of labels to attach to this replica pool and all created virtual machines in this replica pool.
427        { # A label to apply to this replica pool.
428          "value": "A String", # The value of this label.
429          "key": "A String", # The key for this label.
430        },
431      ],
432      "targetPool": "A String", # Deprecated, please use target_pools instead.
433      "baseInstanceName": "A String", # The base instance name to use for the replicas in this pool. This must match the regex [a-z]([-a-z0-9]*[a-z0-9])?. If specified, the instances in this replica pool will be named in the format <base-instance-name>-<ID>. The <ID> postfix will be a four character alphanumeric identifier generated by the service.
434          #
435          # If this is not specified by the user, a random base instance name is generated by the service.
436      "numReplicas": 42, # Deprecated! Use initial_num_replicas instead.
437      "template": { # The template used for creating replicas in the pool. # The template to use when creating replicas in this pool. This template is used during initial instance creation of the pool, when growing the pool in size, or when a replica restarts.
438        "action": { # An action that gets executed during initialization of the replicas. # An action to run during initialization of your replicas. An action is run as shell commands which are executed one after the other in the same bash shell, so any state established by one command is inherited by later commands.
439          "timeoutMilliSeconds": 42, # If an action's commands on a particular replica do not finish in the specified timeoutMilliSeconds, the replica is considered to be in a FAILING state. No efforts are made to stop any processes that were spawned or created as the result of running the action's commands. The default is the max allowed value, 1 hour (i.e. 3600000 milliseconds).
440          "commands": [ # A list of commands to run, one per line. If any command fails, the whole action is considered a failure and no further actions are run. This also marks the virtual machine or replica as a failure.
441            "A String",
442          ],
443          "envVariables": [ # A list of environment variables to use for the commands in this action.
444            { # An environment variable to set for an action.
445              "hidden": True or False, # Deprecated, do not use.
446              "name": "A String", # The name of the environment variable.
447              "value": "A String", # The value of the variable.
448            },
449          ],
450        },
451        "healthChecks": [ # A list of HTTP Health Checks to configure for this replica pool and all virtual machines in this replica pool.
452          {
453            "description": "A String", # The description for this health check.
454            "timeoutSec": 42, # How long (in seconds) to wait before a timeout failure for this healthcheck. The default value is 5 seconds.
455            "checkIntervalSec": 42, # How often (in seconds) to make HTTP requests for this healthcheck. The default value is 5 seconds.
456            "unhealthyThreshold": 42, # The number of consecutive health check requests that need to fail in order to consider the replica unhealthy. The default value is 2.
457            "healthyThreshold": 42, # The number of consecutive health check requests that need to succeed before the replica is considered healthy again. The default value is 2.
458            "host": "A String", # The value of the host header in the HTTP health check request. If left empty (default value), the localhost IP 127.0.0.1 will be used.
459            "path": "A String", # The localhost request path to send this health check, in the format /path/to/use. For example, /healthcheck.
460            "port": 42, # The TCP port for the health check requests.
461            "name": "A String", # The name of this health check.
462          },
463        ],
464        "version": "A String", # A free-form string describing the version of this template. You can provide any versioning string you would like. For example, version1 or template-v1.
465        "vmParams": { # Parameters for creating a Compute Engine Instance resource. Most fields are identical to the corresponding Compute Engine resource. # The virtual machine parameters to use for creating replicas. You can define settings such as the machine type and the image of replicas in this pool. This is required if replica type is SMART_VM.
466          "disksToCreate": [ # A list of Disk resources to create and attach to each Replica in the Pool. Currently, you can only define one disk and it must be a root persistent disk. Note that Replica Pool will create a root persistent disk for each replica.
467            { # A Persistent Disk resource that will be created and attached to each Replica in the Pool. Each Replica will have a unique persistent disk that is created and attached to that Replica in READ_WRITE mode.
468              "initializeParams": { # Initialization parameters for creating a new disk. # Create the new disk using these parameters. The name of the disk will be <instance_name>-<four_random_charactersgt;.
469                "diskSizeGb": "A String", # The size of the created disk in gigabytes.
470                "sourceImage": "A String", # The name or fully-qualified URL of a source image to use to create this disk. If you provide a name of the source image, Replica Pool will look for an image with that name in your project. If you are specifying an image provided by Compute Engine, you will need to provide the full URL with the correct project, such as:
471                    # http://www.googleapis.com/compute/v1/projects/debian-cloud/ global/images/debian-wheezy-7-vYYYYMMDD
472                "diskType": "A String", # Name of the disk type resource describing which disk type to use to create the disk. For example 'pd-ssd' or 'pd-standard'. Default is 'pd-standard'
473              },
474              "boot": True or False, # If true, indicates that this is the root persistent disk.
475              "attachment": { # Specifies how to attach a disk to a Replica. # How the disk will be attached to the Replica.
476                "deviceName": "A String", # The device name of this disk.
477                "index": 42, # A zero-based index to assign to this disk, where 0 is reserved for the boot disk. If not specified, this is assigned by the server.
478              },
479              "autoDelete": True or False, # If true, then this disk will be deleted when the instance is deleted. The default value is true.
480            },
481          ],
482          "canIpForward": True or False, # Enables IP Forwarding, which allows this instance to receive packets destined for a different IP address, and send packets with a different source IP. See IP Forwarding for more information.
483          "description": "A String", # An optional textual description of the instance.
484          "tags": { # A Compute Engine Instance tag, identical to the tags on the corresponding Compute Engine Instance resource. # A list of tags to apply to the Google Compute Engine instance to identify resources.
485            "items": [ # Items contained in this tag.
486              "A String",
487            ],
488            "fingerPrint": "A String", # The fingerprint of the tag. Required for updating the list of tags.
489          },
490          "onHostMaintenance": "A String",
491          "disksToAttach": [ # A list of existing Persistent Disk resources to attach to each replica in the pool. Each disk will be attached in read-only mode to every replica.
492            { # A pre-existing persistent disk that will be attached to every Replica in the Pool in READ_ONLY mode.
493              "source": "A String", # The name of the Persistent Disk resource. The Persistent Disk resource must be in the same zone as the Pool.
494              "attachment": { # Specifies how to attach a disk to a Replica. # How the disk will be attached to the Replica.
495                "deviceName": "A String", # The device name of this disk.
496                "index": 42, # A zero-based index to assign to this disk, where 0 is reserved for the boot disk. If not specified, this is assigned by the server.
497              },
498            },
499          ],
500          "machineType": "A String", # The machine type for this instance. The resource name (e.g. n1-standard-1).
501          "baseInstanceName": "A String", # Deprecated. Please use baseInstanceName instead.
502          "serviceAccounts": [ # A list of Service Accounts to enable for this instance.
503            { # A Compute Engine service account, identical to the Compute Engine resource.
504              "scopes": [ # The list of OAuth2 scopes to obtain for the service account, for example: https://www.googleapis.com/auth/devstorage.full_control
505                "A String",
506              ],
507              "email": "A String", # The service account email address, for example: 123845678986@project.gserviceaccount.com
508            },
509          ],
510          "networkInterfaces": [ # A list of network interfaces for the instance. Currently only one interface is supported by Google Compute Engine, ONE_TO_ONE_NAT.
511            { # A Compute Engine NetworkInterface resource. Identical to the NetworkInterface on the corresponding Compute Engine resource.
512              "accessConfigs": [ # An array of configurations for this interface. This specifies how this interface is configured to interact with other network services.
513                { # A Compute Engine network accessConfig. Identical to the accessConfig on corresponding Compute Engine resource.
514                  "type": "A String", # Type of this access configuration file. Currently only ONE_TO_ONE_NAT is supported.
515                  "name": "A String", # Name of this access configuration.
516                  "natIp": "A String", # An external IP address associated with this instance.
517                },
518              ],
519              "networkIp": "A String", # An optional IPV4 internal network address to assign to the instance for this network interface.
520              "network": "A String", # Name the Network resource to which this interface applies.
521            },
522          ],
523          "metadata": { # A Compute Engine metadata entry. Identical to the metadata on the corresponding Compute Engine resource. # The metadata key/value pairs assigned to this instance.
524            "items": [ # A list of metadata items.
525              { # A Compute Engine metadata item, defined as a key:value pair. Identical to the metadata on the corresponding Compute Engine resource.
526                "value": "A String", # A metadata value.
527                "key": "A String", # A metadata key.
528              },
529            ],
530            "fingerPrint": "A String", # The fingerprint of the metadata. Required for updating the metadata entries for this instance.
531          },
532        },
533      },
534      "healthChecks": [ # Deprecated. Please use template[].healthChecks instead.
535        {
536          "description": "A String", # The description for this health check.
537          "timeoutSec": 42, # How long (in seconds) to wait before a timeout failure for this healthcheck. The default value is 5 seconds.
538          "checkIntervalSec": 42, # How often (in seconds) to make HTTP requests for this healthcheck. The default value is 5 seconds.
539          "unhealthyThreshold": 42, # The number of consecutive health check requests that need to fail in order to consider the replica unhealthy. The default value is 2.
540          "healthyThreshold": 42, # The number of consecutive health check requests that need to succeed before the replica is considered healthy again. The default value is 2.
541          "host": "A String", # The value of the host header in the HTTP health check request. If left empty (default value), the localhost IP 127.0.0.1 will be used.
542          "path": "A String", # The localhost request path to send this health check, in the format /path/to/use. For example, /healthcheck.
543          "port": 42, # The TCP port for the health check requests.
544          "name": "A String", # The name of this health check.
545        },
546      ],
547      "currentNumReplicas": 42, # [Output Only] The current number of replicas in the pool.
548      "initialNumReplicas": 42, # The initial number of replicas this pool should have. You must provide a value greater than or equal to 0.
549      "type": "A String", # Deprecated! Do not set.
550      "targetPools": [ # A list of target pools to update with the replicas that are managed by this pool. If specified, the replicas in this replica pool will be added to the specified target pools for load balancing purposes. The replica pool must live in the same region as the specified target pools. These values must be the target pool resource names, and not fully qualified URLs.
551        "A String",
552      ],
553      "selfLink": "A String", # [Output Only] A self-link to the replica pool.
554      "name": "A String", # The name of the replica pool. Must follow the regex [a-z]([-a-z0-9]*[a-z0-9])? and be 1-28 characters long.
555    }</pre>
556</div>
557
558<div class="method">
559    <code class="details" id="list">list(projectName, zone, pageToken=None, maxResults=None)</code>
560  <pre>List all replica pools.
561
562Args:
563  projectName: string, The project ID for this request. (required)
564  zone: string, The zone for this replica pool. (required)
565  pageToken: string, Set this to the nextPageToken value returned by a previous list request to obtain the next page of results from the previous list request.
566  maxResults: integer, Maximum count of results to be returned. Acceptable values are 0 to 100, inclusive. (Default: 50)
567
568Returns:
569  An object of the form:
570
571    {
572    "nextPageToken": "A String",
573    "resources": [
574      {
575          "autoRestart": True or False, # Whether replicas in this pool should be restarted if they experience a failure. The default value is true.
576          "resourceViews": [ # The list of resource views that should be updated with all the replicas that are managed by this pool.
577            "A String",
578          ],
579          "description": "A String", # An optional description of the replica pool.
580          "labels": [ # A list of labels to attach to this replica pool and all created virtual machines in this replica pool.
581            { # A label to apply to this replica pool.
582              "value": "A String", # The value of this label.
583              "key": "A String", # The key for this label.
584            },
585          ],
586          "targetPool": "A String", # Deprecated, please use target_pools instead.
587          "baseInstanceName": "A String", # The base instance name to use for the replicas in this pool. This must match the regex [a-z]([-a-z0-9]*[a-z0-9])?. If specified, the instances in this replica pool will be named in the format <base-instance-name>-<ID>. The <ID> postfix will be a four character alphanumeric identifier generated by the service.
588              #
589              # If this is not specified by the user, a random base instance name is generated by the service.
590          "numReplicas": 42, # Deprecated! Use initial_num_replicas instead.
591          "template": { # The template used for creating replicas in the pool. # The template to use when creating replicas in this pool. This template is used during initial instance creation of the pool, when growing the pool in size, or when a replica restarts.
592            "action": { # An action that gets executed during initialization of the replicas. # An action to run during initialization of your replicas. An action is run as shell commands which are executed one after the other in the same bash shell, so any state established by one command is inherited by later commands.
593              "timeoutMilliSeconds": 42, # If an action's commands on a particular replica do not finish in the specified timeoutMilliSeconds, the replica is considered to be in a FAILING state. No efforts are made to stop any processes that were spawned or created as the result of running the action's commands. The default is the max allowed value, 1 hour (i.e. 3600000 milliseconds).
594              "commands": [ # A list of commands to run, one per line. If any command fails, the whole action is considered a failure and no further actions are run. This also marks the virtual machine or replica as a failure.
595                "A String",
596              ],
597              "envVariables": [ # A list of environment variables to use for the commands in this action.
598                { # An environment variable to set for an action.
599                  "hidden": True or False, # Deprecated, do not use.
600                  "name": "A String", # The name of the environment variable.
601                  "value": "A String", # The value of the variable.
602                },
603              ],
604            },
605            "healthChecks": [ # A list of HTTP Health Checks to configure for this replica pool and all virtual machines in this replica pool.
606              {
607                "description": "A String", # The description for this health check.
608                "timeoutSec": 42, # How long (in seconds) to wait before a timeout failure for this healthcheck. The default value is 5 seconds.
609                "checkIntervalSec": 42, # How often (in seconds) to make HTTP requests for this healthcheck. The default value is 5 seconds.
610                "unhealthyThreshold": 42, # The number of consecutive health check requests that need to fail in order to consider the replica unhealthy. The default value is 2.
611                "healthyThreshold": 42, # The number of consecutive health check requests that need to succeed before the replica is considered healthy again. The default value is 2.
612                "host": "A String", # The value of the host header in the HTTP health check request. If left empty (default value), the localhost IP 127.0.0.1 will be used.
613                "path": "A String", # The localhost request path to send this health check, in the format /path/to/use. For example, /healthcheck.
614                "port": 42, # The TCP port for the health check requests.
615                "name": "A String", # The name of this health check.
616              },
617            ],
618            "version": "A String", # A free-form string describing the version of this template. You can provide any versioning string you would like. For example, version1 or template-v1.
619            "vmParams": { # Parameters for creating a Compute Engine Instance resource. Most fields are identical to the corresponding Compute Engine resource. # The virtual machine parameters to use for creating replicas. You can define settings such as the machine type and the image of replicas in this pool. This is required if replica type is SMART_VM.
620              "disksToCreate": [ # A list of Disk resources to create and attach to each Replica in the Pool. Currently, you can only define one disk and it must be a root persistent disk. Note that Replica Pool will create a root persistent disk for each replica.
621                { # A Persistent Disk resource that will be created and attached to each Replica in the Pool. Each Replica will have a unique persistent disk that is created and attached to that Replica in READ_WRITE mode.
622                  "initializeParams": { # Initialization parameters for creating a new disk. # Create the new disk using these parameters. The name of the disk will be <instance_name>-<four_random_charactersgt;.
623                    "diskSizeGb": "A String", # The size of the created disk in gigabytes.
624                    "sourceImage": "A String", # The name or fully-qualified URL of a source image to use to create this disk. If you provide a name of the source image, Replica Pool will look for an image with that name in your project. If you are specifying an image provided by Compute Engine, you will need to provide the full URL with the correct project, such as:
625                        # http://www.googleapis.com/compute/v1/projects/debian-cloud/ global/images/debian-wheezy-7-vYYYYMMDD
626                    "diskType": "A String", # Name of the disk type resource describing which disk type to use to create the disk. For example 'pd-ssd' or 'pd-standard'. Default is 'pd-standard'
627                  },
628                  "boot": True or False, # If true, indicates that this is the root persistent disk.
629                  "attachment": { # Specifies how to attach a disk to a Replica. # How the disk will be attached to the Replica.
630                    "deviceName": "A String", # The device name of this disk.
631                    "index": 42, # A zero-based index to assign to this disk, where 0 is reserved for the boot disk. If not specified, this is assigned by the server.
632                  },
633                  "autoDelete": True or False, # If true, then this disk will be deleted when the instance is deleted. The default value is true.
634                },
635              ],
636              "canIpForward": True or False, # Enables IP Forwarding, which allows this instance to receive packets destined for a different IP address, and send packets with a different source IP. See IP Forwarding for more information.
637              "description": "A String", # An optional textual description of the instance.
638              "tags": { # A Compute Engine Instance tag, identical to the tags on the corresponding Compute Engine Instance resource. # A list of tags to apply to the Google Compute Engine instance to identify resources.
639                "items": [ # Items contained in this tag.
640                  "A String",
641                ],
642                "fingerPrint": "A String", # The fingerprint of the tag. Required for updating the list of tags.
643              },
644              "onHostMaintenance": "A String",
645              "disksToAttach": [ # A list of existing Persistent Disk resources to attach to each replica in the pool. Each disk will be attached in read-only mode to every replica.
646                { # A pre-existing persistent disk that will be attached to every Replica in the Pool in READ_ONLY mode.
647                  "source": "A String", # The name of the Persistent Disk resource. The Persistent Disk resource must be in the same zone as the Pool.
648                  "attachment": { # Specifies how to attach a disk to a Replica. # How the disk will be attached to the Replica.
649                    "deviceName": "A String", # The device name of this disk.
650                    "index": 42, # A zero-based index to assign to this disk, where 0 is reserved for the boot disk. If not specified, this is assigned by the server.
651                  },
652                },
653              ],
654              "machineType": "A String", # The machine type for this instance. The resource name (e.g. n1-standard-1).
655              "baseInstanceName": "A String", # Deprecated. Please use baseInstanceName instead.
656              "serviceAccounts": [ # A list of Service Accounts to enable for this instance.
657                { # A Compute Engine service account, identical to the Compute Engine resource.
658                  "scopes": [ # The list of OAuth2 scopes to obtain for the service account, for example: https://www.googleapis.com/auth/devstorage.full_control
659                    "A String",
660                  ],
661                  "email": "A String", # The service account email address, for example: 123845678986@project.gserviceaccount.com
662                },
663              ],
664              "networkInterfaces": [ # A list of network interfaces for the instance. Currently only one interface is supported by Google Compute Engine, ONE_TO_ONE_NAT.
665                { # A Compute Engine NetworkInterface resource. Identical to the NetworkInterface on the corresponding Compute Engine resource.
666                  "accessConfigs": [ # An array of configurations for this interface. This specifies how this interface is configured to interact with other network services.
667                    { # A Compute Engine network accessConfig. Identical to the accessConfig on corresponding Compute Engine resource.
668                      "type": "A String", # Type of this access configuration file. Currently only ONE_TO_ONE_NAT is supported.
669                      "name": "A String", # Name of this access configuration.
670                      "natIp": "A String", # An external IP address associated with this instance.
671                    },
672                  ],
673                  "networkIp": "A String", # An optional IPV4 internal network address to assign to the instance for this network interface.
674                  "network": "A String", # Name the Network resource to which this interface applies.
675                },
676              ],
677              "metadata": { # A Compute Engine metadata entry. Identical to the metadata on the corresponding Compute Engine resource. # The metadata key/value pairs assigned to this instance.
678                "items": [ # A list of metadata items.
679                  { # A Compute Engine metadata item, defined as a key:value pair. Identical to the metadata on the corresponding Compute Engine resource.
680                    "value": "A String", # A metadata value.
681                    "key": "A String", # A metadata key.
682                  },
683                ],
684                "fingerPrint": "A String", # The fingerprint of the metadata. Required for updating the metadata entries for this instance.
685              },
686            },
687          },
688          "healthChecks": [ # Deprecated. Please use template[].healthChecks instead.
689            {
690              "description": "A String", # The description for this health check.
691              "timeoutSec": 42, # How long (in seconds) to wait before a timeout failure for this healthcheck. The default value is 5 seconds.
692              "checkIntervalSec": 42, # How often (in seconds) to make HTTP requests for this healthcheck. The default value is 5 seconds.
693              "unhealthyThreshold": 42, # The number of consecutive health check requests that need to fail in order to consider the replica unhealthy. The default value is 2.
694              "healthyThreshold": 42, # The number of consecutive health check requests that need to succeed before the replica is considered healthy again. The default value is 2.
695              "host": "A String", # The value of the host header in the HTTP health check request. If left empty (default value), the localhost IP 127.0.0.1 will be used.
696              "path": "A String", # The localhost request path to send this health check, in the format /path/to/use. For example, /healthcheck.
697              "port": 42, # The TCP port for the health check requests.
698              "name": "A String", # The name of this health check.
699            },
700          ],
701          "currentNumReplicas": 42, # [Output Only] The current number of replicas in the pool.
702          "initialNumReplicas": 42, # The initial number of replicas this pool should have. You must provide a value greater than or equal to 0.
703          "type": "A String", # Deprecated! Do not set.
704          "targetPools": [ # A list of target pools to update with the replicas that are managed by this pool. If specified, the replicas in this replica pool will be added to the specified target pools for load balancing purposes. The replica pool must live in the same region as the specified target pools. These values must be the target pool resource names, and not fully qualified URLs.
705            "A String",
706          ],
707          "selfLink": "A String", # [Output Only] A self-link to the replica pool.
708          "name": "A String", # The name of the replica pool. Must follow the regex [a-z]([-a-z0-9]*[a-z0-9])? and be 1-28 characters long.
709        },
710    ],
711  }</pre>
712</div>
713
714<div class="method">
715    <code class="details" id="list_next">list_next(previous_request, previous_response)</code>
716  <pre>Retrieves the next page of results.
717
718Args:
719  previous_request: The request for the previous page. (required)
720  previous_response: The response from the request for the previous page. (required)
721
722Returns:
723  A request object that you can call 'execute()' on to request the next
724  page. Returns None if there are no more items in the collection.
725    </pre>
726</div>
727
728<div class="method">
729    <code class="details" id="resize">resize(projectName, zone, poolName, numReplicas=None)</code>
730  <pre>Resize a pool. This is an asynchronous operation, and multiple overlapping resize requests can be made. Replica Pools will use the information from the last resize request.
731
732Args:
733  projectName: string, The project ID for this replica pool. (required)
734  zone: string, The zone for this replica pool. (required)
735  poolName: string, The name of the replica pool for this request. (required)
736  numReplicas: integer, The desired number of replicas to resize to. If this number is larger than the existing number of replicas, new replicas will be added. If the number is smaller, then existing replicas will be deleted.
737
738Returns:
739  An object of the form:
740
741    {
742      "autoRestart": True or False, # Whether replicas in this pool should be restarted if they experience a failure. The default value is true.
743      "resourceViews": [ # The list of resource views that should be updated with all the replicas that are managed by this pool.
744        "A String",
745      ],
746      "description": "A String", # An optional description of the replica pool.
747      "labels": [ # A list of labels to attach to this replica pool and all created virtual machines in this replica pool.
748        { # A label to apply to this replica pool.
749          "value": "A String", # The value of this label.
750          "key": "A String", # The key for this label.
751        },
752      ],
753      "targetPool": "A String", # Deprecated, please use target_pools instead.
754      "baseInstanceName": "A String", # The base instance name to use for the replicas in this pool. This must match the regex [a-z]([-a-z0-9]*[a-z0-9])?. If specified, the instances in this replica pool will be named in the format <base-instance-name>-<ID>. The <ID> postfix will be a four character alphanumeric identifier generated by the service.
755          #
756          # If this is not specified by the user, a random base instance name is generated by the service.
757      "numReplicas": 42, # Deprecated! Use initial_num_replicas instead.
758      "template": { # The template used for creating replicas in the pool. # The template to use when creating replicas in this pool. This template is used during initial instance creation of the pool, when growing the pool in size, or when a replica restarts.
759        "action": { # An action that gets executed during initialization of the replicas. # An action to run during initialization of your replicas. An action is run as shell commands which are executed one after the other in the same bash shell, so any state established by one command is inherited by later commands.
760          "timeoutMilliSeconds": 42, # If an action's commands on a particular replica do not finish in the specified timeoutMilliSeconds, the replica is considered to be in a FAILING state. No efforts are made to stop any processes that were spawned or created as the result of running the action's commands. The default is the max allowed value, 1 hour (i.e. 3600000 milliseconds).
761          "commands": [ # A list of commands to run, one per line. If any command fails, the whole action is considered a failure and no further actions are run. This also marks the virtual machine or replica as a failure.
762            "A String",
763          ],
764          "envVariables": [ # A list of environment variables to use for the commands in this action.
765            { # An environment variable to set for an action.
766              "hidden": True or False, # Deprecated, do not use.
767              "name": "A String", # The name of the environment variable.
768              "value": "A String", # The value of the variable.
769            },
770          ],
771        },
772        "healthChecks": [ # A list of HTTP Health Checks to configure for this replica pool and all virtual machines in this replica pool.
773          {
774            "description": "A String", # The description for this health check.
775            "timeoutSec": 42, # How long (in seconds) to wait before a timeout failure for this healthcheck. The default value is 5 seconds.
776            "checkIntervalSec": 42, # How often (in seconds) to make HTTP requests for this healthcheck. The default value is 5 seconds.
777            "unhealthyThreshold": 42, # The number of consecutive health check requests that need to fail in order to consider the replica unhealthy. The default value is 2.
778            "healthyThreshold": 42, # The number of consecutive health check requests that need to succeed before the replica is considered healthy again. The default value is 2.
779            "host": "A String", # The value of the host header in the HTTP health check request. If left empty (default value), the localhost IP 127.0.0.1 will be used.
780            "path": "A String", # The localhost request path to send this health check, in the format /path/to/use. For example, /healthcheck.
781            "port": 42, # The TCP port for the health check requests.
782            "name": "A String", # The name of this health check.
783          },
784        ],
785        "version": "A String", # A free-form string describing the version of this template. You can provide any versioning string you would like. For example, version1 or template-v1.
786        "vmParams": { # Parameters for creating a Compute Engine Instance resource. Most fields are identical to the corresponding Compute Engine resource. # The virtual machine parameters to use for creating replicas. You can define settings such as the machine type and the image of replicas in this pool. This is required if replica type is SMART_VM.
787          "disksToCreate": [ # A list of Disk resources to create and attach to each Replica in the Pool. Currently, you can only define one disk and it must be a root persistent disk. Note that Replica Pool will create a root persistent disk for each replica.
788            { # A Persistent Disk resource that will be created and attached to each Replica in the Pool. Each Replica will have a unique persistent disk that is created and attached to that Replica in READ_WRITE mode.
789              "initializeParams": { # Initialization parameters for creating a new disk. # Create the new disk using these parameters. The name of the disk will be <instance_name>-<four_random_charactersgt;.
790                "diskSizeGb": "A String", # The size of the created disk in gigabytes.
791                "sourceImage": "A String", # The name or fully-qualified URL of a source image to use to create this disk. If you provide a name of the source image, Replica Pool will look for an image with that name in your project. If you are specifying an image provided by Compute Engine, you will need to provide the full URL with the correct project, such as:
792                    # http://www.googleapis.com/compute/v1/projects/debian-cloud/ global/images/debian-wheezy-7-vYYYYMMDD
793                "diskType": "A String", # Name of the disk type resource describing which disk type to use to create the disk. For example 'pd-ssd' or 'pd-standard'. Default is 'pd-standard'
794              },
795              "boot": True or False, # If true, indicates that this is the root persistent disk.
796              "attachment": { # Specifies how to attach a disk to a Replica. # How the disk will be attached to the Replica.
797                "deviceName": "A String", # The device name of this disk.
798                "index": 42, # A zero-based index to assign to this disk, where 0 is reserved for the boot disk. If not specified, this is assigned by the server.
799              },
800              "autoDelete": True or False, # If true, then this disk will be deleted when the instance is deleted. The default value is true.
801            },
802          ],
803          "canIpForward": True or False, # Enables IP Forwarding, which allows this instance to receive packets destined for a different IP address, and send packets with a different source IP. See IP Forwarding for more information.
804          "description": "A String", # An optional textual description of the instance.
805          "tags": { # A Compute Engine Instance tag, identical to the tags on the corresponding Compute Engine Instance resource. # A list of tags to apply to the Google Compute Engine instance to identify resources.
806            "items": [ # Items contained in this tag.
807              "A String",
808            ],
809            "fingerPrint": "A String", # The fingerprint of the tag. Required for updating the list of tags.
810          },
811          "onHostMaintenance": "A String",
812          "disksToAttach": [ # A list of existing Persistent Disk resources to attach to each replica in the pool. Each disk will be attached in read-only mode to every replica.
813            { # A pre-existing persistent disk that will be attached to every Replica in the Pool in READ_ONLY mode.
814              "source": "A String", # The name of the Persistent Disk resource. The Persistent Disk resource must be in the same zone as the Pool.
815              "attachment": { # Specifies how to attach a disk to a Replica. # How the disk will be attached to the Replica.
816                "deviceName": "A String", # The device name of this disk.
817                "index": 42, # A zero-based index to assign to this disk, where 0 is reserved for the boot disk. If not specified, this is assigned by the server.
818              },
819            },
820          ],
821          "machineType": "A String", # The machine type for this instance. The resource name (e.g. n1-standard-1).
822          "baseInstanceName": "A String", # Deprecated. Please use baseInstanceName instead.
823          "serviceAccounts": [ # A list of Service Accounts to enable for this instance.
824            { # A Compute Engine service account, identical to the Compute Engine resource.
825              "scopes": [ # The list of OAuth2 scopes to obtain for the service account, for example: https://www.googleapis.com/auth/devstorage.full_control
826                "A String",
827              ],
828              "email": "A String", # The service account email address, for example: 123845678986@project.gserviceaccount.com
829            },
830          ],
831          "networkInterfaces": [ # A list of network interfaces for the instance. Currently only one interface is supported by Google Compute Engine, ONE_TO_ONE_NAT.
832            { # A Compute Engine NetworkInterface resource. Identical to the NetworkInterface on the corresponding Compute Engine resource.
833              "accessConfigs": [ # An array of configurations for this interface. This specifies how this interface is configured to interact with other network services.
834                { # A Compute Engine network accessConfig. Identical to the accessConfig on corresponding Compute Engine resource.
835                  "type": "A String", # Type of this access configuration file. Currently only ONE_TO_ONE_NAT is supported.
836                  "name": "A String", # Name of this access configuration.
837                  "natIp": "A String", # An external IP address associated with this instance.
838                },
839              ],
840              "networkIp": "A String", # An optional IPV4 internal network address to assign to the instance for this network interface.
841              "network": "A String", # Name the Network resource to which this interface applies.
842            },
843          ],
844          "metadata": { # A Compute Engine metadata entry. Identical to the metadata on the corresponding Compute Engine resource. # The metadata key/value pairs assigned to this instance.
845            "items": [ # A list of metadata items.
846              { # A Compute Engine metadata item, defined as a key:value pair. Identical to the metadata on the corresponding Compute Engine resource.
847                "value": "A String", # A metadata value.
848                "key": "A String", # A metadata key.
849              },
850            ],
851            "fingerPrint": "A String", # The fingerprint of the metadata. Required for updating the metadata entries for this instance.
852          },
853        },
854      },
855      "healthChecks": [ # Deprecated. Please use template[].healthChecks instead.
856        {
857          "description": "A String", # The description for this health check.
858          "timeoutSec": 42, # How long (in seconds) to wait before a timeout failure for this healthcheck. The default value is 5 seconds.
859          "checkIntervalSec": 42, # How often (in seconds) to make HTTP requests for this healthcheck. The default value is 5 seconds.
860          "unhealthyThreshold": 42, # The number of consecutive health check requests that need to fail in order to consider the replica unhealthy. The default value is 2.
861          "healthyThreshold": 42, # The number of consecutive health check requests that need to succeed before the replica is considered healthy again. The default value is 2.
862          "host": "A String", # The value of the host header in the HTTP health check request. If left empty (default value), the localhost IP 127.0.0.1 will be used.
863          "path": "A String", # The localhost request path to send this health check, in the format /path/to/use. For example, /healthcheck.
864          "port": 42, # The TCP port for the health check requests.
865          "name": "A String", # The name of this health check.
866        },
867      ],
868      "currentNumReplicas": 42, # [Output Only] The current number of replicas in the pool.
869      "initialNumReplicas": 42, # The initial number of replicas this pool should have. You must provide a value greater than or equal to 0.
870      "type": "A String", # Deprecated! Do not set.
871      "targetPools": [ # A list of target pools to update with the replicas that are managed by this pool. If specified, the replicas in this replica pool will be added to the specified target pools for load balancing purposes. The replica pool must live in the same region as the specified target pools. These values must be the target pool resource names, and not fully qualified URLs.
872        "A String",
873      ],
874      "selfLink": "A String", # [Output Only] A self-link to the replica pool.
875      "name": "A String", # The name of the replica pool. Must follow the regex [a-z]([-a-z0-9]*[a-z0-9])? and be 1-28 characters long.
876    }</pre>
877</div>
878
879<div class="method">
880    <code class="details" id="updatetemplate">updatetemplate(projectName, zone, poolName, body)</code>
881  <pre>Update the template used by the pool.
882
883Args:
884  projectName: string, The project ID for this replica pool. (required)
885  zone: string, The zone for this replica pool. (required)
886  poolName: string, The name of the replica pool for this request. (required)
887  body: object, The request body. (required)
888    The object takes the form of:
889
890{ # The template used for creating replicas in the pool.
891  "action": { # An action that gets executed during initialization of the replicas. # An action to run during initialization of your replicas. An action is run as shell commands which are executed one after the other in the same bash shell, so any state established by one command is inherited by later commands.
892    "timeoutMilliSeconds": 42, # If an action's commands on a particular replica do not finish in the specified timeoutMilliSeconds, the replica is considered to be in a FAILING state. No efforts are made to stop any processes that were spawned or created as the result of running the action's commands. The default is the max allowed value, 1 hour (i.e. 3600000 milliseconds).
893    "commands": [ # A list of commands to run, one per line. If any command fails, the whole action is considered a failure and no further actions are run. This also marks the virtual machine or replica as a failure.
894      "A String",
895    ],
896    "envVariables": [ # A list of environment variables to use for the commands in this action.
897      { # An environment variable to set for an action.
898        "hidden": True or False, # Deprecated, do not use.
899        "name": "A String", # The name of the environment variable.
900        "value": "A String", # The value of the variable.
901      },
902    ],
903  },
904  "healthChecks": [ # A list of HTTP Health Checks to configure for this replica pool and all virtual machines in this replica pool.
905    {
906      "description": "A String", # The description for this health check.
907      "timeoutSec": 42, # How long (in seconds) to wait before a timeout failure for this healthcheck. The default value is 5 seconds.
908      "checkIntervalSec": 42, # How often (in seconds) to make HTTP requests for this healthcheck. The default value is 5 seconds.
909      "unhealthyThreshold": 42, # The number of consecutive health check requests that need to fail in order to consider the replica unhealthy. The default value is 2.
910      "healthyThreshold": 42, # The number of consecutive health check requests that need to succeed before the replica is considered healthy again. The default value is 2.
911      "host": "A String", # The value of the host header in the HTTP health check request. If left empty (default value), the localhost IP 127.0.0.1 will be used.
912      "path": "A String", # The localhost request path to send this health check, in the format /path/to/use. For example, /healthcheck.
913      "port": 42, # The TCP port for the health check requests.
914      "name": "A String", # The name of this health check.
915    },
916  ],
917  "version": "A String", # A free-form string describing the version of this template. You can provide any versioning string you would like. For example, version1 or template-v1.
918  "vmParams": { # Parameters for creating a Compute Engine Instance resource. Most fields are identical to the corresponding Compute Engine resource. # The virtual machine parameters to use for creating replicas. You can define settings such as the machine type and the image of replicas in this pool. This is required if replica type is SMART_VM.
919    "disksToCreate": [ # A list of Disk resources to create and attach to each Replica in the Pool. Currently, you can only define one disk and it must be a root persistent disk. Note that Replica Pool will create a root persistent disk for each replica.
920      { # A Persistent Disk resource that will be created and attached to each Replica in the Pool. Each Replica will have a unique persistent disk that is created and attached to that Replica in READ_WRITE mode.
921        "initializeParams": { # Initialization parameters for creating a new disk. # Create the new disk using these parameters. The name of the disk will be <instance_name>-<four_random_charactersgt;.
922          "diskSizeGb": "A String", # The size of the created disk in gigabytes.
923          "sourceImage": "A String", # The name or fully-qualified URL of a source image to use to create this disk. If you provide a name of the source image, Replica Pool will look for an image with that name in your project. If you are specifying an image provided by Compute Engine, you will need to provide the full URL with the correct project, such as:
924              # http://www.googleapis.com/compute/v1/projects/debian-cloud/ global/images/debian-wheezy-7-vYYYYMMDD
925          "diskType": "A String", # Name of the disk type resource describing which disk type to use to create the disk. For example 'pd-ssd' or 'pd-standard'. Default is 'pd-standard'
926        },
927        "boot": True or False, # If true, indicates that this is the root persistent disk.
928        "attachment": { # Specifies how to attach a disk to a Replica. # How the disk will be attached to the Replica.
929          "deviceName": "A String", # The device name of this disk.
930          "index": 42, # A zero-based index to assign to this disk, where 0 is reserved for the boot disk. If not specified, this is assigned by the server.
931        },
932        "autoDelete": True or False, # If true, then this disk will be deleted when the instance is deleted. The default value is true.
933      },
934    ],
935    "canIpForward": True or False, # Enables IP Forwarding, which allows this instance to receive packets destined for a different IP address, and send packets with a different source IP. See IP Forwarding for more information.
936    "description": "A String", # An optional textual description of the instance.
937    "tags": { # A Compute Engine Instance tag, identical to the tags on the corresponding Compute Engine Instance resource. # A list of tags to apply to the Google Compute Engine instance to identify resources.
938      "items": [ # Items contained in this tag.
939        "A String",
940      ],
941      "fingerPrint": "A String", # The fingerprint of the tag. Required for updating the list of tags.
942    },
943    "onHostMaintenance": "A String",
944    "disksToAttach": [ # A list of existing Persistent Disk resources to attach to each replica in the pool. Each disk will be attached in read-only mode to every replica.
945      { # A pre-existing persistent disk that will be attached to every Replica in the Pool in READ_ONLY mode.
946        "source": "A String", # The name of the Persistent Disk resource. The Persistent Disk resource must be in the same zone as the Pool.
947        "attachment": { # Specifies how to attach a disk to a Replica. # How the disk will be attached to the Replica.
948          "deviceName": "A String", # The device name of this disk.
949          "index": 42, # A zero-based index to assign to this disk, where 0 is reserved for the boot disk. If not specified, this is assigned by the server.
950        },
951      },
952    ],
953    "machineType": "A String", # The machine type for this instance. The resource name (e.g. n1-standard-1).
954    "baseInstanceName": "A String", # Deprecated. Please use baseInstanceName instead.
955    "serviceAccounts": [ # A list of Service Accounts to enable for this instance.
956      { # A Compute Engine service account, identical to the Compute Engine resource.
957        "scopes": [ # The list of OAuth2 scopes to obtain for the service account, for example: https://www.googleapis.com/auth/devstorage.full_control
958          "A String",
959        ],
960        "email": "A String", # The service account email address, for example: 123845678986@project.gserviceaccount.com
961      },
962    ],
963    "networkInterfaces": [ # A list of network interfaces for the instance. Currently only one interface is supported by Google Compute Engine, ONE_TO_ONE_NAT.
964      { # A Compute Engine NetworkInterface resource. Identical to the NetworkInterface on the corresponding Compute Engine resource.
965        "accessConfigs": [ # An array of configurations for this interface. This specifies how this interface is configured to interact with other network services.
966          { # A Compute Engine network accessConfig. Identical to the accessConfig on corresponding Compute Engine resource.
967            "type": "A String", # Type of this access configuration file. Currently only ONE_TO_ONE_NAT is supported.
968            "name": "A String", # Name of this access configuration.
969            "natIp": "A String", # An external IP address associated with this instance.
970          },
971        ],
972        "networkIp": "A String", # An optional IPV4 internal network address to assign to the instance for this network interface.
973        "network": "A String", # Name the Network resource to which this interface applies.
974      },
975    ],
976    "metadata": { # A Compute Engine metadata entry. Identical to the metadata on the corresponding Compute Engine resource. # The metadata key/value pairs assigned to this instance.
977      "items": [ # A list of metadata items.
978        { # A Compute Engine metadata item, defined as a key:value pair. Identical to the metadata on the corresponding Compute Engine resource.
979          "value": "A String", # A metadata value.
980          "key": "A String", # A metadata key.
981        },
982      ],
983      "fingerPrint": "A String", # The fingerprint of the metadata. Required for updating the metadata entries for this instance.
984    },
985  },
986}
987
988</pre>
989</div>
990
991</body></html>