blob: 26c6c3ce9730983f62340c889ee3aa00e595f977 [file] [log] [blame]
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001<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></h1>
76<h2>Instance Methods</h2>
77<p class="toc_element">
78 <code><a href="remotebuildexecution_v1alpha.projects.instances.workerpools.html">workerpools()</a></code>
79</p>
80<p class="firstline">Returns the workerpools Resource.</p>
81
82<p class="toc_element">
Dmitry Frenkel3e17f892020-10-06 16:46:05 -070083 <code><a href="#close">close()</a></code></p>
84<p class="firstline">Close httplib2 connections.</p>
85<p class="toc_element">
Dan O'Mearadd494642020-05-01 07:42:23 -070086 <code><a href="#create">create(parent, body=None, x__xgafv=None)</a></code></p>
Dmitry Frenkel3e17f892020-10-06 16:46:05 -070087<p class="firstline">Creates a new instance in the specified region. Returns a long running operation which contains an instance on completion. While the long running operation is in progress, any call to `GetInstance` returns an instance in state `CREATING`.</p>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -070088<p class="toc_element">
89 <code><a href="#delete">delete(name, x__xgafv=None)</a></code></p>
Dmitry Frenkel3e17f892020-10-06 16:46:05 -070090<p class="firstline">Deletes the specified instance. Returns a long running operation which contains a `google.protobuf.Empty` response on completion. Deleting an instance with worker pools in it will delete these worker pools.</p>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -070091<p class="toc_element">
92 <code><a href="#get">get(name, x__xgafv=None)</a></code></p>
93<p class="firstline">Returns the specified instance.</p>
94<p class="toc_element">
95 <code><a href="#list">list(parent, x__xgafv=None)</a></code></p>
96<p class="firstline">Lists instances in a project.</p>
Dmitry Frenkel3e17f892020-10-06 16:46:05 -070097<p class="toc_element">
Bu Sun Kim673ec5c2020-11-16 11:05:03 -070098 <code><a href="#patch">patch(name, body=None, loggingEnabled=None, updateMask=None, name1=None, x__xgafv=None)</a></code></p>
Dmitry Frenkel3e17f892020-10-06 16:46:05 -070099<p class="firstline">Updates the specified instance. Returns a long running operation which contains the updated instance in the response on completion.</p>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700100<h3>Method Details</h3>
101<div class="method">
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700102 <code class="details" id="close">close()</code>
103 <pre>Close httplib2 connections.</pre>
104</div>
105
106<div class="method">
Dan O'Mearadd494642020-05-01 07:42:23 -0700107 <code class="details" id="create">create(parent, body=None, x__xgafv=None)</code>
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700108 <pre>Creates a new instance in the specified region. Returns a long running operation which contains an instance on completion. While the long running operation is in progress, any call to `GetInstance` returns an instance in state `CREATING`.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700109
110Args:
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700111 parent: string, Resource name of the project containing the instance. Format: `projects/[PROJECT_ID]`. (required)
Dan O'Mearadd494642020-05-01 07:42:23 -0700112 body: object, The request body.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700113 The object takes the form of:
114
115{ # The request used for `CreateInstance`.
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700116 &quot;instanceId&quot;: &quot;A String&quot;, # ID of the created instance. A valid `instance_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.
Yoshi Automation Botc2228be2020-11-24 15:48:03 -0800117 &quot;parent&quot;: &quot;A String&quot;, # Resource name of the project containing the instance. Format: `projects/[PROJECT_ID]`.
118 &quot;instance&quot;: { # Instance conceptually encapsulates all Remote Build Execution resources for remote builds. An instance consists of storage and compute resources (for example, `ContentAddressableStorage`, `ActionCache`, `WorkerPools`) used for running remote builds. All Remote Build Execution API calls are scoped to an instance. # Specifies the instance to create. The name in the instance, if specified in the instance, is ignored.
119 &quot;location&quot;: &quot;A String&quot;, # The location is a GCP region. Currently only `us-central1` is supported.
120 &quot;name&quot;: &quot;A String&quot;, # Output only. Instance resource name formatted as: `projects/[PROJECT_ID]/instances/[INSTANCE_ID]`. Name should not be populated when creating an instance since it is provided in the `instance_id` field.
121 &quot;featurePolicy&quot;: { # FeaturePolicy defines features allowed to be used on RBE instances, as well as instance-wide behavior changes that take effect without opt-in or opt-out at usage time. # The policy to define whether or not RBE features can be used or how they can be used.
122 &quot;dockerPrivileged&quot;: { # Defines whether a feature can be used or what values are accepted. # Whether dockerPrivileged can be used.
123 &quot;policy&quot;: &quot;A String&quot;, # The policy of the feature.
124 &quot;allowedValues&quot;: [ # A list of acceptable values. Only effective when the policy is `RESTRICTED`.
125 &quot;A String&quot;,
126 ],
127 },
128 &quot;containerImageSources&quot;: { # Defines whether a feature can be used or what values are accepted. # Which container image sources are allowed. Currently only RBE-supported registry (gcr.io) is allowed. One can allow all repositories under a project or one specific repository only. E.g. container_image_sources { policy: RESTRICTED allowed_values: [ &quot;gcr.io/project-foo&quot;, &quot;gcr.io/project-bar/repo-baz&quot;, ] } will allow any repositories under &quot;gcr.io/project-foo&quot; plus the repository &quot;gcr.io/project-bar/repo-baz&quot;. Default (UNSPECIFIED) is equivalent to any source is allowed.
129 &quot;policy&quot;: &quot;A String&quot;, # The policy of the feature.
130 &quot;allowedValues&quot;: [ # A list of acceptable values. Only effective when the policy is `RESTRICTED`.
131 &quot;A String&quot;,
132 ],
133 },
134 &quot;dockerAddCapabilities&quot;: { # Defines whether a feature can be used or what values are accepted. # Whether dockerAddCapabilities can be used or what capabilities are allowed.
135 &quot;policy&quot;: &quot;A String&quot;, # The policy of the feature.
136 &quot;allowedValues&quot;: [ # A list of acceptable values. Only effective when the policy is `RESTRICTED`.
137 &quot;A String&quot;,
138 ],
139 },
140 &quot;dockerRuntime&quot;: { # Defines whether a feature can be used or what values are accepted. # Whether dockerRuntime is allowed to be set or what runtimes are allowed. Note linux_isolation takes precedence, and if set, docker_runtime values may be rejected if they are incompatible with the selected isolation.
141 &quot;policy&quot;: &quot;A String&quot;, # The policy of the feature.
142 &quot;allowedValues&quot;: [ # A list of acceptable values. Only effective when the policy is `RESTRICTED`.
143 &quot;A String&quot;,
144 ],
145 },
146 &quot;dockerChrootPath&quot;: { # Defines whether a feature can be used or what values are accepted. # Whether dockerChrootPath can be used.
147 &quot;policy&quot;: &quot;A String&quot;, # The policy of the feature.
148 &quot;allowedValues&quot;: [ # A list of acceptable values. Only effective when the policy is `RESTRICTED`.
149 &quot;A String&quot;,
150 ],
151 },
152 &quot;dockerSiblingContainers&quot;: { # Defines whether a feature can be used or what values are accepted. # Whether dockerSiblingContainers can be used.
153 &quot;policy&quot;: &quot;A String&quot;, # The policy of the feature.
154 &quot;allowedValues&quot;: [ # A list of acceptable values. Only effective when the policy is `RESTRICTED`.
155 &quot;A String&quot;,
156 ],
157 },
158 &quot;dockerRunAsRoot&quot;: { # Defines whether a feature can be used or what values are accepted. # Whether dockerRunAsRoot can be used.
159 &quot;policy&quot;: &quot;A String&quot;, # The policy of the feature.
160 &quot;allowedValues&quot;: [ # A list of acceptable values. Only effective when the policy is `RESTRICTED`.
161 &quot;A String&quot;,
162 ],
163 },
164 &quot;dockerNetwork&quot;: { # Defines whether a feature can be used or what values are accepted. # Whether dockerNetwork can be used or what network modes are allowed. E.g. one may allow `off` value only via `allowed_values`.
165 &quot;policy&quot;: &quot;A String&quot;, # The policy of the feature.
166 &quot;allowedValues&quot;: [ # A list of acceptable values. Only effective when the policy is `RESTRICTED`.
167 &quot;A String&quot;,
168 ],
169 },
170 &quot;linuxIsolation&quot;: &quot;A String&quot;, # linux_isolation allows overriding the docker runtime used for containers started on Linux.
171 },
172 &quot;state&quot;: &quot;A String&quot;, # Output only. State of the instance.
173 &quot;loggingEnabled&quot;: True or False, # Output only. Whether stack driver logging is enabled for the instance.
174 },
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700175 }
176
177 x__xgafv: string, V1 error format.
178 Allowed values
179 1 - v1 error format
180 2 - v2 error format
181
182Returns:
183 An object of the form:
184
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700185 { # This resource represents a long-running operation that is the result of a network API call.
Yoshi Automation Botc2228be2020-11-24 15:48:03 -0800186 &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}`.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700187 &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`.
188 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
189 },
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700190 &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.
Yoshi Automation Botc2228be2020-11-24 15:48:03 -0800191 &quot;code&quot;: 42, # The status code, which should be an enum value of google.rpc.Code.
192 &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.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700193 &quot;details&quot;: [ # A list of messages that carry the error details. There is a common set of message types for APIs to use.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700194 {
195 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
196 },
197 ],
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700198 },
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700199 &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.
Yoshi Automation Botc2228be2020-11-24 15:48:03 -0800200 &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.
201 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
202 },
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700203 }</pre>
204</div>
205
206<div class="method">
207 <code class="details" id="delete">delete(name, x__xgafv=None)</code>
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700208 <pre>Deletes the specified instance. Returns a long running operation which contains a `google.protobuf.Empty` response on completion. Deleting an instance with worker pools in it will delete these worker pools.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700209
210Args:
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700211 name: string, Name of the instance to delete. Format: `projects/[PROJECT_ID]/instances/[INSTANCE_ID]`. (required)
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700212 x__xgafv: string, V1 error format.
213 Allowed values
214 1 - v1 error format
215 2 - v2 error format
216
217Returns:
218 An object of the form:
219
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700220 { # This resource represents a long-running operation that is the result of a network API call.
Yoshi Automation Botc2228be2020-11-24 15:48:03 -0800221 &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}`.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700222 &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`.
223 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
224 },
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700225 &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.
Yoshi Automation Botc2228be2020-11-24 15:48:03 -0800226 &quot;code&quot;: 42, # The status code, which should be an enum value of google.rpc.Code.
227 &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.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700228 &quot;details&quot;: [ # A list of messages that carry the error details. There is a common set of message types for APIs to use.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700229 {
230 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
231 },
232 ],
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700233 },
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700234 &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.
Yoshi Automation Botc2228be2020-11-24 15:48:03 -0800235 &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.
236 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
237 },
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700238 }</pre>
239</div>
240
241<div class="method">
242 <code class="details" id="get">get(name, x__xgafv=None)</code>
243 <pre>Returns the specified instance.
244
245Args:
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700246 name: string, Name of the instance to retrieve. Format: `projects/[PROJECT_ID]/instances/[INSTANCE_ID]`. (required)
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700247 x__xgafv: string, V1 error format.
248 Allowed values
249 1 - v1 error format
250 2 - v2 error format
251
252Returns:
253 An object of the form:
254
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700255 { # Instance conceptually encapsulates all Remote Build Execution resources for remote builds. An instance consists of storage and compute resources (for example, `ContentAddressableStorage`, `ActionCache`, `WorkerPools`) used for running remote builds. All Remote Build Execution API calls are scoped to an instance.
Yoshi Automation Botc2228be2020-11-24 15:48:03 -0800256 &quot;location&quot;: &quot;A String&quot;, # The location is a GCP region. Currently only `us-central1` is supported.
257 &quot;name&quot;: &quot;A String&quot;, # Output only. Instance resource name formatted as: `projects/[PROJECT_ID]/instances/[INSTANCE_ID]`. Name should not be populated when creating an instance since it is provided in the `instance_id` field.
258 &quot;featurePolicy&quot;: { # FeaturePolicy defines features allowed to be used on RBE instances, as well as instance-wide behavior changes that take effect without opt-in or opt-out at usage time. # The policy to define whether or not RBE features can be used or how they can be used.
259 &quot;dockerPrivileged&quot;: { # Defines whether a feature can be used or what values are accepted. # Whether dockerPrivileged can be used.
260 &quot;policy&quot;: &quot;A String&quot;, # The policy of the feature.
261 &quot;allowedValues&quot;: [ # A list of acceptable values. Only effective when the policy is `RESTRICTED`.
262 &quot;A String&quot;,
263 ],
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700264 },
Yoshi Automation Botc2228be2020-11-24 15:48:03 -0800265 &quot;containerImageSources&quot;: { # Defines whether a feature can be used or what values are accepted. # Which container image sources are allowed. Currently only RBE-supported registry (gcr.io) is allowed. One can allow all repositories under a project or one specific repository only. E.g. container_image_sources { policy: RESTRICTED allowed_values: [ &quot;gcr.io/project-foo&quot;, &quot;gcr.io/project-bar/repo-baz&quot;, ] } will allow any repositories under &quot;gcr.io/project-foo&quot; plus the repository &quot;gcr.io/project-bar/repo-baz&quot;. Default (UNSPECIFIED) is equivalent to any source is allowed.
266 &quot;policy&quot;: &quot;A String&quot;, # The policy of the feature.
267 &quot;allowedValues&quot;: [ # A list of acceptable values. Only effective when the policy is `RESTRICTED`.
268 &quot;A String&quot;,
269 ],
270 },
271 &quot;dockerAddCapabilities&quot;: { # Defines whether a feature can be used or what values are accepted. # Whether dockerAddCapabilities can be used or what capabilities are allowed.
272 &quot;policy&quot;: &quot;A String&quot;, # The policy of the feature.
273 &quot;allowedValues&quot;: [ # A list of acceptable values. Only effective when the policy is `RESTRICTED`.
274 &quot;A String&quot;,
275 ],
276 },
277 &quot;dockerRuntime&quot;: { # Defines whether a feature can be used or what values are accepted. # Whether dockerRuntime is allowed to be set or what runtimes are allowed. Note linux_isolation takes precedence, and if set, docker_runtime values may be rejected if they are incompatible with the selected isolation.
278 &quot;policy&quot;: &quot;A String&quot;, # The policy of the feature.
279 &quot;allowedValues&quot;: [ # A list of acceptable values. Only effective when the policy is `RESTRICTED`.
280 &quot;A String&quot;,
281 ],
282 },
283 &quot;dockerChrootPath&quot;: { # Defines whether a feature can be used or what values are accepted. # Whether dockerChrootPath can be used.
284 &quot;policy&quot;: &quot;A String&quot;, # The policy of the feature.
285 &quot;allowedValues&quot;: [ # A list of acceptable values. Only effective when the policy is `RESTRICTED`.
286 &quot;A String&quot;,
287 ],
288 },
289 &quot;dockerSiblingContainers&quot;: { # Defines whether a feature can be used or what values are accepted. # Whether dockerSiblingContainers can be used.
290 &quot;policy&quot;: &quot;A String&quot;, # The policy of the feature.
291 &quot;allowedValues&quot;: [ # A list of acceptable values. Only effective when the policy is `RESTRICTED`.
292 &quot;A String&quot;,
293 ],
294 },
295 &quot;dockerRunAsRoot&quot;: { # Defines whether a feature can be used or what values are accepted. # Whether dockerRunAsRoot can be used.
296 &quot;policy&quot;: &quot;A String&quot;, # The policy of the feature.
297 &quot;allowedValues&quot;: [ # A list of acceptable values. Only effective when the policy is `RESTRICTED`.
298 &quot;A String&quot;,
299 ],
300 },
301 &quot;dockerNetwork&quot;: { # Defines whether a feature can be used or what values are accepted. # Whether dockerNetwork can be used or what network modes are allowed. E.g. one may allow `off` value only via `allowed_values`.
302 &quot;policy&quot;: &quot;A String&quot;, # The policy of the feature.
303 &quot;allowedValues&quot;: [ # A list of acceptable values. Only effective when the policy is `RESTRICTED`.
304 &quot;A String&quot;,
305 ],
306 },
307 &quot;linuxIsolation&quot;: &quot;A String&quot;, # linux_isolation allows overriding the docker runtime used for containers started on Linux.
308 },
309 &quot;state&quot;: &quot;A String&quot;, # Output only. State of the instance.
310 &quot;loggingEnabled&quot;: True or False, # Output only. Whether stack driver logging is enabled for the instance.
311 }</pre>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700312</div>
313
314<div class="method">
315 <code class="details" id="list">list(parent, x__xgafv=None)</code>
316 <pre>Lists instances in a project.
317
318Args:
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700319 parent: string, Resource name of the project. Format: `projects/[PROJECT_ID]`. (required)
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700320 x__xgafv: string, V1 error format.
321 Allowed values
322 1 - v1 error format
323 2 - v2 error format
324
325Returns:
326 An object of the form:
327
328 {
Bu Sun Kim65020912020-05-20 12:08:20 -0700329 &quot;instances&quot;: [ # The list of instances in a given project.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700330 { # Instance conceptually encapsulates all Remote Build Execution resources for remote builds. An instance consists of storage and compute resources (for example, `ContentAddressableStorage`, `ActionCache`, `WorkerPools`) used for running remote builds. All Remote Build Execution API calls are scoped to an instance.
Yoshi Automation Botc2228be2020-11-24 15:48:03 -0800331 &quot;location&quot;: &quot;A String&quot;, # The location is a GCP region. Currently only `us-central1` is supported.
332 &quot;name&quot;: &quot;A String&quot;, # Output only. Instance resource name formatted as: `projects/[PROJECT_ID]/instances/[INSTANCE_ID]`. Name should not be populated when creating an instance since it is provided in the `instance_id` field.
333 &quot;featurePolicy&quot;: { # FeaturePolicy defines features allowed to be used on RBE instances, as well as instance-wide behavior changes that take effect without opt-in or opt-out at usage time. # The policy to define whether or not RBE features can be used or how they can be used.
334 &quot;dockerPrivileged&quot;: { # Defines whether a feature can be used or what values are accepted. # Whether dockerPrivileged can be used.
335 &quot;policy&quot;: &quot;A String&quot;, # The policy of the feature.
336 &quot;allowedValues&quot;: [ # A list of acceptable values. Only effective when the policy is `RESTRICTED`.
337 &quot;A String&quot;,
338 ],
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700339 },
Yoshi Automation Botc2228be2020-11-24 15:48:03 -0800340 &quot;containerImageSources&quot;: { # Defines whether a feature can be used or what values are accepted. # Which container image sources are allowed. Currently only RBE-supported registry (gcr.io) is allowed. One can allow all repositories under a project or one specific repository only. E.g. container_image_sources { policy: RESTRICTED allowed_values: [ &quot;gcr.io/project-foo&quot;, &quot;gcr.io/project-bar/repo-baz&quot;, ] } will allow any repositories under &quot;gcr.io/project-foo&quot; plus the repository &quot;gcr.io/project-bar/repo-baz&quot;. Default (UNSPECIFIED) is equivalent to any source is allowed.
341 &quot;policy&quot;: &quot;A String&quot;, # The policy of the feature.
342 &quot;allowedValues&quot;: [ # A list of acceptable values. Only effective when the policy is `RESTRICTED`.
343 &quot;A String&quot;,
344 ],
345 },
346 &quot;dockerAddCapabilities&quot;: { # Defines whether a feature can be used or what values are accepted. # Whether dockerAddCapabilities can be used or what capabilities are allowed.
347 &quot;policy&quot;: &quot;A String&quot;, # The policy of the feature.
348 &quot;allowedValues&quot;: [ # A list of acceptable values. Only effective when the policy is `RESTRICTED`.
349 &quot;A String&quot;,
350 ],
351 },
352 &quot;dockerRuntime&quot;: { # Defines whether a feature can be used or what values are accepted. # Whether dockerRuntime is allowed to be set or what runtimes are allowed. Note linux_isolation takes precedence, and if set, docker_runtime values may be rejected if they are incompatible with the selected isolation.
353 &quot;policy&quot;: &quot;A String&quot;, # The policy of the feature.
354 &quot;allowedValues&quot;: [ # A list of acceptable values. Only effective when the policy is `RESTRICTED`.
355 &quot;A String&quot;,
356 ],
357 },
358 &quot;dockerChrootPath&quot;: { # Defines whether a feature can be used or what values are accepted. # Whether dockerChrootPath can be used.
359 &quot;policy&quot;: &quot;A String&quot;, # The policy of the feature.
360 &quot;allowedValues&quot;: [ # A list of acceptable values. Only effective when the policy is `RESTRICTED`.
361 &quot;A String&quot;,
362 ],
363 },
364 &quot;dockerSiblingContainers&quot;: { # Defines whether a feature can be used or what values are accepted. # Whether dockerSiblingContainers can be used.
365 &quot;policy&quot;: &quot;A String&quot;, # The policy of the feature.
366 &quot;allowedValues&quot;: [ # A list of acceptable values. Only effective when the policy is `RESTRICTED`.
367 &quot;A String&quot;,
368 ],
369 },
370 &quot;dockerRunAsRoot&quot;: { # Defines whether a feature can be used or what values are accepted. # Whether dockerRunAsRoot can be used.
371 &quot;policy&quot;: &quot;A String&quot;, # The policy of the feature.
372 &quot;allowedValues&quot;: [ # A list of acceptable values. Only effective when the policy is `RESTRICTED`.
373 &quot;A String&quot;,
374 ],
375 },
376 &quot;dockerNetwork&quot;: { # Defines whether a feature can be used or what values are accepted. # Whether dockerNetwork can be used or what network modes are allowed. E.g. one may allow `off` value only via `allowed_values`.
377 &quot;policy&quot;: &quot;A String&quot;, # The policy of the feature.
378 &quot;allowedValues&quot;: [ # A list of acceptable values. Only effective when the policy is `RESTRICTED`.
379 &quot;A String&quot;,
380 ],
381 },
382 &quot;linuxIsolation&quot;: &quot;A String&quot;, # linux_isolation allows overriding the docker runtime used for containers started on Linux.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700383 },
Yoshi Automation Botc2228be2020-11-24 15:48:03 -0800384 &quot;state&quot;: &quot;A String&quot;, # Output only. State of the instance.
385 &quot;loggingEnabled&quot;: True or False, # Output only. Whether stack driver logging is enabled for the instance.
386 },
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700387 ],
388 }</pre>
389</div>
390
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700391<div class="method">
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700392 <code class="details" id="patch">patch(name, body=None, loggingEnabled=None, updateMask=None, name1=None, x__xgafv=None)</code>
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700393 <pre>Updates the specified instance. Returns a long running operation which contains the updated instance in the response on completion.
394
395Args:
396 name: string, Output only. Instance resource name formatted as: `projects/[PROJECT_ID]/instances/[INSTANCE_ID]`. Name should not be populated when creating an instance since it is provided in the `instance_id` field. (required)
397 body: object, The request body.
398 The object takes the form of:
399
400{ # Instance conceptually encapsulates all Remote Build Execution resources for remote builds. An instance consists of storage and compute resources (for example, `ContentAddressableStorage`, `ActionCache`, `WorkerPools`) used for running remote builds. All Remote Build Execution API calls are scoped to an instance.
Yoshi Automation Botc2228be2020-11-24 15:48:03 -0800401 &quot;location&quot;: &quot;A String&quot;, # The location is a GCP region. Currently only `us-central1` is supported.
402 &quot;name&quot;: &quot;A String&quot;, # Output only. Instance resource name formatted as: `projects/[PROJECT_ID]/instances/[INSTANCE_ID]`. Name should not be populated when creating an instance since it is provided in the `instance_id` field.
403 &quot;featurePolicy&quot;: { # FeaturePolicy defines features allowed to be used on RBE instances, as well as instance-wide behavior changes that take effect without opt-in or opt-out at usage time. # The policy to define whether or not RBE features can be used or how they can be used.
404 &quot;dockerPrivileged&quot;: { # Defines whether a feature can be used or what values are accepted. # Whether dockerPrivileged can be used.
405 &quot;policy&quot;: &quot;A String&quot;, # The policy of the feature.
406 &quot;allowedValues&quot;: [ # A list of acceptable values. Only effective when the policy is `RESTRICTED`.
407 &quot;A String&quot;,
408 ],
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700409 },
Yoshi Automation Botc2228be2020-11-24 15:48:03 -0800410 &quot;containerImageSources&quot;: { # Defines whether a feature can be used or what values are accepted. # Which container image sources are allowed. Currently only RBE-supported registry (gcr.io) is allowed. One can allow all repositories under a project or one specific repository only. E.g. container_image_sources { policy: RESTRICTED allowed_values: [ &quot;gcr.io/project-foo&quot;, &quot;gcr.io/project-bar/repo-baz&quot;, ] } will allow any repositories under &quot;gcr.io/project-foo&quot; plus the repository &quot;gcr.io/project-bar/repo-baz&quot;. Default (UNSPECIFIED) is equivalent to any source is allowed.
411 &quot;policy&quot;: &quot;A String&quot;, # The policy of the feature.
412 &quot;allowedValues&quot;: [ # A list of acceptable values. Only effective when the policy is `RESTRICTED`.
413 &quot;A String&quot;,
414 ],
415 },
416 &quot;dockerAddCapabilities&quot;: { # Defines whether a feature can be used or what values are accepted. # Whether dockerAddCapabilities can be used or what capabilities are allowed.
417 &quot;policy&quot;: &quot;A String&quot;, # The policy of the feature.
418 &quot;allowedValues&quot;: [ # A list of acceptable values. Only effective when the policy is `RESTRICTED`.
419 &quot;A String&quot;,
420 ],
421 },
422 &quot;dockerRuntime&quot;: { # Defines whether a feature can be used or what values are accepted. # Whether dockerRuntime is allowed to be set or what runtimes are allowed. Note linux_isolation takes precedence, and if set, docker_runtime values may be rejected if they are incompatible with the selected isolation.
423 &quot;policy&quot;: &quot;A String&quot;, # The policy of the feature.
424 &quot;allowedValues&quot;: [ # A list of acceptable values. Only effective when the policy is `RESTRICTED`.
425 &quot;A String&quot;,
426 ],
427 },
428 &quot;dockerChrootPath&quot;: { # Defines whether a feature can be used or what values are accepted. # Whether dockerChrootPath can be used.
429 &quot;policy&quot;: &quot;A String&quot;, # The policy of the feature.
430 &quot;allowedValues&quot;: [ # A list of acceptable values. Only effective when the policy is `RESTRICTED`.
431 &quot;A String&quot;,
432 ],
433 },
434 &quot;dockerSiblingContainers&quot;: { # Defines whether a feature can be used or what values are accepted. # Whether dockerSiblingContainers can be used.
435 &quot;policy&quot;: &quot;A String&quot;, # The policy of the feature.
436 &quot;allowedValues&quot;: [ # A list of acceptable values. Only effective when the policy is `RESTRICTED`.
437 &quot;A String&quot;,
438 ],
439 },
440 &quot;dockerRunAsRoot&quot;: { # Defines whether a feature can be used or what values are accepted. # Whether dockerRunAsRoot can be used.
441 &quot;policy&quot;: &quot;A String&quot;, # The policy of the feature.
442 &quot;allowedValues&quot;: [ # A list of acceptable values. Only effective when the policy is `RESTRICTED`.
443 &quot;A String&quot;,
444 ],
445 },
446 &quot;dockerNetwork&quot;: { # Defines whether a feature can be used or what values are accepted. # Whether dockerNetwork can be used or what network modes are allowed. E.g. one may allow `off` value only via `allowed_values`.
447 &quot;policy&quot;: &quot;A String&quot;, # The policy of the feature.
448 &quot;allowedValues&quot;: [ # A list of acceptable values. Only effective when the policy is `RESTRICTED`.
449 &quot;A String&quot;,
450 ],
451 },
452 &quot;linuxIsolation&quot;: &quot;A String&quot;, # linux_isolation allows overriding the docker runtime used for containers started on Linux.
453 },
454 &quot;state&quot;: &quot;A String&quot;, # Output only. State of the instance.
455 &quot;loggingEnabled&quot;: True or False, # Output only. Whether stack driver logging is enabled for the instance.
456}
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700457
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700458 loggingEnabled: boolean, Deprecated, use instance.logging_enabled instead. Whether to enable Stackdriver logging for this instance.
459 updateMask: string, The update mask applies to instance. 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.
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700460 name1: string, Deprecated, use instance.Name instead. Name of the instance to update. Format: `projects/[PROJECT_ID]/instances/[INSTANCE_ID]`.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700461 x__xgafv: string, V1 error format.
462 Allowed values
463 1 - v1 error format
464 2 - v2 error format
465
466Returns:
467 An object of the form:
468
469 { # This resource represents a long-running operation that is the result of a network API call.
Yoshi Automation Botc2228be2020-11-24 15:48:03 -0800470 &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}`.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700471 &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`.
472 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
473 },
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700474 &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.
Yoshi Automation Botc2228be2020-11-24 15:48:03 -0800475 &quot;code&quot;: 42, # The status code, which should be an enum value of google.rpc.Code.
476 &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.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700477 &quot;details&quot;: [ # A list of messages that carry the error details. There is a common set of message types for APIs to use.
478 {
479 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
480 },
481 ],
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700482 },
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700483 &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.
Yoshi Automation Botc2228be2020-11-24 15:48:03 -0800484 &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.
485 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
486 },
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700487 }</pre>
488</div>
489
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700490</body></html>