Debian Codegraph @

docs/dyn/firebaseapphosting_v1.projects.locations.backends.html

raw
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="firebaseapphosting_v1.html">Firebase App Hosting API</a> . <a href="firebaseapphosting_v1.projects.html">projects</a> . <a href="firebaseapphosting_v1.projects.locations.html">locations</a> . <a href="firebaseapphosting_v1.projects.locations.backends.html">backends</a></h1>
76 <h2>Instance Methods</h2>
77 <p class="toc_element">
78 <code><a href="firebaseapphosting_v1.projects.locations.backends.builds.html">builds()</a></code>
79 </p>
80 <p class="firstline">Returns the builds Resource.</p>
81
82 <p class="toc_element">
83 <code><a href="firebaseapphosting_v1.projects.locations.backends.domains.html">domains()</a></code>
84 </p>
85 <p class="firstline">Returns the domains Resource.</p>
86
87 <p class="toc_element">
88 <code><a href="firebaseapphosting_v1.projects.locations.backends.rollouts.html">rollouts()</a></code>
89 </p>
90 <p class="firstline">Returns the rollouts Resource.</p>
91
92 <p class="toc_element">
93 <code><a href="firebaseapphosting_v1.projects.locations.backends.traffic.html">traffic()</a></code>
94 </p>
95 <p class="firstline">Returns the traffic Resource.</p>
96
97 <p class="toc_element">
98 <code><a href="#close">close()</a></code></p>
99 <p class="firstline">Close httplib2 connections.</p>
100 <p class="toc_element">
101 <code><a href="#create">create(parent, backendId=None, body=None, requestId=None, validateOnly=None, x__xgafv=None)</a></code></p>
102 <p class="firstline">Creates a new backend in a given project and location.</p>
103 <p class="toc_element">
104 <code><a href="#delete">delete(name, etag=None, force=None, requestId=None, validateOnly=None, x__xgafv=None)</a></code></p>
105 <p class="firstline">Deletes a single backend.</p>
106 <p class="toc_element">
107 <code><a href="#get">get(name, x__xgafv=None)</a></code></p>
108 <p class="firstline">Gets information about a backend.</p>
109 <p class="toc_element">
110 <code><a href="#list">list(parent, filter=None, orderBy=None, pageSize=None, pageToken=None, showDeleted=None, x__xgafv=None)</a></code></p>
111 <p class="firstline">Lists backends in a given project and location.</p>
112 <p class="toc_element">
113 <code><a href="#list_next">list_next()</a></code></p>
114 <p class="firstline">Retrieves the next page of results.</p>
115 <p class="toc_element">
116 <code><a href="#patch">patch(name, allowMissing=None, body=None, requestId=None, updateMask=None, validateOnly=None, x__xgafv=None)</a></code></p>
117 <p class="firstline">Updates the information for a single backend.</p>
118 <h3>Method Details</h3>
119 <div class="method">
120 <code class="details" id="close">close()</code>
121 <pre>Close httplib2 connections.</pre>
122 </div>
123
124 <div class="method">
125 <code class="details" id="create">create(parent, backendId=None, body=None, requestId=None, validateOnly=None, x__xgafv=None)</code>
126 <pre>Creates a new backend in a given project and location.
127
128 Args:
129 parent: string, Required. A parent name of the form `projects/{project}/locations/{locationId}`. (required)
130 body: object, The request body.
131 The object takes the form of:
132
133 { # A backend is the primary resource of App Hosting.
134 &quot;annotations&quot;: { # Optional. Unstructured key value map that may be set by external tools to store and arbitrary metadata. They are not queryable and should be preserved when modifying objects.
135 &quot;a_key&quot;: &quot;A String&quot;,
136 },
137 &quot;appId&quot;: &quot;A String&quot;, # Optional. The [ID of a Web App](https://firebase.google.com/docs/reference/firebase-management/rest/v1beta1/projects.webApps#WebApp.FIELDS.app_id) associated with the backend.
138 &quot;codebase&quot;: { # The connection to an external source repository to watch for event-driven updates to the backend. # Optional. If specified, the connection to an external source repository to watch for event-driven updates to the backend.
139 &quot;repository&quot;: &quot;A String&quot;, # Required. The resource name for the Developer Connect [`gitRepositoryLink`](https://cloud.google.com/developer-connect/docs/api/reference/rest/v1/projects.locations.connections.gitRepositoryLinks) connected to this backend, in the format: `projects/{project}/locations/{location}/connections/{connection}/gitRepositoryLinks/{repositoryLink}` The connection for the `gitRepositoryLink` must made be using the Firebase App Hosting GitHub App via the Firebase Console.
140 &quot;rootDirectory&quot;: &quot;A String&quot;, # Optional. If `repository` is provided, the directory relative to the root of the repository to use as the root for the deployed web app. Defaults to use the root of the repository if not provided. If deploying a [monorepo](https://firebase.google.com/docs/app-hosting/monorepos), this should be the directory that contains the `package.json` or `apphosting.yaml` file.
141 },
142 &quot;createTime&quot;: &quot;A String&quot;, # Output only. Time at which the backend was created.
143 &quot;deleteTime&quot;: &quot;A String&quot;, # Output only. Time at which the backend was deleted.
144 &quot;displayName&quot;: &quot;A String&quot;, # Optional. Human-readable name. 63 character limit.
145 &quot;environment&quot;: &quot;A String&quot;, # Optional. The environment name of the backend, used to load environment variables from environment specific configuration.
146 &quot;etag&quot;: &quot;A String&quot;, # Output only. Server-computed checksum based on other values; may be sent on update or delete to ensure operation is done on expected resource.
147 &quot;labels&quot;: { # Optional. Unstructured key value map that can be used to organize and categorize objects.
148 &quot;a_key&quot;: &quot;A String&quot;,
149 },
150 &quot;managedResources&quot;: [ # Output only. A list of the resources managed by this backend.
151 { # An external resource managed by App Hosting on the project.
152 &quot;runService&quot;: { # A managed Cloud Run [`service`](https://cloud.google.com/run/docs/reference/rest/v2/projects.locations.services#resource:-service). # A Cloud Run [`service`](https://cloud.google.com/run/docs/reference/rest/v2/projects.locations.services#resource:-service), managed by App Hosting.
153 &quot;service&quot;: &quot;A String&quot;, # Optional. The name of the Cloud Run [`service`](https://cloud.google.com/run/docs/reference/rest/v2/projects.locations.services#resource:-service), in the format: `projects/{project}/locations/{location}/services/{serviceId}`
154 },
155 },
156 ],
157 &quot;mode&quot;: &quot;A String&quot;, # Optional. Deprecated: Use `environment` instead.
158 &quot;name&quot;: &quot;A String&quot;, # Identifier. The resource name of the backend. Format: `projects/{project}/locations/{locationId}/backends/{backendId}`.
159 &quot;reconciling&quot;: True or False, # Output only. A field that, if true, indicates that the system is working to make adjustments to the backend during a LRO.
160 &quot;requestLogsDisabled&quot;: True or False, # Optional. A field that, if true, indicates that incoming request logs are disabled for this backend. Incoming request logs are enabled by default.
161 &quot;serviceAccount&quot;: &quot;A String&quot;, # Required. The name of the service account used for Cloud Build and Cloud Run. Should have the role roles/firebaseapphosting.computeRunner or equivalent permissions.
162 &quot;servingLocality&quot;: &quot;A String&quot;, # Required. Immutable. Specifies how App Hosting will serve the content for this backend. It will either be contained to a single region (REGIONAL_STRICT) or allowed to use App Hosting&#x27;s global-replicated serving infrastructure (GLOBAL_ACCESS).
163 &quot;uid&quot;: &quot;A String&quot;, # Output only. System-assigned, unique identifier.
164 &quot;updateTime&quot;: &quot;A String&quot;, # Output only. Time at which the backend was last updated.
165 &quot;uri&quot;: &quot;A String&quot;, # Output only. The primary URI to communicate with the backend.
166 }
167
168 backendId: string, Required. Id of the backend. Also used as the service ID for Cloud Run, and as part of the default domain name.
169 requestId: string, Optional. An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. The server will guarantee that for at least 60 minutes since the first request. For example, consider a situation where you make an initial request and t he request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000).
170 validateOnly: boolean, Optional. Indicates that the request should be validated and default values populated, without persisting the request or creating any resources.
171 x__xgafv: string, V1 error format.
172 Allowed values
173 1 - v1 error format
174 2 - v2 error format
175
176 Returns:
177 An object of the form:
178
179 { # This resource represents a long-running operation that is the result of a network API call.
180 &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.
181 &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.
182 &quot;code&quot;: 42, # The status code, which should be an enum value of google.rpc.Code.
183 &quot;details&quot;: [ # A list of messages that carry the error details. There is a common set of message types for APIs to use.
184 {
185 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
186 },
187 ],
188 &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.
189 },
190 &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.
191 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
192 },
193 &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}`.
194 &quot;response&quot;: { # The normal, successful response of the operation. 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`.
195 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
196 },
197 }</pre>
198 </div>
199
200 <div class="method">
201 <code class="details" id="delete">delete(name, etag=None, force=None, requestId=None, validateOnly=None, x__xgafv=None)</code>
202 <pre>Deletes a single backend.
203
204 Args:
205 name: string, Required. Name of the resource in the format: `projects/{project}/locations/{locationId}/backends/{backendId}`. (required)
206 etag: string, Optional. If the client provided etag is out of date, delete will be returned FAILED_PRECONDITION error.
207 force: boolean, Optional. If set to true, any resources for this backend will also be deleted. Otherwise, any children resources will block deletion.
208 requestId: string, Optional. An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. The server will guarantee that for at least 60 minutes after the first request. For example, consider a situation where you make an initial request and t he request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000).
209 validateOnly: boolean, Optional. Indicates that the request should be validated, without persisting the request or updating any resources.
210 x__xgafv: string, V1 error format.
211 Allowed values
212 1 - v1 error format
213 2 - v2 error format
214
215 Returns:
216 An object of the form:
217
218 { # This resource represents a long-running operation that is the result of a network API call.
219 &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.
220 &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.
221 &quot;code&quot;: 42, # The status code, which should be an enum value of google.rpc.Code.
222 &quot;details&quot;: [ # A list of messages that carry the error details. There is a common set of message types for APIs to use.
223 {
224 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
225 },
226 ],
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.
228 },
229 &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.
230 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
231 },
232 &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}`.
233 &quot;response&quot;: { # The normal, successful response of the operation. 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`.
234 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
235 },
236 }</pre>
237 </div>
238
239 <div class="method">
240 <code class="details" id="get">get(name, x__xgafv=None)</code>
241 <pre>Gets information about a backend.
242
243 Args:
244 name: string, Required. Name of the resource in the format: `projects/{project}/locations/{locationId}/backends/{backendId}`. (required)
245 x__xgafv: string, V1 error format.
246 Allowed values
247 1 - v1 error format
248 2 - v2 error format
249
250 Returns:
251 An object of the form:
252
253 { # A backend is the primary resource of App Hosting.
254 &quot;annotations&quot;: { # Optional. Unstructured key value map that may be set by external tools to store and arbitrary metadata. They are not queryable and should be preserved when modifying objects.
255 &quot;a_key&quot;: &quot;A String&quot;,
256 },
257 &quot;appId&quot;: &quot;A String&quot;, # Optional. The [ID of a Web App](https://firebase.google.com/docs/reference/firebase-management/rest/v1beta1/projects.webApps#WebApp.FIELDS.app_id) associated with the backend.
258 &quot;codebase&quot;: { # The connection to an external source repository to watch for event-driven updates to the backend. # Optional. If specified, the connection to an external source repository to watch for event-driven updates to the backend.
259 &quot;repository&quot;: &quot;A String&quot;, # Required. The resource name for the Developer Connect [`gitRepositoryLink`](https://cloud.google.com/developer-connect/docs/api/reference/rest/v1/projects.locations.connections.gitRepositoryLinks) connected to this backend, in the format: `projects/{project}/locations/{location}/connections/{connection}/gitRepositoryLinks/{repositoryLink}` The connection for the `gitRepositoryLink` must made be using the Firebase App Hosting GitHub App via the Firebase Console.
260 &quot;rootDirectory&quot;: &quot;A String&quot;, # Optional. If `repository` is provided, the directory relative to the root of the repository to use as the root for the deployed web app. Defaults to use the root of the repository if not provided. If deploying a [monorepo](https://firebase.google.com/docs/app-hosting/monorepos), this should be the directory that contains the `package.json` or `apphosting.yaml` file.
261 },
262 &quot;createTime&quot;: &quot;A String&quot;, # Output only. Time at which the backend was created.
263 &quot;deleteTime&quot;: &quot;A String&quot;, # Output only. Time at which the backend was deleted.
264 &quot;displayName&quot;: &quot;A String&quot;, # Optional. Human-readable name. 63 character limit.
265 &quot;environment&quot;: &quot;A String&quot;, # Optional. The environment name of the backend, used to load environment variables from environment specific configuration.
266 &quot;etag&quot;: &quot;A String&quot;, # Output only. Server-computed checksum based on other values; may be sent on update or delete to ensure operation is done on expected resource.
267 &quot;labels&quot;: { # Optional. Unstructured key value map that can be used to organize and categorize objects.
268 &quot;a_key&quot;: &quot;A String&quot;,
269 },
270 &quot;managedResources&quot;: [ # Output only. A list of the resources managed by this backend.
271 { # An external resource managed by App Hosting on the project.
272 &quot;runService&quot;: { # A managed Cloud Run [`service`](https://cloud.google.com/run/docs/reference/rest/v2/projects.locations.services#resource:-service). # A Cloud Run [`service`](https://cloud.google.com/run/docs/reference/rest/v2/projects.locations.services#resource:-service), managed by App Hosting.
273 &quot;service&quot;: &quot;A String&quot;, # Optional. The name of the Cloud Run [`service`](https://cloud.google.com/run/docs/reference/rest/v2/projects.locations.services#resource:-service), in the format: `projects/{project}/locations/{location}/services/{serviceId}`
274 },
275 },
276 ],
277 &quot;mode&quot;: &quot;A String&quot;, # Optional. Deprecated: Use `environment` instead.
278 &quot;name&quot;: &quot;A String&quot;, # Identifier. The resource name of the backend. Format: `projects/{project}/locations/{locationId}/backends/{backendId}`.
279 &quot;reconciling&quot;: True or False, # Output only. A field that, if true, indicates that the system is working to make adjustments to the backend during a LRO.
280 &quot;requestLogsDisabled&quot;: True or False, # Optional. A field that, if true, indicates that incoming request logs are disabled for this backend. Incoming request logs are enabled by default.
281 &quot;serviceAccount&quot;: &quot;A String&quot;, # Required. The name of the service account used for Cloud Build and Cloud Run. Should have the role roles/firebaseapphosting.computeRunner or equivalent permissions.
282 &quot;servingLocality&quot;: &quot;A String&quot;, # Required. Immutable. Specifies how App Hosting will serve the content for this backend. It will either be contained to a single region (REGIONAL_STRICT) or allowed to use App Hosting&#x27;s global-replicated serving infrastructure (GLOBAL_ACCESS).
283 &quot;uid&quot;: &quot;A String&quot;, # Output only. System-assigned, unique identifier.
284 &quot;updateTime&quot;: &quot;A String&quot;, # Output only. Time at which the backend was last updated.
285 &quot;uri&quot;: &quot;A String&quot;, # Output only. The primary URI to communicate with the backend.
286 }</pre>
287 </div>
288
289 <div class="method">
290 <code class="details" id="list">list(parent, filter=None, orderBy=None, pageSize=None, pageToken=None, showDeleted=None, x__xgafv=None)</code>
291 <pre>Lists backends in a given project and location.
292
293 Args:
294 parent: string, Required. A parent name of the form `projects/{project}/locations/{locationId}`. (required)
295 filter: string, Optional. A filter to narrow down results to a preferred subset. Learn more about filtering in Google&#x27;s [AIP 160 standard](https://google.aip.dev/160).
296 orderBy: string, Optional. Hint for how to order the results. Supported fields are `name` and `createTime`. To specify descending order, append a `desc` suffix.
297 pageSize: integer, Optional. The maximum number of results to return. If not set, the service selects a default.
298 pageToken: string, Optional. A page token received from the nextPageToken field in the response. Send that page token to receive the subsequent page.
299 showDeleted: boolean, Optional. If true, the request returns soft-deleted resources that haven&#x27;t been fully-deleted yet.
300 x__xgafv: string, V1 error format.
301 Allowed values
302 1 - v1 error format
303 2 - v2 error format
304
305 Returns:
306 An object of the form:
307
308 { # Message for response to list backends
309 &quot;backends&quot;: [ # The list of backends
310 { # A backend is the primary resource of App Hosting.
311 &quot;annotations&quot;: { # Optional. Unstructured key value map that may be set by external tools to store and arbitrary metadata. They are not queryable and should be preserved when modifying objects.
312 &quot;a_key&quot;: &quot;A String&quot;,
313 },
314 &quot;appId&quot;: &quot;A String&quot;, # Optional. The [ID of a Web App](https://firebase.google.com/docs/reference/firebase-management/rest/v1beta1/projects.webApps#WebApp.FIELDS.app_id) associated with the backend.
315 &quot;codebase&quot;: { # The connection to an external source repository to watch for event-driven updates to the backend. # Optional. If specified, the connection to an external source repository to watch for event-driven updates to the backend.
316 &quot;repository&quot;: &quot;A String&quot;, # Required. The resource name for the Developer Connect [`gitRepositoryLink`](https://cloud.google.com/developer-connect/docs/api/reference/rest/v1/projects.locations.connections.gitRepositoryLinks) connected to this backend, in the format: `projects/{project}/locations/{location}/connections/{connection}/gitRepositoryLinks/{repositoryLink}` The connection for the `gitRepositoryLink` must made be using the Firebase App Hosting GitHub App via the Firebase Console.
317 &quot;rootDirectory&quot;: &quot;A String&quot;, # Optional. If `repository` is provided, the directory relative to the root of the repository to use as the root for the deployed web app. Defaults to use the root of the repository if not provided. If deploying a [monorepo](https://firebase.google.com/docs/app-hosting/monorepos), this should be the directory that contains the `package.json` or `apphosting.yaml` file.
318 },
319 &quot;createTime&quot;: &quot;A String&quot;, # Output only. Time at which the backend was created.
320 &quot;deleteTime&quot;: &quot;A String&quot;, # Output only. Time at which the backend was deleted.
321 &quot;displayName&quot;: &quot;A String&quot;, # Optional. Human-readable name. 63 character limit.
322 &quot;environment&quot;: &quot;A String&quot;, # Optional. The environment name of the backend, used to load environment variables from environment specific configuration.
323 &quot;etag&quot;: &quot;A String&quot;, # Output only. Server-computed checksum based on other values; may be sent on update or delete to ensure operation is done on expected resource.
324 &quot;labels&quot;: { # Optional. Unstructured key value map that can be used to organize and categorize objects.
325 &quot;a_key&quot;: &quot;A String&quot;,
326 },
327 &quot;managedResources&quot;: [ # Output only. A list of the resources managed by this backend.
328 { # An external resource managed by App Hosting on the project.
329 &quot;runService&quot;: { # A managed Cloud Run [`service`](https://cloud.google.com/run/docs/reference/rest/v2/projects.locations.services#resource:-service). # A Cloud Run [`service`](https://cloud.google.com/run/docs/reference/rest/v2/projects.locations.services#resource:-service), managed by App Hosting.
330 &quot;service&quot;: &quot;A String&quot;, # Optional. The name of the Cloud Run [`service`](https://cloud.google.com/run/docs/reference/rest/v2/projects.locations.services#resource:-service), in the format: `projects/{project}/locations/{location}/services/{serviceId}`
331 },
332 },
333 ],
334 &quot;mode&quot;: &quot;A String&quot;, # Optional. Deprecated: Use `environment` instead.
335 &quot;name&quot;: &quot;A String&quot;, # Identifier. The resource name of the backend. Format: `projects/{project}/locations/{locationId}/backends/{backendId}`.
336 &quot;reconciling&quot;: True or False, # Output only. A field that, if true, indicates that the system is working to make adjustments to the backend during a LRO.
337 &quot;requestLogsDisabled&quot;: True or False, # Optional. A field that, if true, indicates that incoming request logs are disabled for this backend. Incoming request logs are enabled by default.
338 &quot;serviceAccount&quot;: &quot;A String&quot;, # Required. The name of the service account used for Cloud Build and Cloud Run. Should have the role roles/firebaseapphosting.computeRunner or equivalent permissions.
339 &quot;servingLocality&quot;: &quot;A String&quot;, # Required. Immutable. Specifies how App Hosting will serve the content for this backend. It will either be contained to a single region (REGIONAL_STRICT) or allowed to use App Hosting&#x27;s global-replicated serving infrastructure (GLOBAL_ACCESS).
340 &quot;uid&quot;: &quot;A String&quot;, # Output only. System-assigned, unique identifier.
341 &quot;updateTime&quot;: &quot;A String&quot;, # Output only. Time at which the backend was last updated.
342 &quot;uri&quot;: &quot;A String&quot;, # Output only. The primary URI to communicate with the backend.
343 },
344 ],
345 &quot;nextPageToken&quot;: &quot;A String&quot;, # A token identifying the next page of results the server should return.
346 &quot;unreachable&quot;: [ # Locations that could not be reached.
347 &quot;A String&quot;,
348 ],
349 }</pre>
350 </div>
351
352 <div class="method">
353 <code class="details" id="list_next">list_next()</code>
354 <pre>Retrieves the next page of results.
355
356 Args:
357 previous_request: The request for the previous page. (required)
358 previous_response: The response from the request for the previous page. (required)
359
360 Returns:
361 A request object that you can call &#x27;execute()&#x27; on to request the next
362 page. Returns None if there are no more items in the collection.
363 </pre>
364 </div>
365
366 <div class="method">
367 <code class="details" id="patch">patch(name, allowMissing=None, body=None, requestId=None, updateMask=None, validateOnly=None, x__xgafv=None)</code>
368 <pre>Updates the information for a single backend.
369
370 Args:
371 name: string, Identifier. The resource name of the backend. Format: `projects/{project}/locations/{locationId}/backends/{backendId}`. (required)
372 body: object, The request body.
373 The object takes the form of:
374
375 { # A backend is the primary resource of App Hosting.
376 &quot;annotations&quot;: { # Optional. Unstructured key value map that may be set by external tools to store and arbitrary metadata. They are not queryable and should be preserved when modifying objects.
377 &quot;a_key&quot;: &quot;A String&quot;,
378 },
379 &quot;appId&quot;: &quot;A String&quot;, # Optional. The [ID of a Web App](https://firebase.google.com/docs/reference/firebase-management/rest/v1beta1/projects.webApps#WebApp.FIELDS.app_id) associated with the backend.
380 &quot;codebase&quot;: { # The connection to an external source repository to watch for event-driven updates to the backend. # Optional. If specified, the connection to an external source repository to watch for event-driven updates to the backend.
381 &quot;repository&quot;: &quot;A String&quot;, # Required. The resource name for the Developer Connect [`gitRepositoryLink`](https://cloud.google.com/developer-connect/docs/api/reference/rest/v1/projects.locations.connections.gitRepositoryLinks) connected to this backend, in the format: `projects/{project}/locations/{location}/connections/{connection}/gitRepositoryLinks/{repositoryLink}` The connection for the `gitRepositoryLink` must made be using the Firebase App Hosting GitHub App via the Firebase Console.
382 &quot;rootDirectory&quot;: &quot;A String&quot;, # Optional. If `repository` is provided, the directory relative to the root of the repository to use as the root for the deployed web app. Defaults to use the root of the repository if not provided. If deploying a [monorepo](https://firebase.google.com/docs/app-hosting/monorepos), this should be the directory that contains the `package.json` or `apphosting.yaml` file.
383 },
384 &quot;createTime&quot;: &quot;A String&quot;, # Output only. Time at which the backend was created.
385 &quot;deleteTime&quot;: &quot;A String&quot;, # Output only. Time at which the backend was deleted.
386 &quot;displayName&quot;: &quot;A String&quot;, # Optional. Human-readable name. 63 character limit.
387 &quot;environment&quot;: &quot;A String&quot;, # Optional. The environment name of the backend, used to load environment variables from environment specific configuration.
388 &quot;etag&quot;: &quot;A String&quot;, # Output only. Server-computed checksum based on other values; may be sent on update or delete to ensure operation is done on expected resource.
389 &quot;labels&quot;: { # Optional. Unstructured key value map that can be used to organize and categorize objects.
390 &quot;a_key&quot;: &quot;A String&quot;,
391 },
392 &quot;managedResources&quot;: [ # Output only. A list of the resources managed by this backend.
393 { # An external resource managed by App Hosting on the project.
394 &quot;runService&quot;: { # A managed Cloud Run [`service`](https://cloud.google.com/run/docs/reference/rest/v2/projects.locations.services#resource:-service). # A Cloud Run [`service`](https://cloud.google.com/run/docs/reference/rest/v2/projects.locations.services#resource:-service), managed by App Hosting.
395 &quot;service&quot;: &quot;A String&quot;, # Optional. The name of the Cloud Run [`service`](https://cloud.google.com/run/docs/reference/rest/v2/projects.locations.services#resource:-service), in the format: `projects/{project}/locations/{location}/services/{serviceId}`
396 },
397 },
398 ],
399 &quot;mode&quot;: &quot;A String&quot;, # Optional. Deprecated: Use `environment` instead.
400 &quot;name&quot;: &quot;A String&quot;, # Identifier. The resource name of the backend. Format: `projects/{project}/locations/{locationId}/backends/{backendId}`.
401 &quot;reconciling&quot;: True or False, # Output only. A field that, if true, indicates that the system is working to make adjustments to the backend during a LRO.
402 &quot;requestLogsDisabled&quot;: True or False, # Optional. A field that, if true, indicates that incoming request logs are disabled for this backend. Incoming request logs are enabled by default.
403 &quot;serviceAccount&quot;: &quot;A String&quot;, # Required. The name of the service account used for Cloud Build and Cloud Run. Should have the role roles/firebaseapphosting.computeRunner or equivalent permissions.
404 &quot;servingLocality&quot;: &quot;A String&quot;, # Required. Immutable. Specifies how App Hosting will serve the content for this backend. It will either be contained to a single region (REGIONAL_STRICT) or allowed to use App Hosting&#x27;s global-replicated serving infrastructure (GLOBAL_ACCESS).
405 &quot;uid&quot;: &quot;A String&quot;, # Output only. System-assigned, unique identifier.
406 &quot;updateTime&quot;: &quot;A String&quot;, # Output only. Time at which the backend was last updated.
407 &quot;uri&quot;: &quot;A String&quot;, # Output only. The primary URI to communicate with the backend.
408 }
409
410 allowMissing: boolean, Optional. If set to true, and the backend is not found, a new backend will be created.
411 requestId: string, Optional. An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. The server will guarantee that for at least 60 minutes since the first request. For example, consider a situation where you make an initial request and t he request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000).
412 updateMask: string, Optional. Field mask is used to specify the fields to be overwritten in the backend resource by the update. The fields specified in the update_mask are relative to the resource, not the full request. A field will be overwritten if it is in the mask. If the user does not provide a mask then all fields will be overwritten.
413 validateOnly: boolean, Optional. Indicates that the request should be validated, without persisting the request or updating any resources.
414 x__xgafv: string, V1 error format.
415 Allowed values
416 1 - v1 error format
417 2 - v2 error format
418
419 Returns:
420 An object of the form:
421
422 { # This resource represents a long-running operation that is the result of a network API call.
423 &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.
424 &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.
425 &quot;code&quot;: 42, # The status code, which should be an enum value of google.rpc.Code.
426 &quot;details&quot;: [ # A list of messages that carry the error details. There is a common set of message types for APIs to use.
427 {
428 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
429 },
430 ],
431 &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.
432 },
433 &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.
434 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
435 },
436 &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}`.
437 &quot;response&quot;: { # The normal, successful response of the operation. 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`.
438 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
439 },
440 }</pre>
441 </div>
442
443 </body></html>