Bu Sun Kim | 715bd7f | 2019-06-14 16:50:42 -0700 | [diff] [blame] | 1 | <html><body> |
| 2 | <style> |
| 3 | |
| 4 | body, 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 | |
| 15 | body { |
| 16 | font-size: 13px; |
| 17 | padding: 1em; |
| 18 | } |
| 19 | |
| 20 | h1 { |
| 21 | font-size: 26px; |
| 22 | margin-bottom: 1em; |
| 23 | } |
| 24 | |
| 25 | h2 { |
| 26 | font-size: 24px; |
| 27 | margin-bottom: 1em; |
| 28 | } |
| 29 | |
| 30 | h3 { |
| 31 | font-size: 20px; |
| 32 | margin-bottom: 1em; |
| 33 | margin-top: 1em; |
| 34 | } |
| 35 | |
| 36 | pre, code { |
| 37 | line-height: 1.5; |
| 38 | font-family: Monaco, 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', 'Lucida Console', monospace; |
| 39 | } |
| 40 | |
| 41 | pre { |
| 42 | margin-top: 0.5em; |
| 43 | } |
| 44 | |
| 45 | h1, h2, h3, p { |
| 46 | font-family: Arial, sans serif; |
| 47 | } |
| 48 | |
| 49 | h1, 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 Frenkel | 3e17f89 | 2020-10-06 16:46:05 -0700 | [diff] [blame] | 83 | <code><a href="#close">close()</a></code></p> |
| 84 | <p class="firstline">Close httplib2 connections.</p> |
| 85 | <p class="toc_element"> |
Dan O'Meara | dd49464 | 2020-05-01 07:42:23 -0700 | [diff] [blame] | 86 | <code><a href="#create">create(parent, body=None, x__xgafv=None)</a></code></p> |
Dmitry Frenkel | 3e17f89 | 2020-10-06 16:46:05 -0700 | [diff] [blame] | 87 | <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 Kim | 715bd7f | 2019-06-14 16:50:42 -0700 | [diff] [blame] | 88 | <p class="toc_element"> |
| 89 | <code><a href="#delete">delete(name, x__xgafv=None)</a></code></p> |
Dmitry Frenkel | 3e17f89 | 2020-10-06 16:46:05 -0700 | [diff] [blame] | 90 | <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 Kim | 715bd7f | 2019-06-14 16:50:42 -0700 | [diff] [blame] | 91 | <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 Frenkel | 3e17f89 | 2020-10-06 16:46:05 -0700 | [diff] [blame] | 97 | <p class="toc_element"> |
Yoshi Automation Bot | b6971b0 | 2020-11-26 17:16:03 -0800 | [diff] [blame^] | 98 | <code><a href="#patch">patch(name, body=None, loggingEnabled=None, name1=None, updateMask=None, x__xgafv=None)</a></code></p> |
Dmitry Frenkel | 3e17f89 | 2020-10-06 16:46:05 -0700 | [diff] [blame] | 99 | <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 Kim | 715bd7f | 2019-06-14 16:50:42 -0700 | [diff] [blame] | 100 | <h3>Method Details</h3> |
| 101 | <div class="method"> |
Dmitry Frenkel | 3e17f89 | 2020-10-06 16:46:05 -0700 | [diff] [blame] | 102 | <code class="details" id="close">close()</code> |
| 103 | <pre>Close httplib2 connections.</pre> |
| 104 | </div> |
| 105 | |
| 106 | <div class="method"> |
Dan O'Meara | dd49464 | 2020-05-01 07:42:23 -0700 | [diff] [blame] | 107 | <code class="details" id="create">create(parent, body=None, x__xgafv=None)</code> |
Dmitry Frenkel | 3e17f89 | 2020-10-06 16:46:05 -0700 | [diff] [blame] | 108 | <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 Kim | 715bd7f | 2019-06-14 16:50:42 -0700 | [diff] [blame] | 109 | |
| 110 | Args: |
Dmitry Frenkel | 3e17f89 | 2020-10-06 16:46:05 -0700 | [diff] [blame] | 111 | parent: string, Resource name of the project containing the instance. Format: `projects/[PROJECT_ID]`. (required) |
Dan O'Meara | dd49464 | 2020-05-01 07:42:23 -0700 | [diff] [blame] | 112 | body: object, The request body. |
Bu Sun Kim | 715bd7f | 2019-06-14 16:50:42 -0700 | [diff] [blame] | 113 | The object takes the form of: |
| 114 | |
| 115 | { # The request used for `CreateInstance`. |
Yoshi Automation Bot | c2228be | 2020-11-24 15:48:03 -0800 | [diff] [blame] | 116 | "instance": { # 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. |
Yoshi Automation Bot | b6971b0 | 2020-11-26 17:16:03 -0800 | [diff] [blame^] | 117 | "state": "A String", # Output only. State of the instance. |
| 118 | "loggingEnabled": True or False, # Output only. Whether stack driver logging is enabled for the instance. |
| 119 | "location": "A String", # The location is a GCP region. Currently only `us-central1` is supported. |
| 120 | "featurePolicy": { # 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. |
| 121 | "dockerSiblingContainers": { # Defines whether a feature can be used or what values are accepted. # Whether dockerSiblingContainers can be used. |
| 122 | "policy": "A String", # The policy of the feature. |
| 123 | "allowedValues": [ # A list of acceptable values. Only effective when the policy is `RESTRICTED`. |
| 124 | "A String", |
| 125 | ], |
| 126 | }, |
| 127 | "linuxIsolation": "A String", # linux_isolation allows overriding the docker runtime used for containers started on Linux. |
| 128 | "dockerPrivileged": { # Defines whether a feature can be used or what values are accepted. # Whether dockerPrivileged can be used. |
| 129 | "policy": "A String", # The policy of the feature. |
| 130 | "allowedValues": [ # A list of acceptable values. Only effective when the policy is `RESTRICTED`. |
| 131 | "A String", |
| 132 | ], |
| 133 | }, |
| 134 | "dockerAddCapabilities": { # Defines whether a feature can be used or what values are accepted. # Whether dockerAddCapabilities can be used or what capabilities are allowed. |
| 135 | "policy": "A String", # The policy of the feature. |
| 136 | "allowedValues": [ # A list of acceptable values. Only effective when the policy is `RESTRICTED`. |
| 137 | "A String", |
| 138 | ], |
| 139 | }, |
| 140 | "dockerRuntime": { # 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 | "policy": "A String", # The policy of the feature. |
| 142 | "allowedValues": [ # A list of acceptable values. Only effective when the policy is `RESTRICTED`. |
| 143 | "A String", |
| 144 | ], |
| 145 | }, |
| 146 | "dockerChrootPath": { # Defines whether a feature can be used or what values are accepted. # Whether dockerChrootPath can be used. |
| 147 | "policy": "A String", # The policy of the feature. |
| 148 | "allowedValues": [ # A list of acceptable values. Only effective when the policy is `RESTRICTED`. |
| 149 | "A String", |
| 150 | ], |
| 151 | }, |
| 152 | "containerImageSources": { # 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: [ "gcr.io/project-foo", "gcr.io/project-bar/repo-baz", ] } will allow any repositories under "gcr.io/project-foo" plus the repository "gcr.io/project-bar/repo-baz". Default (UNSPECIFIED) is equivalent to any source is allowed. |
| 153 | "policy": "A String", # The policy of the feature. |
| 154 | "allowedValues": [ # A list of acceptable values. Only effective when the policy is `RESTRICTED`. |
| 155 | "A String", |
| 156 | ], |
| 157 | }, |
| 158 | "dockerRunAsRoot": { # Defines whether a feature can be used or what values are accepted. # Whether dockerRunAsRoot can be used. |
| 159 | "policy": "A String", # The policy of the feature. |
| 160 | "allowedValues": [ # A list of acceptable values. Only effective when the policy is `RESTRICTED`. |
| 161 | "A String", |
| 162 | ], |
| 163 | }, |
| 164 | "dockerNetwork": { # 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 | "policy": "A String", # The policy of the feature. |
| 166 | "allowedValues": [ # A list of acceptable values. Only effective when the policy is `RESTRICTED`. |
| 167 | "A String", |
| 168 | ], |
| 169 | }, |
Yoshi Automation Bot | c2228be | 2020-11-24 15:48:03 -0800 | [diff] [blame] | 170 | }, |
Yoshi Automation Bot | b6971b0 | 2020-11-26 17:16:03 -0800 | [diff] [blame^] | 171 | "name": "A 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. |
Yoshi Automation Bot | c2228be | 2020-11-24 15:48:03 -0800 | [diff] [blame] | 172 | }, |
Yoshi Automation Bot | 0d561ef | 2020-11-25 07:50:41 -0800 | [diff] [blame] | 173 | "instanceId": "A String", # 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 Bot | b6971b0 | 2020-11-26 17:16:03 -0800 | [diff] [blame^] | 174 | "parent": "A String", # Resource name of the project containing the instance. Format: `projects/[PROJECT_ID]`. |
Bu Sun Kim | 715bd7f | 2019-06-14 16:50:42 -0700 | [diff] [blame] | 175 | } |
| 176 | |
| 177 | x__xgafv: string, V1 error format. |
| 178 | Allowed values |
| 179 | 1 - v1 error format |
| 180 | 2 - v2 error format |
| 181 | |
| 182 | Returns: |
| 183 | An object of the form: |
| 184 | |
Dmitry Frenkel | 3e17f89 | 2020-10-06 16:46:05 -0700 | [diff] [blame] | 185 | { # This resource represents a long-running operation that is the result of a network API call. |
Yoshi Automation Bot | 0d561ef | 2020-11-25 07:50:41 -0800 | [diff] [blame] | 186 | "done": 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. |
Dmitry Frenkel | 3e17f89 | 2020-10-06 16:46:05 -0700 | [diff] [blame] | 187 | "error": { # 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 Bot | b6971b0 | 2020-11-26 17:16:03 -0800 | [diff] [blame^] | 188 | "code": 42, # The status code, which should be an enum value of google.rpc.Code. |
| 189 | "message": "A String", # 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 Frenkel | 3e17f89 | 2020-10-06 16:46:05 -0700 | [diff] [blame] | 190 | "details": [ # A list of messages that carry the error details. There is a common set of message types for APIs to use. |
Bu Sun Kim | 4ed7d3f | 2020-05-27 12:20:54 -0700 | [diff] [blame] | 191 | { |
| 192 | "a_key": "", # Properties of the object. Contains field @type with type URL. |
| 193 | }, |
| 194 | ], |
Yoshi Automation Bot | b6971b0 | 2020-11-26 17:16:03 -0800 | [diff] [blame^] | 195 | }, |
| 196 | "metadata": { # 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. |
| 197 | "a_key": "", # Properties of the object. Contains field @type with type URL. |
| 198 | }, |
| 199 | "name": "A String", # 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}`. |
| 200 | "response": { # 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`. |
| 201 | "a_key": "", # Properties of the object. Contains field @type with type URL. |
Yoshi Automation Bot | c2228be | 2020-11-24 15:48:03 -0800 | [diff] [blame] | 202 | }, |
Bu Sun Kim | 715bd7f | 2019-06-14 16:50:42 -0700 | [diff] [blame] | 203 | }</pre> |
| 204 | </div> |
| 205 | |
| 206 | <div class="method"> |
| 207 | <code class="details" id="delete">delete(name, x__xgafv=None)</code> |
Dmitry Frenkel | 3e17f89 | 2020-10-06 16:46:05 -0700 | [diff] [blame] | 208 | <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 Kim | 715bd7f | 2019-06-14 16:50:42 -0700 | [diff] [blame] | 209 | |
| 210 | Args: |
Dmitry Frenkel | 3e17f89 | 2020-10-06 16:46:05 -0700 | [diff] [blame] | 211 | name: string, Name of the instance to delete. Format: `projects/[PROJECT_ID]/instances/[INSTANCE_ID]`. (required) |
Bu Sun Kim | 715bd7f | 2019-06-14 16:50:42 -0700 | [diff] [blame] | 212 | x__xgafv: string, V1 error format. |
| 213 | Allowed values |
| 214 | 1 - v1 error format |
| 215 | 2 - v2 error format |
| 216 | |
| 217 | Returns: |
| 218 | An object of the form: |
| 219 | |
Dmitry Frenkel | 3e17f89 | 2020-10-06 16:46:05 -0700 | [diff] [blame] | 220 | { # This resource represents a long-running operation that is the result of a network API call. |
Yoshi Automation Bot | 0d561ef | 2020-11-25 07:50:41 -0800 | [diff] [blame] | 221 | "done": 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. |
Dmitry Frenkel | 3e17f89 | 2020-10-06 16:46:05 -0700 | [diff] [blame] | 222 | "error": { # 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 Bot | b6971b0 | 2020-11-26 17:16:03 -0800 | [diff] [blame^] | 223 | "code": 42, # The status code, which should be an enum value of google.rpc.Code. |
| 224 | "message": "A String", # 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 Frenkel | 3e17f89 | 2020-10-06 16:46:05 -0700 | [diff] [blame] | 225 | "details": [ # A list of messages that carry the error details. There is a common set of message types for APIs to use. |
Bu Sun Kim | 4ed7d3f | 2020-05-27 12:20:54 -0700 | [diff] [blame] | 226 | { |
| 227 | "a_key": "", # Properties of the object. Contains field @type with type URL. |
| 228 | }, |
| 229 | ], |
Yoshi Automation Bot | b6971b0 | 2020-11-26 17:16:03 -0800 | [diff] [blame^] | 230 | }, |
| 231 | "metadata": { # 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. |
| 232 | "a_key": "", # Properties of the object. Contains field @type with type URL. |
| 233 | }, |
| 234 | "name": "A String", # 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}`. |
| 235 | "response": { # 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`. |
| 236 | "a_key": "", # Properties of the object. Contains field @type with type URL. |
Yoshi Automation Bot | c2228be | 2020-11-24 15:48:03 -0800 | [diff] [blame] | 237 | }, |
Bu Sun Kim | 715bd7f | 2019-06-14 16:50:42 -0700 | [diff] [blame] | 238 | }</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 | |
| 245 | Args: |
Dmitry Frenkel | 3e17f89 | 2020-10-06 16:46:05 -0700 | [diff] [blame] | 246 | name: string, Name of the instance to retrieve. Format: `projects/[PROJECT_ID]/instances/[INSTANCE_ID]`. (required) |
Bu Sun Kim | 715bd7f | 2019-06-14 16:50:42 -0700 | [diff] [blame] | 247 | x__xgafv: string, V1 error format. |
| 248 | Allowed values |
| 249 | 1 - v1 error format |
| 250 | 2 - v2 error format |
| 251 | |
| 252 | Returns: |
| 253 | An object of the form: |
| 254 | |
Dmitry Frenkel | 3e17f89 | 2020-10-06 16:46:05 -0700 | [diff] [blame] | 255 | { # 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 Bot | b6971b0 | 2020-11-26 17:16:03 -0800 | [diff] [blame^] | 256 | "state": "A String", # Output only. State of the instance. |
| 257 | "loggingEnabled": True or False, # Output only. Whether stack driver logging is enabled for the instance. |
| 258 | "location": "A String", # The location is a GCP region. Currently only `us-central1` is supported. |
| 259 | "featurePolicy": { # 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. |
| 260 | "dockerSiblingContainers": { # Defines whether a feature can be used or what values are accepted. # Whether dockerSiblingContainers can be used. |
| 261 | "policy": "A String", # The policy of the feature. |
| 262 | "allowedValues": [ # A list of acceptable values. Only effective when the policy is `RESTRICTED`. |
| 263 | "A String", |
| 264 | ], |
| 265 | }, |
| 266 | "linuxIsolation": "A String", # linux_isolation allows overriding the docker runtime used for containers started on Linux. |
| 267 | "dockerPrivileged": { # Defines whether a feature can be used or what values are accepted. # Whether dockerPrivileged can be used. |
| 268 | "policy": "A String", # The policy of the feature. |
| 269 | "allowedValues": [ # A list of acceptable values. Only effective when the policy is `RESTRICTED`. |
| 270 | "A String", |
| 271 | ], |
| 272 | }, |
| 273 | "dockerAddCapabilities": { # Defines whether a feature can be used or what values are accepted. # Whether dockerAddCapabilities can be used or what capabilities are allowed. |
| 274 | "policy": "A String", # The policy of the feature. |
| 275 | "allowedValues": [ # A list of acceptable values. Only effective when the policy is `RESTRICTED`. |
| 276 | "A String", |
| 277 | ], |
| 278 | }, |
| 279 | "dockerRuntime": { # 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. |
| 280 | "policy": "A String", # The policy of the feature. |
| 281 | "allowedValues": [ # A list of acceptable values. Only effective when the policy is `RESTRICTED`. |
| 282 | "A String", |
| 283 | ], |
| 284 | }, |
| 285 | "dockerChrootPath": { # Defines whether a feature can be used or what values are accepted. # Whether dockerChrootPath can be used. |
| 286 | "policy": "A String", # The policy of the feature. |
| 287 | "allowedValues": [ # A list of acceptable values. Only effective when the policy is `RESTRICTED`. |
| 288 | "A String", |
| 289 | ], |
| 290 | }, |
| 291 | "containerImageSources": { # 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: [ "gcr.io/project-foo", "gcr.io/project-bar/repo-baz", ] } will allow any repositories under "gcr.io/project-foo" plus the repository "gcr.io/project-bar/repo-baz". Default (UNSPECIFIED) is equivalent to any source is allowed. |
| 292 | "policy": "A String", # The policy of the feature. |
| 293 | "allowedValues": [ # A list of acceptable values. Only effective when the policy is `RESTRICTED`. |
| 294 | "A String", |
| 295 | ], |
| 296 | }, |
| 297 | "dockerRunAsRoot": { # Defines whether a feature can be used or what values are accepted. # Whether dockerRunAsRoot can be used. |
| 298 | "policy": "A String", # The policy of the feature. |
| 299 | "allowedValues": [ # A list of acceptable values. Only effective when the policy is `RESTRICTED`. |
| 300 | "A String", |
| 301 | ], |
| 302 | }, |
| 303 | "dockerNetwork": { # 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`. |
| 304 | "policy": "A String", # The policy of the feature. |
| 305 | "allowedValues": [ # A list of acceptable values. Only effective when the policy is `RESTRICTED`. |
| 306 | "A String", |
| 307 | ], |
| 308 | }, |
Yoshi Automation Bot | c2228be | 2020-11-24 15:48:03 -0800 | [diff] [blame] | 309 | }, |
Yoshi Automation Bot | b6971b0 | 2020-11-26 17:16:03 -0800 | [diff] [blame^] | 310 | "name": "A 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. |
| 311 | }</pre> |
Bu Sun Kim | 715bd7f | 2019-06-14 16:50:42 -0700 | [diff] [blame] | 312 | </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 | |
| 318 | Args: |
Dmitry Frenkel | 3e17f89 | 2020-10-06 16:46:05 -0700 | [diff] [blame] | 319 | parent: string, Resource name of the project. Format: `projects/[PROJECT_ID]`. (required) |
Bu Sun Kim | 715bd7f | 2019-06-14 16:50:42 -0700 | [diff] [blame] | 320 | x__xgafv: string, V1 error format. |
| 321 | Allowed values |
| 322 | 1 - v1 error format |
| 323 | 2 - v2 error format |
| 324 | |
| 325 | Returns: |
| 326 | An object of the form: |
| 327 | |
| 328 | { |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 329 | "instances": [ # The list of instances in a given project. |
Dmitry Frenkel | 3e17f89 | 2020-10-06 16:46:05 -0700 | [diff] [blame] | 330 | { # 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 Bot | b6971b0 | 2020-11-26 17:16:03 -0800 | [diff] [blame^] | 331 | "state": "A String", # Output only. State of the instance. |
| 332 | "loggingEnabled": True or False, # Output only. Whether stack driver logging is enabled for the instance. |
| 333 | "location": "A String", # The location is a GCP region. Currently only `us-central1` is supported. |
| 334 | "featurePolicy": { # 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. |
| 335 | "dockerSiblingContainers": { # Defines whether a feature can be used or what values are accepted. # Whether dockerSiblingContainers can be used. |
| 336 | "policy": "A String", # The policy of the feature. |
| 337 | "allowedValues": [ # A list of acceptable values. Only effective when the policy is `RESTRICTED`. |
| 338 | "A String", |
| 339 | ], |
| 340 | }, |
| 341 | "linuxIsolation": "A String", # linux_isolation allows overriding the docker runtime used for containers started on Linux. |
| 342 | "dockerPrivileged": { # Defines whether a feature can be used or what values are accepted. # Whether dockerPrivileged can be used. |
| 343 | "policy": "A String", # The policy of the feature. |
| 344 | "allowedValues": [ # A list of acceptable values. Only effective when the policy is `RESTRICTED`. |
| 345 | "A String", |
| 346 | ], |
| 347 | }, |
| 348 | "dockerAddCapabilities": { # Defines whether a feature can be used or what values are accepted. # Whether dockerAddCapabilities can be used or what capabilities are allowed. |
| 349 | "policy": "A String", # The policy of the feature. |
| 350 | "allowedValues": [ # A list of acceptable values. Only effective when the policy is `RESTRICTED`. |
| 351 | "A String", |
| 352 | ], |
| 353 | }, |
| 354 | "dockerRuntime": { # 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. |
| 355 | "policy": "A String", # The policy of the feature. |
| 356 | "allowedValues": [ # A list of acceptable values. Only effective when the policy is `RESTRICTED`. |
| 357 | "A String", |
| 358 | ], |
| 359 | }, |
| 360 | "dockerChrootPath": { # Defines whether a feature can be used or what values are accepted. # Whether dockerChrootPath can be used. |
| 361 | "policy": "A String", # The policy of the feature. |
| 362 | "allowedValues": [ # A list of acceptable values. Only effective when the policy is `RESTRICTED`. |
| 363 | "A String", |
| 364 | ], |
| 365 | }, |
| 366 | "containerImageSources": { # 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: [ "gcr.io/project-foo", "gcr.io/project-bar/repo-baz", ] } will allow any repositories under "gcr.io/project-foo" plus the repository "gcr.io/project-bar/repo-baz". Default (UNSPECIFIED) is equivalent to any source is allowed. |
| 367 | "policy": "A String", # The policy of the feature. |
| 368 | "allowedValues": [ # A list of acceptable values. Only effective when the policy is `RESTRICTED`. |
| 369 | "A String", |
| 370 | ], |
| 371 | }, |
| 372 | "dockerRunAsRoot": { # Defines whether a feature can be used or what values are accepted. # Whether dockerRunAsRoot can be used. |
| 373 | "policy": "A String", # The policy of the feature. |
| 374 | "allowedValues": [ # A list of acceptable values. Only effective when the policy is `RESTRICTED`. |
| 375 | "A String", |
| 376 | ], |
| 377 | }, |
| 378 | "dockerNetwork": { # 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`. |
| 379 | "policy": "A String", # The policy of the feature. |
| 380 | "allowedValues": [ # A list of acceptable values. Only effective when the policy is `RESTRICTED`. |
| 381 | "A String", |
| 382 | ], |
| 383 | }, |
Yoshi Automation Bot | c2228be | 2020-11-24 15:48:03 -0800 | [diff] [blame] | 384 | }, |
Yoshi Automation Bot | b6971b0 | 2020-11-26 17:16:03 -0800 | [diff] [blame^] | 385 | "name": "A 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. |
Dmitry Frenkel | 3e17f89 | 2020-10-06 16:46:05 -0700 | [diff] [blame] | 386 | }, |
Bu Sun Kim | 715bd7f | 2019-06-14 16:50:42 -0700 | [diff] [blame] | 387 | ], |
| 388 | }</pre> |
| 389 | </div> |
| 390 | |
Dmitry Frenkel | 3e17f89 | 2020-10-06 16:46:05 -0700 | [diff] [blame] | 391 | <div class="method"> |
Yoshi Automation Bot | b6971b0 | 2020-11-26 17:16:03 -0800 | [diff] [blame^] | 392 | <code class="details" id="patch">patch(name, body=None, loggingEnabled=None, name1=None, updateMask=None, x__xgafv=None)</code> |
Dmitry Frenkel | 3e17f89 | 2020-10-06 16:46:05 -0700 | [diff] [blame] | 393 | <pre>Updates the specified instance. Returns a long running operation which contains the updated instance in the response on completion. |
| 394 | |
| 395 | Args: |
| 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 Bot | b6971b0 | 2020-11-26 17:16:03 -0800 | [diff] [blame^] | 401 | "state": "A String", # Output only. State of the instance. |
| 402 | "loggingEnabled": True or False, # Output only. Whether stack driver logging is enabled for the instance. |
| 403 | "location": "A String", # The location is a GCP region. Currently only `us-central1` is supported. |
| 404 | "featurePolicy": { # 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. |
| 405 | "dockerSiblingContainers": { # Defines whether a feature can be used or what values are accepted. # Whether dockerSiblingContainers can be used. |
| 406 | "policy": "A String", # The policy of the feature. |
| 407 | "allowedValues": [ # A list of acceptable values. Only effective when the policy is `RESTRICTED`. |
| 408 | "A String", |
| 409 | ], |
| 410 | }, |
| 411 | "linuxIsolation": "A String", # linux_isolation allows overriding the docker runtime used for containers started on Linux. |
| 412 | "dockerPrivileged": { # Defines whether a feature can be used or what values are accepted. # Whether dockerPrivileged can be used. |
| 413 | "policy": "A String", # The policy of the feature. |
| 414 | "allowedValues": [ # A list of acceptable values. Only effective when the policy is `RESTRICTED`. |
| 415 | "A String", |
| 416 | ], |
| 417 | }, |
| 418 | "dockerAddCapabilities": { # Defines whether a feature can be used or what values are accepted. # Whether dockerAddCapabilities can be used or what capabilities are allowed. |
| 419 | "policy": "A String", # The policy of the feature. |
| 420 | "allowedValues": [ # A list of acceptable values. Only effective when the policy is `RESTRICTED`. |
| 421 | "A String", |
| 422 | ], |
| 423 | }, |
| 424 | "dockerRuntime": { # 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. |
| 425 | "policy": "A String", # The policy of the feature. |
| 426 | "allowedValues": [ # A list of acceptable values. Only effective when the policy is `RESTRICTED`. |
| 427 | "A String", |
| 428 | ], |
| 429 | }, |
| 430 | "dockerChrootPath": { # Defines whether a feature can be used or what values are accepted. # Whether dockerChrootPath can be used. |
| 431 | "policy": "A String", # The policy of the feature. |
| 432 | "allowedValues": [ # A list of acceptable values. Only effective when the policy is `RESTRICTED`. |
| 433 | "A String", |
| 434 | ], |
| 435 | }, |
| 436 | "containerImageSources": { # 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: [ "gcr.io/project-foo", "gcr.io/project-bar/repo-baz", ] } will allow any repositories under "gcr.io/project-foo" plus the repository "gcr.io/project-bar/repo-baz". Default (UNSPECIFIED) is equivalent to any source is allowed. |
| 437 | "policy": "A String", # The policy of the feature. |
| 438 | "allowedValues": [ # A list of acceptable values. Only effective when the policy is `RESTRICTED`. |
| 439 | "A String", |
| 440 | ], |
| 441 | }, |
| 442 | "dockerRunAsRoot": { # Defines whether a feature can be used or what values are accepted. # Whether dockerRunAsRoot can be used. |
| 443 | "policy": "A String", # The policy of the feature. |
| 444 | "allowedValues": [ # A list of acceptable values. Only effective when the policy is `RESTRICTED`. |
| 445 | "A String", |
| 446 | ], |
| 447 | }, |
| 448 | "dockerNetwork": { # 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`. |
| 449 | "policy": "A String", # The policy of the feature. |
| 450 | "allowedValues": [ # A list of acceptable values. Only effective when the policy is `RESTRICTED`. |
| 451 | "A String", |
| 452 | ], |
| 453 | }, |
Yoshi Automation Bot | c2228be | 2020-11-24 15:48:03 -0800 | [diff] [blame] | 454 | }, |
Yoshi Automation Bot | b6971b0 | 2020-11-26 17:16:03 -0800 | [diff] [blame^] | 455 | "name": "A 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. |
| 456 | } |
Dmitry Frenkel | 3e17f89 | 2020-10-06 16:46:05 -0700 | [diff] [blame] | 457 | |
Dmitry Frenkel | 3e17f89 | 2020-10-06 16:46:05 -0700 | [diff] [blame] | 458 | loggingEnabled: boolean, Deprecated, use instance.logging_enabled instead. Whether to enable Stackdriver logging for this instance. |
Bu Sun Kim | 673ec5c | 2020-11-16 11:05:03 -0700 | [diff] [blame] | 459 | name1: string, Deprecated, use instance.Name instead. Name of the instance to update. Format: `projects/[PROJECT_ID]/instances/[INSTANCE_ID]`. |
Yoshi Automation Bot | b6971b0 | 2020-11-26 17:16:03 -0800 | [diff] [blame^] | 460 | 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. |
Dmitry Frenkel | 3e17f89 | 2020-10-06 16:46:05 -0700 | [diff] [blame] | 461 | x__xgafv: string, V1 error format. |
| 462 | Allowed values |
| 463 | 1 - v1 error format |
| 464 | 2 - v2 error format |
| 465 | |
| 466 | Returns: |
| 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 Bot | 0d561ef | 2020-11-25 07:50:41 -0800 | [diff] [blame] | 470 | "done": 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. |
Dmitry Frenkel | 3e17f89 | 2020-10-06 16:46:05 -0700 | [diff] [blame] | 471 | "error": { # 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 Bot | b6971b0 | 2020-11-26 17:16:03 -0800 | [diff] [blame^] | 472 | "code": 42, # The status code, which should be an enum value of google.rpc.Code. |
| 473 | "message": "A String", # 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 Frenkel | 3e17f89 | 2020-10-06 16:46:05 -0700 | [diff] [blame] | 474 | "details": [ # A list of messages that carry the error details. There is a common set of message types for APIs to use. |
| 475 | { |
| 476 | "a_key": "", # Properties of the object. Contains field @type with type URL. |
| 477 | }, |
| 478 | ], |
Yoshi Automation Bot | b6971b0 | 2020-11-26 17:16:03 -0800 | [diff] [blame^] | 479 | }, |
| 480 | "metadata": { # 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. |
| 481 | "a_key": "", # Properties of the object. Contains field @type with type URL. |
| 482 | }, |
| 483 | "name": "A String", # 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}`. |
| 484 | "response": { # 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`. |
| 485 | "a_key": "", # Properties of the object. Contains field @type with type URL. |
Yoshi Automation Bot | c2228be | 2020-11-24 15:48:03 -0800 | [diff] [blame] | 486 | }, |
Dmitry Frenkel | 3e17f89 | 2020-10-06 16:46:05 -0700 | [diff] [blame] | 487 | }</pre> |
| 488 | </div> |
| 489 | |
Bu Sun Kim | 715bd7f | 2019-06-14 16:50:42 -0700 | [diff] [blame] | 490 | </body></html> |