• 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="#create">create(parent, body, x__xgafv=None)</a></code></p>
79<p class="firstline">Creates a new worker pool with a specified size and configuration.</p>
80<p class="toc_element">
81  <code><a href="#delete">delete(name, x__xgafv=None)</a></code></p>
82<p class="firstline">Deletes the specified worker pool.</p>
83<p class="toc_element">
84  <code><a href="#get">get(name, x__xgafv=None)</a></code></p>
85<p class="firstline">Returns the specified worker pool.</p>
86<p class="toc_element">
87  <code><a href="#list">list(parent, x__xgafv=None, filter=None)</a></code></p>
88<p class="firstline">Lists worker pools in an instance.</p>
89<p class="toc_element">
90  <code><a href="#patch">patch(name, body, x__xgafv=None)</a></code></p>
91<p class="firstline">Updates an existing worker pool with a specified size and/or configuration.</p>
92<h3>Method Details</h3>
93<div class="method">
94    <code class="details" id="create">create(parent, body, x__xgafv=None)</code>
95  <pre>Creates a new worker pool with a specified size and configuration.
96Returns a long running operation which contains a worker pool on
97completion. While the long running operation is in progress, any call to
98`GetWorkerPool` returns a worker pool in state `CREATING`.
99
100Args:
101  parent: string, Resource name of the instance in which to create the new worker pool.
102Format: `projects/[PROJECT_ID]/instances/[INSTANCE_ID]`. (required)
103  body: object, The request body. (required)
104    The object takes the form of:
105
106{ # The request used for `CreateWorkerPool`.
107    "workerPool": { # A worker pool resource in the Remote Build Execution API. # Specifies the worker pool to create.
108        # The name in the worker pool, if specified, is ignored.
109      "workerCount": "A String", # The desired number of workers in the worker pool. Must be a value between
110          # 0 and 1000.
111      "state": "A String", # Output only. State of the worker pool.
112      "workerConfig": { # Defines the configuration to be used for a creating workers in # Specifies the properties, such as machine type and disk size, used for
113          # creating workers in a worker pool.
114          # the worker pool.
115        "machineType": "A String", # Required. Machine type of the worker, such as `n1-standard-2`.
116            # See https://cloud.google.com/compute/docs/machine-types for a list of
117            # supported machine types. Note that `f1-micro` and `g1-small` are not yet
118            # supported.
119        "labels": { # Labels associated with the workers.
120            # Label keys and values can be no longer than 63 characters, can only contain
121            # lowercase letters, numeric characters, underscores and dashes.
122            # International letters are permitted. Keys must start with a letter but
123            # values are optional.
124            # This field is currently ignored in all requests.
125          "a_key": "A String",
126        },
127        "diskType": "A String", # Required. Disk Type to use for the worker.
128            # See [Storage
129            # options](https://cloud.google.com/compute/docs/disks/#introduction).
130            # Currently only `pd-standard` is supported.
131        "diskSizeGb": "A String", # Required. Size of the disk attached to the worker, in GB.
132            # See https://cloud.google.com/compute/docs/disks/
133        "minCpuPlatform": "A String", # Minimum CPU platform to use when creating the worker.
134            # See [CPU Platforms](https://cloud.google.com/compute/docs/cpu-platforms).
135        "reserved": True or False, # Determines whether the worker is reserved (equivalent to a Compute Engine
136            # on-demand VM and therefore won't be preempted).
137            # See [Preemptible VMs](https://cloud.google.com/preemptible-vms/) for more
138            # details.
139      },
140      "name": "A String", # WorkerPool resource name formatted as:
141          # `projects/[PROJECT_ID]/instances/[INSTANCE_ID]/workerpools/[POOL_ID]`.
142          # name should not be populated when creating a worker pool since it is
143          # provided in the `poolId` field.
144    },
145    "parent": "A String", # Resource name of the instance in which to create the new worker pool.
146        # Format: `projects/[PROJECT_ID]/instances/[INSTANCE_ID]`.
147    "poolId": "A String", # ID of the created worker pool.
148        # A valid pool ID must:
149        # be 6-50 characters long,
150        # contain only lowercase letters, digits, hyphens and underscores,
151        # start with a lowercase letter, and
152        # end with a lowercase letter or a digit.
153  }
154
155  x__xgafv: string, V1 error format.
156    Allowed values
157      1 - v1 error format
158      2 - v2 error format
159
160Returns:
161  An object of the form:
162
163    { # This resource represents a long-running operation that is the result of a
164      # network API call.
165    "error": { # The `Status` type defines a logical error model that is suitable for # The error result of the operation in case of failure or cancellation.
166        # different programming environments, including REST APIs and RPC APIs. It is
167        # used by [gRPC](https://github.com/grpc). Each `Status` message contains
168        # three pieces of data: error code, error message, and error details.
169        #
170        # You can find out more about this error model and how to work with it in the
171        # [API Design Guide](https://cloud.google.com/apis/design/errors).
172      "message": "A String", # A developer-facing error message, which should be in English. Any
173          # user-facing error message should be localized and sent in the
174          # google.rpc.Status.details field, or localized by the client.
175      "code": 42, # The status code, which should be an enum value of google.rpc.Code.
176      "details": [ # A list of messages that carry the error details.  There is a common set of
177          # message types for APIs to use.
178        {
179          "a_key": "", # Properties of the object. Contains field @type with type URL.
180        },
181      ],
182    },
183    "done": True or False, # If the value is `false`, it means the operation is still in progress.
184        # If `true`, the operation is completed, and either `error` or `response` is
185        # available.
186    "response": { # The normal response of the operation in case of success.  If the original
187        # method returns no data on success, such as `Delete`, the response is
188        # `google.protobuf.Empty`.  If the original method is standard
189        # `Get`/`Create`/`Update`, the response should be the resource.  For other
190        # methods, the response should have the type `XxxResponse`, where `Xxx`
191        # is the original method name.  For example, if the original method name
192        # is `TakeSnapshot()`, the inferred response type is
193        # `TakeSnapshotResponse`.
194      "a_key": "", # Properties of the object. Contains field @type with type URL.
195    },
196    "name": "A String", # The server-assigned name, which is only unique within the same service that
197        # originally returns it. If you use the default HTTP mapping, the
198        # `name` should be a resource name ending with `operations/{unique_id}`.
199    "metadata": { # Service-specific metadata associated with the operation.  It typically
200        # contains progress information and common metadata such as create time.
201        # Some services might not provide such metadata.  Any method that returns a
202        # long-running operation should document the metadata type, if any.
203      "a_key": "", # Properties of the object. Contains field @type with type URL.
204    },
205  }</pre>
206</div>
207
208<div class="method">
209    <code class="details" id="delete">delete(name, x__xgafv=None)</code>
210  <pre>Deletes the specified worker pool.
211Returns a long running operation, which contains a `google.protobuf.Empty`
212response on completion.
213While the long running operation is in progress, any call to
214`GetWorkerPool` returns a worker pool in state `DELETING`.
215
216Args:
217  name: string, Name of the worker pool to delete.
218Format:
219`projects/[PROJECT_ID]/instances/[INSTANCE_ID]/workerpools/[POOL_ID]`. (required)
220  x__xgafv: string, V1 error format.
221    Allowed values
222      1 - v1 error format
223      2 - v2 error format
224
225Returns:
226  An object of the form:
227
228    { # This resource represents a long-running operation that is the result of a
229      # network API call.
230    "error": { # The `Status` type defines a logical error model that is suitable for # The error result of the operation in case of failure or cancellation.
231        # different programming environments, including REST APIs and RPC APIs. It is
232        # used by [gRPC](https://github.com/grpc). Each `Status` message contains
233        # three pieces of data: error code, error message, and error details.
234        #
235        # You can find out more about this error model and how to work with it in the
236        # [API Design Guide](https://cloud.google.com/apis/design/errors).
237      "message": "A String", # A developer-facing error message, which should be in English. Any
238          # user-facing error message should be localized and sent in the
239          # google.rpc.Status.details field, or localized by the client.
240      "code": 42, # The status code, which should be an enum value of google.rpc.Code.
241      "details": [ # A list of messages that carry the error details.  There is a common set of
242          # message types for APIs to use.
243        {
244          "a_key": "", # Properties of the object. Contains field @type with type URL.
245        },
246      ],
247    },
248    "done": True or False, # If the value is `false`, it means the operation is still in progress.
249        # If `true`, the operation is completed, and either `error` or `response` is
250        # available.
251    "response": { # The normal response of the operation in case of success.  If the original
252        # method returns no data on success, such as `Delete`, the response is
253        # `google.protobuf.Empty`.  If the original method is standard
254        # `Get`/`Create`/`Update`, the response should be the resource.  For other
255        # methods, the response should have the type `XxxResponse`, where `Xxx`
256        # is the original method name.  For example, if the original method name
257        # is `TakeSnapshot()`, the inferred response type is
258        # `TakeSnapshotResponse`.
259      "a_key": "", # Properties of the object. Contains field @type with type URL.
260    },
261    "name": "A String", # The server-assigned name, which is only unique within the same service that
262        # originally returns it. If you use the default HTTP mapping, the
263        # `name` should be a resource name ending with `operations/{unique_id}`.
264    "metadata": { # Service-specific metadata associated with the operation.  It typically
265        # contains progress information and common metadata such as create time.
266        # Some services might not provide such metadata.  Any method that returns a
267        # long-running operation should document the metadata type, if any.
268      "a_key": "", # Properties of the object. Contains field @type with type URL.
269    },
270  }</pre>
271</div>
272
273<div class="method">
274    <code class="details" id="get">get(name, x__xgafv=None)</code>
275  <pre>Returns the specified worker pool.
276
277Args:
278  name: string, Name of the worker pool to retrieve.
279Format:
280`projects/[PROJECT_ID]/instances/[INSTANCE_ID]/workerpools/[POOL_ID]`. (required)
281  x__xgafv: string, V1 error format.
282    Allowed values
283      1 - v1 error format
284      2 - v2 error format
285
286Returns:
287  An object of the form:
288
289    { # A worker pool resource in the Remote Build Execution API.
290    "workerCount": "A String", # The desired number of workers in the worker pool. Must be a value between
291        # 0 and 1000.
292    "state": "A String", # Output only. State of the worker pool.
293    "workerConfig": { # Defines the configuration to be used for a creating workers in # Specifies the properties, such as machine type and disk size, used for
294        # creating workers in a worker pool.
295        # the worker pool.
296      "machineType": "A String", # Required. Machine type of the worker, such as `n1-standard-2`.
297          # See https://cloud.google.com/compute/docs/machine-types for a list of
298          # supported machine types. Note that `f1-micro` and `g1-small` are not yet
299          # supported.
300      "labels": { # Labels associated with the workers.
301          # Label keys and values can be no longer than 63 characters, can only contain
302          # lowercase letters, numeric characters, underscores and dashes.
303          # International letters are permitted. Keys must start with a letter but
304          # values are optional.
305          # This field is currently ignored in all requests.
306        "a_key": "A String",
307      },
308      "diskType": "A String", # Required. Disk Type to use for the worker.
309          # See [Storage
310          # options](https://cloud.google.com/compute/docs/disks/#introduction).
311          # Currently only `pd-standard` is supported.
312      "diskSizeGb": "A String", # Required. Size of the disk attached to the worker, in GB.
313          # See https://cloud.google.com/compute/docs/disks/
314      "minCpuPlatform": "A String", # Minimum CPU platform to use when creating the worker.
315          # See [CPU Platforms](https://cloud.google.com/compute/docs/cpu-platforms).
316      "reserved": True or False, # Determines whether the worker is reserved (equivalent to a Compute Engine
317          # on-demand VM and therefore won't be preempted).
318          # See [Preemptible VMs](https://cloud.google.com/preemptible-vms/) for more
319          # details.
320    },
321    "name": "A String", # WorkerPool resource name formatted as:
322        # `projects/[PROJECT_ID]/instances/[INSTANCE_ID]/workerpools/[POOL_ID]`.
323        # name should not be populated when creating a worker pool since it is
324        # provided in the `poolId` field.
325  }</pre>
326</div>
327
328<div class="method">
329    <code class="details" id="list">list(parent, x__xgafv=None, filter=None)</code>
330  <pre>Lists worker pools in an instance.
331
332Args:
333  parent: string, Resource name of the instance.
334Format: `projects/[PROJECT_ID]/instances/[INSTANCE_ID]`. (required)
335  x__xgafv: string, V1 error format.
336    Allowed values
337      1 - v1 error format
338      2 - v2 error format
339  filter: string, Optional. A filter to constrain the pools returned. Filters have the form:
340
341<field> <operator> <value> [[AND|OR] <field> <operator> <value>]...
342
343<field> is the path for a field or map key in the Pool proto message.
344e.g. "configuration.disk_size_gb" or "configuration.labels.key".
345<operator> can be one of "<", "<=", ">=", ">", "=", "!=", ":".
346":" is a HAS operation for strings and repeated primitive fields.
347<value> is the value to test, case-insensitive for strings. "*" stands for
348any value and can be used to test for key presence.
349Parenthesis determine AND/OR precedence. In space separated restrictions,
350AND is implicit, e.g. "a = b x = y" is equivalent to "a = b AND x = y".
351
352Example filter:
353configuration.labels.key1 = * AND (state = RUNNING OR state = UPDATING)
354
355This field is currently ignored in all requests.
356
357Returns:
358  An object of the form:
359
360    {
361    "workerPools": [ # The list of worker pools in a given instance.
362      { # A worker pool resource in the Remote Build Execution API.
363        "workerCount": "A String", # The desired number of workers in the worker pool. Must be a value between
364            # 0 and 1000.
365        "state": "A String", # Output only. State of the worker pool.
366        "workerConfig": { # Defines the configuration to be used for a creating workers in # Specifies the properties, such as machine type and disk size, used for
367            # creating workers in a worker pool.
368            # the worker pool.
369          "machineType": "A String", # Required. Machine type of the worker, such as `n1-standard-2`.
370              # See https://cloud.google.com/compute/docs/machine-types for a list of
371              # supported machine types. Note that `f1-micro` and `g1-small` are not yet
372              # supported.
373          "labels": { # Labels associated with the workers.
374              # Label keys and values can be no longer than 63 characters, can only contain
375              # lowercase letters, numeric characters, underscores and dashes.
376              # International letters are permitted. Keys must start with a letter but
377              # values are optional.
378              # This field is currently ignored in all requests.
379            "a_key": "A String",
380          },
381          "diskType": "A String", # Required. Disk Type to use for the worker.
382              # See [Storage
383              # options](https://cloud.google.com/compute/docs/disks/#introduction).
384              # Currently only `pd-standard` is supported.
385          "diskSizeGb": "A String", # Required. Size of the disk attached to the worker, in GB.
386              # See https://cloud.google.com/compute/docs/disks/
387          "minCpuPlatform": "A String", # Minimum CPU platform to use when creating the worker.
388              # See [CPU Platforms](https://cloud.google.com/compute/docs/cpu-platforms).
389          "reserved": True or False, # Determines whether the worker is reserved (equivalent to a Compute Engine
390              # on-demand VM and therefore won't be preempted).
391              # See [Preemptible VMs](https://cloud.google.com/preemptible-vms/) for more
392              # details.
393        },
394        "name": "A String", # WorkerPool resource name formatted as:
395            # `projects/[PROJECT_ID]/instances/[INSTANCE_ID]/workerpools/[POOL_ID]`.
396            # name should not be populated when creating a worker pool since it is
397            # provided in the `poolId` field.
398      },
399    ],
400  }</pre>
401</div>
402
403<div class="method">
404    <code class="details" id="patch">patch(name, body, x__xgafv=None)</code>
405  <pre>Updates an existing worker pool with a specified size and/or configuration.
406Returns a long running operation, which contains a worker pool on
407completion. While the long running operation is in progress, any call to
408`GetWorkerPool` returns a worker pool in state `UPDATING`.
409
410Args:
411  name: string, WorkerPool resource name formatted as:
412`projects/[PROJECT_ID]/instances/[INSTANCE_ID]/workerpools/[POOL_ID]`.
413name should not be populated when creating a worker pool since it is
414provided in the `poolId` field. (required)
415  body: object, The request body. (required)
416    The object takes the form of:
417
418{ # The request used for UpdateWorkerPool.
419    "updateMask": "A String", # The update mask applies to worker_pool. For the `FieldMask` definition,
420        # see
421        # https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#fieldmask
422        # If an empty update_mask is provided, only the non-default valued field in
423        # the worker pool field will be updated. Note that in order to update a field
424        # to the default value (zero, false, empty string) an explicit update_mask
425        # must be provided.
426    "workerPool": { # A worker pool resource in the Remote Build Execution API. # Specifies the worker pool to update.
427      "workerCount": "A String", # The desired number of workers in the worker pool. Must be a value between
428          # 0 and 1000.
429      "state": "A String", # Output only. State of the worker pool.
430      "workerConfig": { # Defines the configuration to be used for a creating workers in # Specifies the properties, such as machine type and disk size, used for
431          # creating workers in a worker pool.
432          # the worker pool.
433        "machineType": "A String", # Required. Machine type of the worker, such as `n1-standard-2`.
434            # See https://cloud.google.com/compute/docs/machine-types for a list of
435            # supported machine types. Note that `f1-micro` and `g1-small` are not yet
436            # supported.
437        "labels": { # Labels associated with the workers.
438            # Label keys and values can be no longer than 63 characters, can only contain
439            # lowercase letters, numeric characters, underscores and dashes.
440            # International letters are permitted. Keys must start with a letter but
441            # values are optional.
442            # This field is currently ignored in all requests.
443          "a_key": "A String",
444        },
445        "diskType": "A String", # Required. Disk Type to use for the worker.
446            # See [Storage
447            # options](https://cloud.google.com/compute/docs/disks/#introduction).
448            # Currently only `pd-standard` is supported.
449        "diskSizeGb": "A String", # Required. Size of the disk attached to the worker, in GB.
450            # See https://cloud.google.com/compute/docs/disks/
451        "minCpuPlatform": "A String", # Minimum CPU platform to use when creating the worker.
452            # See [CPU Platforms](https://cloud.google.com/compute/docs/cpu-platforms).
453        "reserved": True or False, # Determines whether the worker is reserved (equivalent to a Compute Engine
454            # on-demand VM and therefore won't be preempted).
455            # See [Preemptible VMs](https://cloud.google.com/preemptible-vms/) for more
456            # details.
457      },
458      "name": "A String", # WorkerPool resource name formatted as:
459          # `projects/[PROJECT_ID]/instances/[INSTANCE_ID]/workerpools/[POOL_ID]`.
460          # name should not be populated when creating a worker pool since it is
461          # provided in the `poolId` field.
462    },
463  }
464
465  x__xgafv: string, V1 error format.
466    Allowed values
467      1 - v1 error format
468      2 - v2 error format
469
470Returns:
471  An object of the form:
472
473    { # This resource represents a long-running operation that is the result of a
474      # network API call.
475    "error": { # The `Status` type defines a logical error model that is suitable for # The error result of the operation in case of failure or cancellation.
476        # different programming environments, including REST APIs and RPC APIs. It is
477        # used by [gRPC](https://github.com/grpc). Each `Status` message contains
478        # three pieces of data: error code, error message, and error details.
479        #
480        # You can find out more about this error model and how to work with it in the
481        # [API Design Guide](https://cloud.google.com/apis/design/errors).
482      "message": "A String", # A developer-facing error message, which should be in English. Any
483          # user-facing error message should be localized and sent in the
484          # google.rpc.Status.details field, or localized by the client.
485      "code": 42, # The status code, which should be an enum value of google.rpc.Code.
486      "details": [ # A list of messages that carry the error details.  There is a common set of
487          # message types for APIs to use.
488        {
489          "a_key": "", # Properties of the object. Contains field @type with type URL.
490        },
491      ],
492    },
493    "done": True or False, # If the value is `false`, it means the operation is still in progress.
494        # If `true`, the operation is completed, and either `error` or `response` is
495        # available.
496    "response": { # The normal response of the operation in case of success.  If the original
497        # method returns no data on success, such as `Delete`, the response is
498        # `google.protobuf.Empty`.  If the original method is standard
499        # `Get`/`Create`/`Update`, the response should be the resource.  For other
500        # methods, the response should have the type `XxxResponse`, where `Xxx`
501        # is the original method name.  For example, if the original method name
502        # is `TakeSnapshot()`, the inferred response type is
503        # `TakeSnapshotResponse`.
504      "a_key": "", # Properties of the object. Contains field @type with type URL.
505    },
506    "name": "A String", # The server-assigned name, which is only unique within the same service that
507        # originally returns it. If you use the default HTTP mapping, the
508        # `name` should be a resource name ending with `operations/{unique_id}`.
509    "metadata": { # Service-specific metadata associated with the operation.  It typically
510        # contains progress information and common metadata such as create time.
511        # Some services might not provide such metadata.  Any method that returns a
512        # long-running operation should document the metadata type, if any.
513      "a_key": "", # Properties of the object. Contains field @type with type URL.
514    },
515  }</pre>
516</div>
517
518</body></html>