• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
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="remotebuildexecution_v1alpha.html">Remote Build Execution API</a> . <a href="remotebuildexecution_v1alpha.projects.html">projects</a> . <a href="remotebuildexecution_v1alpha.projects.instances.html">instances</a> . <a href="remotebuildexecution_v1alpha.projects.instances.workerpools.html">workerpools</a></h1>
76<h2>Instance Methods</h2>
77<p class="toc_element">
78  <code><a href="#close">close()</a></code></p>
79<p class="firstline">Close httplib2 connections.</p>
80<p class="toc_element">
81  <code><a href="#create">create(parent, body=None, x__xgafv=None)</a></code></p>
82<p class="firstline">Creates a new worker pool with a specified size and configuration. Returns a long running operation which contains a worker pool on completion. While the long running operation is in progress, any call to `GetWorkerPool` returns a worker pool in state `CREATING`.</p>
83<p class="toc_element">
84  <code><a href="#delete">delete(name, x__xgafv=None)</a></code></p>
85<p class="firstline">Deletes the specified worker pool. Returns a long running operation, which contains a `google.protobuf.Empty` response on completion. While the long running operation is in progress, any call to `GetWorkerPool` returns a worker pool in state `DELETING`.</p>
86<p class="toc_element">
87  <code><a href="#get">get(name, x__xgafv=None)</a></code></p>
88<p class="firstline">Returns the specified worker pool.</p>
89<p class="toc_element">
90  <code><a href="#list">list(parent, filter=None, x__xgafv=None)</a></code></p>
91<p class="firstline">Lists worker pools in an instance.</p>
92<p class="toc_element">
93  <code><a href="#patch">patch(name, body=None, x__xgafv=None)</a></code></p>
94<p class="firstline">Updates an existing worker pool with a specified size and/or configuration. Returns a long running operation, which contains a worker pool on completion. While the long running operation is in progress, any call to `GetWorkerPool` returns a worker pool in state `UPDATING`.</p>
95<h3>Method Details</h3>
96<div class="method">
97    <code class="details" id="close">close()</code>
98  <pre>Close httplib2 connections.</pre>
99</div>
100
101<div class="method">
102    <code class="details" id="create">create(parent, body=None, x__xgafv=None)</code>
103  <pre>Creates a new worker pool with a specified size and configuration. Returns a long running operation which contains a worker pool on completion. While the long running operation is in progress, any call to `GetWorkerPool` returns a worker pool in state `CREATING`.
104
105Args:
106  parent: string, Resource name of the instance in which to create the new worker pool. Format: `projects/[PROJECT_ID]/instances/[INSTANCE_ID]`. (required)
107  body: object, The request body.
108    The object takes the form of:
109
110{ # The request used for `CreateWorkerPool`.
111  &quot;parent&quot;: &quot;A String&quot;, # Resource name of the instance in which to create the new worker pool. Format: `projects/[PROJECT_ID]/instances/[INSTANCE_ID]`.
112  &quot;poolId&quot;: &quot;A String&quot;, # ID of the created worker pool. A valid pool ID must: be 6-50 characters long, contain only lowercase letters, digits, hyphens and underscores, start with a lowercase letter, and end with a lowercase letter or a digit.
113  &quot;workerPool&quot;: { # A worker pool resource in the Remote Build Execution API. # Specifies the worker pool to create. The name in the worker pool, if specified, is ignored.
114    &quot;autoscale&quot;: { # Autoscale defines the autoscaling policy of a worker pool. # The autoscale policy to apply on a pool.
115      &quot;maxSize&quot;: &quot;A String&quot;, # The maximal number of workers. Must be equal to or greater than min_size.
116      &quot;minSize&quot;: &quot;A String&quot;, # The minimal number of workers. Must be greater than 0.
117    },
118    &quot;channel&quot;: &quot;A String&quot;, # Channel specifies the release channel of the pool.
119    &quot;name&quot;: &quot;A String&quot;, # WorkerPool resource name formatted as: `projects/[PROJECT_ID]/instances/[INSTANCE_ID]/workerpools/[POOL_ID]`. name should not be populated when creating a worker pool since it is provided in the `poolId` field.
120    &quot;state&quot;: &quot;A String&quot;, # Output only. State of the worker pool.
121    &quot;workerConfig&quot;: { # Defines the configuration to be used for creating workers in the worker pool. # Specifies the properties, such as machine type and disk size, used for creating workers in a worker pool.
122      &quot;accelerator&quot;: { # AcceleratorConfig defines the accelerator cards to attach to the VM. # The accelerator card attached to each VM.
123        &quot;acceleratorCount&quot;: &quot;A String&quot;, # The number of guest accelerator cards exposed to each VM.
124        &quot;acceleratorType&quot;: &quot;A String&quot;, # The type of accelerator to attach to each VM, e.g. &quot;nvidia-tesla-k80&quot; for nVidia Tesla K80.
125      },
126      &quot;diskSizeGb&quot;: &quot;A String&quot;, # Required. Size of the disk attached to the worker, in GB. See https://cloud.google.com/compute/docs/disks/
127      &quot;diskType&quot;: &quot;A String&quot;, # Required. Disk Type to use for the worker. See [Storage options](https://cloud.google.com/compute/docs/disks/#introduction). Currently only `pd-standard` and `pd-ssd` are supported.
128      &quot;labels&quot;: { # Labels associated with the workers. Label keys and values can be no longer than 63 characters, can only contain lowercase letters, numeric characters, underscores and dashes. International letters are permitted. Label keys must start with a letter. Label values are optional. There can not be more than 64 labels per resource.
129        &quot;a_key&quot;: &quot;A String&quot;,
130      },
131      &quot;machineType&quot;: &quot;A String&quot;, # Required. Machine type of the worker, such as `e2-standard-2`. See https://cloud.google.com/compute/docs/machine-types for a list of supported machine types. Note that `f1-micro` and `g1-small` are not yet supported.
132      &quot;maxConcurrentActions&quot;: &quot;A String&quot;, # The maximum number of actions a worker can execute concurrently.
133      &quot;minCpuPlatform&quot;: &quot;A String&quot;, # Minimum CPU platform to use when creating the worker. See [CPU Platforms](https://cloud.google.com/compute/docs/cpu-platforms).
134      &quot;networkAccess&quot;: &quot;A String&quot;, # Determines the type of network access granted to workers. Possible values: - &quot;public&quot;: Workers can connect to the public internet. - &quot;private&quot;: Workers can only connect to Google APIs and services. - &quot;restricted-private&quot;: Workers can only connect to Google APIs that are reachable through `restricted.googleapis.com` (`199.36.153.4/30`).
135      &quot;reserved&quot;: True or False, # Determines whether the worker is reserved (equivalent to a Compute Engine on-demand VM and therefore won&#x27;t be preempted). See [Preemptible VMs](https://cloud.google.com/preemptible-vms/) for more details.
136      &quot;soleTenantNodeType&quot;: &quot;A String&quot;, # The node type name to be used for sole-tenant nodes.
137      &quot;vmImage&quot;: &quot;A String&quot;, # The name of the image used by each VM.
138    },
139    &quot;workerCount&quot;: &quot;A String&quot;, # The desired number of workers in the worker pool. Must be a value between 0 and 15000.
140  },
141}
142
143  x__xgafv: string, V1 error format.
144    Allowed values
145      1 - v1 error format
146      2 - v2 error format
147
148Returns:
149  An object of the form:
150
151    { # This resource represents a long-running operation that is the result of a network API call.
152  &quot;done&quot;: True or False, # If the value is `false`, it means the operation is still in progress. If `true`, the operation is completed, and either `error` or `response` is available.
153  &quot;error&quot;: { # The `Status` type defines a logical error model that is suitable for different programming environments, including REST APIs and RPC APIs. It is used by [gRPC](https://github.com/grpc). Each `Status` message contains three pieces of data: error code, error message, and error details. You can find out more about this error model and how to work with it in the [API Design Guide](https://cloud.google.com/apis/design/errors). # The error result of the operation in case of failure or cancellation.
154    &quot;code&quot;: 42, # The status code, which should be an enum value of google.rpc.Code.
155    &quot;details&quot;: [ # A list of messages that carry the error details. There is a common set of message types for APIs to use.
156      {
157        &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
158      },
159    ],
160    &quot;message&quot;: &quot;A String&quot;, # A developer-facing error message, which should be in English. Any user-facing error message should be localized and sent in the google.rpc.Status.details field, or localized by the client.
161  },
162  &quot;metadata&quot;: { # Service-specific metadata associated with the operation. It typically contains progress information and common metadata such as create time. Some services might not provide such metadata. Any method that returns a long-running operation should document the metadata type, if any.
163    &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
164  },
165  &quot;name&quot;: &quot;A String&quot;, # The server-assigned name, which is only unique within the same service that originally returns it. If you use the default HTTP mapping, the `name` should be a resource name ending with `operations/{unique_id}`.
166  &quot;response&quot;: { # The normal response of the operation in case of success. If the original method returns no data on success, such as `Delete`, the response is `google.protobuf.Empty`. If the original method is standard `Get`/`Create`/`Update`, the response should be the resource. For other methods, the response should have the type `XxxResponse`, where `Xxx` is the original method name. For example, if the original method name is `TakeSnapshot()`, the inferred response type is `TakeSnapshotResponse`.
167    &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
168  },
169}</pre>
170</div>
171
172<div class="method">
173    <code class="details" id="delete">delete(name, x__xgafv=None)</code>
174  <pre>Deletes the specified worker pool. Returns a long running operation, which contains a `google.protobuf.Empty` response on completion. While the long running operation is in progress, any call to `GetWorkerPool` returns a worker pool in state `DELETING`.
175
176Args:
177  name: string, Name of the worker pool to delete. Format: `projects/[PROJECT_ID]/instances/[INSTANCE_ID]/workerpools/[POOL_ID]`. (required)
178  x__xgafv: string, V1 error format.
179    Allowed values
180      1 - v1 error format
181      2 - v2 error format
182
183Returns:
184  An object of the form:
185
186    { # This resource represents a long-running operation that is the result of a network API call.
187  &quot;done&quot;: True or False, # If the value is `false`, it means the operation is still in progress. If `true`, the operation is completed, and either `error` or `response` is available.
188  &quot;error&quot;: { # The `Status` type defines a logical error model that is suitable for different programming environments, including REST APIs and RPC APIs. It is used by [gRPC](https://github.com/grpc). Each `Status` message contains three pieces of data: error code, error message, and error details. You can find out more about this error model and how to work with it in the [API Design Guide](https://cloud.google.com/apis/design/errors). # The error result of the operation in case of failure or cancellation.
189    &quot;code&quot;: 42, # The status code, which should be an enum value of google.rpc.Code.
190    &quot;details&quot;: [ # A list of messages that carry the error details. There is a common set of message types for APIs to use.
191      {
192        &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
193      },
194    ],
195    &quot;message&quot;: &quot;A String&quot;, # A developer-facing error message, which should be in English. Any user-facing error message should be localized and sent in the google.rpc.Status.details field, or localized by the client.
196  },
197  &quot;metadata&quot;: { # Service-specific metadata associated with the operation. It typically contains progress information and common metadata such as create time. Some services might not provide such metadata. Any method that returns a long-running operation should document the metadata type, if any.
198    &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
199  },
200  &quot;name&quot;: &quot;A String&quot;, # The server-assigned name, which is only unique within the same service that originally returns it. If you use the default HTTP mapping, the `name` should be a resource name ending with `operations/{unique_id}`.
201  &quot;response&quot;: { # The normal response of the operation in case of success. If the original method returns no data on success, such as `Delete`, the response is `google.protobuf.Empty`. If the original method is standard `Get`/`Create`/`Update`, the response should be the resource. For other methods, the response should have the type `XxxResponse`, where `Xxx` is the original method name. For example, if the original method name is `TakeSnapshot()`, the inferred response type is `TakeSnapshotResponse`.
202    &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
203  },
204}</pre>
205</div>
206
207<div class="method">
208    <code class="details" id="get">get(name, x__xgafv=None)</code>
209  <pre>Returns the specified worker pool.
210
211Args:
212  name: string, Name of the worker pool to retrieve. Format: `projects/[PROJECT_ID]/instances/[INSTANCE_ID]/workerpools/[POOL_ID]`. (required)
213  x__xgafv: string, V1 error format.
214    Allowed values
215      1 - v1 error format
216      2 - v2 error format
217
218Returns:
219  An object of the form:
220
221    { # A worker pool resource in the Remote Build Execution API.
222  &quot;autoscale&quot;: { # Autoscale defines the autoscaling policy of a worker pool. # The autoscale policy to apply on a pool.
223    &quot;maxSize&quot;: &quot;A String&quot;, # The maximal number of workers. Must be equal to or greater than min_size.
224    &quot;minSize&quot;: &quot;A String&quot;, # The minimal number of workers. Must be greater than 0.
225  },
226  &quot;channel&quot;: &quot;A String&quot;, # Channel specifies the release channel of the pool.
227  &quot;name&quot;: &quot;A String&quot;, # WorkerPool resource name formatted as: `projects/[PROJECT_ID]/instances/[INSTANCE_ID]/workerpools/[POOL_ID]`. name should not be populated when creating a worker pool since it is provided in the `poolId` field.
228  &quot;state&quot;: &quot;A String&quot;, # Output only. State of the worker pool.
229  &quot;workerConfig&quot;: { # Defines the configuration to be used for creating workers in the worker pool. # Specifies the properties, such as machine type and disk size, used for creating workers in a worker pool.
230    &quot;accelerator&quot;: { # AcceleratorConfig defines the accelerator cards to attach to the VM. # The accelerator card attached to each VM.
231      &quot;acceleratorCount&quot;: &quot;A String&quot;, # The number of guest accelerator cards exposed to each VM.
232      &quot;acceleratorType&quot;: &quot;A String&quot;, # The type of accelerator to attach to each VM, e.g. &quot;nvidia-tesla-k80&quot; for nVidia Tesla K80.
233    },
234    &quot;diskSizeGb&quot;: &quot;A String&quot;, # Required. Size of the disk attached to the worker, in GB. See https://cloud.google.com/compute/docs/disks/
235    &quot;diskType&quot;: &quot;A String&quot;, # Required. Disk Type to use for the worker. See [Storage options](https://cloud.google.com/compute/docs/disks/#introduction). Currently only `pd-standard` and `pd-ssd` are supported.
236    &quot;labels&quot;: { # Labels associated with the workers. Label keys and values can be no longer than 63 characters, can only contain lowercase letters, numeric characters, underscores and dashes. International letters are permitted. Label keys must start with a letter. Label values are optional. There can not be more than 64 labels per resource.
237      &quot;a_key&quot;: &quot;A String&quot;,
238    },
239    &quot;machineType&quot;: &quot;A String&quot;, # Required. Machine type of the worker, such as `e2-standard-2`. See https://cloud.google.com/compute/docs/machine-types for a list of supported machine types. Note that `f1-micro` and `g1-small` are not yet supported.
240    &quot;maxConcurrentActions&quot;: &quot;A String&quot;, # The maximum number of actions a worker can execute concurrently.
241    &quot;minCpuPlatform&quot;: &quot;A String&quot;, # Minimum CPU platform to use when creating the worker. See [CPU Platforms](https://cloud.google.com/compute/docs/cpu-platforms).
242    &quot;networkAccess&quot;: &quot;A String&quot;, # Determines the type of network access granted to workers. Possible values: - &quot;public&quot;: Workers can connect to the public internet. - &quot;private&quot;: Workers can only connect to Google APIs and services. - &quot;restricted-private&quot;: Workers can only connect to Google APIs that are reachable through `restricted.googleapis.com` (`199.36.153.4/30`).
243    &quot;reserved&quot;: True or False, # Determines whether the worker is reserved (equivalent to a Compute Engine on-demand VM and therefore won&#x27;t be preempted). See [Preemptible VMs](https://cloud.google.com/preemptible-vms/) for more details.
244    &quot;soleTenantNodeType&quot;: &quot;A String&quot;, # The node type name to be used for sole-tenant nodes.
245    &quot;vmImage&quot;: &quot;A String&quot;, # The name of the image used by each VM.
246  },
247  &quot;workerCount&quot;: &quot;A String&quot;, # The desired number of workers in the worker pool. Must be a value between 0 and 15000.
248}</pre>
249</div>
250
251<div class="method">
252    <code class="details" id="list">list(parent, filter=None, x__xgafv=None)</code>
253  <pre>Lists worker pools in an instance.
254
255Args:
256  parent: string, Resource name of the instance. Format: `projects/[PROJECT_ID]/instances/[INSTANCE_ID]`. (required)
257  filter: string, Optional. A filter expression that filters resources listed in the response. The expression must specify the field name, a comparison operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. String values are case-insensitive. The comparison operator must be either `:`, `=`, `!=`, `&gt;`, `&gt;=`, `&lt;=` or `&lt;`. The `:` operator can be used with string fields to match substrings. For non-string fields it is equivalent to the `=` operator. The `:*` comparison can be used to test whether a key has been defined. You can also filter on nested fields. To filter on multiple expressions, you can separate expression using `AND` and `OR` operators, using parentheses to specify precedence. If neither operator is specified, `AND` is assumed. Examples: Include only pools with more than 100 reserved workers: `(worker_count &gt; 100) (worker_config.reserved = true)` Include only pools with a certain label or machines of the e2-standard family: `worker_config.labels.key1 : * OR worker_config.machine_type: e2-standard`
258  x__xgafv: string, V1 error format.
259    Allowed values
260      1 - v1 error format
261      2 - v2 error format
262
263Returns:
264  An object of the form:
265
266    {
267  &quot;workerPools&quot;: [ # The list of worker pools in a given instance.
268    { # A worker pool resource in the Remote Build Execution API.
269      &quot;autoscale&quot;: { # Autoscale defines the autoscaling policy of a worker pool. # The autoscale policy to apply on a pool.
270        &quot;maxSize&quot;: &quot;A String&quot;, # The maximal number of workers. Must be equal to or greater than min_size.
271        &quot;minSize&quot;: &quot;A String&quot;, # The minimal number of workers. Must be greater than 0.
272      },
273      &quot;channel&quot;: &quot;A String&quot;, # Channel specifies the release channel of the pool.
274      &quot;name&quot;: &quot;A String&quot;, # WorkerPool resource name formatted as: `projects/[PROJECT_ID]/instances/[INSTANCE_ID]/workerpools/[POOL_ID]`. name should not be populated when creating a worker pool since it is provided in the `poolId` field.
275      &quot;state&quot;: &quot;A String&quot;, # Output only. State of the worker pool.
276      &quot;workerConfig&quot;: { # Defines the configuration to be used for creating workers in the worker pool. # Specifies the properties, such as machine type and disk size, used for creating workers in a worker pool.
277        &quot;accelerator&quot;: { # AcceleratorConfig defines the accelerator cards to attach to the VM. # The accelerator card attached to each VM.
278          &quot;acceleratorCount&quot;: &quot;A String&quot;, # The number of guest accelerator cards exposed to each VM.
279          &quot;acceleratorType&quot;: &quot;A String&quot;, # The type of accelerator to attach to each VM, e.g. &quot;nvidia-tesla-k80&quot; for nVidia Tesla K80.
280        },
281        &quot;diskSizeGb&quot;: &quot;A String&quot;, # Required. Size of the disk attached to the worker, in GB. See https://cloud.google.com/compute/docs/disks/
282        &quot;diskType&quot;: &quot;A String&quot;, # Required. Disk Type to use for the worker. See [Storage options](https://cloud.google.com/compute/docs/disks/#introduction). Currently only `pd-standard` and `pd-ssd` are supported.
283        &quot;labels&quot;: { # Labels associated with the workers. Label keys and values can be no longer than 63 characters, can only contain lowercase letters, numeric characters, underscores and dashes. International letters are permitted. Label keys must start with a letter. Label values are optional. There can not be more than 64 labels per resource.
284          &quot;a_key&quot;: &quot;A String&quot;,
285        },
286        &quot;machineType&quot;: &quot;A String&quot;, # Required. Machine type of the worker, such as `e2-standard-2`. See https://cloud.google.com/compute/docs/machine-types for a list of supported machine types. Note that `f1-micro` and `g1-small` are not yet supported.
287        &quot;maxConcurrentActions&quot;: &quot;A String&quot;, # The maximum number of actions a worker can execute concurrently.
288        &quot;minCpuPlatform&quot;: &quot;A String&quot;, # Minimum CPU platform to use when creating the worker. See [CPU Platforms](https://cloud.google.com/compute/docs/cpu-platforms).
289        &quot;networkAccess&quot;: &quot;A String&quot;, # Determines the type of network access granted to workers. Possible values: - &quot;public&quot;: Workers can connect to the public internet. - &quot;private&quot;: Workers can only connect to Google APIs and services. - &quot;restricted-private&quot;: Workers can only connect to Google APIs that are reachable through `restricted.googleapis.com` (`199.36.153.4/30`).
290        &quot;reserved&quot;: True or False, # Determines whether the worker is reserved (equivalent to a Compute Engine on-demand VM and therefore won&#x27;t be preempted). See [Preemptible VMs](https://cloud.google.com/preemptible-vms/) for more details.
291        &quot;soleTenantNodeType&quot;: &quot;A String&quot;, # The node type name to be used for sole-tenant nodes.
292        &quot;vmImage&quot;: &quot;A String&quot;, # The name of the image used by each VM.
293      },
294      &quot;workerCount&quot;: &quot;A String&quot;, # The desired number of workers in the worker pool. Must be a value between 0 and 15000.
295    },
296  ],
297}</pre>
298</div>
299
300<div class="method">
301    <code class="details" id="patch">patch(name, body=None, x__xgafv=None)</code>
302  <pre>Updates an existing worker pool with a specified size and/or configuration. Returns a long running operation, which contains a worker pool on completion. While the long running operation is in progress, any call to `GetWorkerPool` returns a worker pool in state `UPDATING`.
303
304Args:
305  name: string, WorkerPool resource name formatted as: `projects/[PROJECT_ID]/instances/[INSTANCE_ID]/workerpools/[POOL_ID]`. name should not be populated when creating a worker pool since it is provided in the `poolId` field. (required)
306  body: object, The request body.
307    The object takes the form of:
308
309{ # The request used for UpdateWorkerPool.
310  &quot;updateMask&quot;: &quot;A String&quot;, # The update mask applies to worker_pool. For the `FieldMask` definition, see https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#fieldmask If an empty update_mask is provided, only the non-default valued field in the worker pool field will be updated. Note that in order to update a field to the default value (zero, false, empty string) an explicit update_mask must be provided.
311  &quot;workerPool&quot;: { # A worker pool resource in the Remote Build Execution API. # Specifies the worker pool to update.
312    &quot;autoscale&quot;: { # Autoscale defines the autoscaling policy of a worker pool. # The autoscale policy to apply on a pool.
313      &quot;maxSize&quot;: &quot;A String&quot;, # The maximal number of workers. Must be equal to or greater than min_size.
314      &quot;minSize&quot;: &quot;A String&quot;, # The minimal number of workers. Must be greater than 0.
315    },
316    &quot;channel&quot;: &quot;A String&quot;, # Channel specifies the release channel of the pool.
317    &quot;name&quot;: &quot;A String&quot;, # WorkerPool resource name formatted as: `projects/[PROJECT_ID]/instances/[INSTANCE_ID]/workerpools/[POOL_ID]`. name should not be populated when creating a worker pool since it is provided in the `poolId` field.
318    &quot;state&quot;: &quot;A String&quot;, # Output only. State of the worker pool.
319    &quot;workerConfig&quot;: { # Defines the configuration to be used for creating workers in the worker pool. # Specifies the properties, such as machine type and disk size, used for creating workers in a worker pool.
320      &quot;accelerator&quot;: { # AcceleratorConfig defines the accelerator cards to attach to the VM. # The accelerator card attached to each VM.
321        &quot;acceleratorCount&quot;: &quot;A String&quot;, # The number of guest accelerator cards exposed to each VM.
322        &quot;acceleratorType&quot;: &quot;A String&quot;, # The type of accelerator to attach to each VM, e.g. &quot;nvidia-tesla-k80&quot; for nVidia Tesla K80.
323      },
324      &quot;diskSizeGb&quot;: &quot;A String&quot;, # Required. Size of the disk attached to the worker, in GB. See https://cloud.google.com/compute/docs/disks/
325      &quot;diskType&quot;: &quot;A String&quot;, # Required. Disk Type to use for the worker. See [Storage options](https://cloud.google.com/compute/docs/disks/#introduction). Currently only `pd-standard` and `pd-ssd` are supported.
326      &quot;labels&quot;: { # Labels associated with the workers. Label keys and values can be no longer than 63 characters, can only contain lowercase letters, numeric characters, underscores and dashes. International letters are permitted. Label keys must start with a letter. Label values are optional. There can not be more than 64 labels per resource.
327        &quot;a_key&quot;: &quot;A String&quot;,
328      },
329      &quot;machineType&quot;: &quot;A String&quot;, # Required. Machine type of the worker, such as `e2-standard-2`. See https://cloud.google.com/compute/docs/machine-types for a list of supported machine types. Note that `f1-micro` and `g1-small` are not yet supported.
330      &quot;maxConcurrentActions&quot;: &quot;A String&quot;, # The maximum number of actions a worker can execute concurrently.
331      &quot;minCpuPlatform&quot;: &quot;A String&quot;, # Minimum CPU platform to use when creating the worker. See [CPU Platforms](https://cloud.google.com/compute/docs/cpu-platforms).
332      &quot;networkAccess&quot;: &quot;A String&quot;, # Determines the type of network access granted to workers. Possible values: - &quot;public&quot;: Workers can connect to the public internet. - &quot;private&quot;: Workers can only connect to Google APIs and services. - &quot;restricted-private&quot;: Workers can only connect to Google APIs that are reachable through `restricted.googleapis.com` (`199.36.153.4/30`).
333      &quot;reserved&quot;: True or False, # Determines whether the worker is reserved (equivalent to a Compute Engine on-demand VM and therefore won&#x27;t be preempted). See [Preemptible VMs](https://cloud.google.com/preemptible-vms/) for more details.
334      &quot;soleTenantNodeType&quot;: &quot;A String&quot;, # The node type name to be used for sole-tenant nodes.
335      &quot;vmImage&quot;: &quot;A String&quot;, # The name of the image used by each VM.
336    },
337    &quot;workerCount&quot;: &quot;A String&quot;, # The desired number of workers in the worker pool. Must be a value between 0 and 15000.
338  },
339}
340
341  x__xgafv: string, V1 error format.
342    Allowed values
343      1 - v1 error format
344      2 - v2 error format
345
346Returns:
347  An object of the form:
348
349    { # This resource represents a long-running operation that is the result of a network API call.
350  &quot;done&quot;: True or False, # If the value is `false`, it means the operation is still in progress. If `true`, the operation is completed, and either `error` or `response` is available.
351  &quot;error&quot;: { # The `Status` type defines a logical error model that is suitable for different programming environments, including REST APIs and RPC APIs. It is used by [gRPC](https://github.com/grpc). Each `Status` message contains three pieces of data: error code, error message, and error details. You can find out more about this error model and how to work with it in the [API Design Guide](https://cloud.google.com/apis/design/errors). # The error result of the operation in case of failure or cancellation.
352    &quot;code&quot;: 42, # The status code, which should be an enum value of google.rpc.Code.
353    &quot;details&quot;: [ # A list of messages that carry the error details. There is a common set of message types for APIs to use.
354      {
355        &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
356      },
357    ],
358    &quot;message&quot;: &quot;A String&quot;, # A developer-facing error message, which should be in English. Any user-facing error message should be localized and sent in the google.rpc.Status.details field, or localized by the client.
359  },
360  &quot;metadata&quot;: { # Service-specific metadata associated with the operation. It typically contains progress information and common metadata such as create time. Some services might not provide such metadata. Any method that returns a long-running operation should document the metadata type, if any.
361    &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
362  },
363  &quot;name&quot;: &quot;A String&quot;, # The server-assigned name, which is only unique within the same service that originally returns it. If you use the default HTTP mapping, the `name` should be a resource name ending with `operations/{unique_id}`.
364  &quot;response&quot;: { # The normal response of the operation in case of success. If the original method returns no data on success, such as `Delete`, the response is `google.protobuf.Empty`. If the original method is standard `Get`/`Create`/`Update`, the response should be the resource. For other methods, the response should have the type `XxxResponse`, where `Xxx` is the original method name. For example, if the original method name is `TakeSnapshot()`, the inferred response type is `TakeSnapshotResponse`.
365    &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
366  },
367}</pre>
368</div>
369
370</body></html>